docs: public Observable<ServiceResponseWithHeaders<Void, TaskAddHeaders>> addWithServiceResponseAsync(String jobId, TaskAddParameter task, TaskAddOptions taskAddOptions) {
          if (this.client.batchUrl() == null) {
              throw new IllegalArgumentException("Parameter this.client.batchUrl() is required and cannot be null.");
          }
          if (jobId == null) {
              throw new IllegalArgumentException("Parameter jobId is required and cannot be null.");
          }
          if (task == null) {
              throw new IllegalArgumentException("Parameter task is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          Validator.validate(task);
          Validator.validate(taskAddOptions);
          Integer timeout = null;
          if (taskAddOptions != null) {
              timeout = taskAddOptions.timeout();
          }
          UUID clientRequestId = null;
          if (taskAddOptions != null) {
              clientRequestId = taskAddOptions.clientRequestId();
          }
          Boolean returnClientRequestId = null;
          if (taskAddOptions != null) {
              returnClientRequestId = taskAddOptions.returnClientRequestId();
          }
          DateTime ocpDate = null;
          if (taskAddOptions != null) {
              ocpDate = taskAddOptions.ocpDate();
          }
          String parameterizedHost = Joiner.on(", ").join("{batchUrl}", this.client.batchUrl());
          DateTimeRfc1123 ocpDateConverted = null;
          if (ocpDate != null) {
              ocpDateConverted = new DateTimeRfc1123(ocpDate);
          }
          return service.add(jobId, task, this.client.apiVersion(), this.client.acceptLanguage(), timeout, clientRequestId, returnClientRequestId, ocpDateConverted, parameterizedHost, this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponseWithHeaders<Void, TaskAddHeaders>>>() {
                  @Override
                  public Observable<ServiceResponseWithHeaders<Void, TaskAddHeaders>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponseWithHeaders<Void, TaskAddHeaders> clientResponse = addDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }