public static final class AllocationPolicy.InstancePolicy.Builder extends com.google.protobuf.GeneratedMessageV3.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.v1.AllocationPolicy.InstancePolicy| Modifier and Type | Method and Description |
|---|---|
AllocationPolicy.InstancePolicy.Builder |
addAccelerators(AllocationPolicy.Accelerator.Builder builderForValue)
The accelerators attached to each VM instance.
|
AllocationPolicy.InstancePolicy.Builder |
addAccelerators(AllocationPolicy.Accelerator value)
The accelerators attached to each VM instance.
|
AllocationPolicy.InstancePolicy.Builder |
addAccelerators(int index,
AllocationPolicy.Accelerator.Builder builderForValue)
The accelerators attached to each VM instance.
|
AllocationPolicy.InstancePolicy.Builder |
addAccelerators(int index,
AllocationPolicy.Accelerator value)
The accelerators attached to each VM instance.
|
AllocationPolicy.Accelerator.Builder |
addAcceleratorsBuilder()
The accelerators attached to each VM instance.
|
AllocationPolicy.Accelerator.Builder |
addAcceleratorsBuilder(int index)
The accelerators attached to each VM instance.
|
AllocationPolicy.InstancePolicy.Builder |
addAllAccelerators(Iterable<? extends AllocationPolicy.Accelerator> values)
The accelerators attached to each VM instance.
|
AllocationPolicy.InstancePolicy.Builder |
addAllDisks(Iterable<? extends AllocationPolicy.AttachedDisk> values)
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
AllocationPolicy.InstancePolicy.Builder |
addDisks(AllocationPolicy.AttachedDisk.Builder builderForValue)
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
AllocationPolicy.InstancePolicy.Builder |
addDisks(AllocationPolicy.AttachedDisk value)
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
AllocationPolicy.InstancePolicy.Builder |
addDisks(int index,
AllocationPolicy.AttachedDisk.Builder builderForValue)
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
AllocationPolicy.InstancePolicy.Builder |
addDisks(int index,
AllocationPolicy.AttachedDisk value)
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
AllocationPolicy.AttachedDisk.Builder |
addDisksBuilder()
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
AllocationPolicy.AttachedDisk.Builder |
addDisksBuilder(int index)
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
AllocationPolicy.InstancePolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AllocationPolicy.InstancePolicy |
build() |
AllocationPolicy.InstancePolicy |
buildPartial() |
AllocationPolicy.InstancePolicy.Builder |
clear() |
AllocationPolicy.InstancePolicy.Builder |
clearAccelerators()
The accelerators attached to each VM instance.
|
AllocationPolicy.InstancePolicy.Builder |
clearBootDisk()
Boot disk to be created and attached to each VM by this InstancePolicy.
|
AllocationPolicy.InstancePolicy.Builder |
clearDisks()
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
AllocationPolicy.InstancePolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AllocationPolicy.InstancePolicy.Builder |
clearMachineType()
The Compute Engine machine type.
|
AllocationPolicy.InstancePolicy.Builder |
clearMinCpuPlatform()
The minimum CPU platform.
|
AllocationPolicy.InstancePolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AllocationPolicy.InstancePolicy.Builder |
clearProvisioningModel()
The provisioning model.
|
AllocationPolicy.InstancePolicy.Builder |
clearReservation()
Optional.
|
AllocationPolicy.InstancePolicy.Builder |
clone() |
AllocationPolicy.Accelerator |
getAccelerators(int index)
The accelerators attached to each VM instance.
|
AllocationPolicy.Accelerator.Builder |
getAcceleratorsBuilder(int index)
The accelerators attached to each VM instance.
|
List<AllocationPolicy.Accelerator.Builder> |
getAcceleratorsBuilderList()
The accelerators attached to each VM instance.
|
int |
getAcceleratorsCount()
The accelerators attached to each VM instance.
|
List<AllocationPolicy.Accelerator> |
getAcceleratorsList()
The accelerators attached to each VM instance.
|
AllocationPolicy.AcceleratorOrBuilder |
getAcceleratorsOrBuilder(int index)
The accelerators attached to each VM instance.
|
List<? extends AllocationPolicy.AcceleratorOrBuilder> |
getAcceleratorsOrBuilderList()
The accelerators attached to each VM instance.
|
AllocationPolicy.Disk |
getBootDisk()
Boot disk to be created and attached to each VM by this InstancePolicy.
|
AllocationPolicy.Disk.Builder |
getBootDiskBuilder()
Boot disk to be created and attached to each VM by this InstancePolicy.
|
AllocationPolicy.DiskOrBuilder |
getBootDiskOrBuilder()
Boot disk to be created and attached to each VM by this InstancePolicy.
|
AllocationPolicy.InstancePolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
AllocationPolicy.AttachedDisk |
getDisks(int index)
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
AllocationPolicy.AttachedDisk.Builder |
getDisksBuilder(int index)
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
List<AllocationPolicy.AttachedDisk.Builder> |
getDisksBuilderList()
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
int |
getDisksCount()
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
List<AllocationPolicy.AttachedDisk> |
getDisksList()
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
AllocationPolicy.AttachedDiskOrBuilder |
getDisksOrBuilder(int index)
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
List<? extends AllocationPolicy.AttachedDiskOrBuilder> |
getDisksOrBuilderList()
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
String |
getMachineType()
The Compute Engine machine type.
|
com.google.protobuf.ByteString |
getMachineTypeBytes()
The Compute Engine machine type.
|
String |
getMinCpuPlatform()
The minimum CPU platform.
|
com.google.protobuf.ByteString |
getMinCpuPlatformBytes()
The minimum CPU platform.
|
AllocationPolicy.ProvisioningModel |
getProvisioningModel()
The provisioning model.
|
int |
getProvisioningModelValue()
The provisioning model.
|
String |
getReservation()
Optional.
|
com.google.protobuf.ByteString |
getReservationBytes()
Optional.
|
boolean |
hasBootDisk()
Boot disk to be created and attached to each VM by this InstancePolicy.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AllocationPolicy.InstancePolicy.Builder |
mergeBootDisk(AllocationPolicy.Disk value)
Boot disk to be created and attached to each VM by this InstancePolicy.
|
AllocationPolicy.InstancePolicy.Builder |
mergeFrom(AllocationPolicy.InstancePolicy other) |
AllocationPolicy.InstancePolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AllocationPolicy.InstancePolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
AllocationPolicy.InstancePolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AllocationPolicy.InstancePolicy.Builder |
removeAccelerators(int index)
The accelerators attached to each VM instance.
|
AllocationPolicy.InstancePolicy.Builder |
removeDisks(int index)
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
AllocationPolicy.InstancePolicy.Builder |
setAccelerators(int index,
AllocationPolicy.Accelerator.Builder builderForValue)
The accelerators attached to each VM instance.
|
AllocationPolicy.InstancePolicy.Builder |
setAccelerators(int index,
AllocationPolicy.Accelerator value)
The accelerators attached to each VM instance.
|
AllocationPolicy.InstancePolicy.Builder |
setBootDisk(AllocationPolicy.Disk.Builder builderForValue)
Boot disk to be created and attached to each VM by this InstancePolicy.
|
AllocationPolicy.InstancePolicy.Builder |
setBootDisk(AllocationPolicy.Disk value)
Boot disk to be created and attached to each VM by this InstancePolicy.
|
AllocationPolicy.InstancePolicy.Builder |
setDisks(int index,
AllocationPolicy.AttachedDisk.Builder builderForValue)
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
AllocationPolicy.InstancePolicy.Builder |
setDisks(int index,
AllocationPolicy.AttachedDisk value)
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
AllocationPolicy.InstancePolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AllocationPolicy.InstancePolicy.Builder |
setMachineType(String value)
The Compute Engine machine type.
|
AllocationPolicy.InstancePolicy.Builder |
setMachineTypeBytes(com.google.protobuf.ByteString value)
The Compute Engine machine type.
|
AllocationPolicy.InstancePolicy.Builder |
setMinCpuPlatform(String value)
The minimum CPU platform.
|
AllocationPolicy.InstancePolicy.Builder |
setMinCpuPlatformBytes(com.google.protobuf.ByteString value)
The minimum CPU platform.
|
AllocationPolicy.InstancePolicy.Builder |
setProvisioningModel(AllocationPolicy.ProvisioningModel value)
The provisioning model.
|
AllocationPolicy.InstancePolicy.Builder |
setProvisioningModelValue(int value)
The provisioning model.
|
AllocationPolicy.InstancePolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AllocationPolicy.InstancePolicy.Builder |
setReservation(String value)
Optional.
|
AllocationPolicy.InstancePolicy.Builder |
setReservationBytes(com.google.protobuf.ByteString value)
Optional.
|
AllocationPolicy.InstancePolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>public AllocationPolicy.InstancePolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>public AllocationPolicy.InstancePolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AllocationPolicy.InstancePolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AllocationPolicy.InstancePolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AllocationPolicy.InstancePolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>public AllocationPolicy.InstancePolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>public AllocationPolicy.InstancePolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>public AllocationPolicy.InstancePolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>public AllocationPolicy.InstancePolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>public AllocationPolicy.InstancePolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>public AllocationPolicy.InstancePolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocationPolicy.InstancePolicy.Builder>public AllocationPolicy.InstancePolicy.Builder mergeFrom(AllocationPolicy.InstancePolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>public AllocationPolicy.InstancePolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocationPolicy.InstancePolicy.Builder>IOExceptionpublic String getMachineType()
The Compute Engine machine type.
string machine_type = 2;getMachineType in interface AllocationPolicy.InstancePolicyOrBuilderpublic com.google.protobuf.ByteString getMachineTypeBytes()
The Compute Engine machine type.
string machine_type = 2;getMachineTypeBytes in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.InstancePolicy.Builder setMachineType(String value)
The Compute Engine machine type.
string machine_type = 2;value - The machineType to set.public AllocationPolicy.InstancePolicy.Builder clearMachineType()
The Compute Engine machine type.
string machine_type = 2;public AllocationPolicy.InstancePolicy.Builder setMachineTypeBytes(com.google.protobuf.ByteString value)
The Compute Engine machine type.
string machine_type = 2;value - The bytes for machineType to set.public String getMinCpuPlatform()
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string min_cpu_platform = 3;getMinCpuPlatform in interface AllocationPolicy.InstancePolicyOrBuilderpublic 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;getMinCpuPlatformBytes in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.InstancePolicy.Builder setMinCpuPlatform(String value)
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string min_cpu_platform = 3;value - The minCpuPlatform to set.public AllocationPolicy.InstancePolicy.Builder clearMinCpuPlatform()
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string min_cpu_platform = 3;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;value - The bytes for minCpuPlatform to set.public int getProvisioningModelValue()
The provisioning model.
.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;
getProvisioningModelValue in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.InstancePolicy.Builder setProvisioningModelValue(int value)
The provisioning model.
.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;
value - The enum numeric value on the wire for provisioningModel to set.public AllocationPolicy.ProvisioningModel getProvisioningModel()
The provisioning model.
.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;
getProvisioningModel in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.InstancePolicy.Builder setProvisioningModel(AllocationPolicy.ProvisioningModel value)
The provisioning model.
.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;
value - The provisioningModel to set.public AllocationPolicy.InstancePolicy.Builder clearProvisioningModel()
The provisioning model.
.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;
public List<AllocationPolicy.Accelerator> getAcceleratorsList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;getAcceleratorsList in interface AllocationPolicy.InstancePolicyOrBuilderpublic int getAcceleratorsCount()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;getAcceleratorsCount in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.Accelerator getAccelerators(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;getAccelerators in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.InstancePolicy.Builder setAccelerators(int index, AllocationPolicy.Accelerator value)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;public AllocationPolicy.InstancePolicy.Builder setAccelerators(int index, AllocationPolicy.Accelerator.Builder builderForValue)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;public AllocationPolicy.InstancePolicy.Builder addAccelerators(AllocationPolicy.Accelerator value)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;public AllocationPolicy.InstancePolicy.Builder addAccelerators(int index, AllocationPolicy.Accelerator value)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;public AllocationPolicy.InstancePolicy.Builder addAccelerators(AllocationPolicy.Accelerator.Builder builderForValue)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;public AllocationPolicy.InstancePolicy.Builder addAccelerators(int index, AllocationPolicy.Accelerator.Builder builderForValue)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;public AllocationPolicy.InstancePolicy.Builder addAllAccelerators(Iterable<? extends AllocationPolicy.Accelerator> values)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;public AllocationPolicy.InstancePolicy.Builder clearAccelerators()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;public AllocationPolicy.InstancePolicy.Builder removeAccelerators(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;public AllocationPolicy.Accelerator.Builder getAcceleratorsBuilder(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;public AllocationPolicy.AcceleratorOrBuilder getAcceleratorsOrBuilder(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;getAcceleratorsOrBuilder in interface AllocationPolicy.InstancePolicyOrBuilderpublic List<? extends AllocationPolicy.AcceleratorOrBuilder> getAcceleratorsOrBuilderList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;getAcceleratorsOrBuilderList in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.Accelerator.Builder addAcceleratorsBuilder()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;public AllocationPolicy.Accelerator.Builder addAcceleratorsBuilder(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;public List<AllocationPolicy.Accelerator.Builder> getAcceleratorsBuilderList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;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.v1.AllocationPolicy.Disk boot_disk = 8;hasBootDisk in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.Disk 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.v1.AllocationPolicy.Disk boot_disk = 8;getBootDisk in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.InstancePolicy.Builder setBootDisk(AllocationPolicy.Disk value)
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.v1.AllocationPolicy.Disk boot_disk = 8;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.v1.AllocationPolicy.Disk boot_disk = 8;public AllocationPolicy.InstancePolicy.Builder mergeBootDisk(AllocationPolicy.Disk value)
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.v1.AllocationPolicy.Disk boot_disk = 8;public AllocationPolicy.InstancePolicy.Builder 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.v1.AllocationPolicy.Disk boot_disk = 8;public AllocationPolicy.Disk.Builder 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.v1.AllocationPolicy.Disk boot_disk = 8;public AllocationPolicy.DiskOrBuilder 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.v1.AllocationPolicy.Disk boot_disk = 8;getBootDiskOrBuilder in interface AllocationPolicy.InstancePolicyOrBuilderpublic List<AllocationPolicy.AttachedDisk> 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.v1.AllocationPolicy.AttachedDisk disks = 6;getDisksList in interface AllocationPolicy.InstancePolicyOrBuilderpublic 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.v1.AllocationPolicy.AttachedDisk disks = 6;getDisksCount in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.AttachedDisk getDisks(int index)
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.v1.AllocationPolicy.AttachedDisk disks = 6;getDisks in interface AllocationPolicy.InstancePolicyOrBuilderpublic 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.v1.AllocationPolicy.AttachedDisk disks = 6;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.v1.AllocationPolicy.AttachedDisk disks = 6;public AllocationPolicy.InstancePolicy.Builder addDisks(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.v1.AllocationPolicy.AttachedDisk disks = 6;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.v1.AllocationPolicy.AttachedDisk disks = 6;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.v1.AllocationPolicy.AttachedDisk disks = 6;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.v1.AllocationPolicy.AttachedDisk disks = 6;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.v1.AllocationPolicy.AttachedDisk disks = 6;public AllocationPolicy.InstancePolicy.Builder 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.v1.AllocationPolicy.AttachedDisk disks = 6;public AllocationPolicy.InstancePolicy.Builder removeDisks(int index)
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.v1.AllocationPolicy.AttachedDisk disks = 6;public AllocationPolicy.AttachedDisk.Builder getDisksBuilder(int index)
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.v1.AllocationPolicy.AttachedDisk disks = 6;public AllocationPolicy.AttachedDiskOrBuilder getDisksOrBuilder(int index)
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.v1.AllocationPolicy.AttachedDisk disks = 6;getDisksOrBuilder in interface AllocationPolicy.InstancePolicyOrBuilderpublic List<? extends AllocationPolicy.AttachedDiskOrBuilder> 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.v1.AllocationPolicy.AttachedDisk disks = 6;getDisksOrBuilderList in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.AttachedDisk.Builder 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.v1.AllocationPolicy.AttachedDisk disks = 6;public AllocationPolicy.AttachedDisk.Builder addDisksBuilder(int index)
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.v1.AllocationPolicy.AttachedDisk disks = 6;public List<AllocationPolicy.AttachedDisk.Builder> 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.v1.AllocationPolicy.AttachedDisk disks = 6;public String 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];getReservation in interface AllocationPolicy.InstancePolicyOrBuilderpublic 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];getReservationBytes in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.InstancePolicy.Builder setReservation(String 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];value - The reservation to set.public AllocationPolicy.InstancePolicy.Builder 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];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];value - The bytes for reservation to set.public final AllocationPolicy.InstancePolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>public final AllocationPolicy.InstancePolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>Copyright © 2025 Google LLC. All rights reserved.