public static final class NearestNeighbors.Neighbor.Builder extends com.google.protobuf.GeneratedMessage.Builder<NearestNeighbors.Neighbor.Builder> implements NearestNeighbors.NeighborOrBuilder
A neighbor of the query vector.Protobuf type
google.cloud.aiplatform.v1.NearestNeighbors.Neighbor| Modifier and Type | Method and Description |
|---|---|
NearestNeighbors.Neighbor |
build() |
NearestNeighbors.Neighbor |
buildPartial() |
NearestNeighbors.Neighbor.Builder |
clear() |
NearestNeighbors.Neighbor.Builder |
clearDistance()
The distance between the neighbor and the query vector.
|
NearestNeighbors.Neighbor.Builder |
clearEntityId()
The id of the similar entity.
|
NearestNeighbors.Neighbor.Builder |
clearEntityKeyValues()
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true.
|
NearestNeighbors.Neighbor |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getDistance()
The distance between the neighbor and the query vector.
|
String |
getEntityId()
The id of the similar entity.
|
com.google.protobuf.ByteString |
getEntityIdBytes()
The id of the similar entity.
|
FetchFeatureValuesResponse |
getEntityKeyValues()
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true.
|
FetchFeatureValuesResponse.Builder |
getEntityKeyValuesBuilder()
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true.
|
FetchFeatureValuesResponseOrBuilder |
getEntityKeyValuesOrBuilder()
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true.
|
boolean |
hasEntityKeyValues()
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
NearestNeighbors.Neighbor.Builder |
mergeEntityKeyValues(FetchFeatureValuesResponse value)
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true.
|
NearestNeighbors.Neighbor.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
NearestNeighbors.Neighbor.Builder |
mergeFrom(com.google.protobuf.Message other) |
NearestNeighbors.Neighbor.Builder |
mergeFrom(NearestNeighbors.Neighbor other) |
NearestNeighbors.Neighbor.Builder |
setDistance(double value)
The distance between the neighbor and the query vector.
|
NearestNeighbors.Neighbor.Builder |
setEntityId(String value)
The id of the similar entity.
|
NearestNeighbors.Neighbor.Builder |
setEntityIdBytes(com.google.protobuf.ByteString value)
The id of the similar entity.
|
NearestNeighbors.Neighbor.Builder |
setEntityKeyValues(FetchFeatureValuesResponse.Builder builderForValue)
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true.
|
NearestNeighbors.Neighbor.Builder |
setEntityKeyValues(FetchFeatureValuesResponse value)
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true.
|
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<NearestNeighbors.Neighbor.Builder>public NearestNeighbors.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<NearestNeighbors.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<NearestNeighbors.Neighbor.Builder>public NearestNeighbors.Neighbor getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic NearestNeighbors.Neighbor build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic NearestNeighbors.Neighbor buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic NearestNeighbors.Neighbor.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<NearestNeighbors.Neighbor.Builder>public NearestNeighbors.Neighbor.Builder mergeFrom(NearestNeighbors.Neighbor other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<NearestNeighbors.Neighbor.Builder>public NearestNeighbors.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<NearestNeighbors.Neighbor.Builder>IOExceptionpublic String getEntityId()
The id of the similar entity.
string entity_id = 1;getEntityId in interface NearestNeighbors.NeighborOrBuilderpublic com.google.protobuf.ByteString getEntityIdBytes()
The id of the similar entity.
string entity_id = 1;getEntityIdBytes in interface NearestNeighbors.NeighborOrBuilderpublic NearestNeighbors.Neighbor.Builder setEntityId(String value)
The id of the similar entity.
string entity_id = 1;value - The entityId to set.public NearestNeighbors.Neighbor.Builder clearEntityId()
The id of the similar entity.
string entity_id = 1;public NearestNeighbors.Neighbor.Builder setEntityIdBytes(com.google.protobuf.ByteString value)
The id of the similar entity.
string entity_id = 1;value - The bytes for entityId to set.public double getDistance()
The distance between the neighbor and the query vector.
double distance = 2;getDistance in interface NearestNeighbors.NeighborOrBuilderpublic NearestNeighbors.Neighbor.Builder setDistance(double value)
The distance between the neighbor and the query vector.
double distance = 2;value - The distance to set.public NearestNeighbors.Neighbor.Builder clearDistance()
The distance between the neighbor and the query vector.
double distance = 2;public boolean hasEntityKeyValues()
The attributes of the neighbor, e.g. filters, crowding and metadata Note that full entities are returned only when "return_full_entity" is set to true. Otherwise, only the "entity_id" and "distance" fields are populated.
.google.cloud.aiplatform.v1.FetchFeatureValuesResponse entity_key_values = 3;hasEntityKeyValues in interface NearestNeighbors.NeighborOrBuilderpublic FetchFeatureValuesResponse getEntityKeyValues()
The attributes of the neighbor, e.g. filters, crowding and metadata Note that full entities are returned only when "return_full_entity" is set to true. Otherwise, only the "entity_id" and "distance" fields are populated.
.google.cloud.aiplatform.v1.FetchFeatureValuesResponse entity_key_values = 3;getEntityKeyValues in interface NearestNeighbors.NeighborOrBuilderpublic NearestNeighbors.Neighbor.Builder setEntityKeyValues(FetchFeatureValuesResponse value)
The attributes of the neighbor, e.g. filters, crowding and metadata Note that full entities are returned only when "return_full_entity" is set to true. Otherwise, only the "entity_id" and "distance" fields are populated.
.google.cloud.aiplatform.v1.FetchFeatureValuesResponse entity_key_values = 3;public NearestNeighbors.Neighbor.Builder setEntityKeyValues(FetchFeatureValuesResponse.Builder builderForValue)
The attributes of the neighbor, e.g. filters, crowding and metadata Note that full entities are returned only when "return_full_entity" is set to true. Otherwise, only the "entity_id" and "distance" fields are populated.
.google.cloud.aiplatform.v1.FetchFeatureValuesResponse entity_key_values = 3;public NearestNeighbors.Neighbor.Builder mergeEntityKeyValues(FetchFeatureValuesResponse value)
The attributes of the neighbor, e.g. filters, crowding and metadata Note that full entities are returned only when "return_full_entity" is set to true. Otherwise, only the "entity_id" and "distance" fields are populated.
.google.cloud.aiplatform.v1.FetchFeatureValuesResponse entity_key_values = 3;public NearestNeighbors.Neighbor.Builder clearEntityKeyValues()
The attributes of the neighbor, e.g. filters, crowding and metadata Note that full entities are returned only when "return_full_entity" is set to true. Otherwise, only the "entity_id" and "distance" fields are populated.
.google.cloud.aiplatform.v1.FetchFeatureValuesResponse entity_key_values = 3;public FetchFeatureValuesResponse.Builder getEntityKeyValuesBuilder()
The attributes of the neighbor, e.g. filters, crowding and metadata Note that full entities are returned only when "return_full_entity" is set to true. Otherwise, only the "entity_id" and "distance" fields are populated.
.google.cloud.aiplatform.v1.FetchFeatureValuesResponse entity_key_values = 3;public FetchFeatureValuesResponseOrBuilder getEntityKeyValuesOrBuilder()
The attributes of the neighbor, e.g. filters, crowding and metadata Note that full entities are returned only when "return_full_entity" is set to true. Otherwise, only the "entity_id" and "distance" fields are populated.
.google.cloud.aiplatform.v1.FetchFeatureValuesResponse entity_key_values = 3;getEntityKeyValuesOrBuilder in interface NearestNeighbors.NeighborOrBuilderCopyright © 2026 Google LLC. All rights reserved.