Class Cluster.SecondaryConfig.Builder (0.72.0)

public static final class Cluster.SecondaryConfig.Builder extends GeneratedMessage.Builder<Cluster.SecondaryConfig.Builder> implements Cluster.SecondaryConfigOrBuilder

Configuration information for the secondary cluster. This should be set if and only if the cluster is of type SECONDARY.

Protobuf type google.cloud.alloydb.v1beta.Cluster.SecondaryConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Cluster.SecondaryConfig build()
Returns
Type Description
Cluster.SecondaryConfig

buildPartial()

public Cluster.SecondaryConfig buildPartial()
Returns
Type Description
Cluster.SecondaryConfig

clear()

public Cluster.SecondaryConfig.Builder clear()
Returns
Type Description
Cluster.SecondaryConfig.Builder
Overrides

clearPrimaryClusterName()

public Cluster.SecondaryConfig.Builder clearPrimaryClusterName()

The name of the primary cluster name with the format:

  • projects/{project}/locations/{region}/clusters/{cluster_id}

string primary_cluster_name = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
Cluster.SecondaryConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public Cluster.SecondaryConfig getDefaultInstanceForType()
Returns
Type Description
Cluster.SecondaryConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPrimaryClusterName()

public String getPrimaryClusterName()

The name of the primary cluster name with the format:

  • projects/{project}/locations/{region}/clusters/{cluster_id}

string primary_cluster_name = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The primaryClusterName.

getPrimaryClusterNameBytes()

public ByteString getPrimaryClusterNameBytes()

The name of the primary cluster name with the format:

  • projects/{project}/locations/{region}/clusters/{cluster_id}

string primary_cluster_name = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for primaryClusterName.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Cluster.SecondaryConfig other)

public Cluster.SecondaryConfig.Builder mergeFrom(Cluster.SecondaryConfig other)
Parameter
Name Description
other Cluster.SecondaryConfig
Returns
Type Description
Cluster.SecondaryConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Cluster.SecondaryConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Cluster.SecondaryConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Cluster.SecondaryConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Cluster.SecondaryConfig.Builder
Overrides

setPrimaryClusterName(String value)

public Cluster.SecondaryConfig.Builder setPrimaryClusterName(String value)

The name of the primary cluster name with the format:

  • projects/{project}/locations/{region}/clusters/{cluster_id}

string primary_cluster_name = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The primaryClusterName to set.

Returns
Type Description
Cluster.SecondaryConfig.Builder

This builder for chaining.

setPrimaryClusterNameBytes(ByteString value)

public Cluster.SecondaryConfig.Builder setPrimaryClusterNameBytes(ByteString value)

The name of the primary cluster name with the format:

  • projects/{project}/locations/{region}/clusters/{cluster_id}

string primary_cluster_name = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for primaryClusterName to set.

Returns
Type Description
Cluster.SecondaryConfig.Builder

This builder for chaining.