• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/tasks/v2beta2/queue.proto
18 
19 package com.google.cloud.tasks.v2beta2;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Retry config.
26  * These settings determine how a failed task attempt is retried.
27  * </pre>
28  *
29  * Protobuf type {@code google.cloud.tasks.v2beta2.RetryConfig}
30  */
31 public final class RetryConfig extends com.google.protobuf.GeneratedMessageV3
32     implements
33     // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.RetryConfig)
34     RetryConfigOrBuilder {
35   private static final long serialVersionUID = 0L;
36   // Use RetryConfig.newBuilder() to construct.
RetryConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37   private RetryConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
38     super(builder);
39   }
40 
RetryConfig()41   private RetryConfig() {}
42 
43   @java.lang.Override
44   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)45   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
46     return new RetryConfig();
47   }
48 
49   @java.lang.Override
getUnknownFields()50   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
51     return this.unknownFields;
52   }
53 
getDescriptor()54   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
55     return com.google.cloud.tasks.v2beta2.QueueProto
56         .internal_static_google_cloud_tasks_v2beta2_RetryConfig_descriptor;
57   }
58 
59   @java.lang.Override
60   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()61       internalGetFieldAccessorTable() {
62     return com.google.cloud.tasks.v2beta2.QueueProto
63         .internal_static_google_cloud_tasks_v2beta2_RetryConfig_fieldAccessorTable
64         .ensureFieldAccessorsInitialized(
65             com.google.cloud.tasks.v2beta2.RetryConfig.class,
66             com.google.cloud.tasks.v2beta2.RetryConfig.Builder.class);
67   }
68 
69   private int numAttemptsCase_ = 0;
70   private java.lang.Object numAttempts_;
71 
72   public enum NumAttemptsCase
73       implements
74           com.google.protobuf.Internal.EnumLite,
75           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
76     MAX_ATTEMPTS(1),
77     UNLIMITED_ATTEMPTS(2),
78     NUMATTEMPTS_NOT_SET(0);
79     private final int value;
80 
NumAttemptsCase(int value)81     private NumAttemptsCase(int value) {
82       this.value = value;
83     }
84     /**
85      * @param value The number of the enum to look for.
86      * @return The enum associated with the given number.
87      * @deprecated Use {@link #forNumber(int)} instead.
88      */
89     @java.lang.Deprecated
valueOf(int value)90     public static NumAttemptsCase valueOf(int value) {
91       return forNumber(value);
92     }
93 
forNumber(int value)94     public static NumAttemptsCase forNumber(int value) {
95       switch (value) {
96         case 1:
97           return MAX_ATTEMPTS;
98         case 2:
99           return UNLIMITED_ATTEMPTS;
100         case 0:
101           return NUMATTEMPTS_NOT_SET;
102         default:
103           return null;
104       }
105     }
106 
getNumber()107     public int getNumber() {
108       return this.value;
109     }
110   };
111 
getNumAttemptsCase()112   public NumAttemptsCase getNumAttemptsCase() {
113     return NumAttemptsCase.forNumber(numAttemptsCase_);
114   }
115 
116   public static final int MAX_ATTEMPTS_FIELD_NUMBER = 1;
117   /**
118    *
119    *
120    * <pre>
121    * The maximum number of attempts for a task.
122    * Cloud Tasks will attempt the task `max_attempts` times (that
123    * is, if the first attempt fails, then there will be
124    * `max_attempts - 1` retries).  Must be &gt; 0.
125    * </pre>
126    *
127    * <code>int32 max_attempts = 1;</code>
128    *
129    * @return Whether the maxAttempts field is set.
130    */
131   @java.lang.Override
hasMaxAttempts()132   public boolean hasMaxAttempts() {
133     return numAttemptsCase_ == 1;
134   }
135   /**
136    *
137    *
138    * <pre>
139    * The maximum number of attempts for a task.
140    * Cloud Tasks will attempt the task `max_attempts` times (that
141    * is, if the first attempt fails, then there will be
142    * `max_attempts - 1` retries).  Must be &gt; 0.
143    * </pre>
144    *
145    * <code>int32 max_attempts = 1;</code>
146    *
147    * @return The maxAttempts.
148    */
149   @java.lang.Override
getMaxAttempts()150   public int getMaxAttempts() {
151     if (numAttemptsCase_ == 1) {
152       return (java.lang.Integer) numAttempts_;
153     }
154     return 0;
155   }
156 
157   public static final int UNLIMITED_ATTEMPTS_FIELD_NUMBER = 2;
158   /**
159    *
160    *
161    * <pre>
162    * If true, then the number of attempts is unlimited.
163    * </pre>
164    *
165    * <code>bool unlimited_attempts = 2;</code>
166    *
167    * @return Whether the unlimitedAttempts field is set.
168    */
169   @java.lang.Override
hasUnlimitedAttempts()170   public boolean hasUnlimitedAttempts() {
171     return numAttemptsCase_ == 2;
172   }
173   /**
174    *
175    *
176    * <pre>
177    * If true, then the number of attempts is unlimited.
178    * </pre>
179    *
180    * <code>bool unlimited_attempts = 2;</code>
181    *
182    * @return The unlimitedAttempts.
183    */
184   @java.lang.Override
getUnlimitedAttempts()185   public boolean getUnlimitedAttempts() {
186     if (numAttemptsCase_ == 2) {
187       return (java.lang.Boolean) numAttempts_;
188     }
189     return false;
190   }
191 
192   public static final int MAX_RETRY_DURATION_FIELD_NUMBER = 3;
193   private com.google.protobuf.Duration maxRetryDuration_;
194   /**
195    *
196    *
197    * <pre>
198    * If positive, `max_retry_duration` specifies the time limit for
199    * retrying a failed task, measured from when the task was first
200    * attempted. Once `max_retry_duration` time has passed *and* the
201    * task has been attempted
202    * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
203    * no further attempts will be made and the task will be deleted.
204    * If zero, then the task age is unlimited.
205    * If unspecified when the queue is created, Cloud Tasks will pick the
206    * default.
207    * This field is output only for [pull
208    * queues][google.cloud.tasks.v2beta2.PullTarget].
209    * `max_retry_duration` will be truncated to the nearest second.
210    * This field has the same meaning as
211    * [task_age_limit in
212    * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
213    * </pre>
214    *
215    * <code>.google.protobuf.Duration max_retry_duration = 3;</code>
216    *
217    * @return Whether the maxRetryDuration field is set.
218    */
219   @java.lang.Override
hasMaxRetryDuration()220   public boolean hasMaxRetryDuration() {
221     return maxRetryDuration_ != null;
222   }
223   /**
224    *
225    *
226    * <pre>
227    * If positive, `max_retry_duration` specifies the time limit for
228    * retrying a failed task, measured from when the task was first
229    * attempted. Once `max_retry_duration` time has passed *and* the
230    * task has been attempted
231    * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
232    * no further attempts will be made and the task will be deleted.
233    * If zero, then the task age is unlimited.
234    * If unspecified when the queue is created, Cloud Tasks will pick the
235    * default.
236    * This field is output only for [pull
237    * queues][google.cloud.tasks.v2beta2.PullTarget].
238    * `max_retry_duration` will be truncated to the nearest second.
239    * This field has the same meaning as
240    * [task_age_limit in
241    * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
242    * </pre>
243    *
244    * <code>.google.protobuf.Duration max_retry_duration = 3;</code>
245    *
246    * @return The maxRetryDuration.
247    */
248   @java.lang.Override
getMaxRetryDuration()249   public com.google.protobuf.Duration getMaxRetryDuration() {
250     return maxRetryDuration_ == null
251         ? com.google.protobuf.Duration.getDefaultInstance()
252         : maxRetryDuration_;
253   }
254   /**
255    *
256    *
257    * <pre>
258    * If positive, `max_retry_duration` specifies the time limit for
259    * retrying a failed task, measured from when the task was first
260    * attempted. Once `max_retry_duration` time has passed *and* the
261    * task has been attempted
262    * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
263    * no further attempts will be made and the task will be deleted.
264    * If zero, then the task age is unlimited.
265    * If unspecified when the queue is created, Cloud Tasks will pick the
266    * default.
267    * This field is output only for [pull
268    * queues][google.cloud.tasks.v2beta2.PullTarget].
269    * `max_retry_duration` will be truncated to the nearest second.
270    * This field has the same meaning as
271    * [task_age_limit in
272    * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
273    * </pre>
274    *
275    * <code>.google.protobuf.Duration max_retry_duration = 3;</code>
276    */
277   @java.lang.Override
getMaxRetryDurationOrBuilder()278   public com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder() {
279     return maxRetryDuration_ == null
280         ? com.google.protobuf.Duration.getDefaultInstance()
281         : maxRetryDuration_;
282   }
283 
284   public static final int MIN_BACKOFF_FIELD_NUMBER = 4;
285   private com.google.protobuf.Duration minBackoff_;
286   /**
287    *
288    *
289    * <pre>
290    * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
291    * for retry between
292    * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
293    * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
294    * after it fails, if the queue's
295    * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
296    * task should be retried.
297    * If unspecified when the queue is created, Cloud Tasks will pick the
298    * default.
299    * This field is output only for [pull
300    * queues][google.cloud.tasks.v2beta2.PullTarget].
301    * `min_backoff` will be truncated to the nearest second.
302    * This field has the same meaning as
303    * [min_backoff_seconds in
304    * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
305    * </pre>
306    *
307    * <code>.google.protobuf.Duration min_backoff = 4;</code>
308    *
309    * @return Whether the minBackoff field is set.
310    */
311   @java.lang.Override
hasMinBackoff()312   public boolean hasMinBackoff() {
313     return minBackoff_ != null;
314   }
315   /**
316    *
317    *
318    * <pre>
319    * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
320    * for retry between
321    * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
322    * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
323    * after it fails, if the queue's
324    * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
325    * task should be retried.
326    * If unspecified when the queue is created, Cloud Tasks will pick the
327    * default.
328    * This field is output only for [pull
329    * queues][google.cloud.tasks.v2beta2.PullTarget].
330    * `min_backoff` will be truncated to the nearest second.
331    * This field has the same meaning as
332    * [min_backoff_seconds in
333    * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
334    * </pre>
335    *
336    * <code>.google.protobuf.Duration min_backoff = 4;</code>
337    *
338    * @return The minBackoff.
339    */
340   @java.lang.Override
getMinBackoff()341   public com.google.protobuf.Duration getMinBackoff() {
342     return minBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBackoff_;
343   }
344   /**
345    *
346    *
347    * <pre>
348    * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
349    * for retry between
350    * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
351    * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
352    * after it fails, if the queue's
353    * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
354    * task should be retried.
355    * If unspecified when the queue is created, Cloud Tasks will pick the
356    * default.
357    * This field is output only for [pull
358    * queues][google.cloud.tasks.v2beta2.PullTarget].
359    * `min_backoff` will be truncated to the nearest second.
360    * This field has the same meaning as
361    * [min_backoff_seconds in
362    * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
363    * </pre>
364    *
365    * <code>.google.protobuf.Duration min_backoff = 4;</code>
366    */
367   @java.lang.Override
getMinBackoffOrBuilder()368   public com.google.protobuf.DurationOrBuilder getMinBackoffOrBuilder() {
369     return minBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBackoff_;
370   }
371 
372   public static final int MAX_BACKOFF_FIELD_NUMBER = 5;
373   private com.google.protobuf.Duration maxBackoff_;
374   /**
375    *
376    *
377    * <pre>
378    * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
379    * for retry between
380    * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
381    * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
382    * after it fails, if the queue's
383    * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
384    * task should be retried.
385    * If unspecified when the queue is created, Cloud Tasks will pick the
386    * default.
387    * This field is output only for [pull
388    * queues][google.cloud.tasks.v2beta2.PullTarget].
389    * `max_backoff` will be truncated to the nearest second.
390    * This field has the same meaning as
391    * [max_backoff_seconds in
392    * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
393    * </pre>
394    *
395    * <code>.google.protobuf.Duration max_backoff = 5;</code>
396    *
397    * @return Whether the maxBackoff field is set.
398    */
399   @java.lang.Override
hasMaxBackoff()400   public boolean hasMaxBackoff() {
401     return maxBackoff_ != null;
402   }
403   /**
404    *
405    *
406    * <pre>
407    * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
408    * for retry between
409    * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
410    * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
411    * after it fails, if the queue's
412    * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
413    * task should be retried.
414    * If unspecified when the queue is created, Cloud Tasks will pick the
415    * default.
416    * This field is output only for [pull
417    * queues][google.cloud.tasks.v2beta2.PullTarget].
418    * `max_backoff` will be truncated to the nearest second.
419    * This field has the same meaning as
420    * [max_backoff_seconds in
421    * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
422    * </pre>
423    *
424    * <code>.google.protobuf.Duration max_backoff = 5;</code>
425    *
426    * @return The maxBackoff.
427    */
428   @java.lang.Override
getMaxBackoff()429   public com.google.protobuf.Duration getMaxBackoff() {
430     return maxBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxBackoff_;
431   }
432   /**
433    *
434    *
435    * <pre>
436    * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
437    * for retry between
438    * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
439    * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
440    * after it fails, if the queue's
441    * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
442    * task should be retried.
443    * If unspecified when the queue is created, Cloud Tasks will pick the
444    * default.
445    * This field is output only for [pull
446    * queues][google.cloud.tasks.v2beta2.PullTarget].
447    * `max_backoff` will be truncated to the nearest second.
448    * This field has the same meaning as
449    * [max_backoff_seconds in
450    * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
451    * </pre>
452    *
453    * <code>.google.protobuf.Duration max_backoff = 5;</code>
454    */
455   @java.lang.Override
getMaxBackoffOrBuilder()456   public com.google.protobuf.DurationOrBuilder getMaxBackoffOrBuilder() {
457     return maxBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxBackoff_;
458   }
459 
460   public static final int MAX_DOUBLINGS_FIELD_NUMBER = 6;
461   private int maxDoublings_ = 0;
462   /**
463    *
464    *
465    * <pre>
466    * The time between retries will double `max_doublings` times.
467    * A task's retry interval starts at
468    * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then
469    * doubles `max_doublings` times, then increases linearly, and finally retries
470    * at intervals of
471    * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to
472    * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
473    * For example, if
474    * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] is 10s,
475    * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] is 300s,
476    * and `max_doublings` is 3, then the a task will first be retried in 10s. The
477    * retry interval will double three times, and then increase linearly by 2^3 *
478    * 10s.  Finally, the task will retry at intervals of
479    * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] until the
480    * task has been attempted
481    * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
482    * Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s,
483    * 300s, ....
484    * If unspecified when the queue is created, Cloud Tasks will pick the
485    * default.
486    * This field is output only for [pull
487    * queues][google.cloud.tasks.v2beta2.PullTarget].
488    * This field has the same meaning as
489    * [max_doublings in
490    * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
491    * </pre>
492    *
493    * <code>int32 max_doublings = 6;</code>
494    *
495    * @return The maxDoublings.
496    */
497   @java.lang.Override
getMaxDoublings()498   public int getMaxDoublings() {
499     return maxDoublings_;
500   }
501 
502   private byte memoizedIsInitialized = -1;
503 
504   @java.lang.Override
isInitialized()505   public final boolean isInitialized() {
506     byte isInitialized = memoizedIsInitialized;
507     if (isInitialized == 1) return true;
508     if (isInitialized == 0) return false;
509 
510     memoizedIsInitialized = 1;
511     return true;
512   }
513 
514   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)515   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
516     if (numAttemptsCase_ == 1) {
517       output.writeInt32(1, (int) ((java.lang.Integer) numAttempts_));
518     }
519     if (numAttemptsCase_ == 2) {
520       output.writeBool(2, (boolean) ((java.lang.Boolean) numAttempts_));
521     }
522     if (maxRetryDuration_ != null) {
523       output.writeMessage(3, getMaxRetryDuration());
524     }
525     if (minBackoff_ != null) {
526       output.writeMessage(4, getMinBackoff());
527     }
528     if (maxBackoff_ != null) {
529       output.writeMessage(5, getMaxBackoff());
530     }
531     if (maxDoublings_ != 0) {
532       output.writeInt32(6, maxDoublings_);
533     }
534     getUnknownFields().writeTo(output);
535   }
536 
537   @java.lang.Override
getSerializedSize()538   public int getSerializedSize() {
539     int size = memoizedSize;
540     if (size != -1) return size;
541 
542     size = 0;
543     if (numAttemptsCase_ == 1) {
544       size +=
545           com.google.protobuf.CodedOutputStream.computeInt32Size(
546               1, (int) ((java.lang.Integer) numAttempts_));
547     }
548     if (numAttemptsCase_ == 2) {
549       size +=
550           com.google.protobuf.CodedOutputStream.computeBoolSize(
551               2, (boolean) ((java.lang.Boolean) numAttempts_));
552     }
553     if (maxRetryDuration_ != null) {
554       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMaxRetryDuration());
555     }
556     if (minBackoff_ != null) {
557       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMinBackoff());
558     }
559     if (maxBackoff_ != null) {
560       size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMaxBackoff());
561     }
562     if (maxDoublings_ != 0) {
563       size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, maxDoublings_);
564     }
565     size += getUnknownFields().getSerializedSize();
566     memoizedSize = size;
567     return size;
568   }
569 
570   @java.lang.Override
equals(final java.lang.Object obj)571   public boolean equals(final java.lang.Object obj) {
572     if (obj == this) {
573       return true;
574     }
575     if (!(obj instanceof com.google.cloud.tasks.v2beta2.RetryConfig)) {
576       return super.equals(obj);
577     }
578     com.google.cloud.tasks.v2beta2.RetryConfig other =
579         (com.google.cloud.tasks.v2beta2.RetryConfig) obj;
580 
581     if (hasMaxRetryDuration() != other.hasMaxRetryDuration()) return false;
582     if (hasMaxRetryDuration()) {
583       if (!getMaxRetryDuration().equals(other.getMaxRetryDuration())) return false;
584     }
585     if (hasMinBackoff() != other.hasMinBackoff()) return false;
586     if (hasMinBackoff()) {
587       if (!getMinBackoff().equals(other.getMinBackoff())) return false;
588     }
589     if (hasMaxBackoff() != other.hasMaxBackoff()) return false;
590     if (hasMaxBackoff()) {
591       if (!getMaxBackoff().equals(other.getMaxBackoff())) return false;
592     }
593     if (getMaxDoublings() != other.getMaxDoublings()) return false;
594     if (!getNumAttemptsCase().equals(other.getNumAttemptsCase())) return false;
595     switch (numAttemptsCase_) {
596       case 1:
597         if (getMaxAttempts() != other.getMaxAttempts()) return false;
598         break;
599       case 2:
600         if (getUnlimitedAttempts() != other.getUnlimitedAttempts()) return false;
601         break;
602       case 0:
603       default:
604     }
605     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
606     return true;
607   }
608 
609   @java.lang.Override
hashCode()610   public int hashCode() {
611     if (memoizedHashCode != 0) {
612       return memoizedHashCode;
613     }
614     int hash = 41;
615     hash = (19 * hash) + getDescriptor().hashCode();
616     if (hasMaxRetryDuration()) {
617       hash = (37 * hash) + MAX_RETRY_DURATION_FIELD_NUMBER;
618       hash = (53 * hash) + getMaxRetryDuration().hashCode();
619     }
620     if (hasMinBackoff()) {
621       hash = (37 * hash) + MIN_BACKOFF_FIELD_NUMBER;
622       hash = (53 * hash) + getMinBackoff().hashCode();
623     }
624     if (hasMaxBackoff()) {
625       hash = (37 * hash) + MAX_BACKOFF_FIELD_NUMBER;
626       hash = (53 * hash) + getMaxBackoff().hashCode();
627     }
628     hash = (37 * hash) + MAX_DOUBLINGS_FIELD_NUMBER;
629     hash = (53 * hash) + getMaxDoublings();
630     switch (numAttemptsCase_) {
631       case 1:
632         hash = (37 * hash) + MAX_ATTEMPTS_FIELD_NUMBER;
633         hash = (53 * hash) + getMaxAttempts();
634         break;
635       case 2:
636         hash = (37 * hash) + UNLIMITED_ATTEMPTS_FIELD_NUMBER;
637         hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUnlimitedAttempts());
638         break;
639       case 0:
640       default:
641     }
642     hash = (29 * hash) + getUnknownFields().hashCode();
643     memoizedHashCode = hash;
644     return hash;
645   }
646 
parseFrom(java.nio.ByteBuffer data)647   public static com.google.cloud.tasks.v2beta2.RetryConfig parseFrom(java.nio.ByteBuffer data)
648       throws com.google.protobuf.InvalidProtocolBufferException {
649     return PARSER.parseFrom(data);
650   }
651 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)652   public static com.google.cloud.tasks.v2beta2.RetryConfig parseFrom(
653       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
654       throws com.google.protobuf.InvalidProtocolBufferException {
655     return PARSER.parseFrom(data, extensionRegistry);
656   }
657 
parseFrom( com.google.protobuf.ByteString data)658   public static com.google.cloud.tasks.v2beta2.RetryConfig parseFrom(
659       com.google.protobuf.ByteString data)
660       throws com.google.protobuf.InvalidProtocolBufferException {
661     return PARSER.parseFrom(data);
662   }
663 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)664   public static com.google.cloud.tasks.v2beta2.RetryConfig parseFrom(
665       com.google.protobuf.ByteString data,
666       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
667       throws com.google.protobuf.InvalidProtocolBufferException {
668     return PARSER.parseFrom(data, extensionRegistry);
669   }
670 
parseFrom(byte[] data)671   public static com.google.cloud.tasks.v2beta2.RetryConfig parseFrom(byte[] data)
672       throws com.google.protobuf.InvalidProtocolBufferException {
673     return PARSER.parseFrom(data);
674   }
675 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)676   public static com.google.cloud.tasks.v2beta2.RetryConfig parseFrom(
677       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
678       throws com.google.protobuf.InvalidProtocolBufferException {
679     return PARSER.parseFrom(data, extensionRegistry);
680   }
681 
parseFrom(java.io.InputStream input)682   public static com.google.cloud.tasks.v2beta2.RetryConfig parseFrom(java.io.InputStream input)
683       throws java.io.IOException {
684     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
685   }
686 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)687   public static com.google.cloud.tasks.v2beta2.RetryConfig parseFrom(
688       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
689       throws java.io.IOException {
690     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
691         PARSER, input, extensionRegistry);
692   }
693 
parseDelimitedFrom( java.io.InputStream input)694   public static com.google.cloud.tasks.v2beta2.RetryConfig parseDelimitedFrom(
695       java.io.InputStream input) throws java.io.IOException {
696     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
697   }
698 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)699   public static com.google.cloud.tasks.v2beta2.RetryConfig parseDelimitedFrom(
700       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
701       throws java.io.IOException {
702     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
703         PARSER, input, extensionRegistry);
704   }
705 
parseFrom( com.google.protobuf.CodedInputStream input)706   public static com.google.cloud.tasks.v2beta2.RetryConfig parseFrom(
707       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
708     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
709   }
710 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)711   public static com.google.cloud.tasks.v2beta2.RetryConfig parseFrom(
712       com.google.protobuf.CodedInputStream input,
713       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
714       throws java.io.IOException {
715     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
716         PARSER, input, extensionRegistry);
717   }
718 
719   @java.lang.Override
newBuilderForType()720   public Builder newBuilderForType() {
721     return newBuilder();
722   }
723 
newBuilder()724   public static Builder newBuilder() {
725     return DEFAULT_INSTANCE.toBuilder();
726   }
727 
newBuilder(com.google.cloud.tasks.v2beta2.RetryConfig prototype)728   public static Builder newBuilder(com.google.cloud.tasks.v2beta2.RetryConfig prototype) {
729     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
730   }
731 
732   @java.lang.Override
toBuilder()733   public Builder toBuilder() {
734     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
735   }
736 
737   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)738   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
739     Builder builder = new Builder(parent);
740     return builder;
741   }
742   /**
743    *
744    *
745    * <pre>
746    * Retry config.
747    * These settings determine how a failed task attempt is retried.
748    * </pre>
749    *
750    * Protobuf type {@code google.cloud.tasks.v2beta2.RetryConfig}
751    */
752   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
753       implements
754       // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.RetryConfig)
755       com.google.cloud.tasks.v2beta2.RetryConfigOrBuilder {
getDescriptor()756     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
757       return com.google.cloud.tasks.v2beta2.QueueProto
758           .internal_static_google_cloud_tasks_v2beta2_RetryConfig_descriptor;
759     }
760 
761     @java.lang.Override
762     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()763         internalGetFieldAccessorTable() {
764       return com.google.cloud.tasks.v2beta2.QueueProto
765           .internal_static_google_cloud_tasks_v2beta2_RetryConfig_fieldAccessorTable
766           .ensureFieldAccessorsInitialized(
767               com.google.cloud.tasks.v2beta2.RetryConfig.class,
768               com.google.cloud.tasks.v2beta2.RetryConfig.Builder.class);
769     }
770 
771     // Construct using com.google.cloud.tasks.v2beta2.RetryConfig.newBuilder()
Builder()772     private Builder() {}
773 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)774     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
775       super(parent);
776     }
777 
778     @java.lang.Override
clear()779     public Builder clear() {
780       super.clear();
781       bitField0_ = 0;
782       maxRetryDuration_ = null;
783       if (maxRetryDurationBuilder_ != null) {
784         maxRetryDurationBuilder_.dispose();
785         maxRetryDurationBuilder_ = null;
786       }
787       minBackoff_ = null;
788       if (minBackoffBuilder_ != null) {
789         minBackoffBuilder_.dispose();
790         minBackoffBuilder_ = null;
791       }
792       maxBackoff_ = null;
793       if (maxBackoffBuilder_ != null) {
794         maxBackoffBuilder_.dispose();
795         maxBackoffBuilder_ = null;
796       }
797       maxDoublings_ = 0;
798       numAttemptsCase_ = 0;
799       numAttempts_ = null;
800       return this;
801     }
802 
803     @java.lang.Override
getDescriptorForType()804     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
805       return com.google.cloud.tasks.v2beta2.QueueProto
806           .internal_static_google_cloud_tasks_v2beta2_RetryConfig_descriptor;
807     }
808 
809     @java.lang.Override
getDefaultInstanceForType()810     public com.google.cloud.tasks.v2beta2.RetryConfig getDefaultInstanceForType() {
811       return com.google.cloud.tasks.v2beta2.RetryConfig.getDefaultInstance();
812     }
813 
814     @java.lang.Override
build()815     public com.google.cloud.tasks.v2beta2.RetryConfig build() {
816       com.google.cloud.tasks.v2beta2.RetryConfig result = buildPartial();
817       if (!result.isInitialized()) {
818         throw newUninitializedMessageException(result);
819       }
820       return result;
821     }
822 
823     @java.lang.Override
buildPartial()824     public com.google.cloud.tasks.v2beta2.RetryConfig buildPartial() {
825       com.google.cloud.tasks.v2beta2.RetryConfig result =
826           new com.google.cloud.tasks.v2beta2.RetryConfig(this);
827       if (bitField0_ != 0) {
828         buildPartial0(result);
829       }
830       buildPartialOneofs(result);
831       onBuilt();
832       return result;
833     }
834 
buildPartial0(com.google.cloud.tasks.v2beta2.RetryConfig result)835     private void buildPartial0(com.google.cloud.tasks.v2beta2.RetryConfig result) {
836       int from_bitField0_ = bitField0_;
837       if (((from_bitField0_ & 0x00000004) != 0)) {
838         result.maxRetryDuration_ =
839             maxRetryDurationBuilder_ == null ? maxRetryDuration_ : maxRetryDurationBuilder_.build();
840       }
841       if (((from_bitField0_ & 0x00000008) != 0)) {
842         result.minBackoff_ = minBackoffBuilder_ == null ? minBackoff_ : minBackoffBuilder_.build();
843       }
844       if (((from_bitField0_ & 0x00000010) != 0)) {
845         result.maxBackoff_ = maxBackoffBuilder_ == null ? maxBackoff_ : maxBackoffBuilder_.build();
846       }
847       if (((from_bitField0_ & 0x00000020) != 0)) {
848         result.maxDoublings_ = maxDoublings_;
849       }
850     }
851 
buildPartialOneofs(com.google.cloud.tasks.v2beta2.RetryConfig result)852     private void buildPartialOneofs(com.google.cloud.tasks.v2beta2.RetryConfig result) {
853       result.numAttemptsCase_ = numAttemptsCase_;
854       result.numAttempts_ = this.numAttempts_;
855     }
856 
857     @java.lang.Override
clone()858     public Builder clone() {
859       return super.clone();
860     }
861 
862     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)863     public Builder setField(
864         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
865       return super.setField(field, value);
866     }
867 
868     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)869     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
870       return super.clearField(field);
871     }
872 
873     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)874     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
875       return super.clearOneof(oneof);
876     }
877 
878     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)879     public Builder setRepeatedField(
880         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
881       return super.setRepeatedField(field, index, value);
882     }
883 
884     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)885     public Builder addRepeatedField(
886         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
887       return super.addRepeatedField(field, value);
888     }
889 
890     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)891     public Builder mergeFrom(com.google.protobuf.Message other) {
892       if (other instanceof com.google.cloud.tasks.v2beta2.RetryConfig) {
893         return mergeFrom((com.google.cloud.tasks.v2beta2.RetryConfig) other);
894       } else {
895         super.mergeFrom(other);
896         return this;
897       }
898     }
899 
mergeFrom(com.google.cloud.tasks.v2beta2.RetryConfig other)900     public Builder mergeFrom(com.google.cloud.tasks.v2beta2.RetryConfig other) {
901       if (other == com.google.cloud.tasks.v2beta2.RetryConfig.getDefaultInstance()) return this;
902       if (other.hasMaxRetryDuration()) {
903         mergeMaxRetryDuration(other.getMaxRetryDuration());
904       }
905       if (other.hasMinBackoff()) {
906         mergeMinBackoff(other.getMinBackoff());
907       }
908       if (other.hasMaxBackoff()) {
909         mergeMaxBackoff(other.getMaxBackoff());
910       }
911       if (other.getMaxDoublings() != 0) {
912         setMaxDoublings(other.getMaxDoublings());
913       }
914       switch (other.getNumAttemptsCase()) {
915         case MAX_ATTEMPTS:
916           {
917             setMaxAttempts(other.getMaxAttempts());
918             break;
919           }
920         case UNLIMITED_ATTEMPTS:
921           {
922             setUnlimitedAttempts(other.getUnlimitedAttempts());
923             break;
924           }
925         case NUMATTEMPTS_NOT_SET:
926           {
927             break;
928           }
929       }
930       this.mergeUnknownFields(other.getUnknownFields());
931       onChanged();
932       return this;
933     }
934 
935     @java.lang.Override
isInitialized()936     public final boolean isInitialized() {
937       return true;
938     }
939 
940     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)941     public Builder mergeFrom(
942         com.google.protobuf.CodedInputStream input,
943         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
944         throws java.io.IOException {
945       if (extensionRegistry == null) {
946         throw new java.lang.NullPointerException();
947       }
948       try {
949         boolean done = false;
950         while (!done) {
951           int tag = input.readTag();
952           switch (tag) {
953             case 0:
954               done = true;
955               break;
956             case 8:
957               {
958                 numAttempts_ = input.readInt32();
959                 numAttemptsCase_ = 1;
960                 break;
961               } // case 8
962             case 16:
963               {
964                 numAttempts_ = input.readBool();
965                 numAttemptsCase_ = 2;
966                 break;
967               } // case 16
968             case 26:
969               {
970                 input.readMessage(
971                     getMaxRetryDurationFieldBuilder().getBuilder(), extensionRegistry);
972                 bitField0_ |= 0x00000004;
973                 break;
974               } // case 26
975             case 34:
976               {
977                 input.readMessage(getMinBackoffFieldBuilder().getBuilder(), extensionRegistry);
978                 bitField0_ |= 0x00000008;
979                 break;
980               } // case 34
981             case 42:
982               {
983                 input.readMessage(getMaxBackoffFieldBuilder().getBuilder(), extensionRegistry);
984                 bitField0_ |= 0x00000010;
985                 break;
986               } // case 42
987             case 48:
988               {
989                 maxDoublings_ = input.readInt32();
990                 bitField0_ |= 0x00000020;
991                 break;
992               } // case 48
993             default:
994               {
995                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
996                   done = true; // was an endgroup tag
997                 }
998                 break;
999               } // default:
1000           } // switch (tag)
1001         } // while (!done)
1002       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1003         throw e.unwrapIOException();
1004       } finally {
1005         onChanged();
1006       } // finally
1007       return this;
1008     }
1009 
1010     private int numAttemptsCase_ = 0;
1011     private java.lang.Object numAttempts_;
1012 
getNumAttemptsCase()1013     public NumAttemptsCase getNumAttemptsCase() {
1014       return NumAttemptsCase.forNumber(numAttemptsCase_);
1015     }
1016 
clearNumAttempts()1017     public Builder clearNumAttempts() {
1018       numAttemptsCase_ = 0;
1019       numAttempts_ = null;
1020       onChanged();
1021       return this;
1022     }
1023 
1024     private int bitField0_;
1025 
1026     /**
1027      *
1028      *
1029      * <pre>
1030      * The maximum number of attempts for a task.
1031      * Cloud Tasks will attempt the task `max_attempts` times (that
1032      * is, if the first attempt fails, then there will be
1033      * `max_attempts - 1` retries).  Must be &gt; 0.
1034      * </pre>
1035      *
1036      * <code>int32 max_attempts = 1;</code>
1037      *
1038      * @return Whether the maxAttempts field is set.
1039      */
hasMaxAttempts()1040     public boolean hasMaxAttempts() {
1041       return numAttemptsCase_ == 1;
1042     }
1043     /**
1044      *
1045      *
1046      * <pre>
1047      * The maximum number of attempts for a task.
1048      * Cloud Tasks will attempt the task `max_attempts` times (that
1049      * is, if the first attempt fails, then there will be
1050      * `max_attempts - 1` retries).  Must be &gt; 0.
1051      * </pre>
1052      *
1053      * <code>int32 max_attempts = 1;</code>
1054      *
1055      * @return The maxAttempts.
1056      */
getMaxAttempts()1057     public int getMaxAttempts() {
1058       if (numAttemptsCase_ == 1) {
1059         return (java.lang.Integer) numAttempts_;
1060       }
1061       return 0;
1062     }
1063     /**
1064      *
1065      *
1066      * <pre>
1067      * The maximum number of attempts for a task.
1068      * Cloud Tasks will attempt the task `max_attempts` times (that
1069      * is, if the first attempt fails, then there will be
1070      * `max_attempts - 1` retries).  Must be &gt; 0.
1071      * </pre>
1072      *
1073      * <code>int32 max_attempts = 1;</code>
1074      *
1075      * @param value The maxAttempts to set.
1076      * @return This builder for chaining.
1077      */
setMaxAttempts(int value)1078     public Builder setMaxAttempts(int value) {
1079 
1080       numAttemptsCase_ = 1;
1081       numAttempts_ = value;
1082       onChanged();
1083       return this;
1084     }
1085     /**
1086      *
1087      *
1088      * <pre>
1089      * The maximum number of attempts for a task.
1090      * Cloud Tasks will attempt the task `max_attempts` times (that
1091      * is, if the first attempt fails, then there will be
1092      * `max_attempts - 1` retries).  Must be &gt; 0.
1093      * </pre>
1094      *
1095      * <code>int32 max_attempts = 1;</code>
1096      *
1097      * @return This builder for chaining.
1098      */
clearMaxAttempts()1099     public Builder clearMaxAttempts() {
1100       if (numAttemptsCase_ == 1) {
1101         numAttemptsCase_ = 0;
1102         numAttempts_ = null;
1103         onChanged();
1104       }
1105       return this;
1106     }
1107 
1108     /**
1109      *
1110      *
1111      * <pre>
1112      * If true, then the number of attempts is unlimited.
1113      * </pre>
1114      *
1115      * <code>bool unlimited_attempts = 2;</code>
1116      *
1117      * @return Whether the unlimitedAttempts field is set.
1118      */
hasUnlimitedAttempts()1119     public boolean hasUnlimitedAttempts() {
1120       return numAttemptsCase_ == 2;
1121     }
1122     /**
1123      *
1124      *
1125      * <pre>
1126      * If true, then the number of attempts is unlimited.
1127      * </pre>
1128      *
1129      * <code>bool unlimited_attempts = 2;</code>
1130      *
1131      * @return The unlimitedAttempts.
1132      */
getUnlimitedAttempts()1133     public boolean getUnlimitedAttempts() {
1134       if (numAttemptsCase_ == 2) {
1135         return (java.lang.Boolean) numAttempts_;
1136       }
1137       return false;
1138     }
1139     /**
1140      *
1141      *
1142      * <pre>
1143      * If true, then the number of attempts is unlimited.
1144      * </pre>
1145      *
1146      * <code>bool unlimited_attempts = 2;</code>
1147      *
1148      * @param value The unlimitedAttempts to set.
1149      * @return This builder for chaining.
1150      */
setUnlimitedAttempts(boolean value)1151     public Builder setUnlimitedAttempts(boolean value) {
1152 
1153       numAttemptsCase_ = 2;
1154       numAttempts_ = value;
1155       onChanged();
1156       return this;
1157     }
1158     /**
1159      *
1160      *
1161      * <pre>
1162      * If true, then the number of attempts is unlimited.
1163      * </pre>
1164      *
1165      * <code>bool unlimited_attempts = 2;</code>
1166      *
1167      * @return This builder for chaining.
1168      */
clearUnlimitedAttempts()1169     public Builder clearUnlimitedAttempts() {
1170       if (numAttemptsCase_ == 2) {
1171         numAttemptsCase_ = 0;
1172         numAttempts_ = null;
1173         onChanged();
1174       }
1175       return this;
1176     }
1177 
1178     private com.google.protobuf.Duration maxRetryDuration_;
1179     private com.google.protobuf.SingleFieldBuilderV3<
1180             com.google.protobuf.Duration,
1181             com.google.protobuf.Duration.Builder,
1182             com.google.protobuf.DurationOrBuilder>
1183         maxRetryDurationBuilder_;
1184     /**
1185      *
1186      *
1187      * <pre>
1188      * If positive, `max_retry_duration` specifies the time limit for
1189      * retrying a failed task, measured from when the task was first
1190      * attempted. Once `max_retry_duration` time has passed *and* the
1191      * task has been attempted
1192      * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
1193      * no further attempts will be made and the task will be deleted.
1194      * If zero, then the task age is unlimited.
1195      * If unspecified when the queue is created, Cloud Tasks will pick the
1196      * default.
1197      * This field is output only for [pull
1198      * queues][google.cloud.tasks.v2beta2.PullTarget].
1199      * `max_retry_duration` will be truncated to the nearest second.
1200      * This field has the same meaning as
1201      * [task_age_limit in
1202      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1203      * </pre>
1204      *
1205      * <code>.google.protobuf.Duration max_retry_duration = 3;</code>
1206      *
1207      * @return Whether the maxRetryDuration field is set.
1208      */
hasMaxRetryDuration()1209     public boolean hasMaxRetryDuration() {
1210       return ((bitField0_ & 0x00000004) != 0);
1211     }
1212     /**
1213      *
1214      *
1215      * <pre>
1216      * If positive, `max_retry_duration` specifies the time limit for
1217      * retrying a failed task, measured from when the task was first
1218      * attempted. Once `max_retry_duration` time has passed *and* the
1219      * task has been attempted
1220      * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
1221      * no further attempts will be made and the task will be deleted.
1222      * If zero, then the task age is unlimited.
1223      * If unspecified when the queue is created, Cloud Tasks will pick the
1224      * default.
1225      * This field is output only for [pull
1226      * queues][google.cloud.tasks.v2beta2.PullTarget].
1227      * `max_retry_duration` will be truncated to the nearest second.
1228      * This field has the same meaning as
1229      * [task_age_limit in
1230      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1231      * </pre>
1232      *
1233      * <code>.google.protobuf.Duration max_retry_duration = 3;</code>
1234      *
1235      * @return The maxRetryDuration.
1236      */
getMaxRetryDuration()1237     public com.google.protobuf.Duration getMaxRetryDuration() {
1238       if (maxRetryDurationBuilder_ == null) {
1239         return maxRetryDuration_ == null
1240             ? com.google.protobuf.Duration.getDefaultInstance()
1241             : maxRetryDuration_;
1242       } else {
1243         return maxRetryDurationBuilder_.getMessage();
1244       }
1245     }
1246     /**
1247      *
1248      *
1249      * <pre>
1250      * If positive, `max_retry_duration` specifies the time limit for
1251      * retrying a failed task, measured from when the task was first
1252      * attempted. Once `max_retry_duration` time has passed *and* the
1253      * task has been attempted
1254      * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
1255      * no further attempts will be made and the task will be deleted.
1256      * If zero, then the task age is unlimited.
1257      * If unspecified when the queue is created, Cloud Tasks will pick the
1258      * default.
1259      * This field is output only for [pull
1260      * queues][google.cloud.tasks.v2beta2.PullTarget].
1261      * `max_retry_duration` will be truncated to the nearest second.
1262      * This field has the same meaning as
1263      * [task_age_limit in
1264      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1265      * </pre>
1266      *
1267      * <code>.google.protobuf.Duration max_retry_duration = 3;</code>
1268      */
setMaxRetryDuration(com.google.protobuf.Duration value)1269     public Builder setMaxRetryDuration(com.google.protobuf.Duration value) {
1270       if (maxRetryDurationBuilder_ == null) {
1271         if (value == null) {
1272           throw new NullPointerException();
1273         }
1274         maxRetryDuration_ = value;
1275       } else {
1276         maxRetryDurationBuilder_.setMessage(value);
1277       }
1278       bitField0_ |= 0x00000004;
1279       onChanged();
1280       return this;
1281     }
1282     /**
1283      *
1284      *
1285      * <pre>
1286      * If positive, `max_retry_duration` specifies the time limit for
1287      * retrying a failed task, measured from when the task was first
1288      * attempted. Once `max_retry_duration` time has passed *and* the
1289      * task has been attempted
1290      * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
1291      * no further attempts will be made and the task will be deleted.
1292      * If zero, then the task age is unlimited.
1293      * If unspecified when the queue is created, Cloud Tasks will pick the
1294      * default.
1295      * This field is output only for [pull
1296      * queues][google.cloud.tasks.v2beta2.PullTarget].
1297      * `max_retry_duration` will be truncated to the nearest second.
1298      * This field has the same meaning as
1299      * [task_age_limit in
1300      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1301      * </pre>
1302      *
1303      * <code>.google.protobuf.Duration max_retry_duration = 3;</code>
1304      */
setMaxRetryDuration(com.google.protobuf.Duration.Builder builderForValue)1305     public Builder setMaxRetryDuration(com.google.protobuf.Duration.Builder builderForValue) {
1306       if (maxRetryDurationBuilder_ == null) {
1307         maxRetryDuration_ = builderForValue.build();
1308       } else {
1309         maxRetryDurationBuilder_.setMessage(builderForValue.build());
1310       }
1311       bitField0_ |= 0x00000004;
1312       onChanged();
1313       return this;
1314     }
1315     /**
1316      *
1317      *
1318      * <pre>
1319      * If positive, `max_retry_duration` specifies the time limit for
1320      * retrying a failed task, measured from when the task was first
1321      * attempted. Once `max_retry_duration` time has passed *and* the
1322      * task has been attempted
1323      * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
1324      * no further attempts will be made and the task will be deleted.
1325      * If zero, then the task age is unlimited.
1326      * If unspecified when the queue is created, Cloud Tasks will pick the
1327      * default.
1328      * This field is output only for [pull
1329      * queues][google.cloud.tasks.v2beta2.PullTarget].
1330      * `max_retry_duration` will be truncated to the nearest second.
1331      * This field has the same meaning as
1332      * [task_age_limit in
1333      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1334      * </pre>
1335      *
1336      * <code>.google.protobuf.Duration max_retry_duration = 3;</code>
1337      */
mergeMaxRetryDuration(com.google.protobuf.Duration value)1338     public Builder mergeMaxRetryDuration(com.google.protobuf.Duration value) {
1339       if (maxRetryDurationBuilder_ == null) {
1340         if (((bitField0_ & 0x00000004) != 0)
1341             && maxRetryDuration_ != null
1342             && maxRetryDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
1343           getMaxRetryDurationBuilder().mergeFrom(value);
1344         } else {
1345           maxRetryDuration_ = value;
1346         }
1347       } else {
1348         maxRetryDurationBuilder_.mergeFrom(value);
1349       }
1350       bitField0_ |= 0x00000004;
1351       onChanged();
1352       return this;
1353     }
1354     /**
1355      *
1356      *
1357      * <pre>
1358      * If positive, `max_retry_duration` specifies the time limit for
1359      * retrying a failed task, measured from when the task was first
1360      * attempted. Once `max_retry_duration` time has passed *and* the
1361      * task has been attempted
1362      * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
1363      * no further attempts will be made and the task will be deleted.
1364      * If zero, then the task age is unlimited.
1365      * If unspecified when the queue is created, Cloud Tasks will pick the
1366      * default.
1367      * This field is output only for [pull
1368      * queues][google.cloud.tasks.v2beta2.PullTarget].
1369      * `max_retry_duration` will be truncated to the nearest second.
1370      * This field has the same meaning as
1371      * [task_age_limit in
1372      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1373      * </pre>
1374      *
1375      * <code>.google.protobuf.Duration max_retry_duration = 3;</code>
1376      */
clearMaxRetryDuration()1377     public Builder clearMaxRetryDuration() {
1378       bitField0_ = (bitField0_ & ~0x00000004);
1379       maxRetryDuration_ = null;
1380       if (maxRetryDurationBuilder_ != null) {
1381         maxRetryDurationBuilder_.dispose();
1382         maxRetryDurationBuilder_ = null;
1383       }
1384       onChanged();
1385       return this;
1386     }
1387     /**
1388      *
1389      *
1390      * <pre>
1391      * If positive, `max_retry_duration` specifies the time limit for
1392      * retrying a failed task, measured from when the task was first
1393      * attempted. Once `max_retry_duration` time has passed *and* the
1394      * task has been attempted
1395      * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
1396      * no further attempts will be made and the task will be deleted.
1397      * If zero, then the task age is unlimited.
1398      * If unspecified when the queue is created, Cloud Tasks will pick the
1399      * default.
1400      * This field is output only for [pull
1401      * queues][google.cloud.tasks.v2beta2.PullTarget].
1402      * `max_retry_duration` will be truncated to the nearest second.
1403      * This field has the same meaning as
1404      * [task_age_limit in
1405      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1406      * </pre>
1407      *
1408      * <code>.google.protobuf.Duration max_retry_duration = 3;</code>
1409      */
getMaxRetryDurationBuilder()1410     public com.google.protobuf.Duration.Builder getMaxRetryDurationBuilder() {
1411       bitField0_ |= 0x00000004;
1412       onChanged();
1413       return getMaxRetryDurationFieldBuilder().getBuilder();
1414     }
1415     /**
1416      *
1417      *
1418      * <pre>
1419      * If positive, `max_retry_duration` specifies the time limit for
1420      * retrying a failed task, measured from when the task was first
1421      * attempted. Once `max_retry_duration` time has passed *and* the
1422      * task has been attempted
1423      * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
1424      * no further attempts will be made and the task will be deleted.
1425      * If zero, then the task age is unlimited.
1426      * If unspecified when the queue is created, Cloud Tasks will pick the
1427      * default.
1428      * This field is output only for [pull
1429      * queues][google.cloud.tasks.v2beta2.PullTarget].
1430      * `max_retry_duration` will be truncated to the nearest second.
1431      * This field has the same meaning as
1432      * [task_age_limit in
1433      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1434      * </pre>
1435      *
1436      * <code>.google.protobuf.Duration max_retry_duration = 3;</code>
1437      */
getMaxRetryDurationOrBuilder()1438     public com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder() {
1439       if (maxRetryDurationBuilder_ != null) {
1440         return maxRetryDurationBuilder_.getMessageOrBuilder();
1441       } else {
1442         return maxRetryDuration_ == null
1443             ? com.google.protobuf.Duration.getDefaultInstance()
1444             : maxRetryDuration_;
1445       }
1446     }
1447     /**
1448      *
1449      *
1450      * <pre>
1451      * If positive, `max_retry_duration` specifies the time limit for
1452      * retrying a failed task, measured from when the task was first
1453      * attempted. Once `max_retry_duration` time has passed *and* the
1454      * task has been attempted
1455      * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
1456      * no further attempts will be made and the task will be deleted.
1457      * If zero, then the task age is unlimited.
1458      * If unspecified when the queue is created, Cloud Tasks will pick the
1459      * default.
1460      * This field is output only for [pull
1461      * queues][google.cloud.tasks.v2beta2.PullTarget].
1462      * `max_retry_duration` will be truncated to the nearest second.
1463      * This field has the same meaning as
1464      * [task_age_limit in
1465      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1466      * </pre>
1467      *
1468      * <code>.google.protobuf.Duration max_retry_duration = 3;</code>
1469      */
1470     private com.google.protobuf.SingleFieldBuilderV3<
1471             com.google.protobuf.Duration,
1472             com.google.protobuf.Duration.Builder,
1473             com.google.protobuf.DurationOrBuilder>
getMaxRetryDurationFieldBuilder()1474         getMaxRetryDurationFieldBuilder() {
1475       if (maxRetryDurationBuilder_ == null) {
1476         maxRetryDurationBuilder_ =
1477             new com.google.protobuf.SingleFieldBuilderV3<
1478                 com.google.protobuf.Duration,
1479                 com.google.protobuf.Duration.Builder,
1480                 com.google.protobuf.DurationOrBuilder>(
1481                 getMaxRetryDuration(), getParentForChildren(), isClean());
1482         maxRetryDuration_ = null;
1483       }
1484       return maxRetryDurationBuilder_;
1485     }
1486 
1487     private com.google.protobuf.Duration minBackoff_;
1488     private com.google.protobuf.SingleFieldBuilderV3<
1489             com.google.protobuf.Duration,
1490             com.google.protobuf.Duration.Builder,
1491             com.google.protobuf.DurationOrBuilder>
1492         minBackoffBuilder_;
1493     /**
1494      *
1495      *
1496      * <pre>
1497      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
1498      * for retry between
1499      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
1500      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
1501      * after it fails, if the queue's
1502      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
1503      * task should be retried.
1504      * If unspecified when the queue is created, Cloud Tasks will pick the
1505      * default.
1506      * This field is output only for [pull
1507      * queues][google.cloud.tasks.v2beta2.PullTarget].
1508      * `min_backoff` will be truncated to the nearest second.
1509      * This field has the same meaning as
1510      * [min_backoff_seconds in
1511      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1512      * </pre>
1513      *
1514      * <code>.google.protobuf.Duration min_backoff = 4;</code>
1515      *
1516      * @return Whether the minBackoff field is set.
1517      */
hasMinBackoff()1518     public boolean hasMinBackoff() {
1519       return ((bitField0_ & 0x00000008) != 0);
1520     }
1521     /**
1522      *
1523      *
1524      * <pre>
1525      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
1526      * for retry between
1527      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
1528      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
1529      * after it fails, if the queue's
1530      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
1531      * task should be retried.
1532      * If unspecified when the queue is created, Cloud Tasks will pick the
1533      * default.
1534      * This field is output only for [pull
1535      * queues][google.cloud.tasks.v2beta2.PullTarget].
1536      * `min_backoff` will be truncated to the nearest second.
1537      * This field has the same meaning as
1538      * [min_backoff_seconds in
1539      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1540      * </pre>
1541      *
1542      * <code>.google.protobuf.Duration min_backoff = 4;</code>
1543      *
1544      * @return The minBackoff.
1545      */
getMinBackoff()1546     public com.google.protobuf.Duration getMinBackoff() {
1547       if (minBackoffBuilder_ == null) {
1548         return minBackoff_ == null
1549             ? com.google.protobuf.Duration.getDefaultInstance()
1550             : minBackoff_;
1551       } else {
1552         return minBackoffBuilder_.getMessage();
1553       }
1554     }
1555     /**
1556      *
1557      *
1558      * <pre>
1559      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
1560      * for retry between
1561      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
1562      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
1563      * after it fails, if the queue's
1564      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
1565      * task should be retried.
1566      * If unspecified when the queue is created, Cloud Tasks will pick the
1567      * default.
1568      * This field is output only for [pull
1569      * queues][google.cloud.tasks.v2beta2.PullTarget].
1570      * `min_backoff` will be truncated to the nearest second.
1571      * This field has the same meaning as
1572      * [min_backoff_seconds in
1573      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1574      * </pre>
1575      *
1576      * <code>.google.protobuf.Duration min_backoff = 4;</code>
1577      */
setMinBackoff(com.google.protobuf.Duration value)1578     public Builder setMinBackoff(com.google.protobuf.Duration value) {
1579       if (minBackoffBuilder_ == null) {
1580         if (value == null) {
1581           throw new NullPointerException();
1582         }
1583         minBackoff_ = value;
1584       } else {
1585         minBackoffBuilder_.setMessage(value);
1586       }
1587       bitField0_ |= 0x00000008;
1588       onChanged();
1589       return this;
1590     }
1591     /**
1592      *
1593      *
1594      * <pre>
1595      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
1596      * for retry between
1597      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
1598      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
1599      * after it fails, if the queue's
1600      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
1601      * task should be retried.
1602      * If unspecified when the queue is created, Cloud Tasks will pick the
1603      * default.
1604      * This field is output only for [pull
1605      * queues][google.cloud.tasks.v2beta2.PullTarget].
1606      * `min_backoff` will be truncated to the nearest second.
1607      * This field has the same meaning as
1608      * [min_backoff_seconds in
1609      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1610      * </pre>
1611      *
1612      * <code>.google.protobuf.Duration min_backoff = 4;</code>
1613      */
setMinBackoff(com.google.protobuf.Duration.Builder builderForValue)1614     public Builder setMinBackoff(com.google.protobuf.Duration.Builder builderForValue) {
1615       if (minBackoffBuilder_ == null) {
1616         minBackoff_ = builderForValue.build();
1617       } else {
1618         minBackoffBuilder_.setMessage(builderForValue.build());
1619       }
1620       bitField0_ |= 0x00000008;
1621       onChanged();
1622       return this;
1623     }
1624     /**
1625      *
1626      *
1627      * <pre>
1628      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
1629      * for retry between
1630      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
1631      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
1632      * after it fails, if the queue's
1633      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
1634      * task should be retried.
1635      * If unspecified when the queue is created, Cloud Tasks will pick the
1636      * default.
1637      * This field is output only for [pull
1638      * queues][google.cloud.tasks.v2beta2.PullTarget].
1639      * `min_backoff` will be truncated to the nearest second.
1640      * This field has the same meaning as
1641      * [min_backoff_seconds in
1642      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1643      * </pre>
1644      *
1645      * <code>.google.protobuf.Duration min_backoff = 4;</code>
1646      */
mergeMinBackoff(com.google.protobuf.Duration value)1647     public Builder mergeMinBackoff(com.google.protobuf.Duration value) {
1648       if (minBackoffBuilder_ == null) {
1649         if (((bitField0_ & 0x00000008) != 0)
1650             && minBackoff_ != null
1651             && minBackoff_ != com.google.protobuf.Duration.getDefaultInstance()) {
1652           getMinBackoffBuilder().mergeFrom(value);
1653         } else {
1654           minBackoff_ = value;
1655         }
1656       } else {
1657         minBackoffBuilder_.mergeFrom(value);
1658       }
1659       bitField0_ |= 0x00000008;
1660       onChanged();
1661       return this;
1662     }
1663     /**
1664      *
1665      *
1666      * <pre>
1667      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
1668      * for retry between
1669      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
1670      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
1671      * after it fails, if the queue's
1672      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
1673      * task should be retried.
1674      * If unspecified when the queue is created, Cloud Tasks will pick the
1675      * default.
1676      * This field is output only for [pull
1677      * queues][google.cloud.tasks.v2beta2.PullTarget].
1678      * `min_backoff` will be truncated to the nearest second.
1679      * This field has the same meaning as
1680      * [min_backoff_seconds in
1681      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1682      * </pre>
1683      *
1684      * <code>.google.protobuf.Duration min_backoff = 4;</code>
1685      */
clearMinBackoff()1686     public Builder clearMinBackoff() {
1687       bitField0_ = (bitField0_ & ~0x00000008);
1688       minBackoff_ = null;
1689       if (minBackoffBuilder_ != null) {
1690         minBackoffBuilder_.dispose();
1691         minBackoffBuilder_ = null;
1692       }
1693       onChanged();
1694       return this;
1695     }
1696     /**
1697      *
1698      *
1699      * <pre>
1700      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
1701      * for retry between
1702      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
1703      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
1704      * after it fails, if the queue's
1705      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
1706      * task should be retried.
1707      * If unspecified when the queue is created, Cloud Tasks will pick the
1708      * default.
1709      * This field is output only for [pull
1710      * queues][google.cloud.tasks.v2beta2.PullTarget].
1711      * `min_backoff` will be truncated to the nearest second.
1712      * This field has the same meaning as
1713      * [min_backoff_seconds in
1714      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1715      * </pre>
1716      *
1717      * <code>.google.protobuf.Duration min_backoff = 4;</code>
1718      */
getMinBackoffBuilder()1719     public com.google.protobuf.Duration.Builder getMinBackoffBuilder() {
1720       bitField0_ |= 0x00000008;
1721       onChanged();
1722       return getMinBackoffFieldBuilder().getBuilder();
1723     }
1724     /**
1725      *
1726      *
1727      * <pre>
1728      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
1729      * for retry between
1730      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
1731      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
1732      * after it fails, if the queue's
1733      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
1734      * task should be retried.
1735      * If unspecified when the queue is created, Cloud Tasks will pick the
1736      * default.
1737      * This field is output only for [pull
1738      * queues][google.cloud.tasks.v2beta2.PullTarget].
1739      * `min_backoff` will be truncated to the nearest second.
1740      * This field has the same meaning as
1741      * [min_backoff_seconds in
1742      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1743      * </pre>
1744      *
1745      * <code>.google.protobuf.Duration min_backoff = 4;</code>
1746      */
getMinBackoffOrBuilder()1747     public com.google.protobuf.DurationOrBuilder getMinBackoffOrBuilder() {
1748       if (minBackoffBuilder_ != null) {
1749         return minBackoffBuilder_.getMessageOrBuilder();
1750       } else {
1751         return minBackoff_ == null
1752             ? com.google.protobuf.Duration.getDefaultInstance()
1753             : minBackoff_;
1754       }
1755     }
1756     /**
1757      *
1758      *
1759      * <pre>
1760      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
1761      * for retry between
1762      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
1763      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
1764      * after it fails, if the queue's
1765      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
1766      * task should be retried.
1767      * If unspecified when the queue is created, Cloud Tasks will pick the
1768      * default.
1769      * This field is output only for [pull
1770      * queues][google.cloud.tasks.v2beta2.PullTarget].
1771      * `min_backoff` will be truncated to the nearest second.
1772      * This field has the same meaning as
1773      * [min_backoff_seconds in
1774      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1775      * </pre>
1776      *
1777      * <code>.google.protobuf.Duration min_backoff = 4;</code>
1778      */
1779     private com.google.protobuf.SingleFieldBuilderV3<
1780             com.google.protobuf.Duration,
1781             com.google.protobuf.Duration.Builder,
1782             com.google.protobuf.DurationOrBuilder>
getMinBackoffFieldBuilder()1783         getMinBackoffFieldBuilder() {
1784       if (minBackoffBuilder_ == null) {
1785         minBackoffBuilder_ =
1786             new com.google.protobuf.SingleFieldBuilderV3<
1787                 com.google.protobuf.Duration,
1788                 com.google.protobuf.Duration.Builder,
1789                 com.google.protobuf.DurationOrBuilder>(
1790                 getMinBackoff(), getParentForChildren(), isClean());
1791         minBackoff_ = null;
1792       }
1793       return minBackoffBuilder_;
1794     }
1795 
1796     private com.google.protobuf.Duration maxBackoff_;
1797     private com.google.protobuf.SingleFieldBuilderV3<
1798             com.google.protobuf.Duration,
1799             com.google.protobuf.Duration.Builder,
1800             com.google.protobuf.DurationOrBuilder>
1801         maxBackoffBuilder_;
1802     /**
1803      *
1804      *
1805      * <pre>
1806      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
1807      * for retry between
1808      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
1809      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
1810      * after it fails, if the queue's
1811      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
1812      * task should be retried.
1813      * If unspecified when the queue is created, Cloud Tasks will pick the
1814      * default.
1815      * This field is output only for [pull
1816      * queues][google.cloud.tasks.v2beta2.PullTarget].
1817      * `max_backoff` will be truncated to the nearest second.
1818      * This field has the same meaning as
1819      * [max_backoff_seconds in
1820      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1821      * </pre>
1822      *
1823      * <code>.google.protobuf.Duration max_backoff = 5;</code>
1824      *
1825      * @return Whether the maxBackoff field is set.
1826      */
hasMaxBackoff()1827     public boolean hasMaxBackoff() {
1828       return ((bitField0_ & 0x00000010) != 0);
1829     }
1830     /**
1831      *
1832      *
1833      * <pre>
1834      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
1835      * for retry between
1836      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
1837      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
1838      * after it fails, if the queue's
1839      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
1840      * task should be retried.
1841      * If unspecified when the queue is created, Cloud Tasks will pick the
1842      * default.
1843      * This field is output only for [pull
1844      * queues][google.cloud.tasks.v2beta2.PullTarget].
1845      * `max_backoff` will be truncated to the nearest second.
1846      * This field has the same meaning as
1847      * [max_backoff_seconds in
1848      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1849      * </pre>
1850      *
1851      * <code>.google.protobuf.Duration max_backoff = 5;</code>
1852      *
1853      * @return The maxBackoff.
1854      */
getMaxBackoff()1855     public com.google.protobuf.Duration getMaxBackoff() {
1856       if (maxBackoffBuilder_ == null) {
1857         return maxBackoff_ == null
1858             ? com.google.protobuf.Duration.getDefaultInstance()
1859             : maxBackoff_;
1860       } else {
1861         return maxBackoffBuilder_.getMessage();
1862       }
1863     }
1864     /**
1865      *
1866      *
1867      * <pre>
1868      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
1869      * for retry between
1870      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
1871      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
1872      * after it fails, if the queue's
1873      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
1874      * task should be retried.
1875      * If unspecified when the queue is created, Cloud Tasks will pick the
1876      * default.
1877      * This field is output only for [pull
1878      * queues][google.cloud.tasks.v2beta2.PullTarget].
1879      * `max_backoff` will be truncated to the nearest second.
1880      * This field has the same meaning as
1881      * [max_backoff_seconds in
1882      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1883      * </pre>
1884      *
1885      * <code>.google.protobuf.Duration max_backoff = 5;</code>
1886      */
setMaxBackoff(com.google.protobuf.Duration value)1887     public Builder setMaxBackoff(com.google.protobuf.Duration value) {
1888       if (maxBackoffBuilder_ == null) {
1889         if (value == null) {
1890           throw new NullPointerException();
1891         }
1892         maxBackoff_ = value;
1893       } else {
1894         maxBackoffBuilder_.setMessage(value);
1895       }
1896       bitField0_ |= 0x00000010;
1897       onChanged();
1898       return this;
1899     }
1900     /**
1901      *
1902      *
1903      * <pre>
1904      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
1905      * for retry between
1906      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
1907      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
1908      * after it fails, if the queue's
1909      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
1910      * task should be retried.
1911      * If unspecified when the queue is created, Cloud Tasks will pick the
1912      * default.
1913      * This field is output only for [pull
1914      * queues][google.cloud.tasks.v2beta2.PullTarget].
1915      * `max_backoff` will be truncated to the nearest second.
1916      * This field has the same meaning as
1917      * [max_backoff_seconds in
1918      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1919      * </pre>
1920      *
1921      * <code>.google.protobuf.Duration max_backoff = 5;</code>
1922      */
setMaxBackoff(com.google.protobuf.Duration.Builder builderForValue)1923     public Builder setMaxBackoff(com.google.protobuf.Duration.Builder builderForValue) {
1924       if (maxBackoffBuilder_ == null) {
1925         maxBackoff_ = builderForValue.build();
1926       } else {
1927         maxBackoffBuilder_.setMessage(builderForValue.build());
1928       }
1929       bitField0_ |= 0x00000010;
1930       onChanged();
1931       return this;
1932     }
1933     /**
1934      *
1935      *
1936      * <pre>
1937      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
1938      * for retry between
1939      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
1940      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
1941      * after it fails, if the queue's
1942      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
1943      * task should be retried.
1944      * If unspecified when the queue is created, Cloud Tasks will pick the
1945      * default.
1946      * This field is output only for [pull
1947      * queues][google.cloud.tasks.v2beta2.PullTarget].
1948      * `max_backoff` will be truncated to the nearest second.
1949      * This field has the same meaning as
1950      * [max_backoff_seconds in
1951      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1952      * </pre>
1953      *
1954      * <code>.google.protobuf.Duration max_backoff = 5;</code>
1955      */
mergeMaxBackoff(com.google.protobuf.Duration value)1956     public Builder mergeMaxBackoff(com.google.protobuf.Duration value) {
1957       if (maxBackoffBuilder_ == null) {
1958         if (((bitField0_ & 0x00000010) != 0)
1959             && maxBackoff_ != null
1960             && maxBackoff_ != com.google.protobuf.Duration.getDefaultInstance()) {
1961           getMaxBackoffBuilder().mergeFrom(value);
1962         } else {
1963           maxBackoff_ = value;
1964         }
1965       } else {
1966         maxBackoffBuilder_.mergeFrom(value);
1967       }
1968       bitField0_ |= 0x00000010;
1969       onChanged();
1970       return this;
1971     }
1972     /**
1973      *
1974      *
1975      * <pre>
1976      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
1977      * for retry between
1978      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
1979      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
1980      * after it fails, if the queue's
1981      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
1982      * task should be retried.
1983      * If unspecified when the queue is created, Cloud Tasks will pick the
1984      * default.
1985      * This field is output only for [pull
1986      * queues][google.cloud.tasks.v2beta2.PullTarget].
1987      * `max_backoff` will be truncated to the nearest second.
1988      * This field has the same meaning as
1989      * [max_backoff_seconds in
1990      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
1991      * </pre>
1992      *
1993      * <code>.google.protobuf.Duration max_backoff = 5;</code>
1994      */
clearMaxBackoff()1995     public Builder clearMaxBackoff() {
1996       bitField0_ = (bitField0_ & ~0x00000010);
1997       maxBackoff_ = null;
1998       if (maxBackoffBuilder_ != null) {
1999         maxBackoffBuilder_.dispose();
2000         maxBackoffBuilder_ = null;
2001       }
2002       onChanged();
2003       return this;
2004     }
2005     /**
2006      *
2007      *
2008      * <pre>
2009      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
2010      * for retry between
2011      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
2012      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
2013      * after it fails, if the queue's
2014      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
2015      * task should be retried.
2016      * If unspecified when the queue is created, Cloud Tasks will pick the
2017      * default.
2018      * This field is output only for [pull
2019      * queues][google.cloud.tasks.v2beta2.PullTarget].
2020      * `max_backoff` will be truncated to the nearest second.
2021      * This field has the same meaning as
2022      * [max_backoff_seconds in
2023      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
2024      * </pre>
2025      *
2026      * <code>.google.protobuf.Duration max_backoff = 5;</code>
2027      */
getMaxBackoffBuilder()2028     public com.google.protobuf.Duration.Builder getMaxBackoffBuilder() {
2029       bitField0_ |= 0x00000010;
2030       onChanged();
2031       return getMaxBackoffFieldBuilder().getBuilder();
2032     }
2033     /**
2034      *
2035      *
2036      * <pre>
2037      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
2038      * for retry between
2039      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
2040      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
2041      * after it fails, if the queue's
2042      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
2043      * task should be retried.
2044      * If unspecified when the queue is created, Cloud Tasks will pick the
2045      * default.
2046      * This field is output only for [pull
2047      * queues][google.cloud.tasks.v2beta2.PullTarget].
2048      * `max_backoff` will be truncated to the nearest second.
2049      * This field has the same meaning as
2050      * [max_backoff_seconds in
2051      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
2052      * </pre>
2053      *
2054      * <code>.google.protobuf.Duration max_backoff = 5;</code>
2055      */
getMaxBackoffOrBuilder()2056     public com.google.protobuf.DurationOrBuilder getMaxBackoffOrBuilder() {
2057       if (maxBackoffBuilder_ != null) {
2058         return maxBackoffBuilder_.getMessageOrBuilder();
2059       } else {
2060         return maxBackoff_ == null
2061             ? com.google.protobuf.Duration.getDefaultInstance()
2062             : maxBackoff_;
2063       }
2064     }
2065     /**
2066      *
2067      *
2068      * <pre>
2069      * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
2070      * for retry between
2071      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
2072      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
2073      * after it fails, if the queue's
2074      * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
2075      * task should be retried.
2076      * If unspecified when the queue is created, Cloud Tasks will pick the
2077      * default.
2078      * This field is output only for [pull
2079      * queues][google.cloud.tasks.v2beta2.PullTarget].
2080      * `max_backoff` will be truncated to the nearest second.
2081      * This field has the same meaning as
2082      * [max_backoff_seconds in
2083      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
2084      * </pre>
2085      *
2086      * <code>.google.protobuf.Duration max_backoff = 5;</code>
2087      */
2088     private com.google.protobuf.SingleFieldBuilderV3<
2089             com.google.protobuf.Duration,
2090             com.google.protobuf.Duration.Builder,
2091             com.google.protobuf.DurationOrBuilder>
getMaxBackoffFieldBuilder()2092         getMaxBackoffFieldBuilder() {
2093       if (maxBackoffBuilder_ == null) {
2094         maxBackoffBuilder_ =
2095             new com.google.protobuf.SingleFieldBuilderV3<
2096                 com.google.protobuf.Duration,
2097                 com.google.protobuf.Duration.Builder,
2098                 com.google.protobuf.DurationOrBuilder>(
2099                 getMaxBackoff(), getParentForChildren(), isClean());
2100         maxBackoff_ = null;
2101       }
2102       return maxBackoffBuilder_;
2103     }
2104 
2105     private int maxDoublings_;
2106     /**
2107      *
2108      *
2109      * <pre>
2110      * The time between retries will double `max_doublings` times.
2111      * A task's retry interval starts at
2112      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then
2113      * doubles `max_doublings` times, then increases linearly, and finally retries
2114      * at intervals of
2115      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to
2116      * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
2117      * For example, if
2118      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] is 10s,
2119      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] is 300s,
2120      * and `max_doublings` is 3, then the a task will first be retried in 10s. The
2121      * retry interval will double three times, and then increase linearly by 2^3 *
2122      * 10s.  Finally, the task will retry at intervals of
2123      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] until the
2124      * task has been attempted
2125      * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
2126      * Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s,
2127      * 300s, ....
2128      * If unspecified when the queue is created, Cloud Tasks will pick the
2129      * default.
2130      * This field is output only for [pull
2131      * queues][google.cloud.tasks.v2beta2.PullTarget].
2132      * This field has the same meaning as
2133      * [max_doublings in
2134      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
2135      * </pre>
2136      *
2137      * <code>int32 max_doublings = 6;</code>
2138      *
2139      * @return The maxDoublings.
2140      */
2141     @java.lang.Override
getMaxDoublings()2142     public int getMaxDoublings() {
2143       return maxDoublings_;
2144     }
2145     /**
2146      *
2147      *
2148      * <pre>
2149      * The time between retries will double `max_doublings` times.
2150      * A task's retry interval starts at
2151      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then
2152      * doubles `max_doublings` times, then increases linearly, and finally retries
2153      * at intervals of
2154      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to
2155      * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
2156      * For example, if
2157      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] is 10s,
2158      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] is 300s,
2159      * and `max_doublings` is 3, then the a task will first be retried in 10s. The
2160      * retry interval will double three times, and then increase linearly by 2^3 *
2161      * 10s.  Finally, the task will retry at intervals of
2162      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] until the
2163      * task has been attempted
2164      * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
2165      * Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s,
2166      * 300s, ....
2167      * If unspecified when the queue is created, Cloud Tasks will pick the
2168      * default.
2169      * This field is output only for [pull
2170      * queues][google.cloud.tasks.v2beta2.PullTarget].
2171      * This field has the same meaning as
2172      * [max_doublings in
2173      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
2174      * </pre>
2175      *
2176      * <code>int32 max_doublings = 6;</code>
2177      *
2178      * @param value The maxDoublings to set.
2179      * @return This builder for chaining.
2180      */
setMaxDoublings(int value)2181     public Builder setMaxDoublings(int value) {
2182 
2183       maxDoublings_ = value;
2184       bitField0_ |= 0x00000020;
2185       onChanged();
2186       return this;
2187     }
2188     /**
2189      *
2190      *
2191      * <pre>
2192      * The time between retries will double `max_doublings` times.
2193      * A task's retry interval starts at
2194      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then
2195      * doubles `max_doublings` times, then increases linearly, and finally retries
2196      * at intervals of
2197      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to
2198      * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
2199      * For example, if
2200      * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] is 10s,
2201      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] is 300s,
2202      * and `max_doublings` is 3, then the a task will first be retried in 10s. The
2203      * retry interval will double three times, and then increase linearly by 2^3 *
2204      * 10s.  Finally, the task will retry at intervals of
2205      * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] until the
2206      * task has been attempted
2207      * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
2208      * Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s,
2209      * 300s, ....
2210      * If unspecified when the queue is created, Cloud Tasks will pick the
2211      * default.
2212      * This field is output only for [pull
2213      * queues][google.cloud.tasks.v2beta2.PullTarget].
2214      * This field has the same meaning as
2215      * [max_doublings in
2216      * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
2217      * </pre>
2218      *
2219      * <code>int32 max_doublings = 6;</code>
2220      *
2221      * @return This builder for chaining.
2222      */
clearMaxDoublings()2223     public Builder clearMaxDoublings() {
2224       bitField0_ = (bitField0_ & ~0x00000020);
2225       maxDoublings_ = 0;
2226       onChanged();
2227       return this;
2228     }
2229 
2230     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2231     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
2232       return super.setUnknownFields(unknownFields);
2233     }
2234 
2235     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2236     public final Builder mergeUnknownFields(
2237         final com.google.protobuf.UnknownFieldSet unknownFields) {
2238       return super.mergeUnknownFields(unknownFields);
2239     }
2240 
2241     // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.RetryConfig)
2242   }
2243 
2244   // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.RetryConfig)
2245   private static final com.google.cloud.tasks.v2beta2.RetryConfig DEFAULT_INSTANCE;
2246 
2247   static {
2248     DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.RetryConfig();
2249   }
2250 
getDefaultInstance()2251   public static com.google.cloud.tasks.v2beta2.RetryConfig getDefaultInstance() {
2252     return DEFAULT_INSTANCE;
2253   }
2254 
2255   private static final com.google.protobuf.Parser<RetryConfig> PARSER =
2256       new com.google.protobuf.AbstractParser<RetryConfig>() {
2257         @java.lang.Override
2258         public RetryConfig parsePartialFrom(
2259             com.google.protobuf.CodedInputStream input,
2260             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2261             throws com.google.protobuf.InvalidProtocolBufferException {
2262           Builder builder = newBuilder();
2263           try {
2264             builder.mergeFrom(input, extensionRegistry);
2265           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2266             throw e.setUnfinishedMessage(builder.buildPartial());
2267           } catch (com.google.protobuf.UninitializedMessageException e) {
2268             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2269           } catch (java.io.IOException e) {
2270             throw new com.google.protobuf.InvalidProtocolBufferException(e)
2271                 .setUnfinishedMessage(builder.buildPartial());
2272           }
2273           return builder.buildPartial();
2274         }
2275       };
2276 
parser()2277   public static com.google.protobuf.Parser<RetryConfig> parser() {
2278     return PARSER;
2279   }
2280 
2281   @java.lang.Override
getParserForType()2282   public com.google.protobuf.Parser<RetryConfig> getParserForType() {
2283     return PARSER;
2284   }
2285 
2286   @java.lang.Override
getDefaultInstanceForType()2287   public com.google.cloud.tasks.v2beta2.RetryConfig getDefaultInstanceForType() {
2288     return DEFAULT_INSTANCE;
2289   }
2290 }
2291