Class QueuedResource.Guaranteed.Builder

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

public static final class QueuedResource.Guaranteed.Builder extends com.google.protobuf.GeneratedMessage.Builder<QueuedResource.Guaranteed.Builder> implements QueuedResource.GuaranteedOrBuilder
 Guaranteed tier definition.
 
Protobuf type google.cloud.tpu.v2.QueuedResource.Guaranteed
  • 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.Guaranteed.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.Guaranteed.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.Guaranteed.Builder>
    • getDefaultInstanceForType

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

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

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

      public QueuedResource.Guaranteed.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.Guaranteed.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.Guaranteed.Builder>
    • mergeFrom

      public QueuedResource.Guaranteed.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.Guaranteed.Builder>
      Throws:
      IOException
    • hasMinDuration

      public boolean hasMinDuration()
       Optional. Defines the minimum duration of the guarantee. If specified,
       the requested resources will only be provisioned if they can be
       allocated for at least the given duration.
       
      .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMinDuration in interface QueuedResource.GuaranteedOrBuilder
      Returns:
      Whether the minDuration field is set.
    • getMinDuration

      public com.google.protobuf.Duration getMinDuration()
       Optional. Defines the minimum duration of the guarantee. If specified,
       the requested resources will only be provisioned if they can be
       allocated for at least the given duration.
       
      .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMinDuration in interface QueuedResource.GuaranteedOrBuilder
      Returns:
      The minDuration.
    • setMinDuration

      public QueuedResource.Guaranteed.Builder setMinDuration(com.google.protobuf.Duration value)
       Optional. Defines the minimum duration of the guarantee. If specified,
       the requested resources will only be provisioned if they can be
       allocated for at least the given duration.
       
      .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setMinDuration

      public QueuedResource.Guaranteed.Builder setMinDuration(com.google.protobuf.Duration.Builder builderForValue)
       Optional. Defines the minimum duration of the guarantee. If specified,
       the requested resources will only be provisioned if they can be
       allocated for at least the given duration.
       
      .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeMinDuration

      public QueuedResource.Guaranteed.Builder mergeMinDuration(com.google.protobuf.Duration value)
       Optional. Defines the minimum duration of the guarantee. If specified,
       the requested resources will only be provisioned if they can be
       allocated for at least the given duration.
       
      .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearMinDuration

      public QueuedResource.Guaranteed.Builder clearMinDuration()
       Optional. Defines the minimum duration of the guarantee. If specified,
       the requested resources will only be provisioned if they can be
       allocated for at least the given duration.
       
      .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getMinDurationBuilder

      public com.google.protobuf.Duration.Builder getMinDurationBuilder()
       Optional. Defines the minimum duration of the guarantee. If specified,
       the requested resources will only be provisioned if they can be
       allocated for at least the given duration.
       
      .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getMinDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder()
       Optional. Defines the minimum duration of the guarantee. If specified,
       the requested resources will only be provisioned if they can be
       allocated for at least the given duration.
       
      .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMinDurationOrBuilder in interface QueuedResource.GuaranteedOrBuilder