Class DiscoveryEndpoint.Builder (0.1.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiscoveryEndpoint build()
Returns
TypeDescription
DiscoveryEndpoint

buildPartial()

public DiscoveryEndpoint buildPartial()
Returns
TypeDescription
DiscoveryEndpoint

clear()

public DiscoveryEndpoint.Builder clear()
Returns
TypeDescription
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
TypeDescription
DiscoveryEndpoint.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public DiscoveryEndpoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DiscoveryEndpoint.Builder

clone()

public DiscoveryEndpoint.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for address.

getDefaultInstanceForType()

public DiscoveryEndpoint getDefaultInstanceForType()
Returns
TypeDescription
DiscoveryEndpoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the pscConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DiscoveryEndpoint other)

public DiscoveryEndpoint.Builder mergeFrom(DiscoveryEndpoint other)
Parameter
NameDescription
otherDiscoveryEndpoint
Returns
TypeDescription
DiscoveryEndpoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DiscoveryEndpoint.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePscConfig
Returns
TypeDescription
DiscoveryEndpoint.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryEndpoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The address to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for address to set.

Returns
TypeDescription
DiscoveryEndpoint.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryEndpoint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The port to set.

Returns
TypeDescription
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
NameDescription
valuePscConfig
Returns
TypeDescription
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
NameDescription
builderForValuePscConfig.Builder
Returns
TypeDescription
DiscoveryEndpoint.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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