public static final class RetryConfig.Builder extends GeneratedMessageV3.Builder<RetryConfig.Builder> implements RetryConfigOrBuilder
Retry config. These settings determine when a failed task attempt is retried.Protobuf type
google.cloud.tasks.v2beta3.RetryConfig
Modifier and Type | Method and Description |
---|---|
RetryConfig.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
RetryConfig |
build() |
RetryConfig |
buildPartial() |
RetryConfig.Builder |
clear() |
RetryConfig.Builder |
clearField(Descriptors.FieldDescriptor field) |
RetryConfig.Builder |
clearMaxAttempts()
Number of attempts per task.
|
RetryConfig.Builder |
clearMaxBackoff()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.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.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
retried.
|
RetryConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
RetryConfig.Builder |
clone() |
RetryConfig |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
int |
getMaxAttempts()
Number of attempts per task.
|
Duration |
getMaxBackoff()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
retried.
|
Duration.Builder |
getMaxBackoffBuilder()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
retried.
|
DurationOrBuilder |
getMaxBackoffOrBuilder()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
retried.
|
int |
getMaxDoublings()
The time between retries will double `max_doublings` times.
|
Duration |
getMaxRetryDuration()
If positive, `max_retry_duration` specifies the time limit for
retrying a failed task, measured from when the task was first
attempted.
|
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.
|
DurationOrBuilder |
getMaxRetryDurationOrBuilder()
If positive, `max_retry_duration` specifies the time limit for
retrying a failed task, measured from when the task was first
attempted.
|
Duration |
getMinBackoff()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
retried.
|
Duration.Builder |
getMinBackoffBuilder()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
retried.
|
DurationOrBuilder |
getMinBackoffOrBuilder()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
retried.
|
boolean |
hasMaxBackoff()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.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.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
retried.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RetryConfig.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
RetryConfig.Builder |
mergeFrom(Message other) |
RetryConfig.Builder |
mergeFrom(RetryConfig other) |
RetryConfig.Builder |
mergeMaxBackoff(Duration value)
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
retried.
|
RetryConfig.Builder |
mergeMaxRetryDuration(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(Duration value)
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
retried.
|
RetryConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
RetryConfig.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
RetryConfig.Builder |
setMaxAttempts(int value)
Number of attempts per task.
|
RetryConfig.Builder |
setMaxBackoff(Duration.Builder builderForValue)
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
retried.
|
RetryConfig.Builder |
setMaxBackoff(Duration value)
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.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(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 |
setMaxRetryDuration(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 |
setMinBackoff(Duration.Builder builderForValue)
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
retried.
|
RetryConfig.Builder |
setMinBackoff(Duration value)
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
[min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
[max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
retried.
|
RetryConfig.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
RetryConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<RetryConfig.Builder>
public RetryConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<RetryConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<RetryConfig.Builder>
public RetryConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public RetryConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public RetryConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public RetryConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<RetryConfig.Builder>
public RetryConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<RetryConfig.Builder>
public RetryConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<RetryConfig.Builder>
public RetryConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<RetryConfig.Builder>
public RetryConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<RetryConfig.Builder>
public RetryConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<RetryConfig.Builder>
public RetryConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<RetryConfig.Builder>
public RetryConfig.Builder mergeFrom(RetryConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<RetryConfig.Builder>
public RetryConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<RetryConfig.Builder>
IOException
public int getMaxAttempts()
Number of attempts per 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 >= -1. If unspecified when the queue is created, Cloud Tasks will pick the default. -1 indicates unlimited attempts. This field has the same meaning as [task_retry_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
int32 max_attempts = 1;
getMaxAttempts
in interface RetryConfigOrBuilder
public RetryConfig.Builder setMaxAttempts(int value)
Number of attempts per 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 >= -1. If unspecified when the queue is created, Cloud Tasks will pick the default. -1 indicates unlimited attempts. This field has the same meaning as [task_retry_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
int32 max_attempts = 1;
value
- The maxAttempts to set.public RetryConfig.Builder clearMaxAttempts()
Number of attempts per 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 >= -1. If unspecified when the queue is created, Cloud Tasks will pick the default. -1 indicates unlimited attempts. This field has the same meaning as [task_retry_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
int32 max_attempts = 1;
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.v2beta3.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. `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 = 2;
hasMaxRetryDuration
in interface RetryConfigOrBuilder
public 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.v2beta3.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. `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 = 2;
getMaxRetryDuration
in interface RetryConfigOrBuilder
public RetryConfig.Builder setMaxRetryDuration(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.v2beta3.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. `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 = 2;
public RetryConfig.Builder setMaxRetryDuration(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.v2beta3.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. `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 = 2;
public RetryConfig.Builder mergeMaxRetryDuration(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.v2beta3.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. `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 = 2;
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.v2beta3.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. `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 = 2;
public 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.v2beta3.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. `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 = 2;
public 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.v2beta3.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. `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 = 2;
getMaxRetryDurationOrBuilder
in interface RetryConfigOrBuilder
public boolean hasMinBackoff()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 3;
hasMinBackoff
in interface RetryConfigOrBuilder
public Duration getMinBackoff()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 3;
getMinBackoff
in interface RetryConfigOrBuilder
public RetryConfig.Builder setMinBackoff(Duration value)
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 3;
public RetryConfig.Builder setMinBackoff(Duration.Builder builderForValue)
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 3;
public RetryConfig.Builder mergeMinBackoff(Duration value)
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 3;
public RetryConfig.Builder clearMinBackoff()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 3;
public Duration.Builder getMinBackoffBuilder()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 3;
public DurationOrBuilder getMinBackoffOrBuilder()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 3;
getMinBackoffOrBuilder
in interface RetryConfigOrBuilder
public boolean hasMaxBackoff()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 4;
hasMaxBackoff
in interface RetryConfigOrBuilder
public Duration getMaxBackoff()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 4;
getMaxBackoff
in interface RetryConfigOrBuilder
public RetryConfig.Builder setMaxBackoff(Duration value)
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 4;
public RetryConfig.Builder setMaxBackoff(Duration.Builder builderForValue)
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 4;
public RetryConfig.Builder mergeMaxBackoff(Duration value)
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 4;
public RetryConfig.Builder clearMaxBackoff()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 4;
public Duration.Builder getMaxBackoffBuilder()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 4;
public DurationOrBuilder getMaxBackoffOrBuilder()
A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. `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 = 4;
getMaxBackoffOrBuilder
in interface RetryConfigOrBuilder
public int getMaxDoublings()
The time between retries will double `max_doublings` times. A task's retry interval starts at [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff], then doubles `max_doublings` times, then increases linearly, and finally retries at intervals of [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] up to [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] times. For example, if [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] is 10s, [max_backoff][google.cloud.tasks.v2beta3.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.v2beta3.RetryConfig.max_backoff] until the task has been attempted [max_attempts][google.cloud.tasks.v2beta3.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 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 = 5;
getMaxDoublings
in interface RetryConfigOrBuilder
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.v2beta3.RetryConfig.min_backoff], then doubles `max_doublings` times, then increases linearly, and finally retries at intervals of [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] up to [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] times. For example, if [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] is 10s, [max_backoff][google.cloud.tasks.v2beta3.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.v2beta3.RetryConfig.max_backoff] until the task has been attempted [max_attempts][google.cloud.tasks.v2beta3.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 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 = 5;
value
- The maxDoublings to set.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.v2beta3.RetryConfig.min_backoff], then doubles `max_doublings` times, then increases linearly, and finally retries at intervals of [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] up to [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] times. For example, if [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] is 10s, [max_backoff][google.cloud.tasks.v2beta3.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.v2beta3.RetryConfig.max_backoff] until the task has been attempted [max_attempts][google.cloud.tasks.v2beta3.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 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 = 5;
public final RetryConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<RetryConfig.Builder>
public final RetryConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<RetryConfig.Builder>
Copyright © 2022 Google LLC. All rights reserved.