diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java index e9c6a638..87f39ca6 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java @@ -213,6 +213,24 @@ public NumAttemptsCase getNumAttemptsCase() { } public static final int MAX_ATTEMPTS_FIELD_NUMBER = 1; + /** + * + * + *
+   * The maximum number of attempts for a task.
+   * Cloud Tasks will attempt the task `max_attempts` times (that
+   * is, if the first attempt fails, then there will be
+   * `max_attempts - 1` retries).  Must be > 0.
+   * 
+ * + * int32 max_attempts = 1; + * + * @return Whether the maxAttempts field is set. + */ + @java.lang.Override + public boolean hasMaxAttempts() { + return numAttemptsCase_ == 1; + } /** * * @@ -236,6 +254,21 @@ public int getMaxAttempts() { } public static final int UNLIMITED_ATTEMPTS_FIELD_NUMBER = 2; + /** + * + * + *
+   * If true, then the number of attempts is unlimited.
+   * 
+ * + * bool unlimited_attempts = 2; + * + * @return Whether the unlimitedAttempts field is set. + */ + @java.lang.Override + public boolean hasUnlimitedAttempts() { + return numAttemptsCase_ == 2; + } /** * * @@ -1017,6 +1050,23 @@ public Builder clearNumAttempts() { return this; } + /** + * + * + *
+     * The maximum number of attempts for a task.
+     * Cloud Tasks will attempt the task `max_attempts` times (that
+     * is, if the first attempt fails, then there will be
+     * `max_attempts - 1` retries).  Must be > 0.
+     * 
+ * + * int32 max_attempts = 1; + * + * @return Whether the maxAttempts field is set. + */ + public boolean hasMaxAttempts() { + return numAttemptsCase_ == 1; + } /** * * @@ -1081,6 +1131,20 @@ public Builder clearMaxAttempts() { return this; } + /** + * + * + *
+     * If true, then the number of attempts is unlimited.
+     * 
+ * + * bool unlimited_attempts = 2; + * + * @return Whether the unlimitedAttempts field is set. + */ + public boolean hasUnlimitedAttempts() { + return numAttemptsCase_ == 2; + } /** * * diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfigOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfigOrBuilder.java index 6e985248..f78d7ff0 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfigOrBuilder.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfigOrBuilder.java @@ -23,6 +23,21 @@ public interface RetryConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.RetryConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * The maximum number of attempts for a task.
+   * Cloud Tasks will attempt the task `max_attempts` times (that
+   * is, if the first attempt fails, then there will be
+   * `max_attempts - 1` retries).  Must be > 0.
+   * 
+ * + * int32 max_attempts = 1; + * + * @return Whether the maxAttempts field is set. + */ + boolean hasMaxAttempts(); /** * * @@ -39,6 +54,18 @@ public interface RetryConfigOrBuilder */ int getMaxAttempts(); + /** + * + * + *
+   * If true, then the number of attempts is unlimited.
+   * 
+ * + * bool unlimited_attempts = 2; + * + * @return Whether the unlimitedAttempts field is set. + */ + boolean hasUnlimitedAttempts(); /** * * diff --git a/synth.metadata b/synth.metadata index d69f77c4..fcca71df 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "a3856385cfd835e6bf031bd606cf8ef9c0b84e04" + "sha": "6acdf7483c1e60f48b2a981087c669242d542ae6" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9", - "internalRef": "358516065" + "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", + "internalRef": "359781040" } }, {