public final class DiscoveryEndpoint extends GeneratedMessageV3 implements DiscoveryEndpointOrBuilder
Represents an endpoint for clients to connect to the instance.
Protobuf type google.cloud.memorystore.v1.DiscoveryEndpoint
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > DiscoveryEndpointImplements
DiscoveryEndpointOrBuilderStatic Fields
ADDRESS_FIELD_NUMBER
public static final int ADDRESS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static DiscoveryEndpoint getDefaultInstance()
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static DiscoveryEndpoint.Builder newBuilder()
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint.Builder |
newBuilder(DiscoveryEndpoint prototype)
public static DiscoveryEndpoint.Builder newBuilder(DiscoveryEndpoint prototype)
Parameter | |
---|---|
Name | Description |
prototype |
DiscoveryEndpoint |
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint.Builder |
parseDelimitedFrom(InputStream input)
public static DiscoveryEndpoint parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DiscoveryEndpoint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static DiscoveryEndpoint parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DiscoveryEndpoint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static DiscoveryEndpoint parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DiscoveryEndpoint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static DiscoveryEndpoint parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DiscoveryEndpoint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static DiscoveryEndpoint parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DiscoveryEndpoint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static DiscoveryEndpoint parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DiscoveryEndpoint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<DiscoveryEndpoint> parser()
Returns | |
---|---|
Type | Description |
Parser<DiscoveryEndpoint> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
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 |
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. |
getParserForType()
public Parser<DiscoveryEndpoint> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<DiscoveryEndpoint> |
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. |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public DiscoveryEndpoint.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DiscoveryEndpoint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public DiscoveryEndpoint.Builder toBuilder()
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |