Class 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.GeneratedMessageV3.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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RetryConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      RetryConfig build()  
      RetryConfig buildPartial()  
      RetryConfig.Builder clear()  
      RetryConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      RetryConfig.Builder clearMaxAttempts()
      The maximum number of attempts for a task.
      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.
      RetryConfig.Builder clearMaxDoublings()
      The time between retries will double `max_doublings` times.
      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.
      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.
      RetryConfig.Builder clearNumAttempts()  
      RetryConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      RetryConfig.Builder clearUnlimitedAttempts()
      If true, then the number of attempts is unlimited.
      RetryConfig.Builder clone()  
      RetryConfig getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      int getMaxAttempts()
      The maximum number of attempts for a task.
      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.
      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.
      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.
      int getMaxDoublings()
      The time between retries will double `max_doublings` times.
      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.
      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.
      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.
      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.
      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.
      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.
      RetryConfig.NumAttemptsCase getNumAttemptsCase()  
      boolean getUnlimitedAttempts()
      If true, then the number of attempts is unlimited.
      boolean hasMaxAttempts()
      The maximum number of attempts for a task.
      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.
      boolean hasMaxRetryDuration()
      If positive, `max_retry_duration` specifies the time limit for retrying a failed task, measured from when the task was first attempted.
      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.
      boolean hasUnlimitedAttempts()
      If true, then the number of attempts is unlimited.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      RetryConfig.Builder mergeFrom​(RetryConfig other)  
      RetryConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      RetryConfig.Builder mergeFrom​(com.google.protobuf.Message other)  
      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.
      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.
      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.
      RetryConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      RetryConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      RetryConfig.Builder setMaxAttempts​(int value)
      The maximum number of attempts for a task.
      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.
      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.
      RetryConfig.Builder setMaxDoublings​(int value)
      The time between retries will double `max_doublings` times.
      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.
      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.
      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.
      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.
      RetryConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)  
      RetryConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      RetryConfig.Builder setUnlimitedAttempts​(boolean value)
      If true, then the number of attempts is unlimited.
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

        getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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 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 Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public RetryConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<RetryConfig.Builder>
      • setField

        public RetryConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<RetryConfig.Builder>
      • clearField

        public RetryConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RetryConfig.Builder>
      • clearOneof

        public RetryConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RetryConfig.Builder>
      • setRepeatedField

        public RetryConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RetryConfig.Builder>
      • addRepeatedField

        public RetryConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RetryConfig.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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.
      • setUnknownFields

        public final RetryConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RetryConfig.Builder>
      • mergeUnknownFields

        public final RetryConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RetryConfig.Builder>