public static final class UsageResourceAllowanceStatus.ConsumptionReport.Builder extends GeneratedMessage.Builder<UsageResourceAllowanceStatus.ConsumptionReport.Builder> implements UsageResourceAllowanceStatus.ConsumptionReportOrBuilder
ConsumptionReport is the report of ResourceAllowance consumptions in a time
period.
Protobuf type
google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.ConsumptionReport
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public UsageResourceAllowanceStatus.ConsumptionReport build()
buildPartial()
public UsageResourceAllowanceStatus.ConsumptionReport buildPartial()
clear()
public UsageResourceAllowanceStatus.ConsumptionReport.Builder clear()
Overrides
clearLatestPeriodConsumptions()
public UsageResourceAllowanceStatus.ConsumptionReport.Builder clearLatestPeriodConsumptions()
containsLatestPeriodConsumptions(String key)
public 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
|
getDefaultInstanceForType()
public UsageResourceAllowanceStatus.ConsumptionReport getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLatestPeriodConsumptions() (deprecated)
public Map<String,UsageResourceAllowanceStatus.PeriodConsumption> getLatestPeriodConsumptions()
getLatestPeriodConsumptionsCount()
public 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 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];
getLatestPeriodConsumptionsOrDefault(String key, UsageResourceAllowanceStatus.PeriodConsumption defaultValue)
public 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];
getLatestPeriodConsumptionsOrThrow(String key)
public 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
|
getMutableLatestPeriodConsumptions() (deprecated)
public Map<String,UsageResourceAllowanceStatus.PeriodConsumption> getMutableLatestPeriodConsumptions()
Use alternate mutation accessors instead.
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(UsageResourceAllowanceStatus.ConsumptionReport other)
public UsageResourceAllowanceStatus.ConsumptionReport.Builder mergeFrom(UsageResourceAllowanceStatus.ConsumptionReport other)
public UsageResourceAllowanceStatus.ConsumptionReport.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UsageResourceAllowanceStatus.ConsumptionReport.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
putAllLatestPeriodConsumptions(Map<String,UsageResourceAllowanceStatus.PeriodConsumption> values)
public UsageResourceAllowanceStatus.ConsumptionReport.Builder putAllLatestPeriodConsumptions(Map<String,UsageResourceAllowanceStatus.PeriodConsumption> values)
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];
putLatestPeriodConsumptions(String key, UsageResourceAllowanceStatus.PeriodConsumption value)
public UsageResourceAllowanceStatus.ConsumptionReport.Builder putLatestPeriodConsumptions(String key, UsageResourceAllowanceStatus.PeriodConsumption value)
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];
putLatestPeriodConsumptionsBuilderIfAbsent(String key)
public UsageResourceAllowanceStatus.PeriodConsumption.Builder putLatestPeriodConsumptionsBuilderIfAbsent(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
|
removeLatestPeriodConsumptions(String key)
public UsageResourceAllowanceStatus.ConsumptionReport.Builder removeLatestPeriodConsumptions(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
|