@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 (messageTypeCase_ == 2) {
      output.writeMessage(2, (com.google.cloud.tasks.v2.AppEngineHttpRequest) messageType_);
    }
    if (messageTypeCase_ == 3) {
      output.writeMessage(3, (com.google.cloud.tasks.v2.HttpRequest) messageType_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(4, getScheduleTime());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(5, getCreateTime());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(6, getDispatchDeadline());
    }
    if (dispatchCount_ != 0) {
      output.writeInt32(7, dispatchCount_);
    }
    if (responseCount_ != 0) {
      output.writeInt32(8, responseCount_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeMessage(9, getFirstAttempt());
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeMessage(10, getLastAttempt());
    }
    if (view_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) {
      output.writeEnum(11, view_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Output only. The view specifies which subset of the
[Task][google.cloud.tasks.v2.Task] has been returned.
</pre>

<code>.google.cloud.tasks.v2.Task.View view = 11;</code>

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