Class Cluster.Builder (0.14.1)

public static final class Cluster.Builder extends 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.events.cloud.alloydb.v1.Cluster

Implements

ClusterOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Cluster.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Cluster.Builder
Overrides

build()

public Cluster build()
Returns
TypeDescription
Cluster

buildPartial()

public Cluster buildPartial()
Returns
TypeDescription
Cluster

clear()

public Cluster.Builder clear()
Returns
TypeDescription
Cluster.Builder
Overrides

clearAnnotations()

public Cluster.Builder clearAnnotations()
Returns
TypeDescription
Cluster.Builder

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.events.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;

Returns
TypeDescription
Cluster.Builder

clearBackupSource()

public Cluster.Builder clearBackupSource()

Output only. Cluster created from backup.

.google.events.cloud.alloydb.v1.BackupSource backup_source = 15;

Returns
TypeDescription
Cluster.Builder

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.events.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearCreateTime()

public Cluster.Builder clearCreateTime()

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
Cluster.Builder

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.events.cloud.alloydb.v1.DatabaseVersion database_version = 9;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearDeleteTime()

public Cluster.Builder clearDeleteTime()

Output only. Delete time stamp

.google.protobuf.Timestamp delete_time = 6;

Returns
TypeDescription
Cluster.Builder

clearDisplayName()

public Cluster.Builder clearDisplayName()

User-settable and human-readable display name for the Cluster.

string display_name = 2;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

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.events.cloud.alloydb.v1.EncryptionConfig encryption_config = 19;

Returns
TypeDescription
Cluster.Builder

clearEncryptionInfo()

public Cluster.Builder clearEncryptionInfo()

Output only. The encryption information for the cluster.

.google.events.cloud.alloydb.v1.EncryptionInfo encryption_info = 20;

Returns
TypeDescription
Cluster.Builder

clearEtag()

public Cluster.Builder clearEtag()

For Resource freshness validation (https://google.aip.dev/154)

string etag = 11;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Cluster.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Cluster.Builder
Overrides

clearLabels()

public Cluster.Builder clearLabels()
Returns
TypeDescription
Cluster.Builder

clearMigrationSource()

public Cluster.Builder clearMigrationSource()

Output only. Cluster created via DMS migration.

.google.events.cloud.alloydb.v1.MigrationSource migration_source = 16;

Returns
TypeDescription
Cluster.Builder

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;

Returns
TypeDescription
Cluster.Builder

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;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Cluster.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Cluster.Builder
Overrides

clearPrimaryConfig()

public Cluster.Builder clearPrimaryConfig()

Output only. Cross Region replication config specific to PRIMARY cluster.

.google.events.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23;

Returns
TypeDescription
Cluster.Builder

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;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearSecondaryConfig()

public Cluster.Builder clearSecondaryConfig()

Cross Region replication config specific to SECONDARY cluster.

.google.events.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22;

Returns
TypeDescription
Cluster.Builder

clearSource()

public Cluster.Builder clearSource()
Returns
TypeDescription
Cluster.Builder

clearSslConfig()

public Cluster.Builder clearSslConfig()

SSL configuration for this AlloyDB Cluster.

.google.events.cloud.alloydb.v1.SslConfig ssl_config = 18;

Returns
TypeDescription
Cluster.Builder

clearState()

public Cluster.Builder clearState()

Output only. The current serving state of the cluster.

.google.events.cloud.alloydb.v1.Cluster.State state = 8;

Returns
TypeDescription
Cluster.Builder

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;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearUpdateTime()

public Cluster.Builder clearUpdateTime()

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
Cluster.Builder

clone()

public Cluster.Builder clone()
Returns
TypeDescription
Cluster.Builder
Overrides

containsAnnotations(String key)

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;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

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;

Returns
TypeDescription
int

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;

Returns
TypeDescription
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

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;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

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;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

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.events.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;

Returns
TypeDescription
AutomatedBackupPolicy

The automatedBackupPolicy.

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.events.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;

Returns
TypeDescription
AutomatedBackupPolicy.Builder

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.events.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;

Returns
TypeDescription
AutomatedBackupPolicyOrBuilder

getBackupSource()

public BackupSource getBackupSource()

Output only. Cluster created from backup.

.google.events.cloud.alloydb.v1.BackupSource backup_source = 15;

Returns
TypeDescription
BackupSource

The backupSource.

getBackupSourceBuilder()

public BackupSource.Builder getBackupSourceBuilder()

Output only. Cluster created from backup.

.google.events.cloud.alloydb.v1.BackupSource backup_source = 15;

Returns
TypeDescription
BackupSource.Builder

getBackupSourceOrBuilder()

public BackupSourceOrBuilder getBackupSourceOrBuilder()

Output only. Cluster created from backup.

.google.events.cloud.alloydb.v1.BackupSource backup_source = 15;

Returns
TypeDescription
BackupSourceOrBuilder

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.events.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24;

Returns
TypeDescription
Cluster.ClusterType

The clusterType.

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.events.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24;

Returns
TypeDescription
int

The enum numeric value on the wire for clusterType.

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
TimestampOrBuilder

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.events.cloud.alloydb.v1.DatabaseVersion database_version = 9;

Returns
TypeDescription
DatabaseVersion

The databaseVersion.

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.events.cloud.alloydb.v1.DatabaseVersion database_version = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for databaseVersion.

getDefaultInstanceForType()

public Cluster getDefaultInstanceForType()
Returns
TypeDescription
Cluster

getDeleteTime()

public Timestamp getDeleteTime()

Output only. Delete time stamp

.google.protobuf.Timestamp delete_time = 6;

Returns
TypeDescription
Timestamp

The deleteTime.

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()

Output only. Delete time stamp

.google.protobuf.Timestamp delete_time = 6;

Returns
TypeDescription
Builder

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. Delete time stamp

.google.protobuf.Timestamp delete_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

User-settable and human-readable display name for the Cluster.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

User-settable and human-readable display name for the Cluster.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

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.events.cloud.alloydb.v1.EncryptionConfig encryption_config = 19;

Returns
TypeDescription
EncryptionConfig

The encryptionConfig.

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.events.cloud.alloydb.v1.EncryptionConfig encryption_config = 19;

Returns
TypeDescription
EncryptionConfig.Builder

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.events.cloud.alloydb.v1.EncryptionConfig encryption_config = 19;

Returns
TypeDescription
EncryptionConfigOrBuilder

getEncryptionInfo()

public EncryptionInfo getEncryptionInfo()

Output only. The encryption information for the cluster.

.google.events.cloud.alloydb.v1.EncryptionInfo encryption_info = 20;

Returns
TypeDescription
EncryptionInfo

The encryptionInfo.

getEncryptionInfoBuilder()

public EncryptionInfo.Builder getEncryptionInfoBuilder()

Output only. The encryption information for the cluster.

.google.events.cloud.alloydb.v1.EncryptionInfo encryption_info = 20;

Returns
TypeDescription
EncryptionInfo.Builder

getEncryptionInfoOrBuilder()

public EncryptionInfoOrBuilder getEncryptionInfoOrBuilder()

Output only. The encryption information for the cluster.

.google.events.cloud.alloydb.v1.EncryptionInfo encryption_info = 20;

Returns
TypeDescription
EncryptionInfoOrBuilder

getEtag()

public String getEtag()

For Resource freshness validation (https://google.aip.dev/154)

string etag = 11;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

For Resource freshness validation (https://google.aip.dev/154)

string etag = 11;

Returns
TypeDescription
ByteString

The bytes for etag.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs

map<string, string> labels = 7;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs

map<string, string> labels = 7;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs

map<string, string> labels = 7;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMigrationSource()

public MigrationSource getMigrationSource()

Output only. Cluster created via DMS migration.

.google.events.cloud.alloydb.v1.MigrationSource migration_source = 16;

Returns
TypeDescription
MigrationSource

The migrationSource.

getMigrationSourceBuilder()

public MigrationSource.Builder getMigrationSourceBuilder()

Output only. Cluster created via DMS migration.

.google.events.cloud.alloydb.v1.MigrationSource migration_source = 16;

Returns
TypeDescription
MigrationSource.Builder

getMigrationSourceOrBuilder()

public MigrationSourceOrBuilder getMigrationSourceOrBuilder()

Output only. Cluster created via DMS migration.

.google.events.cloud.alloydb.v1.MigrationSource migration_source = 16;

Returns
TypeDescription
MigrationSourceOrBuilder

getMutableAnnotations()

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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;

Returns
TypeDescription
String

The name.

getNameBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for name.

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;

Returns
TypeDescription
String

The network.

getNetworkBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for network.

getPrimaryConfig()

public Cluster.PrimaryConfig getPrimaryConfig()

Output only. Cross Region replication config specific to PRIMARY cluster.

.google.events.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23;

Returns
TypeDescription
Cluster.PrimaryConfig

The primaryConfig.

getPrimaryConfigBuilder()

public Cluster.PrimaryConfig.Builder getPrimaryConfigBuilder()

Output only. Cross Region replication config specific to PRIMARY cluster.

.google.events.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23;

Returns
TypeDescription
Cluster.PrimaryConfig.Builder

getPrimaryConfigOrBuilder()

public Cluster.PrimaryConfigOrBuilder getPrimaryConfigOrBuilder()

Output only. Cross Region replication config specific to PRIMARY cluster.

.google.events.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23;

Returns
TypeDescription
Cluster.PrimaryConfigOrBuilder

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;

Returns
TypeDescription
boolean

The reconciling.

getSecondaryConfig()

public Cluster.SecondaryConfig getSecondaryConfig()

Cross Region replication config specific to SECONDARY cluster.

.google.events.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22;

Returns
TypeDescription
Cluster.SecondaryConfig

The secondaryConfig.

getSecondaryConfigBuilder()

public Cluster.SecondaryConfig.Builder getSecondaryConfigBuilder()

Cross Region replication config specific to SECONDARY cluster.

.google.events.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22;

Returns
TypeDescription
Cluster.SecondaryConfig.Builder

getSecondaryConfigOrBuilder()

public Cluster.SecondaryConfigOrBuilder getSecondaryConfigOrBuilder()

Cross Region replication config specific to SECONDARY cluster.

.google.events.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22;

Returns
TypeDescription
Cluster.SecondaryConfigOrBuilder

getSourceCase()

public Cluster.SourceCase getSourceCase()
Returns
TypeDescription
Cluster.SourceCase

getSslConfig()

public SslConfig getSslConfig()

SSL configuration for this AlloyDB Cluster.

.google.events.cloud.alloydb.v1.SslConfig ssl_config = 18;

Returns
TypeDescription
SslConfig

The sslConfig.

getSslConfigBuilder()

public SslConfig.Builder getSslConfigBuilder()

SSL configuration for this AlloyDB Cluster.

.google.events.cloud.alloydb.v1.SslConfig ssl_config = 18;

Returns
TypeDescription
SslConfig.Builder

getSslConfigOrBuilder()

public SslConfigOrBuilder getSslConfigOrBuilder()

SSL configuration for this AlloyDB Cluster.

.google.events.cloud.alloydb.v1.SslConfig ssl_config = 18;

Returns
TypeDescription
SslConfigOrBuilder

getState()

public Cluster.State getState()

Output only. The current serving state of the cluster.

.google.events.cloud.alloydb.v1.Cluster.State state = 8;

Returns
TypeDescription
Cluster.State

The state.

getStateValue()

public int getStateValue()

Output only. The current serving state of the cluster.

.google.events.cloud.alloydb.v1.Cluster.State state = 8;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

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;

Returns
TypeDescription
String

The uid.

getUidBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
TimestampOrBuilder

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.events.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;

Returns
TypeDescription
boolean

Whether the automatedBackupPolicy field is set.

hasBackupSource()

public boolean hasBackupSource()

Output only. Cluster created from backup.

.google.events.cloud.alloydb.v1.BackupSource backup_source = 15;

Returns
TypeDescription
boolean

Whether the backupSource field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDeleteTime()

public boolean hasDeleteTime()

Output only. Delete time stamp

.google.protobuf.Timestamp delete_time = 6;

Returns
TypeDescription
boolean

Whether the deleteTime field is set.

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.events.cloud.alloydb.v1.EncryptionConfig encryption_config = 19;

Returns
TypeDescription
boolean

Whether the encryptionConfig field is set.

hasEncryptionInfo()

public boolean hasEncryptionInfo()

Output only. The encryption information for the cluster.

.google.events.cloud.alloydb.v1.EncryptionInfo encryption_info = 20;

Returns
TypeDescription
boolean

Whether the encryptionInfo field is set.

hasMigrationSource()

public boolean hasMigrationSource()

Output only. Cluster created via DMS migration.

.google.events.cloud.alloydb.v1.MigrationSource migration_source = 16;

Returns
TypeDescription
boolean

Whether the migrationSource field is set.

hasPrimaryConfig()

public boolean hasPrimaryConfig()

Output only. Cross Region replication config specific to PRIMARY cluster.

.google.events.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23;

Returns
TypeDescription
boolean

Whether the primaryConfig field is set.

hasSecondaryConfig()

public boolean hasSecondaryConfig()

Cross Region replication config specific to SECONDARY cluster.

.google.events.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22;

Returns
TypeDescription
boolean

Whether the secondaryConfig field is set.

hasSslConfig()

public boolean hasSslConfig()

SSL configuration for this AlloyDB Cluster.

.google.events.cloud.alloydb.v1.SslConfig ssl_config = 18;

Returns
TypeDescription
boolean

Whether the sslConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAutomatedBackupPolicy(AutomatedBackupPolicy value)

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.events.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;

Parameter
NameDescription
valueAutomatedBackupPolicy
Returns
TypeDescription
Cluster.Builder

mergeBackupSource(BackupSource value)

public Cluster.Builder mergeBackupSource(BackupSource value)

Output only. Cluster created from backup.

.google.events.cloud.alloydb.v1.BackupSource backup_source = 15;

Parameter
NameDescription
valueBackupSource
Returns
TypeDescription
Cluster.Builder

mergeCreateTime(Timestamp value)

public Cluster.Builder mergeCreateTime(Timestamp value)

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Cluster.Builder

mergeDeleteTime(Timestamp value)

public Cluster.Builder mergeDeleteTime(Timestamp value)

Output only. Delete time stamp

.google.protobuf.Timestamp delete_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Cluster.Builder

mergeEncryptionConfig(EncryptionConfig value)

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.events.cloud.alloydb.v1.EncryptionConfig encryption_config = 19;

Parameter
NameDescription
valueEncryptionConfig
Returns
TypeDescription
Cluster.Builder

mergeEncryptionInfo(EncryptionInfo value)

public Cluster.Builder mergeEncryptionInfo(EncryptionInfo value)

Output only. The encryption information for the cluster.

.google.events.cloud.alloydb.v1.EncryptionInfo encryption_info = 20;

Parameter
NameDescription
valueEncryptionInfo
Returns
TypeDescription
Cluster.Builder

mergeFrom(Cluster other)

public Cluster.Builder mergeFrom(Cluster other)
Parameter
NameDescription
otherCluster
Returns
TypeDescription
Cluster.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Cluster.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cluster.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Cluster.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Cluster.Builder
Overrides

mergeMigrationSource(MigrationSource value)

public Cluster.Builder mergeMigrationSource(MigrationSource value)

Output only. Cluster created via DMS migration.

.google.events.cloud.alloydb.v1.MigrationSource migration_source = 16;

Parameter
NameDescription
valueMigrationSource
Returns
TypeDescription
Cluster.Builder

mergePrimaryConfig(Cluster.PrimaryConfig value)

public Cluster.Builder mergePrimaryConfig(Cluster.PrimaryConfig value)

Output only. Cross Region replication config specific to PRIMARY cluster.

.google.events.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23;

Parameter
NameDescription
valueCluster.PrimaryConfig
Returns
TypeDescription
Cluster.Builder

mergeSecondaryConfig(Cluster.SecondaryConfig value)

public Cluster.Builder mergeSecondaryConfig(Cluster.SecondaryConfig value)

Cross Region replication config specific to SECONDARY cluster.

.google.events.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22;

Parameter
NameDescription
valueCluster.SecondaryConfig
Returns
TypeDescription
Cluster.Builder

mergeSslConfig(SslConfig value)

public Cluster.Builder mergeSslConfig(SslConfig value)

SSL configuration for this AlloyDB Cluster.

.google.events.cloud.alloydb.v1.SslConfig ssl_config = 18;

Parameter
NameDescription
valueSslConfig
Returns
TypeDescription
Cluster.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Cluster.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Cluster.Builder mergeUpdateTime(Timestamp value)

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Cluster.Builder

putAllAnnotations(Map<String,String> values)

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;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Cluster.Builder

putAllLabels(Map<String,String> values)

public Cluster.Builder putAllLabels(Map<String,String> values)

Labels as key value pairs

map<string, string> labels = 7;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Cluster.Builder

putAnnotations(String key, String value)

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;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Cluster.Builder

putLabels(String key, String value)

public Cluster.Builder putLabels(String key, String value)

Labels as key value pairs

map<string, string> labels = 7;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Cluster.Builder

removeAnnotations(String key)

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;

Parameter
NameDescription
keyString
Returns
TypeDescription
Cluster.Builder

removeLabels(String key)

public Cluster.Builder removeLabels(String key)

Labels as key value pairs

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
Cluster.Builder

setAutomatedBackupPolicy(AutomatedBackupPolicy value)

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.events.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;

Parameter
NameDescription
valueAutomatedBackupPolicy
Returns
TypeDescription
Cluster.Builder

setAutomatedBackupPolicy(AutomatedBackupPolicy.Builder builderForValue)

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.events.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17;

Parameter
NameDescription
builderForValueAutomatedBackupPolicy.Builder
Returns
TypeDescription
Cluster.Builder

setBackupSource(BackupSource value)

public Cluster.Builder setBackupSource(BackupSource value)

Output only. Cluster created from backup.

.google.events.cloud.alloydb.v1.BackupSource backup_source = 15;

Parameter
NameDescription
valueBackupSource
Returns
TypeDescription
Cluster.Builder

setBackupSource(BackupSource.Builder builderForValue)

public Cluster.Builder setBackupSource(BackupSource.Builder builderForValue)

Output only. Cluster created from backup.

.google.events.cloud.alloydb.v1.BackupSource backup_source = 15;

Parameter
NameDescription
builderForValueBackupSource.Builder
Returns
TypeDescription
Cluster.Builder

setClusterType(Cluster.ClusterType value)

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.events.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24;

Parameter
NameDescription
valueCluster.ClusterType

The clusterType to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setClusterTypeValue(int value)

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.events.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24;

Parameter
NameDescription
valueint

The enum numeric value on the wire for clusterType to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Cluster.Builder setCreateTime(Timestamp value)

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Cluster.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Cluster.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Cluster.Builder

setDatabaseVersion(DatabaseVersion value)

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.events.cloud.alloydb.v1.DatabaseVersion database_version = 9;

Parameter
NameDescription
valueDatabaseVersion

The databaseVersion to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setDatabaseVersionValue(int value)

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.events.cloud.alloydb.v1.DatabaseVersion database_version = 9;

Parameter
NameDescription
valueint

The enum numeric value on the wire for databaseVersion to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setDeleteTime(Timestamp value)

public Cluster.Builder setDeleteTime(Timestamp value)

Output only. Delete time stamp

.google.protobuf.Timestamp delete_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Cluster.Builder

setDeleteTime(Timestamp.Builder builderForValue)

public Cluster.Builder setDeleteTime(Timestamp.Builder builderForValue)

Output only. Delete time stamp

.google.protobuf.Timestamp delete_time = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Cluster.Builder

setDisplayName(String value)

public Cluster.Builder setDisplayName(String value)

User-settable and human-readable display name for the Cluster.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Cluster.Builder setDisplayNameBytes(ByteString value)

User-settable and human-readable display name for the Cluster.

string display_name = 2;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setEncryptionConfig(EncryptionConfig value)

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.events.cloud.alloydb.v1.EncryptionConfig encryption_config = 19;

Parameter
NameDescription
valueEncryptionConfig
Returns
TypeDescription
Cluster.Builder

setEncryptionConfig(EncryptionConfig.Builder builderForValue)

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.events.cloud.alloydb.v1.EncryptionConfig encryption_config = 19;

Parameter
NameDescription
builderForValueEncryptionConfig.Builder
Returns
TypeDescription
Cluster.Builder

setEncryptionInfo(EncryptionInfo value)

public Cluster.Builder setEncryptionInfo(EncryptionInfo value)

Output only. The encryption information for the cluster.

.google.events.cloud.alloydb.v1.EncryptionInfo encryption_info = 20;

Parameter
NameDescription
valueEncryptionInfo
Returns
TypeDescription
Cluster.Builder

setEncryptionInfo(EncryptionInfo.Builder builderForValue)

public Cluster.Builder setEncryptionInfo(EncryptionInfo.Builder builderForValue)

Output only. The encryption information for the cluster.

.google.events.cloud.alloydb.v1.EncryptionInfo encryption_info = 20;

Parameter
NameDescription
builderForValueEncryptionInfo.Builder
Returns
TypeDescription
Cluster.Builder

setEtag(String value)

public Cluster.Builder setEtag(String value)

For Resource freshness validation (https://google.aip.dev/154)

string etag = 11;

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Cluster.Builder setEtagBytes(ByteString value)

For Resource freshness validation (https://google.aip.dev/154)

string etag = 11;

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Cluster.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Cluster.Builder
Overrides

setMigrationSource(MigrationSource value)

public Cluster.Builder setMigrationSource(MigrationSource value)

Output only. Cluster created via DMS migration.

.google.events.cloud.alloydb.v1.MigrationSource migration_source = 16;

Parameter
NameDescription
valueMigrationSource
Returns
TypeDescription
Cluster.Builder

setMigrationSource(MigrationSource.Builder builderForValue)

public Cluster.Builder setMigrationSource(MigrationSource.Builder builderForValue)

Output only. Cluster created via DMS migration.

.google.events.cloud.alloydb.v1.MigrationSource migration_source = 16;

Parameter
NameDescription
builderForValueMigrationSource.Builder
Returns
TypeDescription
Cluster.Builder

setName(String value)

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;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Cluster.Builder setNameBytes(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;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setNetwork(String value)

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;

Parameter
NameDescription
valueString

The network to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public Cluster.Builder setNetworkBytes(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;

Parameter
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setPrimaryConfig(Cluster.PrimaryConfig value)

public Cluster.Builder setPrimaryConfig(Cluster.PrimaryConfig value)

Output only. Cross Region replication config specific to PRIMARY cluster.

.google.events.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23;

Parameter
NameDescription
valueCluster.PrimaryConfig
Returns
TypeDescription
Cluster.Builder

setPrimaryConfig(Cluster.PrimaryConfig.Builder builderForValue)

public Cluster.Builder setPrimaryConfig(Cluster.PrimaryConfig.Builder builderForValue)

Output only. Cross Region replication config specific to PRIMARY cluster.

.google.events.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23;

Parameter
NameDescription
builderForValueCluster.PrimaryConfig.Builder
Returns
TypeDescription
Cluster.Builder

setReconciling(boolean value)

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;

Parameter
NameDescription
valueboolean

The reconciling to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Cluster.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Cluster.Builder
Overrides

setSecondaryConfig(Cluster.SecondaryConfig value)

public Cluster.Builder setSecondaryConfig(Cluster.SecondaryConfig value)

Cross Region replication config specific to SECONDARY cluster.

.google.events.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22;

Parameter
NameDescription
valueCluster.SecondaryConfig
Returns
TypeDescription
Cluster.Builder

setSecondaryConfig(Cluster.SecondaryConfig.Builder builderForValue)

public Cluster.Builder setSecondaryConfig(Cluster.SecondaryConfig.Builder builderForValue)

Cross Region replication config specific to SECONDARY cluster.

.google.events.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22;

Parameter
NameDescription
builderForValueCluster.SecondaryConfig.Builder
Returns
TypeDescription
Cluster.Builder

setSslConfig(SslConfig value)

public Cluster.Builder setSslConfig(SslConfig value)

SSL configuration for this AlloyDB Cluster.

.google.events.cloud.alloydb.v1.SslConfig ssl_config = 18;

Parameter
NameDescription
valueSslConfig
Returns
TypeDescription
Cluster.Builder

setSslConfig(SslConfig.Builder builderForValue)

public Cluster.Builder setSslConfig(SslConfig.Builder builderForValue)

SSL configuration for this AlloyDB Cluster.

.google.events.cloud.alloydb.v1.SslConfig ssl_config = 18;

Parameter
NameDescription
builderForValueSslConfig.Builder
Returns
TypeDescription
Cluster.Builder

setState(Cluster.State value)

public Cluster.Builder setState(Cluster.State value)

Output only. The current serving state of the cluster.

.google.events.cloud.alloydb.v1.Cluster.State state = 8;

Parameter
NameDescription
valueCluster.State

The state to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setStateValue(int value)

public Cluster.Builder setStateValue(int value)

Output only. The current serving state of the cluster.

.google.events.cloud.alloydb.v1.Cluster.State state = 8;

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setUid(String value)

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;

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Cluster.Builder setUidBytes(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;

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Cluster.Builder
Overrides

setUpdateTime(Timestamp value)

public Cluster.Builder setUpdateTime(Timestamp value)

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Cluster.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Cluster.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Cluster.Builder