Interface FindNeighborsResponse.NeighborOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      IndexDatapoint getDatapoint()
      The datapoint of the neighbor.
      IndexDatapointOrBuilder getDatapointOrBuilder()
      The datapoint of the neighbor.
      double getDistance()
      The distance between the neighbor and the query vector.
      boolean hasDatapoint()
      The datapoint of the neighbor.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasDatapoint

        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.v1beta1.IndexDatapoint datapoint = 1;
        Returns:
        Whether the datapoint field is set.
      • getDatapoint

        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.v1beta1.IndexDatapoint datapoint = 1;
        Returns:
        The datapoint.
      • getDatapointOrBuilder

        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.v1beta1.IndexDatapoint datapoint = 1;
      • getDistance

        double getDistance()
         The distance between the neighbor and the query vector.
         
        double distance = 2;
        Returns:
        The distance.