@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 (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(2, getCreateTime());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(3, getUpdateTime());
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
    if (taskCase_ == 5) {
      output.writeMessage(5, (com.google.cloud.video.livestream.v1.Event.InputSwitchTask) task_);
    }
    if (taskCase_ == 6) {
      output.writeMessage(6, (com.google.cloud.video.livestream.v1.Event.AdBreakTask) task_);
    }
    if (executeNow_ != false) {
      output.writeBool(9, executeNow_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(10, getExecutionTime());
    }
    if (state_ != com.google.cloud.video.livestream.v1.Event.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(11, state_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeMessage(12, getError());
    }
    if (taskCase_ == 13) {
      output.writeMessage(
          13, (com.google.cloud.video.livestream.v1.Event.ReturnToProgramTask) task_);
    }
    if (taskCase_ == 14) {
      output.writeMessage(14, (com.google.cloud.video.livestream.v1.Event.SlateTask) task_);
    }
    if (taskCase_ == 15) {
      output.writeMessage(15, (com.google.cloud.video.livestream.v1.Event.MuteTask) task_);
    }
    if (taskCase_ == 16) {
      output.writeMessage(16, (com.google.cloud.video.livestream.v1.Event.UnmuteTask) task_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Output only. An error object that describes the reason for the failure.
This property is always present when `state` is `FAILED`.
</pre>

<code>.google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Event.java