@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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, hostname_);
    }
    if (cdnKeyConfigCase_ == 5) {
      output.writeMessage(5, (com.google.cloud.video.stitcher.v1.GoogleCdnKey) cdnKeyConfig_);
    }
    if (cdnKeyConfigCase_ == 6) {
      output.writeMessage(6, (com.google.cloud.video.stitcher.v1.AkamaiCdnKey) cdnKeyConfig_);
    }
    if (cdnKeyConfigCase_ == 8) {
      output.writeMessage(8, (com.google.cloud.video.stitcher.v1.MediaCdnKey) cdnKeyConfig_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
The hostname this key applies to.
</pre>

<code>string hostname = 4;</code>

@return The bytes for hostname.
java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKey.java