@java.lang.Override
    public com.google.cloud.tasks.v2beta2.HttpMethod getHttpMethod() {
      com.google.cloud.tasks.v2beta2.HttpMethod result =
          com.google.cloud.tasks.v2beta2.HttpMethod.forNumber(httpMethod_);
      return result == null ? com.google.cloud.tasks.v2beta2.HttpMethod.UNRECOGNIZED : result;
    }
<pre>
The HTTP method to use for the request.

When specified, it overrides
[HttpRequest][google.cloud.tasks.v2beta2.HttpTarget.http_method] for the
task. Note that if the value is set to [HttpMethod][GET] the
[HttpRequest][body] of the task will be ignored at execution time.
</pre>

<code>.google.cloud.tasks.v2beta2.HttpMethod http_method = 2;</code>

@return The httpMethod.
java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/HttpTarget.java