Send feedback
Class AllocationPolicy.AttachedDisk.Builder (0.2.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.2.2 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 attached to a VM instance.
Protobuf type google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy . AttachedDisk . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public AllocationPolicy . AttachedDisk build ()
Returns
buildPartial()
public AllocationPolicy . AttachedDisk buildPartial ()
Returns
clear()
public AllocationPolicy . AttachedDisk . Builder clear ()
Returns
Overrides
clearAttached()
public AllocationPolicy . AttachedDisk . Builder clearAttached ()
Returns
clearDeviceName()
public AllocationPolicy . AttachedDisk . Builder clearDeviceName ()
Device name that the guest operating system will see.
If not specified, this is default to the disk name.
string device_name = 3;
Returns
clearExistingDisk()
public AllocationPolicy . AttachedDisk . Builder clearExistingDisk ()
Name of an existing PD.
string existing_disk = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public AllocationPolicy . AttachedDisk . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearNewDisk()
public AllocationPolicy . AttachedDisk . Builder clearNewDisk ()
.google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public AllocationPolicy . AttachedDisk . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public AllocationPolicy . AttachedDisk . Builder clone ()
Returns
Overrides
getAttachedCase()
public AllocationPolicy . AttachedDisk . AttachedCase getAttachedCase ()
Returns
getDefaultInstanceForType()
public AllocationPolicy . AttachedDisk getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getDeviceName()
public String getDeviceName ()
Device name that the guest operating system will see.
If not specified, this is default to the disk name.
string device_name = 3;
Returns
Type
Description
String
The deviceName.
getDeviceNameBytes()
public ByteString getDeviceNameBytes ()
Device name that the guest operating system will see.
If not specified, this is default to the disk name.
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.v1alpha.AllocationPolicy.Disk new_disk = 1;
Returns
getNewDiskBuilder()
public AllocationPolicy . Disk . Builder getNewDiskBuilder ()
.google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;
Returns
getNewDiskOrBuilder()
public AllocationPolicy . DiskOrBuilder getNewDiskOrBuilder ()
.google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;
Returns
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.v1alpha.AllocationPolicy.Disk new_disk = 1;
Returns
Type
Description
boolean
Whether the newDisk field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(AllocationPolicy.AttachedDisk other)
public AllocationPolicy . AttachedDisk . Builder mergeFrom ( AllocationPolicy . AttachedDisk other )
Parameter
Returns
public AllocationPolicy . AttachedDisk . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AllocationPolicy . AttachedDisk . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeNewDisk(AllocationPolicy.Disk value)
public AllocationPolicy . AttachedDisk . Builder mergeNewDisk ( AllocationPolicy . Disk value )
.google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy . AttachedDisk . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setDeviceName(String value)
public AllocationPolicy . AttachedDisk . Builder setDeviceName ( String value )
Device name that the guest operating system will see.
If not specified, this is default to the disk name.
string device_name = 3;
Parameter
Name
Description
value
String
The deviceName to set.
Returns
setDeviceNameBytes(ByteString value)
public AllocationPolicy . AttachedDisk . Builder setDeviceNameBytes ( ByteString value )
Device name that the guest operating system will see.
If not specified, this is default to the disk name.
string device_name = 3;
Parameter
Name
Description
value
ByteString
The bytes for deviceName to set.
Returns
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
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
setField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy . AttachedDisk . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setNewDisk(AllocationPolicy.Disk value)
public AllocationPolicy . AttachedDisk . Builder setNewDisk ( AllocationPolicy . Disk value )
.google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;
Parameter
Returns
setNewDisk(AllocationPolicy.Disk.Builder builderForValue)
public AllocationPolicy . AttachedDisk . Builder setNewDisk ( AllocationPolicy . Disk . Builder builderForValue )
.google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AllocationPolicy . AttachedDisk . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy . AttachedDisk . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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-28 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-28 UTC."],[],[]]