Class Instance.MachineConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Instance.MachineConfig.Builder>
com.google.cloud.alloydb.v1beta.Instance.MachineConfig.Builder
All Implemented Interfaces:
Instance.MachineConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Instance.MachineConfig

public static final class Instance.MachineConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<Instance.MachineConfig.Builder> implements Instance.MachineConfigOrBuilder
 MachineConfig describes the configuration of a machine.
 
Protobuf type google.cloud.alloydb.v1beta.Instance.MachineConfig
  • 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.MachineConfig.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.MachineConfig.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.MachineConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public Instance.MachineConfig.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.MachineConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Instance.MachineConfig.Builder>
    • mergeFrom

      public Instance.MachineConfig.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.MachineConfig.Builder>
      Throws:
      IOException
    • getCpuCount

      public int getCpuCount()
       The number of CPU's in the VM instance.
       
      int32 cpu_count = 1;
      Specified by:
      getCpuCount in interface Instance.MachineConfigOrBuilder
      Returns:
      The cpuCount.
    • setCpuCount

      public Instance.MachineConfig.Builder setCpuCount(int value)
       The number of CPU's in the VM instance.
       
      int32 cpu_count = 1;
      Parameters:
      value - The cpuCount to set.
      Returns:
      This builder for chaining.
    • clearCpuCount

      public Instance.MachineConfig.Builder clearCpuCount()
       The number of CPU's in the VM instance.
       
      int32 cpu_count = 1;
      Returns:
      This builder for chaining.
    • getMachineType

      public String getMachineType()
       Machine type of the VM instance. E.g. "n2-highmem-4",
       "n2-highmem-8", "c4a-highmem-4-lssd".
       cpu_count must match the number of vCPUs in the machine type.
       
      string machine_type = 4;
      Specified by:
      getMachineType in interface Instance.MachineConfigOrBuilder
      Returns:
      The machineType.
    • getMachineTypeBytes

      public com.google.protobuf.ByteString getMachineTypeBytes()
       Machine type of the VM instance. E.g. "n2-highmem-4",
       "n2-highmem-8", "c4a-highmem-4-lssd".
       cpu_count must match the number of vCPUs in the machine type.
       
      string machine_type = 4;
      Specified by:
      getMachineTypeBytes in interface Instance.MachineConfigOrBuilder
      Returns:
      The bytes for machineType.
    • setMachineType

      public Instance.MachineConfig.Builder setMachineType(String value)
       Machine type of the VM instance. E.g. "n2-highmem-4",
       "n2-highmem-8", "c4a-highmem-4-lssd".
       cpu_count must match the number of vCPUs in the machine type.
       
      string machine_type = 4;
      Parameters:
      value - The machineType to set.
      Returns:
      This builder for chaining.
    • clearMachineType

      public Instance.MachineConfig.Builder clearMachineType()
       Machine type of the VM instance. E.g. "n2-highmem-4",
       "n2-highmem-8", "c4a-highmem-4-lssd".
       cpu_count must match the number of vCPUs in the machine type.
       
      string machine_type = 4;
      Returns:
      This builder for chaining.
    • setMachineTypeBytes

      public Instance.MachineConfig.Builder setMachineTypeBytes(com.google.protobuf.ByteString value)
       Machine type of the VM instance. E.g. "n2-highmem-4",
       "n2-highmem-8", "c4a-highmem-4-lssd".
       cpu_count must match the number of vCPUs in the machine type.
       
      string machine_type = 4;
      Parameters:
      value - The bytes for machineType to set.
      Returns:
      This builder for chaining.