Class: Google::Cloud::GeminiDataAnalytics::V1beta::ExampleQuery

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb

Overview

Example of relevant and commonly used SQL query and its corresponding natural language queries optionally present. Currently only used for BigQuery data sources.

Instance Attribute Summary collapse

Instance Attribute Details

#natural_language_question::String

Returns 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?"



129
130
131
132
# File 'proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb', line 129

class ExampleQuery
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#sql_query::String

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



129
130
131
132
# File 'proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb', line 129

class ExampleQuery
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end