Method: projects.locations.collections.dataStores.completionSuggestions.import
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
POST https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*/collections/*/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 page details how to import `CompletionSuggestion` data for a DataStore using the `POST` method to the specified URL."],["The required path parameter `parent` specifies the data store resource name, adhering to the format `projects/*/locations/*/collections/*/dataStores/*`."],["The request body accepts data for the source of the autocomplete suggestions, which can be defined using either an `inlineSource`, `gcsSource`, or `bigquerySource`, with an optional `errorConfig` to manage import errors."],["A successful request returns an `Operation` instance in the response body, allowing you to monitor the status of the import."],["Authorization for this operation requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope."]]],[]]