Class QueuedResource.Builder (2.8.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueuedResource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QueuedResource.Builder
Overrides

build()

public QueuedResource build()
Returns
TypeDescription
QueuedResource

buildPartial()

public QueuedResource buildPartial()
Returns
TypeDescription
QueuedResource

clear()

public QueuedResource.Builder clear()
Returns
TypeDescription
QueuedResource.Builder
Overrides

clearBestEffort()

public QueuedResource.Builder clearBestEffort()

The BestEffort tier.

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

Returns
TypeDescription
QueuedResource.Builder

clearField(Descriptors.FieldDescriptor field)

public QueuedResource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
QueuedResource.Builder
Overrides

clearGuaranteed()

public QueuedResource.Builder clearGuaranteed()

The Guaranteed tier

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

Returns
TypeDescription
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
TypeDescription
QueuedResource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public QueuedResource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
QueuedResource.Builder
Overrides

clearQueueingPolicy()

public QueuedResource.Builder clearQueueingPolicy()

The queueing policy of the QueuedRequest.

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

Returns
TypeDescription
QueuedResource.Builder

clearResource()

public QueuedResource.Builder clearResource()
Returns
TypeDescription
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
TypeDescription
QueuedResource.Builder

clearTier()

public QueuedResource.Builder clearTier()
Returns
TypeDescription
QueuedResource.Builder

clearTpu()

public QueuedResource.Builder clearTpu()

Defines a TPU resource.

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

Returns
TypeDescription
QueuedResource.Builder

clone()

public QueuedResource.Builder clone()
Returns
TypeDescription
QueuedResource.Builder
Overrides

getBestEffort()

public QueuedResource.BestEffort getBestEffort()

The BestEffort tier.

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

Returns
TypeDescription
QueuedResource.BestEffort

The bestEffort.

getBestEffortBuilder()

public QueuedResource.BestEffort.Builder getBestEffortBuilder()

The BestEffort tier.

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

Returns
TypeDescription
QueuedResource.BestEffort.Builder

getBestEffortOrBuilder()

public QueuedResource.BestEffortOrBuilder getBestEffortOrBuilder()

The BestEffort tier.

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

Returns
TypeDescription
QueuedResource.BestEffortOrBuilder

getDefaultInstanceForType()

public QueuedResource getDefaultInstanceForType()
Returns
TypeDescription
QueuedResource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGuaranteed()

public QueuedResource.Guaranteed getGuaranteed()

The Guaranteed tier

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

Returns
TypeDescription
QueuedResource.Guaranteed

The guaranteed.

getGuaranteedBuilder()

public QueuedResource.Guaranteed.Builder getGuaranteedBuilder()

The Guaranteed tier

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

Returns
TypeDescription
QueuedResource.Guaranteed.Builder

getGuaranteedOrBuilder()

public QueuedResource.GuaranteedOrBuilder getGuaranteedOrBuilder()

The Guaranteed tier

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
QueuedResource.QueueingPolicy.Builder

getQueueingPolicyOrBuilder()

public QueuedResource.QueueingPolicyOrBuilder getQueueingPolicyOrBuilder()

The queueing policy of the QueuedRequest.

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

Returns
TypeDescription
QueuedResource.QueueingPolicyOrBuilder

getResourceCase()

public QueuedResource.ResourceCase getResourceCase()
Returns
TypeDescription
QueuedResource.ResourceCase

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
TypeDescription
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
TypeDescription
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
TypeDescription
QueuedResourceStateOrBuilder

getTierCase()

public QueuedResource.TierCase getTierCase()
Returns
TypeDescription
QueuedResource.TierCase

getTpu()

public QueuedResource.Tpu getTpu()

Defines a TPU resource.

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

Returns
TypeDescription
QueuedResource.Tpu

The tpu.

getTpuBuilder()

public QueuedResource.Tpu.Builder getTpuBuilder()

Defines a TPU resource.

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

Returns
TypeDescription
QueuedResource.Tpu.Builder

getTpuOrBuilder()

public QueuedResource.TpuOrBuilder getTpuOrBuilder()

Defines a TPU resource.

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

Returns
TypeDescription
QueuedResource.TpuOrBuilder

hasBestEffort()

public boolean hasBestEffort()

The BestEffort tier.

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

Returns
TypeDescription
boolean

Whether the bestEffort field is set.

hasGuaranteed()

public boolean hasGuaranteed()

The Guaranteed tier

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the queueingPolicy 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
TypeDescription
boolean

Whether the state field is set.

hasTpu()

public boolean hasTpu()

Defines a TPU resource.

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

Returns
TypeDescription
boolean

Whether the tpu field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueQueuedResource.BestEffort
Returns
TypeDescription
QueuedResource.Builder

mergeFrom(QueuedResource other)

public QueuedResource.Builder mergeFrom(QueuedResource other)
Parameter
NameDescription
otherQueuedResource
Returns
TypeDescription
QueuedResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QueuedResource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueuedResource.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public QueuedResource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueQueuedResource.Guaranteed
Returns
TypeDescription
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
NameDescription
valueQueuedResource.QueueingPolicy
Returns
TypeDescription
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
NameDescription
valueQueuedResourceState
Returns
TypeDescription
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
NameDescription
valueQueuedResource.Tpu
Returns
TypeDescription
QueuedResource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueuedResource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueQueuedResource.BestEffort
Returns
TypeDescription
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
NameDescription
builderForValueQueuedResource.BestEffort.Builder
Returns
TypeDescription
QueuedResource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public QueuedResource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueQueuedResource.Guaranteed
Returns
TypeDescription
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
NameDescription
builderForValueQueuedResource.Guaranteed.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueQueuedResource.QueueingPolicy
Returns
TypeDescription
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
NameDescription
builderForValueQueuedResource.QueueingPolicy.Builder
Returns
TypeDescription
QueuedResource.Builder

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

public QueuedResource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
QueuedResource.Builder
Overrides

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
NameDescription
valueQueuedResourceState
Returns
TypeDescription
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
NameDescription
builderForValueQueuedResourceState.Builder
Returns
TypeDescription
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
NameDescription
valueQueuedResource.Tpu
Returns
TypeDescription
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
NameDescription
builderForValueQueuedResource.Tpu.Builder
Returns
TypeDescription
QueuedResource.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final QueuedResource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueuedResource.Builder
Overrides