public static final class DiscoveryEndpoint.Builder extends GeneratedMessage.Builder<DiscoveryEndpoint.Builder> implements DiscoveryEndpointOrBuilderRepresents an endpoint for clients to connect to the instance.
Protobuf type google.cloud.memorystore.v1beta.DiscoveryEndpoint
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DiscoveryEndpoint.BuilderImplements
DiscoveryEndpointOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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. |
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. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DiscoveryEndpoint.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DiscoveryEndpoint.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for address to set. |
| Returns | |
|---|---|
| Type | Description |
DiscoveryEndpoint.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe 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 |
intThe port to set. |
| Returns | |
|---|---|
| Type | Description |
DiscoveryEndpoint.Builder |
This builder for chaining. |