/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/alloydb/v1alpha/resources.proto

package com.google.cloud.alloydb.v1alpha;

/**
 *
 *
 * <pre>
 * A cluster is a collection of regional AlloyDB resources. It can include a
 * primary instance and one or more read pool instances.
 * All cluster resources share a storage layer, which scales as needed.
 * </pre>
 *
 * Protobuf type {@code google.cloud.alloydb.v1alpha.Cluster}
 */
public final class Cluster extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.Cluster)
    ClusterOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use Cluster.newBuilder() to construct.
  private Cluster(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private Cluster() {
    name_ = "";
    displayName_ = "";
    uid_ = "";
    state_ = 0;
    clusterType_ = 0;
    databaseVersion_ = 0;
    network_ = "";
    etag_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new Cluster();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.alloydb.v1alpha.ResourcesProto
        .internal_static_google_cloud_alloydb_v1alpha_Cluster_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(int number) {
    switch (number) {
      case 7:
        return internalGetLabels();
      case 12:
        return internalGetAnnotations();
      default:
        throw new RuntimeException("Invalid map field number: " + number);
    }
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.alloydb.v1alpha.ResourcesProto
        .internal_static_google_cloud_alloydb_v1alpha_Cluster_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.alloydb.v1alpha.Cluster.class,
            com.google.cloud.alloydb.v1alpha.Cluster.Builder.class);
  }

  /**
   *
   *
   * <pre>
   * Cluster State
   * </pre>
   *
   * Protobuf enum {@code google.cloud.alloydb.v1alpha.Cluster.State}
   */
  public enum State implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * The state of the cluster is unknown.
     * </pre>
     *
     * <code>STATE_UNSPECIFIED = 0;</code>
     */
    STATE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * The cluster is active and running.
     * </pre>
     *
     * <code>READY = 1;</code>
     */
    READY(1),
    /**
     *
     *
     * <pre>
     * The cluster is stopped. All instances in the cluster are stopped.
     * Customers can start a stopped cluster at any point and all their
     * instances will come back to life with same names and IP resources. In
     * this state, customer pays for storage.
     * Associated backups could also be present in a stopped cluster.
     * </pre>
     *
     * <code>STOPPED = 2;</code>
     */
    STOPPED(2),
    /**
     *
     *
     * <pre>
     * The cluster is empty and has no associated resources.
     * All instances, associated storage and backups have been deleted.
     * </pre>
     *
     * <code>EMPTY = 3;</code>
     */
    EMPTY(3),
    /**
     *
     *
     * <pre>
     * The cluster is being created.
     * </pre>
     *
     * <code>CREATING = 4;</code>
     */
    CREATING(4),
    /**
     *
     *
     * <pre>
     * The cluster is being deleted.
     * </pre>
     *
     * <code>DELETING = 5;</code>
     */
    DELETING(5),
    /**
     *
     *
     * <pre>
     * The creation of the cluster failed.
     * </pre>
     *
     * <code>FAILED = 6;</code>
     */
    FAILED(6),
    /**
     *
     *
     * <pre>
     * The cluster is bootstrapping with data from some other source.
     * Direct mutations to the cluster (e.g. adding read pool) are not allowed.
     * </pre>
     *
     * <code>BOOTSTRAPPING = 7;</code>
     */
    BOOTSTRAPPING(7),
    /**
     *
     *
     * <pre>
     * The cluster is under maintenance. AlloyDB regularly performs maintenance
     * and upgrades on customer clusters. Updates on the cluster are
     * not allowed while the cluster is in this state.
     * </pre>
     *
     * <code>MAINTENANCE = 8;</code>
     */
    MAINTENANCE(8),
    /**
     *
     *
     * <pre>
     * The cluster is being promoted.
     * </pre>
     *
     * <code>PROMOTING = 9;</code>
     */
    PROMOTING(9),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * The state of the cluster is unknown.
     * </pre>
     *
     * <code>STATE_UNSPECIFIED = 0;</code>
     */
    public static final int STATE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * The cluster is active and running.
     * </pre>
     *
     * <code>READY = 1;</code>
     */
    public static final int READY_VALUE = 1;
    /**
     *
     *
     * <pre>
     * The cluster is stopped. All instances in the cluster are stopped.
     * Customers can start a stopped cluster at any point and all their
     * instances will come back to life with same names and IP resources. In
     * this state, customer pays for storage.
     * Associated backups could also be present in a stopped cluster.
     * </pre>
     *
     * <code>STOPPED = 2;</code>
     */
    public static final int STOPPED_VALUE = 2;
    /**
     *
     *
     * <pre>
     * The cluster is empty and has no associated resources.
     * All instances, associated storage and backups have been deleted.
     * </pre>
     *
     * <code>EMPTY = 3;</code>
     */
    public static final int EMPTY_VALUE = 3;
    /**
     *
     *
     * <pre>
     * The cluster is being created.
     * </pre>
     *
     * <code>CREATING = 4;</code>
     */
    public static final int CREATING_VALUE = 4;
    /**
     *
     *
     * <pre>
     * The cluster is being deleted.
     * </pre>
     *
     * <code>DELETING = 5;</code>
     */
    public static final int DELETING_VALUE = 5;
    /**
     *
     *
     * <pre>
     * The creation of the cluster failed.
     * </pre>
     *
     * <code>FAILED = 6;</code>
     */
    public static final int FAILED_VALUE = 6;
    /**
     *
     *
     * <pre>
     * The cluster is bootstrapping with data from some other source.
     * Direct mutations to the cluster (e.g. adding read pool) are not allowed.
     * </pre>
     *
     * <code>BOOTSTRAPPING = 7;</code>
     */
    public static final int BOOTSTRAPPING_VALUE = 7;
    /**
     *
     *
     * <pre>
     * The cluster is under maintenance. AlloyDB regularly performs maintenance
     * and upgrades on customer clusters. Updates on the cluster are
     * not allowed while the cluster is in this state.
     * </pre>
     *
     * <code>MAINTENANCE = 8;</code>
     */
    public static final int MAINTENANCE_VALUE = 8;
    /**
     *
     *
     * <pre>
     * The cluster is being promoted.
     * </pre>
     *
     * <code>PROMOTING = 9;</code>
     */
    public static final int PROMOTING_VALUE = 9;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static State valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static State forNumber(int value) {
      switch (value) {
        case 0:
          return STATE_UNSPECIFIED;
        case 1:
          return READY;
        case 2:
          return STOPPED;
        case 3:
          return EMPTY;
        case 4:
          return CREATING;
        case 5:
          return DELETING;
        case 6:
          return FAILED;
        case 7:
          return BOOTSTRAPPING;
        case 8:
          return MAINTENANCE;
        case 9:
          return PROMOTING;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<State>() {
          public State findValueByNumber(int number) {
            return State.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.alloydb.v1alpha.Cluster.getDescriptor().getEnumTypes().get(0);
    }

    private static final State[] VALUES = values();

    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private State(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1alpha.Cluster.State)
  }

  /**
   *
   *
   * <pre>
   * Type of Cluster
   * </pre>
   *
   * Protobuf enum {@code google.cloud.alloydb.v1alpha.Cluster.ClusterType}
   */
  public enum ClusterType implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * The type of the cluster is unknown.
     * </pre>
     *
     * <code>CLUSTER_TYPE_UNSPECIFIED = 0;</code>
     */
    CLUSTER_TYPE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * Primary cluster that support read and write operations.
     * </pre>
     *
     * <code>PRIMARY = 1;</code>
     */
    PRIMARY(1),
    /**
     *
     *
     * <pre>
     * Secondary cluster that is replicating from another region.
     * This only supports read.
     * </pre>
     *
     * <code>SECONDARY = 2;</code>
     */
    SECONDARY(2),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * The type of the cluster is unknown.
     * </pre>
     *
     * <code>CLUSTER_TYPE_UNSPECIFIED = 0;</code>
     */
    public static final int CLUSTER_TYPE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * Primary cluster that support read and write operations.
     * </pre>
     *
     * <code>PRIMARY = 1;</code>
     */
    public static final int PRIMARY_VALUE = 1;
    /**
     *
     *
     * <pre>
     * Secondary cluster that is replicating from another region.
     * This only supports read.
     * </pre>
     *
     * <code>SECONDARY = 2;</code>
     */
    public static final int SECONDARY_VALUE = 2;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ClusterType valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static ClusterType forNumber(int value) {
      switch (value) {
        case 0:
          return CLUSTER_TYPE_UNSPECIFIED;
        case 1:
          return PRIMARY;
        case 2:
          return SECONDARY;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<ClusterType> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<ClusterType> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<ClusterType>() {
          public ClusterType findValueByNumber(int number) {
            return ClusterType.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.alloydb.v1alpha.Cluster.getDescriptor().getEnumTypes().get(1);
    }

    private static final ClusterType[] VALUES = values();

    public static ClusterType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private ClusterType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1alpha.Cluster.ClusterType)
  }

  public interface SecondaryConfigOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The name of the primary cluster name with the format:
     * * projects/{project}/locations/{region}/clusters/{cluster_id}
     * </pre>
     *
     * <code>string primary_cluster_name = 1;</code>
     *
     * @return The primaryClusterName.
     */
    java.lang.String getPrimaryClusterName();
    /**
     *
     *
     * <pre>
     * The name of the primary cluster name with the format:
     * * projects/{project}/locations/{region}/clusters/{cluster_id}
     * </pre>
     *
     * <code>string primary_cluster_name = 1;</code>
     *
     * @return The bytes for primaryClusterName.
     */
    com.google.protobuf.ByteString getPrimaryClusterNameBytes();
  }
  /**
   *
   *
   * <pre>
   * Configuration information for the secondary cluster. This should be set
   * if and only if the cluster is of type SECONDARY.
   * </pre>
   *
   * Protobuf type {@code google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig}
   */
  public static final class SecondaryConfig extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig)
      SecondaryConfigOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use SecondaryConfig.newBuilder() to construct.
    private SecondaryConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private SecondaryConfig() {
      primaryClusterName_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      return new SecondaryConfig();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.alloydb.v1alpha.ResourcesProto
          .internal_static_google_cloud_alloydb_v1alpha_Cluster_SecondaryConfig_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.alloydb.v1alpha.ResourcesProto
          .internal_static_google_cloud_alloydb_v1alpha_Cluster_SecondaryConfig_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.class,
              com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.Builder.class);
    }

    public static final int PRIMARY_CLUSTER_NAME_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object primaryClusterName_ = "";
    /**
     *
     *
     * <pre>
     * The name of the primary cluster name with the format:
     * * projects/{project}/locations/{region}/clusters/{cluster_id}
     * </pre>
     *
     * <code>string primary_cluster_name = 1;</code>
     *
     * @return The primaryClusterName.
     */
    @java.lang.Override
    public java.lang.String getPrimaryClusterName() {
      java.lang.Object ref = primaryClusterName_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        primaryClusterName_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The name of the primary cluster name with the format:
     * * projects/{project}/locations/{region}/clusters/{cluster_id}
     * </pre>
     *
     * <code>string primary_cluster_name = 1;</code>
     *
     * @return The bytes for primaryClusterName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getPrimaryClusterNameBytes() {
      java.lang.Object ref = primaryClusterName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        primaryClusterName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryClusterName_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, primaryClusterName_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryClusterName_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, primaryClusterName_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig)) {
        return super.equals(obj);
      }
      com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig other =
          (com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig) obj;

      if (!getPrimaryClusterName().equals(other.getPrimaryClusterName())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + PRIMARY_CLUSTER_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getPrimaryClusterName().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig parseDelimitedFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(
        com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     *
     *
     * <pre>
     * Configuration information for the secondary cluster. This should be set
     * if and only if the cluster is of type SECONDARY.
     * </pre>
     *
     * Protobuf type {@code google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig)
        com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfigOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.alloydb.v1alpha.ResourcesProto
            .internal_static_google_cloud_alloydb_v1alpha_Cluster_SecondaryConfig_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.alloydb.v1alpha.ResourcesProto
            .internal_static_google_cloud_alloydb_v1alpha_Cluster_SecondaryConfig_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.class,
                com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.Builder.class);
      }

      // Construct using com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.newBuilder()
      private Builder() {}

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        primaryClusterName_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.alloydb.v1alpha.ResourcesProto
            .internal_static_google_cloud_alloydb_v1alpha_Cluster_SecondaryConfig_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig getDefaultInstanceForType() {
        return com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig build() {
        com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig buildPartial() {
        com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig result =
            new com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.primaryClusterName_ = primaryClusterName_;
        }
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig) {
          return mergeFrom((com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig other) {
        if (other == com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.getDefaultInstance())
          return this;
        if (!other.getPrimaryClusterName().isEmpty()) {
          primaryClusterName_ = other.primaryClusterName_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10:
                {
                  primaryClusterName_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private java.lang.Object primaryClusterName_ = "";
      /**
       *
       *
       * <pre>
       * The name of the primary cluster name with the format:
       * * projects/{project}/locations/{region}/clusters/{cluster_id}
       * </pre>
       *
       * <code>string primary_cluster_name = 1;</code>
       *
       * @return The primaryClusterName.
       */
      public java.lang.String getPrimaryClusterName() {
        java.lang.Object ref = primaryClusterName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          primaryClusterName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The name of the primary cluster name with the format:
       * * projects/{project}/locations/{region}/clusters/{cluster_id}
       * </pre>
       *
       * <code>string primary_cluster_name = 1;</code>
       *
       * @return The bytes for primaryClusterName.
       */
      public com.google.protobuf.ByteString getPrimaryClusterNameBytes() {
        java.lang.Object ref = primaryClusterName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          primaryClusterName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The name of the primary cluster name with the format:
       * * projects/{project}/locations/{region}/clusters/{cluster_id}
       * </pre>
       *
       * <code>string primary_cluster_name = 1;</code>
       *
       * @param value The primaryClusterName to set.
       * @return This builder for chaining.
       */
      public Builder setPrimaryClusterName(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        primaryClusterName_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The name of the primary cluster name with the format:
       * * projects/{project}/locations/{region}/clusters/{cluster_id}
       * </pre>
       *
       * <code>string primary_cluster_name = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearPrimaryClusterName() {
        primaryClusterName_ = getDefaultInstance().getPrimaryClusterName();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The name of the primary cluster name with the format:
       * * projects/{project}/locations/{region}/clusters/{cluster_id}
       * </pre>
       *
       * <code>string primary_cluster_name = 1;</code>
       *
       * @param value The bytes for primaryClusterName to set.
       * @return This builder for chaining.
       */
      public Builder setPrimaryClusterNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        primaryClusterName_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }

      // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig)
    private static final com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig();
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<SecondaryConfig> PARSER =
        new com.google.protobuf.AbstractParser<SecondaryConfig>() {
          @java.lang.Override
          public SecondaryConfig parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

    public static com.google.protobuf.Parser<SecondaryConfig> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<SecondaryConfig> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface PrimaryConfigOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Output only. Names of the clusters that are replicating from this
     * cluster.
     * </pre>
     *
     * <code>
     * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return A list containing the secondaryClusterNames.
     */
    java.util.List<java.lang.String> getSecondaryClusterNamesList();
    /**
     *
     *
     * <pre>
     * Output only. Names of the clusters that are replicating from this
     * cluster.
     * </pre>
     *
     * <code>
     * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The count of secondaryClusterNames.
     */
    int getSecondaryClusterNamesCount();
    /**
     *
     *
     * <pre>
     * Output only. Names of the clusters that are replicating from this
     * cluster.
     * </pre>
     *
     * <code>
     * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param index The index of the element to return.
     * @return The secondaryClusterNames at the given index.
     */
    java.lang.String getSecondaryClusterNames(int index);
    /**
     *
     *
     * <pre>
     * Output only. Names of the clusters that are replicating from this
     * cluster.
     * </pre>
     *
     * <code>
     * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the secondaryClusterNames at the given index.
     */
    com.google.protobuf.ByteString getSecondaryClusterNamesBytes(int index);
  }
  /**
   *
   *
   * <pre>
   * Configuration for the primary cluster. It has the list of clusters that are
   * replicating from this cluster. This should be set if and only if the
   * cluster is of type PRIMARY.
   * </pre>
   *
   * Protobuf type {@code google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig}
   */
  public static final class PrimaryConfig extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig)
      PrimaryConfigOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use PrimaryConfig.newBuilder() to construct.
    private PrimaryConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private PrimaryConfig() {
      secondaryClusterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      return new PrimaryConfig();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.alloydb.v1alpha.ResourcesProto
          .internal_static_google_cloud_alloydb_v1alpha_Cluster_PrimaryConfig_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.alloydb.v1alpha.ResourcesProto
          .internal_static_google_cloud_alloydb_v1alpha_Cluster_PrimaryConfig_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.class,
              com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.Builder.class);
    }

    public static final int SECONDARY_CLUSTER_NAMES_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringList secondaryClusterNames_;
    /**
     *
     *
     * <pre>
     * Output only. Names of the clusters that are replicating from this
     * cluster.
     * </pre>
     *
     * <code>
     * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return A list containing the secondaryClusterNames.
     */
    public com.google.protobuf.ProtocolStringList getSecondaryClusterNamesList() {
      return secondaryClusterNames_;
    }
    /**
     *
     *
     * <pre>
     * Output only. Names of the clusters that are replicating from this
     * cluster.
     * </pre>
     *
     * <code>
     * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The count of secondaryClusterNames.
     */
    public int getSecondaryClusterNamesCount() {
      return secondaryClusterNames_.size();
    }
    /**
     *
     *
     * <pre>
     * Output only. Names of the clusters that are replicating from this
     * cluster.
     * </pre>
     *
     * <code>
     * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param index The index of the element to return.
     * @return The secondaryClusterNames at the given index.
     */
    public java.lang.String getSecondaryClusterNames(int index) {
      return secondaryClusterNames_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Output only. Names of the clusters that are replicating from this
     * cluster.
     * </pre>
     *
     * <code>
     * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the secondaryClusterNames at the given index.
     */
    public com.google.protobuf.ByteString getSecondaryClusterNamesBytes(int index) {
      return secondaryClusterNames_.getByteString(index);
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      for (int i = 0; i < secondaryClusterNames_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(
            output, 1, secondaryClusterNames_.getRaw(i));
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < secondaryClusterNames_.size(); i++) {
          dataSize += computeStringSizeNoTag(secondaryClusterNames_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getSecondaryClusterNamesList().size();
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig)) {
        return super.equals(obj);
      }
      com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig other =
          (com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig) obj;

      if (!getSecondaryClusterNamesList().equals(other.getSecondaryClusterNamesList()))
        return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getSecondaryClusterNamesCount() > 0) {
        hash = (37 * hash) + SECONDARY_CLUSTER_NAMES_FIELD_NUMBER;
        hash = (53 * hash) + getSecondaryClusterNamesList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig parseDelimitedFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(
        com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     *
     *
     * <pre>
     * Configuration for the primary cluster. It has the list of clusters that are
     * replicating from this cluster. This should be set if and only if the
     * cluster is of type PRIMARY.
     * </pre>
     *
     * Protobuf type {@code google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig)
        com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfigOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.alloydb.v1alpha.ResourcesProto
            .internal_static_google_cloud_alloydb_v1alpha_Cluster_PrimaryConfig_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.alloydb.v1alpha.ResourcesProto
            .internal_static_google_cloud_alloydb_v1alpha_Cluster_PrimaryConfig_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.class,
                com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.Builder.class);
      }

      // Construct using com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.newBuilder()
      private Builder() {}

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        secondaryClusterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.alloydb.v1alpha.ResourcesProto
            .internal_static_google_cloud_alloydb_v1alpha_Cluster_PrimaryConfig_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig getDefaultInstanceForType() {
        return com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig build() {
        com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig buildPartial() {
        com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig result =
            new com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(
          com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig result) {
        if (((bitField0_ & 0x00000001) != 0)) {
          secondaryClusterNames_ = secondaryClusterNames_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.secondaryClusterNames_ = secondaryClusterNames_;
      }

      private void buildPartial0(com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig result) {
        int from_bitField0_ = bitField0_;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig) {
          return mergeFrom((com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig other) {
        if (other == com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.getDefaultInstance())
          return this;
        if (!other.secondaryClusterNames_.isEmpty()) {
          if (secondaryClusterNames_.isEmpty()) {
            secondaryClusterNames_ = other.secondaryClusterNames_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureSecondaryClusterNamesIsMutable();
            secondaryClusterNames_.addAll(other.secondaryClusterNames_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10:
                {
                  java.lang.String s = input.readStringRequireUtf8();
                  ensureSecondaryClusterNamesIsMutable();
                  secondaryClusterNames_.add(s);
                  break;
                } // case 10
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private com.google.protobuf.LazyStringList secondaryClusterNames_ =
          com.google.protobuf.LazyStringArrayList.EMPTY;

      private void ensureSecondaryClusterNamesIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          secondaryClusterNames_ =
              new com.google.protobuf.LazyStringArrayList(secondaryClusterNames_);
          bitField0_ |= 0x00000001;
        }
      }
      /**
       *
       *
       * <pre>
       * Output only. Names of the clusters that are replicating from this
       * cluster.
       * </pre>
       *
       * <code>
       * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
       * </code>
       *
       * @return A list containing the secondaryClusterNames.
       */
      public com.google.protobuf.ProtocolStringList getSecondaryClusterNamesList() {
        return secondaryClusterNames_.getUnmodifiableView();
      }
      /**
       *
       *
       * <pre>
       * Output only. Names of the clusters that are replicating from this
       * cluster.
       * </pre>
       *
       * <code>
       * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
       * </code>
       *
       * @return The count of secondaryClusterNames.
       */
      public int getSecondaryClusterNamesCount() {
        return secondaryClusterNames_.size();
      }
      /**
       *
       *
       * <pre>
       * Output only. Names of the clusters that are replicating from this
       * cluster.
       * </pre>
       *
       * <code>
       * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
       * </code>
       *
       * @param index The index of the element to return.
       * @return The secondaryClusterNames at the given index.
       */
      public java.lang.String getSecondaryClusterNames(int index) {
        return secondaryClusterNames_.get(index);
      }
      /**
       *
       *
       * <pre>
       * Output only. Names of the clusters that are replicating from this
       * cluster.
       * </pre>
       *
       * <code>
       * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
       * </code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the secondaryClusterNames at the given index.
       */
      public com.google.protobuf.ByteString getSecondaryClusterNamesBytes(int index) {
        return secondaryClusterNames_.getByteString(index);
      }
      /**
       *
       *
       * <pre>
       * Output only. Names of the clusters that are replicating from this
       * cluster.
       * </pre>
       *
       * <code>
       * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
       * </code>
       *
       * @param index The index to set the value at.
       * @param value The secondaryClusterNames to set.
       * @return This builder for chaining.
       */
      public Builder setSecondaryClusterNames(int index, java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSecondaryClusterNamesIsMutable();
        secondaryClusterNames_.set(index, value);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Output only. Names of the clusters that are replicating from this
       * cluster.
       * </pre>
       *
       * <code>
       * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
       * </code>
       *
       * @param value The secondaryClusterNames to add.
       * @return This builder for chaining.
       */
      public Builder addSecondaryClusterNames(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSecondaryClusterNamesIsMutable();
        secondaryClusterNames_.add(value);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Output only. Names of the clusters that are replicating from this
       * cluster.
       * </pre>
       *
       * <code>
       * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
       * </code>
       *
       * @param values The secondaryClusterNames to add.
       * @return This builder for chaining.
       */
      public Builder addAllSecondaryClusterNames(java.lang.Iterable<java.lang.String> values) {
        ensureSecondaryClusterNamesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secondaryClusterNames_);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Output only. Names of the clusters that are replicating from this
       * cluster.
       * </pre>
       *
       * <code>
       * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
       * </code>
       *
       * @return This builder for chaining.
       */
      public Builder clearSecondaryClusterNames() {
        secondaryClusterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Output only. Names of the clusters that are replicating from this
       * cluster.
       * </pre>
       *
       * <code>
       * repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
       * </code>
       *
       * @param value The bytes of the secondaryClusterNames to add.
       * @return This builder for chaining.
       */
      public Builder addSecondaryClusterNamesBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        ensureSecondaryClusterNamesIsMutable();
        secondaryClusterNames_.add(value);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }

      // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig)
    private static final com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig();
    }

    public static com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<PrimaryConfig> PARSER =
        new com.google.protobuf.AbstractParser<PrimaryConfig>() {
          @java.lang.Override
          public PrimaryConfig parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

    public static com.google.protobuf.Parser<PrimaryConfig> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<PrimaryConfig> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  private int sourceCase_ = 0;
  private java.lang.Object source_;

  public enum SourceCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    BACKUP_SOURCE(15),
    MIGRATION_SOURCE(16),
    SOURCE_NOT_SET(0);
    private final int value;

    private SourceCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static SourceCase valueOf(int value) {
      return forNumber(value);
    }

    public static SourceCase forNumber(int value) {
      switch (value) {
        case 15:
          return BACKUP_SOURCE;
        case 16:
          return MIGRATION_SOURCE;
        case 0:
          return SOURCE_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public SourceCase getSourceCase() {
    return SourceCase.forNumber(sourceCase_);
  }

  public static final int BACKUP_SOURCE_FIELD_NUMBER = 15;
  /**
   *
   *
   * <pre>
   * Output only. Cluster created from backup.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the backupSource field is set.
   */
  @java.lang.Override
  public boolean hasBackupSource() {
    return sourceCase_ == 15;
  }
  /**
   *
   *
   * <pre>
   * Output only. Cluster created from backup.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The backupSource.
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.BackupSource getBackupSource() {
    if (sourceCase_ == 15) {
      return (com.google.cloud.alloydb.v1alpha.BackupSource) source_;
    }
    return com.google.cloud.alloydb.v1alpha.BackupSource.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Output only. Cluster created from backup.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.BackupSourceOrBuilder getBackupSourceOrBuilder() {
    if (sourceCase_ == 15) {
      return (com.google.cloud.alloydb.v1alpha.BackupSource) source_;
    }
    return com.google.cloud.alloydb.v1alpha.BackupSource.getDefaultInstance();
  }

  public static final int MIGRATION_SOURCE_FIELD_NUMBER = 16;
  /**
   *
   *
   * <pre>
   * Output only. Cluster created via DMS migration.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the migrationSource field is set.
   */
  @java.lang.Override
  public boolean hasMigrationSource() {
    return sourceCase_ == 16;
  }
  /**
   *
   *
   * <pre>
   * Output only. Cluster created via DMS migration.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The migrationSource.
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.MigrationSource getMigrationSource() {
    if (sourceCase_ == 16) {
      return (com.google.cloud.alloydb.v1alpha.MigrationSource) source_;
    }
    return com.google.cloud.alloydb.v1alpha.MigrationSource.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Output only. Cluster created via DMS migration.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.MigrationSourceOrBuilder getMigrationSourceOrBuilder() {
    if (sourceCase_ == 16) {
      return (com.google.cloud.alloydb.v1alpha.MigrationSource) source_;
    }
    return com.google.cloud.alloydb.v1alpha.MigrationSource.getDefaultInstance();
  }

  public static final int NAME_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The name of the cluster resource with the format:
   *  * projects/{project}/locations/{region}/clusters/{cluster_id}
   * where the cluster ID segment should satisfy the regex expression
   * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
   * The prefix of the cluster resource name is the name of the parent resource:
   *  * projects/{project}/locations/{region}
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      name_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The name of the cluster resource with the format:
   *  * projects/{project}/locations/{region}/clusters/{cluster_id}
   * where the cluster ID segment should satisfy the regex expression
   * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
   * The prefix of the cluster resource name is the name of the parent resource:
   *  * projects/{project}/locations/{region}
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DISPLAY_NAME_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object displayName_ = "";
  /**
   *
   *
   * <pre>
   * User-settable and human-readable display name for the Cluster.
   * </pre>
   *
   * <code>string display_name = 2;</code>
   *
   * @return The displayName.
   */
  @java.lang.Override
  public java.lang.String getDisplayName() {
    java.lang.Object ref = displayName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      displayName_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * User-settable and human-readable display name for the Cluster.
   * </pre>
   *
   * <code>string display_name = 2;</code>
   *
   * @return The bytes for displayName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getDisplayNameBytes() {
    java.lang.Object ref = displayName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      displayName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int UID_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object uid_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The system-generated UID of the resource. The UID is assigned
   * when the resource is created, and it is retained until it is deleted.
   * </pre>
   *
   * <code>string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The uid.
   */
  @java.lang.Override
  public java.lang.String getUid() {
    java.lang.Object ref = uid_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      uid_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The system-generated UID of the resource. The UID is assigned
   * when the resource is created, and it is retained until it is deleted.
   * </pre>
   *
   * <code>string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for uid.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getUidBytes() {
    java.lang.Object ref = uid_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      uid_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CREATE_TIME_FIELD_NUMBER = 4;
  private com.google.protobuf.Timestamp createTime_;
  /**
   *
   *
   * <pre>
   * Output only. Create time stamp
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the createTime field is set.
   */
  @java.lang.Override
  public boolean hasCreateTime() {
    return createTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Create time stamp
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The createTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getCreateTime() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Create time stamp
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }

  public static final int UPDATE_TIME_FIELD_NUMBER = 5;
  private com.google.protobuf.Timestamp updateTime_;
  /**
   *
   *
   * <pre>
   * Output only. Update time stamp
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the updateTime field is set.
   */
  @java.lang.Override
  public boolean hasUpdateTime() {
    return updateTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Update time stamp
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The updateTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getUpdateTime() {
    return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Update time stamp
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
  }

  public static final int DELETE_TIME_FIELD_NUMBER = 6;
  private com.google.protobuf.Timestamp deleteTime_;
  /**
   *
   *
   * <pre>
   * Output only. Delete time stamp
   * </pre>
   *
   * <code>.google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the deleteTime field is set.
   */
  @java.lang.Override
  public boolean hasDeleteTime() {
    return deleteTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Delete time stamp
   * </pre>
   *
   * <code>.google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The deleteTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getDeleteTime() {
    return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Delete time stamp
   * </pre>
   *
   * <code>.google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_;
  }

  public static final int LABELS_FIELD_NUMBER = 7;

  private static final class LabelsDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
        com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
            com.google.cloud.alloydb.v1alpha.ResourcesProto
                .internal_static_google_cloud_alloydb_v1alpha_Cluster_LabelsEntry_descriptor,
            com.google.protobuf.WireFormat.FieldType.STRING,
            "",
            com.google.protobuf.WireFormat.FieldType.STRING,
            "");
  }

  @SuppressWarnings("serial")
  private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;

  private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
    if (labels_ == null) {
      return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
    }
    return labels_;
  }

  public int getLabelsCount() {
    return internalGetLabels().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * Labels as key value pairs
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 7;</code>
   */
  @java.lang.Override
  public boolean containsLabels(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetLabels().getMap().containsKey(key);
  }
  /** Use {@link #getLabelsMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getLabels() {
    return getLabelsMap();
  }
  /**
   *
   *
   * <pre>
   * Labels as key value pairs
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 7;</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
    return internalGetLabels().getMap();
  }
  /**
   *
   *
   * <pre>
   * Labels as key value pairs
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 7;</code>
   */
  @java.lang.Override
  public /* nullable */ java.lang.String getLabelsOrDefault(
      java.lang.String key,
      /* nullable */
      java.lang.String defaultValue) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * Labels as key value pairs
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 7;</code>
   */
  @java.lang.Override
  public java.lang.String getLabelsOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int STATE_FIELD_NUMBER = 8;
  private int state_ = 0;
  /**
   *
   *
   * <pre>
   * Output only. The current serving state of the cluster.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The enum numeric value on the wire for state.
   */
  @java.lang.Override
  public int getStateValue() {
    return state_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The current serving state of the cluster.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The state.
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.Cluster.State getState() {
    com.google.cloud.alloydb.v1alpha.Cluster.State result =
        com.google.cloud.alloydb.v1alpha.Cluster.State.forNumber(state_);
    return result == null ? com.google.cloud.alloydb.v1alpha.Cluster.State.UNRECOGNIZED : result;
  }

  public static final int CLUSTER_TYPE_FIELD_NUMBER = 24;
  private int clusterType_ = 0;
  /**
   *
   *
   * <pre>
   * Output only. The type of the cluster. This is an output-only field and it's
   * populated at the Cluster creation time or the Cluster promotion
   * time. The cluster type is determined by which RPC was used to create
   * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The enum numeric value on the wire for clusterType.
   */
  @java.lang.Override
  public int getClusterTypeValue() {
    return clusterType_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The type of the cluster. This is an output-only field and it's
   * populated at the Cluster creation time or the Cluster promotion
   * time. The cluster type is determined by which RPC was used to create
   * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The clusterType.
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.Cluster.ClusterType getClusterType() {
    com.google.cloud.alloydb.v1alpha.Cluster.ClusterType result =
        com.google.cloud.alloydb.v1alpha.Cluster.ClusterType.forNumber(clusterType_);
    return result == null
        ? com.google.cloud.alloydb.v1alpha.Cluster.ClusterType.UNRECOGNIZED
        : result;
  }

  public static final int DATABASE_VERSION_FIELD_NUMBER = 9;
  private int databaseVersion_ = 0;
  /**
   *
   *
   * <pre>
   * Output only. The database engine major version. This is an output-only
   * field and it's populated at the Cluster creation time. This field cannot be
   * changed after cluster creation.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The enum numeric value on the wire for databaseVersion.
   */
  @java.lang.Override
  public int getDatabaseVersionValue() {
    return databaseVersion_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The database engine major version. This is an output-only
   * field and it's populated at the Cluster creation time. This field cannot be
   * changed after cluster creation.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The databaseVersion.
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.DatabaseVersion getDatabaseVersion() {
    com.google.cloud.alloydb.v1alpha.DatabaseVersion result =
        com.google.cloud.alloydb.v1alpha.DatabaseVersion.forNumber(databaseVersion_);
    return result == null ? com.google.cloud.alloydb.v1alpha.DatabaseVersion.UNRECOGNIZED : result;
  }

  public static final int NETWORK_FIELD_NUMBER = 10;

  @SuppressWarnings("serial")
  private volatile java.lang.Object network_ = "";
  /**
   *
   *
   * <pre>
   * Required. The resource link for the VPC network in which cluster resources
   * are created and from which they are accessible via Private IP. The network
   * must belong to the same project as the cluster. It is specified in the
   * form: "projects/{project_number}/global/networks/{network_id}". This is
   * required to create a cluster. It can be updated, but it cannot be removed.
   * </pre>
   *
   * <code>
   * string network = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The network.
   */
  @java.lang.Override
  public java.lang.String getNetwork() {
    java.lang.Object ref = network_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      network_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required. The resource link for the VPC network in which cluster resources
   * are created and from which they are accessible via Private IP. The network
   * must belong to the same project as the cluster. It is specified in the
   * form: "projects/{project_number}/global/networks/{network_id}". This is
   * required to create a cluster. It can be updated, but it cannot be removed.
   * </pre>
   *
   * <code>
   * string network = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The bytes for network.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNetworkBytes() {
    java.lang.Object ref = network_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      network_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ETAG_FIELD_NUMBER = 11;

  @SuppressWarnings("serial")
  private volatile java.lang.Object etag_ = "";
  /**
   *
   *
   * <pre>
   * For Resource freshness validation (https://google.aip.dev/154)
   * </pre>
   *
   * <code>string etag = 11;</code>
   *
   * @return The etag.
   */
  @java.lang.Override
  public java.lang.String getEtag() {
    java.lang.Object ref = etag_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      etag_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * For Resource freshness validation (https://google.aip.dev/154)
   * </pre>
   *
   * <code>string etag = 11;</code>
   *
   * @return The bytes for etag.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getEtagBytes() {
    java.lang.Object ref = etag_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      etag_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ANNOTATIONS_FIELD_NUMBER = 12;

  private static final class AnnotationsDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
        com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
            com.google.cloud.alloydb.v1alpha.ResourcesProto
                .internal_static_google_cloud_alloydb_v1alpha_Cluster_AnnotationsEntry_descriptor,
            com.google.protobuf.WireFormat.FieldType.STRING,
            "",
            com.google.protobuf.WireFormat.FieldType.STRING,
            "");
  }

  @SuppressWarnings("serial")
  private com.google.protobuf.MapField<java.lang.String, java.lang.String> annotations_;

  private com.google.protobuf.MapField<java.lang.String, java.lang.String>
      internalGetAnnotations() {
    if (annotations_ == null) {
      return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry);
    }
    return annotations_;
  }

  public int getAnnotationsCount() {
    return internalGetAnnotations().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * Annotations to allow client tools to store small amount of arbitrary data.
   * This is distinct from labels.
   * https://google.aip.dev/128
   * </pre>
   *
   * <code>map&lt;string, string&gt; annotations = 12;</code>
   */
  @java.lang.Override
  public boolean containsAnnotations(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetAnnotations().getMap().containsKey(key);
  }
  /** Use {@link #getAnnotationsMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getAnnotations() {
    return getAnnotationsMap();
  }
  /**
   *
   *
   * <pre>
   * Annotations to allow client tools to store small amount of arbitrary data.
   * This is distinct from labels.
   * https://google.aip.dev/128
   * </pre>
   *
   * <code>map&lt;string, string&gt; annotations = 12;</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getAnnotationsMap() {
    return internalGetAnnotations().getMap();
  }
  /**
   *
   *
   * <pre>
   * Annotations to allow client tools to store small amount of arbitrary data.
   * This is distinct from labels.
   * https://google.aip.dev/128
   * </pre>
   *
   * <code>map&lt;string, string&gt; annotations = 12;</code>
   */
  @java.lang.Override
  public /* nullable */ java.lang.String getAnnotationsOrDefault(
      java.lang.String key,
      /* nullable */
      java.lang.String defaultValue) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetAnnotations().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * Annotations to allow client tools to store small amount of arbitrary data.
   * This is distinct from labels.
   * https://google.aip.dev/128
   * </pre>
   *
   * <code>map&lt;string, string&gt; annotations = 12;</code>
   */
  @java.lang.Override
  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetAnnotations().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int RECONCILING_FIELD_NUMBER = 13;
  private boolean reconciling_ = false;
  /**
   *
   *
   * <pre>
   * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
   * Set to true if the current state of Cluster does not match the user's
   * intended state, and the service is actively updating the resource to
   * reconcile them. This can happen due to user-triggered updates or
   * system actions like failover or maintenance.
   * </pre>
   *
   * <code>bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The reconciling.
   */
  @java.lang.Override
  public boolean getReconciling() {
    return reconciling_;
  }

  public static final int INITIAL_USER_FIELD_NUMBER = 14;
  private com.google.cloud.alloydb.v1alpha.UserPassword initialUser_;
  /**
   *
   *
   * <pre>
   * Input only. Initial user to setup during cluster creation. Required.
   * If used in `RestoreCluster` this is ignored.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
   * </code>
   *
   * @return Whether the initialUser field is set.
   */
  @java.lang.Override
  public boolean hasInitialUser() {
    return initialUser_ != null;
  }
  /**
   *
   *
   * <pre>
   * Input only. Initial user to setup during cluster creation. Required.
   * If used in `RestoreCluster` this is ignored.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
   * </code>
   *
   * @return The initialUser.
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.UserPassword getInitialUser() {
    return initialUser_ == null
        ? com.google.cloud.alloydb.v1alpha.UserPassword.getDefaultInstance()
        : initialUser_;
  }
  /**
   *
   *
   * <pre>
   * Input only. Initial user to setup during cluster creation. Required.
   * If used in `RestoreCluster` this is ignored.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.UserPasswordOrBuilder getInitialUserOrBuilder() {
    return initialUser_ == null
        ? com.google.cloud.alloydb.v1alpha.UserPassword.getDefaultInstance()
        : initialUser_;
  }

  public static final int AUTOMATED_BACKUP_POLICY_FIELD_NUMBER = 17;
  private com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy automatedBackupPolicy_;
  /**
   *
   *
   * <pre>
   * The automated backup policy for this cluster.
   * If no policy is provided then the default policy will be used. If backups
   * are supported for the cluster, the default policy takes one backup a day,
   * has a backup window of 1 hour, and retains backups for 14 days.
   * For more information on the defaults, consult the
   * documentation for the message type.
   * </pre>
   *
   * <code>.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy automated_backup_policy = 17;</code>
   *
   * @return Whether the automatedBackupPolicy field is set.
   */
  @java.lang.Override
  public boolean hasAutomatedBackupPolicy() {
    return automatedBackupPolicy_ != null;
  }
  /**
   *
   *
   * <pre>
   * The automated backup policy for this cluster.
   * If no policy is provided then the default policy will be used. If backups
   * are supported for the cluster, the default policy takes one backup a day,
   * has a backup window of 1 hour, and retains backups for 14 days.
   * For more information on the defaults, consult the
   * documentation for the message type.
   * </pre>
   *
   * <code>.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy automated_backup_policy = 17;</code>
   *
   * @return The automatedBackupPolicy.
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy getAutomatedBackupPolicy() {
    return automatedBackupPolicy_ == null
        ? com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.getDefaultInstance()
        : automatedBackupPolicy_;
  }
  /**
   *
   *
   * <pre>
   * The automated backup policy for this cluster.
   * If no policy is provided then the default policy will be used. If backups
   * are supported for the cluster, the default policy takes one backup a day,
   * has a backup window of 1 hour, and retains backups for 14 days.
   * For more information on the defaults, consult the
   * documentation for the message type.
   * </pre>
   *
   * <code>.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy automated_backup_policy = 17;</code>
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicyOrBuilder
      getAutomatedBackupPolicyOrBuilder() {
    return automatedBackupPolicy_ == null
        ? com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.getDefaultInstance()
        : automatedBackupPolicy_;
  }

  public static final int SSL_CONFIG_FIELD_NUMBER = 18;
  private com.google.cloud.alloydb.v1alpha.SslConfig sslConfig_;
  /**
   *
   *
   * <pre>
   * SSL configuration for this AlloyDB Cluster.
   * </pre>
   *
   * <code>.google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18;</code>
   *
   * @return Whether the sslConfig field is set.
   */
  @java.lang.Override
  public boolean hasSslConfig() {
    return sslConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * SSL configuration for this AlloyDB Cluster.
   * </pre>
   *
   * <code>.google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18;</code>
   *
   * @return The sslConfig.
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.SslConfig getSslConfig() {
    return sslConfig_ == null
        ? com.google.cloud.alloydb.v1alpha.SslConfig.getDefaultInstance()
        : sslConfig_;
  }
  /**
   *
   *
   * <pre>
   * SSL configuration for this AlloyDB Cluster.
   * </pre>
   *
   * <code>.google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18;</code>
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.SslConfigOrBuilder getSslConfigOrBuilder() {
    return sslConfig_ == null
        ? com.google.cloud.alloydb.v1alpha.SslConfig.getDefaultInstance()
        : sslConfig_;
  }

  public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 19;
  private com.google.cloud.alloydb.v1alpha.EncryptionConfig encryptionConfig_;
  /**
   *
   *
   * <pre>
   * Optional. The encryption config can be specified to encrypt the data disks
   * and other persistent data resources of a cluster with a
   * customer-managed encryption key (CMEK). When this field is not
   * specified, the cluster will then use default encryption scheme to
   * protect the user data.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the encryptionConfig field is set.
   */
  @java.lang.Override
  public boolean hasEncryptionConfig() {
    return encryptionConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. The encryption config can be specified to encrypt the data disks
   * and other persistent data resources of a cluster with a
   * customer-managed encryption key (CMEK). When this field is not
   * specified, the cluster will then use default encryption scheme to
   * protect the user data.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The encryptionConfig.
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.EncryptionConfig getEncryptionConfig() {
    return encryptionConfig_ == null
        ? com.google.cloud.alloydb.v1alpha.EncryptionConfig.getDefaultInstance()
        : encryptionConfig_;
  }
  /**
   *
   *
   * <pre>
   * Optional. The encryption config can be specified to encrypt the data disks
   * and other persistent data resources of a cluster with a
   * customer-managed encryption key (CMEK). When this field is not
   * specified, the cluster will then use default encryption scheme to
   * protect the user data.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() {
    return encryptionConfig_ == null
        ? com.google.cloud.alloydb.v1alpha.EncryptionConfig.getDefaultInstance()
        : encryptionConfig_;
  }

  public static final int ENCRYPTION_INFO_FIELD_NUMBER = 20;
  private com.google.cloud.alloydb.v1alpha.EncryptionInfo encryptionInfo_;
  /**
   *
   *
   * <pre>
   * Output only. The encryption information for the cluster.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the encryptionInfo field is set.
   */
  @java.lang.Override
  public boolean hasEncryptionInfo() {
    return encryptionInfo_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. The encryption information for the cluster.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The encryptionInfo.
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.EncryptionInfo getEncryptionInfo() {
    return encryptionInfo_ == null
        ? com.google.cloud.alloydb.v1alpha.EncryptionInfo.getDefaultInstance()
        : encryptionInfo_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The encryption information for the cluster.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() {
    return encryptionInfo_ == null
        ? com.google.cloud.alloydb.v1alpha.EncryptionInfo.getDefaultInstance()
        : encryptionInfo_;
  }

  public static final int CONTINUOUS_BACKUP_CONFIG_FIELD_NUMBER = 27;
  private com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig continuousBackupConfig_;
  /**
   *
   *
   * <pre>
   * Optional. Continuous backup configuration for this cluster.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the continuousBackupConfig field is set.
   */
  @java.lang.Override
  public boolean hasContinuousBackupConfig() {
    return continuousBackupConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional. Continuous backup configuration for this cluster.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The continuousBackupConfig.
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig getContinuousBackupConfig() {
    return continuousBackupConfig_ == null
        ? com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig.getDefaultInstance()
        : continuousBackupConfig_;
  }
  /**
   *
   *
   * <pre>
   * Optional. Continuous backup configuration for this cluster.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.ContinuousBackupConfigOrBuilder
      getContinuousBackupConfigOrBuilder() {
    return continuousBackupConfig_ == null
        ? com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig.getDefaultInstance()
        : continuousBackupConfig_;
  }

  public static final int CONTINUOUS_BACKUP_INFO_FIELD_NUMBER = 28;
  private com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo continuousBackupInfo_;
  /**
   *
   *
   * <pre>
   * Output only. Continuous backup properties for this cluster.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the continuousBackupInfo field is set.
   */
  @java.lang.Override
  public boolean hasContinuousBackupInfo() {
    return continuousBackupInfo_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Continuous backup properties for this cluster.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The continuousBackupInfo.
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo getContinuousBackupInfo() {
    return continuousBackupInfo_ == null
        ? com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo.getDefaultInstance()
        : continuousBackupInfo_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Continuous backup properties for this cluster.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.ContinuousBackupInfoOrBuilder
      getContinuousBackupInfoOrBuilder() {
    return continuousBackupInfo_ == null
        ? com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo.getDefaultInstance()
        : continuousBackupInfo_;
  }

  public static final int SECONDARY_CONFIG_FIELD_NUMBER = 22;
  private com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig secondaryConfig_;
  /**
   *
   *
   * <pre>
   * Cross Region replication config specific to SECONDARY cluster.
   * </pre>
   *
   * <code>.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig secondary_config = 22;</code>
   *
   * @return Whether the secondaryConfig field is set.
   */
  @java.lang.Override
  public boolean hasSecondaryConfig() {
    return secondaryConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * Cross Region replication config specific to SECONDARY cluster.
   * </pre>
   *
   * <code>.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig secondary_config = 22;</code>
   *
   * @return The secondaryConfig.
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig getSecondaryConfig() {
    return secondaryConfig_ == null
        ? com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.getDefaultInstance()
        : secondaryConfig_;
  }
  /**
   *
   *
   * <pre>
   * Cross Region replication config specific to SECONDARY cluster.
   * </pre>
   *
   * <code>.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig secondary_config = 22;</code>
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfigOrBuilder
      getSecondaryConfigOrBuilder() {
    return secondaryConfig_ == null
        ? com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.getDefaultInstance()
        : secondaryConfig_;
  }

  public static final int PRIMARY_CONFIG_FIELD_NUMBER = 23;
  private com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig primaryConfig_;
  /**
   *
   *
   * <pre>
   * Output only. Cross Region replication config specific to PRIMARY cluster.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the primaryConfig field is set.
   */
  @java.lang.Override
  public boolean hasPrimaryConfig() {
    return primaryConfig_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Cross Region replication config specific to PRIMARY cluster.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The primaryConfig.
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig getPrimaryConfig() {
    return primaryConfig_ == null
        ? com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.getDefaultInstance()
        : primaryConfig_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Cross Region replication config specific to PRIMARY cluster.
   * </pre>
   *
   * <code>
   * .google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfigOrBuilder
      getPrimaryConfigOrBuilder() {
    return primaryConfig_ == null
        ? com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.getDefaultInstance()
        : primaryConfig_;
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_);
    }
    if (createTime_ != null) {
      output.writeMessage(4, getCreateTime());
    }
    if (updateTime_ != null) {
      output.writeMessage(5, getUpdateTime());
    }
    if (deleteTime_ != null) {
      output.writeMessage(6, getDeleteTime());
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7);
    if (state_ != com.google.cloud.alloydb.v1alpha.Cluster.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(8, state_);
    }
    if (databaseVersion_
        != com.google.cloud.alloydb.v1alpha.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(9, databaseVersion_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, network_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_);
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 12);
    if (reconciling_ != false) {
      output.writeBool(13, reconciling_);
    }
    if (initialUser_ != null) {
      output.writeMessage(14, getInitialUser());
    }
    if (sourceCase_ == 15) {
      output.writeMessage(15, (com.google.cloud.alloydb.v1alpha.BackupSource) source_);
    }
    if (sourceCase_ == 16) {
      output.writeMessage(16, (com.google.cloud.alloydb.v1alpha.MigrationSource) source_);
    }
    if (automatedBackupPolicy_ != null) {
      output.writeMessage(17, getAutomatedBackupPolicy());
    }
    if (sslConfig_ != null) {
      output.writeMessage(18, getSslConfig());
    }
    if (encryptionConfig_ != null) {
      output.writeMessage(19, getEncryptionConfig());
    }
    if (encryptionInfo_ != null) {
      output.writeMessage(20, getEncryptionInfo());
    }
    if (secondaryConfig_ != null) {
      output.writeMessage(22, getSecondaryConfig());
    }
    if (primaryConfig_ != null) {
      output.writeMessage(23, getPrimaryConfig());
    }
    if (clusterType_
        != com.google.cloud.alloydb.v1alpha.Cluster.ClusterType.CLUSTER_TYPE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(24, clusterType_);
    }
    if (continuousBackupConfig_ != null) {
      output.writeMessage(27, getContinuousBackupConfig());
    }
    if (continuousBackupInfo_ != null) {
      output.writeMessage(28, getContinuousBackupInfo());
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_);
    }
    if (createTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime());
    }
    if (updateTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime());
    }
    if (deleteTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDeleteTime());
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetLabels().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
          LabelsDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__);
    }
    if (state_ != com.google.cloud.alloydb.v1alpha.Cluster.State.STATE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_);
    }
    if (databaseVersion_
        != com.google.cloud.alloydb.v1alpha.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, databaseVersion_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, network_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_);
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetAnnotations().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> annotations__ =
          AnnotationsDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, annotations__);
    }
    if (reconciling_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, reconciling_);
    }
    if (initialUser_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getInitialUser());
    }
    if (sourceCase_ == 15) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              15, (com.google.cloud.alloydb.v1alpha.BackupSource) source_);
    }
    if (sourceCase_ == 16) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              16, (com.google.cloud.alloydb.v1alpha.MigrationSource) source_);
    }
    if (automatedBackupPolicy_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(17, getAutomatedBackupPolicy());
    }
    if (sslConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getSslConfig());
    }
    if (encryptionConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getEncryptionConfig());
    }
    if (encryptionInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getEncryptionInfo());
    }
    if (secondaryConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getSecondaryConfig());
    }
    if (primaryConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getPrimaryConfig());
    }
    if (clusterType_
        != com.google.cloud.alloydb.v1alpha.Cluster.ClusterType.CLUSTER_TYPE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(24, clusterType_);
    }
    if (continuousBackupConfig_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(27, getContinuousBackupConfig());
    }
    if (continuousBackupInfo_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(28, getContinuousBackupInfo());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.alloydb.v1alpha.Cluster)) {
      return super.equals(obj);
    }
    com.google.cloud.alloydb.v1alpha.Cluster other = (com.google.cloud.alloydb.v1alpha.Cluster) obj;

    if (!getName().equals(other.getName())) return false;
    if (!getDisplayName().equals(other.getDisplayName())) return false;
    if (!getUid().equals(other.getUid())) return false;
    if (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (!getCreateTime().equals(other.getCreateTime())) return false;
    }
    if (hasUpdateTime() != other.hasUpdateTime()) return false;
    if (hasUpdateTime()) {
      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
    }
    if (hasDeleteTime() != other.hasDeleteTime()) return false;
    if (hasDeleteTime()) {
      if (!getDeleteTime().equals(other.getDeleteTime())) return false;
    }
    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
    if (state_ != other.state_) return false;
    if (clusterType_ != other.clusterType_) return false;
    if (databaseVersion_ != other.databaseVersion_) return false;
    if (!getNetwork().equals(other.getNetwork())) return false;
    if (!getEtag().equals(other.getEtag())) return false;
    if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false;
    if (getReconciling() != other.getReconciling()) return false;
    if (hasInitialUser() != other.hasInitialUser()) return false;
    if (hasInitialUser()) {
      if (!getInitialUser().equals(other.getInitialUser())) return false;
    }
    if (hasAutomatedBackupPolicy() != other.hasAutomatedBackupPolicy()) return false;
    if (hasAutomatedBackupPolicy()) {
      if (!getAutomatedBackupPolicy().equals(other.getAutomatedBackupPolicy())) return false;
    }
    if (hasSslConfig() != other.hasSslConfig()) return false;
    if (hasSslConfig()) {
      if (!getSslConfig().equals(other.getSslConfig())) return false;
    }
    if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false;
    if (hasEncryptionConfig()) {
      if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false;
    }
    if (hasEncryptionInfo() != other.hasEncryptionInfo()) return false;
    if (hasEncryptionInfo()) {
      if (!getEncryptionInfo().equals(other.getEncryptionInfo())) return false;
    }
    if (hasContinuousBackupConfig() != other.hasContinuousBackupConfig()) return false;
    if (hasContinuousBackupConfig()) {
      if (!getContinuousBackupConfig().equals(other.getContinuousBackupConfig())) return false;
    }
    if (hasContinuousBackupInfo() != other.hasContinuousBackupInfo()) return false;
    if (hasContinuousBackupInfo()) {
      if (!getContinuousBackupInfo().equals(other.getContinuousBackupInfo())) return false;
    }
    if (hasSecondaryConfig() != other.hasSecondaryConfig()) return false;
    if (hasSecondaryConfig()) {
      if (!getSecondaryConfig().equals(other.getSecondaryConfig())) return false;
    }
    if (hasPrimaryConfig() != other.hasPrimaryConfig()) return false;
    if (hasPrimaryConfig()) {
      if (!getPrimaryConfig().equals(other.getPrimaryConfig())) return false;
    }
    if (!getSourceCase().equals(other.getSourceCase())) return false;
    switch (sourceCase_) {
      case 15:
        if (!getBackupSource().equals(other.getBackupSource())) return false;
        break;
      case 16:
        if (!getMigrationSource().equals(other.getMigrationSource())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getDisplayName().hashCode();
    hash = (37 * hash) + UID_FIELD_NUMBER;
    hash = (53 * hash) + getUid().hashCode();
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime().hashCode();
    }
    if (hasUpdateTime()) {
      hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getUpdateTime().hashCode();
    }
    if (hasDeleteTime()) {
      hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getDeleteTime().hashCode();
    }
    if (!internalGetLabels().getMap().isEmpty()) {
      hash = (37 * hash) + LABELS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetLabels().hashCode();
    }
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + state_;
    hash = (37 * hash) + CLUSTER_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + clusterType_;
    hash = (37 * hash) + DATABASE_VERSION_FIELD_NUMBER;
    hash = (53 * hash) + databaseVersion_;
    hash = (37 * hash) + NETWORK_FIELD_NUMBER;
    hash = (53 * hash) + getNetwork().hashCode();
    hash = (37 * hash) + ETAG_FIELD_NUMBER;
    hash = (53 * hash) + getEtag().hashCode();
    if (!internalGetAnnotations().getMap().isEmpty()) {
      hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetAnnotations().hashCode();
    }
    hash = (37 * hash) + RECONCILING_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling());
    if (hasInitialUser()) {
      hash = (37 * hash) + INITIAL_USER_FIELD_NUMBER;
      hash = (53 * hash) + getInitialUser().hashCode();
    }
    if (hasAutomatedBackupPolicy()) {
      hash = (37 * hash) + AUTOMATED_BACKUP_POLICY_FIELD_NUMBER;
      hash = (53 * hash) + getAutomatedBackupPolicy().hashCode();
    }
    if (hasSslConfig()) {
      hash = (37 * hash) + SSL_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getSslConfig().hashCode();
    }
    if (hasEncryptionConfig()) {
      hash = (37 * hash) + ENCRYPTION_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getEncryptionConfig().hashCode();
    }
    if (hasEncryptionInfo()) {
      hash = (37 * hash) + ENCRYPTION_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getEncryptionInfo().hashCode();
    }
    if (hasContinuousBackupConfig()) {
      hash = (37 * hash) + CONTINUOUS_BACKUP_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getContinuousBackupConfig().hashCode();
    }
    if (hasContinuousBackupInfo()) {
      hash = (37 * hash) + CONTINUOUS_BACKUP_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getContinuousBackupInfo().hashCode();
    }
    if (hasSecondaryConfig()) {
      hash = (37 * hash) + SECONDARY_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getSecondaryConfig().hashCode();
    }
    if (hasPrimaryConfig()) {
      hash = (37 * hash) + PRIMARY_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getPrimaryConfig().hashCode();
    }
    switch (sourceCase_) {
      case 15:
        hash = (37 * hash) + BACKUP_SOURCE_FIELD_NUMBER;
        hash = (53 * hash) + getBackupSource().hashCode();
        break;
      case 16:
        hash = (37 * hash) + MIGRATION_SOURCE_FIELD_NUMBER;
        hash = (53 * hash) + getMigrationSource().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.alloydb.v1alpha.Cluster parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.alloydb.v1alpha.Cluster parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.alloydb.v1alpha.Cluster parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.alloydb.v1alpha.Cluster parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.alloydb.v1alpha.Cluster parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.alloydb.v1alpha.Cluster parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.alloydb.v1alpha.Cluster parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.alloydb.v1alpha.Cluster parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.alloydb.v1alpha.Cluster parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.alloydb.v1alpha.Cluster parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.alloydb.v1alpha.Cluster parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.alloydb.v1alpha.Cluster parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.cloud.alloydb.v1alpha.Cluster prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * A cluster is a collection of regional AlloyDB resources. It can include a
   * primary instance and one or more read pool instances.
   * All cluster resources share a storage layer, which scales as needed.
   * </pre>
   *
   * Protobuf type {@code google.cloud.alloydb.v1alpha.Cluster}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.Cluster)
      com.google.cloud.alloydb.v1alpha.ClusterOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.alloydb.v1alpha.ResourcesProto
          .internal_static_google_cloud_alloydb_v1alpha_Cluster_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(int number) {
      switch (number) {
        case 7:
          return internalGetLabels();
        case 12:
          return internalGetAnnotations();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
      switch (number) {
        case 7:
          return internalGetMutableLabels();
        case 12:
          return internalGetMutableAnnotations();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.alloydb.v1alpha.ResourcesProto
          .internal_static_google_cloud_alloydb_v1alpha_Cluster_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.alloydb.v1alpha.Cluster.class,
              com.google.cloud.alloydb.v1alpha.Cluster.Builder.class);
    }

    // Construct using com.google.cloud.alloydb.v1alpha.Cluster.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (backupSourceBuilder_ != null) {
        backupSourceBuilder_.clear();
      }
      if (migrationSourceBuilder_ != null) {
        migrationSourceBuilder_.clear();
      }
      name_ = "";
      displayName_ = "";
      uid_ = "";
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      updateTime_ = null;
      if (updateTimeBuilder_ != null) {
        updateTimeBuilder_.dispose();
        updateTimeBuilder_ = null;
      }
      deleteTime_ = null;
      if (deleteTimeBuilder_ != null) {
        deleteTimeBuilder_.dispose();
        deleteTimeBuilder_ = null;
      }
      internalGetMutableLabels().clear();
      state_ = 0;
      clusterType_ = 0;
      databaseVersion_ = 0;
      network_ = "";
      etag_ = "";
      internalGetMutableAnnotations().clear();
      reconciling_ = false;
      initialUser_ = null;
      if (initialUserBuilder_ != null) {
        initialUserBuilder_.dispose();
        initialUserBuilder_ = null;
      }
      automatedBackupPolicy_ = null;
      if (automatedBackupPolicyBuilder_ != null) {
        automatedBackupPolicyBuilder_.dispose();
        automatedBackupPolicyBuilder_ = null;
      }
      sslConfig_ = null;
      if (sslConfigBuilder_ != null) {
        sslConfigBuilder_.dispose();
        sslConfigBuilder_ = null;
      }
      encryptionConfig_ = null;
      if (encryptionConfigBuilder_ != null) {
        encryptionConfigBuilder_.dispose();
        encryptionConfigBuilder_ = null;
      }
      encryptionInfo_ = null;
      if (encryptionInfoBuilder_ != null) {
        encryptionInfoBuilder_.dispose();
        encryptionInfoBuilder_ = null;
      }
      continuousBackupConfig_ = null;
      if (continuousBackupConfigBuilder_ != null) {
        continuousBackupConfigBuilder_.dispose();
        continuousBackupConfigBuilder_ = null;
      }
      continuousBackupInfo_ = null;
      if (continuousBackupInfoBuilder_ != null) {
        continuousBackupInfoBuilder_.dispose();
        continuousBackupInfoBuilder_ = null;
      }
      secondaryConfig_ = null;
      if (secondaryConfigBuilder_ != null) {
        secondaryConfigBuilder_.dispose();
        secondaryConfigBuilder_ = null;
      }
      primaryConfig_ = null;
      if (primaryConfigBuilder_ != null) {
        primaryConfigBuilder_.dispose();
        primaryConfigBuilder_ = null;
      }
      sourceCase_ = 0;
      source_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.alloydb.v1alpha.ResourcesProto
          .internal_static_google_cloud_alloydb_v1alpha_Cluster_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.alloydb.v1alpha.Cluster getDefaultInstanceForType() {
      return com.google.cloud.alloydb.v1alpha.Cluster.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.alloydb.v1alpha.Cluster build() {
      com.google.cloud.alloydb.v1alpha.Cluster result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.alloydb.v1alpha.Cluster buildPartial() {
      com.google.cloud.alloydb.v1alpha.Cluster result =
          new com.google.cloud.alloydb.v1alpha.Cluster(this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartial0(com.google.cloud.alloydb.v1alpha.Cluster result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.displayName_ = displayName_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.uid_ = uid_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.labels_ = internalGetLabels();
        result.labels_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.state_ = state_;
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.clusterType_ = clusterType_;
      }
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.databaseVersion_ = databaseVersion_;
      }
      if (((from_bitField0_ & 0x00001000) != 0)) {
        result.network_ = network_;
      }
      if (((from_bitField0_ & 0x00002000) != 0)) {
        result.etag_ = etag_;
      }
      if (((from_bitField0_ & 0x00004000) != 0)) {
        result.annotations_ = internalGetAnnotations();
        result.annotations_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00008000) != 0)) {
        result.reconciling_ = reconciling_;
      }
      if (((from_bitField0_ & 0x00010000) != 0)) {
        result.initialUser_ =
            initialUserBuilder_ == null ? initialUser_ : initialUserBuilder_.build();
      }
      if (((from_bitField0_ & 0x00020000) != 0)) {
        result.automatedBackupPolicy_ =
            automatedBackupPolicyBuilder_ == null
                ? automatedBackupPolicy_
                : automatedBackupPolicyBuilder_.build();
      }
      if (((from_bitField0_ & 0x00040000) != 0)) {
        result.sslConfig_ = sslConfigBuilder_ == null ? sslConfig_ : sslConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00080000) != 0)) {
        result.encryptionConfig_ =
            encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00100000) != 0)) {
        result.encryptionInfo_ =
            encryptionInfoBuilder_ == null ? encryptionInfo_ : encryptionInfoBuilder_.build();
      }
      if (((from_bitField0_ & 0x00200000) != 0)) {
        result.continuousBackupConfig_ =
            continuousBackupConfigBuilder_ == null
                ? continuousBackupConfig_
                : continuousBackupConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x00400000) != 0)) {
        result.continuousBackupInfo_ =
            continuousBackupInfoBuilder_ == null
                ? continuousBackupInfo_
                : continuousBackupInfoBuilder_.build();
      }
      if (((from_bitField0_ & 0x00800000) != 0)) {
        result.secondaryConfig_ =
            secondaryConfigBuilder_ == null ? secondaryConfig_ : secondaryConfigBuilder_.build();
      }
      if (((from_bitField0_ & 0x01000000) != 0)) {
        result.primaryConfig_ =
            primaryConfigBuilder_ == null ? primaryConfig_ : primaryConfigBuilder_.build();
      }
    }

    private void buildPartialOneofs(com.google.cloud.alloydb.v1alpha.Cluster result) {
      result.sourceCase_ = sourceCase_;
      result.source_ = this.source_;
      if (sourceCase_ == 15 && backupSourceBuilder_ != null) {
        result.source_ = backupSourceBuilder_.build();
      }
      if (sourceCase_ == 16 && migrationSourceBuilder_ != null) {
        result.source_ = migrationSourceBuilder_.build();
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.alloydb.v1alpha.Cluster) {
        return mergeFrom((com.google.cloud.alloydb.v1alpha.Cluster) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Cluster other) {
      if (other == com.google.cloud.alloydb.v1alpha.Cluster.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getDisplayName().isEmpty()) {
        displayName_ = other.displayName_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (!other.getUid().isEmpty()) {
        uid_ = other.uid_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (other.hasUpdateTime()) {
        mergeUpdateTime(other.getUpdateTime());
      }
      if (other.hasDeleteTime()) {
        mergeDeleteTime(other.getDeleteTime());
      }
      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
      bitField0_ |= 0x00000100;
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (other.clusterType_ != 0) {
        setClusterTypeValue(other.getClusterTypeValue());
      }
      if (other.databaseVersion_ != 0) {
        setDatabaseVersionValue(other.getDatabaseVersionValue());
      }
      if (!other.getNetwork().isEmpty()) {
        network_ = other.network_;
        bitField0_ |= 0x00001000;
        onChanged();
      }
      if (!other.getEtag().isEmpty()) {
        etag_ = other.etag_;
        bitField0_ |= 0x00002000;
        onChanged();
      }
      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
      bitField0_ |= 0x00004000;
      if (other.getReconciling() != false) {
        setReconciling(other.getReconciling());
      }
      if (other.hasInitialUser()) {
        mergeInitialUser(other.getInitialUser());
      }
      if (other.hasAutomatedBackupPolicy()) {
        mergeAutomatedBackupPolicy(other.getAutomatedBackupPolicy());
      }
      if (other.hasSslConfig()) {
        mergeSslConfig(other.getSslConfig());
      }
      if (other.hasEncryptionConfig()) {
        mergeEncryptionConfig(other.getEncryptionConfig());
      }
      if (other.hasEncryptionInfo()) {
        mergeEncryptionInfo(other.getEncryptionInfo());
      }
      if (other.hasContinuousBackupConfig()) {
        mergeContinuousBackupConfig(other.getContinuousBackupConfig());
      }
      if (other.hasContinuousBackupInfo()) {
        mergeContinuousBackupInfo(other.getContinuousBackupInfo());
      }
      if (other.hasSecondaryConfig()) {
        mergeSecondaryConfig(other.getSecondaryConfig());
      }
      if (other.hasPrimaryConfig()) {
        mergePrimaryConfig(other.getPrimaryConfig());
      }
      switch (other.getSourceCase()) {
        case BACKUP_SOURCE:
          {
            mergeBackupSource(other.getBackupSource());
            break;
          }
        case MIGRATION_SOURCE:
          {
            mergeMigrationSource(other.getMigrationSource());
            break;
          }
        case SOURCE_NOT_SET:
          {
            break;
          }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                name_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 10
            case 18:
              {
                displayName_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000008;
                break;
              } // case 18
            case 26:
              {
                uid_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000010;
                break;
              } // case 26
            case 34:
              {
                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000020;
                break;
              } // case 34
            case 42:
              {
                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000040;
                break;
              } // case 42
            case 50:
              {
                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000080;
                break;
              } // case 50
            case 58:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
                    input.readMessage(
                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
                        extensionRegistry);
                internalGetMutableLabels()
                    .getMutableMap()
                    .put(labels__.getKey(), labels__.getValue());
                bitField0_ |= 0x00000100;
                break;
              } // case 58
            case 64:
              {
                state_ = input.readEnum();
                bitField0_ |= 0x00000200;
                break;
              } // case 64
            case 72:
              {
                databaseVersion_ = input.readEnum();
                bitField0_ |= 0x00000800;
                break;
              } // case 72
            case 82:
              {
                network_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00001000;
                break;
              } // case 82
            case 90:
              {
                etag_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00002000;
                break;
              } // case 90
            case 98:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String> annotations__ =
                    input.readMessage(
                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
                        extensionRegistry);
                internalGetMutableAnnotations()
                    .getMutableMap()
                    .put(annotations__.getKey(), annotations__.getValue());
                bitField0_ |= 0x00004000;
                break;
              } // case 98
            case 104:
              {
                reconciling_ = input.readBool();
                bitField0_ |= 0x00008000;
                break;
              } // case 104
            case 114:
              {
                input.readMessage(getInitialUserFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00010000;
                break;
              } // case 114
            case 122:
              {
                input.readMessage(getBackupSourceFieldBuilder().getBuilder(), extensionRegistry);
                sourceCase_ = 15;
                break;
              } // case 122
            case 130:
              {
                input.readMessage(getMigrationSourceFieldBuilder().getBuilder(), extensionRegistry);
                sourceCase_ = 16;
                break;
              } // case 130
            case 138:
              {
                input.readMessage(
                    getAutomatedBackupPolicyFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00020000;
                break;
              } // case 138
            case 146:
              {
                input.readMessage(getSslConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00040000;
                break;
              } // case 146
            case 154:
              {
                input.readMessage(
                    getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00080000;
                break;
              } // case 154
            case 162:
              {
                input.readMessage(getEncryptionInfoFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00100000;
                break;
              } // case 162
            case 178:
              {
                input.readMessage(getSecondaryConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00800000;
                break;
              } // case 178
            case 186:
              {
                input.readMessage(getPrimaryConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x01000000;
                break;
              } // case 186
            case 192:
              {
                clusterType_ = input.readEnum();
                bitField0_ |= 0x00000400;
                break;
              } // case 192
            case 218:
              {
                input.readMessage(
                    getContinuousBackupConfigFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00200000;
                break;
              } // case 218
            case 226:
              {
                input.readMessage(
                    getContinuousBackupInfoFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00400000;
                break;
              } // case 226
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int sourceCase_ = 0;
    private java.lang.Object source_;

    public SourceCase getSourceCase() {
      return SourceCase.forNumber(sourceCase_);
    }

    public Builder clearSource() {
      sourceCase_ = 0;
      source_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.BackupSource,
            com.google.cloud.alloydb.v1alpha.BackupSource.Builder,
            com.google.cloud.alloydb.v1alpha.BackupSourceOrBuilder>
        backupSourceBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Cluster created from backup.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the backupSource field is set.
     */
    @java.lang.Override
    public boolean hasBackupSource() {
      return sourceCase_ == 15;
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created from backup.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The backupSource.
     */
    @java.lang.Override
    public com.google.cloud.alloydb.v1alpha.BackupSource getBackupSource() {
      if (backupSourceBuilder_ == null) {
        if (sourceCase_ == 15) {
          return (com.google.cloud.alloydb.v1alpha.BackupSource) source_;
        }
        return com.google.cloud.alloydb.v1alpha.BackupSource.getDefaultInstance();
      } else {
        if (sourceCase_ == 15) {
          return backupSourceBuilder_.getMessage();
        }
        return com.google.cloud.alloydb.v1alpha.BackupSource.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created from backup.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setBackupSource(com.google.cloud.alloydb.v1alpha.BackupSource value) {
      if (backupSourceBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        source_ = value;
        onChanged();
      } else {
        backupSourceBuilder_.setMessage(value);
      }
      sourceCase_ = 15;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created from backup.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setBackupSource(
        com.google.cloud.alloydb.v1alpha.BackupSource.Builder builderForValue) {
      if (backupSourceBuilder_ == null) {
        source_ = builderForValue.build();
        onChanged();
      } else {
        backupSourceBuilder_.setMessage(builderForValue.build());
      }
      sourceCase_ = 15;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created from backup.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeBackupSource(com.google.cloud.alloydb.v1alpha.BackupSource value) {
      if (backupSourceBuilder_ == null) {
        if (sourceCase_ == 15
            && source_ != com.google.cloud.alloydb.v1alpha.BackupSource.getDefaultInstance()) {
          source_ =
              com.google.cloud.alloydb.v1alpha.BackupSource.newBuilder(
                      (com.google.cloud.alloydb.v1alpha.BackupSource) source_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          source_ = value;
        }
        onChanged();
      } else {
        if (sourceCase_ == 15) {
          backupSourceBuilder_.mergeFrom(value);
        } else {
          backupSourceBuilder_.setMessage(value);
        }
      }
      sourceCase_ = 15;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created from backup.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearBackupSource() {
      if (backupSourceBuilder_ == null) {
        if (sourceCase_ == 15) {
          sourceCase_ = 0;
          source_ = null;
          onChanged();
        }
      } else {
        if (sourceCase_ == 15) {
          sourceCase_ = 0;
          source_ = null;
        }
        backupSourceBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created from backup.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.BackupSource.Builder getBackupSourceBuilder() {
      return getBackupSourceFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created from backup.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.alloydb.v1alpha.BackupSourceOrBuilder getBackupSourceOrBuilder() {
      if ((sourceCase_ == 15) && (backupSourceBuilder_ != null)) {
        return backupSourceBuilder_.getMessageOrBuilder();
      } else {
        if (sourceCase_ == 15) {
          return (com.google.cloud.alloydb.v1alpha.BackupSource) source_;
        }
        return com.google.cloud.alloydb.v1alpha.BackupSource.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created from backup.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.BackupSource,
            com.google.cloud.alloydb.v1alpha.BackupSource.Builder,
            com.google.cloud.alloydb.v1alpha.BackupSourceOrBuilder>
        getBackupSourceFieldBuilder() {
      if (backupSourceBuilder_ == null) {
        if (!(sourceCase_ == 15)) {
          source_ = com.google.cloud.alloydb.v1alpha.BackupSource.getDefaultInstance();
        }
        backupSourceBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.alloydb.v1alpha.BackupSource,
                com.google.cloud.alloydb.v1alpha.BackupSource.Builder,
                com.google.cloud.alloydb.v1alpha.BackupSourceOrBuilder>(
                (com.google.cloud.alloydb.v1alpha.BackupSource) source_,
                getParentForChildren(),
                isClean());
        source_ = null;
      }
      sourceCase_ = 15;
      onChanged();
      return backupSourceBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.MigrationSource,
            com.google.cloud.alloydb.v1alpha.MigrationSource.Builder,
            com.google.cloud.alloydb.v1alpha.MigrationSourceOrBuilder>
        migrationSourceBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Cluster created via DMS migration.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the migrationSource field is set.
     */
    @java.lang.Override
    public boolean hasMigrationSource() {
      return sourceCase_ == 16;
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created via DMS migration.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The migrationSource.
     */
    @java.lang.Override
    public com.google.cloud.alloydb.v1alpha.MigrationSource getMigrationSource() {
      if (migrationSourceBuilder_ == null) {
        if (sourceCase_ == 16) {
          return (com.google.cloud.alloydb.v1alpha.MigrationSource) source_;
        }
        return com.google.cloud.alloydb.v1alpha.MigrationSource.getDefaultInstance();
      } else {
        if (sourceCase_ == 16) {
          return migrationSourceBuilder_.getMessage();
        }
        return com.google.cloud.alloydb.v1alpha.MigrationSource.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created via DMS migration.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setMigrationSource(com.google.cloud.alloydb.v1alpha.MigrationSource value) {
      if (migrationSourceBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        source_ = value;
        onChanged();
      } else {
        migrationSourceBuilder_.setMessage(value);
      }
      sourceCase_ = 16;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created via DMS migration.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setMigrationSource(
        com.google.cloud.alloydb.v1alpha.MigrationSource.Builder builderForValue) {
      if (migrationSourceBuilder_ == null) {
        source_ = builderForValue.build();
        onChanged();
      } else {
        migrationSourceBuilder_.setMessage(builderForValue.build());
      }
      sourceCase_ = 16;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created via DMS migration.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeMigrationSource(com.google.cloud.alloydb.v1alpha.MigrationSource value) {
      if (migrationSourceBuilder_ == null) {
        if (sourceCase_ == 16
            && source_ != com.google.cloud.alloydb.v1alpha.MigrationSource.getDefaultInstance()) {
          source_ =
              com.google.cloud.alloydb.v1alpha.MigrationSource.newBuilder(
                      (com.google.cloud.alloydb.v1alpha.MigrationSource) source_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          source_ = value;
        }
        onChanged();
      } else {
        if (sourceCase_ == 16) {
          migrationSourceBuilder_.mergeFrom(value);
        } else {
          migrationSourceBuilder_.setMessage(value);
        }
      }
      sourceCase_ = 16;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created via DMS migration.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearMigrationSource() {
      if (migrationSourceBuilder_ == null) {
        if (sourceCase_ == 16) {
          sourceCase_ = 0;
          source_ = null;
          onChanged();
        }
      } else {
        if (sourceCase_ == 16) {
          sourceCase_ = 0;
          source_ = null;
        }
        migrationSourceBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created via DMS migration.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.MigrationSource.Builder getMigrationSourceBuilder() {
      return getMigrationSourceFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created via DMS migration.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.alloydb.v1alpha.MigrationSourceOrBuilder getMigrationSourceOrBuilder() {
      if ((sourceCase_ == 16) && (migrationSourceBuilder_ != null)) {
        return migrationSourceBuilder_.getMessageOrBuilder();
      } else {
        if (sourceCase_ == 16) {
          return (com.google.cloud.alloydb.v1alpha.MigrationSource) source_;
        }
        return com.google.cloud.alloydb.v1alpha.MigrationSource.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Cluster created via DMS migration.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.MigrationSource,
            com.google.cloud.alloydb.v1alpha.MigrationSource.Builder,
            com.google.cloud.alloydb.v1alpha.MigrationSourceOrBuilder>
        getMigrationSourceFieldBuilder() {
      if (migrationSourceBuilder_ == null) {
        if (!(sourceCase_ == 16)) {
          source_ = com.google.cloud.alloydb.v1alpha.MigrationSource.getDefaultInstance();
        }
        migrationSourceBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.alloydb.v1alpha.MigrationSource,
                com.google.cloud.alloydb.v1alpha.MigrationSource.Builder,
                com.google.cloud.alloydb.v1alpha.MigrationSourceOrBuilder>(
                (com.google.cloud.alloydb.v1alpha.MigrationSource) source_,
                getParentForChildren(),
                isClean());
        source_ = null;
      }
      sourceCase_ = 16;
      onChanged();
      return migrationSourceBuilder_;
    }

    private java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The name of the cluster resource with the format:
     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
     * where the cluster ID segment should satisfy the regex expression
     * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
     * The prefix of the cluster resource name is the name of the parent resource:
     *  * projects/{project}/locations/{region}
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The name of the cluster resource with the format:
     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
     * where the cluster ID segment should satisfy the regex expression
     * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
     * The prefix of the cluster resource name is the name of the parent resource:
     *  * projects/{project}/locations/{region}
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The name of the cluster resource with the format:
     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
     * where the cluster ID segment should satisfy the regex expression
     * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
     * The prefix of the cluster resource name is the name of the parent resource:
     *  * projects/{project}/locations/{region}
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      name_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The name of the cluster resource with the format:
     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
     * where the cluster ID segment should satisfy the regex expression
     * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
     * The prefix of the cluster resource name is the name of the parent resource:
     *  * projects/{project}/locations/{region}
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearName() {
      name_ = getDefaultInstance().getName();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The name of the cluster resource with the format:
     *  * projects/{project}/locations/{region}/clusters/{cluster_id}
     * where the cluster ID segment should satisfy the regex expression
     * `[a-z0-9-]+`. For more details see https://google.aip.dev/122.
     * The prefix of the cluster resource name is the name of the parent resource:
     *  * projects/{project}/locations/{region}
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    public Builder setNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      name_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object displayName_ = "";
    /**
     *
     *
     * <pre>
     * User-settable and human-readable display name for the Cluster.
     * </pre>
     *
     * <code>string display_name = 2;</code>
     *
     * @return The displayName.
     */
    public java.lang.String getDisplayName() {
      java.lang.Object ref = displayName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        displayName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * User-settable and human-readable display name for the Cluster.
     * </pre>
     *
     * <code>string display_name = 2;</code>
     *
     * @return The bytes for displayName.
     */
    public com.google.protobuf.ByteString getDisplayNameBytes() {
      java.lang.Object ref = displayName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        displayName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * User-settable and human-readable display name for the Cluster.
     * </pre>
     *
     * <code>string display_name = 2;</code>
     *
     * @param value The displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      displayName_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * User-settable and human-readable display name for the Cluster.
     * </pre>
     *
     * <code>string display_name = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDisplayName() {
      displayName_ = getDefaultInstance().getDisplayName();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * User-settable and human-readable display name for the Cluster.
     * </pre>
     *
     * <code>string display_name = 2;</code>
     *
     * @param value The bytes for displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      displayName_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private java.lang.Object uid_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The system-generated UID of the resource. The UID is assigned
     * when the resource is created, and it is retained until it is deleted.
     * </pre>
     *
     * <code>string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The uid.
     */
    public java.lang.String getUid() {
      java.lang.Object ref = uid_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        uid_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The system-generated UID of the resource. The UID is assigned
     * when the resource is created, and it is retained until it is deleted.
     * </pre>
     *
     * <code>string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for uid.
     */
    public com.google.protobuf.ByteString getUidBytes() {
      java.lang.Object ref = uid_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        uid_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The system-generated UID of the resource. The UID is assigned
     * when the resource is created, and it is retained until it is deleted.
     * </pre>
     *
     * <code>string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The uid to set.
     * @return This builder for chaining.
     */
    public Builder setUid(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      uid_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The system-generated UID of the resource. The UID is assigned
     * when the resource is created, and it is retained until it is deleted.
     * </pre>
     *
     * <code>string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearUid() {
      uid_ = getDefaultInstance().getUid();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The system-generated UID of the resource. The UID is assigned
     * when the resource is created, and it is retained until it is deleted.
     * </pre>
     *
     * <code>string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for uid to set.
     * @return This builder for chaining.
     */
    public Builder setUidBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      uid_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private com.google.protobuf.Timestamp createTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        createTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Create time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the createTime field is set.
     */
    public boolean hasCreateTime() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Create time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The createTime.
     */
    public com.google.protobuf.Timestamp getCreateTime() {
      if (createTimeBuilder_ == null) {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      } else {
        return createTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Create time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        createTime_ = value;
      } else {
        createTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Create time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (createTimeBuilder_ == null) {
        createTime_ = builderForValue.build();
      } else {
        createTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Create time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000020) != 0)
            && createTime_ != null
            && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getCreateTimeBuilder().mergeFrom(value);
        } else {
          createTime_ = value;
        }
      } else {
        createTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Create time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearCreateTime() {
      bitField0_ = (bitField0_ & ~0x00000020);
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Create time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
      bitField0_ |= 0x00000020;
      onChanged();
      return getCreateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Create time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      if (createTimeBuilder_ != null) {
        return createTimeBuilder_.getMessageOrBuilder();
      } else {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Create time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getCreateTimeFieldBuilder() {
      if (createTimeBuilder_ == null) {
        createTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getCreateTime(), getParentForChildren(), isClean());
        createTime_ = null;
      }
      return createTimeBuilder_;
    }

    private com.google.protobuf.Timestamp updateTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        updateTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Update time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the updateTime field is set.
     */
    public boolean hasUpdateTime() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Update time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The updateTime.
     */
    public com.google.protobuf.Timestamp getUpdateTime() {
      if (updateTimeBuilder_ == null) {
        return updateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : updateTime_;
      } else {
        return updateTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Update time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      if (updateTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        updateTime_ = value;
      } else {
        updateTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Update time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (updateTimeBuilder_ == null) {
        updateTime_ = builderForValue.build();
      } else {
        updateTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Update time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
      if (updateTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0)
            && updateTime_ != null
            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getUpdateTimeBuilder().mergeFrom(value);
        } else {
          updateTime_ = value;
        }
      } else {
        updateTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Update time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearUpdateTime() {
      bitField0_ = (bitField0_ & ~0x00000040);
      updateTime_ = null;
      if (updateTimeBuilder_ != null) {
        updateTimeBuilder_.dispose();
        updateTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Update time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return getUpdateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Update time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      if (updateTimeBuilder_ != null) {
        return updateTimeBuilder_.getMessageOrBuilder();
      } else {
        return updateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : updateTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Update time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getUpdateTimeFieldBuilder() {
      if (updateTimeBuilder_ == null) {
        updateTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getUpdateTime(), getParentForChildren(), isClean());
        updateTime_ = null;
      }
      return updateTimeBuilder_;
    }

    private com.google.protobuf.Timestamp deleteTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        deleteTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Delete time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the deleteTime field is set.
     */
    public boolean hasDeleteTime() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Delete time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The deleteTime.
     */
    public com.google.protobuf.Timestamp getDeleteTime() {
      if (deleteTimeBuilder_ == null) {
        return deleteTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : deleteTime_;
      } else {
        return deleteTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Delete time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setDeleteTime(com.google.protobuf.Timestamp value) {
      if (deleteTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        deleteTime_ = value;
      } else {
        deleteTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Delete time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (deleteTimeBuilder_ == null) {
        deleteTime_ = builderForValue.build();
      } else {
        deleteTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Delete time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) {
      if (deleteTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000080) != 0)
            && deleteTime_ != null
            && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getDeleteTimeBuilder().mergeFrom(value);
        } else {
          deleteTime_ = value;
        }
      } else {
        deleteTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Delete time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearDeleteTime() {
      bitField0_ = (bitField0_ & ~0x00000080);
      deleteTime_ = null;
      if (deleteTimeBuilder_ != null) {
        deleteTimeBuilder_.dispose();
        deleteTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Delete time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() {
      bitField0_ |= 0x00000080;
      onChanged();
      return getDeleteTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Delete time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      if (deleteTimeBuilder_ != null) {
        return deleteTimeBuilder_.getMessageOrBuilder();
      } else {
        return deleteTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : deleteTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Delete time stamp
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getDeleteTimeFieldBuilder() {
      if (deleteTimeBuilder_ == null) {
        deleteTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getDeleteTime(), getParentForChildren(), isClean());
        deleteTime_ = null;
      }
      return deleteTimeBuilder_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
      if (labels_ == null) {
        return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
      }
      return labels_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetMutableLabels() {
      if (labels_ == null) {
        labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
      }
      if (!labels_.isMutable()) {
        labels_ = labels_.copy();
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return labels_;
    }

    public int getLabelsCount() {
      return internalGetLabels().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * Labels as key value pairs
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 7;</code>
     */
    @java.lang.Override
    public boolean containsLabels(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetLabels().getMap().containsKey(key);
    }
    /** Use {@link #getLabelsMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getLabels() {
      return getLabelsMap();
    }
    /**
     *
     *
     * <pre>
     * Labels as key value pairs
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 7;</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
      return internalGetLabels().getMap();
    }
    /**
     *
     *
     * <pre>
     * Labels as key value pairs
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 7;</code>
     */
    @java.lang.Override
    public /* nullable */ java.lang.String getLabelsOrDefault(
        java.lang.String key,
        /* nullable */
        java.lang.String defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * Labels as key value pairs
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 7;</code>
     */
    @java.lang.Override
    public java.lang.String getLabelsOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearLabels() {
      bitField0_ = (bitField0_ & ~0x00000100);
      internalGetMutableLabels().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Labels as key value pairs
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 7;</code>
     */
    public Builder removeLabels(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableLabels().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
      bitField0_ |= 0x00000100;
      return internalGetMutableLabels().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * Labels as key value pairs
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 7;</code>
     */
    public Builder putLabels(java.lang.String key, java.lang.String value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }
      internalGetMutableLabels().getMutableMap().put(key, value);
      bitField0_ |= 0x00000100;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Labels as key value pairs
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 7;</code>
     */
    public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableLabels().getMutableMap().putAll(values);
      bitField0_ |= 0x00000100;
      return this;
    }

    private int state_ = 0;
    /**
     *
     *
     * <pre>
     * Output only. The current serving state of the cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The enum numeric value on the wire for state.
     */
    @java.lang.Override
    public int getStateValue() {
      return state_;
    }
    /**
     *
     *
     * <pre>
     * Output only. The current serving state of the cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The enum numeric value on the wire for state to set.
     * @return This builder for chaining.
     */
    public Builder setStateValue(int value) {
      state_ = value;
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The current serving state of the cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The state.
     */
    @java.lang.Override
    public com.google.cloud.alloydb.v1alpha.Cluster.State getState() {
      com.google.cloud.alloydb.v1alpha.Cluster.State result =
          com.google.cloud.alloydb.v1alpha.Cluster.State.forNumber(state_);
      return result == null ? com.google.cloud.alloydb.v1alpha.Cluster.State.UNRECOGNIZED : result;
    }
    /**
     *
     *
     * <pre>
     * Output only. The current serving state of the cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The state to set.
     * @return This builder for chaining.
     */
    public Builder setState(com.google.cloud.alloydb.v1alpha.Cluster.State value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000200;
      state_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The current serving state of the cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearState() {
      bitField0_ = (bitField0_ & ~0x00000200);
      state_ = 0;
      onChanged();
      return this;
    }

    private int clusterType_ = 0;
    /**
     *
     *
     * <pre>
     * Output only. The type of the cluster. This is an output-only field and it's
     * populated at the Cluster creation time or the Cluster promotion
     * time. The cluster type is determined by which RPC was used to create
     * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The enum numeric value on the wire for clusterType.
     */
    @java.lang.Override
    public int getClusterTypeValue() {
      return clusterType_;
    }
    /**
     *
     *
     * <pre>
     * Output only. The type of the cluster. This is an output-only field and it's
     * populated at the Cluster creation time or the Cluster promotion
     * time. The cluster type is determined by which RPC was used to create
     * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The enum numeric value on the wire for clusterType to set.
     * @return This builder for chaining.
     */
    public Builder setClusterTypeValue(int value) {
      clusterType_ = value;
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The type of the cluster. This is an output-only field and it's
     * populated at the Cluster creation time or the Cluster promotion
     * time. The cluster type is determined by which RPC was used to create
     * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The clusterType.
     */
    @java.lang.Override
    public com.google.cloud.alloydb.v1alpha.Cluster.ClusterType getClusterType() {
      com.google.cloud.alloydb.v1alpha.Cluster.ClusterType result =
          com.google.cloud.alloydb.v1alpha.Cluster.ClusterType.forNumber(clusterType_);
      return result == null
          ? com.google.cloud.alloydb.v1alpha.Cluster.ClusterType.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * Output only. The type of the cluster. This is an output-only field and it's
     * populated at the Cluster creation time or the Cluster promotion
     * time. The cluster type is determined by which RPC was used to create
     * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The clusterType to set.
     * @return This builder for chaining.
     */
    public Builder setClusterType(com.google.cloud.alloydb.v1alpha.Cluster.ClusterType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000400;
      clusterType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The type of the cluster. This is an output-only field and it's
     * populated at the Cluster creation time or the Cluster promotion
     * time. The cluster type is determined by which RPC was used to create
     * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearClusterType() {
      bitField0_ = (bitField0_ & ~0x00000400);
      clusterType_ = 0;
      onChanged();
      return this;
    }

    private int databaseVersion_ = 0;
    /**
     *
     *
     * <pre>
     * Output only. The database engine major version. This is an output-only
     * field and it's populated at the Cluster creation time. This field cannot be
     * changed after cluster creation.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The enum numeric value on the wire for databaseVersion.
     */
    @java.lang.Override
    public int getDatabaseVersionValue() {
      return databaseVersion_;
    }
    /**
     *
     *
     * <pre>
     * Output only. The database engine major version. This is an output-only
     * field and it's populated at the Cluster creation time. This field cannot be
     * changed after cluster creation.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The enum numeric value on the wire for databaseVersion to set.
     * @return This builder for chaining.
     */
    public Builder setDatabaseVersionValue(int value) {
      databaseVersion_ = value;
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The database engine major version. This is an output-only
     * field and it's populated at the Cluster creation time. This field cannot be
     * changed after cluster creation.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The databaseVersion.
     */
    @java.lang.Override
    public com.google.cloud.alloydb.v1alpha.DatabaseVersion getDatabaseVersion() {
      com.google.cloud.alloydb.v1alpha.DatabaseVersion result =
          com.google.cloud.alloydb.v1alpha.DatabaseVersion.forNumber(databaseVersion_);
      return result == null
          ? com.google.cloud.alloydb.v1alpha.DatabaseVersion.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * Output only. The database engine major version. This is an output-only
     * field and it's populated at the Cluster creation time. This field cannot be
     * changed after cluster creation.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The databaseVersion to set.
     * @return This builder for chaining.
     */
    public Builder setDatabaseVersion(com.google.cloud.alloydb.v1alpha.DatabaseVersion value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000800;
      databaseVersion_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The database engine major version. This is an output-only
     * field and it's populated at the Cluster creation time. This field cannot be
     * changed after cluster creation.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDatabaseVersion() {
      bitField0_ = (bitField0_ & ~0x00000800);
      databaseVersion_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object network_ = "";
    /**
     *
     *
     * <pre>
     * Required. The resource link for the VPC network in which cluster resources
     * are created and from which they are accessible via Private IP. The network
     * must belong to the same project as the cluster. It is specified in the
     * form: "projects/{project_number}/global/networks/{network_id}". This is
     * required to create a cluster. It can be updated, but it cannot be removed.
     * </pre>
     *
     * <code>
     * string network = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The network.
     */
    public java.lang.String getNetwork() {
      java.lang.Object ref = network_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        network_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The resource link for the VPC network in which cluster resources
     * are created and from which they are accessible via Private IP. The network
     * must belong to the same project as the cluster. It is specified in the
     * form: "projects/{project_number}/global/networks/{network_id}". This is
     * required to create a cluster. It can be updated, but it cannot be removed.
     * </pre>
     *
     * <code>
     * string network = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The bytes for network.
     */
    public com.google.protobuf.ByteString getNetworkBytes() {
      java.lang.Object ref = network_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        network_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The resource link for the VPC network in which cluster resources
     * are created and from which they are accessible via Private IP. The network
     * must belong to the same project as the cluster. It is specified in the
     * form: "projects/{project_number}/global/networks/{network_id}". This is
     * required to create a cluster. It can be updated, but it cannot be removed.
     * </pre>
     *
     * <code>
     * string network = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The network to set.
     * @return This builder for chaining.
     */
    public Builder setNetwork(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      network_ = value;
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The resource link for the VPC network in which cluster resources
     * are created and from which they are accessible via Private IP. The network
     * must belong to the same project as the cluster. It is specified in the
     * form: "projects/{project_number}/global/networks/{network_id}". This is
     * required to create a cluster. It can be updated, but it cannot be removed.
     * </pre>
     *
     * <code>
     * string network = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearNetwork() {
      network_ = getDefaultInstance().getNetwork();
      bitField0_ = (bitField0_ & ~0x00001000);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The resource link for the VPC network in which cluster resources
     * are created and from which they are accessible via Private IP. The network
     * must belong to the same project as the cluster. It is specified in the
     * form: "projects/{project_number}/global/networks/{network_id}". This is
     * required to create a cluster. It can be updated, but it cannot be removed.
     * </pre>
     *
     * <code>
     * string network = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The bytes for network to set.
     * @return This builder for chaining.
     */
    public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      network_ = value;
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }

    private java.lang.Object etag_ = "";
    /**
     *
     *
     * <pre>
     * For Resource freshness validation (https://google.aip.dev/154)
     * </pre>
     *
     * <code>string etag = 11;</code>
     *
     * @return The etag.
     */
    public java.lang.String getEtag() {
      java.lang.Object ref = etag_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        etag_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * For Resource freshness validation (https://google.aip.dev/154)
     * </pre>
     *
     * <code>string etag = 11;</code>
     *
     * @return The bytes for etag.
     */
    public com.google.protobuf.ByteString getEtagBytes() {
      java.lang.Object ref = etag_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        etag_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * For Resource freshness validation (https://google.aip.dev/154)
     * </pre>
     *
     * <code>string etag = 11;</code>
     *
     * @param value The etag to set.
     * @return This builder for chaining.
     */
    public Builder setEtag(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      etag_ = value;
      bitField0_ |= 0x00002000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * For Resource freshness validation (https://google.aip.dev/154)
     * </pre>
     *
     * <code>string etag = 11;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearEtag() {
      etag_ = getDefaultInstance().getEtag();
      bitField0_ = (bitField0_ & ~0x00002000);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * For Resource freshness validation (https://google.aip.dev/154)
     * </pre>
     *
     * <code>string etag = 11;</code>
     *
     * @param value The bytes for etag to set.
     * @return This builder for chaining.
     */
    public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      etag_ = value;
      bitField0_ |= 0x00002000;
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> annotations_;

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetAnnotations() {
      if (annotations_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            AnnotationsDefaultEntryHolder.defaultEntry);
      }
      return annotations_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetMutableAnnotations() {
      if (annotations_ == null) {
        annotations_ =
            com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry);
      }
      if (!annotations_.isMutable()) {
        annotations_ = annotations_.copy();
      }
      bitField0_ |= 0x00004000;
      onChanged();
      return annotations_;
    }

    public int getAnnotationsCount() {
      return internalGetAnnotations().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * Annotations to allow client tools to store small amount of arbitrary data.
     * This is distinct from labels.
     * https://google.aip.dev/128
     * </pre>
     *
     * <code>map&lt;string, string&gt; annotations = 12;</code>
     */
    @java.lang.Override
    public boolean containsAnnotations(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetAnnotations().getMap().containsKey(key);
    }
    /** Use {@link #getAnnotationsMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getAnnotations() {
      return getAnnotationsMap();
    }
    /**
     *
     *
     * <pre>
     * Annotations to allow client tools to store small amount of arbitrary data.
     * This is distinct from labels.
     * https://google.aip.dev/128
     * </pre>
     *
     * <code>map&lt;string, string&gt; annotations = 12;</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getAnnotationsMap() {
      return internalGetAnnotations().getMap();
    }
    /**
     *
     *
     * <pre>
     * Annotations to allow client tools to store small amount of arbitrary data.
     * This is distinct from labels.
     * https://google.aip.dev/128
     * </pre>
     *
     * <code>map&lt;string, string&gt; annotations = 12;</code>
     */
    @java.lang.Override
    public /* nullable */ java.lang.String getAnnotationsOrDefault(
        java.lang.String key,
        /* nullable */
        java.lang.String defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetAnnotations().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * Annotations to allow client tools to store small amount of arbitrary data.
     * This is distinct from labels.
     * https://google.aip.dev/128
     * </pre>
     *
     * <code>map&lt;string, string&gt; annotations = 12;</code>
     */
    @java.lang.Override
    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetAnnotations().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearAnnotations() {
      bitField0_ = (bitField0_ & ~0x00004000);
      internalGetMutableAnnotations().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Annotations to allow client tools to store small amount of arbitrary data.
     * This is distinct from labels.
     * https://google.aip.dev/128
     * </pre>
     *
     * <code>map&lt;string, string&gt; annotations = 12;</code>
     */
    public Builder removeAnnotations(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableAnnotations().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMutableAnnotations() {
      bitField0_ |= 0x00004000;
      return internalGetMutableAnnotations().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * Annotations to allow client tools to store small amount of arbitrary data.
     * This is distinct from labels.
     * https://google.aip.dev/128
     * </pre>
     *
     * <code>map&lt;string, string&gt; annotations = 12;</code>
     */
    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }
      internalGetMutableAnnotations().getMutableMap().put(key, value);
      bitField0_ |= 0x00004000;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Annotations to allow client tools to store small amount of arbitrary data.
     * This is distinct from labels.
     * https://google.aip.dev/128
     * </pre>
     *
     * <code>map&lt;string, string&gt; annotations = 12;</code>
     */
    public Builder putAllAnnotations(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableAnnotations().getMutableMap().putAll(values);
      bitField0_ |= 0x00004000;
      return this;
    }

    private boolean reconciling_;
    /**
     *
     *
     * <pre>
     * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
     * Set to true if the current state of Cluster does not match the user's
     * intended state, and the service is actively updating the resource to
     * reconcile them. This can happen due to user-triggered updates or
     * system actions like failover or maintenance.
     * </pre>
     *
     * <code>bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The reconciling.
     */
    @java.lang.Override
    public boolean getReconciling() {
      return reconciling_;
    }
    /**
     *
     *
     * <pre>
     * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
     * Set to true if the current state of Cluster does not match the user's
     * intended state, and the service is actively updating the resource to
     * reconcile them. This can happen due to user-triggered updates or
     * system actions like failover or maintenance.
     * </pre>
     *
     * <code>bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The reconciling to set.
     * @return This builder for chaining.
     */
    public Builder setReconciling(boolean value) {

      reconciling_ = value;
      bitField0_ |= 0x00008000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Reconciling (https://google.aip.dev/128#reconciliation).
     * Set to true if the current state of Cluster does not match the user's
     * intended state, and the service is actively updating the resource to
     * reconcile them. This can happen due to user-triggered updates or
     * system actions like failover or maintenance.
     * </pre>
     *
     * <code>bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearReconciling() {
      bitField0_ = (bitField0_ & ~0x00008000);
      reconciling_ = false;
      onChanged();
      return this;
    }

    private com.google.cloud.alloydb.v1alpha.UserPassword initialUser_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.UserPassword,
            com.google.cloud.alloydb.v1alpha.UserPassword.Builder,
            com.google.cloud.alloydb.v1alpha.UserPasswordOrBuilder>
        initialUserBuilder_;
    /**
     *
     *
     * <pre>
     * Input only. Initial user to setup during cluster creation. Required.
     * If used in `RestoreCluster` this is ignored.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
     * </code>
     *
     * @return Whether the initialUser field is set.
     */
    public boolean hasInitialUser() {
      return ((bitField0_ & 0x00010000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Input only. Initial user to setup during cluster creation. Required.
     * If used in `RestoreCluster` this is ignored.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
     * </code>
     *
     * @return The initialUser.
     */
    public com.google.cloud.alloydb.v1alpha.UserPassword getInitialUser() {
      if (initialUserBuilder_ == null) {
        return initialUser_ == null
            ? com.google.cloud.alloydb.v1alpha.UserPassword.getDefaultInstance()
            : initialUser_;
      } else {
        return initialUserBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Input only. Initial user to setup during cluster creation. Required.
     * If used in `RestoreCluster` this is ignored.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
     * </code>
     */
    public Builder setInitialUser(com.google.cloud.alloydb.v1alpha.UserPassword value) {
      if (initialUserBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        initialUser_ = value;
      } else {
        initialUserBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00010000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Input only. Initial user to setup during cluster creation. Required.
     * If used in `RestoreCluster` this is ignored.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
     * </code>
     */
    public Builder setInitialUser(
        com.google.cloud.alloydb.v1alpha.UserPassword.Builder builderForValue) {
      if (initialUserBuilder_ == null) {
        initialUser_ = builderForValue.build();
      } else {
        initialUserBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00010000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Input only. Initial user to setup during cluster creation. Required.
     * If used in `RestoreCluster` this is ignored.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
     * </code>
     */
    public Builder mergeInitialUser(com.google.cloud.alloydb.v1alpha.UserPassword value) {
      if (initialUserBuilder_ == null) {
        if (((bitField0_ & 0x00010000) != 0)
            && initialUser_ != null
            && initialUser_ != com.google.cloud.alloydb.v1alpha.UserPassword.getDefaultInstance()) {
          getInitialUserBuilder().mergeFrom(value);
        } else {
          initialUser_ = value;
        }
      } else {
        initialUserBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00010000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Input only. Initial user to setup during cluster creation. Required.
     * If used in `RestoreCluster` this is ignored.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
     * </code>
     */
    public Builder clearInitialUser() {
      bitField0_ = (bitField0_ & ~0x00010000);
      initialUser_ = null;
      if (initialUserBuilder_ != null) {
        initialUserBuilder_.dispose();
        initialUserBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Input only. Initial user to setup during cluster creation. Required.
     * If used in `RestoreCluster` this is ignored.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.UserPassword.Builder getInitialUserBuilder() {
      bitField0_ |= 0x00010000;
      onChanged();
      return getInitialUserFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Input only. Initial user to setup during cluster creation. Required.
     * If used in `RestoreCluster` this is ignored.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.UserPasswordOrBuilder getInitialUserOrBuilder() {
      if (initialUserBuilder_ != null) {
        return initialUserBuilder_.getMessageOrBuilder();
      } else {
        return initialUser_ == null
            ? com.google.cloud.alloydb.v1alpha.UserPassword.getDefaultInstance()
            : initialUser_;
      }
    }
    /**
     *
     *
     * <pre>
     * Input only. Initial user to setup during cluster creation. Required.
     * If used in `RestoreCluster` this is ignored.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.UserPassword,
            com.google.cloud.alloydb.v1alpha.UserPassword.Builder,
            com.google.cloud.alloydb.v1alpha.UserPasswordOrBuilder>
        getInitialUserFieldBuilder() {
      if (initialUserBuilder_ == null) {
        initialUserBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.alloydb.v1alpha.UserPassword,
                com.google.cloud.alloydb.v1alpha.UserPassword.Builder,
                com.google.cloud.alloydb.v1alpha.UserPasswordOrBuilder>(
                getInitialUser(), getParentForChildren(), isClean());
        initialUser_ = null;
      }
      return initialUserBuilder_;
    }

    private com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy automatedBackupPolicy_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy,
            com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.Builder,
            com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicyOrBuilder>
        automatedBackupPolicyBuilder_;
    /**
     *
     *
     * <pre>
     * The automated backup policy for this cluster.
     * If no policy is provided then the default policy will be used. If backups
     * are supported for the cluster, the default policy takes one backup a day,
     * has a backup window of 1 hour, and retains backups for 14 days.
     * For more information on the defaults, consult the
     * documentation for the message type.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy automated_backup_policy = 17;
     * </code>
     *
     * @return Whether the automatedBackupPolicy field is set.
     */
    public boolean hasAutomatedBackupPolicy() {
      return ((bitField0_ & 0x00020000) != 0);
    }
    /**
     *
     *
     * <pre>
     * The automated backup policy for this cluster.
     * If no policy is provided then the default policy will be used. If backups
     * are supported for the cluster, the default policy takes one backup a day,
     * has a backup window of 1 hour, and retains backups for 14 days.
     * For more information on the defaults, consult the
     * documentation for the message type.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy automated_backup_policy = 17;
     * </code>
     *
     * @return The automatedBackupPolicy.
     */
    public com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy getAutomatedBackupPolicy() {
      if (automatedBackupPolicyBuilder_ == null) {
        return automatedBackupPolicy_ == null
            ? com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.getDefaultInstance()
            : automatedBackupPolicy_;
      } else {
        return automatedBackupPolicyBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The automated backup policy for this cluster.
     * If no policy is provided then the default policy will be used. If backups
     * are supported for the cluster, the default policy takes one backup a day,
     * has a backup window of 1 hour, and retains backups for 14 days.
     * For more information on the defaults, consult the
     * documentation for the message type.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy automated_backup_policy = 17;
     * </code>
     */
    public Builder setAutomatedBackupPolicy(
        com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy value) {
      if (automatedBackupPolicyBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        automatedBackupPolicy_ = value;
      } else {
        automatedBackupPolicyBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00020000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The automated backup policy for this cluster.
     * If no policy is provided then the default policy will be used. If backups
     * are supported for the cluster, the default policy takes one backup a day,
     * has a backup window of 1 hour, and retains backups for 14 days.
     * For more information on the defaults, consult the
     * documentation for the message type.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy automated_backup_policy = 17;
     * </code>
     */
    public Builder setAutomatedBackupPolicy(
        com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.Builder builderForValue) {
      if (automatedBackupPolicyBuilder_ == null) {
        automatedBackupPolicy_ = builderForValue.build();
      } else {
        automatedBackupPolicyBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00020000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The automated backup policy for this cluster.
     * If no policy is provided then the default policy will be used. If backups
     * are supported for the cluster, the default policy takes one backup a day,
     * has a backup window of 1 hour, and retains backups for 14 days.
     * For more information on the defaults, consult the
     * documentation for the message type.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy automated_backup_policy = 17;
     * </code>
     */
    public Builder mergeAutomatedBackupPolicy(
        com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy value) {
      if (automatedBackupPolicyBuilder_ == null) {
        if (((bitField0_ & 0x00020000) != 0)
            && automatedBackupPolicy_ != null
            && automatedBackupPolicy_
                != com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.getDefaultInstance()) {
          getAutomatedBackupPolicyBuilder().mergeFrom(value);
        } else {
          automatedBackupPolicy_ = value;
        }
      } else {
        automatedBackupPolicyBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00020000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The automated backup policy for this cluster.
     * If no policy is provided then the default policy will be used. If backups
     * are supported for the cluster, the default policy takes one backup a day,
     * has a backup window of 1 hour, and retains backups for 14 days.
     * For more information on the defaults, consult the
     * documentation for the message type.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy automated_backup_policy = 17;
     * </code>
     */
    public Builder clearAutomatedBackupPolicy() {
      bitField0_ = (bitField0_ & ~0x00020000);
      automatedBackupPolicy_ = null;
      if (automatedBackupPolicyBuilder_ != null) {
        automatedBackupPolicyBuilder_.dispose();
        automatedBackupPolicyBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The automated backup policy for this cluster.
     * If no policy is provided then the default policy will be used. If backups
     * are supported for the cluster, the default policy takes one backup a day,
     * has a backup window of 1 hour, and retains backups for 14 days.
     * For more information on the defaults, consult the
     * documentation for the message type.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy automated_backup_policy = 17;
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.Builder
        getAutomatedBackupPolicyBuilder() {
      bitField0_ |= 0x00020000;
      onChanged();
      return getAutomatedBackupPolicyFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The automated backup policy for this cluster.
     * If no policy is provided then the default policy will be used. If backups
     * are supported for the cluster, the default policy takes one backup a day,
     * has a backup window of 1 hour, and retains backups for 14 days.
     * For more information on the defaults, consult the
     * documentation for the message type.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy automated_backup_policy = 17;
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicyOrBuilder
        getAutomatedBackupPolicyOrBuilder() {
      if (automatedBackupPolicyBuilder_ != null) {
        return automatedBackupPolicyBuilder_.getMessageOrBuilder();
      } else {
        return automatedBackupPolicy_ == null
            ? com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.getDefaultInstance()
            : automatedBackupPolicy_;
      }
    }
    /**
     *
     *
     * <pre>
     * The automated backup policy for this cluster.
     * If no policy is provided then the default policy will be used. If backups
     * are supported for the cluster, the default policy takes one backup a day,
     * has a backup window of 1 hour, and retains backups for 14 days.
     * For more information on the defaults, consult the
     * documentation for the message type.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy automated_backup_policy = 17;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy,
            com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.Builder,
            com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicyOrBuilder>
        getAutomatedBackupPolicyFieldBuilder() {
      if (automatedBackupPolicyBuilder_ == null) {
        automatedBackupPolicyBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy,
                com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.Builder,
                com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicyOrBuilder>(
                getAutomatedBackupPolicy(), getParentForChildren(), isClean());
        automatedBackupPolicy_ = null;
      }
      return automatedBackupPolicyBuilder_;
    }

    private com.google.cloud.alloydb.v1alpha.SslConfig sslConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.SslConfig,
            com.google.cloud.alloydb.v1alpha.SslConfig.Builder,
            com.google.cloud.alloydb.v1alpha.SslConfigOrBuilder>
        sslConfigBuilder_;
    /**
     *
     *
     * <pre>
     * SSL configuration for this AlloyDB Cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18;</code>
     *
     * @return Whether the sslConfig field is set.
     */
    public boolean hasSslConfig() {
      return ((bitField0_ & 0x00040000) != 0);
    }
    /**
     *
     *
     * <pre>
     * SSL configuration for this AlloyDB Cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18;</code>
     *
     * @return The sslConfig.
     */
    public com.google.cloud.alloydb.v1alpha.SslConfig getSslConfig() {
      if (sslConfigBuilder_ == null) {
        return sslConfig_ == null
            ? com.google.cloud.alloydb.v1alpha.SslConfig.getDefaultInstance()
            : sslConfig_;
      } else {
        return sslConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * SSL configuration for this AlloyDB Cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18;</code>
     */
    public Builder setSslConfig(com.google.cloud.alloydb.v1alpha.SslConfig value) {
      if (sslConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        sslConfig_ = value;
      } else {
        sslConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00040000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * SSL configuration for this AlloyDB Cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18;</code>
     */
    public Builder setSslConfig(
        com.google.cloud.alloydb.v1alpha.SslConfig.Builder builderForValue) {
      if (sslConfigBuilder_ == null) {
        sslConfig_ = builderForValue.build();
      } else {
        sslConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00040000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * SSL configuration for this AlloyDB Cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18;</code>
     */
    public Builder mergeSslConfig(com.google.cloud.alloydb.v1alpha.SslConfig value) {
      if (sslConfigBuilder_ == null) {
        if (((bitField0_ & 0x00040000) != 0)
            && sslConfig_ != null
            && sslConfig_ != com.google.cloud.alloydb.v1alpha.SslConfig.getDefaultInstance()) {
          getSslConfigBuilder().mergeFrom(value);
        } else {
          sslConfig_ = value;
        }
      } else {
        sslConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00040000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * SSL configuration for this AlloyDB Cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18;</code>
     */
    public Builder clearSslConfig() {
      bitField0_ = (bitField0_ & ~0x00040000);
      sslConfig_ = null;
      if (sslConfigBuilder_ != null) {
        sslConfigBuilder_.dispose();
        sslConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * SSL configuration for this AlloyDB Cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18;</code>
     */
    public com.google.cloud.alloydb.v1alpha.SslConfig.Builder getSslConfigBuilder() {
      bitField0_ |= 0x00040000;
      onChanged();
      return getSslConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * SSL configuration for this AlloyDB Cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18;</code>
     */
    public com.google.cloud.alloydb.v1alpha.SslConfigOrBuilder getSslConfigOrBuilder() {
      if (sslConfigBuilder_ != null) {
        return sslConfigBuilder_.getMessageOrBuilder();
      } else {
        return sslConfig_ == null
            ? com.google.cloud.alloydb.v1alpha.SslConfig.getDefaultInstance()
            : sslConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * SSL configuration for this AlloyDB Cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.SslConfig,
            com.google.cloud.alloydb.v1alpha.SslConfig.Builder,
            com.google.cloud.alloydb.v1alpha.SslConfigOrBuilder>
        getSslConfigFieldBuilder() {
      if (sslConfigBuilder_ == null) {
        sslConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.alloydb.v1alpha.SslConfig,
                com.google.cloud.alloydb.v1alpha.SslConfig.Builder,
                com.google.cloud.alloydb.v1alpha.SslConfigOrBuilder>(
                getSslConfig(), getParentForChildren(), isClean());
        sslConfig_ = null;
      }
      return sslConfigBuilder_;
    }

    private com.google.cloud.alloydb.v1alpha.EncryptionConfig encryptionConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.EncryptionConfig,
            com.google.cloud.alloydb.v1alpha.EncryptionConfig.Builder,
            com.google.cloud.alloydb.v1alpha.EncryptionConfigOrBuilder>
        encryptionConfigBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. The encryption config can be specified to encrypt the data disks
     * and other persistent data resources of a cluster with a
     * customer-managed encryption key (CMEK). When this field is not
     * specified, the cluster will then use default encryption scheme to
     * protect the user data.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the encryptionConfig field is set.
     */
    public boolean hasEncryptionConfig() {
      return ((bitField0_ & 0x00080000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. The encryption config can be specified to encrypt the data disks
     * and other persistent data resources of a cluster with a
     * customer-managed encryption key (CMEK). When this field is not
     * specified, the cluster will then use default encryption scheme to
     * protect the user data.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The encryptionConfig.
     */
    public com.google.cloud.alloydb.v1alpha.EncryptionConfig getEncryptionConfig() {
      if (encryptionConfigBuilder_ == null) {
        return encryptionConfig_ == null
            ? com.google.cloud.alloydb.v1alpha.EncryptionConfig.getDefaultInstance()
            : encryptionConfig_;
      } else {
        return encryptionConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The encryption config can be specified to encrypt the data disks
     * and other persistent data resources of a cluster with a
     * customer-managed encryption key (CMEK). When this field is not
     * specified, the cluster will then use default encryption scheme to
     * protect the user data.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setEncryptionConfig(com.google.cloud.alloydb.v1alpha.EncryptionConfig value) {
      if (encryptionConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        encryptionConfig_ = value;
      } else {
        encryptionConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00080000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The encryption config can be specified to encrypt the data disks
     * and other persistent data resources of a cluster with a
     * customer-managed encryption key (CMEK). When this field is not
     * specified, the cluster will then use default encryption scheme to
     * protect the user data.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setEncryptionConfig(
        com.google.cloud.alloydb.v1alpha.EncryptionConfig.Builder builderForValue) {
      if (encryptionConfigBuilder_ == null) {
        encryptionConfig_ = builderForValue.build();
      } else {
        encryptionConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00080000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The encryption config can be specified to encrypt the data disks
     * and other persistent data resources of a cluster with a
     * customer-managed encryption key (CMEK). When this field is not
     * specified, the cluster will then use default encryption scheme to
     * protect the user data.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeEncryptionConfig(com.google.cloud.alloydb.v1alpha.EncryptionConfig value) {
      if (encryptionConfigBuilder_ == null) {
        if (((bitField0_ & 0x00080000) != 0)
            && encryptionConfig_ != null
            && encryptionConfig_
                != com.google.cloud.alloydb.v1alpha.EncryptionConfig.getDefaultInstance()) {
          getEncryptionConfigBuilder().mergeFrom(value);
        } else {
          encryptionConfig_ = value;
        }
      } else {
        encryptionConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00080000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The encryption config can be specified to encrypt the data disks
     * and other persistent data resources of a cluster with a
     * customer-managed encryption key (CMEK). When this field is not
     * specified, the cluster will then use default encryption scheme to
     * protect the user data.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearEncryptionConfig() {
      bitField0_ = (bitField0_ & ~0x00080000);
      encryptionConfig_ = null;
      if (encryptionConfigBuilder_ != null) {
        encryptionConfigBuilder_.dispose();
        encryptionConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. The encryption config can be specified to encrypt the data disks
     * and other persistent data resources of a cluster with a
     * customer-managed encryption key (CMEK). When this field is not
     * specified, the cluster will then use default encryption scheme to
     * protect the user data.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.EncryptionConfig.Builder getEncryptionConfigBuilder() {
      bitField0_ |= 0x00080000;
      onChanged();
      return getEncryptionConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. The encryption config can be specified to encrypt the data disks
     * and other persistent data resources of a cluster with a
     * customer-managed encryption key (CMEK). When this field is not
     * specified, the cluster will then use default encryption scheme to
     * protect the user data.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.EncryptionConfigOrBuilder
        getEncryptionConfigOrBuilder() {
      if (encryptionConfigBuilder_ != null) {
        return encryptionConfigBuilder_.getMessageOrBuilder();
      } else {
        return encryptionConfig_ == null
            ? com.google.cloud.alloydb.v1alpha.EncryptionConfig.getDefaultInstance()
            : encryptionConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. The encryption config can be specified to encrypt the data disks
     * and other persistent data resources of a cluster with a
     * customer-managed encryption key (CMEK). When this field is not
     * specified, the cluster will then use default encryption scheme to
     * protect the user data.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.EncryptionConfig,
            com.google.cloud.alloydb.v1alpha.EncryptionConfig.Builder,
            com.google.cloud.alloydb.v1alpha.EncryptionConfigOrBuilder>
        getEncryptionConfigFieldBuilder() {
      if (encryptionConfigBuilder_ == null) {
        encryptionConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.alloydb.v1alpha.EncryptionConfig,
                com.google.cloud.alloydb.v1alpha.EncryptionConfig.Builder,
                com.google.cloud.alloydb.v1alpha.EncryptionConfigOrBuilder>(
                getEncryptionConfig(), getParentForChildren(), isClean());
        encryptionConfig_ = null;
      }
      return encryptionConfigBuilder_;
    }

    private com.google.cloud.alloydb.v1alpha.EncryptionInfo encryptionInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.EncryptionInfo,
            com.google.cloud.alloydb.v1alpha.EncryptionInfo.Builder,
            com.google.cloud.alloydb.v1alpha.EncryptionInfoOrBuilder>
        encryptionInfoBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. The encryption information for the cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the encryptionInfo field is set.
     */
    public boolean hasEncryptionInfo() {
      return ((bitField0_ & 0x00100000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. The encryption information for the cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The encryptionInfo.
     */
    public com.google.cloud.alloydb.v1alpha.EncryptionInfo getEncryptionInfo() {
      if (encryptionInfoBuilder_ == null) {
        return encryptionInfo_ == null
            ? com.google.cloud.alloydb.v1alpha.EncryptionInfo.getDefaultInstance()
            : encryptionInfo_;
      } else {
        return encryptionInfoBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The encryption information for the cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setEncryptionInfo(com.google.cloud.alloydb.v1alpha.EncryptionInfo value) {
      if (encryptionInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        encryptionInfo_ = value;
      } else {
        encryptionInfoBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00100000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The encryption information for the cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setEncryptionInfo(
        com.google.cloud.alloydb.v1alpha.EncryptionInfo.Builder builderForValue) {
      if (encryptionInfoBuilder_ == null) {
        encryptionInfo_ = builderForValue.build();
      } else {
        encryptionInfoBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00100000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The encryption information for the cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeEncryptionInfo(com.google.cloud.alloydb.v1alpha.EncryptionInfo value) {
      if (encryptionInfoBuilder_ == null) {
        if (((bitField0_ & 0x00100000) != 0)
            && encryptionInfo_ != null
            && encryptionInfo_
                != com.google.cloud.alloydb.v1alpha.EncryptionInfo.getDefaultInstance()) {
          getEncryptionInfoBuilder().mergeFrom(value);
        } else {
          encryptionInfo_ = value;
        }
      } else {
        encryptionInfoBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00100000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The encryption information for the cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearEncryptionInfo() {
      bitField0_ = (bitField0_ & ~0x00100000);
      encryptionInfo_ = null;
      if (encryptionInfoBuilder_ != null) {
        encryptionInfoBuilder_.dispose();
        encryptionInfoBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The encryption information for the cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.EncryptionInfo.Builder getEncryptionInfoBuilder() {
      bitField0_ |= 0x00100000;
      onChanged();
      return getEncryptionInfoFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. The encryption information for the cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() {
      if (encryptionInfoBuilder_ != null) {
        return encryptionInfoBuilder_.getMessageOrBuilder();
      } else {
        return encryptionInfo_ == null
            ? com.google.cloud.alloydb.v1alpha.EncryptionInfo.getDefaultInstance()
            : encryptionInfo_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The encryption information for the cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.EncryptionInfo,
            com.google.cloud.alloydb.v1alpha.EncryptionInfo.Builder,
            com.google.cloud.alloydb.v1alpha.EncryptionInfoOrBuilder>
        getEncryptionInfoFieldBuilder() {
      if (encryptionInfoBuilder_ == null) {
        encryptionInfoBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.alloydb.v1alpha.EncryptionInfo,
                com.google.cloud.alloydb.v1alpha.EncryptionInfo.Builder,
                com.google.cloud.alloydb.v1alpha.EncryptionInfoOrBuilder>(
                getEncryptionInfo(), getParentForChildren(), isClean());
        encryptionInfo_ = null;
      }
      return encryptionInfoBuilder_;
    }

    private com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig continuousBackupConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig,
            com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig.Builder,
            com.google.cloud.alloydb.v1alpha.ContinuousBackupConfigOrBuilder>
        continuousBackupConfigBuilder_;
    /**
     *
     *
     * <pre>
     * Optional. Continuous backup configuration for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return Whether the continuousBackupConfig field is set.
     */
    public boolean hasContinuousBackupConfig() {
      return ((bitField0_ & 0x00200000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Optional. Continuous backup configuration for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The continuousBackupConfig.
     */
    public com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig getContinuousBackupConfig() {
      if (continuousBackupConfigBuilder_ == null) {
        return continuousBackupConfig_ == null
            ? com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig.getDefaultInstance()
            : continuousBackupConfig_;
      } else {
        return continuousBackupConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Continuous backup configuration for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setContinuousBackupConfig(
        com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig value) {
      if (continuousBackupConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        continuousBackupConfig_ = value;
      } else {
        continuousBackupConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00200000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Continuous backup configuration for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder setContinuousBackupConfig(
        com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig.Builder builderForValue) {
      if (continuousBackupConfigBuilder_ == null) {
        continuousBackupConfig_ = builderForValue.build();
      } else {
        continuousBackupConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00200000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Continuous backup configuration for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder mergeContinuousBackupConfig(
        com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig value) {
      if (continuousBackupConfigBuilder_ == null) {
        if (((bitField0_ & 0x00200000) != 0)
            && continuousBackupConfig_ != null
            && continuousBackupConfig_
                != com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig.getDefaultInstance()) {
          getContinuousBackupConfigBuilder().mergeFrom(value);
        } else {
          continuousBackupConfig_ = value;
        }
      } else {
        continuousBackupConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00200000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Continuous backup configuration for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public Builder clearContinuousBackupConfig() {
      bitField0_ = (bitField0_ & ~0x00200000);
      continuousBackupConfig_ = null;
      if (continuousBackupConfigBuilder_ != null) {
        continuousBackupConfigBuilder_.dispose();
        continuousBackupConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional. Continuous backup configuration for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig.Builder
        getContinuousBackupConfigBuilder() {
      bitField0_ |= 0x00200000;
      onChanged();
      return getContinuousBackupConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional. Continuous backup configuration for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.ContinuousBackupConfigOrBuilder
        getContinuousBackupConfigOrBuilder() {
      if (continuousBackupConfigBuilder_ != null) {
        return continuousBackupConfigBuilder_.getMessageOrBuilder();
      } else {
        return continuousBackupConfig_ == null
            ? com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig.getDefaultInstance()
            : continuousBackupConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Continuous backup configuration for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig,
            com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig.Builder,
            com.google.cloud.alloydb.v1alpha.ContinuousBackupConfigOrBuilder>
        getContinuousBackupConfigFieldBuilder() {
      if (continuousBackupConfigBuilder_ == null) {
        continuousBackupConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig,
                com.google.cloud.alloydb.v1alpha.ContinuousBackupConfig.Builder,
                com.google.cloud.alloydb.v1alpha.ContinuousBackupConfigOrBuilder>(
                getContinuousBackupConfig(), getParentForChildren(), isClean());
        continuousBackupConfig_ = null;
      }
      return continuousBackupConfigBuilder_;
    }

    private com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo continuousBackupInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo,
            com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo.Builder,
            com.google.cloud.alloydb.v1alpha.ContinuousBackupInfoOrBuilder>
        continuousBackupInfoBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Continuous backup properties for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the continuousBackupInfo field is set.
     */
    public boolean hasContinuousBackupInfo() {
      return ((bitField0_ & 0x00400000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Continuous backup properties for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The continuousBackupInfo.
     */
    public com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo getContinuousBackupInfo() {
      if (continuousBackupInfoBuilder_ == null) {
        return continuousBackupInfo_ == null
            ? com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo.getDefaultInstance()
            : continuousBackupInfo_;
      } else {
        return continuousBackupInfoBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Continuous backup properties for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setContinuousBackupInfo(
        com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo value) {
      if (continuousBackupInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        continuousBackupInfo_ = value;
      } else {
        continuousBackupInfoBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00400000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Continuous backup properties for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setContinuousBackupInfo(
        com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo.Builder builderForValue) {
      if (continuousBackupInfoBuilder_ == null) {
        continuousBackupInfo_ = builderForValue.build();
      } else {
        continuousBackupInfoBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00400000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Continuous backup properties for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeContinuousBackupInfo(
        com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo value) {
      if (continuousBackupInfoBuilder_ == null) {
        if (((bitField0_ & 0x00400000) != 0)
            && continuousBackupInfo_ != null
            && continuousBackupInfo_
                != com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo.getDefaultInstance()) {
          getContinuousBackupInfoBuilder().mergeFrom(value);
        } else {
          continuousBackupInfo_ = value;
        }
      } else {
        continuousBackupInfoBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00400000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Continuous backup properties for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearContinuousBackupInfo() {
      bitField0_ = (bitField0_ & ~0x00400000);
      continuousBackupInfo_ = null;
      if (continuousBackupInfoBuilder_ != null) {
        continuousBackupInfoBuilder_.dispose();
        continuousBackupInfoBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Continuous backup properties for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo.Builder
        getContinuousBackupInfoBuilder() {
      bitField0_ |= 0x00400000;
      onChanged();
      return getContinuousBackupInfoFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Continuous backup properties for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.ContinuousBackupInfoOrBuilder
        getContinuousBackupInfoOrBuilder() {
      if (continuousBackupInfoBuilder_ != null) {
        return continuousBackupInfoBuilder_.getMessageOrBuilder();
      } else {
        return continuousBackupInfo_ == null
            ? com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo.getDefaultInstance()
            : continuousBackupInfo_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Continuous backup properties for this cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo,
            com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo.Builder,
            com.google.cloud.alloydb.v1alpha.ContinuousBackupInfoOrBuilder>
        getContinuousBackupInfoFieldBuilder() {
      if (continuousBackupInfoBuilder_ == null) {
        continuousBackupInfoBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo,
                com.google.cloud.alloydb.v1alpha.ContinuousBackupInfo.Builder,
                com.google.cloud.alloydb.v1alpha.ContinuousBackupInfoOrBuilder>(
                getContinuousBackupInfo(), getParentForChildren(), isClean());
        continuousBackupInfo_ = null;
      }
      return continuousBackupInfoBuilder_;
    }

    private com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig secondaryConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig,
            com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.Builder,
            com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfigOrBuilder>
        secondaryConfigBuilder_;
    /**
     *
     *
     * <pre>
     * Cross Region replication config specific to SECONDARY cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig secondary_config = 22;</code>
     *
     * @return Whether the secondaryConfig field is set.
     */
    public boolean hasSecondaryConfig() {
      return ((bitField0_ & 0x00800000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Cross Region replication config specific to SECONDARY cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig secondary_config = 22;</code>
     *
     * @return The secondaryConfig.
     */
    public com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig getSecondaryConfig() {
      if (secondaryConfigBuilder_ == null) {
        return secondaryConfig_ == null
            ? com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.getDefaultInstance()
            : secondaryConfig_;
      } else {
        return secondaryConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Cross Region replication config specific to SECONDARY cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig secondary_config = 22;</code>
     */
    public Builder setSecondaryConfig(
        com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig value) {
      if (secondaryConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        secondaryConfig_ = value;
      } else {
        secondaryConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00800000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Cross Region replication config specific to SECONDARY cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig secondary_config = 22;</code>
     */
    public Builder setSecondaryConfig(
        com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.Builder builderForValue) {
      if (secondaryConfigBuilder_ == null) {
        secondaryConfig_ = builderForValue.build();
      } else {
        secondaryConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00800000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Cross Region replication config specific to SECONDARY cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig secondary_config = 22;</code>
     */
    public Builder mergeSecondaryConfig(
        com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig value) {
      if (secondaryConfigBuilder_ == null) {
        if (((bitField0_ & 0x00800000) != 0)
            && secondaryConfig_ != null
            && secondaryConfig_
                != com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.getDefaultInstance()) {
          getSecondaryConfigBuilder().mergeFrom(value);
        } else {
          secondaryConfig_ = value;
        }
      } else {
        secondaryConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00800000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Cross Region replication config specific to SECONDARY cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig secondary_config = 22;</code>
     */
    public Builder clearSecondaryConfig() {
      bitField0_ = (bitField0_ & ~0x00800000);
      secondaryConfig_ = null;
      if (secondaryConfigBuilder_ != null) {
        secondaryConfigBuilder_.dispose();
        secondaryConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Cross Region replication config specific to SECONDARY cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig secondary_config = 22;</code>
     */
    public com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.Builder
        getSecondaryConfigBuilder() {
      bitField0_ |= 0x00800000;
      onChanged();
      return getSecondaryConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Cross Region replication config specific to SECONDARY cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig secondary_config = 22;</code>
     */
    public com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfigOrBuilder
        getSecondaryConfigOrBuilder() {
      if (secondaryConfigBuilder_ != null) {
        return secondaryConfigBuilder_.getMessageOrBuilder();
      } else {
        return secondaryConfig_ == null
            ? com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.getDefaultInstance()
            : secondaryConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * Cross Region replication config specific to SECONDARY cluster.
     * </pre>
     *
     * <code>.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig secondary_config = 22;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig,
            com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.Builder,
            com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfigOrBuilder>
        getSecondaryConfigFieldBuilder() {
      if (secondaryConfigBuilder_ == null) {
        secondaryConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig,
                com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig.Builder,
                com.google.cloud.alloydb.v1alpha.Cluster.SecondaryConfigOrBuilder>(
                getSecondaryConfig(), getParentForChildren(), isClean());
        secondaryConfig_ = null;
      }
      return secondaryConfigBuilder_;
    }

    private com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig primaryConfig_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig,
            com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.Builder,
            com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfigOrBuilder>
        primaryConfigBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Cross Region replication config specific to PRIMARY cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the primaryConfig field is set.
     */
    public boolean hasPrimaryConfig() {
      return ((bitField0_ & 0x01000000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Cross Region replication config specific to PRIMARY cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The primaryConfig.
     */
    public com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig getPrimaryConfig() {
      if (primaryConfigBuilder_ == null) {
        return primaryConfig_ == null
            ? com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.getDefaultInstance()
            : primaryConfig_;
      } else {
        return primaryConfigBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Cross Region replication config specific to PRIMARY cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setPrimaryConfig(com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig value) {
      if (primaryConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        primaryConfig_ = value;
      } else {
        primaryConfigBuilder_.setMessage(value);
      }
      bitField0_ |= 0x01000000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Cross Region replication config specific to PRIMARY cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setPrimaryConfig(
        com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.Builder builderForValue) {
      if (primaryConfigBuilder_ == null) {
        primaryConfig_ = builderForValue.build();
      } else {
        primaryConfigBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x01000000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Cross Region replication config specific to PRIMARY cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergePrimaryConfig(
        com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig value) {
      if (primaryConfigBuilder_ == null) {
        if (((bitField0_ & 0x01000000) != 0)
            && primaryConfig_ != null
            && primaryConfig_
                != com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.getDefaultInstance()) {
          getPrimaryConfigBuilder().mergeFrom(value);
        } else {
          primaryConfig_ = value;
        }
      } else {
        primaryConfigBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x01000000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Cross Region replication config specific to PRIMARY cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearPrimaryConfig() {
      bitField0_ = (bitField0_ & ~0x01000000);
      primaryConfig_ = null;
      if (primaryConfigBuilder_ != null) {
        primaryConfigBuilder_.dispose();
        primaryConfigBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Cross Region replication config specific to PRIMARY cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.Builder
        getPrimaryConfigBuilder() {
      bitField0_ |= 0x01000000;
      onChanged();
      return getPrimaryConfigFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Cross Region replication config specific to PRIMARY cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfigOrBuilder
        getPrimaryConfigOrBuilder() {
      if (primaryConfigBuilder_ != null) {
        return primaryConfigBuilder_.getMessageOrBuilder();
      } else {
        return primaryConfig_ == null
            ? com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.getDefaultInstance()
            : primaryConfig_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Cross Region replication config specific to PRIMARY cluster.
     * </pre>
     *
     * <code>
     * .google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig,
            com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.Builder,
            com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfigOrBuilder>
        getPrimaryConfigFieldBuilder() {
      if (primaryConfigBuilder_ == null) {
        primaryConfigBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig,
                com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig.Builder,
                com.google.cloud.alloydb.v1alpha.Cluster.PrimaryConfigOrBuilder>(
                getPrimaryConfig(), getParentForChildren(), isClean());
        primaryConfig_ = null;
      }
      return primaryConfigBuilder_;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.Cluster)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.Cluster)
  private static final com.google.cloud.alloydb.v1alpha.Cluster DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.Cluster();
  }

  public static com.google.cloud.alloydb.v1alpha.Cluster getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Cluster> PARSER =
      new com.google.protobuf.AbstractParser<Cluster>() {
        @java.lang.Override
        public Cluster parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  public static com.google.protobuf.Parser<Cluster> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<Cluster> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.alloydb.v1alpha.Cluster getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
