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

      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 an ad opportunity. Must be greater than 0.
</pre>

<code>.google.protobuf.Duration duration = 1;</code>
java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Event.java