Package com.google.cloud.batch.v1alpha
Class AllocationPolicy.InstancePolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.InstancePolicy.Builder>
com.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.Builder
- All Implemented Interfaces:
AllocationPolicy.InstancePolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AllocationPolicy.InstancePolicy
public static final class AllocationPolicy.InstancePolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.InstancePolicy.Builder>
implements AllocationPolicy.InstancePolicyOrBuilder
InstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.Protobuf type
google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAccelerators(int index, AllocationPolicy.Accelerator value) The accelerators attached to each VM instance.addAccelerators(int index, AllocationPolicy.Accelerator.Builder builderForValue) The accelerators attached to each VM instance.The accelerators attached to each VM instance.addAccelerators(AllocationPolicy.Accelerator.Builder builderForValue) The accelerators attached to each VM instance.The accelerators attached to each VM instance.addAcceleratorsBuilder(int index) The accelerators attached to each VM instance.addAllAccelerators(Iterable<? extends AllocationPolicy.Accelerator> values) The accelerators attached to each VM instance.addAllAllowedMachineTypes(Iterable<String> values) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.addAllDisks(Iterable<? extends AllocationPolicy.AttachedDisk> values) Non-boot disks to be attached for each VM created by this InstancePolicy.addAllowedMachineTypes(String value) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.addAllowedMachineTypesBytes(com.google.protobuf.ByteString value) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.addDisks(int index, AllocationPolicy.AttachedDisk value) Non-boot disks to be attached for each VM created by this InstancePolicy.addDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue) Non-boot disks to be attached for each VM created by this InstancePolicy.Non-boot disks to be attached for each VM created by this InstancePolicy.addDisks(AllocationPolicy.AttachedDisk.Builder builderForValue) Non-boot disks to be attached for each VM created by this InstancePolicy.Non-boot disks to be attached for each VM created by this InstancePolicy.addDisksBuilder(int index) Non-boot disks to be attached for each VM created by this InstancePolicy.build()clear()The accelerators attached to each VM instance.Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.Boot disk to be created and attached to each VM by this InstancePolicy.Non-boot disks to be attached for each VM created by this InstancePolicy.The Compute Engine machine type.The minimum CPU platform.The provisioning model.Optional.getAccelerators(int index) The accelerators attached to each VM instance.getAcceleratorsBuilder(int index) The accelerators attached to each VM instance.The accelerators attached to each VM instance.intThe accelerators attached to each VM instance.The accelerators attached to each VM instance.getAcceleratorsOrBuilder(int index) The accelerators attached to each VM instance.List<? extends AllocationPolicy.AcceleratorOrBuilder>The accelerators attached to each VM instance.getAllowedMachineTypes(int index) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.com.google.protobuf.ByteStringgetAllowedMachineTypesBytes(int index) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.intDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.com.google.protobuf.ProtocolStringListDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.Boot disk to be created and attached to each VM by this InstancePolicy.Boot disk to be created and attached to each VM by this InstancePolicy.Boot disk to be created and attached to each VM by this InstancePolicy.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDisks(int index) Non-boot disks to be attached for each VM created by this InstancePolicy.getDisksBuilder(int index) Non-boot disks to be attached for each VM created by this InstancePolicy.Non-boot disks to be attached for each VM created by this InstancePolicy.intNon-boot disks to be attached for each VM created by this InstancePolicy.Non-boot disks to be attached for each VM created by this InstancePolicy.getDisksOrBuilder(int index) Non-boot disks to be attached for each VM created by this InstancePolicy.List<? extends AllocationPolicy.AttachedDiskOrBuilder>Non-boot disks to be attached for each VM created by this InstancePolicy.The Compute Engine machine type.com.google.protobuf.ByteStringThe Compute Engine machine type.The minimum CPU platform.com.google.protobuf.ByteStringThe minimum CPU platform.The provisioning model.intThe provisioning model.Optional.com.google.protobuf.ByteStringOptional.booleanBoot disk to be created and attached to each VM by this InstancePolicy.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanBoot disk to be created and attached to each VM by this InstancePolicy.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeAccelerators(int index) The accelerators attached to each VM instance.removeDisks(int index) Non-boot disks to be attached for each VM created by this InstancePolicy.setAccelerators(int index, AllocationPolicy.Accelerator value) The accelerators attached to each VM instance.setAccelerators(int index, AllocationPolicy.Accelerator.Builder builderForValue) The accelerators attached to each VM instance.setAllowedMachineTypes(int index, String value) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.setBootDisk(AllocationPolicy.Disk value) Boot disk to be created and attached to each VM by this InstancePolicy.setBootDisk(AllocationPolicy.Disk.Builder builderForValue) Boot disk to be created and attached to each VM by this InstancePolicy.setDisks(int index, AllocationPolicy.AttachedDisk value) Non-boot disks to be attached for each VM created by this InstancePolicy.setDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue) Non-boot disks to be attached for each VM created by this InstancePolicy.setMachineType(String value) The Compute Engine machine type.setMachineTypeBytes(com.google.protobuf.ByteString value) The Compute Engine machine type.setMinCpuPlatform(String value) The minimum CPU platform.setMinCpuPlatformBytes(com.google.protobuf.ByteString value) The minimum CPU platform.The provisioning model.setProvisioningModelValue(int value) The provisioning model.setReservation(String value) Optional.setReservationBytes(com.google.protobuf.ByteString value) Optional.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.InstancePolicy.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.InstancePolicy.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.InstancePolicy.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.InstancePolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.InstancePolicy.Builder>
-
mergeFrom
public AllocationPolicy.InstancePolicy.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.InstancePolicy.Builder>- Throws:
IOException
-
getAllowedMachineTypesList
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];- Specified by:
getAllowedMachineTypesListin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- A list containing the allowedMachineTypes.
-
getAllowedMachineTypesCount
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];- Specified by:
getAllowedMachineTypesCountin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The count of allowedMachineTypes.
-
getAllowedMachineTypes
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];- Specified by:
getAllowedMachineTypesin interfaceAllocationPolicy.InstancePolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedMachineTypes at the given index.
-
getAllowedMachineTypesBytes
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];- Specified by:
getAllowedMachineTypesBytesin interfaceAllocationPolicy.InstancePolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowedMachineTypes at the given index.
-
setAllowedMachineTypes
@Deprecated public AllocationPolicy.InstancePolicy.Builder setAllowedMachineTypes(int index, String value) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];- Parameters:
index- The index to set the value at.value- The allowedMachineTypes to set.- Returns:
- This builder for chaining.
-
addAllowedMachineTypes
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];- Parameters:
value- The allowedMachineTypes to add.- Returns:
- This builder for chaining.
-
addAllAllowedMachineTypes
@Deprecated public AllocationPolicy.InstancePolicy.Builder addAllAllowedMachineTypes(Iterable<String> values) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];- Parameters:
values- The allowedMachineTypes to add.- Returns:
- This builder for chaining.
-
clearAllowedMachineTypes
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];- Returns:
- This builder for chaining.
-
addAllowedMachineTypesBytes
@Deprecated public AllocationPolicy.InstancePolicy.Builder addAllowedMachineTypesBytes(com.google.protobuf.ByteString value) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];- Parameters:
value- The bytes of the allowedMachineTypes to add.- Returns:
- This builder for chaining.
-
getMachineType
The Compute Engine machine type.
string machine_type = 2;- Specified by:
getMachineTypein interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.ByteString getMachineTypeBytes()The Compute Engine machine type.
string machine_type = 2;- Specified by:
getMachineTypeBytesin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The bytes for machineType.
-
setMachineType
The Compute Engine machine type.
string machine_type = 2;- Parameters:
value- The machineType to set.- Returns:
- This builder for chaining.
-
clearMachineType
The Compute Engine machine type.
string machine_type = 2;- Returns:
- This builder for chaining.
-
setMachineTypeBytes
public AllocationPolicy.InstancePolicy.Builder setMachineTypeBytes(com.google.protobuf.ByteString value) The Compute Engine machine type.
string machine_type = 2;- Parameters:
value- The bytes for machineType to set.- Returns:
- This builder for chaining.
-
getMinCpuPlatform
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string min_cpu_platform = 3;- Specified by:
getMinCpuPlatformin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The minCpuPlatform.
-
getMinCpuPlatformBytes
public com.google.protobuf.ByteString getMinCpuPlatformBytes()The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string min_cpu_platform = 3;- Specified by:
getMinCpuPlatformBytesin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The bytes for minCpuPlatform.
-
setMinCpuPlatform
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string min_cpu_platform = 3;- Parameters:
value- The minCpuPlatform to set.- Returns:
- This builder for chaining.
-
clearMinCpuPlatform
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string min_cpu_platform = 3;- Returns:
- This builder for chaining.
-
setMinCpuPlatformBytes
public AllocationPolicy.InstancePolicy.Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string min_cpu_platform = 3;- Parameters:
value- The bytes for minCpuPlatform to set.- Returns:
- This builder for chaining.
-
getProvisioningModelValue
public int getProvisioningModelValue()The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;- Specified by:
getProvisioningModelValuein interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The enum numeric value on the wire for provisioningModel.
-
setProvisioningModelValue
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;- Parameters:
value- The enum numeric value on the wire for provisioningModel to set.- Returns:
- This builder for chaining.
-
getProvisioningModel
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;- Specified by:
getProvisioningModelin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The provisioningModel.
-
setProvisioningModel
public AllocationPolicy.InstancePolicy.Builder setProvisioningModel(AllocationPolicy.ProvisioningModel value) The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;- Parameters:
value- The provisioningModel to set.- Returns:
- This builder for chaining.
-
clearProvisioningModel
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;- Returns:
- This builder for chaining.
-
getAcceleratorsList
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsListin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getAcceleratorsCount
public int getAcceleratorsCount()The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsCountin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getAccelerators
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
setAccelerators
public AllocationPolicy.InstancePolicy.Builder setAccelerators(int index, AllocationPolicy.Accelerator value) The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; -
setAccelerators
public AllocationPolicy.InstancePolicy.Builder setAccelerators(int index, AllocationPolicy.Accelerator.Builder builderForValue) The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; -
addAccelerators
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; -
addAccelerators
public AllocationPolicy.InstancePolicy.Builder addAccelerators(int index, AllocationPolicy.Accelerator value) The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; -
addAccelerators
public AllocationPolicy.InstancePolicy.Builder addAccelerators(AllocationPolicy.Accelerator.Builder builderForValue) The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; -
addAccelerators
public AllocationPolicy.InstancePolicy.Builder addAccelerators(int index, AllocationPolicy.Accelerator.Builder builderForValue) The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; -
addAllAccelerators
public AllocationPolicy.InstancePolicy.Builder addAllAccelerators(Iterable<? extends AllocationPolicy.Accelerator> values) The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; -
clearAccelerators
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; -
removeAccelerators
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; -
getAcceleratorsBuilder
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; -
getAcceleratorsOrBuilder
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsOrBuilderin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getAcceleratorsOrBuilderList
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsOrBuilderListin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
addAcceleratorsBuilder
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; -
addAcceleratorsBuilder
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; -
getAcceleratorsBuilderList
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; -
hasBootDisk
public boolean hasBootDisk()Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;- Specified by:
hasBootDiskin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- Whether the bootDisk field is set.
-
getBootDisk
Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;- Specified by:
getBootDiskin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The bootDisk.
-
setBootDisk
Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8; -
setBootDisk
public AllocationPolicy.InstancePolicy.Builder setBootDisk(AllocationPolicy.Disk.Builder builderForValue) Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8; -
mergeBootDisk
Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8; -
clearBootDisk
Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8; -
getBootDiskBuilder
Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8; -
getBootDiskOrBuilder
Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;- Specified by:
getBootDiskOrBuilderin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getDisksList
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;- Specified by:
getDisksListin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getDisksCount
public int getDisksCount()Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;- Specified by:
getDisksCountin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getDisks
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;- Specified by:
getDisksin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
setDisks
public AllocationPolicy.InstancePolicy.Builder setDisks(int index, AllocationPolicy.AttachedDisk value) Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; -
setDisks
public AllocationPolicy.InstancePolicy.Builder setDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue) Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; -
addDisks
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; -
addDisks
public AllocationPolicy.InstancePolicy.Builder addDisks(int index, AllocationPolicy.AttachedDisk value) Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; -
addDisks
public AllocationPolicy.InstancePolicy.Builder addDisks(AllocationPolicy.AttachedDisk.Builder builderForValue) Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; -
addDisks
public AllocationPolicy.InstancePolicy.Builder addDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue) Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; -
addAllDisks
public AllocationPolicy.InstancePolicy.Builder addAllDisks(Iterable<? extends AllocationPolicy.AttachedDisk> values) Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; -
clearDisks
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; -
removeDisks
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; -
getDisksBuilder
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; -
getDisksOrBuilder
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;- Specified by:
getDisksOrBuilderin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getDisksOrBuilderList
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;- Specified by:
getDisksOrBuilderListin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
addDisksBuilder
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; -
addDisksBuilder
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; -
getDisksBuilderList
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; -
getReservation
Optional. If not specified (default), VMs will consume any applicable reservation. If "NO_RESERVATION" is specified, VMs will not consume any reservation. Otherwise, if specified, VMs will consume only the specified reservation.
string reservation = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReservationin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The reservation.
-
getReservationBytes
public com.google.protobuf.ByteString getReservationBytes()Optional. If not specified (default), VMs will consume any applicable reservation. If "NO_RESERVATION" is specified, VMs will not consume any reservation. Otherwise, if specified, VMs will consume only the specified reservation.
string reservation = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReservationBytesin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The bytes for reservation.
-
setReservation
Optional. If not specified (default), VMs will consume any applicable reservation. If "NO_RESERVATION" is specified, VMs will not consume any reservation. Otherwise, if specified, VMs will consume only the specified reservation.
string reservation = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The reservation to set.- Returns:
- This builder for chaining.
-
clearReservation
Optional. If not specified (default), VMs will consume any applicable reservation. If "NO_RESERVATION" is specified, VMs will not consume any reservation. Otherwise, if specified, VMs will consume only the specified reservation.
string reservation = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setReservationBytes
public AllocationPolicy.InstancePolicy.Builder setReservationBytes(com.google.protobuf.ByteString value) Optional. If not specified (default), VMs will consume any applicable reservation. If "NO_RESERVATION" is specified, VMs will not consume any reservation. Otherwise, if specified, VMs will consume only the specified reservation.
string reservation = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for reservation to set.- Returns:
- This builder for chaining.
-