Interface UsageResourceAllowanceSpecOrBuilder (0.54.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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the limit field is set.