- 0.51.0 (latest)
- 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 interface AllocationPolicy.InstancePolicyOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getAccelerators(int index)
public abstract AllocationPolicy.Accelerator getAccelerators(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
AllocationPolicy.Accelerator |
getAcceleratorsCount()
public abstract int getAcceleratorsCount()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Returns | |
---|---|
Type | Description |
int |
getAcceleratorsList()
public abstract List<AllocationPolicy.Accelerator> getAcceleratorsList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Returns | |
---|---|
Type | Description |
List<Accelerator> |
getAcceleratorsOrBuilder(int index)
public abstract AllocationPolicy.AcceleratorOrBuilder getAcceleratorsOrBuilder(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
AllocationPolicy.AcceleratorOrBuilder |
getAcceleratorsOrBuilderList()
public abstract List<? extends AllocationPolicy.AcceleratorOrBuilder> getAcceleratorsOrBuilderList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.AcceleratorOrBuilder> |
getAllowedMachineTypes(int index) (deprecated)
public abstract String getAllowedMachineTypes(int index)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The allowedMachineTypes at the given index. |
getAllowedMachineTypesBytes(int index) (deprecated)
public abstract ByteString getAllowedMachineTypesBytes(int index)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the allowedMachineTypes at the given index. |
getAllowedMachineTypesCount() (deprecated)
public abstract int getAllowedMachineTypesCount()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Returns | |
---|---|
Type | Description |
int |
The count of allowedMachineTypes. |
getAllowedMachineTypesList() (deprecated)
public abstract List<String> getAllowedMachineTypesList()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450
Deprecated: please use machine_type instead.
repeated string allowed_machine_types = 1 [deprecated = true];
Returns | |
---|---|
Type | Description |
List<String> |
A list containing the allowedMachineTypes. |
getBootDisk()
public abstract 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;
Returns | |
---|---|
Type | Description |
AllocationPolicy.Disk |
The bootDisk. |
getBootDiskOrBuilder()
public abstract 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;
Returns | |
---|---|
Type | Description |
AllocationPolicy.DiskOrBuilder |
getDisks(int index)
public abstract 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;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
AllocationPolicy.AttachedDisk |
getDisksCount()
public abstract 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;
Returns | |
---|---|
Type | Description |
int |
getDisksList()
public abstract 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;
Returns | |
---|---|
Type | Description |
List<AttachedDisk> |
getDisksOrBuilder(int index)
public abstract 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;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
AllocationPolicy.AttachedDiskOrBuilder |
getDisksOrBuilderList()
public abstract 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;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDiskOrBuilder> |
getMachineType()
public abstract String getMachineType()
The Compute Engine machine type.
string machine_type = 2;
Returns | |
---|---|
Type | Description |
String |
The machineType. |
getMachineTypeBytes()
public abstract ByteString getMachineTypeBytes()
The Compute Engine machine type.
string machine_type = 2;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for machineType. |
getMinCpuPlatform()
public abstract String getMinCpuPlatform()
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string min_cpu_platform = 3;
Returns | |
---|---|
Type | Description |
String |
The minCpuPlatform. |
getMinCpuPlatformBytes()
public abstract ByteString getMinCpuPlatformBytes()
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string min_cpu_platform = 3;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for minCpuPlatform. |
getProvisioningModel()
public abstract AllocationPolicy.ProvisioningModel getProvisioningModel()
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;
Returns | |
---|---|
Type | Description |
AllocationPolicy.ProvisioningModel |
The provisioningModel. |
getProvisioningModelValue()
public abstract int getProvisioningModelValue()
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for provisioningModel. |
getReservation()
public abstract String getReservation()
Optional. If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation.
string reservation = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The reservation. |
getReservationBytes()
public abstract ByteString getReservationBytes()
Optional. If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation.
string reservation = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for reservation. |
hasBootDisk()
public abstract 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;
Returns | |
---|---|
Type | Description |
boolean |
Whether the bootDisk field is set. |