Class RetryConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RetryConfig.Builder>
com.google.cloud.tasks.v2beta2.RetryConfig.Builder
All Implemented Interfaces:
RetryConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RetryConfig

public static final class RetryConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<RetryConfig.Builder> implements RetryConfigOrBuilder
 Retry config.

 These settings determine how a failed task attempt is retried.
 
Protobuf type google.cloud.tasks.v2beta2.RetryConfig
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The maximum number of attempts for a task.
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
    The time between retries will double `max_doublings` times.
    If positive, `max_retry_duration` specifies the time limit for retrying a failed task, measured from when the task was first attempted.
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
     
    If true, then the number of attempts is unlimited.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    int
    The maximum number of attempts for a task.
    com.google.protobuf.Duration
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
    com.google.protobuf.Duration.Builder
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
    com.google.protobuf.DurationOrBuilder
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
    int
    The time between retries will double `max_doublings` times.
    com.google.protobuf.Duration
    If positive, `max_retry_duration` specifies the time limit for retrying a failed task, measured from when the task was first attempted.
    com.google.protobuf.Duration.Builder
    If positive, `max_retry_duration` specifies the time limit for retrying a failed task, measured from when the task was first attempted.
    com.google.protobuf.DurationOrBuilder
    If positive, `max_retry_duration` specifies the time limit for retrying a failed task, measured from when the task was first attempted.
    com.google.protobuf.Duration
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
    com.google.protobuf.Duration.Builder
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
    com.google.protobuf.DurationOrBuilder
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
     
    boolean
    If true, then the number of attempts is unlimited.
    boolean
    The maximum number of attempts for a task.
    boolean
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
    boolean
    If positive, `max_retry_duration` specifies the time limit for retrying a failed task, measured from when the task was first attempted.
    boolean
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
    boolean
    If true, then the number of attempts is unlimited.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeMaxBackoff(com.google.protobuf.Duration value)
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
    mergeMaxRetryDuration(com.google.protobuf.Duration value)
    If positive, `max_retry_duration` specifies the time limit for retrying a failed task, measured from when the task was first attempted.
    mergeMinBackoff(com.google.protobuf.Duration value)
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
    setMaxAttempts(int value)
    The maximum number of attempts for a task.
    setMaxBackoff(com.google.protobuf.Duration value)
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
    setMaxBackoff(com.google.protobuf.Duration.Builder builderForValue)
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
    setMaxDoublings(int value)
    The time between retries will double `max_doublings` times.
    setMaxRetryDuration(com.google.protobuf.Duration value)
    If positive, `max_retry_duration` specifies the time limit for retrying a failed task, measured from when the task was first attempted.
    setMaxRetryDuration(com.google.protobuf.Duration.Builder builderForValue)
    If positive, `max_retry_duration` specifies the time limit for retrying a failed task, measured from when the task was first attempted.
    setMinBackoff(com.google.protobuf.Duration value)
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
    setMinBackoff(com.google.protobuf.Duration.Builder builderForValue)
    A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be retried.
    setUnlimitedAttempts(boolean value)
    If true, then the number of attempts is unlimited.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<RetryConfig.Builder>
    • clear

      public RetryConfig.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<RetryConfig.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<RetryConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RetryConfig.Builder mergeFrom(RetryConfig other)
    • isInitialized

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

      public RetryConfig.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<RetryConfig.Builder>
      Throws:
      IOException
    • getNumAttemptsCase

      public RetryConfig.NumAttemptsCase getNumAttemptsCase()
      Specified by:
      getNumAttemptsCase in interface RetryConfigOrBuilder
    • clearNumAttempts

      public RetryConfig.Builder clearNumAttempts()
    • hasMaxAttempts

      public boolean hasMaxAttempts()
       The maximum number of attempts for a task.
      
       Cloud Tasks will attempt the task `max_attempts` times (that
       is, if the first attempt fails, then there will be
       `max_attempts - 1` retries).  Must be > 0.
       
      int32 max_attempts = 1;
      Specified by:
      hasMaxAttempts in interface RetryConfigOrBuilder
      Returns:
      Whether the maxAttempts field is set.
    • getMaxAttempts

      public int getMaxAttempts()
       The maximum number of attempts for a task.
      
       Cloud Tasks will attempt the task `max_attempts` times (that
       is, if the first attempt fails, then there will be
       `max_attempts - 1` retries).  Must be > 0.
       
      int32 max_attempts = 1;
      Specified by:
      getMaxAttempts in interface RetryConfigOrBuilder
      Returns:
      The maxAttempts.
    • setMaxAttempts

      public RetryConfig.Builder setMaxAttempts(int value)
       The maximum number of attempts for a task.
      
       Cloud Tasks will attempt the task `max_attempts` times (that
       is, if the first attempt fails, then there will be
       `max_attempts - 1` retries).  Must be > 0.
       
      int32 max_attempts = 1;
      Parameters:
      value - The maxAttempts to set.
      Returns:
      This builder for chaining.
    • clearMaxAttempts

      public RetryConfig.Builder clearMaxAttempts()
       The maximum number of attempts for a task.
      
       Cloud Tasks will attempt the task `max_attempts` times (that
       is, if the first attempt fails, then there will be
       `max_attempts - 1` retries).  Must be > 0.
       
      int32 max_attempts = 1;
      Returns:
      This builder for chaining.
    • hasUnlimitedAttempts

      public boolean hasUnlimitedAttempts()
       If true, then the number of attempts is unlimited.
       
      bool unlimited_attempts = 2;
      Specified by:
      hasUnlimitedAttempts in interface RetryConfigOrBuilder
      Returns:
      Whether the unlimitedAttempts field is set.
    • getUnlimitedAttempts

      public boolean getUnlimitedAttempts()
       If true, then the number of attempts is unlimited.
       
      bool unlimited_attempts = 2;
      Specified by:
      getUnlimitedAttempts in interface RetryConfigOrBuilder
      Returns:
      The unlimitedAttempts.
    • setUnlimitedAttempts

      public RetryConfig.Builder setUnlimitedAttempts(boolean value)
       If true, then the number of attempts is unlimited.
       
      bool unlimited_attempts = 2;
      Parameters:
      value - The unlimitedAttempts to set.
      Returns:
      This builder for chaining.
    • clearUnlimitedAttempts

      public RetryConfig.Builder clearUnlimitedAttempts()
       If true, then the number of attempts is unlimited.
       
      bool unlimited_attempts = 2;
      Returns:
      This builder for chaining.
    • hasMaxRetryDuration

      public boolean hasMaxRetryDuration()
       If positive, `max_retry_duration` specifies the time limit for
       retrying a failed task, measured from when the task was first
       attempted. Once `max_retry_duration` time has passed *and* the
       task has been attempted
       [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
       no further attempts will be made and the task will be deleted.
      
       If zero, then the task age is unlimited.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_retry_duration` will be truncated to the nearest second.
      
       This field has the same meaning as
       [task_age_limit in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_retry_duration = 3;
      Specified by:
      hasMaxRetryDuration in interface RetryConfigOrBuilder
      Returns:
      Whether the maxRetryDuration field is set.
    • getMaxRetryDuration

      public com.google.protobuf.Duration getMaxRetryDuration()
       If positive, `max_retry_duration` specifies the time limit for
       retrying a failed task, measured from when the task was first
       attempted. Once `max_retry_duration` time has passed *and* the
       task has been attempted
       [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
       no further attempts will be made and the task will be deleted.
      
       If zero, then the task age is unlimited.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_retry_duration` will be truncated to the nearest second.
      
       This field has the same meaning as
       [task_age_limit in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_retry_duration = 3;
      Specified by:
      getMaxRetryDuration in interface RetryConfigOrBuilder
      Returns:
      The maxRetryDuration.
    • setMaxRetryDuration

      public RetryConfig.Builder setMaxRetryDuration(com.google.protobuf.Duration value)
       If positive, `max_retry_duration` specifies the time limit for
       retrying a failed task, measured from when the task was first
       attempted. Once `max_retry_duration` time has passed *and* the
       task has been attempted
       [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
       no further attempts will be made and the task will be deleted.
      
       If zero, then the task age is unlimited.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_retry_duration` will be truncated to the nearest second.
      
       This field has the same meaning as
       [task_age_limit in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_retry_duration = 3;
    • setMaxRetryDuration

      public RetryConfig.Builder setMaxRetryDuration(com.google.protobuf.Duration.Builder builderForValue)
       If positive, `max_retry_duration` specifies the time limit for
       retrying a failed task, measured from when the task was first
       attempted. Once `max_retry_duration` time has passed *and* the
       task has been attempted
       [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
       no further attempts will be made and the task will be deleted.
      
       If zero, then the task age is unlimited.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_retry_duration` will be truncated to the nearest second.
      
       This field has the same meaning as
       [task_age_limit in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_retry_duration = 3;
    • mergeMaxRetryDuration

      public RetryConfig.Builder mergeMaxRetryDuration(com.google.protobuf.Duration value)
       If positive, `max_retry_duration` specifies the time limit for
       retrying a failed task, measured from when the task was first
       attempted. Once `max_retry_duration` time has passed *and* the
       task has been attempted
       [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
       no further attempts will be made and the task will be deleted.
      
       If zero, then the task age is unlimited.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_retry_duration` will be truncated to the nearest second.
      
       This field has the same meaning as
       [task_age_limit in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_retry_duration = 3;
    • clearMaxRetryDuration

      public RetryConfig.Builder clearMaxRetryDuration()
       If positive, `max_retry_duration` specifies the time limit for
       retrying a failed task, measured from when the task was first
       attempted. Once `max_retry_duration` time has passed *and* the
       task has been attempted
       [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
       no further attempts will be made and the task will be deleted.
      
       If zero, then the task age is unlimited.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_retry_duration` will be truncated to the nearest second.
      
       This field has the same meaning as
       [task_age_limit in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_retry_duration = 3;
    • getMaxRetryDurationBuilder

      public com.google.protobuf.Duration.Builder getMaxRetryDurationBuilder()
       If positive, `max_retry_duration` specifies the time limit for
       retrying a failed task, measured from when the task was first
       attempted. Once `max_retry_duration` time has passed *and* the
       task has been attempted
       [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
       no further attempts will be made and the task will be deleted.
      
       If zero, then the task age is unlimited.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_retry_duration` will be truncated to the nearest second.
      
       This field has the same meaning as
       [task_age_limit in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_retry_duration = 3;
    • getMaxRetryDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder()
       If positive, `max_retry_duration` specifies the time limit for
       retrying a failed task, measured from when the task was first
       attempted. Once `max_retry_duration` time has passed *and* the
       task has been attempted
       [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
       no further attempts will be made and the task will be deleted.
      
       If zero, then the task age is unlimited.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_retry_duration` will be truncated to the nearest second.
      
       This field has the same meaning as
       [task_age_limit in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_retry_duration = 3;
      Specified by:
      getMaxRetryDurationOrBuilder in interface RetryConfigOrBuilder
    • hasMinBackoff

      public boolean hasMinBackoff()
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `min_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [min_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration min_backoff = 4;
      Specified by:
      hasMinBackoff in interface RetryConfigOrBuilder
      Returns:
      Whether the minBackoff field is set.
    • getMinBackoff

      public com.google.protobuf.Duration getMinBackoff()
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `min_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [min_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration min_backoff = 4;
      Specified by:
      getMinBackoff in interface RetryConfigOrBuilder
      Returns:
      The minBackoff.
    • setMinBackoff

      public RetryConfig.Builder setMinBackoff(com.google.protobuf.Duration value)
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `min_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [min_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration min_backoff = 4;
    • setMinBackoff

      public RetryConfig.Builder setMinBackoff(com.google.protobuf.Duration.Builder builderForValue)
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `min_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [min_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration min_backoff = 4;
    • mergeMinBackoff

      public RetryConfig.Builder mergeMinBackoff(com.google.protobuf.Duration value)
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `min_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [min_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration min_backoff = 4;
    • clearMinBackoff

      public RetryConfig.Builder clearMinBackoff()
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `min_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [min_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration min_backoff = 4;
    • getMinBackoffBuilder

      public com.google.protobuf.Duration.Builder getMinBackoffBuilder()
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `min_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [min_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration min_backoff = 4;
    • getMinBackoffOrBuilder

      public com.google.protobuf.DurationOrBuilder getMinBackoffOrBuilder()
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `min_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [min_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration min_backoff = 4;
      Specified by:
      getMinBackoffOrBuilder in interface RetryConfigOrBuilder
    • hasMaxBackoff

      public boolean hasMaxBackoff()
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [max_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_backoff = 5;
      Specified by:
      hasMaxBackoff in interface RetryConfigOrBuilder
      Returns:
      Whether the maxBackoff field is set.
    • getMaxBackoff

      public com.google.protobuf.Duration getMaxBackoff()
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [max_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_backoff = 5;
      Specified by:
      getMaxBackoff in interface RetryConfigOrBuilder
      Returns:
      The maxBackoff.
    • setMaxBackoff

      public RetryConfig.Builder setMaxBackoff(com.google.protobuf.Duration value)
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [max_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_backoff = 5;
    • setMaxBackoff

      public RetryConfig.Builder setMaxBackoff(com.google.protobuf.Duration.Builder builderForValue)
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [max_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_backoff = 5;
    • mergeMaxBackoff

      public RetryConfig.Builder mergeMaxBackoff(com.google.protobuf.Duration value)
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [max_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_backoff = 5;
    • clearMaxBackoff

      public RetryConfig.Builder clearMaxBackoff()
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [max_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_backoff = 5;
    • getMaxBackoffBuilder

      public com.google.protobuf.Duration.Builder getMaxBackoffBuilder()
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [max_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_backoff = 5;
    • getMaxBackoffOrBuilder

      public com.google.protobuf.DurationOrBuilder getMaxBackoffOrBuilder()
       A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
       for retry between
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
       after it fails, if the queue's
       [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
       task should be retried.
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       `max_backoff` will be truncated to the nearest second.
      
       This field has the same meaning as
       [max_backoff_seconds in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      .google.protobuf.Duration max_backoff = 5;
      Specified by:
      getMaxBackoffOrBuilder in interface RetryConfigOrBuilder
    • getMaxDoublings

      public int getMaxDoublings()
       The time between retries will double `max_doublings` times.
      
       A task's retry interval starts at
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then
       doubles `max_doublings` times, then increases linearly, and finally retries
       at intervals of
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to
       [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
      
       For example, if
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] is 10s,
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] is 300s,
       and `max_doublings` is 3, then the a task will first be retried in 10s. The
       retry interval will double three times, and then increase linearly by 2^3 *
       10s.  Finally, the task will retry at intervals of
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] until the
       task has been attempted
       [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
       Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s,
       300s, ....
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       This field has the same meaning as
       [max_doublings in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      int32 max_doublings = 6;
      Specified by:
      getMaxDoublings in interface RetryConfigOrBuilder
      Returns:
      The maxDoublings.
    • setMaxDoublings

      public RetryConfig.Builder setMaxDoublings(int value)
       The time between retries will double `max_doublings` times.
      
       A task's retry interval starts at
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then
       doubles `max_doublings` times, then increases linearly, and finally retries
       at intervals of
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to
       [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
      
       For example, if
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] is 10s,
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] is 300s,
       and `max_doublings` is 3, then the a task will first be retried in 10s. The
       retry interval will double three times, and then increase linearly by 2^3 *
       10s.  Finally, the task will retry at intervals of
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] until the
       task has been attempted
       [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
       Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s,
       300s, ....
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       This field has the same meaning as
       [max_doublings in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      int32 max_doublings = 6;
      Parameters:
      value - The maxDoublings to set.
      Returns:
      This builder for chaining.
    • clearMaxDoublings

      public RetryConfig.Builder clearMaxDoublings()
       The time between retries will double `max_doublings` times.
      
       A task's retry interval starts at
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then
       doubles `max_doublings` times, then increases linearly, and finally retries
       at intervals of
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to
       [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
      
       For example, if
       [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] is 10s,
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] is 300s,
       and `max_doublings` is 3, then the a task will first be retried in 10s. The
       retry interval will double three times, and then increase linearly by 2^3 *
       10s.  Finally, the task will retry at intervals of
       [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] until the
       task has been attempted
       [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
       Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s,
       300s, ....
      
       If unspecified when the queue is created, Cloud Tasks will pick the
       default.
      
       This field is output only for [pull
       queues][google.cloud.tasks.v2beta2.PullTarget].
      
      
       This field has the same meaning as
       [max_doublings in
       queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
       
      int32 max_doublings = 6;
      Returns:
      This builder for chaining.