Class AllocationPolicy.AttachedDisk.Builder

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

public static final class AllocationPolicy.AttachedDisk.Builder extends com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.AttachedDisk.Builder> implements AllocationPolicy.AttachedDiskOrBuilder
 A new or an existing persistent disk (PD) or a local ssd attached to a VM
 instance.
 
Protobuf type google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk
  • 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<AllocationPolicy.AttachedDisk.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<AllocationPolicy.AttachedDisk.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<AllocationPolicy.AttachedDisk.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public AllocationPolicy.AttachedDisk.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<AllocationPolicy.AttachedDisk.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<AllocationPolicy.AttachedDisk.Builder>
    • mergeFrom

      public AllocationPolicy.AttachedDisk.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<AllocationPolicy.AttachedDisk.Builder>
      Throws:
      IOException
    • getAttachedCase

      Specified by:
      getAttachedCase in interface AllocationPolicy.AttachedDiskOrBuilder
    • clearAttached

      public AllocationPolicy.AttachedDisk.Builder clearAttached()
    • hasNewDisk

      public boolean hasNewDisk()
      .google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;
      Specified by:
      hasNewDisk in interface AllocationPolicy.AttachedDiskOrBuilder
      Returns:
      Whether the newDisk field is set.
    • getNewDisk

      public AllocationPolicy.Disk getNewDisk()
      .google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;
      Specified by:
      getNewDisk in interface AllocationPolicy.AttachedDiskOrBuilder
      Returns:
      The newDisk.
    • setNewDisk

      .google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;
    • setNewDisk

      .google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;
    • mergeNewDisk

      .google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;
    • clearNewDisk

      .google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;
    • getNewDiskBuilder

      public AllocationPolicy.Disk.Builder getNewDiskBuilder()
      .google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;
    • getNewDiskOrBuilder

      public AllocationPolicy.DiskOrBuilder getNewDiskOrBuilder()
      .google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;
      Specified by:
      getNewDiskOrBuilder in interface AllocationPolicy.AttachedDiskOrBuilder
    • hasExistingDisk

      public boolean hasExistingDisk()
       Name of an existing PD.
       
      string existing_disk = 2;
      Specified by:
      hasExistingDisk in interface AllocationPolicy.AttachedDiskOrBuilder
      Returns:
      Whether the existingDisk field is set.
    • getExistingDisk

      public String getExistingDisk()
       Name of an existing PD.
       
      string existing_disk = 2;
      Specified by:
      getExistingDisk in interface AllocationPolicy.AttachedDiskOrBuilder
      Returns:
      The existingDisk.
    • getExistingDiskBytes

      public com.google.protobuf.ByteString getExistingDiskBytes()
       Name of an existing PD.
       
      string existing_disk = 2;
      Specified by:
      getExistingDiskBytes in interface AllocationPolicy.AttachedDiskOrBuilder
      Returns:
      The bytes for existingDisk.
    • setExistingDisk

      public AllocationPolicy.AttachedDisk.Builder setExistingDisk(String value)
       Name of an existing PD.
       
      string existing_disk = 2;
      Parameters:
      value - The existingDisk to set.
      Returns:
      This builder for chaining.
    • clearExistingDisk

      public AllocationPolicy.AttachedDisk.Builder clearExistingDisk()
       Name of an existing PD.
       
      string existing_disk = 2;
      Returns:
      This builder for chaining.
    • setExistingDiskBytes

      public AllocationPolicy.AttachedDisk.Builder setExistingDiskBytes(com.google.protobuf.ByteString value)
       Name of an existing PD.
       
      string existing_disk = 2;
      Parameters:
      value - The bytes for existingDisk to set.
      Returns:
      This builder for chaining.
    • getDeviceName

      public String getDeviceName()
       Device name that the guest operating system will see.
       It is used by Runnable.volumes field to mount disks. So please specify
       the device_name if you want Batch to help mount the disk, and it should
       match the device_name field in volumes.
       
      string device_name = 3;
      Specified by:
      getDeviceName in interface AllocationPolicy.AttachedDiskOrBuilder
      Returns:
      The deviceName.
    • getDeviceNameBytes

      public com.google.protobuf.ByteString getDeviceNameBytes()
       Device name that the guest operating system will see.
       It is used by Runnable.volumes field to mount disks. So please specify
       the device_name if you want Batch to help mount the disk, and it should
       match the device_name field in volumes.
       
      string device_name = 3;
      Specified by:
      getDeviceNameBytes in interface AllocationPolicy.AttachedDiskOrBuilder
      Returns:
      The bytes for deviceName.
    • setDeviceName

      public AllocationPolicy.AttachedDisk.Builder setDeviceName(String value)
       Device name that the guest operating system will see.
       It is used by Runnable.volumes field to mount disks. So please specify
       the device_name if you want Batch to help mount the disk, and it should
       match the device_name field in volumes.
       
      string device_name = 3;
      Parameters:
      value - The deviceName to set.
      Returns:
      This builder for chaining.
    • clearDeviceName

      public AllocationPolicy.AttachedDisk.Builder clearDeviceName()
       Device name that the guest operating system will see.
       It is used by Runnable.volumes field to mount disks. So please specify
       the device_name if you want Batch to help mount the disk, and it should
       match the device_name field in volumes.
       
      string device_name = 3;
      Returns:
      This builder for chaining.
    • setDeviceNameBytes

      public AllocationPolicy.AttachedDisk.Builder setDeviceNameBytes(com.google.protobuf.ByteString value)
       Device name that the guest operating system will see.
       It is used by Runnable.volumes field to mount disks. So please specify
       the device_name if you want Batch to help mount the disk, and it should
       match the device_name field in volumes.
       
      string device_name = 3;
      Parameters:
      value - The bytes for deviceName to set.
      Returns:
      This builder for chaining.