Class CrossClusterReplicationConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CrossClusterReplicationConfig.Builder>
com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Builder
All Implemented Interfaces:
CrossClusterReplicationConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CrossClusterReplicationConfig

public static final class CrossClusterReplicationConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<CrossClusterReplicationConfig.Builder> implements CrossClusterReplicationConfigOrBuilder
 Cross cluster replication config.
 
Protobuf type google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CrossClusterReplicationConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CrossClusterReplicationConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CrossClusterReplicationConfig.Builder>
    • getDefaultInstanceForType

      public CrossClusterReplicationConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CrossClusterReplicationConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CrossClusterReplicationConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CrossClusterReplicationConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CrossClusterReplicationConfig.Builder>
    • mergeFrom

      public CrossClusterReplicationConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CrossClusterReplicationConfig.Builder>
      Throws:
      IOException
    • getClusterRoleValue

      public int getClusterRoleValue()
       The role of the cluster in cross cluster replication.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1;
      Specified by:
      getClusterRoleValue in interface CrossClusterReplicationConfigOrBuilder
      Returns:
      The enum numeric value on the wire for clusterRole.
    • setClusterRoleValue

      public CrossClusterReplicationConfig.Builder setClusterRoleValue(int value)
       The role of the cluster in cross cluster replication.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1;
      Parameters:
      value - The enum numeric value on the wire for clusterRole to set.
      Returns:
      This builder for chaining.
    • getClusterRole

       The role of the cluster in cross cluster replication.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1;
      Specified by:
      getClusterRole in interface CrossClusterReplicationConfigOrBuilder
      Returns:
      The clusterRole.
    • setClusterRole

       The role of the cluster in cross cluster replication.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1;
      Parameters:
      value - The clusterRole to set.
      Returns:
      This builder for chaining.
    • clearClusterRole

      public CrossClusterReplicationConfig.Builder clearClusterRole()
       The role of the cluster in cross cluster replication.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1;
      Returns:
      This builder for chaining.
    • hasPrimaryCluster

      public boolean hasPrimaryCluster()
       Details of the primary cluster that is used as the replication source for
       this secondary cluster.
      
       This field is only set for a secondary cluster.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2;
      Specified by:
      hasPrimaryCluster in interface CrossClusterReplicationConfigOrBuilder
      Returns:
      Whether the primaryCluster field is set.
    • getPrimaryCluster

      public CrossClusterReplicationConfig.RemoteCluster getPrimaryCluster()
       Details of the primary cluster that is used as the replication source for
       this secondary cluster.
      
       This field is only set for a secondary cluster.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2;
      Specified by:
      getPrimaryCluster in interface CrossClusterReplicationConfigOrBuilder
      Returns:
      The primaryCluster.
    • setPrimaryCluster

       Details of the primary cluster that is used as the replication source for
       this secondary cluster.
      
       This field is only set for a secondary cluster.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2;
    • setPrimaryCluster

       Details of the primary cluster that is used as the replication source for
       this secondary cluster.
      
       This field is only set for a secondary cluster.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2;
    • mergePrimaryCluster

       Details of the primary cluster that is used as the replication source for
       this secondary cluster.
      
       This field is only set for a secondary cluster.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2;
    • clearPrimaryCluster

      public CrossClusterReplicationConfig.Builder clearPrimaryCluster()
       Details of the primary cluster that is used as the replication source for
       this secondary cluster.
      
       This field is only set for a secondary cluster.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2;
    • getPrimaryClusterBuilder

      public CrossClusterReplicationConfig.RemoteCluster.Builder getPrimaryClusterBuilder()
       Details of the primary cluster that is used as the replication source for
       this secondary cluster.
      
       This field is only set for a secondary cluster.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2;
    • getPrimaryClusterOrBuilder

      public CrossClusterReplicationConfig.RemoteClusterOrBuilder getPrimaryClusterOrBuilder()
       Details of the primary cluster that is used as the replication source for
       this secondary cluster.
      
       This field is only set for a secondary cluster.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2;
      Specified by:
      getPrimaryClusterOrBuilder in interface CrossClusterReplicationConfigOrBuilder
    • getSecondaryClustersList

      public List<CrossClusterReplicationConfig.RemoteCluster> getSecondaryClustersList()
       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
      Specified by:
      getSecondaryClustersList in interface CrossClusterReplicationConfigOrBuilder
    • getSecondaryClustersCount

      public int getSecondaryClustersCount()
       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
      Specified by:
      getSecondaryClustersCount in interface CrossClusterReplicationConfigOrBuilder
    • getSecondaryClusters

      public CrossClusterReplicationConfig.RemoteCluster getSecondaryClusters(int index)
       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
      Specified by:
      getSecondaryClusters in interface CrossClusterReplicationConfigOrBuilder
    • setSecondaryClusters

       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
    • setSecondaryClusters

      public CrossClusterReplicationConfig.Builder setSecondaryClusters(int index, CrossClusterReplicationConfig.RemoteCluster.Builder builderForValue)
       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
    • addSecondaryClusters

       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
    • addSecondaryClusters

       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
    • addSecondaryClusters

       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
    • addSecondaryClusters

      public CrossClusterReplicationConfig.Builder addSecondaryClusters(int index, CrossClusterReplicationConfig.RemoteCluster.Builder builderForValue)
       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
    • addAllSecondaryClusters

       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
    • clearSecondaryClusters

      public CrossClusterReplicationConfig.Builder clearSecondaryClusters()
       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
    • removeSecondaryClusters

      public CrossClusterReplicationConfig.Builder removeSecondaryClusters(int index)
       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
    • getSecondaryClustersBuilder

      public CrossClusterReplicationConfig.RemoteCluster.Builder getSecondaryClustersBuilder(int index)
       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
    • getSecondaryClustersOrBuilder

      public CrossClusterReplicationConfig.RemoteClusterOrBuilder getSecondaryClustersOrBuilder(int index)
       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
      Specified by:
      getSecondaryClustersOrBuilder in interface CrossClusterReplicationConfigOrBuilder
    • getSecondaryClustersOrBuilderList

      public List<? extends CrossClusterReplicationConfig.RemoteClusterOrBuilder> getSecondaryClustersOrBuilderList()
       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
      Specified by:
      getSecondaryClustersOrBuilderList in interface CrossClusterReplicationConfigOrBuilder
    • addSecondaryClustersBuilder

      public CrossClusterReplicationConfig.RemoteCluster.Builder addSecondaryClustersBuilder()
       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
    • addSecondaryClustersBuilder

      public CrossClusterReplicationConfig.RemoteCluster.Builder addSecondaryClustersBuilder(int index)
       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
    • getSecondaryClustersBuilderList

      public List<CrossClusterReplicationConfig.RemoteCluster.Builder> getSecondaryClustersBuilderList()
       List of secondary clusters that are replicating from this primary cluster.
      
       This field is only set for a primary cluster.
       
      repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The last time cross cluster replication config was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface CrossClusterReplicationConfigOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The last time cross cluster replication config was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface CrossClusterReplicationConfigOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public CrossClusterReplicationConfig.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last time cross cluster replication config was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public CrossClusterReplicationConfig.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The last time cross cluster replication config was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public CrossClusterReplicationConfig.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last time cross cluster replication config was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public CrossClusterReplicationConfig.Builder clearUpdateTime()
       Output only. The last time cross cluster replication config was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The last time cross cluster replication config was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The last time cross cluster replication config was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface CrossClusterReplicationConfigOrBuilder
    • hasMembership

      public boolean hasMembership()
       Output only. An output only view of all the member clusters participating
       in the cross cluster replication. This view will be provided by every
       member cluster irrespective of its cluster role(primary or secondary).
      
       A primary cluster can provide information about all the secondary clusters
       replicating from it. However, a secondary cluster only knows about the
       primary cluster from which it is replicating. However, for scenarios, where
       the primary cluster is unavailable(e.g. regional outage), a GetCluster
       request can be sent to any other member cluster and this field will list
       all the member clusters participating in cross cluster replication.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasMembership in interface CrossClusterReplicationConfigOrBuilder
      Returns:
      Whether the membership field is set.
    • getMembership

       Output only. An output only view of all the member clusters participating
       in the cross cluster replication. This view will be provided by every
       member cluster irrespective of its cluster role(primary or secondary).
      
       A primary cluster can provide information about all the secondary clusters
       replicating from it. However, a secondary cluster only knows about the
       primary cluster from which it is replicating. However, for scenarios, where
       the primary cluster is unavailable(e.g. regional outage), a GetCluster
       request can be sent to any other member cluster and this field will list
       all the member clusters participating in cross cluster replication.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMembership in interface CrossClusterReplicationConfigOrBuilder
      Returns:
      The membership.
    • setMembership

       Output only. An output only view of all the member clusters participating
       in the cross cluster replication. This view will be provided by every
       member cluster irrespective of its cluster role(primary or secondary).
      
       A primary cluster can provide information about all the secondary clusters
       replicating from it. However, a secondary cluster only knows about the
       primary cluster from which it is replicating. However, for scenarios, where
       the primary cluster is unavailable(e.g. regional outage), a GetCluster
       request can be sent to any other member cluster and this field will list
       all the member clusters participating in cross cluster replication.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setMembership

       Output only. An output only view of all the member clusters participating
       in the cross cluster replication. This view will be provided by every
       member cluster irrespective of its cluster role(primary or secondary).
      
       A primary cluster can provide information about all the secondary clusters
       replicating from it. However, a secondary cluster only knows about the
       primary cluster from which it is replicating. However, for scenarios, where
       the primary cluster is unavailable(e.g. regional outage), a GetCluster
       request can be sent to any other member cluster and this field will list
       all the member clusters participating in cross cluster replication.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeMembership

       Output only. An output only view of all the member clusters participating
       in the cross cluster replication. This view will be provided by every
       member cluster irrespective of its cluster role(primary or secondary).
      
       A primary cluster can provide information about all the secondary clusters
       replicating from it. However, a secondary cluster only knows about the
       primary cluster from which it is replicating. However, for scenarios, where
       the primary cluster is unavailable(e.g. regional outage), a GetCluster
       request can be sent to any other member cluster and this field will list
       all the member clusters participating in cross cluster replication.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearMembership

      public CrossClusterReplicationConfig.Builder clearMembership()
       Output only. An output only view of all the member clusters participating
       in the cross cluster replication. This view will be provided by every
       member cluster irrespective of its cluster role(primary or secondary).
      
       A primary cluster can provide information about all the secondary clusters
       replicating from it. However, a secondary cluster only knows about the
       primary cluster from which it is replicating. However, for scenarios, where
       the primary cluster is unavailable(e.g. regional outage), a GetCluster
       request can be sent to any other member cluster and this field will list
       all the member clusters participating in cross cluster replication.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMembershipBuilder

      public CrossClusterReplicationConfig.Membership.Builder getMembershipBuilder()
       Output only. An output only view of all the member clusters participating
       in the cross cluster replication. This view will be provided by every
       member cluster irrespective of its cluster role(primary or secondary).
      
       A primary cluster can provide information about all the secondary clusters
       replicating from it. However, a secondary cluster only knows about the
       primary cluster from which it is replicating. However, for scenarios, where
       the primary cluster is unavailable(e.g. regional outage), a GetCluster
       request can be sent to any other member cluster and this field will list
       all the member clusters participating in cross cluster replication.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMembershipOrBuilder

      public CrossClusterReplicationConfig.MembershipOrBuilder getMembershipOrBuilder()
       Output only. An output only view of all the member clusters participating
       in the cross cluster replication. This view will be provided by every
       member cluster irrespective of its cluster role(primary or secondary).
      
       A primary cluster can provide information about all the secondary clusters
       replicating from it. However, a secondary cluster only knows about the
       primary cluster from which it is replicating. However, for scenarios, where
       the primary cluster is unavailable(e.g. regional outage), a GetCluster
       request can be sent to any other member cluster and this field will list
       all the member clusters participating in cross cluster replication.
       
      .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMembershipOrBuilder in interface CrossClusterReplicationConfigOrBuilder