Interface FindNeighborsResponse.NeighborOrBuilder (3.24.0)

public static interface FindNeighborsResponse.NeighborOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDatapoint()

public abstract 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
TypeDescription
IndexDatapoint

The datapoint.

getDatapointOrBuilder()

public abstract 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
TypeDescription
IndexDatapointOrBuilder

getDistance()

public abstract double getDistance()

The distance between the neighbor and the query vector.

double distance = 2;

Returns
TypeDescription
double

The distance.

hasDatapoint()

public abstract 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
TypeDescription
boolean

Whether the datapoint field is set.