public static final class Cluster.PrimaryConfig extends GeneratedMessageV3 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
Static Fields
SECONDARY_CLUSTER_NAMES_FIELD_NUMBER
public static final int SECONDARY_CLUSTER_NAMES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Cluster.PrimaryConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Cluster.PrimaryConfig.Builder newBuilder()
Returns
newBuilder(Cluster.PrimaryConfig prototype)
public static Cluster.PrimaryConfig.Builder newBuilder(Cluster.PrimaryConfig prototype)
Parameter
Returns
public static Cluster.PrimaryConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Cluster.PrimaryConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Cluster.PrimaryConfig parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Cluster.PrimaryConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Cluster.PrimaryConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Cluster.PrimaryConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Cluster.PrimaryConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Cluster.PrimaryConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Cluster.PrimaryConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Cluster.PrimaryConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Cluster.PrimaryConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Cluster.PrimaryConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Cluster.PrimaryConfig> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Cluster.PrimaryConfig getDefaultInstanceForType()
Returns
getParserForType()
public Parser<Cluster.PrimaryConfig> getParserForType()
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
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Cluster.PrimaryConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Cluster.PrimaryConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Cluster.PrimaryConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions