Interface ResourceCommitmentOrBuilder (1.14.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
TypeDescription
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
TypeDescription
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
TypeDescription
long

The amount.

getType()

public abstract String getType()

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

optional string type = 3575610;

Returns
TypeDescription
String

The type.

getTypeBytes()

public abstract ByteString getTypeBytes()

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

optional string type = 3575610;

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

Whether the amount field is set.

hasType()

public abstract boolean hasType()

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

optional string type = 3575610;

Returns
TypeDescription
boolean

Whether the type field is set.