Reference documentation and code samples for the Data Analytics API with Gemini V1BETA API class Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataRequest.
Request to query data from a natural language query.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#context
def context() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataContext
Returns
- (::Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataContext) — Required. The context for the data query, including the data sources to use.
#context=
def context=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataContext
Parameter
- value (::Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataContext) — Required. The context for the data query, including the data sources to use.
Returns
- (::Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataContext) — Required. The context for the data query, including the data sources to use.
#generation_options
def generation_options() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::GenerationOptions
Returns
- (::Google::Cloud::GeminiDataAnalytics::V1beta::GenerationOptions) — Optional. Options to control query generation and execution behavior.
#generation_options=
def generation_options=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::GenerationOptions
Parameter
- value (::Google::Cloud::GeminiDataAnalytics::V1beta::GenerationOptions) — Optional. Options to control query generation and execution behavior.
Returns
- (::Google::Cloud::GeminiDataAnalytics::V1beta::GenerationOptions) — Optional. Options to control query generation and execution behavior.
#parent
def parent() -> ::String
Returns
- (::String) — Required. The parent resource to generate the query for. Format: projects/{project}/locations/{location}
#parent=
def parent=(value) -> ::String
Parameter
- value (::String) — Required. The parent resource to generate the query for. Format: projects/{project}/locations/{location}
Returns
- (::String) — Required. The parent resource to generate the query for. Format: projects/{project}/locations/{location}
#prompt
def prompt() -> ::String
Returns
- (::String) — Required. The natural language query for which to generate query. Example: "What are the top 5 best selling products this month?"
#prompt=
def prompt=(value) -> ::String
Parameter
- value (::String) — Required. The natural language query for which to generate query. Example: "What are the top 5 best selling products this month?"
Returns
- (::String) — Required. The natural language query for which to generate query. Example: "What are the top 5 best selling products this month?"