Interface UsageResourceAllowanceStatus.LimitStatusOrBuilder (0.45.0)

public static interface UsageResourceAllowanceStatus.LimitStatusOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConsumed()

public abstract double getConsumed()

Output only. Accumulated consumption during consumption_interval.

optional double consumed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
double

The consumed.

getConsumptionInterval()

public abstract Interval getConsumptionInterval()

Output only. The consumption interval.

.google.type.Interval consumption_interval = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Interval

The consumptionInterval.

getConsumptionIntervalOrBuilder()

public abstract IntervalOrBuilder getConsumptionIntervalOrBuilder()

Output only. The consumption interval.

.google.type.Interval consumption_interval = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.IntervalOrBuilder

getLimit()

public abstract double getLimit()

Output only. Limit value of a UsageResourceAllowance within its one duration.

optional double limit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
double

The limit.

hasConsumed()

public abstract boolean hasConsumed()

Output only. Accumulated consumption during consumption_interval.

optional double consumed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the consumed field is set.

hasConsumptionInterval()

public abstract boolean hasConsumptionInterval()

Output only. The consumption interval.

.google.type.Interval consumption_interval = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the consumptionInterval field is set.

hasLimit()

public abstract boolean hasLimit()

Output only. Limit value of a UsageResourceAllowance within its one duration.

optional double limit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the limit field is set.