Data Analytics API with Gemini V1BETA API - Class Google::Cloud::GeminiDataAnalytics::V1beta::ExampleQuery (v0.1.0)

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日'"

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.