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
Returns
- (::Google::Cloud::GeminiDataAnalytics::V1beta::ClarificationQuestion::ClarificationQuestionType) — Optional. The type of clarification question.
#clarification_question_type=
def clarification_question_type=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ClarificationQuestion::ClarificationQuestionType
Parameter
- value (::Google::Cloud::GeminiDataAnalytics::V1beta::ClarificationQuestion::ClarificationQuestionType) — Optional. The type of clarification question.
Returns
- (::Google::Cloud::GeminiDataAnalytics::V1beta::ClarificationQuestion::ClarificationQuestionType) — Optional. The type of clarification question.
#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
- (::Google::Cloud::GeminiDataAnalytics::V1beta::ClarificationQuestion::SelectionMode) — Required. The selection mode for this question.
#selection_mode=
def selection_mode=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ClarificationQuestion::SelectionMode
Parameter
- value (::Google::Cloud::GeminiDataAnalytics::V1beta::ClarificationQuestion::SelectionMode) — Required. The selection mode for this question.
Returns
- (::Google::Cloud::GeminiDataAnalytics::V1beta::ClarificationQuestion::SelectionMode) — Required. The selection mode for this question.