# Google Cloud Retail V2 Client - Class FollowupQuestion (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.1 2.1.3 2.0.0 1.7.0 1.6.4 1.5.0 1.4.2 1.3.1 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Retail V2 Client class FollowupQuestion.

The conversational followup question generated for Intent refinement.

Generated from protobuf message `google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion`

## Namespace

Google \\ Cloud \\ Retail \\ V2 \\ ConversationalSearchResponse

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ followup_question` | `string` The conversational followup question generated for Intent refinement. |
| `↳ suggested_answers` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer>` The answer options provided to client for the follow-up question. |

### getFollowupQuestion

The conversational followup question generated for Intent refinement.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setFollowupQuestion

The conversational followup question generated for Intent refinement.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSuggestedAnswers

The answer options provided to client for the follow-up question.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer>` |   |

### setSuggestedAnswers

The answer options provided to client for the follow-up question.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |