public static final class UsageResourceAllowanceStatus.ConsumptionReport.Builder extends GeneratedMessageV3.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.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UsageResourceAllowanceStatus.ConsumptionReport.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UsageResourceAllowanceStatus.ConsumptionReport build()
buildPartial()
public UsageResourceAllowanceStatus.ConsumptionReport buildPartial()
clear()
public UsageResourceAllowanceStatus.ConsumptionReport.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public UsageResourceAllowanceStatus.ConsumptionReport.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLatestPeriodConsumptions()
public UsageResourceAllowanceStatus.ConsumptionReport.Builder clearLatestPeriodConsumptions()
clearOneof(Descriptors.OneofDescriptor oneof)
public UsageResourceAllowanceStatus.ConsumptionReport.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public UsageResourceAllowanceStatus.ConsumptionReport.Builder clone()
Overrides
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 GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UsageResourceAllowanceStatus.ConsumptionReport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public UsageResourceAllowanceStatus.ConsumptionReport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UsageResourceAllowanceStatus.ConsumptionReport.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UsageResourceAllowanceStatus.ConsumptionReport.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides