Package com.google.cloud.batch.v1alpha
Interface AllocationPolicy.InstancePolicyOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AllocationPolicy.InstancePolicy
,AllocationPolicy.InstancePolicy.Builder
- Enclosing class:
- AllocationPolicy
public static interface AllocationPolicy.InstancePolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description AllocationPolicy.Accelerator
getAccelerators(int index)
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.List<String>
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.DiskOrBuilder
getBootDiskOrBuilder()
Boot disk to be created and attached to each VM by this InstancePolicy.AllocationPolicy.AttachedDisk
getDisks(int index)
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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getAllowedMachineTypesList
@Deprecated List<String> 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];
- Returns:
- A list containing the allowedMachineTypes.
-
getAllowedMachineTypesCount
@Deprecated 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];
- Returns:
- The count of allowedMachineTypes.
-
getAllowedMachineTypes
@Deprecated 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];
- Parameters:
index
- The index of the element to return.- Returns:
- The allowedMachineTypes at the given index.
-
getAllowedMachineTypesBytes
@Deprecated 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];
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the allowedMachineTypes at the given index.
-
getMachineType
String getMachineType()
The Compute Engine machine type.
string machine_type = 2;
- Returns:
- The machineType.
-
getMachineTypeBytes
com.google.protobuf.ByteString getMachineTypeBytes()
The Compute Engine machine type.
string machine_type = 2;
- Returns:
- The bytes for machineType.
-
getMinCpuPlatform
String getMinCpuPlatform()
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string min_cpu_platform = 3;
- Returns:
- The minCpuPlatform.
-
getMinCpuPlatformBytes
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;
- Returns:
- The bytes for minCpuPlatform.
-
getProvisioningModelValue
int getProvisioningModelValue()
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;
- Returns:
- The enum numeric value on the wire for provisioningModel.
-
getProvisioningModel
AllocationPolicy.ProvisioningModel getProvisioningModel()
The provisioning model.
.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;
- Returns:
- The provisioningModel.
-
getAcceleratorsList
List<AllocationPolicy.Accelerator> getAcceleratorsList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
-
getAccelerators
AllocationPolicy.Accelerator getAccelerators(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
-
getAcceleratorsCount
int getAcceleratorsCount()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
-
getAcceleratorsOrBuilderList
List<? extends AllocationPolicy.AcceleratorOrBuilder> getAcceleratorsOrBuilderList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
-
getAcceleratorsOrBuilder
AllocationPolicy.AcceleratorOrBuilder getAcceleratorsOrBuilder(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;
-
hasBootDisk
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:
- Whether the bootDisk field is set.
-
getBootDisk
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:
- The bootDisk.
-
getBootDiskOrBuilder
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;
-
getDisksList
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;
-
getDisks
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;
-
getDisksCount
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;
-
getDisksOrBuilderList
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;
-
getDisksOrBuilder
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;
-
getReservation
String getReservation()
If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation.
string reservation = 7;
- Returns:
- The reservation.
-
getReservationBytes
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;
- Returns:
- The bytes for reservation.
-
-