public final class DiscoveryEndpoint extends GeneratedMessageV3 implements DiscoveryEndpointOrBuilder
Endpoints on each network, for Redis clients to connect to the cluster.
Protobuf type google.cloud.redis.cluster.v1beta1.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 |
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
PSC_CONFIG_FIELD_NUMBER
public static final int PSC_CONFIG_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. 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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for address. |
getDefaultInstanceForType()
public DiscoveryEndpoint getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
DiscoveryEndpoint |
getParserForType()
public Parser<DiscoveryEndpoint> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<DiscoveryEndpoint> |
getPort()
public int getPort()
Output only. The port number of the exposed Redis endpoint.
int32 port = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int | The port. |
getPscConfig()
public PscConfig getPscConfig()
Output only. Customer configuration for where the endpoint is created and accessed from.
.google.cloud.redis.cluster.v1beta1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
PscConfig | The pscConfig. |
getPscConfigOrBuilder()
public PscConfigOrBuilder getPscConfigOrBuilder()
Output only. Customer configuration for where the endpoint is created and accessed from.
.google.cloud.redis.cluster.v1beta1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
PscConfigOrBuilder |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
hasPscConfig()
public boolean hasPscConfig()
Output only. Customer configuration for where the endpoint is created and accessed from.
.google.cloud.redis.cluster.v1beta1.PscConfig psc_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean | Whether the pscConfig field is set. |
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 |