Class Instance.Node (0.35.0)

public static final class Instance.Node extends GeneratedMessageV3 implements Instance.NodeOrBuilder

Details of a single node in the instance. Nodes in an AlloyDB instance are ephemereal, they can change during update, failover, autohealing and resize operations.

Protobuf type google.cloud.alloydb.v1alpha.Instance.Node

Static Fields

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

IP_FIELD_NUMBER

public static final int IP_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

ZONE_ID_FIELD_NUMBER

public static final int ZONE_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Instance.Node getDefaultInstance()
Returns
Type Description
Instance.Node

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Instance.Node.Builder newBuilder()
Returns
Type Description
Instance.Node.Builder

newBuilder(Instance.Node prototype)

public static Instance.Node.Builder newBuilder(Instance.Node prototype)
Parameter
Name Description
prototype Instance.Node
Returns
Type Description
Instance.Node.Builder

parseDelimitedFrom(InputStream input)

public static Instance.Node parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Instance.Node
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.Node parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.Node
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Instance.Node parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Instance.Node
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Instance.Node parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.Node
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Instance.Node parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Instance.Node
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Instance.Node parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.Node
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Instance.Node parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Instance.Node
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.Node parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.Node
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Instance.Node parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Instance.Node
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.Node parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.Node
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Instance.Node parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Instance.Node
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Instance.Node parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance.Node
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Instance.Node> parser()
Returns
Type Description
Parser<Node>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Instance.Node getDefaultInstanceForType()
Returns
Type Description
Instance.Node

getId()

public String getId()

The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".

string id = 2;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".

string id = 2;

Returns
Type Description
ByteString

The bytes for id.

getIp()

public String getIp()

The private IP address of the VM e.g. "10.57.0.34".

string ip = 3;

Returns
Type Description
String

The ip.

getIpBytes()

public ByteString getIpBytes()

The private IP address of the VM e.g. "10.57.0.34".

string ip = 3;

Returns
Type Description
ByteString

The bytes for ip.

getParserForType()

public Parser<Instance.Node> getParserForType()
Returns
Type Description
Parser<Node>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public String getState()

Determined by state of the compute VM and postgres-service health. Compute VM state can have values listed in https://cloud.google.com/compute/docs/instances/instance-life-cycle and postgres-service health can have values: HEALTHY and UNHEALTHY.

string state = 4;

Returns
Type Description
String

The state.

getStateBytes()

public ByteString getStateBytes()

Determined by state of the compute VM and postgres-service health. Compute VM state can have values listed in https://cloud.google.com/compute/docs/instances/instance-life-cycle and postgres-service health can have values: HEALTHY and UNHEALTHY.

string state = 4;

Returns
Type Description
ByteString

The bytes for state.

getZoneId()

public String getZoneId()

The Compute Engine zone of the VM e.g. "us-central1-b".

string zone_id = 1;

Returns
Type Description
String

The zoneId.

getZoneIdBytes()

public ByteString getZoneIdBytes()

The Compute Engine zone of the VM e.g. "us-central1-b".

string zone_id = 1;

Returns
Type Description
ByteString

The bytes for zoneId.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Instance.Node.Builder newBuilderForType()
Returns
Type Description
Instance.Node.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Instance.Node.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Instance.Node.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Instance.Node.Builder toBuilder()
Returns
Type Description
Instance.Node.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException