Send feedback
Class DiscoveryEndpoint.Builder (0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.1.0 keyboard_arrow_down
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.v1.DiscoveryEndpoint
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DiscoveryEndpoint . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public DiscoveryEndpoint build ()
buildPartial()
public DiscoveryEndpoint buildPartial ()
clear()
public DiscoveryEndpoint . Builder clear ()
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];
clearField(Descriptors.FieldDescriptor field)
public DiscoveryEndpoint . Builder clearField ( Descriptors . FieldDescriptor field )
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) = { ... }
clearOneof(Descriptors.OneofDescriptor oneof)
public DiscoveryEndpoint . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearPort()
public DiscoveryEndpoint . Builder clearPort ()
Output only. The port number of the exposed endpoint.
int32 port = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
clone()
public DiscoveryEndpoint . Builder clone ()
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 ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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()
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(DiscoveryEndpoint other)
public DiscoveryEndpoint . Builder mergeFrom ( DiscoveryEndpoint other )
public DiscoveryEndpoint . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public DiscoveryEndpoint . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DiscoveryEndpoint . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
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.
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.
setField(Descriptors.FieldDescriptor field, Object value)
public DiscoveryEndpoint . Builder setField ( Descriptors . FieldDescriptor field , Object value )
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.
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.
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.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DiscoveryEndpoint . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DiscoveryEndpoint . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-04 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-04 UTC."],[],[]]