- 0.53.0 (latest)
- 0.52.0
- 0.51.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.2
- 0.2.2
- 0.1.1
public static final class AllocationPolicy.InstancePolicy.Builder extends 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.v1alpha.AllocationPolicy.InstancePolicy
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AllocationPolicy.InstancePolicy.BuilderImplements
AllocationPolicy.InstancePolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAccelerators(AllocationPolicy.Accelerator value)
public AllocationPolicy.InstancePolicy.Builder addAccelerators(AllocationPolicy.Accelerator value)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Name | Description |
value |
AllocationPolicy.Accelerator |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
addAccelerators(AllocationPolicy.Accelerator.Builder builderForValue)
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;
Name | Description |
builderForValue |
AllocationPolicy.Accelerator.Builder |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
addAccelerators(int index, AllocationPolicy.Accelerator value)
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;
Name | Description |
index |
int |
value |
AllocationPolicy.Accelerator |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
addAccelerators(int index, AllocationPolicy.Accelerator.Builder builderForValue)
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;
Name | Description |
index |
int |
builderForValue |
AllocationPolicy.Accelerator.Builder |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
addAcceleratorsBuilder()
public AllocationPolicy.Accelerator.Builder addAcceleratorsBuilder()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Type | Description |
AllocationPolicy.Accelerator.Builder |
addAcceleratorsBuilder(int index)
public AllocationPolicy.Accelerator.Builder addAcceleratorsBuilder(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Name | Description |
index |
int |
Type | Description |
AllocationPolicy.Accelerator.Builder |
addAllAccelerators(Iterable<? extends AllocationPolicy.Accelerator> values)
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;
Name | Description |
values |
Iterable<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator> |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
addAllAllowedMachineTypes(Iterable<String> values) (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=356
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Name | Description |
values |
Iterable<String> The allowedMachineTypes to add. |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
addAllDisks(Iterable<? extends AllocationPolicy.AttachedDisk> values)
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Name | Description |
values |
Iterable<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk> |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
addAllowedMachineTypes(String value) (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=356
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Name | Description |
value |
String The allowedMachineTypes to add. |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
addAllowedMachineTypesBytes(ByteString value) (deprecated)
public AllocationPolicy.InstancePolicy.Builder addAllowedMachineTypesBytes(ByteString value)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=356
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Name | Description |
value |
ByteString The bytes of the allowedMachineTypes to add. |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
addDisks(AllocationPolicy.AttachedDisk value)
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Name | Description |
value |
AllocationPolicy.AttachedDisk |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
addDisks(AllocationPolicy.AttachedDisk.Builder builderForValue)
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Name | Description |
builderForValue |
AllocationPolicy.AttachedDisk.Builder |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
addDisks(int index, AllocationPolicy.AttachedDisk value)
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Name | Description |
index |
int |
value |
AllocationPolicy.AttachedDisk |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
addDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue)
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Name | Description |
index |
int |
builderForValue |
AllocationPolicy.AttachedDisk.Builder |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Type | Description |
AllocationPolicy.AttachedDisk.Builder |
addDisksBuilder(int index)
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Name | Description |
index |
int |
Type | Description |
AllocationPolicy.AttachedDisk.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy.InstancePolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
build()
public AllocationPolicy.InstancePolicy build()
Type | Description |
AllocationPolicy.InstancePolicy |
buildPartial()
public AllocationPolicy.InstancePolicy buildPartial()
Type | Description |
AllocationPolicy.InstancePolicy |
clear()
public AllocationPolicy.InstancePolicy.Builder clear()
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
clearAccelerators()
public AllocationPolicy.InstancePolicy.Builder clearAccelerators()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
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=356
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
clearBootDisk()
public AllocationPolicy.InstancePolicy.Builder clearBootDisk()
Book disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
clearField(Descriptors.FieldDescriptor field)
public AllocationPolicy.InstancePolicy.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field |
FieldDescriptor |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
clearMachineType()
public AllocationPolicy.InstancePolicy.Builder clearMachineType()
The Compute Engine machine type.
string machine_type = 2;
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
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
.
Not yet implemented.
string min_cpu_platform = 3;
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AllocationPolicy.InstancePolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof |
OneofDescriptor |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
clearProvisioningModel()
public AllocationPolicy.InstancePolicy.Builder clearProvisioningModel()
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
clearReservation()
public AllocationPolicy.InstancePolicy.Builder clearReservation()
If specified, VMs will be allocated only inside the matching reservation.
string reservation = 7;
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
clone()
public AllocationPolicy.InstancePolicy.Builder clone()
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
getAccelerators(int index)
public AllocationPolicy.Accelerator getAccelerators(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Name | Description |
index |
int |
Type | Description |
AllocationPolicy.Accelerator |
getAcceleratorsBuilder(int index)
public AllocationPolicy.Accelerator.Builder getAcceleratorsBuilder(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Name | Description |
index |
int |
Type | Description |
AllocationPolicy.Accelerator.Builder |
getAcceleratorsBuilderList()
public List<AllocationPolicy.Accelerator.Builder> getAcceleratorsBuilderList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Type | Description |
List<Builder> |
getAcceleratorsCount()
public int getAcceleratorsCount()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Type | Description |
int |
getAcceleratorsList()
public List<AllocationPolicy.Accelerator> getAcceleratorsList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Type | Description |
List<Accelerator> |
getAcceleratorsOrBuilder(int index)
public AllocationPolicy.AcceleratorOrBuilder getAcceleratorsOrBuilder(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Name | Description |
index |
int |
Type | Description |
AllocationPolicy.AcceleratorOrBuilder |
getAcceleratorsOrBuilderList()
public List<? extends AllocationPolicy.AcceleratorOrBuilder> getAcceleratorsOrBuilderList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Type | Description |
List<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.AcceleratorOrBuilder> |
getAllowedMachineTypes(int index) (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=356
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Name | Description |
index |
int The index of the element to return. |
Type | Description |
String |
The allowedMachineTypes at the given index. |
getAllowedMachineTypesBytes(int index) (deprecated)
public ByteString getAllowedMachineTypesBytes(int index)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=356
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Name | Description |
index |
int The index of the value to return. |
Type | Description |
ByteString |
The bytes of the allowedMachineTypes at the given index. |
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=356
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Type | Description |
int |
The count of allowedMachineTypes. |
getAllowedMachineTypesList() (deprecated)
public ProtocolStringList getAllowedMachineTypesList()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=356
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Type | Description |
ProtocolStringList |
A list containing the allowedMachineTypes. |
getBootDisk()
public AllocationPolicy.Disk getBootDisk()
Book disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
Type | Description |
AllocationPolicy.Disk |
The bootDisk. |
getBootDiskBuilder()
public AllocationPolicy.Disk.Builder getBootDiskBuilder()
Book disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
Type | Description |
AllocationPolicy.Disk.Builder |
getBootDiskOrBuilder()
public AllocationPolicy.DiskOrBuilder getBootDiskOrBuilder()
Book disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
Type | Description |
AllocationPolicy.DiskOrBuilder |
getDefaultInstanceForType()
public AllocationPolicy.InstancePolicy getDefaultInstanceForType()
Type | Description |
AllocationPolicy.InstancePolicy |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDisks(int index)
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Name | Description |
index |
int |
Type | Description |
AllocationPolicy.AttachedDisk |
getDisksBuilder(int index)
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Name | Description |
index |
int |
Type | Description |
AllocationPolicy.AttachedDisk.Builder |
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Type | Description |
List<Builder> |
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Type | Description |
int |
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Type | Description |
List<AttachedDisk> |
getDisksOrBuilder(int index)
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Name | Description |
index |
int |
Type | Description |
AllocationPolicy.AttachedDiskOrBuilder |
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Type | Description |
List<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDiskOrBuilder> |
getMachineType()
public String getMachineType()
The Compute Engine machine type.
string machine_type = 2;
Type | Description |
String |
The machineType. |
getMachineTypeBytes()
public ByteString getMachineTypeBytes()
The Compute Engine machine type.
string machine_type = 2;
Type | Description |
ByteString |
The bytes for machineType. |
getMinCpuPlatform()
public String getMinCpuPlatform()
The minimum CPU platform.
See
https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform
.
Not yet implemented.
string min_cpu_platform = 3;
Type | Description |
String |
The minCpuPlatform. |
getMinCpuPlatformBytes()
public ByteString getMinCpuPlatformBytes()
The minimum CPU platform.
See
https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform
.
Not yet implemented.
string min_cpu_platform = 3;
Type | Description |
ByteString |
The bytes for minCpuPlatform. |
getProvisioningModel()
public AllocationPolicy.ProvisioningModel getProvisioningModel()
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;
Type | Description |
AllocationPolicy.ProvisioningModel |
The provisioningModel. |
getProvisioningModelValue()
public int getProvisioningModelValue()
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;
Type | Description |
int |
The enum numeric value on the wire for provisioningModel. |
getReservation()
public String getReservation()
If specified, VMs will be allocated only inside the matching reservation.
string reservation = 7;
Type | Description |
String |
The reservation. |
getReservationBytes()
public ByteString getReservationBytes()
If specified, VMs will be allocated only inside the matching reservation.
string reservation = 7;
Type | Description |
ByteString |
The bytes for reservation. |
hasBootDisk()
public boolean hasBootDisk()
Book disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
Type | Description |
boolean |
Whether the bootDisk field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeBootDisk(AllocationPolicy.Disk value)
public AllocationPolicy.InstancePolicy.Builder mergeBootDisk(AllocationPolicy.Disk value)
Book disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
Name | Description |
value |
AllocationPolicy.Disk |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
mergeFrom(AllocationPolicy.InstancePolicy other)
public AllocationPolicy.InstancePolicy.Builder mergeFrom(AllocationPolicy.InstancePolicy other)
Name | Description |
other |
AllocationPolicy.InstancePolicy |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AllocationPolicy.InstancePolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public AllocationPolicy.InstancePolicy.Builder mergeFrom(Message other)
Name | Description |
other |
Message |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy.InstancePolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
removeAccelerators(int index)
public AllocationPolicy.InstancePolicy.Builder removeAccelerators(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Name | Description |
index |
int |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
removeDisks(int index)
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Name | Description |
index |
int |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
setAccelerators(int index, AllocationPolicy.Accelerator value)
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;
Name | Description |
index |
int |
value |
AllocationPolicy.Accelerator |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
setAccelerators(int index, AllocationPolicy.Accelerator.Builder builderForValue)
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;
Name | Description |
index |
int |
builderForValue |
AllocationPolicy.Accelerator.Builder |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
setAllowedMachineTypes(int index, String value) (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=356
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Name | Description |
index |
int The index to set the value at. |
value |
String The allowedMachineTypes to set. |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
setBootDisk(AllocationPolicy.Disk value)
public AllocationPolicy.InstancePolicy.Builder setBootDisk(AllocationPolicy.Disk value)
Book disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
Name | Description |
value |
AllocationPolicy.Disk |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
setBootDisk(AllocationPolicy.Disk.Builder builderForValue)
public AllocationPolicy.InstancePolicy.Builder setBootDisk(AllocationPolicy.Disk.Builder builderForValue)
Book disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted.
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
Name | Description |
builderForValue |
AllocationPolicy.Disk.Builder |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
setDisks(int index, AllocationPolicy.AttachedDisk value)
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Name | Description |
index |
int |
value |
AllocationPolicy.AttachedDisk |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
setDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue)
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.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;
Name | Description |
index |
int |
builderForValue |
AllocationPolicy.AttachedDisk.Builder |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy.InstancePolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
setMachineType(String value)
public AllocationPolicy.InstancePolicy.Builder setMachineType(String value)
The Compute Engine machine type.
string machine_type = 2;
Name | Description |
value |
String The machineType to set. |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
setMachineTypeBytes(ByteString value)
public AllocationPolicy.InstancePolicy.Builder setMachineTypeBytes(ByteString value)
The Compute Engine machine type.
string machine_type = 2;
Name | Description |
value |
ByteString The bytes for machineType to set. |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
setMinCpuPlatform(String value)
public AllocationPolicy.InstancePolicy.Builder setMinCpuPlatform(String value)
The minimum CPU platform.
See
https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform
.
Not yet implemented.
string min_cpu_platform = 3;
Name | Description |
value |
String The minCpuPlatform to set. |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
setMinCpuPlatformBytes(ByteString value)
public AllocationPolicy.InstancePolicy.Builder setMinCpuPlatformBytes(ByteString value)
The minimum CPU platform.
See
https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform
.
Not yet implemented.
string min_cpu_platform = 3;
Name | Description |
value |
ByteString The bytes for minCpuPlatform to set. |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
setProvisioningModel(AllocationPolicy.ProvisioningModel value)
public AllocationPolicy.InstancePolicy.Builder setProvisioningModel(AllocationPolicy.ProvisioningModel value)
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;
Name | Description |
value |
AllocationPolicy.ProvisioningModel The provisioningModel to set. |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
setProvisioningModelValue(int value)
public AllocationPolicy.InstancePolicy.Builder setProvisioningModelValue(int value)
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;
Name | Description |
value |
int The enum numeric value on the wire for provisioningModel to set. |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AllocationPolicy.InstancePolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
setReservation(String value)
public AllocationPolicy.InstancePolicy.Builder setReservation(String value)
If specified, VMs will be allocated only inside the matching reservation.
string reservation = 7;
Name | Description |
value |
String The reservation to set. |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
setReservationBytes(ByteString value)
public AllocationPolicy.InstancePolicy.Builder setReservationBytes(ByteString value)
If specified, VMs will be allocated only inside the matching reservation.
string reservation = 7;
Name | Description |
value |
ByteString The bytes for reservation to set. |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy.InstancePolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
AllocationPolicy.InstancePolicy.Builder |