Class FindNeighborsResponse.Neighbor (3.41.0)

public static final class FindNeighborsResponse.Neighbor extends GeneratedMessageV3 implements FindNeighborsResponse.NeighborOrBuilder

A neighbor of the query vector.

Protobuf type google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > FindNeighborsResponse.Neighbor

Static Fields

DATAPOINT_FIELD_NUMBER

public static final int DATAPOINT_FIELD_NUMBER
Field Value
TypeDescription
int

DISTANCE_FIELD_NUMBER

public static final int DISTANCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FindNeighborsResponse.Neighbor getDefaultInstance()
Returns
TypeDescription
FindNeighborsResponse.Neighbor

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static FindNeighborsResponse.Neighbor.Builder newBuilder()
Returns
TypeDescription
FindNeighborsResponse.Neighbor.Builder

newBuilder(FindNeighborsResponse.Neighbor prototype)

public static FindNeighborsResponse.Neighbor.Builder newBuilder(FindNeighborsResponse.Neighbor prototype)
Parameter
NameDescription
prototypeFindNeighborsResponse.Neighbor
Returns
TypeDescription
FindNeighborsResponse.Neighbor.Builder

parseDelimitedFrom(InputStream input)

public static FindNeighborsResponse.Neighbor parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FindNeighborsResponse.Neighbor
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FindNeighborsResponse.Neighbor parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FindNeighborsResponse.Neighbor
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FindNeighborsResponse.Neighbor parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FindNeighborsResponse.Neighbor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FindNeighborsResponse.Neighbor parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FindNeighborsResponse.Neighbor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FindNeighborsResponse.Neighbor parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FindNeighborsResponse.Neighbor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FindNeighborsResponse.Neighbor parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FindNeighborsResponse.Neighbor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FindNeighborsResponse.Neighbor parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FindNeighborsResponse.Neighbor
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FindNeighborsResponse.Neighbor parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FindNeighborsResponse.Neighbor
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FindNeighborsResponse.Neighbor parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FindNeighborsResponse.Neighbor
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FindNeighborsResponse.Neighbor parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FindNeighborsResponse.Neighbor
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FindNeighborsResponse.Neighbor parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FindNeighborsResponse.Neighbor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FindNeighborsResponse.Neighbor parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FindNeighborsResponse.Neighbor
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<FindNeighborsResponse.Neighbor> parser()
Returns
TypeDescription
Parser<Neighbor>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDatapoint()

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.v1.IndexDatapoint datapoint = 1;

Returns
TypeDescription
IndexDatapoint

The datapoint.

getDatapointOrBuilder()

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.v1.IndexDatapoint datapoint = 1;

Returns
TypeDescription
IndexDatapointOrBuilder

getDefaultInstanceForType()

public FindNeighborsResponse.Neighbor getDefaultInstanceForType()
Returns
TypeDescription
FindNeighborsResponse.Neighbor

getDistance()

public double getDistance()

The distance between the neighbor and the query vector.

double distance = 2;

Returns
TypeDescription
double

The distance.

getParserForType()

public Parser<FindNeighborsResponse.Neighbor> getParserForType()
Returns
TypeDescription
Parser<Neighbor>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasDatapoint()

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.v1.IndexDatapoint datapoint = 1;

Returns
TypeDescription
boolean

Whether the datapoint field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public FindNeighborsResponse.Neighbor.Builder newBuilderForType()
Returns
TypeDescription
FindNeighborsResponse.Neighbor.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FindNeighborsResponse.Neighbor.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FindNeighborsResponse.Neighbor.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public FindNeighborsResponse.Neighbor.Builder toBuilder()
Returns
TypeDescription
FindNeighborsResponse.Neighbor.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException