Class Reservation.Standard.Usage.Builder (2.77.0)
public static final class Reservation.Standard.Usage.Builder extends GeneratedMessageV3.Builder<Reservation.Standard.Usage.Builder> implements Reservation.Standard.UsageOrBuilder
Usage details of a reservation.
Protobuf type google.cloud.tpu.v2alpha1.Reservation.Standard.Usage
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 Reservation.Standard.Usage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Reservation.Standard.Usage build()
buildPartial()
public Reservation.Standard.Usage buildPartial()
clear()
public Reservation.Standard.Usage.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Reservation.Standard.Usage.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Reservation.Standard.Usage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTotal()
public Reservation.Standard.Usage.Builder clearTotal()
The real-time value of usage within the reservation, with the unit
specified in field capacity_units.
int64 total = 1;
clone()
public Reservation.Standard.Usage.Builder clone()
Overrides
getDefaultInstanceForType()
public Reservation.Standard.Usage getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getTotal()
The real-time value of usage within the reservation, with the unit
specified in field capacity_units.
int64 total = 1;
Returns |
Type |
Description |
long |
The total.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Reservation.Standard.Usage other)
public Reservation.Standard.Usage.Builder mergeFrom(Reservation.Standard.Usage other)
public Reservation.Standard.Usage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Reservation.Standard.Usage.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Reservation.Standard.Usage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Reservation.Standard.Usage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Reservation.Standard.Usage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setTotal(long value)
public Reservation.Standard.Usage.Builder setTotal(long value)
The real-time value of usage within the reservation, with the unit
specified in field capacity_units.
int64 total = 1;
Parameter |
Name |
Description |
value |
long
The total to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Reservation.Standard.Usage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]