Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
feat(generator): update protoc to v3.15.3 (#377)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/c70c2328-69c5-4e5d-a0a1-376c1f8b88da/targets

- [ ] To automatically regenerate this PR, check this box.

PiperOrigin-RevId: 359781040
Source-Link: googleapis/googleapis@f6dd7e4
  • Loading branch information
yoshi-automation committed Mar 1, 2021
1 parent 6acdf74 commit 5c71783
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 3 deletions.
Expand Up @@ -213,6 +213,24 @@ public NumAttemptsCase getNumAttemptsCase() {
}

public static final int MAX_ATTEMPTS_FIELD_NUMBER = 1;
/**
*
*
* <pre>
* 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 &gt; 0.
* </pre>
*
* <code>int32 max_attempts = 1;</code>
*
* @return Whether the maxAttempts field is set.
*/
@java.lang.Override
public boolean hasMaxAttempts() {
return numAttemptsCase_ == 1;
}
/**
*
*
Expand All @@ -236,6 +254,21 @@ public int getMaxAttempts() {
}

public static final int UNLIMITED_ATTEMPTS_FIELD_NUMBER = 2;
/**
*
*
* <pre>
* If true, then the number of attempts is unlimited.
* </pre>
*
* <code>bool unlimited_attempts = 2;</code>
*
* @return Whether the unlimitedAttempts field is set.
*/
@java.lang.Override
public boolean hasUnlimitedAttempts() {
return numAttemptsCase_ == 2;
}
/**
*
*
Expand Down Expand Up @@ -1017,6 +1050,23 @@ public Builder clearNumAttempts() {
return this;
}

/**
*
*
* <pre>
* 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 &gt; 0.
* </pre>
*
* <code>int32 max_attempts = 1;</code>
*
* @return Whether the maxAttempts field is set.
*/
public boolean hasMaxAttempts() {
return numAttemptsCase_ == 1;
}
/**
*
*
Expand Down Expand Up @@ -1081,6 +1131,20 @@ public Builder clearMaxAttempts() {
return this;
}

/**
*
*
* <pre>
* If true, then the number of attempts is unlimited.
* </pre>
*
* <code>bool unlimited_attempts = 2;</code>
*
* @return Whether the unlimitedAttempts field is set.
*/
public boolean hasUnlimitedAttempts() {
return numAttemptsCase_ == 2;
}
/**
*
*
Expand Down
Expand Up @@ -23,6 +23,21 @@ public interface RetryConfigOrBuilder
// @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.RetryConfig)
com.google.protobuf.MessageOrBuilder {

/**
*
*
* <pre>
* 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 &gt; 0.
* </pre>
*
* <code>int32 max_attempts = 1;</code>
*
* @return Whether the maxAttempts field is set.
*/
boolean hasMaxAttempts();
/**
*
*
Expand All @@ -39,6 +54,18 @@ public interface RetryConfigOrBuilder
*/
int getMaxAttempts();

/**
*
*
* <pre>
* If true, then the number of attempts is unlimited.
* </pre>
*
* <code>bool unlimited_attempts = 2;</code>
*
* @return Whether the unlimitedAttempts field is set.
*/
boolean hasUnlimitedAttempts();
/**
*
*
Expand Down
6 changes: 3 additions & 3 deletions synth.metadata
Expand Up @@ -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"
}
},
{
Expand Down

0 comments on commit 5c71783

Please sign in to comment.