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.Builder
addAccelerators(int index, 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(AllocationPolicy.Accelerator value)
The accelerators attached to each VM instance.AllocationPolicy.InstancePolicy.Builder
addAccelerators(AllocationPolicy.Accelerator.Builder builderForValue)
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
addAllAllowedMachineTypes(Iterable<String> values)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.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
addAllowedMachineTypes(String value)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.AllocationPolicy.InstancePolicy.Builder
addAllowedMachineTypesBytes(com.google.protobuf.ByteString value)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.AllocationPolicy.InstancePolicy.Builder
addDisks(int index, 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(AllocationPolicy.AttachedDisk value)
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.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
clearAllowedMachineTypes()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.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()
If specified, VMs will consume only the specified reservation.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.String
getAllowedMachineTypes(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.com.google.protobuf.ByteString
getAllowedMachineTypesBytes(int index)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.int
getAllowedMachineTypesCount()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.com.google.protobuf.ProtocolStringList
getAllowedMachineTypesList()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.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()
If specified, VMs will consume only the specified reservation.com.google.protobuf.ByteString
getReservationBytes()
If specified, VMs will consume only the specified reservation.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 value)
The accelerators attached to each VM instance.AllocationPolicy.InstancePolicy.Builder
setAccelerators(int index, AllocationPolicy.Accelerator.Builder builderForValue)
The accelerators attached to each VM instance.AllocationPolicy.InstancePolicy.Builder
setAllowedMachineTypes(int index, String value)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated.AllocationPolicy.InstancePolicy.Builder
setBootDisk(AllocationPolicy.Disk value)
Boot disk to be created and attached to each VM by this InstancePolicy.AllocationPolicy.InstancePolicy.Builder
setBootDisk(AllocationPolicy.Disk.Builder builderForValue)
Boot disk to be created and attached to each VM 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
setDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue)
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)
If specified, VMs will consume only the specified reservation.AllocationPolicy.InstancePolicy.Builder
setReservationBytes(com.google.protobuf.ByteString value)
If specified, VMs will consume only the specified reservation.AllocationPolicy.InstancePolicy.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>
-
clear
public AllocationPolicy.InstancePolicy.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>
-
getDefaultInstanceForType
public AllocationPolicy.InstancePolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocationPolicy.InstancePolicy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocationPolicy.InstancePolicy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocationPolicy.InstancePolicy.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>
-
setField
public AllocationPolicy.InstancePolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>
-
clearField
public AllocationPolicy.InstancePolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>
-
clearOneof
public AllocationPolicy.InstancePolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>
-
addRepeatedField
public AllocationPolicy.InstancePolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>
-
mergeFrom
public AllocationPolicy.InstancePolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.InstancePolicy.Builder>
-
mergeFrom
public AllocationPolicy.InstancePolicy.Builder mergeFrom(AllocationPolicy.InstancePolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getAllowedMachineTypesList
in 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:
getAllowedMachineTypesCount
in 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:
getAllowedMachineTypes
in 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:
getAllowedMachineTypesBytes
in 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:
getMachineType
in interfaceAllocationPolicy.InstancePolicyOrBuilder
- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.ByteString getMachineTypeBytes()
The Compute Engine machine type.
string machine_type = 2;
- Specified by:
getMachineTypeBytes
in 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:
getMinCpuPlatform
in 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:
getMinCpuPlatformBytes
in 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:
getProvisioningModelValue
in 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:
getProvisioningModel
in 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:
getAcceleratorsList
in interfaceAllocationPolicy.InstancePolicyOrBuilder
-
getAcceleratorsCount
public int getAcceleratorsCount()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
- Specified by:
getAcceleratorsCount
in 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:
getAccelerators
in 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:
getAcceleratorsOrBuilder
in 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:
getAcceleratorsOrBuilderList
in 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:
hasBootDisk
in 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:
getBootDisk
in 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:
getBootDiskOrBuilder
in 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:
getDisksList
in 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:
getDisksCount
in 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:
getDisks
in 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:
getDisksOrBuilder
in 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:
getDisksOrBuilderList
in 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:
getReservation
in 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:
getReservationBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>
-
mergeUnknownFields
public final AllocationPolicy.InstancePolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder>
-
-