- JSON representation
- QuerySuggestion
- PersonSuggestion
- PersonType
- ContentSuggestion
- ContentType
- RecentSearchSuggestion
Response message for CompletionService.AdvancedCompleteQuery
method.
JSON representation |
---|
{ "querySuggestions": [ { object ( |
Fields | |
---|---|
query |
Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion. |
tail |
True if the returned suggestions are all tail suggestions. For tail matching to be triggered, includeTailSuggestions in the request must be true and there must be no suggestions that match the full query. |
people |
Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion. |
content |
Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion. |
recent |
Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion. |
QuerySuggestion
Suggestions as search queries.
JSON representation |
---|
{ "suggestion": string, "completableFieldPaths": [ string ], "dataStore": [ string ] } |
Fields | |
---|---|
suggestion |
The suggestion for the query. |
completable |
The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable model. |
data |
The name of the dataStore that this suggestion belongs to. |
PersonSuggestion
Suggestions as people.
JSON representation |
---|
{ "suggestion": string, "personType": enum ( |
Fields | |
---|---|
suggestion |
The suggestion for the query. |
person |
The type of the person. |
document |
The document data snippet in the suggestion. Only a subset of fields is populated. |
data |
The name of the dataStore that this suggestion belongs to. |
PersonType
The type of the person based on the source.
Enums | |
---|---|
PERSON_TYPE_UNSPECIFIED |
Default value. |
CLOUD_IDENTITY |
The suggestion is from a GOOGLE_IDENTITY source. |
THIRD_PARTY_IDENTITY |
The suggestion is from a THIRD_PARTY_IDENTITY source. |
ContentSuggestion
Suggestions as content.
JSON representation |
---|
{ "suggestion": string, "contentType": enum ( |
Fields | |
---|---|
suggestion |
The suggestion for the query. |
content |
The type of the content suggestion. |
document |
The document data snippet in the suggestion. Only a subset of fields will be populated. |
data |
The name of the dataStore that this suggestion belongs to. |
ContentType
The type of the content returned for content suggestions.
Enums | |
---|---|
CONTENT_TYPE_UNSPECIFIED |
Default value. |
GOOGLE_WORKSPACE |
The suggestion is from a Google Workspace source. |
THIRD_PARTY |
The suggestion is from a third party source. |
RecentSearchSuggestion
Suggestions from recent search history.
JSON representation |
---|
{ "suggestion": string, "recentSearchTime": string } |
Fields | |
---|---|
suggestion |
The suggestion for the query. |
recent |
The time when this recent rearch happened. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |