@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. The default is POST.

The app's request handler for the task's target URL must be able to handle
HTTP requests with this http_method, otherwise the task attempt fails with
error code 405 (Method Not Allowed). See [Writing a push task request
handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
and the App Engine documentation for your runtime on [How Requests are
Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
</pre>

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

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