Interface CrossClusterReplicationConfigOrBuilder (0.29.0)

public interface CrossClusterReplicationConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getClusterRole()

public abstract CrossClusterReplicationConfig.ClusterRole getClusterRole()

The role of the cluster in cross cluster replication.

.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1;

Returns
Type Description
CrossClusterReplicationConfig.ClusterRole

The clusterRole.

getClusterRoleValue()

public abstract 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.

getMembership()

public abstract 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];

Returns
Type Description
CrossClusterReplicationConfig.Membership

The membership.

getMembershipOrBuilder()

public abstract 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];

Returns
Type Description
CrossClusterReplicationConfig.MembershipOrBuilder

getPrimaryCluster()

public abstract 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;

Returns
Type Description
CrossClusterReplicationConfig.RemoteCluster

The primaryCluster.

getPrimaryClusterOrBuilder()

public abstract 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;

Returns
Type Description
CrossClusterReplicationConfig.RemoteClusterOrBuilder

getSecondaryClusters(int index)

public abstract 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
Returns
Type Description
CrossClusterReplicationConfig.RemoteCluster

getSecondaryClustersCount()

public abstract 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 abstract 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;

Returns
Type Description
List<RemoteCluster>

getSecondaryClustersOrBuilder(int index)

public abstract 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
Returns
Type Description
CrossClusterReplicationConfig.RemoteClusterOrBuilder

getSecondaryClustersOrBuilderList()

public abstract 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>

getUpdateTime()

public abstract 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 abstract 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];

Returns
Type Description
TimestampOrBuilder

hasMembership()

public abstract 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 abstract 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 abstract 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.