Package com.google.cloud.aiplatform.v1
Class NearestNeighbors.Neighbor.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NearestNeighbors.Neighbor.Builder>
com.google.cloud.aiplatform.v1.NearestNeighbors.Neighbor.Builder
- All Implemented Interfaces:
NearestNeighbors.NeighborOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NearestNeighbors.Neighbor
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The distance between the neighbor and the query vector.The id of the similar entity.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.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoubleThe distance between the neighbor and the query vector.The id of the similar entity.com.google.protobuf.ByteStringThe id of the similar entity.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.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.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.booleanThe 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.FieldAccessorTablefinal booleanThe 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.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDistance(double value) The distance between the neighbor and the query vector.setEntityId(String value) The id of the similar entity.setEntityIdBytes(com.google.protobuf.ByteString value) The id of the similar entity.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.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.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NearestNeighbors.Neighbor.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<NearestNeighbors.Neighbor.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<NearestNeighbors.Neighbor.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NearestNeighbors.Neighbor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NearestNeighbors.Neighbor.Builder>
-
mergeFrom
public NearestNeighbors.Neighbor.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NearestNeighbors.Neighbor.Builder>- Throws:
IOException
-
getEntityId
The id of the similar entity.
string entity_id = 1;- Specified by:
getEntityIdin interfaceNearestNeighbors.NeighborOrBuilder- Returns:
- The entityId.
-
getEntityIdBytes
public com.google.protobuf.ByteString getEntityIdBytes()The id of the similar entity.
string entity_id = 1;- Specified by:
getEntityIdBytesin interfaceNearestNeighbors.NeighborOrBuilder- Returns:
- The bytes for entityId.
-
setEntityId
The id of the similar entity.
string entity_id = 1;- Parameters:
value- The entityId to set.- Returns:
- This builder for chaining.
-
clearEntityId
The id of the similar entity.
string entity_id = 1;- Returns:
- This builder for chaining.
-
setEntityIdBytes
The id of the similar entity.
string entity_id = 1;- Parameters:
value- The bytes for entityId to set.- Returns:
- This builder for chaining.
-
getDistance
public double getDistance()The distance between the neighbor and the query vector.
double distance = 2;- Specified by:
getDistancein interfaceNearestNeighbors.NeighborOrBuilder- Returns:
- The distance.
-
setDistance
The distance between the neighbor and the query vector.
double distance = 2;- Parameters:
value- The distance to set.- Returns:
- This builder for chaining.
-
clearDistance
The distance between the neighbor and the query vector.
double distance = 2;- Returns:
- This builder for chaining.
-
hasEntityKeyValues
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;- Specified by:
hasEntityKeyValuesin interfaceNearestNeighbors.NeighborOrBuilder- Returns:
- Whether the entityKeyValues field is set.
-
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;- Specified by:
getEntityKeyValuesin interfaceNearestNeighbors.NeighborOrBuilder- Returns:
- The entityKeyValues.
-
setEntityKeyValues
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; -
setEntityKeyValues
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; -
mergeEntityKeyValues
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; -
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; -
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; -
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;- Specified by:
getEntityKeyValuesOrBuilderin interfaceNearestNeighbors.NeighborOrBuilder
-