@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(capsString_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, capsString_);
    }
    if (isKeyFrame_ != false) {
      output.writeBool(2, isKeyFrame_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(3, getPtsTime());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(4, getDtsTime());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(5, getDuration());
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Duration of the frame.
</pre>

<code>.google.protobuf.Duration duration = 5;</code>
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/GstreamerBufferDescriptor.java