Class ClusterEndpoint.Builder (0.57.0)

public static final class ClusterEndpoint.Builder extends GeneratedMessage.Builder<ClusterEndpoint.Builder> implements ClusterEndpointOrBuilder

ClusterEndpoint consists of PSC connections that are created as a group in each VPC network for accessing the cluster. In each group, there shall be one connection for each service attachment in the cluster.

Protobuf type google.cloud.redis.cluster.v1.ClusterEndpoint

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllConnections(Iterable<? extends ConnectionDetail> values)

public ClusterEndpoint.Builder addAllConnections(Iterable<? extends ConnectionDetail> values)

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.redis.cluster.v1.ConnectionDetail>
Returns
Type Description
ClusterEndpoint.Builder

addConnections(ConnectionDetail value)

public ClusterEndpoint.Builder addConnections(ConnectionDetail value)

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Parameter
Name Description
value ConnectionDetail
Returns
Type Description
ClusterEndpoint.Builder

addConnections(ConnectionDetail.Builder builderForValue)

public ClusterEndpoint.Builder addConnections(ConnectionDetail.Builder builderForValue)

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Parameter
Name Description
builderForValue ConnectionDetail.Builder
Returns
Type Description
ClusterEndpoint.Builder

addConnections(int index, ConnectionDetail value)

public ClusterEndpoint.Builder addConnections(int index, ConnectionDetail value)

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Parameters
Name Description
index int
value ConnectionDetail
Returns
Type Description
ClusterEndpoint.Builder

addConnections(int index, ConnectionDetail.Builder builderForValue)

public ClusterEndpoint.Builder addConnections(int index, ConnectionDetail.Builder builderForValue)

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Parameters
Name Description
index int
builderForValue ConnectionDetail.Builder
Returns
Type Description
ClusterEndpoint.Builder

addConnectionsBuilder()

public ConnectionDetail.Builder addConnectionsBuilder()

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Returns
Type Description
ConnectionDetail.Builder

addConnectionsBuilder(int index)

public ConnectionDetail.Builder addConnectionsBuilder(int index)

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Parameter
Name Description
index int
Returns
Type Description
ConnectionDetail.Builder

build()

public ClusterEndpoint build()
Returns
Type Description
ClusterEndpoint

buildPartial()

public ClusterEndpoint buildPartial()
Returns
Type Description
ClusterEndpoint

clear()

public ClusterEndpoint.Builder clear()
Returns
Type Description
ClusterEndpoint.Builder
Overrides

clearConnections()

public ClusterEndpoint.Builder clearConnections()

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Returns
Type Description
ClusterEndpoint.Builder

getConnections(int index)

public ConnectionDetail getConnections(int index)

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Parameter
Name Description
index int
Returns
Type Description
ConnectionDetail

getConnectionsBuilder(int index)

public ConnectionDetail.Builder getConnectionsBuilder(int index)

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Parameter
Name Description
index int
Returns
Type Description
ConnectionDetail.Builder

getConnectionsBuilderList()

public List<ConnectionDetail.Builder> getConnectionsBuilderList()

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Returns
Type Description
List<Builder>

getConnectionsCount()

public int getConnectionsCount()

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Returns
Type Description
int

getConnectionsList()

public List<ConnectionDetail> getConnectionsList()

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Returns
Type Description
List<ConnectionDetail>

getConnectionsOrBuilder(int index)

public ConnectionDetailOrBuilder getConnectionsOrBuilder(int index)

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Parameter
Name Description
index int
Returns
Type Description
ConnectionDetailOrBuilder

getConnectionsOrBuilderList()

public List<? extends ConnectionDetailOrBuilder> getConnectionsOrBuilderList()

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Returns
Type Description
List<? extends com.google.cloud.redis.cluster.v1.ConnectionDetailOrBuilder>

getDefaultInstanceForType()

public ClusterEndpoint getDefaultInstanceForType()
Returns
Type Description
ClusterEndpoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ClusterEndpoint other)

public ClusterEndpoint.Builder mergeFrom(ClusterEndpoint other)
Parameter
Name Description
other ClusterEndpoint
Returns
Type Description
ClusterEndpoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ClusterEndpoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClusterEndpoint.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ClusterEndpoint.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ClusterEndpoint.Builder
Overrides

removeConnections(int index)

public ClusterEndpoint.Builder removeConnections(int index)

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Parameter
Name Description
index int
Returns
Type Description
ClusterEndpoint.Builder

setConnections(int index, ConnectionDetail value)

public ClusterEndpoint.Builder setConnections(int index, ConnectionDetail value)

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Parameters
Name Description
index int
value ConnectionDetail
Returns
Type Description
ClusterEndpoint.Builder

setConnections(int index, ConnectionDetail.Builder builderForValue)

public ClusterEndpoint.Builder setConnections(int index, ConnectionDetail.Builder builderForValue)

A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.

repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1;

Parameters
Name Description
index int
builderForValue ConnectionDetail.Builder
Returns
Type Description
ClusterEndpoint.Builder