Class CrossClusterReplicationConfig.Membership.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CrossClusterReplicationConfig.Membership.Builder>
com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership.Builder
- All Implemented Interfaces:
CrossClusterReplicationConfig.MembershipOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CrossClusterReplicationConfig.Membership
public static final class CrossClusterReplicationConfig.Membership.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CrossClusterReplicationConfig.Membership.Builder>
implements CrossClusterReplicationConfig.MembershipOrBuilder
An output only view of all the member clusters participating in the cross cluster replication.Protobuf type
google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership-
Method Summary
Modifier and TypeMethodDescriptionaddAllSecondaryClusters(Iterable<? extends CrossClusterReplicationConfig.RemoteCluster> values) Output only.addSecondaryClusters(int index, CrossClusterReplicationConfig.RemoteCluster value) Output only.addSecondaryClusters(int index, CrossClusterReplicationConfig.RemoteCluster.Builder builderForValue) Output only.Output only.addSecondaryClusters(CrossClusterReplicationConfig.RemoteCluster.Builder builderForValue) Output only.Output only.addSecondaryClustersBuilder(int index) Output only.build()clear()Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.Output only.Output only.getSecondaryClusters(int index) Output only.getSecondaryClustersBuilder(int index) Output only.Output only.intOutput only.Output only.getSecondaryClustersOrBuilder(int index) Output only.Output only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.removeSecondaryClusters(int index) Output only.Output only.setPrimaryCluster(CrossClusterReplicationConfig.RemoteCluster.Builder builderForValue) Output only.setSecondaryClusters(int index, CrossClusterReplicationConfig.RemoteCluster value) Output only.setSecondaryClusters(int index, CrossClusterReplicationConfig.RemoteCluster.Builder builderForValue) 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<CrossClusterReplicationConfig.Membership.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<CrossClusterReplicationConfig.Membership.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<CrossClusterReplicationConfig.Membership.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
public CrossClusterReplicationConfig.Membership.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CrossClusterReplicationConfig.Membership.Builder>
-
mergeFrom
public CrossClusterReplicationConfig.Membership.Builder mergeFrom(CrossClusterReplicationConfig.Membership other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CrossClusterReplicationConfig.Membership.Builder>
-
mergeFrom
public CrossClusterReplicationConfig.Membership.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<CrossClusterReplicationConfig.Membership.Builder>- Throws:
IOException
-
hasPrimaryCluster
public boolean hasPrimaryCluster()Output only. The primary cluster that acts as the source of replication for the secondary clusters.
.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasPrimaryClusterin interfaceCrossClusterReplicationConfig.MembershipOrBuilder- Returns:
- Whether the primaryCluster field is set.
-
getPrimaryCluster
Output only. The primary cluster that acts as the source of replication for the secondary clusters.
.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryClusterin interfaceCrossClusterReplicationConfig.MembershipOrBuilder- Returns:
- The primaryCluster.
-
setPrimaryCluster
public CrossClusterReplicationConfig.Membership.Builder setPrimaryCluster(CrossClusterReplicationConfig.RemoteCluster value) Output only. The primary cluster that acts as the source of replication for the secondary clusters.
.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setPrimaryCluster
public CrossClusterReplicationConfig.Membership.Builder setPrimaryCluster(CrossClusterReplicationConfig.RemoteCluster.Builder builderForValue) Output only. The primary cluster that acts as the source of replication for the secondary clusters.
.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergePrimaryCluster
public CrossClusterReplicationConfig.Membership.Builder mergePrimaryCluster(CrossClusterReplicationConfig.RemoteCluster value) Output only. The primary cluster that acts as the source of replication for the secondary clusters.
.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearPrimaryCluster
Output only. The primary cluster that acts as the source of replication for the secondary clusters.
.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPrimaryClusterBuilder
Output only. The primary cluster that acts as the source of replication for the secondary clusters.
.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPrimaryClusterOrBuilder
Output only. The primary cluster that acts as the source of replication for the secondary clusters.
.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryClusterOrBuilderin interfaceCrossClusterReplicationConfig.MembershipOrBuilder
-
getSecondaryClustersList
Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSecondaryClustersListin interfaceCrossClusterReplicationConfig.MembershipOrBuilder
-
getSecondaryClustersCount
public int getSecondaryClustersCount()Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSecondaryClustersCountin interfaceCrossClusterReplicationConfig.MembershipOrBuilder
-
getSecondaryClusters
Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSecondaryClustersin interfaceCrossClusterReplicationConfig.MembershipOrBuilder
-
setSecondaryClusters
public CrossClusterReplicationConfig.Membership.Builder setSecondaryClusters(int index, CrossClusterReplicationConfig.RemoteCluster value) Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setSecondaryClusters
public CrossClusterReplicationConfig.Membership.Builder setSecondaryClusters(int index, CrossClusterReplicationConfig.RemoteCluster.Builder builderForValue) Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addSecondaryClusters
public CrossClusterReplicationConfig.Membership.Builder addSecondaryClusters(CrossClusterReplicationConfig.RemoteCluster value) Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addSecondaryClusters
public CrossClusterReplicationConfig.Membership.Builder addSecondaryClusters(int index, CrossClusterReplicationConfig.RemoteCluster value) Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addSecondaryClusters
public CrossClusterReplicationConfig.Membership.Builder addSecondaryClusters(CrossClusterReplicationConfig.RemoteCluster.Builder builderForValue) Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addSecondaryClusters
public CrossClusterReplicationConfig.Membership.Builder addSecondaryClusters(int index, CrossClusterReplicationConfig.RemoteCluster.Builder builderForValue) Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllSecondaryClusters
public CrossClusterReplicationConfig.Membership.Builder addAllSecondaryClusters(Iterable<? extends CrossClusterReplicationConfig.RemoteCluster> values) Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearSecondaryClusters
Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeSecondaryClusters
Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSecondaryClustersBuilder
Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSecondaryClustersOrBuilder
public CrossClusterReplicationConfig.RemoteClusterOrBuilder getSecondaryClustersOrBuilder(int index) Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSecondaryClustersOrBuilderin interfaceCrossClusterReplicationConfig.MembershipOrBuilder
-
getSecondaryClustersOrBuilderList
public List<? extends CrossClusterReplicationConfig.RemoteClusterOrBuilder> getSecondaryClustersOrBuilderList()Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSecondaryClustersOrBuilderListin interfaceCrossClusterReplicationConfig.MembershipOrBuilder
-
addSecondaryClustersBuilder
Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addSecondaryClustersBuilder
Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSecondaryClustersBuilderList
Output only. The list of secondary clusters replicating from the primary cluster.
repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-