The audio data bytes encoded as specified in the request. This field is set if: -reply_audio_configwas specified in the request, or - The automated agent responded with audio to play to the user. In such case,reply_audio.configcontains 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.
Only set if a Dialogflow automated agent has responded. Note that inAutomatedAgentReply.DetectIntentResponse,Sessions.DetectIntentResponse.output_audioandSessions.DetectIntentResponse.output_audio_configare always empty, usereply_audioinstead.
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_configwas specified in the request, or
The automated agent responded with audio to play to the user. In such
case,reply_audio.configcontains 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.
The audio data bytes encoded as specified in the request.
This field is set if:
reply_audio_configwas specified in the request, or
The automated agent responded with audio to play to the user. In such
case,reply_audio.configcontains 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.
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.
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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow V2 Client - Class AnalyzeContentResponse (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.AnalyzeContentResponse)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.AnalyzeContentResponse)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.AnalyzeContentResponse)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.AnalyzeContentResponse)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.AnalyzeContentResponse)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.AnalyzeContentResponse)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.AnalyzeContentResponse)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.AnalyzeContentResponse)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.AnalyzeContentResponse)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.AnalyzeContentResponse)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.AnalyzeContentResponse)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.AnalyzeContentResponse)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.AnalyzeContentResponse)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.AnalyzeContentResponse)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.AnalyzeContentResponse)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.AnalyzeContentResponse)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.AnalyzeContentResponse)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.AnalyzeContentResponse)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.AnalyzeContentResponse)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.AnalyzeContentResponse)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.AnalyzeContentResponse) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class AnalyzeContentResponse.\n\nThe response message for\n[Participants.AnalyzeContent](/php/docs/reference/cloud-dialogflow/latest/V2.Client.ParticipantsClient#_Google_Cloud_Dialogflow_V2_Client_ParticipantsClient__analyzeContent__).\n\nGenerated from protobuf message `google.cloud.dialogflow.v2.AnalyzeContentResponse`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getReplyText\n\nThe output text content.\n\nThis field is set if the automated agent responded with text to show to\nthe user.\n\n### setReplyText\n\nThe output text content.\n\nThis field is set if the automated agent responded with text to show to\nthe user.\n\n### getReplyAudio\n\nThe audio data bytes encoded as specified in the request.\n\nThis field is set if:\n\n- `reply_audio_config` was specified in the request, or\n- 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.\n\n### hasReplyAudio\n\n### clearReplyAudio\n\n### setReplyAudio\n\nThe audio data bytes encoded as specified in the request.\n\nThis field is set if:\n\n- `reply_audio_config` was specified in the request, or\n- 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.\n\n### getAutomatedAgentReply\n\nOnly set if a Dialogflow automated agent has responded.\n\nNote that in AutomatedAgentReply.DetectIntentResponse,\nSessions.DetectIntentResponse.output_audio\nand Sessions.DetectIntentResponse.output_audio_config\nare always empty, use\n[reply_audio](/php/docs/reference/cloud-dialogflow/latest/V2.AnalyzeContentResponse#_Google_Cloud_Dialogflow_V2_AnalyzeContentResponse__getReplyAudio__)\ninstead.\n\n### hasAutomatedAgentReply\n\n### clearAutomatedAgentReply\n\n### setAutomatedAgentReply\n\nOnly set if a Dialogflow automated agent has responded.\n\nNote that in AutomatedAgentReply.DetectIntentResponse,\nSessions.DetectIntentResponse.output_audio\nand Sessions.DetectIntentResponse.output_audio_config\nare always empty, use\n[reply_audio](/php/docs/reference/cloud-dialogflow/latest/V2.AnalyzeContentResponse#_Google_Cloud_Dialogflow_V2_AnalyzeContentResponse__getReplyAudio__)\ninstead.\n\n### getMessage\n\nMessage analyzed by CCAI.\n\n### hasMessage\n\n### clearMessage\n\n### setMessage\n\nMessage analyzed by CCAI.\n\n### getHumanAgentSuggestionResults\n\nThe suggestions for most recent human agent. The order is the same as\n[HumanAgentAssistantConfig.SuggestionConfig.feature_configs](/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig.SuggestionConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig_SuggestionConfig__getFeatureConfigs__)\nof\n[HumanAgentAssistantConfig.human_agent_suggestion_config](/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig__getHumanAgentSuggestionConfig__).\n\nNote that any failure of Agent Assist features will not lead to the overall\nfailure of an AnalyzeContent API call. Instead, the features will\nfail silently with the error field set in the corresponding\nSuggestionResult.\n\n### setHumanAgentSuggestionResults\n\nThe suggestions for most recent human agent. The order is the same as\n[HumanAgentAssistantConfig.SuggestionConfig.feature_configs](/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig.SuggestionConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig_SuggestionConfig__getFeatureConfigs__)\nof\n[HumanAgentAssistantConfig.human_agent_suggestion_config](/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig__getHumanAgentSuggestionConfig__).\n\nNote that any failure of Agent Assist features will not lead to the overall\nfailure of an AnalyzeContent API call. Instead, the features will\nfail silently with the error field set in the corresponding\nSuggestionResult.\n\n### getEndUserSuggestionResults\n\nThe suggestions for end user. The order is the same as\n[HumanAgentAssistantConfig.SuggestionConfig.feature_configs](/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig.SuggestionConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig_SuggestionConfig__getFeatureConfigs__)\nof\n[HumanAgentAssistantConfig.end_user_suggestion_config](/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig__getEndUserSuggestionConfig__).\n\nSame as human_agent_suggestion_results, any failure of Agent Assist\nfeatures will not lead to the overall failure of an AnalyzeContent API\ncall. Instead, the features will fail silently with the error field set in\nthe corresponding SuggestionResult.\n\n### setEndUserSuggestionResults\n\nThe suggestions for end user. The order is the same as\n[HumanAgentAssistantConfig.SuggestionConfig.feature_configs](/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig.SuggestionConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig_SuggestionConfig__getFeatureConfigs__)\nof\n[HumanAgentAssistantConfig.end_user_suggestion_config](/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig#_Google_Cloud_Dialogflow_V2_HumanAgentAssistantConfig__getEndUserSuggestionConfig__).\n\nSame as human_agent_suggestion_results, any failure of Agent Assist\nfeatures will not lead to the overall failure of an AnalyzeContent API\ncall. Instead, the features will fail silently with the error field set in\nthe corresponding SuggestionResult.\n\n### getDtmfParameters\n\nIndicates the parameters of DTMF.\n\n### hasDtmfParameters\n\n### clearDtmfParameters\n\n### setDtmfParameters\n\nIndicates the parameters of DTMF."]]