Class Instance.Node.Builder (0.14.1)

public static final class Instance.Node.Builder extends GeneratedMessageV3.Builder<Instance.Node.Builder> 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.events.cloud.alloydb.v1.Instance.Node

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Instance.Node.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Instance.Node.Builder
Overrides

build()

public Instance.Node build()
Returns
TypeDescription
Instance.Node

buildPartial()

public Instance.Node buildPartial()
Returns
TypeDescription
Instance.Node

clear()

public Instance.Node.Builder clear()
Returns
TypeDescription
Instance.Node.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Instance.Node.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Instance.Node.Builder
Overrides

clearId()

public Instance.Node.Builder clearId()

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

string id = 2;

Returns
TypeDescription
Instance.Node.Builder

This builder for chaining.

clearIp()

public Instance.Node.Builder clearIp()

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

string ip = 3;

Returns
TypeDescription
Instance.Node.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Instance.Node.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Instance.Node.Builder
Overrides

clearState()

public Instance.Node.Builder clearState()

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
TypeDescription
Instance.Node.Builder

This builder for chaining.

clearZoneId()

public Instance.Node.Builder clearZoneId()

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

string zone_id = 1;

Returns
TypeDescription
Instance.Node.Builder

This builder for chaining.

clone()

public Instance.Node.Builder clone()
Returns
TypeDescription
Instance.Node.Builder
Overrides

getDefaultInstanceForType()

public Instance.Node getDefaultInstanceForType()
Returns
TypeDescription
Instance.Node

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public String getId()

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

string id = 2;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

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

string id = 2;

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

The ip.

getIpBytes()

public ByteString getIpBytes()

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

string ip = 3;

Returns
TypeDescription
ByteString

The bytes for ip.

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

The zoneId.

getZoneIdBytes()

public ByteString getZoneIdBytes()

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

string zone_id = 1;

Returns
TypeDescription
ByteString

The bytes for zoneId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Instance.Node other)

public Instance.Node.Builder mergeFrom(Instance.Node other)
Parameter
NameDescription
otherInstance.Node
Returns
TypeDescription
Instance.Node.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Instance.Node.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.Node.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Instance.Node.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Instance.Node.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Instance.Node.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Instance.Node.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Instance.Node.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Instance.Node.Builder
Overrides

setId(String value)

public Instance.Node.Builder setId(String value)

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

string id = 2;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
Instance.Node.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Instance.Node.Builder setIdBytes(ByteString value)

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

string id = 2;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
Instance.Node.Builder

This builder for chaining.

setIp(String value)

public Instance.Node.Builder setIp(String value)

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

string ip = 3;

Parameter
NameDescription
valueString

The ip to set.

Returns
TypeDescription
Instance.Node.Builder

This builder for chaining.

setIpBytes(ByteString value)

public Instance.Node.Builder setIpBytes(ByteString value)

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

string ip = 3;

Parameter
NameDescription
valueByteString

The bytes for ip to set.

Returns
TypeDescription
Instance.Node.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Instance.Node.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Instance.Node.Builder
Overrides

setState(String value)

public Instance.Node.Builder setState(String value)

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;

Parameter
NameDescription
valueString

The state to set.

Returns
TypeDescription
Instance.Node.Builder

This builder for chaining.

setStateBytes(ByteString value)

public Instance.Node.Builder setStateBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for state to set.

Returns
TypeDescription
Instance.Node.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Instance.Node.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Instance.Node.Builder
Overrides

setZoneId(String value)

public Instance.Node.Builder setZoneId(String value)

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

string zone_id = 1;

Parameter
NameDescription
valueString

The zoneId to set.

Returns
TypeDescription
Instance.Node.Builder

This builder for chaining.

setZoneIdBytes(ByteString value)

public Instance.Node.Builder setZoneIdBytes(ByteString value)

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

string zone_id = 1;

Parameter
NameDescription
valueByteString

The bytes for zoneId to set.

Returns
TypeDescription
Instance.Node.Builder

This builder for chaining.