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
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.LimitStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UsageResourceAllowanceStatus.LimitStatus build()
buildPartial()
public UsageResourceAllowanceStatus.LimitStatus buildPartial()
clear()
public UsageResourceAllowanceStatus.LimitStatus.Builder clear()
Overrides
clearConsumed()
public UsageResourceAllowanceStatus.LimitStatus.Builder clearConsumed()
Output only. Accumulated consumption during consumption_interval
.
double consumed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearConsumptionInterval()
public UsageResourceAllowanceStatus.LimitStatus.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.LimitStatus.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLimit()
public UsageResourceAllowanceStatus.LimitStatus.Builder clearLimit()
Output only. Limit value of a UsageResourceAllowance within its one
duration.
double limit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearOneof(Descriptors.OneofDescriptor oneof)
public UsageResourceAllowanceStatus.LimitStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public UsageResourceAllowanceStatus.LimitStatus.Builder clone()
Overrides
getConsumed()
public double getConsumed()
Output only. Accumulated consumption during consumption_interval
.
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLimit()
Output only. Limit value of a UsageResourceAllowance within its one
duration.
double limit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
double |
The limit.
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
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
|
mergeFrom(UsageResourceAllowanceStatus.LimitStatus other)
public UsageResourceAllowanceStatus.LimitStatus.Builder mergeFrom(UsageResourceAllowanceStatus.LimitStatus other)
public UsageResourceAllowanceStatus.LimitStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UsageResourceAllowanceStatus.LimitStatus.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UsageResourceAllowanceStatus.LimitStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setConsumed(double value)
public UsageResourceAllowanceStatus.LimitStatus.Builder setConsumed(double value)
Output only. Accumulated consumption during consumption_interval
.
double consumed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
Name |
Description |
value |
double
The consumed to set.
|
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
|
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public UsageResourceAllowanceStatus.LimitStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setLimit(double value)
public UsageResourceAllowanceStatus.LimitStatus.Builder setLimit(double value)
Output only. Limit value of a UsageResourceAllowance within its one
duration.
double limit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
Name |
Description |
value |
double
The limit to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UsageResourceAllowanceStatus.LimitStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UsageResourceAllowanceStatus.LimitStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides