Google Cloud Gemini Data Analytics V1beta Client - Class ExampleQuery (0.2.0)

Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class ExampleQuery.

Example of relevant and commonly used SQL query and its corresponding natural language queries optionally present.

Generated from protobuf message google.cloud.geminidataanalytics.v1beta.ExampleQuery

Namespace

Google \ Cloud \ GeminiDataAnalytics \ V1beta

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ sql_query
string

Optional. The SQL query that should be generated to answer the natural language question. For example: "SELECT COUNT(*) FROM orders WHERE order_date BETWEEN '2024-01-01' AND '2024-01-31'"

↳ natural_language_question
string

Optional. A natural language question that a user might ask. For example: "How many orders were placed last month?"

getSqlQuery

Optional. The SQL query that should be generated to answer the natural language question. For example: "SELECT COUNT(*) FROM orders WHERE order_date BETWEEN '2024-01-01' AND '2024-01-31'"

Returns
Type
Description
string

hasSqlQuery

setSqlQuery

Optional. The SQL query that should be generated to answer the natural language question. For example: "SELECT COUNT(*) FROM orders WHERE order_date BETWEEN '2024-01-01' AND '2024-01-31'"

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getNaturalLanguageQuestion

Optional. A natural language question that a user might ask.

For example: "How many orders were placed last month?"

Returns
Type
Description
string

setNaturalLanguageQuestion

Optional. A natural language question that a user might ask.

For example: "How many orders were placed last month?"

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getQuery

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: