@java.lang.Override
    public com.google.protobuf.Duration getGopDuration() {
      if (gopModeCase_ == 8) {
        return (com.google.protobuf.Duration) gopMode_;
      }
      return com.google.protobuf.Duration.getDefaultInstance();
    }
<pre>
Select the GOP size based on the specified duration. The default is
`2s`. Note that `gopDuration` must be less than or equal to
[segment_duration][google.cloud.video.livestream.v1.SegmentSettings.segment_duration],
and
[segment_duration][google.cloud.video.livestream.v1.SegmentSettings.segment_duration]
must be divisible by `gopDuration`. Valid range is [2s, 20s].

All video streams in the same channel must have the same GOP size.
</pre>

<code>.google.protobuf.Duration gop_duration = 8;</code>

@return The gopDuration.
java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/VideoStream.java