public Builder mergeHeartbeatInterval(com.google.protobuf.Duration value) {
        if (heartbeatIntervalBuilder_ == null) {
          if (((bitField0_ & 0x00000010) != 0)
              && heartbeatInterval_ != null
              && heartbeatInterval_ != com.google.protobuf.Duration.getDefaultInstance()) {
            getHeartbeatIntervalBuilder().mergeFrom(value);
          } else {
            heartbeatInterval_ = value;
          }
        } else {
          heartbeatIntervalBuilder_.mergeFrom(value);
        }
        if (heartbeatInterval_ != null) {
          bitField0_ |= 0x00000010;
          onChanged();
        }
        return this;
      }
<pre>
The maximum duration of server silence before the client determines the
server unreachable.

The client must either receive an `Event` update or a heart beat message
before this duration expires; otherwise, the client will automatically
cancel the current connection and retry.
</pre>

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