Interface ResourceCommitmentOrBuilder (1.69.0)

public interface ResourceCommitmentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAcceleratorType()

public abstract String getAcceleratorType()

Name of the accelerator type or GPU resource. Specify this field only when the type of hardware resource is ACCELERATOR.

optional string accelerator_type = 138031246;

Returns
Type Description
String

The acceleratorType.

getAcceleratorTypeBytes()

public abstract ByteString getAcceleratorTypeBytes()

Name of the accelerator type or GPU resource. Specify this field only when the type of hardware resource is ACCELERATOR.

optional string accelerator_type = 138031246;

Returns
Type Description
ByteString

The bytes for acceleratorType.

getAmount()

public abstract long getAmount()

The quantity of the hardware resource that you want to commit to purchasing (in a type-dependent unit). - For vCPUs, you must specify an integer value. - For memory, you specify the amount of MB that you want. The value you specify must be a multiple of 256 MB, with up to 6.5 GB of memory per every vCPU. - For GPUs, you must specify an integer value. - For Local SSD disks, you must specify the amount in GB. The size of a single Local SSD disk is 375 GB.

optional int64 amount = 196759640;

Returns
Type Description
long

The amount.

getType()

public abstract String getType()

The type of hardware resource that you want to specify. You can specify any of the following values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR Specify as a separate entry in the list for each individual resource type. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
String

The type.

getTypeBytes()

public abstract ByteString getTypeBytes()

The type of hardware resource that you want to specify. You can specify any of the following values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR Specify as a separate entry in the list for each individual resource type. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
ByteString

The bytes for type.

hasAcceleratorType()

public abstract boolean hasAcceleratorType()

Name of the accelerator type or GPU resource. Specify this field only when the type of hardware resource is ACCELERATOR.

optional string accelerator_type = 138031246;

Returns
Type Description
boolean

Whether the acceleratorType field is set.

hasAmount()

public abstract boolean hasAmount()

The quantity of the hardware resource that you want to commit to purchasing (in a type-dependent unit). - For vCPUs, you must specify an integer value. - For memory, you specify the amount of MB that you want. The value you specify must be a multiple of 256 MB, with up to 6.5 GB of memory per every vCPU. - For GPUs, you must specify an integer value. - For Local SSD disks, you must specify the amount in GB. The size of a single Local SSD disk is 375 GB.

optional int64 amount = 196759640;

Returns
Type Description
boolean

Whether the amount field is set.

hasType()

public abstract boolean hasType()

The type of hardware resource that you want to specify. You can specify any of the following values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR Specify as a separate entry in the list for each individual resource type. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
boolean

Whether the type field is set.