@java.lang.Override
  public com.google.cloud.tasks.v2.HttpRequest getHttpRequest() {
    if (messageTypeCase_ == 3) {
      return (com.google.cloud.tasks.v2.HttpRequest) messageType_;
    }
    return com.google.cloud.tasks.v2.HttpRequest.getDefaultInstance();
  }
<pre>
HTTP request that is sent to the worker.

An HTTP task is a task that has
[HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
</pre>

<code>.google.cloud.tasks.v2.HttpRequest http_request = 3;</code>

@return The httpRequest.
java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java