@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.video.stitcher.v1.CdnKey)) {
      return super.equals(obj);
    }
    com.google.cloud.video.stitcher.v1.CdnKey other =
        (com.google.cloud.video.stitcher.v1.CdnKey) obj;

    if (!getName().equals(other.getName())) return false;
    if (!getHostname().equals(other.getHostname())) return false;
    if (!getCdnKeyConfigCase().equals(other.getCdnKeyConfigCase())) return false;
    switch (cdnKeyConfigCase_) {
      case 5:
        if (!getGoogleCdnKey().equals(other.getGoogleCdnKey())) return false;
        break;
      case 6:
        if (!getAkamaiCdnKey().equals(other.getAkamaiCdnKey())) return false;
        break;
      case 8:
        if (!getMediaCdnKey().equals(other.getMediaCdnKey())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<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