private void buildPartialOneofs(com.google.cloud.tasks.v2beta2.Task result) {
      result.payloadTypeCase_ = payloadTypeCase_;
      result.payloadType_ = this.payloadType_;
      if (payloadTypeCase_ == 3 && appEngineHttpRequestBuilder_ != null) {
        result.payloadType_ = appEngineHttpRequestBuilder_.build();
      }
      if (payloadTypeCase_ == 4 && pullMessageBuilder_ != null) {
        result.payloadType_ = pullMessageBuilder_.build();
      }
      if (payloadTypeCase_ == 13 && httpRequestBuilder_ != null) {
        result.payloadType_ = httpRequestBuilder_.build();
      }
    }
<pre>
A unit of scheduled work.
</pre>

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