Data Analytics API with Gemini V1BETA API - Class Google::Cloud::GeminiDataAnalytics::V1beta::ExampleQuery (v0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Data Analytics API with Gemini V1BETA API class Google::Cloud::GeminiDataAnalytics::V1beta::ExampleQuery.
Example of relevant and commonly used SQL query and its corresponding natural language queries optionally present.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#natural_language_question
defnatural_language_question()->::String
Returns
- (::String) — Optional. A natural language question that a user might ask. For example: "How many orders were placed last month?"
#natural_language_question=
defnatural_language_question=(value)->::String
Parameter
- value (::String) — Optional. A natural language question that a user might ask. For example: "How many orders were placed last month?"
Returns
- (::String) — Optional. A natural language question that a user might ask. For example: "How many orders were placed last month?"
#sql_query
defsql_query()->::String
Returns
- (::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日'"
#sql_query=
defsql_query=(value)->::String
Parameter
- 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日'"
Returns
- (::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日'"