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

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

#context=

def context=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataContext
Parameter
Returns

#generation_options

def generation_options() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::GenerationOptions
Returns

#generation_options=

def generation_options=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::GenerationOptions
Parameter
Returns

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