@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (configCase_ == 2) {
      output.writeMessage(2, (com.google.protobuf.Value) config_);
    }
    if (neighborCount_ != 0) {
      output.writeInt32(3, neighborCount_);
    }
    if (configCase_ == 4) {
      output.writeMessage(4, (com.google.cloud.vertexai.api.Presets) config_);
    }
    if (sourceCase_ == 5) {
      output.writeMessage(5, (com.google.cloud.vertexai.api.Examples.ExampleGcsSource) source_);
    }
    getUnknownFields().writeTo(output);
  }
<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