Class Cluster.PrimaryConfig (0.42.0)

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
Type Description
int

Static Methods

getDefaultInstance()

public static Cluster.PrimaryConfig getDefaultInstance()
Returns
Type Description
Cluster.PrimaryConfig

getDescriptor()

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

newBuilder()

public static Cluster.PrimaryConfig.Builder newBuilder()
Returns
Type Description
Cluster.PrimaryConfig.Builder

newBuilder(Cluster.PrimaryConfig prototype)

public static Cluster.PrimaryConfig.Builder newBuilder(Cluster.PrimaryConfig prototype)
Parameter
Name Description
prototype Cluster.PrimaryConfig
Returns
Type Description
Cluster.PrimaryConfig.Builder

parseDelimitedFrom(InputStream input)

public static Cluster.PrimaryConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Cluster.PrimaryConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Cluster.PrimaryConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Cluster.PrimaryConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Cluster.PrimaryConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Cluster.PrimaryConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Cluster.PrimaryConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Cluster.PrimaryConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Cluster.PrimaryConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Cluster.PrimaryConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Cluster.PrimaryConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Cluster.PrimaryConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Cluster.PrimaryConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Cluster.PrimaryConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Cluster.PrimaryConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Cluster.PrimaryConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Cluster.PrimaryConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Cluster.PrimaryConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Cluster.PrimaryConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Cluster.PrimaryConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Cluster.PrimaryConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Cluster.PrimaryConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Cluster.PrimaryConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Cluster.PrimaryConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Cluster.PrimaryConfig> parser()
Returns
Type Description
Parser<PrimaryConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<Cluster.PrimaryConfig> getParserForType()
Returns
Type Description
Parser<PrimaryConfig>
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
Type Description
ProtocolStringList

A list containing the secondaryClusterNames.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Cluster.PrimaryConfig.Builder newBuilderForType()
Returns
Type Description
Cluster.PrimaryConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Cluster.PrimaryConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Cluster.PrimaryConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Cluster.PrimaryConfig.Builder toBuilder()
Returns
Type Description
Cluster.PrimaryConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException