Class UsageResourceAllowanceStatus.LimitStatus.Builder (0.54.0)

public static final class UsageResourceAllowanceStatus.LimitStatus.Builder extends GeneratedMessageV3.Builder<UsageResourceAllowanceStatus.LimitStatus.Builder> implements UsageResourceAllowanceStatus.LimitStatusOrBuilder

UsageResourceAllowanceStatus detail about usage consumption.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearConsumed()

public UsageResourceAllowanceStatus.LimitStatus.Builder clearConsumed()

Output only. Accumulated consumption during consumption_interval.

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

Returns
Type Description
UsageResourceAllowanceStatus.LimitStatus.Builder

This builder for chaining.

clearConsumptionInterval()

public UsageResourceAllowanceStatus.LimitStatus.Builder clearConsumptionInterval()

Output only. The consumption interval.

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

Returns
Type Description
UsageResourceAllowanceStatus.LimitStatus.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLimit()

public UsageResourceAllowanceStatus.LimitStatus.Builder clearLimit()

Output only. Limit value of a UsageResourceAllowance within its one duration.

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

Returns
Type Description
UsageResourceAllowanceStatus.LimitStatus.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public UsageResourceAllowanceStatus.LimitStatus.Builder clone()
Returns
Type Description
UsageResourceAllowanceStatus.LimitStatus.Builder
Overrides

getConsumed()

public double getConsumed()

Output only. Accumulated consumption during consumption_interval.

optional double consumed = 3 [(.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.LimitStatus getDefaultInstanceForType()
Returns
Type Description
UsageResourceAllowanceStatus.LimitStatus

getDescriptorForType()

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

getLimit()

public double getLimit()

Output only. Limit value of a UsageResourceAllowance within its one duration.

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

Returns
Type Description
double

The limit.

hasConsumed()

public boolean hasConsumed()

Output only. Accumulated consumption during consumption_interval.

optional double consumed = 3 [(.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.

hasLimit()

public boolean hasLimit()

Output only. Limit value of a UsageResourceAllowance within its one duration.

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

Returns
Type Description
boolean

Whether the limit 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.LimitStatus.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.LimitStatus.Builder

mergeFrom(UsageResourceAllowanceStatus.LimitStatus other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UsageResourceAllowanceStatus.LimitStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UsageResourceAllowanceStatus.LimitStatus.Builder
Overrides

setConsumed(double value)

public UsageResourceAllowanceStatus.LimitStatus.Builder setConsumed(double value)

Output only. Accumulated consumption during consumption_interval.

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

Parameter
Name Description
value double

The consumed to set.

Returns
Type Description
UsageResourceAllowanceStatus.LimitStatus.Builder

This builder for chaining.

setConsumptionInterval(Interval value)

public UsageResourceAllowanceStatus.LimitStatus.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.LimitStatus.Builder

setConsumptionInterval(Interval.Builder builderForValue)

public UsageResourceAllowanceStatus.LimitStatus.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.LimitStatus.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLimit(double value)

public UsageResourceAllowanceStatus.LimitStatus.Builder setLimit(double value)

Output only. Limit value of a UsageResourceAllowance within its one duration.

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

Parameter
Name Description
value double

The limit to set.

Returns
Type Description
UsageResourceAllowanceStatus.LimitStatus.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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