Class Cluster.Builder (0.8.0)

public static final class Cluster.Builder extends GeneratedMessageV3.Builder<Cluster.Builder> implements ClusterOrBuilder

A cluster instance.

Protobuf type google.cloud.redis.cluster.v1beta1.Cluster

Implements

ClusterOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllDiscoveryEndpoints(Iterable<? extends DiscoveryEndpoint> values)

public Cluster.Builder addAllDiscoveryEndpoints(Iterable<? extends DiscoveryEndpoint> values)

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint>
Returns
TypeDescription
Cluster.Builder

addAllPscConfigs(Iterable<? extends PscConfig> values)

public Cluster.Builder addAllPscConfigs(Iterable<? extends PscConfig> values)

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.redis.cluster.v1beta1.PscConfig>
Returns
TypeDescription
Cluster.Builder

addAllPscConnections(Iterable<? extends PscConnection> values)

public Cluster.Builder addAllPscConnections(Iterable<? extends PscConnection> values)

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.redis.cluster.v1beta1.PscConnection>
Returns
TypeDescription
Cluster.Builder

addDiscoveryEndpoints(DiscoveryEndpoint value)

public Cluster.Builder addDiscoveryEndpoints(DiscoveryEndpoint value)

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueDiscoveryEndpoint
Returns
TypeDescription
Cluster.Builder

addDiscoveryEndpoints(DiscoveryEndpoint.Builder builderForValue)

public Cluster.Builder addDiscoveryEndpoints(DiscoveryEndpoint.Builder builderForValue)

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueDiscoveryEndpoint.Builder
Returns
TypeDescription
Cluster.Builder

addDiscoveryEndpoints(int index, DiscoveryEndpoint value)

public Cluster.Builder addDiscoveryEndpoints(int index, DiscoveryEndpoint value)

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueDiscoveryEndpoint
Returns
TypeDescription
Cluster.Builder

addDiscoveryEndpoints(int index, DiscoveryEndpoint.Builder builderForValue)

public Cluster.Builder addDiscoveryEndpoints(int index, DiscoveryEndpoint.Builder builderForValue)

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueDiscoveryEndpoint.Builder
Returns
TypeDescription
Cluster.Builder

addDiscoveryEndpointsBuilder()

public DiscoveryEndpoint.Builder addDiscoveryEndpointsBuilder()

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DiscoveryEndpoint.Builder

addDiscoveryEndpointsBuilder(int index)

public DiscoveryEndpoint.Builder addDiscoveryEndpointsBuilder(int index)

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveryEndpoint.Builder

addPscConfigs(PscConfig value)

public Cluster.Builder addPscConfigs(PscConfig value)

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuePscConfig
Returns
TypeDescription
Cluster.Builder

addPscConfigs(PscConfig.Builder builderForValue)

public Cluster.Builder addPscConfigs(PscConfig.Builder builderForValue)

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValuePscConfig.Builder
Returns
TypeDescription
Cluster.Builder

addPscConfigs(int index, PscConfig value)

public Cluster.Builder addPscConfigs(int index, PscConfig value)

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valuePscConfig
Returns
TypeDescription
Cluster.Builder

addPscConfigs(int index, PscConfig.Builder builderForValue)

public Cluster.Builder addPscConfigs(int index, PscConfig.Builder builderForValue)

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValuePscConfig.Builder
Returns
TypeDescription
Cluster.Builder

addPscConfigsBuilder()

public PscConfig.Builder addPscConfigsBuilder()

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PscConfig.Builder

addPscConfigsBuilder(int index)

public PscConfig.Builder addPscConfigsBuilder(int index)

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
PscConfig.Builder

addPscConnections(PscConnection value)

public Cluster.Builder addPscConnections(PscConnection value)

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuePscConnection
Returns
TypeDescription
Cluster.Builder

addPscConnections(PscConnection.Builder builderForValue)

public Cluster.Builder addPscConnections(PscConnection.Builder builderForValue)

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValuePscConnection.Builder
Returns
TypeDescription
Cluster.Builder

addPscConnections(int index, PscConnection value)

public Cluster.Builder addPscConnections(int index, PscConnection value)

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valuePscConnection
Returns
TypeDescription
Cluster.Builder

addPscConnections(int index, PscConnection.Builder builderForValue)

public Cluster.Builder addPscConnections(int index, PscConnection.Builder builderForValue)

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValuePscConnection.Builder
Returns
TypeDescription
Cluster.Builder

addPscConnectionsBuilder()

public PscConnection.Builder addPscConnectionsBuilder()

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PscConnection.Builder

addPscConnectionsBuilder(int index)

public PscConnection.Builder addPscConnectionsBuilder(int index)

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
PscConnection.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Cluster.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Cluster.Builder
Overrides

build()

public Cluster build()
Returns
TypeDescription
Cluster

buildPartial()

public Cluster buildPartial()
Returns
TypeDescription
Cluster

clear()

public Cluster.Builder clear()
Returns
TypeDescription
Cluster.Builder
Overrides

clearAuthorizationMode()

public Cluster.Builder clearAuthorizationMode()

Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster.

.google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearCreateTime()

public Cluster.Builder clearCreateTime()

Output only. The timestamp associated with the cluster creation request.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Cluster.Builder

clearDiscoveryEndpoints()

public Cluster.Builder clearDiscoveryEndpoints()

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Cluster.Builder

clearField(Descriptors.FieldDescriptor field)

public Cluster.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Cluster.Builder
Overrides

clearName()

public Cluster.Builder clearName()

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Cluster.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Cluster.Builder
Overrides

clearPscConfigs()

public Cluster.Builder clearPscConfigs()

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Cluster.Builder

clearPscConnections()

public Cluster.Builder clearPscConnections()

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Cluster.Builder

clearReplicaCount()

public Cluster.Builder clearReplicaCount()

Optional. The number of replica nodes per shard.

optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearShardCount()

public Cluster.Builder clearShardCount()

Required. Number of shards for the Redis cluster.

optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearSizeGb()

public Cluster.Builder clearSizeGb()

Output only. Redis memory size in GB for the entire cluster.

optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearState()

public Cluster.Builder clearState()

Output only. The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED

.google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearStateInfo()

public Cluster.Builder clearStateInfo()

Output only. Additional information about the current state of the cluster.

.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Cluster.Builder

clearTransitEncryptionMode()

public Cluster.Builder clearTransitEncryptionMode()

Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.

.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearUid()

public Cluster.Builder clearUid()

Output only. System assigned, unique identifier for the cluster.

string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clone()

public Cluster.Builder clone()
Returns
TypeDescription
Cluster.Builder
Overrides

getAuthorizationMode()

public AuthorizationMode getAuthorizationMode()

Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster.

.google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AuthorizationMode

The authorizationMode.

getAuthorizationModeValue()

public int getAuthorizationModeValue()

Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster.

.google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for authorizationMode.

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp associated with the cluster creation request.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp associated with the cluster creation request.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp associated with the cluster creation request.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Cluster getDefaultInstanceForType()
Returns
TypeDescription
Cluster

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiscoveryEndpoints(int index)

public DiscoveryEndpoint getDiscoveryEndpoints(int index)

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveryEndpoint

getDiscoveryEndpointsBuilder(int index)

public DiscoveryEndpoint.Builder getDiscoveryEndpointsBuilder(int index)

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveryEndpoint.Builder

getDiscoveryEndpointsBuilderList()

public List<DiscoveryEndpoint.Builder> getDiscoveryEndpointsBuilderList()

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getDiscoveryEndpointsCount()

public int getDiscoveryEndpointsCount()

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getDiscoveryEndpointsList()

public List<DiscoveryEndpoint> getDiscoveryEndpointsList()

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<DiscoveryEndpoint>

getDiscoveryEndpointsOrBuilder(int index)

public DiscoveryEndpointOrBuilder getDiscoveryEndpointsOrBuilder(int index)

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveryEndpointOrBuilder

getDiscoveryEndpointsOrBuilderList()

public List<? extends DiscoveryEndpointOrBuilder> getDiscoveryEndpointsOrBuilderList()

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder>

getName()

public String getName()

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

getPscConfigs(int index)

public PscConfig getPscConfigs(int index)

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
PscConfig

getPscConfigsBuilder(int index)

public PscConfig.Builder getPscConfigsBuilder(int index)

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
PscConfig.Builder

getPscConfigsBuilderList()

public List<PscConfig.Builder> getPscConfigsBuilderList()

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Builder>

getPscConfigsCount()

public int getPscConfigsCount()

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getPscConfigsList()

public List<PscConfig> getPscConfigsList()

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<PscConfig>

getPscConfigsOrBuilder(int index)

public PscConfigOrBuilder getPscConfigsOrBuilder(int index)

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
PscConfigOrBuilder

getPscConfigsOrBuilderList()

public List<? extends PscConfigOrBuilder> getPscConfigsOrBuilderList()

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloud.redis.cluster.v1beta1.PscConfigOrBuilder>

getPscConnections(int index)

public PscConnection getPscConnections(int index)

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
PscConnection

getPscConnectionsBuilder(int index)

public PscConnection.Builder getPscConnectionsBuilder(int index)

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
PscConnection.Builder

getPscConnectionsBuilderList()

public List<PscConnection.Builder> getPscConnectionsBuilderList()

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getPscConnectionsCount()

public int getPscConnectionsCount()

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getPscConnectionsList()

public List<PscConnection> getPscConnectionsList()

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<PscConnection>

getPscConnectionsOrBuilder(int index)

public PscConnectionOrBuilder getPscConnectionsOrBuilder(int index)

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
PscConnectionOrBuilder

getPscConnectionsOrBuilderList()

public List<? extends PscConnectionOrBuilder> getPscConnectionsOrBuilderList()

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder>

getReplicaCount()

public int getReplicaCount()

Optional. The number of replica nodes per shard.

optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The replicaCount.

getShardCount()

public int getShardCount()

Required. Number of shards for the Redis cluster.

optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The shardCount.

getSizeGb()

public int getSizeGb()

Output only. Redis memory size in GB for the entire cluster.

optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The sizeGb.

getState()

public Cluster.State getState()

Output only. The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED

.google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Cluster.State

The state.

getStateInfo()

public Cluster.StateInfo getStateInfo()

Output only. Additional information about the current state of the cluster.

.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Cluster.StateInfo

The stateInfo.

getStateInfoBuilder()

public Cluster.StateInfo.Builder getStateInfoBuilder()

Output only. Additional information about the current state of the cluster.

.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Cluster.StateInfo.Builder

getStateInfoOrBuilder()

public Cluster.StateInfoOrBuilder getStateInfoOrBuilder()

Output only. Additional information about the current state of the cluster.

.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Cluster.StateInfoOrBuilder

getStateValue()

public int getStateValue()

Output only. The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED

.google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getTransitEncryptionMode()

public TransitEncryptionMode getTransitEncryptionMode()

Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.

.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TransitEncryptionMode

The transitEncryptionMode.

getTransitEncryptionModeValue()

public int getTransitEncryptionModeValue()

Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.

.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for transitEncryptionMode.

getUid()

public String getUid()

Output only. System assigned, unique identifier for the cluster.

string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. System assigned, unique identifier for the cluster.

string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uid.

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp associated with the cluster creation request.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasReplicaCount()

public boolean hasReplicaCount()

Optional. The number of replica nodes per shard.

optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the replicaCount field is set.

hasShardCount()

public boolean hasShardCount()

Required. Number of shards for the Redis cluster.

optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the shardCount field is set.

hasSizeGb()

public boolean hasSizeGb()

Output only. Redis memory size in GB for the entire cluster.

optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the sizeGb field is set.

hasStateInfo()

public boolean hasStateInfo()

Output only. Additional information about the current state of the cluster.

.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the stateInfo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Cluster.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp associated with the cluster creation request.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Cluster.Builder

mergeFrom(Cluster other)

public Cluster.Builder mergeFrom(Cluster other)
Parameter
NameDescription
otherCluster
Returns
TypeDescription
Cluster.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Cluster.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cluster.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Cluster.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Cluster.Builder
Overrides

mergeStateInfo(Cluster.StateInfo value)

public Cluster.Builder mergeStateInfo(Cluster.StateInfo value)

Output only. Additional information about the current state of the cluster.

.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueCluster.StateInfo
Returns
TypeDescription
Cluster.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Cluster.Builder
Overrides

removeDiscoveryEndpoints(int index)

public Cluster.Builder removeDiscoveryEndpoints(int index)

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Cluster.Builder

removePscConfigs(int index)

public Cluster.Builder removePscConfigs(int index)

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
Cluster.Builder

removePscConnections(int index)

public Cluster.Builder removePscConnections(int index)

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Cluster.Builder

setAuthorizationMode(AuthorizationMode value)

public Cluster.Builder setAuthorizationMode(AuthorizationMode value)

Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster.

.google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAuthorizationMode

The authorizationMode to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setAuthorizationModeValue(int value)

public Cluster.Builder setAuthorizationModeValue(int value)

Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster.

.google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The enum numeric value on the wire for authorizationMode to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Cluster.Builder setCreateTime(Timestamp value)

Output only. The timestamp associated with the cluster creation request.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Cluster.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Cluster.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp associated with the cluster creation request.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Cluster.Builder

setDiscoveryEndpoints(int index, DiscoveryEndpoint value)

public Cluster.Builder setDiscoveryEndpoints(int index, DiscoveryEndpoint value)

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueDiscoveryEndpoint
Returns
TypeDescription
Cluster.Builder

setDiscoveryEndpoints(int index, DiscoveryEndpoint.Builder builderForValue)

public Cluster.Builder setDiscoveryEndpoints(int index, DiscoveryEndpoint.Builder builderForValue)

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueDiscoveryEndpoint.Builder
Returns
TypeDescription
Cluster.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Cluster.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Cluster.Builder
Overrides

setName(String value)

public Cluster.Builder setName(String value)

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Cluster.Builder setNameBytes(ByteString value)

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setPscConfigs(int index, PscConfig value)

public Cluster.Builder setPscConfigs(int index, PscConfig value)

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valuePscConfig
Returns
TypeDescription
Cluster.Builder

setPscConfigs(int index, PscConfig.Builder builderForValue)

public Cluster.Builder setPscConfigs(int index, PscConfig.Builder builderForValue)

Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValuePscConfig.Builder
Returns
TypeDescription
Cluster.Builder

setPscConnections(int index, PscConnection value)

public Cluster.Builder setPscConnections(int index, PscConnection value)

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valuePscConnection
Returns
TypeDescription
Cluster.Builder

setPscConnections(int index, PscConnection.Builder builderForValue)

public Cluster.Builder setPscConnections(int index, PscConnection.Builder builderForValue)

Output only. PSC connections for discovery of the cluster topology and accessing the cluster.

repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValuePscConnection.Builder
Returns
TypeDescription
Cluster.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Cluster.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Cluster.Builder
Overrides

setReplicaCount(int value)

public Cluster.Builder setReplicaCount(int value)

Optional. The number of replica nodes per shard.

optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The replicaCount to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setShardCount(int value)

public Cluster.Builder setShardCount(int value)

Required. Number of shards for the Redis cluster.

optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The shardCount to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setSizeGb(int value)

public Cluster.Builder setSizeGb(int value)

Output only. Redis memory size in GB for the entire cluster.

optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The sizeGb to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setState(Cluster.State value)

public Cluster.Builder setState(Cluster.State value)

Output only. The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED

.google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueCluster.State

The state to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setStateInfo(Cluster.StateInfo value)

public Cluster.Builder setStateInfo(Cluster.StateInfo value)

Output only. Additional information about the current state of the cluster.

.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueCluster.StateInfo
Returns
TypeDescription
Cluster.Builder

setStateInfo(Cluster.StateInfo.Builder builderForValue)

public Cluster.Builder setStateInfo(Cluster.StateInfo.Builder builderForValue)

Output only. Additional information about the current state of the cluster.

.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueCluster.StateInfo.Builder
Returns
TypeDescription
Cluster.Builder

setStateValue(int value)

public Cluster.Builder setStateValue(int value)

Output only. The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED

.google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setTransitEncryptionMode(TransitEncryptionMode value)

public Cluster.Builder setTransitEncryptionMode(TransitEncryptionMode value)

Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.

.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueTransitEncryptionMode

The transitEncryptionMode to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setTransitEncryptionModeValue(int value)

public Cluster.Builder setTransitEncryptionModeValue(int value)

Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.

.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The enum numeric value on the wire for transitEncryptionMode to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setUid(String value)

public Cluster.Builder setUid(String value)

Output only. System assigned, unique identifier for the cluster.

string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Cluster.Builder setUidBytes(ByteString value)

Output only. System assigned, unique identifier for the cluster.

string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Cluster.Builder
Overrides