Send feedback
Class Cluster.PrimaryConfig.Builder (0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.1.0 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
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
Name
Description
values
Iterable <String >
The secondaryClusterNames to add.
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Cluster . PrimaryConfig . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
Name
Description
value
String
The secondaryClusterNames to add.
Returns
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
Name
Description
value
ByteString
The bytes of the secondaryClusterNames to add.
Returns
build()
public Cluster . PrimaryConfig build ()
Returns
buildPartial()
public Cluster . PrimaryConfig buildPartial ()
Returns
clear()
public Cluster . PrimaryConfig . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Cluster . PrimaryConfig . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Cluster . PrimaryConfig . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
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
clone()
public Cluster . PrimaryConfig . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public Cluster . PrimaryConfig getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
Name
Description
index
int
The index of the element to return.
Returns
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];
Parameter
Name
Description
index
int
The index of the value to return.
Returns
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];
Returns
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];
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(Cluster.PrimaryConfig other)
public Cluster . PrimaryConfig . Builder mergeFrom ( Cluster . PrimaryConfig other )
Parameter
Returns
public Cluster . PrimaryConfig . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Cluster . PrimaryConfig . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Cluster . PrimaryConfig . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Cluster . PrimaryConfig . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Cluster . PrimaryConfig . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
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
Name
Description
index
int
The index to set the value at.
value
String
The secondaryClusterNames to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Cluster . PrimaryConfig . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]