public static final class AllocationPolicy.AttachedDisk.Builder extends GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder> implements AllocationPolicy.AttachedDiskOrBuilder
A new or an existing persistent disk or a local ssd attached to a VM
instance.
Protobuf type google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
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