public static interface SearchResult.SearchResultMetadata.SearchDistanceOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getDistance()
public abstract double getDistance()Output only. The similarity distance of this data object for the search.
double distance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
double |
The distance. |
getRank()
public abstract int getRank()Output only. The order of this data object in the search's result list, starting at 1 for the top (best-ranked) result.
int32 rank = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The rank. |
getSearchIndex()
public abstract int getSearchIndex()Output only. The index of the search in the BatchSearchDataObjectsRequest.searches this distance corresponds to.
int32 search_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The searchIndex. |