public com.google.protobuf.DurationOrBuilder getSegmentDurationOrBuilder() {
      if (segmentDurationBuilder_ != null) {
        return segmentDurationBuilder_.getMessageOrBuilder();
      } else {
        return segmentDuration_ == null
            ? com.google.protobuf.Duration.getDefaultInstance()
            : segmentDuration_;
      }
    }
<pre>
Duration of the segments in seconds. The default is `6.0s`. Note that
`segmentDuration` must be greater than or equal to
[`gopDuration`](#videostream), and `segmentDuration` must be divisible by
[`gopDuration`](#videostream).
</pre>

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