Class UsageResourceAllowanceStatus.PeriodConsumption.Builder (0.54.0)

See more code actions.
public static final class UsageResourceAllowanceStatus.PeriodConsumption.Builder extends GeneratedMessageV3.Builder<UsageResourceAllowanceStatus.PeriodConsumption.Builder> implements UsageResourceAllowanceStatus.PeriodConsumptionOrBuilder

Protobuf type google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.PeriodConsumption

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > UsageResourceAllowanceStatus.PeriodConsumption.Builder
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()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UsageResourceAllowanceStatus.PeriodConsumption build()

buildPartial()

public UsageResourceAllowanceStatus.PeriodConsumption buildPartial()

clear()

public UsageResourceAllowanceStatus.PeriodConsumption.Builder clear()
Overrides

clearConsumed()

public UsageResourceAllowanceStatus.PeriodConsumption.Builder clearConsumed()

Output only. Accumulated consumption during consumption_interval.

optional double consumed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UsageResourceAllowanceStatus.PeriodConsumption.Builder

This builder for chaining.

clearConsumptionInterval()

public UsageResourceAllowanceStatus.PeriodConsumption.Builder clearConsumptionInterval()

Output only. The consumption interval.

.google.type.Interval consumption_interval = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

clearField(Descriptors.FieldDescriptor field)

public UsageResourceAllowanceStatus.PeriodConsumption.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UsageResourceAllowanceStatus.PeriodConsumption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Overrides

clone()

public UsageResourceAllowanceStatus.PeriodConsumption.Builder clone()
Overrides

getConsumed()

public 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 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.

getConsumptionIntervalBuilder()

public Interval.Builder getConsumptionIntervalBuilder()

Output only. The consumption interval.

.google.type.Interval consumption_interval = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Interval.Builder

getConsumptionIntervalOrBuilder()

public 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

getDefaultInstanceForType()

public UsageResourceAllowanceStatus.PeriodConsumption getDefaultInstanceForType()

getDescriptorForType()

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

hasConsumed()

public 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConsumptionInterval(Interval value)

public UsageResourceAllowanceStatus.PeriodConsumption.Builder mergeConsumptionInterval(Interval value)

Output only. The consumption interval.

.google.type.Interval consumption_interval = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.type.Interval

mergeFrom(UsageResourceAllowanceStatus.PeriodConsumption other)

public UsageResourceAllowanceStatus.PeriodConsumption.Builder mergeFrom(UsageResourceAllowanceStatus.PeriodConsumption other)
Parameter
Name Description
other UsageResourceAllowanceStatus.PeriodConsumption

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public UsageResourceAllowanceStatus.PeriodConsumption.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UsageResourceAllowanceStatus.PeriodConsumption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides

setConsumed(double value)

public UsageResourceAllowanceStatus.PeriodConsumption.Builder setConsumed(double value)

Output only. Accumulated consumption during consumption_interval.

optional double consumed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value double

The consumed to set.

Returns
Type Description
UsageResourceAllowanceStatus.PeriodConsumption.Builder

This builder for chaining.

setConsumptionInterval(Interval value)

public UsageResourceAllowanceStatus.PeriodConsumption.Builder setConsumptionInterval(Interval value)

Output only. The consumption interval.

.google.type.Interval consumption_interval = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.type.Interval

setConsumptionInterval(Interval.Builder builderForValue)

public UsageResourceAllowanceStatus.PeriodConsumption.Builder setConsumptionInterval(Interval.Builder builderForValue)

Output only. The consumption interval.

.google.type.Interval consumption_interval = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.type.Interval.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UsageResourceAllowanceStatus.PeriodConsumption.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides