public final class CrossClusterReplicationConfig extends GeneratedMessageV3 implements CrossClusterReplicationConfigOrBuilder
Cross cluster replication config.
Protobuf type google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CLUSTER_ROLE_FIELD_NUMBER
public static final int CLUSTER_ROLE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
MEMBERSHIP_FIELD_NUMBER
public static final int MEMBERSHIP_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PRIMARY_CLUSTER_FIELD_NUMBER
public static final int PRIMARY_CLUSTER_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SECONDARY_CLUSTERS_FIELD_NUMBER
public static final int SECONDARY_CLUSTERS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static CrossClusterReplicationConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CrossClusterReplicationConfig.Builder newBuilder()
newBuilder(CrossClusterReplicationConfig )
public static CrossClusterReplicationConfig.Builder newBuilder(CrossClusterReplicationConfig )
public static CrossClusterReplicationConfig parseDelimitedFrom(InputStream input)
public static CrossClusterReplicationConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CrossClusterReplicationConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CrossClusterReplicationConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CrossClusterReplicationConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CrossClusterReplicationConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CrossClusterReplicationConfig parseFrom(CodedInputStream input)
public static CrossClusterReplicationConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CrossClusterReplicationConfig parseFrom(InputStream input)
public static CrossClusterReplicationConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CrossClusterReplicationConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CrossClusterReplicationConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CrossClusterReplicationConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
OverridesgetClusterRole()
public CrossClusterReplicationConfig.ClusterRole getClusterRole()
The role of the cluster in cross cluster replication.
.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1;
getClusterRoleValue()
public int getClusterRoleValue()
The role of the cluster in cross cluster replication.
.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for clusterRole. |
getDefaultInstanceForType()
public CrossClusterReplicationConfig getDefaultInstanceForType()
getMembership()
public CrossClusterReplicationConfig.Membership 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];
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];
getParserForType()
public Parser<CrossClusterReplicationConfig> getParserForType()
OverridesgetPrimaryCluster()
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;
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;
getSecondaryClusters(int index)
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;
Parameter |
---|
Name | Description |
index | int
|
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;
Returns |
---|
Type | Description |
int | |
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;
getSecondaryClustersOrBuilder(int index)
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;
Parameter |
---|
Name | Description |
index | int
|
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;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteClusterOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
OverridesgetUpdateTime()
public 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];
Returns |
---|
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeOrBuilder()
public 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];
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];
Returns |
---|
Type | Description |
boolean | Whether the membership field is set. |
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;
Returns |
---|
Type | Description |
boolean | Whether the primaryCluster field is set. |
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];
Returns |
---|
Type | Description |
boolean | Whether the updateTime field is set. |
hashCode()
Returns |
---|
Type | Description |
int | |
OverridesinternalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
OverridesisInitialized()
public final boolean isInitialized()
OverridesnewBuilderForType()
public CrossClusterReplicationConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CrossClusterReplicationConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
OverridesnewInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
OverridestoBuilder()
public CrossClusterReplicationConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides