Interface UsageResourceAllowanceStatus.ConsumptionReportOrBuilder (0.45.0)

public static interface UsageResourceAllowanceStatus.ConsumptionReportOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLatestPeriodConsumptions(String key)

public abstract boolean containsLatestPeriodConsumptions(String key)

Output only. ResourceAllowance consumptions in the latest calendar period. Key is the calendar period in string format. Batch currently supports HOUR, DAY, MONTH and YEAR.

map<string, .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.PeriodConsumption> latest_period_consumptions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getLatestPeriodConsumptions() (deprecated)

public abstract Map<String,UsageResourceAllowanceStatus.PeriodConsumption> getLatestPeriodConsumptions()
Returns
Type Description
Map<String,PeriodConsumption>

getLatestPeriodConsumptionsCount()

public abstract int getLatestPeriodConsumptionsCount()

Output only. ResourceAllowance consumptions in the latest calendar period. Key is the calendar period in string format. Batch currently supports HOUR, DAY, MONTH and YEAR.

map<string, .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.PeriodConsumption> latest_period_consumptions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getLatestPeriodConsumptionsMap()

public abstract Map<String,UsageResourceAllowanceStatus.PeriodConsumption> getLatestPeriodConsumptionsMap()

Output only. ResourceAllowance consumptions in the latest calendar period. Key is the calendar period in string format. Batch currently supports HOUR, DAY, MONTH and YEAR.

map<string, .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.PeriodConsumption> latest_period_consumptions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,PeriodConsumption>

getLatestPeriodConsumptionsOrDefault(String key, UsageResourceAllowanceStatus.PeriodConsumption defaultValue)

public abstract UsageResourceAllowanceStatus.PeriodConsumption getLatestPeriodConsumptionsOrDefault(String key, UsageResourceAllowanceStatus.PeriodConsumption defaultValue)

Output only. ResourceAllowance consumptions in the latest calendar period. Key is the calendar period in string format. Batch currently supports HOUR, DAY, MONTH and YEAR.

map<string, .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.PeriodConsumption> latest_period_consumptions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue UsageResourceAllowanceStatus.PeriodConsumption
Returns
Type Description
UsageResourceAllowanceStatus.PeriodConsumption

getLatestPeriodConsumptionsOrThrow(String key)

public abstract UsageResourceAllowanceStatus.PeriodConsumption getLatestPeriodConsumptionsOrThrow(String key)

Output only. ResourceAllowance consumptions in the latest calendar period. Key is the calendar period in string format. Batch currently supports HOUR, DAY, MONTH and YEAR.

map<string, .google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.PeriodConsumption> latest_period_consumptions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
UsageResourceAllowanceStatus.PeriodConsumption