Reference documentation and code samples for the Data Analytics API with Gemini V1 API class Google::Cloud::GeminiDataAnalytics::V1::ExampleQuery.
Example of relevant and commonly used SQL query and its corresponding natural language queries optionally present. Currently only used for BigQuery data sources.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#natural_language_question
def natural_language_question() -> ::String-
(::String) — Optional. A natural language question that a user might ask.
For example: "How many orders were placed last month?"
Must be at most 2,000 bytes (approx. 2,000 characters).
#natural_language_question=
def natural_language_question=(value) -> ::String-
value (::String) — Optional. A natural language question that a user might ask.
For example: "How many orders were placed last month?"
Must be at most 2,000 bytes (approx. 2,000 characters).
-
(::String) — Optional. A natural language question that a user might ask.
For example: "How many orders were placed last month?"
Must be at most 2,000 bytes (approx. 2,000 characters).
#parameters
def parameters() -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1::QueryParameter>-
(::Array<::Google::Cloud::GeminiDataAnalytics::V1::QueryParameter>) — Optional. The list of query parameters.
Example: The parameterized SQL query
"SELECT * FROM my_table WHERE id =
@id" can be matched with any value of id.
#parameters=
def parameters=(value) -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1::QueryParameter>-
value (::Array<::Google::Cloud::GeminiDataAnalytics::V1::QueryParameter>) — Optional. The list of query parameters.
Example: The parameterized SQL query
"SELECT * FROM my_table WHERE id =
@id" can be matched with any value of id.
-
(::Array<::Google::Cloud::GeminiDataAnalytics::V1::QueryParameter>) — Optional. The list of query parameters.
Example: The parameterized SQL query
"SELECT * FROM my_table WHERE id =
@id" can be matched with any value of id.
#sql_query
def sql_query() -> ::String-
(::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'"
Must be at most 50,000 bytes (approx. 50,000 characters).
#sql_query=
def sql_query=(value) -> ::String-
value (::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'"
Must be at most 50,000 bytes (approx. 50,000 characters).
-
(::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'"
Must be at most 50,000 bytes (approx. 50,000 characters).