Class AllocationPolicy.AttachedDisk (0.41.0)

public static final class AllocationPolicy.AttachedDisk extends GeneratedMessageV3 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.v1.AllocationPolicy.AttachedDisk

Static Fields

DEVICE_NAME_FIELD_NUMBER

public static final int DEVICE_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

EXISTING_DISK_FIELD_NUMBER

public static final int EXISTING_DISK_FIELD_NUMBER
Field Value
TypeDescription
int

NEW_DISK_FIELD_NUMBER

public static final int NEW_DISK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AllocationPolicy.AttachedDisk getDefaultInstance()
Returns
TypeDescription
AllocationPolicy.AttachedDisk

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AllocationPolicy.AttachedDisk.Builder newBuilder()
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder

newBuilder(AllocationPolicy.AttachedDisk prototype)

public static AllocationPolicy.AttachedDisk.Builder newBuilder(AllocationPolicy.AttachedDisk prototype)
Parameter
NameDescription
prototypeAllocationPolicy.AttachedDisk
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder

parseDelimitedFrom(InputStream input)

public static AllocationPolicy.AttachedDisk parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AllocationPolicy.AttachedDisk
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocationPolicy.AttachedDisk parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationPolicy.AttachedDisk
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AllocationPolicy.AttachedDisk parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AllocationPolicy.AttachedDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AllocationPolicy.AttachedDisk parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationPolicy.AttachedDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AllocationPolicy.AttachedDisk parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AllocationPolicy.AttachedDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AllocationPolicy.AttachedDisk parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationPolicy.AttachedDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AllocationPolicy.AttachedDisk parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AllocationPolicy.AttachedDisk
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocationPolicy.AttachedDisk parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationPolicy.AttachedDisk
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AllocationPolicy.AttachedDisk parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AllocationPolicy.AttachedDisk
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocationPolicy.AttachedDisk parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationPolicy.AttachedDisk
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AllocationPolicy.AttachedDisk parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AllocationPolicy.AttachedDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AllocationPolicy.AttachedDisk parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationPolicy.AttachedDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AllocationPolicy.AttachedDisk> parser()
Returns
TypeDescription
Parser<AttachedDisk>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAttachedCase()

public AllocationPolicy.AttachedDisk.AttachedCase getAttachedCase()
Returns
TypeDescription
AllocationPolicy.AttachedDisk.AttachedCase

getDefaultInstanceForType()

public AllocationPolicy.AttachedDisk getDefaultInstanceForType()
Returns
TypeDescription
AllocationPolicy.AttachedDisk

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;

Returns
TypeDescription
String

The deviceName.

getDeviceNameBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for deviceName.

getExistingDisk()

public String getExistingDisk()

Name of an existing PD.

string existing_disk = 2;

Returns
TypeDescription
String

The existingDisk.

getExistingDiskBytes()

public ByteString getExistingDiskBytes()

Name of an existing PD.

string existing_disk = 2;

Returns
TypeDescription
ByteString

The bytes for existingDisk.

getNewDisk()

public AllocationPolicy.Disk getNewDisk()

.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;

Returns
TypeDescription
AllocationPolicy.Disk

The newDisk.

getNewDiskOrBuilder()

public AllocationPolicy.DiskOrBuilder getNewDiskOrBuilder()

.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;

Returns
TypeDescription
AllocationPolicy.DiskOrBuilder

getParserForType()

public Parser<AllocationPolicy.AttachedDisk> getParserForType()
Returns
TypeDescription
Parser<AttachedDisk>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasExistingDisk()

public boolean hasExistingDisk()

Name of an existing PD.

string existing_disk = 2;

Returns
TypeDescription
boolean

Whether the existingDisk field is set.

hasNewDisk()

public boolean hasNewDisk()

.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;

Returns
TypeDescription
boolean

Whether the newDisk field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AllocationPolicy.AttachedDisk.Builder newBuilderForType()
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AllocationPolicy.AttachedDisk.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AllocationPolicy.AttachedDisk.Builder toBuilder()
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException