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

Reference documentation and code samples for the Data Analytics API with Gemini V1BETA API class Google::Cloud::GeminiDataAnalytics::V1beta::ClarificationQuestion.

Represents a single question to the user to help clarify their query.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#clarification_question_type

def clarification_question_type() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ClarificationQuestion::ClarificationQuestionType

#clarification_question_type=

def clarification_question_type=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ClarificationQuestion::ClarificationQuestionType
Parameter

#options

def options() -> ::Array<::String>
Returns
  • (::Array<::String>) — Required. A list of distinct options for the user to choose from. The number of options is limited to a maximum of 5.

#options=

def options=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Required. A list of distinct options for the user to choose from. The number of options is limited to a maximum of 5.
Returns
  • (::Array<::String>) — Required. A list of distinct options for the user to choose from. The number of options is limited to a maximum of 5.

#question

def question() -> ::String
Returns
  • (::String) — Required. The natural language question to ask the user.

#question=

def question=(value) -> ::String
Parameter
  • value (::String) — Required. The natural language question to ask the user.
Returns
  • (::String) — Required. The natural language question to ask the user.

#selection_mode

def selection_mode() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ClarificationQuestion::SelectionMode
Returns

#selection_mode=

def selection_mode=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ClarificationQuestion::SelectionMode
Parameter
Returns