@java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + NEIGHBOR_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + getNeighborCount();
    switch (sourceCase_) {
      case 5:
        hash = (37 * hash) + EXAMPLE_GCS_SOURCE_FIELD_NUMBER;
        hash = (53 * hash) + getExampleGcsSource().hashCode();
        break;
      case 0:
      default:
    }
    switch (configCase_) {
      case 2:
        hash = (37 * hash) + NEAREST_NEIGHBOR_SEARCH_CONFIG_FIELD_NUMBER;
        hash = (53 * hash) + getNearestNeighborSearchConfig().hashCode();
        break;
      case 4:
        hash = (37 * hash) + PRESETS_FIELD_NUMBER;
        hash = (53 * hash) + getPresets().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }
<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