@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 (resourceCase_ == 5) {
      output.writeMessage(5, (com.google.cloud.video.livestream.v1.Asset.VideoAsset) resource_);
    }
    if (resourceCase_ == 6) {
      output.writeMessage(6, (com.google.cloud.video.livestream.v1.Asset.ImageAsset) resource_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crc32C_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, crc32C_);
    }
    if (state_ != com.google.cloud.video.livestream.v1.Asset.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(8, state_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(9, getError());
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Output only. Only present when `state` is `ERROR`. The reason for the error
state of the asset.
</pre>

<code>.google.rpc.Status error = 9 [(.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/Asset.java