public static final class FindNeighborsResponse.Neighbor.Builder extends com.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.Neighbor.Builder> implements FindNeighborsResponse.NeighborOrBuilder
A neighbor of the query vector.Protobuf type
google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor| Modifier and Type | Method and Description |
|---|---|
FindNeighborsResponse.Neighbor |
build() |
FindNeighborsResponse.Neighbor |
buildPartial() |
FindNeighborsResponse.Neighbor.Builder |
clear() |
FindNeighborsResponse.Neighbor.Builder |
clearDatapoint()
The datapoint of the neighbor.
|
FindNeighborsResponse.Neighbor.Builder |
clearDistance()
The distance between the neighbor and the dense embedding query.
|
FindNeighborsResponse.Neighbor.Builder |
clearSparseDistance()
The distance between the neighbor and the query sparse_embedding.
|
IndexDatapoint |
getDatapoint()
The datapoint of the neighbor.
|
IndexDatapoint.Builder |
getDatapointBuilder()
The datapoint of the neighbor.
|
IndexDatapointOrBuilder |
getDatapointOrBuilder()
The datapoint of the neighbor.
|
FindNeighborsResponse.Neighbor |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getDistance()
The distance between the neighbor and the dense embedding query.
|
double |
getSparseDistance()
The distance between the neighbor and the query sparse_embedding.
|
boolean |
hasDatapoint()
The datapoint of the neighbor.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
FindNeighborsResponse.Neighbor.Builder |
mergeDatapoint(IndexDatapoint value)
The datapoint of the neighbor.
|
FindNeighborsResponse.Neighbor.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FindNeighborsResponse.Neighbor.Builder |
mergeFrom(FindNeighborsResponse.Neighbor other) |
FindNeighborsResponse.Neighbor.Builder |
mergeFrom(com.google.protobuf.Message other) |
FindNeighborsResponse.Neighbor.Builder |
setDatapoint(IndexDatapoint.Builder builderForValue)
The datapoint of the neighbor.
|
FindNeighborsResponse.Neighbor.Builder |
setDatapoint(IndexDatapoint value)
The datapoint of the neighbor.
|
FindNeighborsResponse.Neighbor.Builder |
setDistance(double value)
The distance between the neighbor and the dense embedding query.
|
FindNeighborsResponse.Neighbor.Builder |
setSparseDistance(double value)
The distance between the neighbor and the query sparse_embedding.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.Neighbor.Builder>public FindNeighborsResponse.Neighbor.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.Neighbor.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.Neighbor.Builder>public FindNeighborsResponse.Neighbor getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FindNeighborsResponse.Neighbor build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FindNeighborsResponse.Neighbor buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FindNeighborsResponse.Neighbor.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FindNeighborsResponse.Neighbor.Builder>public FindNeighborsResponse.Neighbor.Builder mergeFrom(FindNeighborsResponse.Neighbor other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.Neighbor.Builder>public FindNeighborsResponse.Neighbor.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FindNeighborsResponse.Neighbor.Builder>IOExceptionpublic 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;hasDatapoint in interface FindNeighborsResponse.NeighborOrBuilderpublic 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;getDatapoint in interface FindNeighborsResponse.NeighborOrBuilderpublic FindNeighborsResponse.Neighbor.Builder setDatapoint(IndexDatapoint value)
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;public FindNeighborsResponse.Neighbor.Builder setDatapoint(IndexDatapoint.Builder builderForValue)
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;public FindNeighborsResponse.Neighbor.Builder mergeDatapoint(IndexDatapoint value)
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;public FindNeighborsResponse.Neighbor.Builder clearDatapoint()
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;public IndexDatapoint.Builder getDatapointBuilder()
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;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;getDatapointOrBuilder in interface FindNeighborsResponse.NeighborOrBuilderpublic double getDistance()
The distance between the neighbor and the dense embedding query.
double distance = 2;getDistance in interface FindNeighborsResponse.NeighborOrBuilderpublic FindNeighborsResponse.Neighbor.Builder setDistance(double value)
The distance between the neighbor and the dense embedding query.
double distance = 2;value - The distance to set.public FindNeighborsResponse.Neighbor.Builder clearDistance()
The distance between the neighbor and the dense embedding query.
double distance = 2;public double getSparseDistance()
The distance between the neighbor and the query sparse_embedding.
double sparse_distance = 3;getSparseDistance in interface FindNeighborsResponse.NeighborOrBuilderpublic FindNeighborsResponse.Neighbor.Builder setSparseDistance(double value)
The distance between the neighbor and the query sparse_embedding.
double sparse_distance = 3;value - The sparseDistance to set.public FindNeighborsResponse.Neighbor.Builder clearSparseDistance()
The distance between the neighbor and the query sparse_embedding.
double sparse_distance = 3;Copyright © 2026 Google LLC. All rights reserved.