Send feedback
Class AllocationPolicy.AttachedDisk.Builder (0.16.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
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.events.cloud.batch.v1.AllocationPolicy.AttachedDisk
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy . AttachedDisk . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public AllocationPolicy . AttachedDisk build ()
buildPartial()
public AllocationPolicy . AttachedDisk buildPartial ()
clear()
public AllocationPolicy . AttachedDisk . Builder clear ()
Overrides
clearAttached()
public AllocationPolicy . AttachedDisk . Builder clearAttached ()
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;
clearExistingDisk()
public AllocationPolicy . AttachedDisk . Builder clearExistingDisk ()
Name of an existing PD.
string existing_disk = 2;
clearField(Descriptors.FieldDescriptor field)
public AllocationPolicy . AttachedDisk . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearNewDisk()
public AllocationPolicy . AttachedDisk . Builder clearNewDisk ()
.google.events.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public AllocationPolicy . AttachedDisk . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public AllocationPolicy . AttachedDisk . Builder clone ()
Overrides
getAttachedCase()
public AllocationPolicy . AttachedDisk . AttachedCase getAttachedCase ()
getDefaultInstanceForType()
public AllocationPolicy . AttachedDisk getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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.events.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
getNewDiskBuilder()
public AllocationPolicy . Disk . Builder getNewDiskBuilder ()
.google.events.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
getNewDiskOrBuilder()
public AllocationPolicy . DiskOrBuilder getNewDiskOrBuilder ()
.google.events.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
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.events.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
Returns
Type
Description
boolean
Whether the newDisk field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(AllocationPolicy.AttachedDisk other)
public AllocationPolicy . AttachedDisk . Builder mergeFrom ( AllocationPolicy . AttachedDisk other )
public AllocationPolicy . AttachedDisk . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public AllocationPolicy . AttachedDisk . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeNewDisk(AllocationPolicy.Disk value)
public AllocationPolicy . AttachedDisk . Builder mergeNewDisk ( AllocationPolicy . Disk value )
.google.events.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy . AttachedDisk . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
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.
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.
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.
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.
setField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy . AttachedDisk . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setNewDisk(AllocationPolicy.Disk value)
public AllocationPolicy . AttachedDisk . Builder setNewDisk ( AllocationPolicy . Disk value )
.google.events.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
setNewDisk(AllocationPolicy.Disk.Builder builderForValue)
public AllocationPolicy . AttachedDisk . Builder setNewDisk ( AllocationPolicy . Disk . Builder builderForValue )
.google.events.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AllocationPolicy . AttachedDisk . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy . AttachedDisk . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]