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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Instance.Node.Builder>
    • clear

      public Instance.Node.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Instance.Node.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Instance.Node.Builder>
    • getDefaultInstanceForType

      public Instance.Node getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Instance.Node build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Instance.Node buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Instance.Node.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Instance.Node.Builder>
    • mergeFrom

      public Instance.Node.Builder mergeFrom(Instance.Node other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Instance.Node.Builder>
      Throws:
      IOException
    • getZoneId

      public String 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:
      getZoneId in interface Instance.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:
      getZoneIdBytes in interface Instance.NodeOrBuilder
      Returns:
      The bytes for zoneId.
    • setZoneId

      public Instance.Node.Builder setZoneId(String value)
       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

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

      public Instance.Node.Builder setZoneIdBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getId in interface Instance.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:
      getIdBytes in interface Instance.NodeOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Instance.Node.Builder setId(String value)
       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

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

      public Instance.Node.Builder setIdBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getIp in interface Instance.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:
      getIpBytes in interface Instance.NodeOrBuilder
      Returns:
      The bytes for ip.
    • setIp

      public Instance.Node.Builder setIp(String value)
       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

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

      public Instance.Node.Builder setIpBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getState in interface Instance.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:
      getStateBytes in interface Instance.NodeOrBuilder
      Returns:
      The bytes for state.
    • setState

      public Instance.Node.Builder setState(String value)
       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

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

      public Instance.Node.Builder setStateBytes(com.google.protobuf.ByteString value)
       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.