Class QueuedResource.QueueingPolicy.Builder

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

public static final class QueuedResource.QueueingPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<QueuedResource.QueueingPolicy.Builder> implements QueuedResource.QueueingPolicyOrBuilder
 Defines the policy of the QueuedRequest.
 
Protobuf type google.cloud.tpu.v2.QueuedResource.QueueingPolicy
  • 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.Builder<QueuedResource.QueueingPolicy.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<QueuedResource.QueueingPolicy.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<QueuedResource.QueueingPolicy.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public QueuedResource.QueueingPolicy.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueuedResource.QueueingPolicy.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<QueuedResource.QueueingPolicy.Builder>
    • mergeFrom

      public QueuedResource.QueueingPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueuedResource.QueueingPolicy.Builder>
      Throws:
      IOException
    • getStartTimingConstraintsCase

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

      public QueuedResource.QueueingPolicy.Builder clearStartTimingConstraints()
    • 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.
    • setValidUntilDuration

      public QueuedResource.QueueingPolicy.Builder setValidUntilDuration(com.google.protobuf.Duration value)
       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];
    • setValidUntilDuration

      public QueuedResource.QueueingPolicy.Builder setValidUntilDuration(com.google.protobuf.Duration.Builder builderForValue)
       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];
    • mergeValidUntilDuration

      public QueuedResource.QueueingPolicy.Builder mergeValidUntilDuration(com.google.protobuf.Duration value)
       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];
    • clearValidUntilDuration

      public QueuedResource.QueueingPolicy.Builder clearValidUntilDuration()
       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];
    • getValidUntilDurationBuilder

      public com.google.protobuf.Duration.Builder getValidUntilDurationBuilder()
       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];
    • 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.
    • setValidUntilTime

      public QueuedResource.QueueingPolicy.Builder setValidUntilTime(com.google.protobuf.Timestamp value)
       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];
    • setValidUntilTime

      public QueuedResource.QueueingPolicy.Builder setValidUntilTime(com.google.protobuf.Timestamp.Builder builderForValue)
       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];
    • mergeValidUntilTime

      public QueuedResource.QueueingPolicy.Builder mergeValidUntilTime(com.google.protobuf.Timestamp value)
       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];
    • clearValidUntilTime

      public QueuedResource.QueueingPolicy.Builder clearValidUntilTime()
       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];
    • getValidUntilTimeBuilder

      public com.google.protobuf.Timestamp.Builder getValidUntilTimeBuilder()
       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];
    • 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.
    • setValidAfterDuration

      public QueuedResource.QueueingPolicy.Builder setValidAfterDuration(com.google.protobuf.Duration value)
       Optional. A relative time after which resources may be created.
       
      .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setValidAfterDuration

      public QueuedResource.QueueingPolicy.Builder setValidAfterDuration(com.google.protobuf.Duration.Builder builderForValue)
       Optional. A relative time after which resources may be created.
       
      .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeValidAfterDuration

      public QueuedResource.QueueingPolicy.Builder mergeValidAfterDuration(com.google.protobuf.Duration value)
       Optional. A relative time after which resources may be created.
       
      .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearValidAfterDuration

      public QueuedResource.QueueingPolicy.Builder clearValidAfterDuration()
       Optional. A relative time after which resources may be created.
       
      .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getValidAfterDurationBuilder

      public com.google.protobuf.Duration.Builder getValidAfterDurationBuilder()
       Optional. A relative time after which resources may be created.
       
      .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
    • 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.
    • setValidAfterTime

      public QueuedResource.QueueingPolicy.Builder setValidAfterTime(com.google.protobuf.Timestamp value)
       Optional. An absolute time after which resources may be created.
       
      .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setValidAfterTime

      public QueuedResource.QueueingPolicy.Builder setValidAfterTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. An absolute time after which resources may be created.
       
      .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeValidAfterTime

      public QueuedResource.QueueingPolicy.Builder mergeValidAfterTime(com.google.protobuf.Timestamp value)
       Optional. An absolute time after which resources may be created.
       
      .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearValidAfterTime

      public QueuedResource.QueueingPolicy.Builder clearValidAfterTime()
       Optional. An absolute time after which resources may be created.
       
      .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getValidAfterTimeBuilder

      public com.google.protobuf.Timestamp.Builder getValidAfterTimeBuilder()
       Optional. An absolute time after which resources may be created.
       
      .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL];
    • 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.
    • setValidInterval

      public QueuedResource.QueueingPolicy.Builder setValidInterval(Interval value)
       Optional. An absolute time interval within which resources may be
       created.
       
      .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setValidInterval

      public QueuedResource.QueueingPolicy.Builder setValidInterval(Interval.Builder builderForValue)
       Optional. An absolute time interval within which resources may be
       created.
       
      .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeValidInterval

      public QueuedResource.QueueingPolicy.Builder mergeValidInterval(Interval value)
       Optional. An absolute time interval within which resources may be
       created.
       
      .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearValidInterval

      public QueuedResource.QueueingPolicy.Builder clearValidInterval()
       Optional. An absolute time interval within which resources may be
       created.
       
      .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getValidIntervalBuilder

      public Interval.Builder getValidIntervalBuilder()
       Optional. An absolute time interval within which resources may be
       created.
       
      .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL];
    • 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