@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (payloadTypeCase_ == 3) {
      output.writeMessage(3, (com.google.cloud.tasks.v2beta2.AppEngineHttpRequest) payloadType_);
    }
    if (payloadTypeCase_ == 4) {
      output.writeMessage(4, (com.google.cloud.tasks.v2beta2.PullMessage) payloadType_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(5, getScheduleTime());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(6, getCreateTime());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(7, getStatus());
    }
    if (view_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) {
      output.writeEnum(8, view_);
    }
    if (payloadTypeCase_ == 13) {
      output.writeMessage(13, (com.google.cloud.tasks.v2beta2.HttpRequest) payloadType_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Output only. The view specifies which subset of the
[Task][google.cloud.tasks.v2beta2.Task] has been returned.
</pre>

<code>.google.cloud.tasks.v2beta2.Task.View view = 8;</code>

@return The view.
java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java