Class JobStatus.InstanceStatus.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<JobStatus.InstanceStatus.Builder>
com.google.cloud.batch.v1alpha.JobStatus.InstanceStatus.Builder
All Implemented Interfaces:
JobStatus.InstanceStatusOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
JobStatus.InstanceStatus

public static final class JobStatus.InstanceStatus.Builder extends com.google.protobuf.GeneratedMessage.Builder<JobStatus.InstanceStatus.Builder> implements JobStatus.InstanceStatusOrBuilder
 VM instance status.
 
Protobuf type google.cloud.batch.v1alpha.JobStatus.InstanceStatus
  • 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<JobStatus.InstanceStatus.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<JobStatus.InstanceStatus.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<JobStatus.InstanceStatus.Builder>
    • getDefaultInstanceForType

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

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

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

      public JobStatus.InstanceStatus.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<JobStatus.InstanceStatus.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<JobStatus.InstanceStatus.Builder>
    • mergeFrom

      public JobStatus.InstanceStatus.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<JobStatus.InstanceStatus.Builder>
      Throws:
      IOException
    • getMachineType

      public String getMachineType()
       The Compute Engine machine type.
       
      string machine_type = 1;
      Specified by:
      getMachineType in interface JobStatus.InstanceStatusOrBuilder
      Returns:
      The machineType.
    • getMachineTypeBytes

      public com.google.protobuf.ByteString getMachineTypeBytes()
       The Compute Engine machine type.
       
      string machine_type = 1;
      Specified by:
      getMachineTypeBytes in interface JobStatus.InstanceStatusOrBuilder
      Returns:
      The bytes for machineType.
    • setMachineType

      public JobStatus.InstanceStatus.Builder setMachineType(String value)
       The Compute Engine machine type.
       
      string machine_type = 1;
      Parameters:
      value - The machineType to set.
      Returns:
      This builder for chaining.
    • clearMachineType

      public JobStatus.InstanceStatus.Builder clearMachineType()
       The Compute Engine machine type.
       
      string machine_type = 1;
      Returns:
      This builder for chaining.
    • setMachineTypeBytes

      public JobStatus.InstanceStatus.Builder setMachineTypeBytes(com.google.protobuf.ByteString value)
       The Compute Engine machine type.
       
      string machine_type = 1;
      Parameters:
      value - The bytes for machineType to set.
      Returns:
      This builder for chaining.
    • getProvisioningModelValue

      public int getProvisioningModelValue()
       The VM instance provisioning model.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 2;
      Specified by:
      getProvisioningModelValue in interface JobStatus.InstanceStatusOrBuilder
      Returns:
      The enum numeric value on the wire for provisioningModel.
    • setProvisioningModelValue

      public JobStatus.InstanceStatus.Builder setProvisioningModelValue(int value)
       The VM instance provisioning model.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 2;
      Parameters:
      value - The enum numeric value on the wire for provisioningModel to set.
      Returns:
      This builder for chaining.
    • getProvisioningModel

      public AllocationPolicy.ProvisioningModel getProvisioningModel()
       The VM instance provisioning model.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 2;
      Specified by:
      getProvisioningModel in interface JobStatus.InstanceStatusOrBuilder
      Returns:
      The provisioningModel.
    • setProvisioningModel

       The VM instance provisioning model.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 2;
      Parameters:
      value - The provisioningModel to set.
      Returns:
      This builder for chaining.
    • clearProvisioningModel

      public JobStatus.InstanceStatus.Builder clearProvisioningModel()
       The VM instance provisioning model.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 2;
      Returns:
      This builder for chaining.
    • getTaskPack

      public long getTaskPack()
       The max number of tasks can be assigned to this instance type.
       
      int64 task_pack = 3;
      Specified by:
      getTaskPack in interface JobStatus.InstanceStatusOrBuilder
      Returns:
      The taskPack.
    • setTaskPack

      public JobStatus.InstanceStatus.Builder setTaskPack(long value)
       The max number of tasks can be assigned to this instance type.
       
      int64 task_pack = 3;
      Parameters:
      value - The taskPack to set.
      Returns:
      This builder for chaining.
    • clearTaskPack

      public JobStatus.InstanceStatus.Builder clearTaskPack()
       The max number of tasks can be assigned to this instance type.
       
      int64 task_pack = 3;
      Returns:
      This builder for chaining.
    • hasBootDisk

      public boolean hasBootDisk()
       The VM boot disk.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;
      Specified by:
      hasBootDisk in interface JobStatus.InstanceStatusOrBuilder
      Returns:
      Whether the bootDisk field is set.
    • getBootDisk

      public AllocationPolicy.Disk getBootDisk()
       The VM boot disk.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;
      Specified by:
      getBootDisk in interface JobStatus.InstanceStatusOrBuilder
      Returns:
      The bootDisk.
    • setBootDisk

       The VM boot disk.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;
    • setBootDisk

       The VM boot disk.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;
    • mergeBootDisk

       The VM boot disk.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;
    • clearBootDisk

      public JobStatus.InstanceStatus.Builder clearBootDisk()
       The VM boot disk.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;
    • getBootDiskBuilder

      public AllocationPolicy.Disk.Builder getBootDiskBuilder()
       The VM boot disk.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;
    • getBootDiskOrBuilder

      public AllocationPolicy.DiskOrBuilder getBootDiskOrBuilder()
       The VM boot disk.
       
      .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;
      Specified by:
      getBootDiskOrBuilder in interface JobStatus.InstanceStatusOrBuilder