private void buildPartialOneofs(com.google.cloud.tasks.v2.Task result) {
      result.messageTypeCase_ = messageTypeCase_;
      result.messageType_ = this.messageType_;
      if (messageTypeCase_ == 2 && appEngineHttpRequestBuilder_ != null) {
        result.messageType_ = appEngineHttpRequestBuilder_.build();
      }
      if (messageTypeCase_ == 3 && httpRequestBuilder_ != null) {
        result.messageType_ = httpRequestBuilder_.build();
      }
    }
<pre>
A unit of scheduled work.
</pre>

Protobuf type {@code google.cloud.tasks.v2.Task}
java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java