Class UsageResourceAllowanceStatus.PeriodConsumption.Builder (0.47.0)

public static final class UsageResourceAllowanceStatus.PeriodConsumption.Builder extends GeneratedMessageV3.Builder<UsageResourceAllowanceStatus.PeriodConsumption.Builder> implements UsageResourceAllowanceStatus.PeriodConsumptionOrBuilder

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

Inheritance

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

build()

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

buildPartial()

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

clear()

public UsageResourceAllowanceStatus.PeriodConsumption.Builder clear()
Returns
Type Description
UsageResourceAllowanceStatus.PeriodConsumption.Builder
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];

Returns
Type Description
UsageResourceAllowanceStatus.PeriodConsumption.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeFrom(UsageResourceAllowanceStatus.PeriodConsumption other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

setField(Descriptors.FieldDescriptor field, Object value)

public UsageResourceAllowanceStatus.PeriodConsumption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UsageResourceAllowanceStatus.PeriodConsumption.Builder
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
Returns
Type Description
UsageResourceAllowanceStatus.PeriodConsumption.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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