Class AllocationPolicy.AttachedDisk.Builder (0.8.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.v1alpha.AllocationPolicy.AttachedDisk

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AllocationPolicy.AttachedDisk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder
Overrides

build()

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

buildPartial()

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

clear()

public AllocationPolicy.AttachedDisk.Builder clear()
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder
Overrides

clearAttached()

public AllocationPolicy.AttachedDisk.Builder clearAttached()
Returns
TypeDescription
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
TypeDescription
AllocationPolicy.AttachedDisk.Builder

This builder for chaining.

clearExistingDisk()

public AllocationPolicy.AttachedDisk.Builder clearExistingDisk()

Name of an existing PD.

string existing_disk = 2;

Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AllocationPolicy.AttachedDisk.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder
Overrides

clearNewDisk()

public AllocationPolicy.AttachedDisk.Builder clearNewDisk()

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

Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AllocationPolicy.AttachedDisk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder
Overrides

clone()

public AllocationPolicy.AttachedDisk.Builder clone()
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder
Overrides

getAttachedCase()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.v1alpha.AllocationPolicy.Disk new_disk = 1;

Returns
TypeDescription
AllocationPolicy.Disk

The newDisk.

getNewDiskBuilder()

public AllocationPolicy.Disk.Builder getNewDiskBuilder()

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

Returns
TypeDescription
AllocationPolicy.Disk.Builder

getNewDiskOrBuilder()

public AllocationPolicy.DiskOrBuilder getNewDiskOrBuilder()

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

Returns
TypeDescription
AllocationPolicy.DiskOrBuilder

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.v1alpha.AllocationPolicy.Disk new_disk = 1;

Returns
TypeDescription
boolean

Whether the newDisk field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AllocationPolicy.AttachedDisk other)

public AllocationPolicy.AttachedDisk.Builder mergeFrom(AllocationPolicy.AttachedDisk other)
Parameter
NameDescription
otherAllocationPolicy.AttachedDisk
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AllocationPolicy.AttachedDisk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AllocationPolicy.AttachedDisk.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder
Overrides

mergeNewDisk(AllocationPolicy.Disk value)

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

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

Parameter
NameDescription
valueAllocationPolicy.Disk
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AllocationPolicy.AttachedDisk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The deviceName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for deviceName to set.

Returns
TypeDescription
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
NameDescription
valueString

The existingDisk to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for existingDisk to set.

Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AllocationPolicy.AttachedDisk.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder
Overrides

setNewDisk(AllocationPolicy.Disk value)

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

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

Parameter
NameDescription
valueAllocationPolicy.Disk
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder

setNewDisk(AllocationPolicy.Disk.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueAllocationPolicy.Disk.Builder
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder

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

public AllocationPolicy.AttachedDisk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AllocationPolicy.AttachedDisk.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder
Overrides