Method: projects.locations.collections.dataStores.completionSuggestions.import

导入 DataStore 的 CompletionSuggestion

HTTP 请求

POST https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/completionSuggestions:import

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。要为其导入客户自动补全建议的父数据存储区资源名称。

遵循格式 projects/*/locations/*/collections/*/dataStores/*

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "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.
}
字段
errorConfig

object (ImportErrorConfig)

导入期间发生错误的所需位置。

联合字段 source。自动补全建议的来源。source 只能是下列其中一项:
inlineSource

object (InlineSource)

建议条目的内嵌来源。

gcsSource

object (GcsSource)

输入内容所在的 Cloud Storage 位置。

bigquerySource

object (BigQuerySource)

BigQuery 输入源。

响应正文

如果成功,则响应正文包含一个 Operation 实例。

授权范围

需要以下 OAuth 范围之一:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/discoveryengine.readwrite
  • https://www.googleapis.com/auth/discoveryengine.assist.readwrite

如需了解详情,请参阅 Authentication Overview