Class Instance.InstanceEndpoint.Builder (0.1.0)

public static final class Instance.InstanceEndpoint.Builder extends GeneratedMessageV3.Builder<Instance.InstanceEndpoint.Builder> implements Instance.InstanceEndpointOrBuilder

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

Protobuf type google.cloud.memorystore.v1.Instance.InstanceEndpoint

Static Methods

getDescriptor()

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

Methods

addAllConnections(Iterable<? extends Instance.ConnectionDetail> values)

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

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.memorystore.v1.Instance.ConnectionDetail>
Returns
Type Description
Instance.InstanceEndpoint.Builder

addConnections(Instance.ConnectionDetail value)

public Instance.InstanceEndpoint.Builder addConnections(Instance.ConnectionDetail value)

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Instance.ConnectionDetail
Returns
Type Description
Instance.InstanceEndpoint.Builder

addConnections(Instance.ConnectionDetail.Builder builderForValue)

public Instance.InstanceEndpoint.Builder addConnections(Instance.ConnectionDetail.Builder builderForValue)

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Instance.ConnectionDetail.Builder
Returns
Type Description
Instance.InstanceEndpoint.Builder

addConnections(int index, Instance.ConnectionDetail value)

public Instance.InstanceEndpoint.Builder addConnections(int index, Instance.ConnectionDetail value)

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Instance.ConnectionDetail
Returns
Type Description
Instance.InstanceEndpoint.Builder

addConnections(int index, Instance.ConnectionDetail.Builder builderForValue)

public Instance.InstanceEndpoint.Builder addConnections(int index, Instance.ConnectionDetail.Builder builderForValue)

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Instance.ConnectionDetail.Builder
Returns
Type Description
Instance.InstanceEndpoint.Builder

addConnectionsBuilder()

public Instance.ConnectionDetail.Builder addConnectionsBuilder()

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Instance.ConnectionDetail.Builder

addConnectionsBuilder(int index)

public Instance.ConnectionDetail.Builder addConnectionsBuilder(int index)

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Instance.ConnectionDetail.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Instance.InstanceEndpoint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Instance.InstanceEndpoint.Builder
Overrides

build()

public Instance.InstanceEndpoint build()
Returns
Type Description
Instance.InstanceEndpoint

buildPartial()

public Instance.InstanceEndpoint buildPartial()
Returns
Type Description
Instance.InstanceEndpoint

clear()

public Instance.InstanceEndpoint.Builder clear()
Returns
Type Description
Instance.InstanceEndpoint.Builder
Overrides

clearConnections()

public Instance.InstanceEndpoint.Builder clearConnections()

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Instance.InstanceEndpoint.Builder

clearField(Descriptors.FieldDescriptor field)

public Instance.InstanceEndpoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Instance.InstanceEndpoint.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Instance.InstanceEndpoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Instance.InstanceEndpoint.Builder
Overrides

clone()

public Instance.InstanceEndpoint.Builder clone()
Returns
Type Description
Instance.InstanceEndpoint.Builder
Overrides

getConnections(int index)

public Instance.ConnectionDetail getConnections(int index)

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Instance.ConnectionDetail

getConnectionsBuilder(int index)

public Instance.ConnectionDetail.Builder getConnectionsBuilder(int index)

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Instance.ConnectionDetail.Builder

getConnectionsBuilderList()

public List<Instance.ConnectionDetail.Builder> getConnectionsBuilderList()

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getConnectionsCount()

public int getConnectionsCount()

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getConnectionsList()

public List<Instance.ConnectionDetail> getConnectionsList()

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ConnectionDetail>

getConnectionsOrBuilder(int index)

public Instance.ConnectionDetailOrBuilder getConnectionsOrBuilder(int index)

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Instance.ConnectionDetailOrBuilder

getConnectionsOrBuilderList()

public List<? extends Instance.ConnectionDetailOrBuilder> getConnectionsOrBuilderList()

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.memorystore.v1.Instance.ConnectionDetailOrBuilder>

getDefaultInstanceForType()

public Instance.InstanceEndpoint getDefaultInstanceForType()
Returns
Type Description
Instance.InstanceEndpoint

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Instance.InstanceEndpoint other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Instance.InstanceEndpoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Instance.InstanceEndpoint.Builder
Overrides

removeConnections(int index)

public Instance.InstanceEndpoint.Builder removeConnections(int index)

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Instance.InstanceEndpoint.Builder

setConnections(int index, Instance.ConnectionDetail value)

public Instance.InstanceEndpoint.Builder setConnections(int index, Instance.ConnectionDetail value)

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Instance.ConnectionDetail
Returns
Type Description
Instance.InstanceEndpoint.Builder

setConnections(int index, Instance.ConnectionDetail.Builder builderForValue)

public Instance.InstanceEndpoint.Builder setConnections(int index, Instance.ConnectionDetail.Builder builderForValue)

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

repeated .google.cloud.memorystore.v1.Instance.ConnectionDetail connections = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Instance.ConnectionDetail.Builder
Returns
Type Description
Instance.InstanceEndpoint.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Instance.InstanceEndpoint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Instance.InstanceEndpoint.Builder
Overrides

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

public Instance.InstanceEndpoint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Instance.InstanceEndpoint.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Instance.InstanceEndpoint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Instance.InstanceEndpoint.Builder
Overrides