Interface ResourceCommitmentOrBuilder (1.61.0)

public interface ResourceCommitmentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAcceleratorType()

public abstract String getAcceleratorType()

Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.

optional string accelerator_type = 138031246;

Returns
Type Description
String

The acceleratorType.

getAcceleratorTypeBytes()

public abstract ByteString getAcceleratorTypeBytes()

Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.

optional string accelerator_type = 138031246;

Returns
Type Description
ByteString

The bytes for acceleratorType.

getAmount()

public abstract long getAmount()

The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.

optional int64 amount = 196759640;

Returns
Type Description
long

The amount.

getType()

public abstract String getType()

Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR. 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()

Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR. 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 resource. Applicable only when the type is ACCELERATOR.

optional string accelerator_type = 138031246;

Returns
Type Description
boolean

Whether the acceleratorType field is set.

hasAmount()

public abstract boolean hasAmount()

The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.

optional int64 amount = 196759640;

Returns
Type Description
boolean

Whether the amount field is set.

hasType()

public abstract boolean hasType()

Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
boolean

Whether the type field is set.