Method: projects.locations.dataStores.completionSuggestions.import
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
POST https://discoveryengine.googleapis.com/v1/{parent=projects/*/locations/*/dataStores/*}/completionSuggestions:import
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The parent data store resource name for which to import customer autocomplete suggestions. Follows pattern projects/*/locations/*/collections/*/dataStores/*
|
Request body
The request body contains data with the following structure:
JSON representation |
{
"errorConfig": {
object (ImportErrorConfig )
},
// Union field source can be only one of the following:
"inlineSource": {
object (InlineSource )
},
"gcsSource": {
object (GcsSource )
},
"bigquerySource": {
object (BigQuerySource )
}
// End of list of possible types for union field source .
} |
Fields |
errorConfig |
object (ImportErrorConfig )
The desired location of errors incurred during the Import.
|
Union field source . The source of the autocomplete suggestions. source can be only one of the following: |
inlineSource |
object (InlineSource )
The Inline source for suggestion entries.
|
gcsSource |
object (GcsSource )
Cloud Storage location for the input content.
|
bigquerySource |
object (BigQuerySource )
BigQuery input source.
|
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-03 UTC."],[[["This webpage details the process of importing `CompletionSuggestions` for a DataStore using a POST HTTP request directed at a specific URL."],["The request URL requires a `parent` path parameter, which specifies the data store to import suggestions, following the pattern `projects/*/locations/*/collections/*/dataStores/*`."],["The request body must include the `errorConfig` object and a single `source` field, which can be one of three types: `inlineSource`, `gcsSource`, or `bigquerySource`, each defining the source of the suggestion data."],["A successful request returns an `Operation` object in the response body, indicating the status of the import operation."],["Authorization for this request requires the OAuth scope `https://www.googleapis.com/auth/cloud-platform`."]]],[]]