Class Cluster.Builder

  • All Implemented Interfaces:
    ClusterOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Cluster

    public static final class Cluster.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
    implements ClusterOrBuilder
     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.
     
    Protobuf type google.cloud.alloydb.v1.Cluster
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • clear

        public Cluster.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • getDefaultInstanceForType

        public Cluster getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Cluster build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Cluster buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Cluster.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • setField

        public Cluster.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                        Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • clearField

        public Cluster.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • clearOneof

        public Cluster.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • setRepeatedField

        public Cluster.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                int index,
                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • addRepeatedField

        public Cluster.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • mergeFrom

        public Cluster.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Cluster.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • mergeFrom

        public Cluster.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Cluster.Builder>
        Throws:
        IOException
      • hasBackupSource

        public boolean hasBackupSource()
         Output only. Cluster created from backup.
         
        .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasBackupSource in interface ClusterOrBuilder
        Returns:
        Whether the backupSource field is set.
      • getBackupSource

        public BackupSource getBackupSource()
         Output only. Cluster created from backup.
         
        .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getBackupSource in interface ClusterOrBuilder
        Returns:
        The backupSource.
      • setBackupSource

        public Cluster.Builder setBackupSource​(BackupSource value)
         Output only. Cluster created from backup.
         
        .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setBackupSource

        public Cluster.Builder setBackupSource​(BackupSource.Builder builderForValue)
         Output only. Cluster created from backup.
         
        .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeBackupSource

        public Cluster.Builder mergeBackupSource​(BackupSource value)
         Output only. Cluster created from backup.
         
        .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearBackupSource

        public Cluster.Builder clearBackupSource()
         Output only. Cluster created from backup.
         
        .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getBackupSourceBuilder

        public BackupSource.Builder getBackupSourceBuilder()
         Output only. Cluster created from backup.
         
        .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • hasMigrationSource

        public boolean hasMigrationSource()
         Output only. Cluster created via DMS migration.
         
        .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasMigrationSource in interface ClusterOrBuilder
        Returns:
        Whether the migrationSource field is set.
      • getMigrationSource

        public MigrationSource getMigrationSource()
         Output only. Cluster created via DMS migration.
         
        .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMigrationSource in interface ClusterOrBuilder
        Returns:
        The migrationSource.
      • setMigrationSource

        public Cluster.Builder setMigrationSource​(MigrationSource value)
         Output only. Cluster created via DMS migration.
         
        .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setMigrationSource

        public Cluster.Builder setMigrationSource​(MigrationSource.Builder builderForValue)
         Output only. Cluster created via DMS migration.
         
        .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeMigrationSource

        public Cluster.Builder mergeMigrationSource​(MigrationSource value)
         Output only. Cluster created via DMS migration.
         
        .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearMigrationSource

        public Cluster.Builder clearMigrationSource()
         Output only. Cluster created via DMS migration.
         
        .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getMigrationSourceBuilder

        public MigrationSource.Builder getMigrationSourceBuilder()
         Output only. Cluster created via DMS migration.
         
        .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getName

        public String getName()
         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}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface ClusterOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         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}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface ClusterOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Cluster.Builder setName​(String value)
         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}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Cluster.Builder clearName()
         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}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Cluster.Builder setNameBytes​(com.google.protobuf.ByteString value)
         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}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDisplayName

        public String getDisplayName()
         User-settable and human-readable display name for the Cluster.
         
        string display_name = 2;
        Specified by:
        getDisplayName in interface ClusterOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         User-settable and human-readable display name for the Cluster.
         
        string display_name = 2;
        Specified by:
        getDisplayNameBytes in interface ClusterOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public Cluster.Builder setDisplayName​(String value)
         User-settable and human-readable display name for the Cluster.
         
        string display_name = 2;
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public Cluster.Builder clearDisplayName()
         User-settable and human-readable display name for the Cluster.
         
        string display_name = 2;
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public Cluster.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         User-settable and human-readable display name for the Cluster.
         
        string display_name = 2;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • getUid

        public String getUid()
         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.
         
        string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUid in interface ClusterOrBuilder
        Returns:
        The uid.
      • getUidBytes

        public com.google.protobuf.ByteString getUidBytes()
         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.
         
        string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUidBytes in interface ClusterOrBuilder
        Returns:
        The bytes for uid.
      • setUid

        public Cluster.Builder setUid​(String value)
         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.
         
        string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The uid to set.
        Returns:
        This builder for chaining.
      • clearUid

        public Cluster.Builder clearUid()
         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.
         
        string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUidBytes

        public Cluster.Builder setUidBytes​(com.google.protobuf.ByteString value)
         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.
         
        string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for uid to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface ClusterOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface ClusterOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Cluster.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Cluster.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Cluster.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Cluster.Builder clearCreateTime()
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Create time stamp
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface ClusterOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface ClusterOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface ClusterOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public Cluster.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public Cluster.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public Cluster.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public Cluster.Builder clearUpdateTime()
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. Update time stamp
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface ClusterOrBuilder
      • hasDeleteTime

        public boolean hasDeleteTime()
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasDeleteTime in interface ClusterOrBuilder
        Returns:
        Whether the deleteTime field is set.
      • getDeleteTime

        public com.google.protobuf.Timestamp getDeleteTime()
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDeleteTime in interface ClusterOrBuilder
        Returns:
        The deleteTime.
      • setDeleteTime

        public Cluster.Builder setDeleteTime​(com.google.protobuf.Timestamp value)
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setDeleteTime

        public Cluster.Builder setDeleteTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeDeleteTime

        public Cluster.Builder mergeDeleteTime​(com.google.protobuf.Timestamp value)
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearDeleteTime

        public Cluster.Builder clearDeleteTime()
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getDeleteTimeBuilder

        public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getDeleteTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
         Output only. Delete time stamp
         
        .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDeleteTimeOrBuilder in interface ClusterOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Labels as key value pairs
         
        map<string, string> labels = 7;
        Specified by:
        containsLabels in interface ClusterOrBuilder
      • removeLabels

        public Cluster.Builder removeLabels​(String key)
         Labels as key value pairs
         
        map<string, string> labels = 7;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public Cluster.Builder putLabels​(String key,
                                         String value)
         Labels as key value pairs
         
        map<string, string> labels = 7;
      • getStateValue

        public int getStateValue()
         Output only. The current serving state of the cluster.
         
        .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface ClusterOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Cluster.Builder setStateValue​(int value)
         Output only. The current serving state of the cluster.
         
        .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public Cluster.State getState()
         Output only. The current serving state of the cluster.
         
        .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface ClusterOrBuilder
        Returns:
        The state.
      • setState

        public Cluster.Builder setState​(Cluster.State value)
         Output only. The current serving state of the cluster.
         
        .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Cluster.Builder clearState()
         Output only. The current serving state of the cluster.
         
        .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getClusterTypeValue

        public int getClusterTypeValue()
         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`
         
        .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getClusterTypeValue in interface ClusterOrBuilder
        Returns:
        The enum numeric value on the wire for clusterType.
      • setClusterTypeValue

        public Cluster.Builder setClusterTypeValue​(int value)
         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`
         
        .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for clusterType to set.
        Returns:
        This builder for chaining.
      • getClusterType

        public Cluster.ClusterType getClusterType()
         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`
         
        .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getClusterType in interface ClusterOrBuilder
        Returns:
        The clusterType.
      • setClusterType

        public Cluster.Builder setClusterType​(Cluster.ClusterType value)
         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`
         
        .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The clusterType to set.
        Returns:
        This builder for chaining.
      • clearClusterType

        public Cluster.Builder clearClusterType()
         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`
         
        .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getDatabaseVersionValue

        public int getDatabaseVersionValue()
         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.
         
        .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDatabaseVersionValue in interface ClusterOrBuilder
        Returns:
        The enum numeric value on the wire for databaseVersion.
      • setDatabaseVersionValue

        public Cluster.Builder setDatabaseVersionValue​(int value)
         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.
         
        .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for databaseVersion to set.
        Returns:
        This builder for chaining.
      • getDatabaseVersion

        public DatabaseVersion getDatabaseVersion()
         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.
         
        .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDatabaseVersion in interface ClusterOrBuilder
        Returns:
        The databaseVersion.
      • setDatabaseVersion

        public Cluster.Builder setDatabaseVersion​(DatabaseVersion value)
         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.
         
        .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The databaseVersion to set.
        Returns:
        This builder for chaining.
      • clearDatabaseVersion

        public Cluster.Builder clearDatabaseVersion()
         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.
         
        .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getNetwork

        public String getNetwork()
         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.
         
        string network = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNetwork in interface ClusterOrBuilder
        Returns:
        The network.
      • getNetworkBytes

        public com.google.protobuf.ByteString getNetworkBytes()
         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.
         
        string network = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNetworkBytes in interface ClusterOrBuilder
        Returns:
        The bytes for network.
      • setNetwork

        public Cluster.Builder setNetwork​(String value)
         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.
         
        string network = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The network to set.
        Returns:
        This builder for chaining.
      • clearNetwork

        public Cluster.Builder clearNetwork()
         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.
         
        string network = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNetworkBytes

        public Cluster.Builder setNetworkBytes​(com.google.protobuf.ByteString value)
         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.
         
        string network = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for network to set.
        Returns:
        This builder for chaining.
      • getEtag

        public String getEtag()
         For Resource freshness validation (https://google.aip.dev/154)
         
        string etag = 11;
        Specified by:
        getEtag in interface ClusterOrBuilder
        Returns:
        The etag.
      • getEtagBytes

        public com.google.protobuf.ByteString getEtagBytes()
         For Resource freshness validation (https://google.aip.dev/154)
         
        string etag = 11;
        Specified by:
        getEtagBytes in interface ClusterOrBuilder
        Returns:
        The bytes for etag.
      • setEtag

        public Cluster.Builder setEtag​(String value)
         For Resource freshness validation (https://google.aip.dev/154)
         
        string etag = 11;
        Parameters:
        value - The etag to set.
        Returns:
        This builder for chaining.
      • clearEtag

        public Cluster.Builder clearEtag()
         For Resource freshness validation (https://google.aip.dev/154)
         
        string etag = 11;
        Returns:
        This builder for chaining.
      • setEtagBytes

        public Cluster.Builder setEtagBytes​(com.google.protobuf.ByteString value)
         For Resource freshness validation (https://google.aip.dev/154)
         
        string etag = 11;
        Parameters:
        value - The bytes for etag to set.
        Returns:
        This builder for chaining.
      • getAnnotationsCount

        public int getAnnotationsCount()
        Description copied from interface: ClusterOrBuilder
         Annotations to allow client tools to store small amount of arbitrary data.
         This is distinct from labels.
         https://google.aip.dev/128
         
        map<string, string> annotations = 12;
        Specified by:
        getAnnotationsCount in interface ClusterOrBuilder
      • containsAnnotations

        public boolean containsAnnotations​(String key)
         Annotations to allow client tools to store small amount of arbitrary data.
         This is distinct from labels.
         https://google.aip.dev/128
         
        map<string, string> annotations = 12;
        Specified by:
        containsAnnotations in interface ClusterOrBuilder
      • getAnnotationsMap

        public Map<String,​String> getAnnotationsMap()
         Annotations to allow client tools to store small amount of arbitrary data.
         This is distinct from labels.
         https://google.aip.dev/128
         
        map<string, string> annotations = 12;
        Specified by:
        getAnnotationsMap in interface ClusterOrBuilder
      • getAnnotationsOrDefault

        public String getAnnotationsOrDefault​(String key,
                                              String defaultValue)
         Annotations to allow client tools to store small amount of arbitrary data.
         This is distinct from labels.
         https://google.aip.dev/128
         
        map<string, string> annotations = 12;
        Specified by:
        getAnnotationsOrDefault in interface ClusterOrBuilder
      • getAnnotationsOrThrow

        public String getAnnotationsOrThrow​(String key)
         Annotations to allow client tools to store small amount of arbitrary data.
         This is distinct from labels.
         https://google.aip.dev/128
         
        map<string, string> annotations = 12;
        Specified by:
        getAnnotationsOrThrow in interface ClusterOrBuilder
      • removeAnnotations

        public Cluster.Builder removeAnnotations​(String key)
         Annotations to allow client tools to store small amount of arbitrary data.
         This is distinct from labels.
         https://google.aip.dev/128
         
        map<string, string> annotations = 12;
      • getMutableAnnotations

        @Deprecated
        public Map<String,​String> getMutableAnnotations()
        Deprecated.
        Use alternate mutation accessors instead.
      • putAnnotations

        public Cluster.Builder putAnnotations​(String key,
                                              String value)
         Annotations to allow client tools to store small amount of arbitrary data.
         This is distinct from labels.
         https://google.aip.dev/128
         
        map<string, string> annotations = 12;
      • putAllAnnotations

        public Cluster.Builder putAllAnnotations​(Map<String,​String> values)
         Annotations to allow client tools to store small amount of arbitrary data.
         This is distinct from labels.
         https://google.aip.dev/128
         
        map<string, string> annotations = 12;
      • getReconciling

        public boolean getReconciling()
         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.
         
        bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getReconciling in interface ClusterOrBuilder
        Returns:
        The reconciling.
      • setReconciling

        public Cluster.Builder setReconciling​(boolean value)
         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.
         
        bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The reconciling to set.
        Returns:
        This builder for chaining.
      • clearReconciling

        public Cluster.Builder clearReconciling()
         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.
         
        bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasInitialUser

        public boolean hasInitialUser()
         Input only. Initial user to setup during cluster creation. Required.
         If used in `RestoreCluster` this is ignored.
         
        .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        hasInitialUser in interface ClusterOrBuilder
        Returns:
        Whether the initialUser field is set.
      • getInitialUser

        public UserPassword getInitialUser()
         Input only. Initial user to setup during cluster creation. Required.
         If used in `RestoreCluster` this is ignored.
         
        .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getInitialUser in interface ClusterOrBuilder
        Returns:
        The initialUser.
      • setInitialUser

        public Cluster.Builder setInitialUser​(UserPassword value)
         Input only. Initial user to setup during cluster creation. Required.
         If used in `RestoreCluster` this is ignored.
         
        .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
      • setInitialUser

        public Cluster.Builder setInitialUser​(UserPassword.Builder builderForValue)
         Input only. Initial user to setup during cluster creation. Required.
         If used in `RestoreCluster` this is ignored.
         
        .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
      • mergeInitialUser

        public Cluster.Builder mergeInitialUser​(UserPassword value)
         Input only. Initial user to setup during cluster creation. Required.
         If used in `RestoreCluster` this is ignored.
         
        .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
      • clearInitialUser

        public Cluster.Builder clearInitialUser()
         Input only. Initial user to setup during cluster creation. Required.
         If used in `RestoreCluster` this is ignored.
         
        .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
      • getInitialUserBuilder

        public UserPassword.Builder getInitialUserBuilder()
         Input only. Initial user to setup during cluster creation. Required.
         If used in `RestoreCluster` this is ignored.
         
        .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
      • getInitialUserOrBuilder

        public UserPasswordOrBuilder getInitialUserOrBuilder()
         Input only. Initial user to setup during cluster creation. Required.
         If used in `RestoreCluster` this is ignored.
         
        .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getInitialUserOrBuilder in interface ClusterOrBuilder
      • hasAutomatedBackupPolicy

        public boolean hasAutomatedBackupPolicy()
         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.
         
        .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;
        Specified by:
        hasAutomatedBackupPolicy in interface ClusterOrBuilder
        Returns:
        Whether the automatedBackupPolicy field is set.
      • getAutomatedBackupPolicy

        public AutomatedBackupPolicy getAutomatedBackupPolicy()
         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.
         
        .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;
        Specified by:
        getAutomatedBackupPolicy in interface ClusterOrBuilder
        Returns:
        The automatedBackupPolicy.
      • setAutomatedBackupPolicy

        public Cluster.Builder setAutomatedBackupPolicy​(AutomatedBackupPolicy value)
         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.
         
        .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;
      • setAutomatedBackupPolicy

        public Cluster.Builder setAutomatedBackupPolicy​(AutomatedBackupPolicy.Builder builderForValue)
         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.
         
        .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;
      • mergeAutomatedBackupPolicy

        public Cluster.Builder mergeAutomatedBackupPolicy​(AutomatedBackupPolicy value)
         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.
         
        .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;
      • clearAutomatedBackupPolicy

        public Cluster.Builder clearAutomatedBackupPolicy()
         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.
         
        .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;
      • getAutomatedBackupPolicyBuilder

        public AutomatedBackupPolicy.Builder getAutomatedBackupPolicyBuilder()
         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.
         
        .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;
      • getAutomatedBackupPolicyOrBuilder

        public AutomatedBackupPolicyOrBuilder getAutomatedBackupPolicyOrBuilder()
         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.
         
        .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;
        Specified by:
        getAutomatedBackupPolicyOrBuilder in interface ClusterOrBuilder
      • hasSslConfig

        @Deprecated
        public boolean hasSslConfig()
        Deprecated.
        google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See google/cloud/alloydb/v1/resources.proto;l=550
         SSL configuration for this AlloyDB cluster.
         
        .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true];
        Specified by:
        hasSslConfig in interface ClusterOrBuilder
        Returns:
        Whether the sslConfig field is set.
      • getSslConfig

        @Deprecated
        public SslConfig getSslConfig()
        Deprecated.
        google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See google/cloud/alloydb/v1/resources.proto;l=550
         SSL configuration for this AlloyDB cluster.
         
        .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true];
        Specified by:
        getSslConfig in interface ClusterOrBuilder
        Returns:
        The sslConfig.
      • setSslConfig

        @Deprecated
        public Cluster.Builder setSslConfig​(SslConfig value)
        Deprecated.
         SSL configuration for this AlloyDB cluster.
         
        .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true];
      • setSslConfig

        @Deprecated
        public Cluster.Builder setSslConfig​(SslConfig.Builder builderForValue)
        Deprecated.
         SSL configuration for this AlloyDB cluster.
         
        .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true];
      • mergeSslConfig

        @Deprecated
        public Cluster.Builder mergeSslConfig​(SslConfig value)
        Deprecated.
         SSL configuration for this AlloyDB cluster.
         
        .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true];
      • clearSslConfig

        @Deprecated
        public Cluster.Builder clearSslConfig()
        Deprecated.
         SSL configuration for this AlloyDB cluster.
         
        .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true];
      • getSslConfigBuilder

        @Deprecated
        public SslConfig.Builder getSslConfigBuilder()
        Deprecated.
         SSL configuration for this AlloyDB cluster.
         
        .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true];
      • hasEncryptionConfig

        public boolean hasEncryptionConfig()
         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.
         
        .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasEncryptionConfig in interface ClusterOrBuilder
        Returns:
        Whether the encryptionConfig field is set.
      • getEncryptionConfig

        public EncryptionConfig getEncryptionConfig()
         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.
         
        .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEncryptionConfig in interface ClusterOrBuilder
        Returns:
        The encryptionConfig.
      • setEncryptionConfig

        public Cluster.Builder setEncryptionConfig​(EncryptionConfig value)
         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.
         
        .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
      • setEncryptionConfig

        public Cluster.Builder setEncryptionConfig​(EncryptionConfig.Builder builderForValue)
         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.
         
        .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
      • mergeEncryptionConfig

        public Cluster.Builder mergeEncryptionConfig​(EncryptionConfig value)
         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.
         
        .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
      • clearEncryptionConfig

        public Cluster.Builder clearEncryptionConfig()
         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.
         
        .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
      • getEncryptionConfigBuilder

        public EncryptionConfig.Builder getEncryptionConfigBuilder()
         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.
         
        .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
      • getEncryptionConfigOrBuilder

        public EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
         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.
         
        .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEncryptionConfigOrBuilder in interface ClusterOrBuilder
      • hasEncryptionInfo

        public boolean hasEncryptionInfo()
         Output only. The encryption information for the cluster.
         
        .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasEncryptionInfo in interface ClusterOrBuilder
        Returns:
        Whether the encryptionInfo field is set.
      • getEncryptionInfo

        public EncryptionInfo getEncryptionInfo()
         Output only. The encryption information for the cluster.
         
        .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEncryptionInfo in interface ClusterOrBuilder
        Returns:
        The encryptionInfo.
      • setEncryptionInfo

        public Cluster.Builder setEncryptionInfo​(EncryptionInfo value)
         Output only. The encryption information for the cluster.
         
        .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setEncryptionInfo

        public Cluster.Builder setEncryptionInfo​(EncryptionInfo.Builder builderForValue)
         Output only. The encryption information for the cluster.
         
        .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeEncryptionInfo

        public Cluster.Builder mergeEncryptionInfo​(EncryptionInfo value)
         Output only. The encryption information for the cluster.
         
        .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearEncryptionInfo

        public Cluster.Builder clearEncryptionInfo()
         Output only. The encryption information for the cluster.
         
        .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEncryptionInfoBuilder

        public EncryptionInfo.Builder getEncryptionInfoBuilder()
         Output only. The encryption information for the cluster.
         
        .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEncryptionInfoOrBuilder

        public EncryptionInfoOrBuilder getEncryptionInfoOrBuilder()
         Output only. The encryption information for the cluster.
         
        .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEncryptionInfoOrBuilder in interface ClusterOrBuilder
      • hasContinuousBackupConfig

        public boolean hasContinuousBackupConfig()
         Optional. Continuous backup configuration for this cluster.
         
        .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasContinuousBackupConfig in interface ClusterOrBuilder
        Returns:
        Whether the continuousBackupConfig field is set.
      • getContinuousBackupConfig

        public ContinuousBackupConfig getContinuousBackupConfig()
         Optional. Continuous backup configuration for this cluster.
         
        .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getContinuousBackupConfig in interface ClusterOrBuilder
        Returns:
        The continuousBackupConfig.
      • setContinuousBackupConfig

        public Cluster.Builder setContinuousBackupConfig​(ContinuousBackupConfig value)
         Optional. Continuous backup configuration for this cluster.
         
        .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
      • setContinuousBackupConfig

        public Cluster.Builder setContinuousBackupConfig​(ContinuousBackupConfig.Builder builderForValue)
         Optional. Continuous backup configuration for this cluster.
         
        .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
      • mergeContinuousBackupConfig

        public Cluster.Builder mergeContinuousBackupConfig​(ContinuousBackupConfig value)
         Optional. Continuous backup configuration for this cluster.
         
        .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
      • clearContinuousBackupConfig

        public Cluster.Builder clearContinuousBackupConfig()
         Optional. Continuous backup configuration for this cluster.
         
        .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
      • getContinuousBackupConfigBuilder

        public ContinuousBackupConfig.Builder getContinuousBackupConfigBuilder()
         Optional. Continuous backup configuration for this cluster.
         
        .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL];
      • hasContinuousBackupInfo

        public boolean hasContinuousBackupInfo()
         Output only. Continuous backup properties for this cluster.
         
        .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasContinuousBackupInfo in interface ClusterOrBuilder
        Returns:
        Whether the continuousBackupInfo field is set.
      • getContinuousBackupInfo

        public ContinuousBackupInfo getContinuousBackupInfo()
         Output only. Continuous backup properties for this cluster.
         
        .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getContinuousBackupInfo in interface ClusterOrBuilder
        Returns:
        The continuousBackupInfo.
      • setContinuousBackupInfo

        public Cluster.Builder setContinuousBackupInfo​(ContinuousBackupInfo value)
         Output only. Continuous backup properties for this cluster.
         
        .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setContinuousBackupInfo

        public Cluster.Builder setContinuousBackupInfo​(ContinuousBackupInfo.Builder builderForValue)
         Output only. Continuous backup properties for this cluster.
         
        .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeContinuousBackupInfo

        public Cluster.Builder mergeContinuousBackupInfo​(ContinuousBackupInfo value)
         Output only. Continuous backup properties for this cluster.
         
        .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearContinuousBackupInfo

        public Cluster.Builder clearContinuousBackupInfo()
         Output only. Continuous backup properties for this cluster.
         
        .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getContinuousBackupInfoBuilder

        public ContinuousBackupInfo.Builder getContinuousBackupInfoBuilder()
         Output only. Continuous backup properties for this cluster.
         
        .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • hasSecondaryConfig

        public boolean hasSecondaryConfig()
         Cross Region replication config specific to SECONDARY cluster.
         
        .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22;
        Specified by:
        hasSecondaryConfig in interface ClusterOrBuilder
        Returns:
        Whether the secondaryConfig field is set.
      • getSecondaryConfig

        public Cluster.SecondaryConfig getSecondaryConfig()
         Cross Region replication config specific to SECONDARY cluster.
         
        .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22;
        Specified by:
        getSecondaryConfig in interface ClusterOrBuilder
        Returns:
        The secondaryConfig.
      • setSecondaryConfig

        public Cluster.Builder setSecondaryConfig​(Cluster.SecondaryConfig value)
         Cross Region replication config specific to SECONDARY cluster.
         
        .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22;
      • setSecondaryConfig

        public Cluster.Builder setSecondaryConfig​(Cluster.SecondaryConfig.Builder builderForValue)
         Cross Region replication config specific to SECONDARY cluster.
         
        .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22;
      • mergeSecondaryConfig

        public Cluster.Builder mergeSecondaryConfig​(Cluster.SecondaryConfig value)
         Cross Region replication config specific to SECONDARY cluster.
         
        .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22;
      • clearSecondaryConfig

        public Cluster.Builder clearSecondaryConfig()
         Cross Region replication config specific to SECONDARY cluster.
         
        .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22;
      • getSecondaryConfigBuilder

        public Cluster.SecondaryConfig.Builder getSecondaryConfigBuilder()
         Cross Region replication config specific to SECONDARY cluster.
         
        .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22;
      • hasPrimaryConfig

        public boolean hasPrimaryConfig()
         Output only. Cross Region replication config specific to PRIMARY cluster.
         
        .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasPrimaryConfig in interface ClusterOrBuilder
        Returns:
        Whether the primaryConfig field is set.
      • getPrimaryConfig

        public Cluster.PrimaryConfig getPrimaryConfig()
         Output only. Cross Region replication config specific to PRIMARY cluster.
         
        .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPrimaryConfig in interface ClusterOrBuilder
        Returns:
        The primaryConfig.
      • setPrimaryConfig

        public Cluster.Builder setPrimaryConfig​(Cluster.PrimaryConfig value)
         Output only. Cross Region replication config specific to PRIMARY cluster.
         
        .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setPrimaryConfig

        public Cluster.Builder setPrimaryConfig​(Cluster.PrimaryConfig.Builder builderForValue)
         Output only. Cross Region replication config specific to PRIMARY cluster.
         
        .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergePrimaryConfig

        public Cluster.Builder mergePrimaryConfig​(Cluster.PrimaryConfig value)
         Output only. Cross Region replication config specific to PRIMARY cluster.
         
        .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearPrimaryConfig

        public Cluster.Builder clearPrimaryConfig()
         Output only. Cross Region replication config specific to PRIMARY cluster.
         
        .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getPrimaryConfigBuilder

        public Cluster.PrimaryConfig.Builder getPrimaryConfigBuilder()
         Output only. Cross Region replication config specific to PRIMARY cluster.
         
        .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUnknownFields

        public final Cluster.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • mergeUnknownFields

        public final Cluster.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>