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

    if (hasSegmentDuration() != other.hasSegmentDuration()) return false;
    if (hasSegmentDuration()) {
      if (!getSegmentDuration().equals(other.getSegmentDuration())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Duration of the segments in seconds. The default is `6s`. Note that
`segmentDuration` must be greater than or equal to
[gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration],
and `segmentDuration` must be divisible by
[gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration].
Valid range is [2s, 20s].

All [mux_streams][google.cloud.video.livestream.v1.Manifest.mux_streams] in
the same manifest must have the same segment duration.
</pre>

<code>.google.protobuf.Duration segment_duration = 1;</code>
java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/SegmentSettings.java