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.v1beta.Cluster.PrimaryConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Cluster.PrimaryConfig.BuilderImplements
Cluster.PrimaryConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
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];
Name | Description |
values |
Iterable<String> The secondaryClusterNames to add. |
Type | Description |
Cluster.PrimaryConfig.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Cluster.PrimaryConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
Cluster.PrimaryConfig.Builder |
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];
Name | Description |
value |
String The secondaryClusterNames to add. |
Type | Description |
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];
Name | Description |
value |
ByteString The bytes of the secondaryClusterNames to add. |
Type | Description |
Cluster.PrimaryConfig.Builder |
This builder for chaining. |
build()
public Cluster.PrimaryConfig build()
Type | Description |
Cluster.PrimaryConfig |
buildPartial()
public Cluster.PrimaryConfig buildPartial()
Type | Description |
Cluster.PrimaryConfig |
clear()
public Cluster.PrimaryConfig.Builder clear()
Type | Description |
Cluster.PrimaryConfig.Builder |
clearField(Descriptors.FieldDescriptor field)
public Cluster.PrimaryConfig.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field |
FieldDescriptor |
Type | Description |
Cluster.PrimaryConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Cluster.PrimaryConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof |
OneofDescriptor |
Type | Description |
Cluster.PrimaryConfig.Builder |
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];
Type | Description |
Cluster.PrimaryConfig.Builder |
This builder for chaining. |
clone()
public Cluster.PrimaryConfig.Builder clone()
Type | Description |
Cluster.PrimaryConfig.Builder |
getDefaultInstanceForType()
public Cluster.PrimaryConfig getDefaultInstanceForType()
Type | Description |
Cluster.PrimaryConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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];
Name | Description |
index |
int The index of the element to return. |
Type | Description |
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];
Name | Description |
index |
int The index of the value to return. |
Type | Description |
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];
Type | Description |
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];
Type | Description |
ProtocolStringList |
A list containing the secondaryClusterNames. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Cluster.PrimaryConfig other)
public Cluster.PrimaryConfig.Builder mergeFrom(Cluster.PrimaryConfig other)
Name | Description |
other |
Cluster.PrimaryConfig |
Type | Description |
Cluster.PrimaryConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Cluster.PrimaryConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
Cluster.PrimaryConfig.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Cluster.PrimaryConfig.Builder mergeFrom(Message other)
Name | Description |
other |
Message |
Type | Description |
Cluster.PrimaryConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Cluster.PrimaryConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
Cluster.PrimaryConfig.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Cluster.PrimaryConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
Cluster.PrimaryConfig.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Cluster.PrimaryConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Type | Description |
Cluster.PrimaryConfig.Builder |
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];
Name | Description |
index |
int The index to set the value at. |
value |
String The secondaryClusterNames to set. |
Type | Description |
Cluster.PrimaryConfig.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Cluster.PrimaryConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
Cluster.PrimaryConfig.Builder |