public static final class NearestNeighbors.Neighbor.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NearestNeighbors.Neighbor.Builder> implements NearestNeighbors.NeighborOrBuilder
A neighbor of the query vector.Protobuf type
google.cloud.aiplatform.v1beta1.NearestNeighbors.Neighbor| Modifier and Type | Method and Description |
|---|---|
NearestNeighbors.Neighbor.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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.
|
NearestNeighbors.Neighbor.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
NearestNeighbors.Neighbor.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
NearestNeighbors.Neighbor.Builder |
clone() |
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.
|
FetchFeatureValuesResponse.Builder |
getEntityKeyValuesBuilder()
The attributes of the neighbor, e.g.
|
FetchFeatureValuesResponseOrBuilder |
getEntityKeyValuesOrBuilder()
The attributes of the neighbor, e.g.
|
boolean |
hasEntityKeyValues()
The attributes of the neighbor, e.g.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
NearestNeighbors.Neighbor.Builder |
mergeEntityKeyValues(FetchFeatureValuesResponse value)
The attributes of the neighbor, e.g.
|
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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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.
|
NearestNeighbors.Neighbor.Builder |
setEntityKeyValues(FetchFeatureValuesResponse value)
The attributes of the neighbor, e.g.
|
NearestNeighbors.Neighbor.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
NearestNeighbors.Neighbor.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
NearestNeighbors.Neighbor.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<NearestNeighbors.Neighbor.Builder>public NearestNeighbors.Neighbor.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<NearestNeighbors.Neighbor.Builder>public NearestNeighbors.Neighbor.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<NearestNeighbors.Neighbor.Builder>public NearestNeighbors.Neighbor.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<NearestNeighbors.Neighbor.Builder>public NearestNeighbors.Neighbor.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NearestNeighbors.Neighbor.Builder>public NearestNeighbors.Neighbor.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NearestNeighbors.Neighbor.Builder>public 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.GeneratedMessageV3.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchFeatureValuesResponse entity_key_values = 3;
getEntityKeyValuesOrBuilder in interface NearestNeighbors.NeighborOrBuilderpublic final NearestNeighbors.Neighbor.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NearestNeighbors.Neighbor.Builder>public final NearestNeighbors.Neighbor.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NearestNeighbors.Neighbor.Builder>Copyright © 2024 Google LLC. All rights reserved.