Class AllocationPolicy.AttachedDisk

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

public static final class AllocationPolicy.AttachedDisk extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • NEW_DISK_FIELD_NUMBER

      public static final int NEW_DISK_FIELD_NUMBER
      See Also:
    • EXISTING_DISK_FIELD_NUMBER

      public static final int EXISTING_DISK_FIELD_NUMBER
      See Also:
    • DEVICE_NAME_FIELD_NUMBER

      public static final int DEVICE_NAME_FIELD_NUMBER
      See Also:
  • 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
    • getAttachedCase

      Specified by:
      getAttachedCase in interface AllocationPolicy.AttachedDiskOrBuilder
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AllocationPolicy.AttachedDisk parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllocationPolicy.AttachedDisk parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllocationPolicy.AttachedDisk parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllocationPolicy.AttachedDisk parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllocationPolicy.AttachedDisk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllocationPolicy.AttachedDisk parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AllocationPolicy.AttachedDisk parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AllocationPolicy.AttachedDisk parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AllocationPolicy.AttachedDisk parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AllocationPolicy.AttachedDisk parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AllocationPolicy.AttachedDisk parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AllocationPolicy.AttachedDisk parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static AllocationPolicy.AttachedDisk.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AllocationPolicy.AttachedDisk.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AllocationPolicy.AttachedDisk getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AllocationPolicy.AttachedDisk> parser()
    • getParserForType

      public com.google.protobuf.Parser<AllocationPolicy.AttachedDisk> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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