Class Cluster

  • All Implemented Interfaces:
    ClusterOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Cluster
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Cluster parseFrom​(ByteBuffer data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Cluster parseFrom​(ByteBuffer data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Cluster parseFrom​(com.google.protobuf.ByteString data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Cluster parseFrom​(com.google.protobuf.ByteString data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Cluster parseFrom​(byte[] data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Cluster parseFrom​(byte[] data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Cluster parseFrom​(com.google.protobuf.CodedInputStream input,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected Cluster.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Cluster getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Cluster> parser()
      • getParserForType

        public com.google.protobuf.Parser<Cluster> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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