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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder> implements AllocationPolicy.InstancePolicyOrBuilder
InstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.
Protobuf typegoogle.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AllocationPolicy.InstancePolicy.BuilderaddAccelerators(int index, AllocationPolicy.Accelerator value)The accelerators attached to each VM instance.AllocationPolicy.InstancePolicy.BuilderaddAccelerators(int index, AllocationPolicy.Accelerator.Builder builderForValue)The accelerators attached to each VM instance.AllocationPolicy.InstancePolicy.BuilderaddAccelerators(AllocationPolicy.Accelerator value)The accelerators attached to each VM instance.AllocationPolicy.InstancePolicy.BuilderaddAccelerators(AllocationPolicy.Accelerator.Builder builderForValue)The accelerators attached to each VM instance.AllocationPolicy.Accelerator.BuilderaddAcceleratorsBuilder()The accelerators attached to each VM instance.AllocationPolicy.Accelerator.BuilderaddAcceleratorsBuilder(int index)The accelerators attached to each VM instance.AllocationPolicy.InstancePolicy.BuilderaddAllAccelerators(Iterable<? extends AllocationPolicy.Accelerator> values)The accelerators attached to each VM instance.AllocationPolicy.InstancePolicy.BuilderaddAllAllowedMachineTypes(Iterable<String> values)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.AllocationPolicy.InstancePolicy.BuilderaddAllDisks(Iterable<? extends AllocationPolicy.AttachedDisk> values)Non-boot disks to be attached for each VM created by this InstancePolicy.AllocationPolicy.InstancePolicy.BuilderaddAllowedMachineTypes(String value)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.AllocationPolicy.InstancePolicy.BuilderaddAllowedMachineTypesBytes(com.google.protobuf.ByteString value)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.AllocationPolicy.InstancePolicy.BuilderaddDisks(int index, AllocationPolicy.AttachedDisk value)Non-boot disks to be attached for each VM created by this InstancePolicy.AllocationPolicy.InstancePolicy.BuilderaddDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue)Non-boot disks to be attached for each VM created by this InstancePolicy.AllocationPolicy.InstancePolicy.BuilderaddDisks(AllocationPolicy.AttachedDisk value)Non-boot disks to be attached for each VM created by this InstancePolicy.AllocationPolicy.InstancePolicy.BuilderaddDisks(AllocationPolicy.AttachedDisk.Builder builderForValue)Non-boot disks to be attached for each VM created by this InstancePolicy.AllocationPolicy.AttachedDisk.BuilderaddDisksBuilder()Non-boot disks to be attached for each VM created by this InstancePolicy.AllocationPolicy.AttachedDisk.BuilderaddDisksBuilder(int index)Non-boot disks to be attached for each VM created by this InstancePolicy.AllocationPolicy.InstancePolicy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AllocationPolicy.InstancePolicybuild()AllocationPolicy.InstancePolicybuildPartial()AllocationPolicy.InstancePolicy.Builderclear()AllocationPolicy.InstancePolicy.BuilderclearAccelerators()The accelerators attached to each VM instance.AllocationPolicy.InstancePolicy.BuilderclearAllowedMachineTypes()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.AllocationPolicy.InstancePolicy.BuilderclearBootDisk()Boot disk to be created and attached to each VM by this InstancePolicy.AllocationPolicy.InstancePolicy.BuilderclearDisks()Non-boot disks to be attached for each VM created by this InstancePolicy.AllocationPolicy.InstancePolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AllocationPolicy.InstancePolicy.BuilderclearMachineType()The Compute Engine machine type.AllocationPolicy.InstancePolicy.BuilderclearMinCpuPlatform()The minimum CPU platform.AllocationPolicy.InstancePolicy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AllocationPolicy.InstancePolicy.BuilderclearProvisioningModel()The provisioning model.AllocationPolicy.InstancePolicy.BuilderclearReservation()If specified, VMs will consume only the specified reservation.AllocationPolicy.InstancePolicy.Builderclone()AllocationPolicy.AcceleratorgetAccelerators(int index)The accelerators attached to each VM instance.AllocationPolicy.Accelerator.BuildergetAcceleratorsBuilder(int index)The accelerators attached to each VM instance.List<AllocationPolicy.Accelerator.Builder>getAcceleratorsBuilderList()The accelerators attached to each VM instance.intgetAcceleratorsCount()The accelerators attached to each VM instance.List<AllocationPolicy.Accelerator>getAcceleratorsList()The accelerators attached to each VM instance.AllocationPolicy.AcceleratorOrBuildergetAcceleratorsOrBuilder(int index)The accelerators attached to each VM instance.List<? extends AllocationPolicy.AcceleratorOrBuilder>getAcceleratorsOrBuilderList()The accelerators attached to each VM instance.StringgetAllowedMachineTypes(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.intgetAllowedMachineTypesCount()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.com.google.protobuf.ProtocolStringListgetAllowedMachineTypesList()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.AllocationPolicy.DiskgetBootDisk()Boot disk to be created and attached to each VM by this InstancePolicy.AllocationPolicy.Disk.BuildergetBootDiskBuilder()Boot disk to be created and attached to each VM by this InstancePolicy.AllocationPolicy.DiskOrBuildergetBootDiskOrBuilder()Boot disk to be created and attached to each VM by this InstancePolicy.AllocationPolicy.InstancePolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()AllocationPolicy.AttachedDiskgetDisks(int index)Non-boot disks to be attached for each VM created by this InstancePolicy.AllocationPolicy.AttachedDisk.BuildergetDisksBuilder(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.intgetDisksCount()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.AttachedDiskOrBuildergetDisksOrBuilder(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.StringgetMachineType()The Compute Engine machine type.com.google.protobuf.ByteStringgetMachineTypeBytes()The Compute Engine machine type.StringgetMinCpuPlatform()The minimum CPU platform.com.google.protobuf.ByteStringgetMinCpuPlatformBytes()The minimum CPU platform.AllocationPolicy.ProvisioningModelgetProvisioningModel()The provisioning model.intgetProvisioningModelValue()The provisioning model.StringgetReservation()If specified, VMs will consume only the specified reservation.com.google.protobuf.ByteStringgetReservationBytes()If specified, VMs will consume only the specified reservation.booleanhasBootDisk()Boot disk to be created and attached to each VM by this InstancePolicy.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AllocationPolicy.InstancePolicy.BuildermergeBootDisk(AllocationPolicy.Disk value)Boot disk to be created and attached to each VM by this InstancePolicy.AllocationPolicy.InstancePolicy.BuildermergeFrom(AllocationPolicy.InstancePolicy other)AllocationPolicy.InstancePolicy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AllocationPolicy.InstancePolicy.BuildermergeFrom(com.google.protobuf.Message other)AllocationPolicy.InstancePolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AllocationPolicy.InstancePolicy.BuilderremoveAccelerators(int index)The accelerators attached to each VM instance.AllocationPolicy.InstancePolicy.BuilderremoveDisks(int index)Non-boot disks to be attached for each VM created by this InstancePolicy.AllocationPolicy.InstancePolicy.BuildersetAccelerators(int index, AllocationPolicy.Accelerator value)The accelerators attached to each VM instance.AllocationPolicy.InstancePolicy.BuildersetAccelerators(int index, AllocationPolicy.Accelerator.Builder builderForValue)The accelerators attached to each VM instance.AllocationPolicy.InstancePolicy.BuildersetAllowedMachineTypes(int index, String value)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.AllocationPolicy.InstancePolicy.BuildersetBootDisk(AllocationPolicy.Disk value)Boot disk to be created and attached to each VM by this InstancePolicy.AllocationPolicy.InstancePolicy.BuildersetBootDisk(AllocationPolicy.Disk.Builder builderForValue)Boot disk to be created and attached to each VM by this InstancePolicy.AllocationPolicy.InstancePolicy.BuildersetDisks(int index, AllocationPolicy.AttachedDisk value)Non-boot disks to be attached for each VM created by this InstancePolicy.AllocationPolicy.InstancePolicy.BuildersetDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue)Non-boot disks to be attached for each VM created by this InstancePolicy.AllocationPolicy.InstancePolicy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AllocationPolicy.InstancePolicy.BuildersetMachineType(String value)The Compute Engine machine type.AllocationPolicy.InstancePolicy.BuildersetMachineTypeBytes(com.google.protobuf.ByteString value)The Compute Engine machine type.AllocationPolicy.InstancePolicy.BuildersetMinCpuPlatform(String value)The minimum CPU platform.AllocationPolicy.InstancePolicy.BuildersetMinCpuPlatformBytes(com.google.protobuf.ByteString value)The minimum CPU platform.AllocationPolicy.InstancePolicy.BuildersetProvisioningModel(AllocationPolicy.ProvisioningModel value)The provisioning model.AllocationPolicy.InstancePolicy.BuildersetProvisioningModelValue(int value)The provisioning model.AllocationPolicy.InstancePolicy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AllocationPolicy.InstancePolicy.BuildersetReservation(String value)If specified, VMs will consume only the specified reservation.AllocationPolicy.InstancePolicy.BuildersetReservationBytes(com.google.protobuf.ByteString value)If specified, VMs will consume only the specified reservation.AllocationPolicy.InstancePolicy.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.InstancePolicy.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>
-
getDefaultInstanceForType
public AllocationPolicy.InstancePolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocationPolicy.InstancePolicy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocationPolicy.InstancePolicy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocationPolicy.InstancePolicy.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.InstancePolicy.Builder>
-
setField
public AllocationPolicy.InstancePolicy.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.InstancePolicy.Builder>
-
clearField
public AllocationPolicy.InstancePolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>
-
clearOneof
public AllocationPolicy.InstancePolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>
-
setRepeatedField
public AllocationPolicy.InstancePolicy.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.InstancePolicy.Builder>
-
addRepeatedField
public AllocationPolicy.InstancePolicy.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.InstancePolicy.Builder>
-
mergeFrom
public AllocationPolicy.InstancePolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.InstancePolicy.Builder>
-
mergeFrom
public AllocationPolicy.InstancePolicy.Builder mergeFrom(AllocationPolicy.InstancePolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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 public com.google.protobuf.ProtocolStringList getAllowedMachineTypesList()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=417Deprecated: 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 public int getAllowedMachineTypesCount()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=417Deprecated: 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 public String getAllowedMachineTypes(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=417Deprecated: 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 public com.google.protobuf.ByteString getAllowedMachineTypesBytes(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=417Deprecated: 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=417Deprecated: 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 public AllocationPolicy.InstancePolicy.Builder addAllowedMachineTypes(String value)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=417Deprecated: 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=417Deprecated: 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 public AllocationPolicy.InstancePolicy.Builder clearAllowedMachineTypes()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=417Deprecated: 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=417Deprecated: 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
public String 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
public AllocationPolicy.InstancePolicy.Builder setMachineType(String value)
The Compute Engine machine type.
string machine_type = 2;- Parameters:
value- The machineType to set.- Returns:
- This builder for chaining.
-
clearMachineType
public AllocationPolicy.InstancePolicy.Builder 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
public String 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
public 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;- Parameters:
value- The minCpuPlatform to set.- Returns:
- This builder for chaining.
-
clearMinCpuPlatform
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;- 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
public AllocationPolicy.InstancePolicy.Builder setProvisioningModelValue(int value)
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
public AllocationPolicy.ProvisioningModel 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
public AllocationPolicy.InstancePolicy.Builder clearProvisioningModel()
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;- Returns:
- This builder for chaining.
-
getAcceleratorsList
public List<AllocationPolicy.Accelerator> 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
public AllocationPolicy.Accelerator getAccelerators(int index)
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
public AllocationPolicy.InstancePolicy.Builder addAccelerators(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(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
public AllocationPolicy.InstancePolicy.Builder clearAccelerators()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
-
removeAccelerators
public AllocationPolicy.InstancePolicy.Builder removeAccelerators(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
-
getAcceleratorsBuilder
public AllocationPolicy.Accelerator.Builder getAcceleratorsBuilder(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
-
getAcceleratorsOrBuilder
public AllocationPolicy.AcceleratorOrBuilder getAcceleratorsOrBuilder(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsOrBuilderin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getAcceleratorsOrBuilderList
public List<? extends AllocationPolicy.AcceleratorOrBuilder> getAcceleratorsOrBuilderList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;- Specified by:
getAcceleratorsOrBuilderListin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
addAcceleratorsBuilder
public AllocationPolicy.Accelerator.Builder addAcceleratorsBuilder()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
-
addAcceleratorsBuilder
public AllocationPolicy.Accelerator.Builder addAcceleratorsBuilder(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
-
getAcceleratorsBuilderList
public List<AllocationPolicy.Accelerator.Builder> 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
public 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.v1alpha.AllocationPolicy.Disk boot_disk = 8;- Specified by:
getBootDiskin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The bootDisk.
-
setBootDisk
public 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.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
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.v1alpha.AllocationPolicy.Disk boot_disk = 8;
-
clearBootDisk
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.v1alpha.AllocationPolicy.Disk boot_disk = 8;
-
getBootDiskBuilder
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.v1alpha.AllocationPolicy.Disk boot_disk = 8;
-
getBootDiskOrBuilder
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.v1alpha.AllocationPolicy.Disk boot_disk = 8;- Specified by:
getBootDiskOrBuilderin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getDisksList
public 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.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
public 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.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
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.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
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.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
-
removeDisks
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.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
-
getDisksBuilder
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.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
-
getDisksOrBuilder
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.v1alpha.AllocationPolicy.AttachedDisk disks = 6;- Specified by:
getDisksOrBuilderin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getDisksOrBuilderList
public 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.v1alpha.AllocationPolicy.AttachedDisk disks = 6;- Specified by:
getDisksOrBuilderListin interfaceAllocationPolicy.InstancePolicyOrBuilder
-
addDisksBuilder
public 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.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
-
addDisksBuilder
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.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
-
getDisksBuilderList
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.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
-
getReservation
public String getReservation()
If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation.
string reservation = 7;- Specified by:
getReservationin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The reservation.
-
getReservationBytes
public com.google.protobuf.ByteString getReservationBytes()
If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation.
string reservation = 7;- Specified by:
getReservationBytesin interfaceAllocationPolicy.InstancePolicyOrBuilder- Returns:
- The bytes for reservation.
-
setReservation
public AllocationPolicy.InstancePolicy.Builder setReservation(String value)
If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation.
string reservation = 7;- Parameters:
value- The reservation to set.- Returns:
- This builder for chaining.
-
clearReservation
public AllocationPolicy.InstancePolicy.Builder clearReservation()
If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation.
string reservation = 7;- Returns:
- This builder for chaining.
-
setReservationBytes
public AllocationPolicy.InstancePolicy.Builder setReservationBytes(com.google.protobuf.ByteString value)
If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation.
string reservation = 7;- Parameters:
value- The bytes for reservation to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AllocationPolicy.InstancePolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>
-
mergeUnknownFields
public final AllocationPolicy.InstancePolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>
-
-