Class DiscoveryEndpoint (0.4.0)

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

Static Fields

ADDRESS_FIELD_NUMBER

public static final int ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int

PORT_FIELD_NUMBER

public static final int PORT_FIELD_NUMBER
Field Value
TypeDescription
int

PSC_CONFIG_FIELD_NUMBER

public static final int PSC_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DiscoveryEndpoint getDefaultInstance()
Returns
TypeDescription
DiscoveryEndpoint

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DiscoveryEndpoint.Builder newBuilder()
Returns
TypeDescription
DiscoveryEndpoint.Builder

newBuilder(DiscoveryEndpoint prototype)

public static DiscoveryEndpoint.Builder newBuilder(DiscoveryEndpoint prototype)
Parameter
NameDescription
prototypeDiscoveryEndpoint
Returns
TypeDescription
DiscoveryEndpoint.Builder

parseDelimitedFrom(InputStream input)

public static DiscoveryEndpoint parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DiscoveryEndpoint
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiscoveryEndpoint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiscoveryEndpoint
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DiscoveryEndpoint parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DiscoveryEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DiscoveryEndpoint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiscoveryEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DiscoveryEndpoint parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DiscoveryEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DiscoveryEndpoint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiscoveryEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DiscoveryEndpoint parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DiscoveryEndpoint
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DiscoveryEndpoint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiscoveryEndpoint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DiscoveryEndpoint parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DiscoveryEndpoint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiscoveryEndpoint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiscoveryEndpoint
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DiscoveryEndpoint parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DiscoveryEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DiscoveryEndpoint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiscoveryEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DiscoveryEndpoint> parser()
Returns
TypeDescription
Parser<DiscoveryEndpoint>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

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
TypeDescription
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
TypeDescription
ByteString

The bytes for address.

getDefaultInstanceForType()

public DiscoveryEndpoint getDefaultInstanceForType()
Returns
TypeDescription
DiscoveryEndpoint

getParserForType()

public Parser<DiscoveryEndpoint> getParserForType()
Returns
TypeDescription
Parser<DiscoveryEndpoint>
Overrides

getPort()

public int getPort()

Output only. The port number of the exposed Redis endpoint.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PscConfigOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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
TypeDescription
boolean

Whether the pscConfig field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DiscoveryEndpoint.Builder newBuilderForType()
Returns
TypeDescription
DiscoveryEndpoint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DiscoveryEndpoint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DiscoveryEndpoint.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DiscoveryEndpoint.Builder toBuilder()
Returns
TypeDescription
DiscoveryEndpoint.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException