Class DiscoveryEndpoint.Builder (0.1.0)

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

Represents an endpoint for clients to connect to the instance.

Protobuf type google.cloud.memorystore.v1beta.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. IP address of the exposed endpoint clients connect to.

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

clearNetwork()

public DiscoveryEndpoint.Builder clearNetwork()

Output only. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}.

string network = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
DiscoveryEndpoint.Builder

This builder for chaining.

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 endpoint.

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

Returns
Type Description
DiscoveryEndpoint.Builder

This builder for chaining.

clone()

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

getAddress()

public String getAddress()

Output only. IP address of the exposed endpoint clients connect to.

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

Returns
Type Description
String

The address.

getAddressBytes()

public ByteString getAddressBytes()

Output only. IP address of the exposed endpoint clients connect to.

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

getNetwork()

public String getNetwork()

Output only. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}.

string network = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Output only. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}.

string network = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for network.

getPort()

public int getPort()

Output only. The port number of the exposed endpoint.

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

Returns
Type Description
int

The port.

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

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. IP address of the exposed endpoint clients connect to.

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. IP address of the exposed endpoint clients connect to.

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

setNetwork(String value)

public DiscoveryEndpoint.Builder setNetwork(String value)

Output only. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}.

string network = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The network to set.

Returns
Type Description
DiscoveryEndpoint.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public DiscoveryEndpoint.Builder setNetworkBytes(ByteString value)

Output only. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}.

string network = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
DiscoveryEndpoint.Builder

This builder for chaining.

setPort(int value)

public DiscoveryEndpoint.Builder setPort(int value)

Output only. The port number of the exposed 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.

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