Send feedback
Class FindNeighborsResponse.Neighbor (3.13.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.13.0 keyboard_arrow_down
public static final class FindNeighborsResponse . Neighbor extends GeneratedMessageV3 implements FindNeighborsResponse . NeighborOrBuilder
A neighbor of the query vector.
Protobuf type google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor
Static Fields
public static final int DATAPOINT_FIELD_NUMBER
Field Value
public static final int DISTANCE_FIELD_NUMBER
Field Value
Static Methods
public static FindNeighborsResponse . Neighbor getDefaultInstance ()
Returns
public static final Descriptors . Descriptor getDescriptor ()
Returns
public static FindNeighborsResponse . Neighbor . Builder newBuilder ()
Returns
public static FindNeighborsResponse . Neighbor . Builder newBuilder ( FindNeighborsResponse . Neighbor prototype )
Parameter
Returns
public static FindNeighborsResponse . Neighbor parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static FindNeighborsResponse . Neighbor parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static FindNeighborsResponse . Neighbor parseFrom ( byte [] data )
Parameter
Name Description data
byte []
Returns
Exceptions
public static FindNeighborsResponse . Neighbor parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static FindNeighborsResponse . Neighbor parseFrom ( ByteString data )
Parameter
Returns
Exceptions
public static FindNeighborsResponse . Neighbor parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static FindNeighborsResponse . Neighbor parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static FindNeighborsResponse . Neighbor parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static FindNeighborsResponse . Neighbor parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static FindNeighborsResponse . Neighbor parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static FindNeighborsResponse . Neighbor parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
public static FindNeighborsResponse . Neighbor parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Parser<FindNeighborsResponse . Neighbor > parser ()
Returns
Methods
public boolean equals ( Object obj )
Parameter
Returns
Overrides
public IndexDatapoint getDatapoint ()
The datapoint of the neighbor.
Note that full datapoints are returned only when "return_full_datapoint"
is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
fields are populated.
.google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
Returns
public IndexDatapointOrBuilder getDatapointOrBuilder ()
The datapoint of the neighbor.
Note that full datapoints are returned only when "return_full_datapoint"
is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
fields are populated.
.google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
Returns
public FindNeighborsResponse . Neighbor getDefaultInstanceForType ()
Returns
public double getDistance ()
The distance between the neighbor and the query vector.
double distance = 2;
Returns
Type Description double
The distance.
public Parser<FindNeighborsResponse . Neighbor > getParserForType ()
Returns
Overrides
public int getSerializedSize ()
Returns
Overrides
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
public boolean hasDatapoint ()
The datapoint of the neighbor.
Note that full datapoints are returned only when "return_full_datapoint"
is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
fields are populated.
.google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
Returns
Type Description boolean
Whether the datapoint field is set.
Returns
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public FindNeighborsResponse . Neighbor . Builder newBuilderForType ()
Returns
protected FindNeighborsResponse . Neighbor . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
public FindNeighborsResponse . Neighbor . Builder toBuilder ()
Returns
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
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-01-28 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-01-28 UTC."],[],[]]