Interface UsageResourceAllowanceSpecOrBuilder (0.41.0)

public interface UsageResourceAllowanceSpecOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getLimit()

public abstract UsageResourceAllowanceSpec.Limit getLimit()

Required. Threshold of a UsageResourceAllowance limiting how many resources can be consumed for each type.

.google.cloud.batch.v1alpha.UsageResourceAllowanceSpec.Limit limit = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UsageResourceAllowanceSpec.Limit

The limit.

getLimitOrBuilder()

public abstract UsageResourceAllowanceSpec.LimitOrBuilder getLimitOrBuilder()

Required. Threshold of a UsageResourceAllowance limiting how many resources can be consumed for each type.

.google.cloud.batch.v1alpha.UsageResourceAllowanceSpec.Limit limit = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UsageResourceAllowanceSpec.LimitOrBuilder

getType()

public abstract String getType()

Required. Spec type is unique for each usage ResourceAllowance. Batch now only supports type as "cpu-core-hours" for CPU usage consumption tracking.

string type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The type.

getTypeBytes()

public abstract ByteString getTypeBytes()

Required. Spec type is unique for each usage ResourceAllowance. Batch now only supports type as "cpu-core-hours" for CPU usage consumption tracking.

string type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for type.

hasLimit()

public abstract boolean hasLimit()

Required. Threshold of a UsageResourceAllowance limiting how many resources can be consumed for each type.

.google.cloud.batch.v1alpha.UsageResourceAllowanceSpec.Limit limit = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the limit field is set.