@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.visionai.v1.GstreamerBufferDescriptor)) {
      return super.equals(obj);
    }
    com.google.cloud.visionai.v1.GstreamerBufferDescriptor other =
        (com.google.cloud.visionai.v1.GstreamerBufferDescriptor) obj;

    if (!getCapsString().equals(other.getCapsString())) return false;
    if (getIsKeyFrame() != other.getIsKeyFrame()) return false;
    if (hasPtsTime() != other.hasPtsTime()) return false;
    if (hasPtsTime()) {
      if (!getPtsTime().equals(other.getPtsTime())) return false;
    }
    if (hasDtsTime() != other.hasDtsTime()) return false;
    if (hasDtsTime()) {
      if (!getDtsTime().equals(other.getDtsTime())) return false;
    }
    if (hasDuration() != other.hasDuration()) return false;
    if (hasDuration()) {
      if (!getDuration().equals(other.getDuration())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<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