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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AllocationPolicy.AttachedDiskbuild()AllocationPolicy.AttachedDiskbuildPartial()AllocationPolicy.AttachedDisk.Builderclear()AllocationPolicy.AttachedDisk.BuilderclearAttached()AllocationPolicy.AttachedDisk.BuilderclearDeviceName()Device name that the guest operating system will see.AllocationPolicy.AttachedDisk.BuilderclearExistingDisk()Name of an existing PD.AllocationPolicy.AttachedDisk.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AllocationPolicy.AttachedDisk.BuilderclearNewDisk().google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;AllocationPolicy.AttachedDisk.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AllocationPolicy.AttachedDisk.Builderclone()AllocationPolicy.AttachedDisk.AttachedCasegetAttachedCase()AllocationPolicy.AttachedDiskgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDeviceName()Device name that the guest operating system will see.com.google.protobuf.ByteStringgetDeviceNameBytes()Device name that the guest operating system will see.StringgetExistingDisk()Name of an existing PD.com.google.protobuf.ByteStringgetExistingDiskBytes()Name of an existing PD.AllocationPolicy.DiskgetNewDisk().google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;AllocationPolicy.Disk.BuildergetNewDiskBuilder().google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;AllocationPolicy.DiskOrBuildergetNewDiskOrBuilder().google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;booleanhasExistingDisk()Name of an existing PD.booleanhasNewDisk().google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AllocationPolicy.AttachedDisk.BuildermergeFrom(AllocationPolicy.AttachedDisk other)AllocationPolicy.AttachedDisk.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AllocationPolicy.AttachedDisk.BuildermergeFrom(com.google.protobuf.Message other)AllocationPolicy.AttachedDisk.BuildermergeNewDisk(AllocationPolicy.Disk value).google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;AllocationPolicy.AttachedDisk.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AllocationPolicy.AttachedDisk.BuildersetDeviceName(String value)Device name that the guest operating system will see.AllocationPolicy.AttachedDisk.BuildersetDeviceNameBytes(com.google.protobuf.ByteString value)Device name that the guest operating system will see.AllocationPolicy.AttachedDisk.BuildersetExistingDisk(String value)Name of an existing PD.AllocationPolicy.AttachedDisk.BuildersetExistingDiskBytes(com.google.protobuf.ByteString value)Name of an existing PD.AllocationPolicy.AttachedDisk.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AllocationPolicy.AttachedDisk.BuildersetNewDisk(AllocationPolicy.Disk value).google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;AllocationPolicy.AttachedDisk.BuildersetNewDisk(AllocationPolicy.Disk.Builder builderForValue).google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;AllocationPolicy.AttachedDisk.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AllocationPolicy.AttachedDisk.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
clear
public AllocationPolicy.AttachedDisk.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
getDefaultInstanceForType
public AllocationPolicy.AttachedDisk getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocationPolicy.AttachedDisk build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocationPolicy.AttachedDisk buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocationPolicy.AttachedDisk.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
setField
public AllocationPolicy.AttachedDisk.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
clearField
public AllocationPolicy.AttachedDisk.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
clearOneof
public AllocationPolicy.AttachedDisk.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
addRepeatedField
public AllocationPolicy.AttachedDisk.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
mergeFrom
public AllocationPolicy.AttachedDisk.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.AttachedDisk.Builder>
-
mergeFrom
public AllocationPolicy.AttachedDisk.Builder mergeFrom(AllocationPolicy.AttachedDisk other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.AttachedDisk.Builder>- Throws:
IOException
-
getAttachedCase
public AllocationPolicy.AttachedDisk.AttachedCase getAttachedCase()
- Specified by:
getAttachedCasein interfaceAllocationPolicy.AttachedDiskOrBuilder
-
clearAttached
public AllocationPolicy.AttachedDisk.Builder clearAttached()
-
hasNewDisk
public boolean hasNewDisk()
.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;- Specified by:
hasNewDiskin 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:
getNewDiskin 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:
getNewDiskOrBuilderin interfaceAllocationPolicy.AttachedDiskOrBuilder
-
hasExistingDisk
public boolean hasExistingDisk()
Name of an existing PD.
string existing_disk = 2;- Specified by:
hasExistingDiskin interfaceAllocationPolicy.AttachedDiskOrBuilder- Returns:
- Whether the existingDisk field is set.
-
getExistingDisk
public String getExistingDisk()
Name of an existing PD.
string existing_disk = 2;- Specified by:
getExistingDiskin interfaceAllocationPolicy.AttachedDiskOrBuilder- Returns:
- The existingDisk.
-
getExistingDiskBytes
public com.google.protobuf.ByteString getExistingDiskBytes()
Name of an existing PD.
string existing_disk = 2;- Specified by:
getExistingDiskBytesin 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:
getDeviceNamein 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:
getDeviceNameBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
mergeUnknownFields
public final AllocationPolicy.AttachedDisk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.AttachedDisk.Builder>
-
-