@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (elementaryStreamCase_ == 1) {
      output.writeMessage(1, (com.google.cloud.video.transcoder.v1.VideoStream) elementaryStream_);
    }
    if (elementaryStreamCase_ == 2) {
      output.writeMessage(2, (com.google.cloud.video.transcoder.v1.AudioStream) elementaryStream_);
    }
    if (elementaryStreamCase_ == 3) {
      output.writeMessage(3, (com.google.cloud.video.transcoder.v1.TextStream) elementaryStream_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, key_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Encoding of a text stream. For example, closed captions or subtitles.
</pre>

<code>.google.cloud.video.transcoder.v1.TextStream text_stream = 3;</code>
java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/ElementaryStream.java