public Builder clearMaxAttempts() {
      if (numAttemptsCase_ == 1) {
        numAttemptsCase_ = 0;
        numAttempts_ = null;
        onChanged();
      }
      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 This builder for chaining.
java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java