Class: Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataResponse

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

Overview

Response containing the generated query and related information.

Instance Attribute Summary collapse

Instance Attribute Details

#disambiguation_question::Array<::String>

Returns If ambiguity was detected in the natural language query and options.generate_disambiguation_question was true, this field contains a question to the user for clarification. The returned represents the service's best effort based on the ambiguous input.

Returns:

  • (::Array<::String>)

    If ambiguity was detected in the natural language query and options.generate_disambiguation_question was true, this field contains a question to the user for clarification. The returned represents the service's best effort based on the ambiguous input.



102
103
104
105
# File 'proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb', line 102

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

#generated_query::String

Returns Generated query for the given user prompt.

Returns:

  • (::String)

    Generated query for the given user prompt.



102
103
104
105
# File 'proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb', line 102

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

#intent_explanation::String

Returns A natural language explanation of the generated query. Populated if options.generate_explanation was true in the request.

Returns:

  • (::String)

    A natural language explanation of the generated query. Populated if options.generate_explanation was true in the request.



102
103
104
105
# File 'proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb', line 102

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

#natural_language_answer::String

Returns A natural language answer to the query, based on the query_result. Populated if options.generate_natural_language_answer was true in the request and query execution was successful based in the response from executeSql API.

Returns:

  • (::String)

    A natural language answer to the query, based on the query_result. Populated if options.generate_natural_language_answer was true in the request and query execution was successful based in the response from executeSql API.



102
103
104
105
# File 'proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb', line 102

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

#query_result::Google::Cloud::GeminiDataAnalytics::V1beta::ExecutedQueryResult

Returns The result of executing the query. Populated if options.generate_query_result or options.generate_natural_language_answer was true in the request, and execution was successful or attempted.

Returns:



102
103
104
105
# File 'proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb', line 102

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