Package com.google.cloud.aiplatform.v1
Class FindNeighborsResponse.Neighbor.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.Neighbor.Builder>
com.google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor.Builder
- All Implemented Interfaces:
FindNeighborsResponse.NeighborOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FindNeighborsResponse.Neighbor
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The datapoint of the neighbor.The distance between the neighbor and the dense embedding query.The distance between the neighbor and the query sparse_embedding.The datapoint of the neighbor.The datapoint of the neighbor.The datapoint of the neighbor.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoubleThe distance between the neighbor and the dense embedding query.doubleThe distance between the neighbor and the query sparse_embedding.booleanThe datapoint of the neighbor.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeDatapoint(IndexDatapoint value) The datapoint of the neighbor.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDatapoint(IndexDatapoint value) The datapoint of the neighbor.setDatapoint(IndexDatapoint.Builder builderForValue) The datapoint of the neighbor.setDistance(double value) The distance between the neighbor and the dense embedding query.setSparseDistance(double value) The distance between the neighbor and the query sparse_embedding.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<FindNeighborsResponse.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<FindNeighborsResponse.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<FindNeighborsResponse.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<FindNeighborsResponse.Neighbor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.Neighbor.Builder>
-
mergeFrom
public FindNeighborsResponse.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<FindNeighborsResponse.Neighbor.Builder>- Throws:
IOException
-
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;- Specified by:
hasDatapointin interfaceFindNeighborsResponse.NeighborOrBuilder- Returns:
- Whether the datapoint field is set.
-
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;- Specified by:
getDatapointin interfaceFindNeighborsResponse.NeighborOrBuilder- Returns:
- The datapoint.
-
setDatapoint
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; -
setDatapoint
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; -
mergeDatapoint
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; -
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; -
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; -
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;- Specified by:
getDatapointOrBuilderin interfaceFindNeighborsResponse.NeighborOrBuilder
-
getDistance
public double getDistance()The distance between the neighbor and the dense embedding query.
double distance = 2;- Specified by:
getDistancein interfaceFindNeighborsResponse.NeighborOrBuilder- Returns:
- The distance.
-
setDistance
The distance between the neighbor and the dense embedding query.
double distance = 2;- Parameters:
value- The distance to set.- Returns:
- This builder for chaining.
-
clearDistance
The distance between the neighbor and the dense embedding query.
double distance = 2;- Returns:
- This builder for chaining.
-
getSparseDistance
public double getSparseDistance()The distance between the neighbor and the query sparse_embedding.
double sparse_distance = 3;- Specified by:
getSparseDistancein interfaceFindNeighborsResponse.NeighborOrBuilder- Returns:
- The sparseDistance.
-
setSparseDistance
The distance between the neighbor and the query sparse_embedding.
double sparse_distance = 3;- Parameters:
value- The sparseDistance to set.- Returns:
- This builder for chaining.
-
clearSparseDistance
The distance between the neighbor and the query sparse_embedding.
double sparse_distance = 3;- Returns:
- This builder for chaining.
-