public com.google.protobuf.Duration getDuration() {
      if (durationBuilder_ == null) {
        return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
      } else {
        return durationBuilder_.getMessage();
      }
    }
<pre>
Duration of the frame.
</pre>

<code>.google.protobuf.Duration duration = 5;</code>

@return The duration.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/GstreamerBufferDescriptor.java