Class QueuedResource.QueueingPolicy

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy
All Implemented Interfaces:
QueuedResource.QueueingPolicyOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
QueuedResource

public static final class QueuedResource.QueueingPolicy extends com.google.protobuf.GeneratedMessage implements QueuedResource.QueueingPolicyOrBuilder
 Defines the policy of the QueuedRequest.
 
Protobuf type google.cloud.tpu.v2.QueuedResource.QueueingPolicy
See Also:
  • Field Details

    • VALID_UNTIL_DURATION_FIELD_NUMBER

      public static final int VALID_UNTIL_DURATION_FIELD_NUMBER
      See Also:
    • VALID_UNTIL_TIME_FIELD_NUMBER

      public static final int VALID_UNTIL_TIME_FIELD_NUMBER
      See Also:
    • VALID_AFTER_DURATION_FIELD_NUMBER

      public static final int VALID_AFTER_DURATION_FIELD_NUMBER
      See Also:
    • VALID_AFTER_TIME_FIELD_NUMBER

      public static final int VALID_AFTER_TIME_FIELD_NUMBER
      See Also:
    • VALID_INTERVAL_FIELD_NUMBER

      public static final int VALID_INTERVAL_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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getStartTimingConstraintsCase

      public QueuedResource.QueueingPolicy.StartTimingConstraintsCase getStartTimingConstraintsCase()
      Specified by:
      getStartTimingConstraintsCase in interface QueuedResource.QueueingPolicyOrBuilder
    • hasValidUntilDuration

      public boolean hasValidUntilDuration()
       Optional. A relative time after which resources should not be created.
       If the request cannot be fulfilled by this time the request will be
       failed.
       
      .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasValidUntilDuration in interface QueuedResource.QueueingPolicyOrBuilder
      Returns:
      Whether the validUntilDuration field is set.
    • getValidUntilDuration

      public com.google.protobuf.Duration getValidUntilDuration()
       Optional. A relative time after which resources should not be created.
       If the request cannot be fulfilled by this time the request will be
       failed.
       
      .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidUntilDuration in interface QueuedResource.QueueingPolicyOrBuilder
      Returns:
      The validUntilDuration.
    • getValidUntilDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getValidUntilDurationOrBuilder()
       Optional. A relative time after which resources should not be created.
       If the request cannot be fulfilled by this time the request will be
       failed.
       
      .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidUntilDurationOrBuilder in interface QueuedResource.QueueingPolicyOrBuilder
    • hasValidUntilTime

      public boolean hasValidUntilTime()
       Optional. An absolute time after which resources should not be created.
       If the request cannot be fulfilled by this time the request will be
       failed.
       
      .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasValidUntilTime in interface QueuedResource.QueueingPolicyOrBuilder
      Returns:
      Whether the validUntilTime field is set.
    • getValidUntilTime

      public com.google.protobuf.Timestamp getValidUntilTime()
       Optional. An absolute time after which resources should not be created.
       If the request cannot be fulfilled by this time the request will be
       failed.
       
      .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidUntilTime in interface QueuedResource.QueueingPolicyOrBuilder
      Returns:
      The validUntilTime.
    • getValidUntilTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getValidUntilTimeOrBuilder()
       Optional. An absolute time after which resources should not be created.
       If the request cannot be fulfilled by this time the request will be
       failed.
       
      .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidUntilTimeOrBuilder in interface QueuedResource.QueueingPolicyOrBuilder
    • hasValidAfterDuration

      public boolean hasValidAfterDuration()
       Optional. A relative time after which resources may be created.
       
      .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasValidAfterDuration in interface QueuedResource.QueueingPolicyOrBuilder
      Returns:
      Whether the validAfterDuration field is set.
    • getValidAfterDuration

      public com.google.protobuf.Duration getValidAfterDuration()
       Optional. A relative time after which resources may be created.
       
      .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidAfterDuration in interface QueuedResource.QueueingPolicyOrBuilder
      Returns:
      The validAfterDuration.
    • getValidAfterDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getValidAfterDurationOrBuilder()
       Optional. A relative time after which resources may be created.
       
      .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidAfterDurationOrBuilder in interface QueuedResource.QueueingPolicyOrBuilder
    • hasValidAfterTime

      public boolean hasValidAfterTime()
       Optional. An absolute time after which resources may be created.
       
      .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasValidAfterTime in interface QueuedResource.QueueingPolicyOrBuilder
      Returns:
      Whether the validAfterTime field is set.
    • getValidAfterTime

      public com.google.protobuf.Timestamp getValidAfterTime()
       Optional. An absolute time after which resources may be created.
       
      .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidAfterTime in interface QueuedResource.QueueingPolicyOrBuilder
      Returns:
      The validAfterTime.
    • getValidAfterTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getValidAfterTimeOrBuilder()
       Optional. An absolute time after which resources may be created.
       
      .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidAfterTimeOrBuilder in interface QueuedResource.QueueingPolicyOrBuilder
    • hasValidInterval

      public boolean hasValidInterval()
       Optional. An absolute time interval within which resources may be
       created.
       
      .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasValidInterval in interface QueuedResource.QueueingPolicyOrBuilder
      Returns:
      Whether the validInterval field is set.
    • getValidInterval

      public Interval getValidInterval()
       Optional. An absolute time interval within which resources may be
       created.
       
      .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidInterval in interface QueuedResource.QueueingPolicyOrBuilder
      Returns:
      The validInterval.
    • getValidIntervalOrBuilder

      public IntervalOrBuilder getValidIntervalOrBuilder()
       Optional. An absolute time interval within which resources may be
       created.
       
      .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidIntervalOrBuilder in interface QueuedResource.QueueingPolicyOrBuilder
    • 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.QueueingPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueuedResource.QueueingPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueuedResource.QueueingPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueuedResource.QueueingPolicy 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.QueueingPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueuedResource.QueueingPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueuedResource.QueueingPolicy parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QueuedResource.QueueingPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static QueuedResource.QueueingPolicy parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static QueuedResource.QueueingPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QueuedResource.QueueingPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QueuedResource.QueueingPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static QueuedResource.QueueingPolicy.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected QueuedResource.QueueingPolicy.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static QueuedResource.QueueingPolicy getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<QueuedResource.QueueingPolicy> parser()
    • getParserForType

      public com.google.protobuf.Parser<QueuedResource.QueueingPolicy> 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.QueueingPolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder