Class Reservation.Standard.Usage.Builder (2.84.0)

public static final class Reservation.Standard.Usage.Builder extends GeneratedMessage.Builder<Reservation.Standard.Usage.Builder> implements Reservation.Standard.UsageOrBuilder

Usage details of a reservation.

Protobuf type google.cloud.tpu.v2alpha1.Reservation.Standard.Usage

Static Methods

getDescriptor()

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

Methods

build()

public Reservation.Standard.Usage build()
Returns
Type Description
Reservation.Standard.Usage

buildPartial()

public Reservation.Standard.Usage buildPartial()
Returns
Type Description
Reservation.Standard.Usage

clear()

public Reservation.Standard.Usage.Builder clear()
Returns
Type Description
Reservation.Standard.Usage.Builder
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;

Returns
Type Description
Reservation.Standard.Usage.Builder

This builder for chaining.

getDefaultInstanceForType()

public Reservation.Standard.Usage getDefaultInstanceForType()
Returns
Type Description
Reservation.Standard.Usage

getDescriptorForType()

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

getTotal()

public long 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Reservation.Standard.Usage other)

public Reservation.Standard.Usage.Builder mergeFrom(Reservation.Standard.Usage other)
Parameter
Name Description
other Reservation.Standard.Usage
Returns
Type Description
Reservation.Standard.Usage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Reservation.Standard.Usage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Reservation.Standard.Usage.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Reservation.Standard.Usage.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Reservation.Standard.Usage.Builder
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.

Returns
Type Description
Reservation.Standard.Usage.Builder

This builder for chaining.