Package com.google.cloud.tpu.v2
Class QueuedResource
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.tpu.v2.QueuedResource
- All Implemented Interfaces:
QueuedResourceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class QueuedResource
extends com.google.protobuf.GeneratedMessage
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.v2.QueuedResource- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA QueuedResource represents a request for resources that will be placed in a queue and fulfilled when the necessary resources are available.static final classGuaranteed tier definition.static interfacestatic final classDefines the policy of the QueuedRequest.static interfacestatic enumstatic final classSpot tier definition.static interfacestatic enumstatic final classDetails of the TPU resource(s) being requested.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static QueuedResourcestatic final com.google.protobuf.Descriptors.DescriptorOptional.Optional.getName()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.Parser<QueuedResource>Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.intgetSpot()Optional.Optional.getState()Output only.Output only.getTpu()Optional.Optional.booleanOutput only.booleanOptional.inthashCode()booleanOptional.booleanhasSpot()Optional.booleanhasState()Output only.booleanhasTpu()Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic QueuedResource.Builderstatic QueuedResource.BuildernewBuilder(QueuedResource prototype) protected QueuedResource.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
TPU_FIELD_NUMBER
public static final int TPU_FIELD_NUMBER- See Also:
-
SPOT_FIELD_NUMBER
public static final int SPOT_FIELD_NUMBER- See Also:
-
GUARANTEED_FIELD_NUMBER
public static final int GUARANTEED_FIELD_NUMBER- See Also:
-
QUEUEING_POLICY_FIELD_NUMBER
public static final int QUEUEING_POLICY_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
RESERVATION_NAME_FIELD_NUMBER
public static final int RESERVATION_NAME_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getResourceCase
- Specified by:
getResourceCasein interfaceQueuedResourceOrBuilder
-
getTierCase
- Specified by:
getTierCasein interfaceQueuedResourceOrBuilder
-
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.
-
hasCreateTime
public boolean hasCreateTime()Output only. The time when the QueuedResource was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceQueuedResourceOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time when the QueuedResource was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceQueuedResourceOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time when the QueuedResource was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceQueuedResourceOrBuilder
-
hasTpu
public boolean hasTpu()Optional. Defines a TPU resource.
.google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTpuin interfaceQueuedResourceOrBuilder- Returns:
- Whether the tpu field is set.
-
getTpu
Optional. Defines a TPU resource.
.google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTpuin interfaceQueuedResourceOrBuilder- Returns:
- The tpu.
-
getTpuOrBuilder
Optional. Defines a TPU resource.
.google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTpuOrBuilderin interfaceQueuedResourceOrBuilder
-
hasSpot
public boolean hasSpot()Optional. The Spot tier.
.google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSpotin interfaceQueuedResourceOrBuilder- Returns:
- Whether the spot field is set.
-
getSpot
Optional. The Spot tier.
.google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpotin interfaceQueuedResourceOrBuilder- Returns:
- The spot.
-
getSpotOrBuilder
Optional. The Spot tier.
.google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpotOrBuilderin interfaceQueuedResourceOrBuilder
-
hasGuaranteed
public boolean hasGuaranteed()Optional. The Guaranteed tier
.google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasGuaranteedin interfaceQueuedResourceOrBuilder- Returns:
- Whether the guaranteed field is set.
-
getGuaranteed
Optional. The Guaranteed tier
.google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGuaranteedin interfaceQueuedResourceOrBuilder- Returns:
- The guaranteed.
-
getGuaranteedOrBuilder
Optional. The Guaranteed tier
.google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGuaranteedOrBuilderin interfaceQueuedResourceOrBuilder
-
hasQueueingPolicy
public boolean hasQueueingPolicy()Optional. The queueing policy of the QueuedRequest.
.google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasQueueingPolicyin interfaceQueuedResourceOrBuilder- Returns:
- Whether the queueingPolicy field is set.
-
getQueueingPolicy
Optional. The queueing policy of the QueuedRequest.
.google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getQueueingPolicyin interfaceQueuedResourceOrBuilder- Returns:
- The queueingPolicy.
-
getQueueingPolicyOrBuilder
Optional. The queueing policy of the QueuedRequest.
.google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getQueueingPolicyOrBuilderin interfaceQueuedResourceOrBuilder
-
hasState
public boolean hasState()Output only. State of the QueuedResource request.
.google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasStatein interfaceQueuedResourceOrBuilder- Returns:
- Whether the state field is set.
-
getState
Output only. State of the QueuedResource request.
.google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceQueuedResourceOrBuilder- Returns:
- The state.
-
getStateOrBuilder
Output only. State of the QueuedResource request.
.google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateOrBuilderin interfaceQueuedResourceOrBuilder
-
getReservationName
Optional. Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}string reservation_name = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReservationNamein interfaceQueuedResourceOrBuilder- Returns:
- The reservationName.
-
getReservationNameBytes
public com.google.protobuf.ByteString getReservationNameBytes()Optional. Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}string reservation_name = 7 [(.google.api.field_behavior) = OPTIONAL];- 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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static QueuedResource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected QueuedResource.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-