Class QueuedResource.Builder (2.52.0)

public static final class QueuedResource.Builder extends GeneratedMessageV3.Builder<QueuedResource.Builder> implements QueuedResourceOrBuilder

A QueuedResource represents a request for resources that will be placed in a queue and fulfilled when the necessary resources are available.

Protobuf type google.cloud.tpu.v2alpha1.QueuedResource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QueuedResource build()
Returns
Type Description
QueuedResource

buildPartial()

public QueuedResource buildPartial()
Returns
Type Description
QueuedResource

clear()

public QueuedResource.Builder clear()
Returns
Type Description
QueuedResource.Builder
Overrides

clearBestEffort()

public QueuedResource.Builder clearBestEffort()

The BestEffort tier.

.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;

Returns
Type Description
QueuedResource.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGuaranteed()

public QueuedResource.Builder clearGuaranteed()

The Guaranteed tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;

Returns
Type Description
QueuedResource.Builder

clearName()

public QueuedResource.Builder clearName()

Output only. Immutable. The name of the QueuedResource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
QueuedResource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQueueingPolicy()

public QueuedResource.Builder clearQueueingPolicy()

The queueing policy of the QueuedRequest.

.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;

Returns
Type Description
QueuedResource.Builder

clearReservationName()

public QueuedResource.Builder clearReservationName()

Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}

string reservation_name = 8;

Returns
Type Description
QueuedResource.Builder

This builder for chaining.

clearResource()

public QueuedResource.Builder clearResource()
Returns
Type Description
QueuedResource.Builder

clearSpot()

public QueuedResource.Builder clearSpot()

Optional. The Spot tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Spot spot = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
QueuedResource.Builder

clearState()

public QueuedResource.Builder clearState()

Output only. State of the QueuedResource request.

.google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QueuedResource.Builder

clearTier()

public QueuedResource.Builder clearTier()
Returns
Type Description
QueuedResource.Builder

clearTpu()

public QueuedResource.Builder clearTpu()

Defines a TPU resource.

.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;

Returns
Type Description
QueuedResource.Builder

clone()

public QueuedResource.Builder clone()
Returns
Type Description
QueuedResource.Builder
Overrides

getBestEffort()

public QueuedResource.BestEffort getBestEffort()

The BestEffort tier.

.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;

Returns
Type Description
QueuedResource.BestEffort

The bestEffort.

getBestEffortBuilder()

public QueuedResource.BestEffort.Builder getBestEffortBuilder()

The BestEffort tier.

.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;

Returns
Type Description
QueuedResource.BestEffort.Builder

getBestEffortOrBuilder()

public QueuedResource.BestEffortOrBuilder getBestEffortOrBuilder()

The BestEffort tier.

.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;

Returns
Type Description
QueuedResource.BestEffortOrBuilder

getDefaultInstanceForType()

public QueuedResource getDefaultInstanceForType()
Returns
Type Description
QueuedResource

getDescriptorForType()

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

getGuaranteed()

public QueuedResource.Guaranteed getGuaranteed()

The Guaranteed tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;

Returns
Type Description
QueuedResource.Guaranteed

The guaranteed.

getGuaranteedBuilder()

public QueuedResource.Guaranteed.Builder getGuaranteedBuilder()

The Guaranteed tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;

Returns
Type Description
QueuedResource.Guaranteed.Builder

getGuaranteedOrBuilder()

public QueuedResource.GuaranteedOrBuilder getGuaranteedOrBuilder()

The Guaranteed tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;

Returns
Type Description
QueuedResource.GuaranteedOrBuilder

getName()

public String getName()

Output only. Immutable. The name of the QueuedResource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Immutable. The name of the QueuedResource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for name.

getQueueingPolicy()

public QueuedResource.QueueingPolicy getQueueingPolicy()

The queueing policy of the QueuedRequest.

.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;

Returns
Type Description
QueuedResource.QueueingPolicy

The queueingPolicy.

getQueueingPolicyBuilder()

public QueuedResource.QueueingPolicy.Builder getQueueingPolicyBuilder()

The queueing policy of the QueuedRequest.

.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;

Returns
Type Description
QueuedResource.QueueingPolicy.Builder

getQueueingPolicyOrBuilder()

public QueuedResource.QueueingPolicyOrBuilder getQueueingPolicyOrBuilder()

The queueing policy of the QueuedRequest.

.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;

Returns
Type Description
QueuedResource.QueueingPolicyOrBuilder

getReservationName()

public String getReservationName()

Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}

string reservation_name = 8;

Returns
Type Description
String

The reservationName.

getReservationNameBytes()

public ByteString getReservationNameBytes()

Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}

string reservation_name = 8;

Returns
Type Description
ByteString

The bytes for reservationName.

getResourceCase()

public QueuedResource.ResourceCase getResourceCase()
Returns
Type Description
QueuedResource.ResourceCase

getSpot()

public QueuedResource.Spot getSpot()

Optional. The Spot tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Spot spot = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
QueuedResource.Spot

The spot.

getSpotBuilder()

public QueuedResource.Spot.Builder getSpotBuilder()

Optional. The Spot tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Spot spot = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
QueuedResource.Spot.Builder

getSpotOrBuilder()

public QueuedResource.SpotOrBuilder getSpotOrBuilder()

Optional. The Spot tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Spot spot = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
QueuedResource.SpotOrBuilder

getState()

public QueuedResourceState getState()

Output only. State of the QueuedResource request.

.google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QueuedResourceState

The state.

getStateBuilder()

public QueuedResourceState.Builder getStateBuilder()

Output only. State of the QueuedResource request.

.google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QueuedResourceState.Builder

getStateOrBuilder()

public QueuedResourceStateOrBuilder getStateOrBuilder()

Output only. State of the QueuedResource request.

.google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QueuedResourceStateOrBuilder

getTierCase()

public QueuedResource.TierCase getTierCase()
Returns
Type Description
QueuedResource.TierCase

getTpu()

public QueuedResource.Tpu getTpu()

Defines a TPU resource.

.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;

Returns
Type Description
QueuedResource.Tpu

The tpu.

getTpuBuilder()

public QueuedResource.Tpu.Builder getTpuBuilder()

Defines a TPU resource.

.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;

Returns
Type Description
QueuedResource.Tpu.Builder

getTpuOrBuilder()

public QueuedResource.TpuOrBuilder getTpuOrBuilder()

Defines a TPU resource.

.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;

Returns
Type Description
QueuedResource.TpuOrBuilder

hasBestEffort()

public boolean hasBestEffort()

The BestEffort tier.

.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;

Returns
Type Description
boolean

Whether the bestEffort field is set.

hasGuaranteed()

public boolean hasGuaranteed()

The Guaranteed tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;

Returns
Type Description
boolean

Whether the guaranteed field is set.

hasQueueingPolicy()

public boolean hasQueueingPolicy()

The queueing policy of the QueuedRequest.

.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;

Returns
Type Description
boolean

Whether the queueingPolicy field is set.

hasSpot()

public boolean hasSpot()

Optional. The Spot tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Spot spot = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the spot field is set.

hasState()

public boolean hasState()

Output only. State of the QueuedResource request.

.google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the state field is set.

hasTpu()

public boolean hasTpu()

Defines a TPU resource.

.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;

Returns
Type Description
boolean

Whether the tpu field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBestEffort(QueuedResource.BestEffort value)

public QueuedResource.Builder mergeBestEffort(QueuedResource.BestEffort value)

The BestEffort tier.

.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;

Parameter
Name Description
value QueuedResource.BestEffort
Returns
Type Description
QueuedResource.Builder

mergeFrom(QueuedResource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGuaranteed(QueuedResource.Guaranteed value)

public QueuedResource.Builder mergeGuaranteed(QueuedResource.Guaranteed value)

The Guaranteed tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;

Parameter
Name Description
value QueuedResource.Guaranteed
Returns
Type Description
QueuedResource.Builder

mergeQueueingPolicy(QueuedResource.QueueingPolicy value)

public QueuedResource.Builder mergeQueueingPolicy(QueuedResource.QueueingPolicy value)

The queueing policy of the QueuedRequest.

.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;

Parameter
Name Description
value QueuedResource.QueueingPolicy
Returns
Type Description
QueuedResource.Builder

mergeSpot(QueuedResource.Spot value)

public QueuedResource.Builder mergeSpot(QueuedResource.Spot value)

Optional. The Spot tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Spot spot = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value QueuedResource.Spot
Returns
Type Description
QueuedResource.Builder

mergeState(QueuedResourceState value)

public QueuedResource.Builder mergeState(QueuedResourceState value)

Output only. State of the QueuedResource request.

.google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value QueuedResourceState
Returns
Type Description
QueuedResource.Builder

mergeTpu(QueuedResource.Tpu value)

public QueuedResource.Builder mergeTpu(QueuedResource.Tpu value)

Defines a TPU resource.

.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;

Parameter
Name Description
value QueuedResource.Tpu
Returns
Type Description
QueuedResource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBestEffort(QueuedResource.BestEffort value)

public QueuedResource.Builder setBestEffort(QueuedResource.BestEffort value)

The BestEffort tier.

.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;

Parameter
Name Description
value QueuedResource.BestEffort
Returns
Type Description
QueuedResource.Builder

setBestEffort(QueuedResource.BestEffort.Builder builderForValue)

public QueuedResource.Builder setBestEffort(QueuedResource.BestEffort.Builder builderForValue)

The BestEffort tier.

.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;

Parameter
Name Description
builderForValue QueuedResource.BestEffort.Builder
Returns
Type Description
QueuedResource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGuaranteed(QueuedResource.Guaranteed value)

public QueuedResource.Builder setGuaranteed(QueuedResource.Guaranteed value)

The Guaranteed tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;

Parameter
Name Description
value QueuedResource.Guaranteed
Returns
Type Description
QueuedResource.Builder

setGuaranteed(QueuedResource.Guaranteed.Builder builderForValue)

public QueuedResource.Builder setGuaranteed(QueuedResource.Guaranteed.Builder builderForValue)

The Guaranteed tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;

Parameter
Name Description
builderForValue QueuedResource.Guaranteed.Builder
Returns
Type Description
QueuedResource.Builder

setName(String value)

public QueuedResource.Builder setName(String value)

Output only. Immutable. The name of the QueuedResource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
QueuedResource.Builder

This builder for chaining.

setNameBytes(ByteString value)

public QueuedResource.Builder setNameBytes(ByteString value)

Output only. Immutable. The name of the QueuedResource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
QueuedResource.Builder

This builder for chaining.

setQueueingPolicy(QueuedResource.QueueingPolicy value)

public QueuedResource.Builder setQueueingPolicy(QueuedResource.QueueingPolicy value)

The queueing policy of the QueuedRequest.

.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;

Parameter
Name Description
value QueuedResource.QueueingPolicy
Returns
Type Description
QueuedResource.Builder

setQueueingPolicy(QueuedResource.QueueingPolicy.Builder builderForValue)

public QueuedResource.Builder setQueueingPolicy(QueuedResource.QueueingPolicy.Builder builderForValue)

The queueing policy of the QueuedRequest.

.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;

Parameter
Name Description
builderForValue QueuedResource.QueueingPolicy.Builder
Returns
Type Description
QueuedResource.Builder

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

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

setReservationName(String value)

public QueuedResource.Builder setReservationName(String value)

Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}

string reservation_name = 8;

Parameter
Name Description
value String

The reservationName to set.

Returns
Type Description
QueuedResource.Builder

This builder for chaining.

setReservationNameBytes(ByteString value)

public QueuedResource.Builder setReservationNameBytes(ByteString value)

Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}

string reservation_name = 8;

Parameter
Name Description
value ByteString

The bytes for reservationName to set.

Returns
Type Description
QueuedResource.Builder

This builder for chaining.

setSpot(QueuedResource.Spot value)

public QueuedResource.Builder setSpot(QueuedResource.Spot value)

Optional. The Spot tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Spot spot = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value QueuedResource.Spot
Returns
Type Description
QueuedResource.Builder

setSpot(QueuedResource.Spot.Builder builderForValue)

public QueuedResource.Builder setSpot(QueuedResource.Spot.Builder builderForValue)

Optional. The Spot tier.

.google.cloud.tpu.v2alpha1.QueuedResource.Spot spot = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue QueuedResource.Spot.Builder
Returns
Type Description
QueuedResource.Builder

setState(QueuedResourceState value)

public QueuedResource.Builder setState(QueuedResourceState value)

Output only. State of the QueuedResource request.

.google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value QueuedResourceState
Returns
Type Description
QueuedResource.Builder

setState(QueuedResourceState.Builder builderForValue)

public QueuedResource.Builder setState(QueuedResourceState.Builder builderForValue)

Output only. State of the QueuedResource request.

.google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue QueuedResourceState.Builder
Returns
Type Description
QueuedResource.Builder

setTpu(QueuedResource.Tpu value)

public QueuedResource.Builder setTpu(QueuedResource.Tpu value)

Defines a TPU resource.

.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;

Parameter
Name Description
value QueuedResource.Tpu
Returns
Type Description
QueuedResource.Builder

setTpu(QueuedResource.Tpu.Builder builderForValue)

public QueuedResource.Builder setTpu(QueuedResource.Tpu.Builder builderForValue)

Defines a TPU resource.

.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;

Parameter
Name Description
builderForValue QueuedResource.Tpu.Builder
Returns
Type Description
QueuedResource.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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