Google Cloud Gemini Data Analytics V1beta Client - Class ClarificationQuestion (0.8.0)

Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class ClarificationQuestion.

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

Generated from protobuf message google.cloud.geminidataanalytics.v1beta.ClarificationQuestion

Namespace

Google \ Cloud \ GeminiDataAnalytics \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ question string

Required. The natural language question to ask the user.

↳ selection_mode int

Required. The selection mode for this question.

↳ options array

Required. A list of distinct options for the user to choose from. The number of options is limited to a maximum of 5.

↳ clarification_question_type int

Optional. The type of clarification question.

getQuestion

Required. The natural language question to ask the user.

Returns
Type Description
string

setQuestion

Required. The natural language question to ask the user.

Parameter
Name Description
var string
Returns
Type Description
$this

getSelectionMode

Required. The selection mode for this question.

Returns
Type Description
int Enum of type SelectionMode.

setSelectionMode

Required. The selection mode for this question.

Parameter
Name Description
var int

Enum of type SelectionMode.

Returns
Type Description
$this

getOptions

Required. A list of distinct options for the user to choose from.

The number of options is limited to a maximum of 5.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setOptions

Required. A list of distinct options for the user to choose from.

The number of options is limited to a maximum of 5.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getClarificationQuestionType

Optional. The type of clarification question.

Returns
Type Description
int Enum of type ClarificationQuestionType.

setClarificationQuestionType

Optional. The type of clarification question.

Parameter
Name Description
var int

Enum of type ClarificationQuestionType.

Returns
Type Description
$this