Class AllocationPolicy.AttachedDisk.Builder (0.9.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AllocationPolicy.AttachedDisk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder
Overrides

build()

public AllocationPolicy.AttachedDisk build()
Returns
Type Description
AllocationPolicy.AttachedDisk

buildPartial()

public AllocationPolicy.AttachedDisk buildPartial()
Returns
Type Description
AllocationPolicy.AttachedDisk

clear()

public AllocationPolicy.AttachedDisk.Builder clear()
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder
Overrides

clearAttached()

public AllocationPolicy.AttachedDisk.Builder clearAttached()
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder

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
Type Description
AllocationPolicy.AttachedDisk.Builder

This builder for chaining.

clearExistingDisk()

public AllocationPolicy.AttachedDisk.Builder clearExistingDisk()

Name of an existing PD.

string existing_disk = 2;

Returns
Type Description
AllocationPolicy.AttachedDisk.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AllocationPolicy.AttachedDisk.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder
Overrides

clearNewDisk()

public AllocationPolicy.AttachedDisk.Builder clearNewDisk()

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

Returns
Type Description
AllocationPolicy.AttachedDisk.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AllocationPolicy.AttachedDisk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder
Overrides

clone()

public AllocationPolicy.AttachedDisk.Builder clone()
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder
Overrides

getAttachedCase()

public AllocationPolicy.AttachedDisk.AttachedCase getAttachedCase()
Returns
Type Description
AllocationPolicy.AttachedDisk.AttachedCase

getDefaultInstanceForType()

public AllocationPolicy.AttachedDisk getDefaultInstanceForType()
Returns
Type Description
AllocationPolicy.AttachedDisk

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Type Description
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
Type Description
ByteString

The bytes for deviceName.

getExistingDisk()

public String getExistingDisk()

Name of an existing PD.

string existing_disk = 2;

Returns
Type Description
String

The existingDisk.

getExistingDiskBytes()

public ByteString getExistingDiskBytes()

Name of an existing PD.

string existing_disk = 2;

Returns
Type Description
ByteString

The bytes for existingDisk.

getNewDisk()

public AllocationPolicy.Disk getNewDisk()

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

Returns
Type Description
AllocationPolicy.Disk

The newDisk.

getNewDiskBuilder()

public AllocationPolicy.Disk.Builder getNewDiskBuilder()

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

Returns
Type Description
AllocationPolicy.Disk.Builder

getNewDiskOrBuilder()

public AllocationPolicy.DiskOrBuilder getNewDiskOrBuilder()

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

Returns
Type Description
AllocationPolicy.DiskOrBuilder

hasExistingDisk()

public boolean hasExistingDisk()

Name of an existing PD.

string existing_disk = 2;

Returns
Type Description
boolean

Whether the existingDisk field is set.

hasNewDisk()

public boolean hasNewDisk()

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

Returns
Type Description
boolean

Whether the newDisk field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AllocationPolicy.AttachedDisk other)

public AllocationPolicy.AttachedDisk.Builder mergeFrom(AllocationPolicy.AttachedDisk other)
Parameter
Name Description
other AllocationPolicy.AttachedDisk
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AllocationPolicy.AttachedDisk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

public AllocationPolicy.AttachedDisk.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder
Overrides

mergeNewDisk(AllocationPolicy.Disk value)

public AllocationPolicy.AttachedDisk.Builder mergeNewDisk(AllocationPolicy.Disk value)

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

Parameter
Name Description
value AllocationPolicy.Disk
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AllocationPolicy.AttachedDisk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder
Overrides

setDeviceName(String value)

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;

Parameter
Name Description
value String

The deviceName to set.

Returns
Type Description
AllocationPolicy.AttachedDisk.Builder

This builder for chaining.

setDeviceNameBytes(ByteString value)

public AllocationPolicy.AttachedDisk.Builder setDeviceNameBytes(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;

Parameter
Name Description
value ByteString

The bytes for deviceName to set.

Returns
Type Description
AllocationPolicy.AttachedDisk.Builder

This builder for chaining.

setExistingDisk(String value)

public AllocationPolicy.AttachedDisk.Builder setExistingDisk(String value)

Name of an existing PD.

string existing_disk = 2;

Parameter
Name Description
value String

The existingDisk to set.

Returns
Type Description
AllocationPolicy.AttachedDisk.Builder

This builder for chaining.

setExistingDiskBytes(ByteString value)

public AllocationPolicy.AttachedDisk.Builder setExistingDiskBytes(ByteString value)

Name of an existing PD.

string existing_disk = 2;

Parameter
Name Description
value ByteString

The bytes for existingDisk to set.

Returns
Type Description
AllocationPolicy.AttachedDisk.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AllocationPolicy.AttachedDisk.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder
Overrides

setNewDisk(AllocationPolicy.Disk value)

public AllocationPolicy.AttachedDisk.Builder setNewDisk(AllocationPolicy.Disk value)

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

Parameter
Name Description
value AllocationPolicy.Disk
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder

setNewDisk(AllocationPolicy.Disk.Builder builderForValue)

public AllocationPolicy.AttachedDisk.Builder setNewDisk(AllocationPolicy.Disk.Builder builderForValue)

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

Parameter
Name Description
builderForValue AllocationPolicy.Disk.Builder
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AllocationPolicy.AttachedDisk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AllocationPolicy.AttachedDisk.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AllocationPolicy.AttachedDisk.Builder
Overrides