Class CrossClusterReplicationConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig
All Implemented Interfaces:
CrossClusterReplicationConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CrossClusterReplicationConfig extends com.google.protobuf.GeneratedMessage implements CrossClusterReplicationConfigOrBuilder
 Cross cluster replication config.
 
Protobuf type google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig
See Also:
  • Field Details

    • CLUSTER_ROLE_FIELD_NUMBER

      public static final int CLUSTER_ROLE_FIELD_NUMBER
      See Also:
    • PRIMARY_CLUSTER_FIELD_NUMBER

      public static final int PRIMARY_CLUSTER_FIELD_NUMBER
      See Also:
    • SECONDARY_CLUSTERS_FIELD_NUMBER

      public static final int SECONDARY_CLUSTERS_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • MEMBERSHIP_FIELD_NUMBER

      public static final int MEMBERSHIP_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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
    • 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
    • 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
    • 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
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CrossClusterReplicationConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CrossClusterReplicationConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CrossClusterReplicationConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CrossClusterReplicationConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CrossClusterReplicationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CrossClusterReplicationConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CrossClusterReplicationConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CrossClusterReplicationConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CrossClusterReplicationConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CrossClusterReplicationConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CrossClusterReplicationConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CrossClusterReplicationConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static CrossClusterReplicationConfig.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CrossClusterReplicationConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CrossClusterReplicationConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CrossClusterReplicationConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<CrossClusterReplicationConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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