Class Cluster.PrimaryConfig.Builder (0.30.0)

public static final class Cluster.PrimaryConfig.Builder extends GeneratedMessageV3.Builder<Cluster.PrimaryConfig.Builder> implements Cluster.PrimaryConfigOrBuilder

Configuration for the primary cluster. It has the list of clusters that are replicating from this cluster. This should be set if and only if the cluster is of type PRIMARY.

Protobuf type google.cloud.alloydb.v1alpha.Cluster.PrimaryConfig

Static Methods

getDescriptor()

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

Methods

addAllSecondaryClusterNames(Iterable<String> values)

public Cluster.PrimaryConfig.Builder addAllSecondaryClusterNames(Iterable<String> values)

Output only. Names of the clusters that are replicating from this cluster.

repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<String>

The secondaryClusterNames to add.

Returns
TypeDescription
Cluster.PrimaryConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSecondaryClusterNames(String value)

public Cluster.PrimaryConfig.Builder addSecondaryClusterNames(String value)

Output only. Names of the clusters that are replicating from this cluster.

repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The secondaryClusterNames to add.

Returns
TypeDescription
Cluster.PrimaryConfig.Builder

This builder for chaining.

addSecondaryClusterNamesBytes(ByteString value)

public Cluster.PrimaryConfig.Builder addSecondaryClusterNamesBytes(ByteString value)

Output only. Names of the clusters that are replicating from this cluster.

repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes of the secondaryClusterNames to add.

Returns
TypeDescription
Cluster.PrimaryConfig.Builder

This builder for chaining.

build()

public Cluster.PrimaryConfig build()
Returns
TypeDescription
Cluster.PrimaryConfig

buildPartial()

public Cluster.PrimaryConfig buildPartial()
Returns
TypeDescription
Cluster.PrimaryConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSecondaryClusterNames()

public Cluster.PrimaryConfig.Builder clearSecondaryClusterNames()

Output only. Names of the clusters that are replicating from this cluster.

repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Cluster.PrimaryConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Cluster.PrimaryConfig getDefaultInstanceForType()
Returns
TypeDescription
Cluster.PrimaryConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSecondaryClusterNames(int index)

public String getSecondaryClusterNames(int index)

Output only. Names of the clusters that are replicating from this cluster.

repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The secondaryClusterNames at the given index.

getSecondaryClusterNamesBytes(int index)

public ByteString getSecondaryClusterNamesBytes(int index)

Output only. Names of the clusters that are replicating from this cluster.

repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the secondaryClusterNames at the given index.

getSecondaryClusterNamesCount()

public int getSecondaryClusterNamesCount()

Output only. Names of the clusters that are replicating from this cluster.

repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The count of secondaryClusterNames.

getSecondaryClusterNamesList()

public ProtocolStringList getSecondaryClusterNamesList()

Output only. Names of the clusters that are replicating from this cluster.

repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ProtocolStringList

A list containing the secondaryClusterNames.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Cluster.PrimaryConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSecondaryClusterNames(int index, String value)

public Cluster.PrimaryConfig.Builder setSecondaryClusterNames(int index, String value)

Output only. Names of the clusters that are replicating from this cluster.

repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The secondaryClusterNames to set.

Returns
TypeDescription
Cluster.PrimaryConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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