@Override
  public boolean equals(Object obj) {
    if (!(obj instanceof MonitoringKeysetInfo)) {
      return false;
    }
    MonitoringKeysetInfo info = (MonitoringKeysetInfo) obj;
    return annotations.equals(info.annotations)
        && entries.equals(info.entries)
        && Objects.equals(primaryKeyId, info.primaryKeyId);
  }
Builds the MonitoringKeysetInfo object. The builder is not usable anymore afterwards.
java_src/src/main/java/com/google/crypto/tink/monitoring/MonitoringKeysetInfo.java