This repository was archived by the owner on Sep 16, 2023. It is now read-only.

File tree

3 files changed

+94
-3
lines changed

3 files changed

+94
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,24 @@ public NumAttemptsCase getNumAttemptsCase() {
213213
}
214214

215215
public static final int MAX_ATTEMPTS_FIELD_NUMBER = 1;
216+
/**
217+
*
218+
*
219+
* <pre>
220+
* The maximum number of attempts for a task.
221+
* Cloud Tasks will attempt the task `max_attempts` times (that
222+
* is, if the first attempt fails, then there will be
223+
* `max_attempts - 1` retries). Must be &gt; 0.
224+
* </pre>
225+
*
226+
* <code>int32 max_attempts = 1;</code>
227+
*
228+
* @return Whether the maxAttempts field is set.
229+
*/
230+
@java.lang.Override
231+
public boolean hasMaxAttempts() {
232+
return numAttemptsCase_ == 1;
233+
}
216234
/**
217235
*
218236
*
@@ -236,6 +254,21 @@ public int getMaxAttempts() {
236254
}
237255

238256
public static final int UNLIMITED_ATTEMPTS_FIELD_NUMBER = 2;
257+
/**
258+
*
259+
*
260+
* <pre>
261+
* If true, then the number of attempts is unlimited.
262+
* </pre>
263+
*
264+
* <code>bool unlimited_attempts = 2;</code>
265+
*
266+
* @return Whether the unlimitedAttempts field is set.
267+
*/
268+
@java.lang.Override
269+
public boolean hasUnlimitedAttempts() {
270+
return numAttemptsCase_ == 2;
271+
}
239272
/**
240273
*
241274
*
@@ -1017,6 +1050,23 @@ public Builder clearNumAttempts() {
10171050
return this;
10181051
}
10191052

1053+
/**
1054+
*
1055+
*
1056+
* <pre>
1057+
* The maximum number of attempts for a task.
1058+
* Cloud Tasks will attempt the task `max_attempts` times (that
1059+
* is, if the first attempt fails, then there will be
1060+
* `max_attempts - 1` retries). Must be &gt; 0.
1061+
* </pre>
1062+
*
1063+
* <code>int32 max_attempts = 1;</code>
1064+
*
1065+
* @return Whether the maxAttempts field is set.
1066+
*/
1067+
public boolean hasMaxAttempts() {
1068+
return numAttemptsCase_ == 1;
1069+
}
10201070
/**
10211071
*
10221072
*
@@ -1081,6 +1131,20 @@ public Builder clearMaxAttempts() {
10811131
return this;
10821132
}
10831133

1134+
/**
1135+
*
1136+
*
1137+
* <pre>
1138+
* If true, then the number of attempts is unlimited.
1139+
* </pre>
1140+
*
1141+
* <code>bool unlimited_attempts = 2;</code>
1142+
*
1143+
* @return Whether the unlimitedAttempts field is set.
1144+
*/
1145+
public boolean hasUnlimitedAttempts() {
1146+
return numAttemptsCase_ == 2;
1147+
}
10841148
/**
10851149
*
10861150
*
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@ public interface RetryConfigOrBuilder
2323
// @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.RetryConfig)
2424
com.google.protobuf.MessageOrBuilder {
2525

26+
/**
27+
*
28+
*
29+
* <pre>
30+
* The maximum number of attempts for a task.
31+
* Cloud Tasks will attempt the task `max_attempts` times (that
32+
* is, if the first attempt fails, then there will be
33+
* `max_attempts - 1` retries). Must be &gt; 0.
34+
* </pre>
35+
*
36+
* <code>int32 max_attempts = 1;</code>
37+
*
38+
* @return Whether the maxAttempts field is set.
39+
*/
40+
boolean hasMaxAttempts();
2641
/**
2742
*
2843
*
@@ -39,6 +54,18 @@ public interface RetryConfigOrBuilder
3954
*/
4055
int getMaxAttempts();
4156

57+
/**
58+
*
59+
*
60+
* <pre>
61+
* If true, then the number of attempts is unlimited.
62+
* </pre>
63+
*
64+
* <code>bool unlimited_attempts = 2;</code>
65+
*
66+
* @return Whether the unlimitedAttempts field is set.
67+
*/
68+
boolean hasUnlimitedAttempts();
4269
/**
4370
*
4471
*
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"git": {
55
"name": ".",
66
"remote": "https://.com/googleapis/java-tasks.git",
7-
"sha": "a3856385cfd835e6bf031bd606cf8ef9c0b84e04"
7+
"sha": "6acdf7483c1e60f48b2a981087c669242d542ae6"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://.com/googleapis/googleapis.git",
14-
"sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9",
15-
"internalRef": "358516065"
14+
"sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516",
15+
"internalRef": "359781040"
1616
}
1717
},
1818
{

0 commit comments

Comments
 (0)