Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see
Model versions and lifecycle .
Send feedback
Interface NeighborOrBuilder (1.32.0)
Stay organized with collections
Save and categorize content based on your preferences.
public interface NeighborOrBuilder extends MessageOrBuilder
Methods
getNeighborDistance()
public abstract double getNeighborDistance ()
Output only. The neighbor distance.
double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
double
The neighborDistance.
getNeighborId()
public abstract String getNeighborId ()
Output only. The neighbor id.
string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
String
The neighborId.
getNeighborIdBytes()
public abstract ByteString getNeighborIdBytes ()
Output only. The neighbor id.
string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
ByteString
The bytes for neighborId.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-16 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-16 UTC."],[],[],null,["# Interface NeighborOrBuilder (1.32.0)\n\n public interface NeighborOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getNeighborDistance()\n\n public abstract double getNeighborDistance()\n\nOutput only. The neighbor distance.\n\n`double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getNeighborId()\n\n public abstract String getNeighborId()\n\nOutput only. The neighbor id.\n\n`string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getNeighborIdBytes()\n\n public abstract ByteString getNeighborIdBytes()\n\nOutput only. The neighbor id.\n\n`string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`"]]