@java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileName_);
    }
    if (type_
        != com.google.cloud.video.livestream.v1.Manifest.ManifestType.MANIFEST_TYPE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < muxStreams_.size(); i++) {
        dataSize += computeStringSizeNoTag(muxStreams_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getMuxStreamsList().size();
    }
    if (maxSegmentCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxSegmentCount_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSegmentKeepDuration());
    }
    if (useTimecodeAsTimeline_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, useTimecodeAsTimeline_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, key_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<pre>
Optional. A unique key for this manifest.
</pre>

<code>string key = 7 [(.google.api.field_behavior) = OPTIONAL];</code>

@return The bytes for key.
java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Manifest.java