Interface AllocationPolicy.InstancePolicyOrBuilder (0.7.0)

public static interface AllocationPolicy.InstancePolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

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
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.Accelerator

getAcceleratorsCount()

public abstract int getAcceleratorsCount()

The accelerators attached to each VM instance.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5;

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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=354

Deprecated: please use machine_type instead.

repeated string allowed_machine_types = 1 [deprecated = true];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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=354

Deprecated: please use machine_type instead.

repeated string allowed_machine_types = 1 [deprecated = true];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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=354

Deprecated: please use machine_type instead.

repeated string allowed_machine_types = 1 [deprecated = true];

Returns
TypeDescription
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=354

Deprecated: please use machine_type instead.

repeated string allowed_machine_types = 1 [deprecated = true];

Returns
TypeDescription
List<String>

A list containing the allowedMachineTypes.

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.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;

Returns
TypeDescription
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.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;

Returns
TypeDescription
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.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.

repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6;

Returns
TypeDescription
List<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDiskOrBuilder>

getMachineType()

public abstract String getMachineType()

The Compute Engine machine type.

string machine_type = 2;

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public abstract ByteString getMachineTypeBytes()

The Compute Engine machine type.

string machine_type = 2;

Returns
TypeDescription
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. Not yet implemented.

string min_cpu_platform = 3;

Returns
TypeDescription
String

The minCpuPlatform.

getMinCpuPlatformBytes()

public abstract 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;

Returns
TypeDescription
ByteString

The bytes for minCpuPlatform.

getProvisioningModel()

public abstract AllocationPolicy.ProvisioningModel getProvisioningModel()

The provisioning model.

.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;

Returns
TypeDescription
AllocationPolicy.ProvisioningModel

The provisioningModel.

getProvisioningModelValue()

public abstract int getProvisioningModelValue()

The provisioning model.

.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for provisioningModel.

getReservation()

public abstract String getReservation()

If specified, VMs will be allocated only inside the matching reservation.

string reservation = 7;

Returns
TypeDescription
String

The reservation.

getReservationBytes()

public abstract ByteString getReservationBytes()

If specified, VMs will be allocated only inside the matching reservation.

string reservation = 7;

Returns
TypeDescription
ByteString

The bytes for reservation.