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

    if (getNeighborCount() != other.getNeighborCount()) return false;
    if (!getSourceCase().equals(other.getSourceCase())) return false;
    switch (sourceCase_) {
      case 5:
        if (!getExampleGcsSource().equals(other.getExampleGcsSource())) return false;
        break;
      case 0:
      default:
    }
    if (!getConfigCase().equals(other.getConfigCase())) return false;
    switch (configCase_) {
      case 2:
        if (!getNearestNeighborSearchConfig().equals(other.getNearestNeighborSearchConfig()))
          return false;
        break;
      case 4:
        if (!getPresets().equals(other.getPresets())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
The number of neighbors to return when querying for examples.
</pre>

<code>int32 neighbor_count = 3;</code>

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