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

    if (!getNeighborId().equals(other.getNeighborId())) return false;
    if (java.lang.Double.doubleToLongBits(getNeighborDistance())
        != java.lang.Double.doubleToLongBits(other.getNeighborDistance())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Output only. The neighbor distance.
</pre>

<code>double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>

@return The neighborDistance.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Neighbor.java