public static final class UsageResourceAllowanceStatus.PeriodConsumption.Builder extends GeneratedMessageV3.Builder<UsageResourceAllowanceStatus.PeriodConsumption.Builder> implements UsageResourceAllowanceStatus.PeriodConsumptionOrBuilder
Protobuf type
google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.PeriodConsumption
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.PeriodConsumption.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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
.
double consumed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
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)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UsageResourceAllowanceStatus.PeriodConsumption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public UsageResourceAllowanceStatus.PeriodConsumption.Builder clone()
Overrides
getConsumed()
public double getConsumed()
Output only. Accumulated consumption during consumption_interval
.
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()
Overrides
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.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)
public UsageResourceAllowanceStatus.PeriodConsumption.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
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)
Overrides
setConsumed(double value)
public UsageResourceAllowanceStatus.PeriodConsumption.Builder setConsumed(double value)
Output only. Accumulated consumption during consumption_interval
.
double consumed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
Name |
Description |
value |
double
The consumed to set.
|
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)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UsageResourceAllowanceStatus.PeriodConsumption.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UsageResourceAllowanceStatus.PeriodConsumption.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides