# Google Cloud Dialogflow V2 Client - Class AnalyzeContentResponse (2.4.0)

2.4.0 (latest) 2.3.1 2.2.1 2.1.2 2.0.1 1.17.2 1.16.0 1.15.1 1.14.0 1.13.0 1.12.3 1.11.0 1.10.2 1.9.0 1.8.0 1.7.2 1.6.0 1.5.0 1.4.0 1.3.2 1.2.0 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class AnalyzeContentResponse.

The response message for
[Participants.AnalyzeContent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.Client.ParticipantsClient#_Google_Cloud_Dialogflow_V2_Client_ParticipantsClient__analyzeContent__).

Generated from protobuf message `google.cloud.dialogflow.v2.AnalyzeContentResponse`

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ reply_text` | `string` The output text content. This field is set if the automated agent responded with text to show to the user. |
| `↳ reply_audio` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.OutputAudio` The audio data bytes encoded as specified in the request. This field is set if: - `reply_audio_config` was specified in the request, or - The automated agent responded with audio to play to the user. In such case, `reply_audio.config` contains settings used to synthesize the speech. In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content. |
| `↳ automated_agent_reply` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AutomatedAgentReply` Only set if a Dialogflow automated agent has responded. Note that in AutomatedAgentReply.DetectIntentResponse, Sessions.DetectIntentResponse.output_audio and Sessions.DetectIntentResponse.output_audio_config are always empty, use [reply_audio](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AnalyzeContentResponse#_Google_Cloud_Dialogflow_V2_AnalyzeContentResponse__getReplyAudio__) instead. |
| `↳ message` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.Message` Message analyzed by CCAI. |
| `↳ human_agent_suggestion_results` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SuggestionResult>` The suggestions for most recent human agent. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig.SuggestionConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig_SuggestionConfig__getFeatureConfigs__) of [HumanAgentAssistantConfig.human_agent_suggestion_config](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig__getHumanAgentSuggestionConfig__). Note that any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult. |
| `↳ end_user_suggestion_results` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SuggestionResult>` The suggestions for end user. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig.SuggestionConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig_SuggestionConfig__getFeatureConfigs__) of [HumanAgentAssistantConfig.end_user_suggestion_config](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig__getEndUserSuggestionConfig__). Same as human_agent_suggestion_results, any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult. |
| `↳ dtmf_parameters` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.DtmfParameters` Indicates the parameters of DTMF. |

### getReplyText

The output text content.

This field is set if the automated agent responded with text to show to
the user.

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

### setReplyText

The output text content.

This field is set if the automated agent responded with text to show to
the user.

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

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

### getReplyAudio

The audio data bytes encoded as specified in the request.

This field is set if:

- `reply_audio_config` was specified in the request, or
- The automated agent responded with audio to play to the user. In such case, `reply_audio.config` contains settings used to synthesize the speech. In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.OutputAudio|null` |   |

### hasReplyAudio

### clearReplyAudio

### setReplyAudio

The audio data bytes encoded as specified in the request.

This field is set if:

- `reply_audio_config` was specified in the request, or
- The automated agent responded with audio to play to the user. In such case, `reply_audio.config` contains settings used to synthesize the speech. In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.OutputAudio` |

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

### getAutomatedAgentReply

Only set if a Dialogflow automated agent has responded.

Note that in AutomatedAgentReply.DetectIntentResponse,
Sessions.DetectIntentResponse.output_audio
and Sessions.DetectIntentResponse.output_audio_config
are always empty, use
[reply_audio](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AnalyzeContentResponse#_Google_Cloud_Dialogflow_V2_AnalyzeContentResponse__getReplyAudio__)
instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AutomatedAgentReply|null` |   |

### hasAutomatedAgentReply

### clearAutomatedAgentReply

### setAutomatedAgentReply

Only set if a Dialogflow automated agent has responded.

Note that in AutomatedAgentReply.DetectIntentResponse,
Sessions.DetectIntentResponse.output_audio
and Sessions.DetectIntentResponse.output_audio_config
are always empty, use
[reply_audio](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AnalyzeContentResponse#_Google_Cloud_Dialogflow_V2_AnalyzeContentResponse__getReplyAudio__)
instead.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AutomatedAgentReply` |

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

### getMessage

Message analyzed by CCAI.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.Message|null` |   |

### hasMessage

### clearMessage

### setMessage

Message analyzed by CCAI.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.Message` |

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

### getHumanAgentSuggestionResults

The suggestions for most recent human agent. The order is the same as
[HumanAgentAssistantConfig.SuggestionConfig.feature_configs](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig.SuggestionConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig_SuggestionConfig__getFeatureConfigs__)
of
[HumanAgentAssistantConfig.human_agent_suggestion_config](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig__getHumanAgentSuggestionConfig__).

Note that any failure of Agent Assist features will not lead to the overall
failure of an AnalyzeContent API call. Instead, the features will
fail silently with the error field set in the corresponding
SuggestionResult.

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

### setHumanAgentSuggestionResults

The suggestions for most recent human agent. The order is the same as
[HumanAgentAssistantConfig.SuggestionConfig.feature_configs](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig.SuggestionConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig_SuggestionConfig__getFeatureConfigs__)
of
[HumanAgentAssistantConfig.human_agent_suggestion_config](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig__getHumanAgentSuggestionConfig__).

Note that any failure of Agent Assist features will not lead to the overall
failure of an AnalyzeContent API call. Instead, the features will
fail silently with the error field set in the corresponding
SuggestionResult.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SuggestionResult>` |

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

### getEndUserSuggestionResults

The suggestions for end user. The order is the same as
[HumanAgentAssistantConfig.SuggestionConfig.feature_configs](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig.SuggestionConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig_SuggestionConfig__getFeatureConfigs__)
of
[HumanAgentAssistantConfig.end_user_suggestion_config](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig__getEndUserSuggestionConfig__).

Same as human_agent_suggestion_results, any failure of Agent Assist
features will not lead to the overall failure of an AnalyzeContent API
call. Instead, the features will fail silently with the error field set in
the corresponding SuggestionResult.

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

### setEndUserSuggestionResults

The suggestions for end user. The order is the same as
[HumanAgentAssistantConfig.SuggestionConfig.feature_configs](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig.SuggestionConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig_SuggestionConfig__getFeatureConfigs__)
of
[HumanAgentAssistantConfig.end_user_suggestion_config](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig__getEndUserSuggestionConfig__).

Same as human_agent_suggestion_results, any failure of Agent Assist
features will not lead to the overall failure of an AnalyzeContent API
call. Instead, the features will fail silently with the error field set in
the corresponding SuggestionResult.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SuggestionResult>` |

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

### getDtmfParameters

Indicates the parameters of DTMF.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.DtmfParameters|null` |   |

### hasDtmfParameters

### clearDtmfParameters

### setDtmfParameters

Indicates the parameters of DTMF.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.DtmfParameters` |

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