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 class
QueuedResource.BestEffort
BestEffort tier definition.static interface
QueuedResource.BestEffortOrBuilder
static class
QueuedResource.Builder
A QueuedResource represents a request for resources that will be placed in a queue and fulfilled when the necessary resources are available.static class
QueuedResource.Guaranteed
Guaranteed tier definition.static interface
QueuedResource.GuaranteedOrBuilder
static class
QueuedResource.QueueingPolicy
Defines the policy of the QueuedRequest.static interface
QueuedResource.QueueingPolicyOrBuilder
static class
QueuedResource.ResourceCase
static class
QueuedResource.Spot
Spot tier definition.static interface
QueuedResource.SpotOrBuilder
static class
QueuedResource.TierCase
static class
QueuedResource.Tpu
Details of the TPU resource(s) being requested.static interface
QueuedResource.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 int
BEST_EFFORT_FIELD_NUMBER
static int
GUARANTEED_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
QUEUEING_POLICY_FIELD_NUMBER
static int
RESERVATION_NAME_FIELD_NUMBER
static int
SPOT_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
static int
TPU_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
QueuedResource.BestEffort
getBestEffort()
The BestEffort tier.QueuedResource.BestEffortOrBuilder
getBestEffortOrBuilder()
The BestEffort tier.static QueuedResource
getDefaultInstance()
QueuedResource
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
QueuedResource.Guaranteed
getGuaranteed()
The Guaranteed tier.QueuedResource.GuaranteedOrBuilder
getGuaranteedOrBuilder()
The Guaranteed tier.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Parser<QueuedResource>
getParserForType()
QueuedResource.QueueingPolicy
getQueueingPolicy()
The queueing policy of the QueuedRequest.QueuedResource.QueueingPolicyOrBuilder
getQueueingPolicyOrBuilder()
The queueing policy of the QueuedRequest.String
getReservationName()
Name of the reservation in which the resource should be provisioned.com.google.protobuf.ByteString
getReservationNameBytes()
Name of the reservation in which the resource should be provisioned.QueuedResource.ResourceCase
getResourceCase()
int
getSerializedSize()
QueuedResource.Spot
getSpot()
Optional.QueuedResource.SpotOrBuilder
getSpotOrBuilder()
Optional.QueuedResourceState
getState()
Output only.QueuedResourceStateOrBuilder
getStateOrBuilder()
Output only.QueuedResource.TierCase
getTierCase()
QueuedResource.Tpu
getTpu()
Defines a TPU resource.QueuedResource.TpuOrBuilder
getTpuOrBuilder()
Defines a TPU resource.boolean
hasBestEffort()
The BestEffort tier.boolean
hasGuaranteed()
The Guaranteed tier.int
hashCode()
boolean
hasQueueingPolicy()
The queueing policy of the QueuedRequest.boolean
hasSpot()
Optional.boolean
hasState()
Output only.boolean
hasTpu()
Defines a TPU resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static QueuedResource.Builder
newBuilder()
static QueuedResource.Builder
newBuilder(QueuedResource prototype)
QueuedResource.Builder
newBuilderForType()
protected QueuedResource.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static QueuedResource
parseDelimitedFrom(InputStream input)
static QueuedResource
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static QueuedResource
parseFrom(byte[] data)
static QueuedResource
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static QueuedResource
parseFrom(com.google.protobuf.ByteString data)
static QueuedResource
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static QueuedResource
parseFrom(com.google.protobuf.CodedInputStream input)
static QueuedResource
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static QueuedResource
parseFrom(InputStream input)
static QueuedResource
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static QueuedResource
parseFrom(ByteBuffer data)
static QueuedResource
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<QueuedResource>
parser()
QueuedResource.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getResourceCase
public QueuedResource.ResourceCase getResourceCase()
- Specified by:
getResourceCase
in interfaceQueuedResourceOrBuilder
-
getTierCase
public QueuedResource.TierCase getTierCase()
- Specified by:
getTierCase
in 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:
getName
in 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:
getNameBytes
in interfaceQueuedResourceOrBuilder
- Returns:
- The bytes for name.
-
hasTpu
public boolean hasTpu()
Defines a TPU resource.
.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;
- Specified by:
hasTpu
in 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:
getTpu
in interfaceQueuedResourceOrBuilder
- Returns:
- The tpu.
-
getTpuOrBuilder
public QueuedResource.TpuOrBuilder getTpuOrBuilder()
Defines a TPU resource.
.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;
- Specified by:
getTpuOrBuilder
in interfaceQueuedResourceOrBuilder
-
hasBestEffort
public boolean hasBestEffort()
The BestEffort tier.
.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;
- Specified by:
hasBestEffort
in 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:
getBestEffort
in interfaceQueuedResourceOrBuilder
- Returns:
- The bestEffort.
-
getBestEffortOrBuilder
public QueuedResource.BestEffortOrBuilder getBestEffortOrBuilder()
The BestEffort tier.
.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;
- Specified by:
getBestEffortOrBuilder
in interfaceQueuedResourceOrBuilder
-
hasGuaranteed
public boolean hasGuaranteed()
The Guaranteed tier.
.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;
- Specified by:
hasGuaranteed
in 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:
getGuaranteed
in interfaceQueuedResourceOrBuilder
- Returns:
- The guaranteed.
-
getGuaranteedOrBuilder
public QueuedResource.GuaranteedOrBuilder getGuaranteedOrBuilder()
The Guaranteed tier.
.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;
- Specified by:
getGuaranteedOrBuilder
in interfaceQueuedResourceOrBuilder
-
hasSpot
public boolean hasSpot()
Optional. The Spot tier.
.google.cloud.tpu.v2alpha1.QueuedResource.Spot spot = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasSpot
in 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:
getSpot
in 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:
getSpotOrBuilder
in interfaceQueuedResourceOrBuilder
-
hasQueueingPolicy
public boolean hasQueueingPolicy()
The queueing policy of the QueuedRequest.
.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;
- Specified by:
hasQueueingPolicy
in 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:
getQueueingPolicy
in 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:
getQueueingPolicyOrBuilder
in 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:
hasState
in 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:
getState
in 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:
getStateOrBuilder
in 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:
getReservationName
in 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:
getReservationNameBytes
in interfaceQueuedResourceOrBuilder
- Returns:
- The bytes for reservationName.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected QueuedResource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public QueuedResource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-