Interface UsageResourceAllowanceStatus.PeriodConsumptionOrBuilder (0.45.0)

public static interface UsageResourceAllowanceStatus.PeriodConsumptionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConsumed()

public abstract double getConsumed()

Output only. Accumulated consumption during consumption_interval.

optional double consumed = 2 [(.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

hasConsumed()

public abstract boolean hasConsumed()

Output only. Accumulated consumption during consumption_interval.

optional double consumed = 2 [(.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.