Class QueuedResource (2.15.0)

public final class QueuedResource extends GeneratedMessageV3 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 Fields

BEST_EFFORT_FIELD_NUMBER

public static final int BEST_EFFORT_FIELD_NUMBER
Field Value
TypeDescription
int

GUARANTEED_FIELD_NUMBER

public static final int GUARANTEED_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

QUEUEING_POLICY_FIELD_NUMBER

public static final int QUEUEING_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

TPU_FIELD_NUMBER

public static final int TPU_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static QueuedResource getDefaultInstance()
Returns
TypeDescription
QueuedResource

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static QueuedResource.Builder newBuilder()
Returns
TypeDescription
QueuedResource.Builder

newBuilder(QueuedResource prototype)

public static QueuedResource.Builder newBuilder(QueuedResource prototype)
Parameter
NameDescription
prototypeQueuedResource
Returns
TypeDescription
QueuedResource.Builder

parseDelimitedFrom(InputStream input)

public static QueuedResource parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QueuedResource
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueuedResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueuedResource
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static QueuedResource parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
QueuedResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static QueuedResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueuedResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static QueuedResource parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
QueuedResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static QueuedResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueuedResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static QueuedResource parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
QueuedResource
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static QueuedResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueuedResource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static QueuedResource parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QueuedResource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueuedResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueuedResource
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static QueuedResource parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
QueuedResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static QueuedResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueuedResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<QueuedResource> parser()
Returns
TypeDescription
Parser<QueuedResource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBestEffort()

public QueuedResource.BestEffort getBestEffort()

The BestEffort tier.

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

Returns
TypeDescription
QueuedResource.BestEffort

The bestEffort.

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

getGuaranteed()

public QueuedResource.Guaranteed getGuaranteed()

The Guaranteed tier

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

Returns
TypeDescription
QueuedResource.Guaranteed

The guaranteed.

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.

getParserForType()

public Parser<QueuedResource> getParserForType()
Returns
TypeDescription
Parser<QueuedResource>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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.

getTpuOrBuilder()

public QueuedResource.TpuOrBuilder getTpuOrBuilder()

Defines a TPU resource.

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

Returns
TypeDescription
QueuedResource.TpuOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected QueuedResource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
QueuedResource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException