Class DiscoveryEndpoint.Builder (0.25.0)

public static final class DiscoveryEndpoint.Builder extends GeneratedMessageV3.Builder<DiscoveryEndpoint.Builder> implements DiscoveryEndpointOrBuilder

Endpoints on each network, for Redis clients to connect to the cluster.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiscoveryEndpoint build()
Returns
Type Description
DiscoveryEndpoint

buildPartial()

public DiscoveryEndpoint buildPartial()
Returns
Type Description
DiscoveryEndpoint

clear()

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

clearAddress()

public DiscoveryEndpoint.Builder clearAddress()

Output only. Address of the exposed Redis endpoint used by clients to connect to the service. The address could be either IP or hostname.

string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DiscoveryEndpoint.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPort()

public DiscoveryEndpoint.Builder clearPort()

Output only. The port number of the exposed Redis endpoint.

int32 port = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DiscoveryEndpoint.Builder

This builder for chaining.

clearPscConfig()

public DiscoveryEndpoint.Builder clearPscConfig()

Output only. Customer configuration for where the endpoint is created and accessed from.

.google.cloud.redis.cluster.v1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DiscoveryEndpoint.Builder

clone()

public DiscoveryEndpoint.Builder clone()
Returns
Type Description
DiscoveryEndpoint.Builder
Overrides

getAddress()

public String getAddress()

Output only. Address of the exposed Redis endpoint used by clients to connect to the service. The address could be either IP or hostname.

string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The address.

getAddressBytes()

public ByteString getAddressBytes()

Output only. Address of the exposed Redis endpoint used by clients to connect to the service. The address could be either IP or hostname.

string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for address.

getDefaultInstanceForType()

public DiscoveryEndpoint getDefaultInstanceForType()
Returns
Type Description
DiscoveryEndpoint

getDescriptorForType()

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

getPort()

public int getPort()

Output only. The port number of the exposed Redis endpoint.

int32 port = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The port.

getPscConfig()

public PscConfig getPscConfig()

Output only. Customer configuration for where the endpoint is created and accessed from.

.google.cloud.redis.cluster.v1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PscConfig

The pscConfig.

getPscConfigBuilder()

public PscConfig.Builder getPscConfigBuilder()

Output only. Customer configuration for where the endpoint is created and accessed from.

.google.cloud.redis.cluster.v1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PscConfig.Builder

getPscConfigOrBuilder()

public PscConfigOrBuilder getPscConfigOrBuilder()

Output only. Customer configuration for where the endpoint is created and accessed from.

.google.cloud.redis.cluster.v1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PscConfigOrBuilder

hasPscConfig()

public boolean hasPscConfig()

Output only. Customer configuration for where the endpoint is created and accessed from.

.google.cloud.redis.cluster.v1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the pscConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DiscoveryEndpoint other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePscConfig(PscConfig value)

public DiscoveryEndpoint.Builder mergePscConfig(PscConfig value)

Output only. Customer configuration for where the endpoint is created and accessed from.

.google.cloud.redis.cluster.v1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value PscConfig
Returns
Type Description
DiscoveryEndpoint.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAddress(String value)

public DiscoveryEndpoint.Builder setAddress(String value)

Output only. Address of the exposed Redis endpoint used by clients to connect to the service. The address could be either IP or hostname.

string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The address to set.

Returns
Type Description
DiscoveryEndpoint.Builder

This builder for chaining.

setAddressBytes(ByteString value)

public DiscoveryEndpoint.Builder setAddressBytes(ByteString value)

Output only. Address of the exposed Redis endpoint used by clients to connect to the service. The address could be either IP or hostname.

string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for address to set.

Returns
Type Description
DiscoveryEndpoint.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPort(int value)

public DiscoveryEndpoint.Builder setPort(int value)

Output only. The port number of the exposed Redis endpoint.

int32 port = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The port to set.

Returns
Type Description
DiscoveryEndpoint.Builder

This builder for chaining.

setPscConfig(PscConfig value)

public DiscoveryEndpoint.Builder setPscConfig(PscConfig value)

Output only. Customer configuration for where the endpoint is created and accessed from.

.google.cloud.redis.cluster.v1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value PscConfig
Returns
Type Description
DiscoveryEndpoint.Builder

setPscConfig(PscConfig.Builder builderForValue)

public DiscoveryEndpoint.Builder setPscConfig(PscConfig.Builder builderForValue)

Output only. Customer configuration for where the endpoint is created and accessed from.

.google.cloud.redis.cluster.v1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue PscConfig.Builder
Returns
Type Description
DiscoveryEndpoint.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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