Class Reservation.Standard.Builder (2.58.0)

public static final class Reservation.Standard.Builder extends GeneratedMessageV3.Builder<Reservation.Standard.Builder> implements Reservation.StandardOrBuilder

Details of a standard reservation.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public Reservation.Standard.Builder clear()
Returns
Type Description
Reservation.Standard.Builder
Overrides

clearCapacityUnits()

public Reservation.Standard.Builder clearCapacityUnits()

Capacity units this reservation is measured in.

.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;

Returns
Type Description
Reservation.Standard.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Reservation.Standard.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Reservation.Standard.Builder
Overrides

clearInterval()

public Reservation.Standard.Builder clearInterval()

The start and end time of the reservation.

.google.type.Interval interval = 4;

Returns
Type Description
Reservation.Standard.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Reservation.Standard.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Reservation.Standard.Builder
Overrides

clearResourceType()

public Reservation.Standard.Builder clearResourceType()

The resource type of the reservation.

string resource_type = 3;

Returns
Type Description
Reservation.Standard.Builder

This builder for chaining.

clearSize()

public Reservation.Standard.Builder clearSize()

The size of the reservation, in the units specified in the 'capacity_units' field.

int32 size = 1;

Returns
Type Description
Reservation.Standard.Builder

This builder for chaining.

clearUsage()

public Reservation.Standard.Builder clearUsage()

The current usage of the reservation.

.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;

Returns
Type Description
Reservation.Standard.Builder

clone()

public Reservation.Standard.Builder clone()
Returns
Type Description
Reservation.Standard.Builder
Overrides

getCapacityUnits()

public Reservation.Standard.CapacityUnits getCapacityUnits()

Capacity units this reservation is measured in.

.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;

Returns
Type Description
Reservation.Standard.CapacityUnits

The capacityUnits.

getCapacityUnitsValue()

public int getCapacityUnitsValue()

Capacity units this reservation is measured in.

.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;

Returns
Type Description
int

The enum numeric value on the wire for capacityUnits.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getInterval()

public Interval getInterval()

The start and end time of the reservation.

.google.type.Interval interval = 4;

Returns
Type Description
com.google.type.Interval

The interval.

getIntervalBuilder()

public Interval.Builder getIntervalBuilder()

The start and end time of the reservation.

.google.type.Interval interval = 4;

Returns
Type Description
com.google.type.Interval.Builder

getIntervalOrBuilder()

public IntervalOrBuilder getIntervalOrBuilder()

The start and end time of the reservation.

.google.type.Interval interval = 4;

Returns
Type Description
com.google.type.IntervalOrBuilder

getResourceType()

public String getResourceType()

The resource type of the reservation.

string resource_type = 3;

Returns
Type Description
String

The resourceType.

getResourceTypeBytes()

public ByteString getResourceTypeBytes()

The resource type of the reservation.

string resource_type = 3;

Returns
Type Description
ByteString

The bytes for resourceType.

getSize()

public int getSize()

The size of the reservation, in the units specified in the 'capacity_units' field.

int32 size = 1;

Returns
Type Description
int

The size.

getUsage()

public Reservation.Standard.Usage getUsage()

The current usage of the reservation.

.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;

Returns
Type Description
Reservation.Standard.Usage

The usage.

getUsageBuilder()

public Reservation.Standard.Usage.Builder getUsageBuilder()

The current usage of the reservation.

.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;

Returns
Type Description
Reservation.Standard.Usage.Builder

getUsageOrBuilder()

public Reservation.Standard.UsageOrBuilder getUsageOrBuilder()

The current usage of the reservation.

.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;

Returns
Type Description
Reservation.Standard.UsageOrBuilder

hasInterval()

public boolean hasInterval()

The start and end time of the reservation.

.google.type.Interval interval = 4;

Returns
Type Description
boolean

Whether the interval field is set.

hasUsage()

public boolean hasUsage()

The current usage of the reservation.

.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;

Returns
Type Description
boolean

Whether the usage field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Reservation.Standard other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInterval(Interval value)

public Reservation.Standard.Builder mergeInterval(Interval value)

The start and end time of the reservation.

.google.type.Interval interval = 4;

Parameter
Name Description
value com.google.type.Interval
Returns
Type Description
Reservation.Standard.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Reservation.Standard.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Reservation.Standard.Builder
Overrides

mergeUsage(Reservation.Standard.Usage value)

public Reservation.Standard.Builder mergeUsage(Reservation.Standard.Usage value)

The current usage of the reservation.

.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;

Parameter
Name Description
value Reservation.Standard.Usage
Returns
Type Description
Reservation.Standard.Builder

setCapacityUnits(Reservation.Standard.CapacityUnits value)

public Reservation.Standard.Builder setCapacityUnits(Reservation.Standard.CapacityUnits value)

Capacity units this reservation is measured in.

.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;

Parameter
Name Description
value Reservation.Standard.CapacityUnits

The capacityUnits to set.

Returns
Type Description
Reservation.Standard.Builder

This builder for chaining.

setCapacityUnitsValue(int value)

public Reservation.Standard.Builder setCapacityUnitsValue(int value)

Capacity units this reservation is measured in.

.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for capacityUnits to set.

Returns
Type Description
Reservation.Standard.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInterval(Interval value)

public Reservation.Standard.Builder setInterval(Interval value)

The start and end time of the reservation.

.google.type.Interval interval = 4;

Parameter
Name Description
value com.google.type.Interval
Returns
Type Description
Reservation.Standard.Builder

setInterval(Interval.Builder builderForValue)

public Reservation.Standard.Builder setInterval(Interval.Builder builderForValue)

The start and end time of the reservation.

.google.type.Interval interval = 4;

Parameter
Name Description
builderForValue com.google.type.Interval.Builder
Returns
Type Description
Reservation.Standard.Builder

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

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

setResourceType(String value)

public Reservation.Standard.Builder setResourceType(String value)

The resource type of the reservation.

string resource_type = 3;

Parameter
Name Description
value String

The resourceType to set.

Returns
Type Description
Reservation.Standard.Builder

This builder for chaining.

setResourceTypeBytes(ByteString value)

public Reservation.Standard.Builder setResourceTypeBytes(ByteString value)

The resource type of the reservation.

string resource_type = 3;

Parameter
Name Description
value ByteString

The bytes for resourceType to set.

Returns
Type Description
Reservation.Standard.Builder

This builder for chaining.

setSize(int value)

public Reservation.Standard.Builder setSize(int value)

The size of the reservation, in the units specified in the 'capacity_units' field.

int32 size = 1;

Parameter
Name Description
value int

The size to set.

Returns
Type Description
Reservation.Standard.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Reservation.Standard.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Reservation.Standard.Builder
Overrides

setUsage(Reservation.Standard.Usage value)

public Reservation.Standard.Builder setUsage(Reservation.Standard.Usage value)

The current usage of the reservation.

.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;

Parameter
Name Description
value Reservation.Standard.Usage
Returns
Type Description
Reservation.Standard.Builder

setUsage(Reservation.Standard.Usage.Builder builderForValue)

public Reservation.Standard.Builder setUsage(Reservation.Standard.Usage.Builder builderForValue)

The current usage of the reservation.

.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;

Parameter
Name Description
builderForValue Reservation.Standard.Usage.Builder
Returns
Type Description
Reservation.Standard.Builder