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