Class Cluster.PrimaryConfig (0.14.1)

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.events.cloud.alloydb.v1.Cluster.PrimaryConfig

Static Fields

SECONDARY_CLUSTER_NAMES_FIELD_NUMBER

public static final int SECONDARY_CLUSTER_NAMES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Cluster.PrimaryConfig getDefaultInstance()
Returns
TypeDescription
Cluster.PrimaryConfig

getDescriptor()

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

newBuilder()

public static Cluster.PrimaryConfig.Builder newBuilder()
Returns
TypeDescription
Cluster.PrimaryConfig.Builder

newBuilder(Cluster.PrimaryConfig prototype)

public static Cluster.PrimaryConfig.Builder newBuilder(Cluster.PrimaryConfig prototype)
Parameter
NameDescription
prototypeCluster.PrimaryConfig
Returns
TypeDescription
Cluster.PrimaryConfig.Builder

parseDelimitedFrom(InputStream input)

public static Cluster.PrimaryConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Cluster.PrimaryConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Cluster.PrimaryConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cluster.PrimaryConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Cluster.PrimaryConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Cluster.PrimaryConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Cluster.PrimaryConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cluster.PrimaryConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Cluster.PrimaryConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Cluster.PrimaryConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Cluster.PrimaryConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cluster.PrimaryConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Cluster.PrimaryConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Cluster.PrimaryConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Cluster.PrimaryConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cluster.PrimaryConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Cluster.PrimaryConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Cluster.PrimaryConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Cluster.PrimaryConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cluster.PrimaryConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Cluster.PrimaryConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Cluster.PrimaryConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Cluster.PrimaryConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cluster.PrimaryConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<Cluster.PrimaryConfig> getParserForType()
Returns
TypeDescription
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;

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;

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;

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;

Returns
TypeDescription
ProtocolStringList

A list containing the secondaryClusterNames.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Cluster.PrimaryConfig.Builder newBuilderForType()
Returns
TypeDescription
Cluster.PrimaryConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Cluster.PrimaryConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Cluster.PrimaryConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Cluster.PrimaryConfig.Builder toBuilder()
Returns
TypeDescription
Cluster.PrimaryConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException