Package com.google.cloud.batch.v1alpha
Class AllocationPolicy.AttachedDisk.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.AttachedDisk.Builder>
com.google.cloud.batch.v1alpha.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.GeneratedMessage.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.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Device name that the guest operating system will see.Name of an existing PD..google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDevice name that the guest operating system will see.com.google.protobuf.ByteStringDevice name that the guest operating system will see.Name of an existing PD.com.google.protobuf.ByteStringName of an existing PD..google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;.google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;.google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;booleanName of an existing PD.boolean.google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) .google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;setDeviceName(String value) Device name that the guest operating system will see.setDeviceNameBytes(com.google.protobuf.ByteString value) Device name that the guest operating system will see.setExistingDisk(String value) Name of an existing PD.setExistingDiskBytes(com.google.protobuf.ByteString value) Name of an existing PD.setNewDisk(AllocationPolicy.Disk value) .google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;setNewDisk(AllocationPolicy.Disk.Builder builderForValue) .google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.Builder<AllocationPolicy.AttachedDisk.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.AttachedDisk.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
- Specified by:
getAttachedCasein interfaceAllocationPolicy.AttachedDiskOrBuilder
-
clearAttached
-
hasNewDisk
public boolean hasNewDisk().google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;- Specified by:
hasNewDiskin interfaceAllocationPolicy.AttachedDiskOrBuilder- Returns:
- Whether the newDisk field is set.
-
getNewDisk
.google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1;- Specified by:
getNewDiskin interfaceAllocationPolicy.AttachedDiskOrBuilder- Returns:
- The newDisk.
-
setNewDisk
.google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1; -
setNewDisk
public AllocationPolicy.AttachedDisk.Builder setNewDisk(AllocationPolicy.Disk.Builder builderForValue) .google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1; -
mergeNewDisk
.google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1; -
clearNewDisk
.google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1; -
getNewDiskBuilder
.google.cloud.batch.v1alpha.AllocationPolicy.Disk new_disk = 1; -
getNewDiskOrBuilder
.google.cloud.batch.v1alpha.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
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
Name of an existing PD.
string existing_disk = 2;- Parameters:
value- The existingDisk to set.- Returns:
- This builder for chaining.
-
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
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
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
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.
-