public Builder setSegmentDuration(com.google.protobuf.Duration.Builder builderForValue) {
      if (segmentDurationBuilder_ == null) {
        segmentDuration_ = builderForValue.build();
      } else {
        segmentDurationBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
<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