Class UsageResourceAllowanceStatus.ConsumptionReport.Builder (0.48.0)

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

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > UsageResourceAllowanceStatus.ConsumptionReport.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UsageResourceAllowanceStatus.ConsumptionReport.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder
Overrides

build()

public UsageResourceAllowanceStatus.ConsumptionReport build()
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport

buildPartial()

public UsageResourceAllowanceStatus.ConsumptionReport buildPartial()
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport

clear()

public UsageResourceAllowanceStatus.ConsumptionReport.Builder clear()
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UsageResourceAllowanceStatus.ConsumptionReport.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder
Overrides

clearLatestPeriodConsumptions()

public UsageResourceAllowanceStatus.ConsumptionReport.Builder clearLatestPeriodConsumptions()
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public UsageResourceAllowanceStatus.ConsumptionReport.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder
Overrides

clone()

public UsageResourceAllowanceStatus.ConsumptionReport.Builder clone()
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder
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
Returns
Type Description
boolean

getDefaultInstanceForType()

public UsageResourceAllowanceStatus.ConsumptionReport getDefaultInstanceForType()
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLatestPeriodConsumptions() (deprecated)

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

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];

Returns
Type Description
Map<String,PeriodConsumption>

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];

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

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
Returns
Type Description
UsageResourceAllowanceStatus.PeriodConsumption

getMutableLatestPeriodConsumptions() (deprecated)

public Map<String,UsageResourceAllowanceStatus.PeriodConsumption> getMutableLatestPeriodConsumptions()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,PeriodConsumption>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
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()
Returns
Type Description
boolean
Overrides

mergeFrom(UsageResourceAllowanceStatus.ConsumptionReport other)

public UsageResourceAllowanceStatus.ConsumptionReport.Builder mergeFrom(UsageResourceAllowanceStatus.ConsumptionReport other)
Parameter
Name Description
other UsageResourceAllowanceStatus.ConsumptionReport
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UsageResourceAllowanceStatus.ConsumptionReport.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UsageResourceAllowanceStatus.ConsumptionReport.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UsageResourceAllowanceStatus.ConsumptionReport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder
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];

Parameter
Name Description
values Map<String,PeriodConsumption>
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder

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];

Parameters
Name Description
key String
value UsageResourceAllowanceStatus.PeriodConsumption
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder

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
Returns
Type Description
UsageResourceAllowanceStatus.PeriodConsumption.Builder

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
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UsageResourceAllowanceStatus.ConsumptionReport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UsageResourceAllowanceStatus.ConsumptionReport.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UsageResourceAllowanceStatus.ConsumptionReport.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder
Overrides