Package com.google.cloud.batch.v1
Class AllocationPolicy.AttachedDisk.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
- com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder
-
- All Implemented Interfaces:
AllocationPolicy.AttachedDiskOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- AllocationPolicy.AttachedDisk
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 typegoogle.cloud.batch.v1.AllocationPolicy.AttachedDisk
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 value)
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
AllocationPolicy.AttachedDisk.Builder
setNewDisk(AllocationPolicy.Disk.Builder builderForValue)
.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)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
clear
public AllocationPolicy.AttachedDisk.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
getDefaultInstanceForType
public AllocationPolicy.AttachedDisk getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocationPolicy.AttachedDisk build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocationPolicy.AttachedDisk buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocationPolicy.AttachedDisk.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
setField
public AllocationPolicy.AttachedDisk.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
clearField
public AllocationPolicy.AttachedDisk.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
clearOneof
public AllocationPolicy.AttachedDisk.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
setRepeatedField
public AllocationPolicy.AttachedDisk.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
addRepeatedField
public AllocationPolicy.AttachedDisk.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
mergeFrom
public AllocationPolicy.AttachedDisk.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.AttachedDisk.Builder>
-
mergeFrom
public AllocationPolicy.AttachedDisk.Builder mergeFrom(AllocationPolicy.AttachedDisk other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
mergeFrom
public AllocationPolicy.AttachedDisk.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.AttachedDisk.Builder>
- Throws:
IOException
-
getAttachedCase
public AllocationPolicy.AttachedDisk.AttachedCase getAttachedCase()
- Specified by:
getAttachedCase
in interfaceAllocationPolicy.AttachedDiskOrBuilder
-
clearAttached
public AllocationPolicy.AttachedDisk.Builder clearAttached()
-
hasNewDisk
public boolean hasNewDisk()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
- Specified by:
hasNewDisk
in interfaceAllocationPolicy.AttachedDiskOrBuilder
- Returns:
- Whether the newDisk field is set.
-
getNewDisk
public AllocationPolicy.Disk getNewDisk()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
- Specified by:
getNewDisk
in interfaceAllocationPolicy.AttachedDiskOrBuilder
- Returns:
- The newDisk.
-
setNewDisk
public AllocationPolicy.AttachedDisk.Builder setNewDisk(AllocationPolicy.Disk value)
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
-
setNewDisk
public AllocationPolicy.AttachedDisk.Builder setNewDisk(AllocationPolicy.Disk.Builder builderForValue)
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
-
mergeNewDisk
public AllocationPolicy.AttachedDisk.Builder mergeNewDisk(AllocationPolicy.Disk value)
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
-
clearNewDisk
public AllocationPolicy.AttachedDisk.Builder clearNewDisk()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
-
getNewDiskBuilder
public AllocationPolicy.Disk.Builder getNewDiskBuilder()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
-
getNewDiskOrBuilder
public AllocationPolicy.DiskOrBuilder getNewDiskOrBuilder()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
- Specified by:
getNewDiskOrBuilder
in interfaceAllocationPolicy.AttachedDiskOrBuilder
-
hasExistingDisk
public boolean hasExistingDisk()
Name of an existing PD.
string existing_disk = 2;
- Specified by:
hasExistingDisk
in interfaceAllocationPolicy.AttachedDiskOrBuilder
- Returns:
- Whether the existingDisk field is set.
-
getExistingDisk
public String getExistingDisk()
Name of an existing PD.
string existing_disk = 2;
- Specified by:
getExistingDisk
in interfaceAllocationPolicy.AttachedDiskOrBuilder
- Returns:
- The existingDisk.
-
getExistingDiskBytes
public com.google.protobuf.ByteString getExistingDiskBytes()
Name of an existing PD.
string existing_disk = 2;
- Specified by:
getExistingDiskBytes
in interfaceAllocationPolicy.AttachedDiskOrBuilder
- Returns:
- The bytes for existingDisk.
-
setExistingDisk
public AllocationPolicy.AttachedDisk.Builder setExistingDisk(String value)
Name of an existing PD.
string existing_disk = 2;
- Parameters:
value
- The existingDisk to set.- Returns:
- This builder for chaining.
-
clearExistingDisk
public AllocationPolicy.AttachedDisk.Builder clearExistingDisk()
Name of an existing PD.
string existing_disk = 2;
- Returns:
- This builder for chaining.
-
setExistingDiskBytes
public AllocationPolicy.AttachedDisk.Builder setExistingDiskBytes(com.google.protobuf.ByteString value)
Name of an existing PD.
string existing_disk = 2;
- Parameters:
value
- The bytes for existingDisk to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getDeviceName
in interfaceAllocationPolicy.AttachedDiskOrBuilder
- Returns:
- The deviceName.
-
getDeviceNameBytes
public 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;
- Specified by:
getDeviceNameBytes
in interfaceAllocationPolicy.AttachedDiskOrBuilder
- Returns:
- The bytes for deviceName.
-
setDeviceName
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;
- Parameters:
value
- The deviceName to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDeviceNameBytes
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;
- Parameters:
value
- The bytes for deviceName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AllocationPolicy.AttachedDisk.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
mergeUnknownFields
public final AllocationPolicy.AttachedDisk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
-