Package com.google.cloud.alloydb.v1beta
Class Cluster.PrimaryConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Cluster.PrimaryConfig.Builder>
com.google.cloud.alloydb.v1beta.Cluster.PrimaryConfig.Builder
- All Implemented Interfaces:
Cluster.PrimaryConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Cluster.PrimaryConfig
public static final class Cluster.PrimaryConfig.Builder
extends com.google.protobuf.GeneratedMessage.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.v1beta.Cluster.PrimaryConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllSecondaryClusterNames(Iterable<String> values) Output only.addSecondaryClusterNames(String value) Output only.addSecondaryClusterNamesBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetSecondaryClusterNames(int index) Output only.com.google.protobuf.ByteStringgetSecondaryClusterNamesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Cluster.PrimaryConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setSecondaryClusterNames(int index, String value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Cluster.PrimaryConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Cluster.PrimaryConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Cluster.PrimaryConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Cluster.PrimaryConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Cluster.PrimaryConfig.Builder>
-
mergeFrom
public Cluster.PrimaryConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Cluster.PrimaryConfig.Builder>- Throws:
IOException
-
getSecondaryClusterNamesList
public com.google.protobuf.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, (.google.api.resource_reference) = { ... }- Specified by:
getSecondaryClusterNamesListin interfaceCluster.PrimaryConfigOrBuilder- Returns:
- A list containing the secondaryClusterNames.
-
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, (.google.api.resource_reference) = { ... }- Specified by:
getSecondaryClusterNamesCountin interfaceCluster.PrimaryConfigOrBuilder- Returns:
- The count of secondaryClusterNames.
-
getSecondaryClusterNames
Output only. Names of the clusters that are replicating from this cluster.
repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getSecondaryClusterNamesin interfaceCluster.PrimaryConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The secondaryClusterNames at the given index.
-
getSecondaryClusterNamesBytes
public com.google.protobuf.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, (.google.api.resource_reference) = { ... }- Specified by:
getSecondaryClusterNamesBytesin interfaceCluster.PrimaryConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the secondaryClusterNames at the given index.
-
setSecondaryClusterNames
Output only. Names of the clusters that are replicating from this cluster.
repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
index- The index to set the value at.value- The secondaryClusterNames to set.- Returns:
- This builder for chaining.
-
addSecondaryClusterNames
Output only. Names of the clusters that are replicating from this cluster.
repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The secondaryClusterNames to add.- Returns:
- This builder for chaining.
-
addAllSecondaryClusterNames
Output only. Names of the clusters that are replicating from this cluster.
repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
values- The secondaryClusterNames to add.- Returns:
- This builder for chaining.
-
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, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
addSecondaryClusterNamesBytes
public Cluster.PrimaryConfig.Builder addSecondaryClusterNamesBytes(com.google.protobuf.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, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes of the secondaryClusterNames to add.- Returns:
- This builder for chaining.
-