Package com.google.cloud.tpu.v2alpha1
Class QueuedResource
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.tpu.v2alpha1.QueuedResource
-
- All Implemented Interfaces:
QueuedResourceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class QueuedResource extends com.google.protobuf.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 typegoogle.cloud.tpu.v2alpha1.QueuedResource- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQueuedResource.BestEffortBestEffort tier definition.static interfaceQueuedResource.BestEffortOrBuilderstatic classQueuedResource.BuilderA QueuedResource represents a request for resources that will be placed in a queue and fulfilled when the necessary resources are available.static classQueuedResource.GuaranteedGuaranteed tier definition.static interfaceQueuedResource.GuaranteedOrBuilderstatic classQueuedResource.QueueingPolicyDefines the policy of the QueuedRequest.static interfaceQueuedResource.QueueingPolicyOrBuilderstatic classQueuedResource.ResourceCasestatic classQueuedResource.SpotSpot tier definition.static interfaceQueuedResource.SpotOrBuilderstatic classQueuedResource.TierCasestatic classQueuedResource.TpuDetails of the TPU resource(s) being requested.static interfaceQueuedResource.TpuOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBEST_EFFORT_FIELD_NUMBERstatic intGUARANTEED_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intQUEUEING_POLICY_FIELD_NUMBERstatic intRESERVATION_NAME_FIELD_NUMBERstatic intSPOT_FIELD_NUMBERstatic intSTATE_FIELD_NUMBERstatic intTPU_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)QueuedResource.BestEffortgetBestEffort()The BestEffort tier.QueuedResource.BestEffortOrBuildergetBestEffortOrBuilder()The BestEffort tier.static QueuedResourcegetDefaultInstance()QueuedResourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()QueuedResource.GuaranteedgetGuaranteed()The Guaranteed tier.QueuedResource.GuaranteedOrBuildergetGuaranteedOrBuilder()The Guaranteed tier.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.com.google.protobuf.Parser<QueuedResource>getParserForType()QueuedResource.QueueingPolicygetQueueingPolicy()The queueing policy of the QueuedRequest.QueuedResource.QueueingPolicyOrBuildergetQueueingPolicyOrBuilder()The queueing policy of the QueuedRequest.StringgetReservationName()Name of the reservation in which the resource should be provisioned.com.google.protobuf.ByteStringgetReservationNameBytes()Name of the reservation in which the resource should be provisioned.QueuedResource.ResourceCasegetResourceCase()intgetSerializedSize()QueuedResource.SpotgetSpot()Optional.QueuedResource.SpotOrBuildergetSpotOrBuilder()Optional.QueuedResourceStategetState()Output only.QueuedResourceStateOrBuildergetStateOrBuilder()Output only.QueuedResource.TierCasegetTierCase()QueuedResource.TpugetTpu()Defines a TPU resource.QueuedResource.TpuOrBuildergetTpuOrBuilder()Defines a TPU resource.booleanhasBestEffort()The BestEffort tier.booleanhasGuaranteed()The Guaranteed tier.inthashCode()booleanhasQueueingPolicy()The queueing policy of the QueuedRequest.booleanhasSpot()Optional.booleanhasState()Output only.booleanhasTpu()Defines a TPU resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static QueuedResource.BuildernewBuilder()static QueuedResource.BuildernewBuilder(QueuedResource prototype)QueuedResource.BuildernewBuilderForType()protected QueuedResource.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static QueuedResourceparseDelimitedFrom(InputStream input)static QueuedResourceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static QueuedResourceparseFrom(byte[] data)static QueuedResourceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static QueuedResourceparseFrom(com.google.protobuf.ByteString data)static QueuedResourceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static QueuedResourceparseFrom(com.google.protobuf.CodedInputStream input)static QueuedResourceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static QueuedResourceparseFrom(InputStream input)static QueuedResourceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static QueuedResourceparseFrom(ByteBuffer data)static QueuedResourceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<QueuedResource>parser()QueuedResource.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TPU_FIELD_NUMBER
public static final int TPU_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BEST_EFFORT_FIELD_NUMBER
public static final int BEST_EFFORT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GUARANTEED_FIELD_NUMBER
public static final int GUARANTEED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SPOT_FIELD_NUMBER
public static final int SPOT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUEUEING_POLICY_FIELD_NUMBER
public static final int QUEUEING_POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESERVATION_NAME_FIELD_NUMBER
public static final int RESERVATION_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getResourceCase
public QueuedResource.ResourceCase getResourceCase()
- Specified by:
getResourceCasein interfaceQueuedResourceOrBuilder
-
getTierCase
public QueuedResource.TierCase getTierCase()
- Specified by:
getTierCasein interfaceQueuedResourceOrBuilder
-
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];- Specified by:
getNamein interfaceQueuedResourceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. Immutable. The name of the QueuedResource.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNameBytesin interfaceQueuedResourceOrBuilder- Returns:
- The bytes for name.
-
hasTpu
public boolean hasTpu()
Defines a TPU resource.
.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;- Specified by:
hasTpuin interfaceQueuedResourceOrBuilder- Returns:
- Whether the tpu field is set.
-
getTpu
public QueuedResource.Tpu getTpu()
Defines a TPU resource.
.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;- Specified by:
getTpuin interfaceQueuedResourceOrBuilder- Returns:
- The tpu.
-
getTpuOrBuilder
public QueuedResource.TpuOrBuilder getTpuOrBuilder()
Defines a TPU resource.
.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;- Specified by:
getTpuOrBuilderin interfaceQueuedResourceOrBuilder
-
hasBestEffort
public boolean hasBestEffort()
The BestEffort tier.
.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;- Specified by:
hasBestEffortin interfaceQueuedResourceOrBuilder- Returns:
- Whether the bestEffort field is set.
-
getBestEffort
public QueuedResource.BestEffort getBestEffort()
The BestEffort tier.
.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;- Specified by:
getBestEffortin interfaceQueuedResourceOrBuilder- Returns:
- The bestEffort.
-
getBestEffortOrBuilder
public QueuedResource.BestEffortOrBuilder getBestEffortOrBuilder()
The BestEffort tier.
.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;- Specified by:
getBestEffortOrBuilderin interfaceQueuedResourceOrBuilder
-
hasGuaranteed
public boolean hasGuaranteed()
The Guaranteed tier.
.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;- Specified by:
hasGuaranteedin interfaceQueuedResourceOrBuilder- Returns:
- Whether the guaranteed field is set.
-
getGuaranteed
public QueuedResource.Guaranteed getGuaranteed()
The Guaranteed tier.
.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;- Specified by:
getGuaranteedin interfaceQueuedResourceOrBuilder- Returns:
- The guaranteed.
-
getGuaranteedOrBuilder
public QueuedResource.GuaranteedOrBuilder getGuaranteedOrBuilder()
The Guaranteed tier.
.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;- Specified by:
getGuaranteedOrBuilderin interfaceQueuedResourceOrBuilder
-
hasSpot
public boolean hasSpot()
Optional. The Spot tier.
.google.cloud.tpu.v2alpha1.QueuedResource.Spot spot = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSpotin interfaceQueuedResourceOrBuilder- Returns:
- Whether the spot field is set.
-
getSpot
public QueuedResource.Spot getSpot()
Optional. The Spot tier.
.google.cloud.tpu.v2alpha1.QueuedResource.Spot spot = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpotin interfaceQueuedResourceOrBuilder- Returns:
- The spot.
-
getSpotOrBuilder
public QueuedResource.SpotOrBuilder getSpotOrBuilder()
Optional. The Spot tier.
.google.cloud.tpu.v2alpha1.QueuedResource.Spot spot = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpotOrBuilderin interfaceQueuedResourceOrBuilder
-
hasQueueingPolicy
public boolean hasQueueingPolicy()
The queueing policy of the QueuedRequest.
.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;- Specified by:
hasQueueingPolicyin interfaceQueuedResourceOrBuilder- Returns:
- Whether the queueingPolicy field is set.
-
getQueueingPolicy
public QueuedResource.QueueingPolicy getQueueingPolicy()
The queueing policy of the QueuedRequest.
.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;- Specified by:
getQueueingPolicyin interfaceQueuedResourceOrBuilder- Returns:
- The queueingPolicy.
-
getQueueingPolicyOrBuilder
public QueuedResource.QueueingPolicyOrBuilder getQueueingPolicyOrBuilder()
The queueing policy of the QueuedRequest.
.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;- Specified by:
getQueueingPolicyOrBuilderin interfaceQueuedResourceOrBuilder
-
hasState
public boolean hasState()
Output only. State of the QueuedResource request.
.google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasStatein interfaceQueuedResourceOrBuilder- Returns:
- Whether the state field is set.
-
getState
public QueuedResourceState getState()
Output only. State of the QueuedResource request.
.google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceQueuedResourceOrBuilder- Returns:
- 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];- Specified by:
getStateOrBuilderin interfaceQueuedResourceOrBuilder
-
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;- Specified by:
getReservationNamein interfaceQueuedResourceOrBuilder- Returns:
- The reservationName.
-
getReservationNameBytes
public com.google.protobuf.ByteString getReservationNameBytes()
Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}string reservation_name = 8;- Specified by:
getReservationNameBytesin interfaceQueuedResourceOrBuilder- Returns:
- The bytes for reservationName.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static QueuedResource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueuedResource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueuedResource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueuedResource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueuedResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueuedResource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueuedResource parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static QueuedResource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static QueuedResource parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static QueuedResource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static QueuedResource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static QueuedResource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public QueuedResource.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static QueuedResource.Builder newBuilder()
-
newBuilder
public static QueuedResource.Builder newBuilder(QueuedResource prototype)
-
toBuilder
public QueuedResource.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected QueuedResource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static QueuedResource getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<QueuedResource> parser()
-
getParserForType
public com.google.protobuf.Parser<QueuedResource> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public QueuedResource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-