Retrieves BigQuery table schema with suggested NL-SQL examples.
HTTP request
POST https://geminidataanalytics.googleapis.com/v1alpha/{parent=projects/*/locations/*}/retrieval:retrieveBigQueryTableSuggestedExamples
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. Parent value for RetrieveBigQueryTableSuggestedExamplesRequest. Pattern: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"directLookup": [
{
object ( |
Fields | |
---|---|
directLookup[] |
Optional. A list of direct lookup parameters. |
Response body
Request for retrieving BigQuery table schema with suggested NL-SQL examples.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"exampleSuggestions": [
{
object ( |
Fields | |
---|---|
exampleSuggestions[] |
List of suggested examples. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
ExampleSuggestion
A suggested BigQuery NL-SQL example for the given table.
JSON representation |
---|
{ "nlQuery": string, "sql": string, "linkedBigqueryTables": [ string ] } |
Fields | |
---|---|
nlQuery |
The natural language query. |
sql |
The SQL answer to the query. |
linkedBigqueryTables[] |
The linked table resources for the suggested example. |