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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Cluster.PrimaryConfig.Builder newBuilder()
newBuilder(Cluster.PrimaryConfig prototype)
public static Cluster.PrimaryConfig.Builder newBuilder(Cluster.PrimaryConfig prototype)
public static Cluster.PrimaryConfig parseDelimitedFrom(InputStream input)
public static Cluster.PrimaryConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Cluster.PrimaryConfig parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Cluster.PrimaryConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Cluster.PrimaryConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Cluster.PrimaryConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Cluster.PrimaryConfig parseFrom(CodedInputStream input)
public static Cluster.PrimaryConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Cluster.PrimaryConfig parseFrom(InputStream input)
public static Cluster.PrimaryConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Cluster.PrimaryConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Cluster.PrimaryConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Cluster.PrimaryConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Cluster.PrimaryConfig getDefaultInstanceForType()
getParserForType()
public Parser<Cluster.PrimaryConfig> getParserForType()
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];
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Cluster.PrimaryConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Cluster.PrimaryConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Cluster.PrimaryConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides