Method: projects.locations.retrieval.retrieveBigQueryTableContexts

检索所提供表引用的 BigQuery 表上下文数据。上下文数据包括表架构信息以及样本值。

HTTP 请求

POST https://geminidataanalytics.googleapis.com/v1alpha/{parent=projects/*/locations/*}/retrieval:retrieveBigQueryTableContexts

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。RetrieveBigQueryTableContextRequest 的父级值。模式:projects/{project}/locations/{location} 对于位置,暂时使用“global”。我们将来会支持区域位置值。

请求正文

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

JSON 表示法
{
  "query": string,
  "directLookups": [
    {
      object (DirectLookup)
    }
  ]
}
字段
query

string

可选。用户以自然语言提出的查询。

directLookups[]

object (DirectLookup)

可选。直接查找参数的列表。

响应正文

通过直接查找检索 BigQuery 表上下文数据的响应。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "tableCandidates": [
    {
      object (TableCandidate)
    }
  ]
}
字段
tableCandidates[]

object (TableCandidate)

检索到的候选对象的列表及其捆绑的元数据。

授权范围

需要以下 OAuth 范围:

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

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