Class QueuedResource.QueueingPolicy

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.tpu.v2alpha1.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.v2alpha1.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()
       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;
      Specified by:
      hasValidUntilDuration in interface QueuedResource.QueueingPolicyOrBuilder
      Returns:
      Whether the validUntilDuration field is set.
    • getValidUntilDuration

      public com.google.protobuf.Duration getValidUntilDuration()
       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;
      Specified by:
      getValidUntilDuration in interface QueuedResource.QueueingPolicyOrBuilder
      Returns:
      The validUntilDuration.
    • getValidUntilDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getValidUntilDurationOrBuilder()
       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;
      Specified by:
      getValidUntilDurationOrBuilder in interface QueuedResource.QueueingPolicyOrBuilder
    • hasValidUntilTime

      public boolean hasValidUntilTime()
       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;
      Specified by:
      hasValidUntilTime in interface QueuedResource.QueueingPolicyOrBuilder
      Returns:
      Whether the validUntilTime field is set.
    • getValidUntilTime

      public com.google.protobuf.Timestamp getValidUntilTime()
       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;
      Specified by:
      getValidUntilTime in interface QueuedResource.QueueingPolicyOrBuilder
      Returns:
      The validUntilTime.
    • getValidUntilTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getValidUntilTimeOrBuilder()
       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;
      Specified by:
      getValidUntilTimeOrBuilder in interface QueuedResource.QueueingPolicyOrBuilder
    • hasValidAfterDuration

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

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

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

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

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

      public com.google.protobuf.TimestampOrBuilder getValidAfterTimeOrBuilder()
       An absolute time at which resources may be created.
       
      .google.protobuf.Timestamp valid_after_time = 4;
      Specified by:
      getValidAfterTimeOrBuilder in interface QueuedResource.QueueingPolicyOrBuilder
    • hasValidInterval

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

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

      public IntervalOrBuilder getValidIntervalOrBuilder()
       An absolute time interval within which resources may be created.
       
      .google.type.Interval valid_interval = 5;
      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