Class 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 type google.cloud.tpu.v2alpha1.QueuedResource
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.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 class com.google.protobuf.GeneratedMessageV3
      • 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 interface QueuedResourceOrBuilder
        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 interface QueuedResourceOrBuilder
        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 interface QueuedResourceOrBuilder
        Returns:
        Whether the tpu field is set.
      • hasBestEffort

        public boolean hasBestEffort()
         The BestEffort tier.
         
        .google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;
        Specified by:
        hasBestEffort in interface QueuedResourceOrBuilder
        Returns:
        Whether the bestEffort field is set.
      • hasGuaranteed

        public boolean hasGuaranteed()
         The Guaranteed tier.
         
        .google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;
        Specified by:
        hasGuaranteed in interface QueuedResourceOrBuilder
        Returns:
        Whether the guaranteed field is set.
      • 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 interface QueuedResourceOrBuilder
        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 interface QueuedResourceOrBuilder
        Returns:
        The spot.
      • hasQueueingPolicy

        public boolean hasQueueingPolicy()
         The queueing policy of the QueuedRequest.
         
        .google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;
        Specified by:
        hasQueueingPolicy in interface QueuedResourceOrBuilder
        Returns:
        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];
        Specified by:
        hasState in interface QueuedResourceOrBuilder
        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 interface QueuedResourceOrBuilder
        Returns:
        The state.
      • 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 interface QueuedResourceOrBuilder
        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 interface QueuedResourceOrBuilder
        Returns:
        The bytes for reservationName.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
        Throws:
        IOException
      • newBuilderForType

        public QueuedResource.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public QueuedResource.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected QueuedResource.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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 interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public QueuedResource getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder