Interface CrossClusterReplicationConfigOrBuilder (0.30.0)

public interface CrossClusterReplicationConfigOrBuilder extends MessageOrBuilder

Methods

getClusterRole()

public abstract CrossClusterReplicationConfig.ClusterRole getClusterRole()

The role of the cluster in cross cluster replication.

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

Returns
TypeDescription
CrossClusterReplicationConfig.ClusterRole

The clusterRole.

getClusterRoleValue()

public abstract int getClusterRoleValue()

The role of the cluster in cross cluster replication.

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

Returns
TypeDescription
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.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2;

Returns
TypeDescription
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.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2;

Returns
TypeDescription
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.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;

Returns
TypeDescription
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.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;

Returns
TypeDescription
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.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3;

Returns
TypeDescription
List<? extends com.google.cloud.redis.cluster.v1.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
TypeDescription
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
TypeDescription
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.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.