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 \ V1betaMethods
__construct
Constructor.
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'"
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'"
var
string
$this
getNaturalLanguageQuestion
Optional. A natural language question that a user might ask.
For example: "How many orders were placed last month?"
string
setNaturalLanguageQuestion
Optional. A natural language question that a user might ask.
For example: "How many orders were placed last month?"
var
string
$this
getQuery
string