public static final class AllocationPolicy.AttachedDisk.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
AllocationPolicy.AttachedDisk.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AllocationPolicy.AttachedDisk |
build() |
AllocationPolicy.AttachedDisk |
buildPartial() |
AllocationPolicy.AttachedDisk.Builder |
clear() |
AllocationPolicy.AttachedDisk.Builder |
clearAttached() |
AllocationPolicy.AttachedDisk.Builder |
clearDeviceName()
Device name that the guest operating system will see.
|
AllocationPolicy.AttachedDisk.Builder |
clearExistingDisk()
Name of an existing PD.
|
AllocationPolicy.AttachedDisk.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AllocationPolicy.AttachedDisk.Builder |
clearNewDisk()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; |
AllocationPolicy.AttachedDisk.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AllocationPolicy.AttachedDisk.Builder |
clone() |
AllocationPolicy.AttachedDisk.AttachedCase |
getAttachedCase() |
AllocationPolicy.AttachedDisk |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDeviceName()
Device name that the guest operating system will see.
|
com.google.protobuf.ByteString |
getDeviceNameBytes()
Device name that the guest operating system will see.
|
String |
getExistingDisk()
Name of an existing PD.
|
com.google.protobuf.ByteString |
getExistingDiskBytes()
Name of an existing PD.
|
AllocationPolicy.Disk |
getNewDisk()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; |
AllocationPolicy.Disk.Builder |
getNewDiskBuilder()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; |
AllocationPolicy.DiskOrBuilder |
getNewDiskOrBuilder()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; |
boolean |
hasExistingDisk()
Name of an existing PD.
|
boolean |
hasNewDisk()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AllocationPolicy.AttachedDisk.Builder |
mergeFrom(AllocationPolicy.AttachedDisk other) |
AllocationPolicy.AttachedDisk.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AllocationPolicy.AttachedDisk.Builder |
mergeFrom(com.google.protobuf.Message other) |
AllocationPolicy.AttachedDisk.Builder |
mergeNewDisk(AllocationPolicy.Disk value)
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; |
AllocationPolicy.AttachedDisk.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AllocationPolicy.AttachedDisk.Builder |
setDeviceName(String value)
Device name that the guest operating system will see.
|
AllocationPolicy.AttachedDisk.Builder |
setDeviceNameBytes(com.google.protobuf.ByteString value)
Device name that the guest operating system will see.
|
AllocationPolicy.AttachedDisk.Builder |
setExistingDisk(String value)
Name of an existing PD.
|
AllocationPolicy.AttachedDisk.Builder |
setExistingDiskBytes(com.google.protobuf.ByteString value)
Name of an existing PD.
|
AllocationPolicy.AttachedDisk.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AllocationPolicy.AttachedDisk.Builder |
setNewDisk(AllocationPolicy.Disk.Builder builderForValue)
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; |
AllocationPolicy.AttachedDisk.Builder |
setNewDisk(AllocationPolicy.Disk value)
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; |
AllocationPolicy.AttachedDisk.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AllocationPolicy.AttachedDisk.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>public AllocationPolicy.AttachedDisk.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>public AllocationPolicy.AttachedDisk getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AllocationPolicy.AttachedDisk build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AllocationPolicy.AttachedDisk buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AllocationPolicy.AttachedDisk.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>public AllocationPolicy.AttachedDisk.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>public AllocationPolicy.AttachedDisk.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>public AllocationPolicy.AttachedDisk.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>public AllocationPolicy.AttachedDisk.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>public AllocationPolicy.AttachedDisk.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>public AllocationPolicy.AttachedDisk.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocationPolicy.AttachedDisk.Builder>public AllocationPolicy.AttachedDisk.Builder mergeFrom(AllocationPolicy.AttachedDisk other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>public AllocationPolicy.AttachedDisk.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocationPolicy.AttachedDisk.Builder>IOExceptionpublic AllocationPolicy.AttachedDisk.AttachedCase getAttachedCase()
getAttachedCase in interface AllocationPolicy.AttachedDiskOrBuilderpublic AllocationPolicy.AttachedDisk.Builder clearAttached()
public boolean hasNewDisk()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;hasNewDisk in interface AllocationPolicy.AttachedDiskOrBuilderpublic AllocationPolicy.Disk getNewDisk()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;getNewDisk in interface AllocationPolicy.AttachedDiskOrBuilderpublic AllocationPolicy.AttachedDisk.Builder setNewDisk(AllocationPolicy.Disk value)
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;public AllocationPolicy.AttachedDisk.Builder setNewDisk(AllocationPolicy.Disk.Builder builderForValue)
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;public AllocationPolicy.AttachedDisk.Builder mergeNewDisk(AllocationPolicy.Disk value)
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;public AllocationPolicy.AttachedDisk.Builder clearNewDisk()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;public AllocationPolicy.Disk.Builder getNewDiskBuilder()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;public AllocationPolicy.DiskOrBuilder getNewDiskOrBuilder()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;getNewDiskOrBuilder in interface AllocationPolicy.AttachedDiskOrBuilderpublic boolean hasExistingDisk()
Name of an existing PD.
string existing_disk = 2;hasExistingDisk in interface AllocationPolicy.AttachedDiskOrBuilderpublic String getExistingDisk()
Name of an existing PD.
string existing_disk = 2;getExistingDisk in interface AllocationPolicy.AttachedDiskOrBuilderpublic com.google.protobuf.ByteString getExistingDiskBytes()
Name of an existing PD.
string existing_disk = 2;getExistingDiskBytes in interface AllocationPolicy.AttachedDiskOrBuilderpublic AllocationPolicy.AttachedDisk.Builder setExistingDisk(String value)
Name of an existing PD.
string existing_disk = 2;value - The existingDisk to set.public AllocationPolicy.AttachedDisk.Builder clearExistingDisk()
Name of an existing PD.
string existing_disk = 2;public AllocationPolicy.AttachedDisk.Builder setExistingDiskBytes(com.google.protobuf.ByteString value)
Name of an existing PD.
string existing_disk = 2;value - The bytes for existingDisk to set.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;getDeviceName in interface AllocationPolicy.AttachedDiskOrBuilderpublic 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;getDeviceNameBytes in interface AllocationPolicy.AttachedDiskOrBuilderpublic 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;value - The deviceName to set.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;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;value - The bytes for deviceName to set.public final AllocationPolicy.AttachedDisk.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>public final AllocationPolicy.AttachedDisk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>Copyright © 2025 Google LLC. All rights reserved.