Package com.google.cloud.alloydb.v1beta
Class Instance.Node.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Instance.Node.Builder>
com.google.cloud.alloydb.v1beta.Instance.Node.Builder
- All Implemented Interfaces:
Instance.NodeOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Instance.Node
public static final class Instance.Node.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Instance.Node.Builder>
implements Instance.NodeOrBuilder
Details of a single node in the instance. Nodes in an AlloyDB instance are ephemeral, they can change during update, failover, autohealing and resize operations.Protobuf type
google.cloud.alloydb.v1beta.Instance.Node-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()clearId()Output only.clearIp()Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()Output only.com.google.protobuf.ByteStringOutput only.getIp()Output only.com.google.protobuf.ByteStringOutput only.getState()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Instance.Node other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.setIdBytes(com.google.protobuf.ByteString value) Output only.Output only.setIpBytes(com.google.protobuf.ByteString value) Output only.Output only.setStateBytes(com.google.protobuf.ByteString value) Output only.Output only.setZoneIdBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Instance.Node.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Instance.Node.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Instance.Node.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Instance.Node.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Instance.Node.Builder>
-
mergeFrom
public Instance.Node.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Instance.Node.Builder>- Throws:
IOException
-
getZoneId
Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getZoneIdin interfaceInstance.NodeOrBuilder- Returns:
- The zoneId.
-
getZoneIdBytes
public com.google.protobuf.ByteString getZoneIdBytes()Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getZoneIdBytesin interfaceInstance.NodeOrBuilder- Returns:
- The bytes for zoneId.
-
setZoneId
Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The zoneId to set.- Returns:
- This builder for chaining.
-
clearZoneId
Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setZoneIdBytes
Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for zoneId to set.- Returns:
- This builder for chaining.
-
getId
Output only. The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceInstance.NodeOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Output only. The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdBytesin interfaceInstance.NodeOrBuilder- Returns:
- The bytes for id.
-
setId
Output only. The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setIdBytes
Output only. The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getIp
Output only. The private IP address of the VM e.g. "10.57.0.34".
string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIpin interfaceInstance.NodeOrBuilder- Returns:
- The ip.
-
getIpBytes
public com.google.protobuf.ByteString getIpBytes()Output only. The private IP address of the VM e.g. "10.57.0.34".
string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIpBytesin interfaceInstance.NodeOrBuilder- Returns:
- The bytes for ip.
-
setIp
Output only. The private IP address of the VM e.g. "10.57.0.34".
string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The ip to set.- Returns:
- This builder for chaining.
-
clearIp
Output only. The private IP address of the VM e.g. "10.57.0.34".
string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setIpBytes
Output only. The private IP address of the VM e.g. "10.57.0.34".
string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for ip to set.- Returns:
- This builder for chaining.
-
getState
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceInstance.NodeOrBuilder- Returns:
- The state.
-
getStateBytes
public com.google.protobuf.ByteString getStateBytes()Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateBytesin interfaceInstance.NodeOrBuilder- Returns:
- The bytes for state.
-
setState
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setStateBytes
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for state to set.- Returns:
- This builder for chaining.
-