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:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getResourceCase

      public QueuedResource.ResourceCase getResourceCase()
      Specified by:
      getResourceCase in interface QueuedResourceOrBuilder
    • getTierCase

      public QueuedResource.TierCase getTierCase()
      Specified by:
      getTierCase in interface QueuedResourceOrBuilder
    • 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.
    • 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:
      hasCreateTime in interface QueuedResourceOrBuilder
      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:
      getCreateTime in interface QueuedResourceOrBuilder
      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:
      getCreateTimeOrBuilder in interface QueuedResourceOrBuilder
    • hasTpu

      public boolean hasTpu()
       Optional. Defines a TPU resource.
       
      .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTpu in interface QueuedResourceOrBuilder
      Returns:
      Whether the tpu field is set.
    • getTpu

      public QueuedResource.Tpu getTpu()
       Optional. Defines a TPU resource.
       
      .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTpu in interface QueuedResourceOrBuilder
      Returns:
      The tpu.
    • getTpuOrBuilder

      public QueuedResource.TpuOrBuilder getTpuOrBuilder()
       Optional. Defines a TPU resource.
       
      .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTpuOrBuilder in interface QueuedResourceOrBuilder
    • hasSpot

      public boolean hasSpot()
       Optional. The Spot tier.
       
      .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.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.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSpot in interface QueuedResourceOrBuilder
      Returns:
      The spot.
    • getSpotOrBuilder

      public QueuedResource.SpotOrBuilder getSpotOrBuilder()
       Optional. The Spot tier.
       
      .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSpotOrBuilder in interface QueuedResourceOrBuilder
    • hasGuaranteed

      public boolean hasGuaranteed()
       Optional. The Guaranteed tier
       
      .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasGuaranteed in interface QueuedResourceOrBuilder
      Returns:
      Whether the guaranteed field is set.
    • getGuaranteed

      public QueuedResource.Guaranteed getGuaranteed()
       Optional. The Guaranteed tier
       
      .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGuaranteed in interface QueuedResourceOrBuilder
      Returns:
      The guaranteed.
    • getGuaranteedOrBuilder

      public QueuedResource.GuaranteedOrBuilder getGuaranteedOrBuilder()
       Optional. The Guaranteed tier
       
      .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGuaranteedOrBuilder in interface QueuedResourceOrBuilder
    • 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:
      hasQueueingPolicy in interface QueuedResourceOrBuilder
      Returns:
      Whether the queueingPolicy field is set.
    • getQueueingPolicy

      public QueuedResource.QueueingPolicy getQueueingPolicy()
       Optional. The queueing policy of the QueuedRequest.
       
      .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQueueingPolicy in interface QueuedResourceOrBuilder
      Returns:
      The queueingPolicy.
    • getQueueingPolicyOrBuilder

      public QueuedResource.QueueingPolicyOrBuilder getQueueingPolicyOrBuilder()
       Optional. The queueing policy of the QueuedRequest.
       
      .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQueueingPolicyOrBuilder in interface QueuedResourceOrBuilder
    • 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:
      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.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface QueuedResourceOrBuilder
      Returns:
      The state.
    • getStateOrBuilder

      public QueuedResourceStateOrBuilder getStateOrBuilder()
       Output only. State of the QueuedResource request.
       
      .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateOrBuilder in interface QueuedResourceOrBuilder
    • getReservationName

      public String 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:
      getReservationName in interface QueuedResourceOrBuilder
      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:
      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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(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 interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.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 interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected QueuedResource.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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