public sealed class StreamingAnalyzeContentResponse : IMessage<StreamingAnalyzeContentResponse>, IEquatable<StreamingAnalyzeContentResponse>, IDeepCloneable<StreamingAnalyzeContentResponse>, IBufferMessage, IMessageReference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class StreamingAnalyzeContentResponse.
The top-level message returned from the StreamingAnalyzeContent method.
Multiple response messages can be returned in order:
If the input was set to streaming audio, the first one or more messages contain
recognition_result. Eachrecognition_resultrepresents a more complete transcript of what the user said. The lastrecognition_resulthasis_finalset totrue.In virtual agent stage: if
enable_partial_automated_agent_replyis true, the following N (currently 1 <= N <= 4) messages containautomated_agent_replyand optionallyreply_audioreturned by the virtual agent. The first (N-1)automated_agent_replys will haveautomated_agent_reply_typeset toPARTIAL. The lastautomated_agent_replyhasautomated_agent_reply_typeset toFINAL. Ifenable_partial_automated_agent_replyis not enabled, response stream only contains the final reply.In human assist stage: the following N (N >= 1) messages contain
human_agent_suggestion_results,end_user_suggestion_resultsormessage.
Implements
IMessageStreamingAnalyzeContentResponse, IEquatableStreamingAnalyzeContentResponse, IDeepCloneableStreamingAnalyzeContentResponse, IBufferMessage, IMessageNamespace
Google.Cloud.Dialogflow.V2Beta1Assembly
Google.Cloud.Dialogflow.V2Beta1.dll
Constructors
StreamingAnalyzeContentResponse()
public StreamingAnalyzeContentResponse()StreamingAnalyzeContentResponse(StreamingAnalyzeContentResponse)
public StreamingAnalyzeContentResponse(StreamingAnalyzeContentResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
StreamingAnalyzeContentResponse |
Properties
AutomatedAgentReply
public AutomatedAgentReply AutomatedAgentReply { get; set; }Optional. Only set if a Dialogflow automated agent has responded. Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] and [AutomatedAgentReply.detect_intent_response.output_audio_config][] are always empty, use [reply_audio][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse.reply_audio] instead.
| Property Value | |
|---|---|
| Type | Description |
AutomatedAgentReply |
|
DebuggingInfo
public CloudConversationDebuggingInfo DebuggingInfo { get; set; }Debugging info that would get populated when
StreamingAnalyzeContentRequest.enable_debugging_info is set to true.
| Property Value | |
|---|---|
| Type | Description |
CloudConversationDebuggingInfo |
|
DtmfParameters
public DtmfParameters DtmfParameters { get; set; }Indicates the parameters of DTMF.
| Property Value | |
|---|---|
| Type | Description |
DtmfParameters |
|
EndUserSuggestionResults
public RepeatedField<SuggestionResult> EndUserSuggestionResults { get; }The suggestions for end user. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.end_user_suggestion_config].
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldSuggestionResult |
|
HumanAgentSuggestionResults
public RepeatedField<SuggestionResult> HumanAgentSuggestionResults { get; }The suggestions for most recent human agent. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.human_agent_suggestion_config].
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldSuggestionResult |
|
Message
public Message Message { get; set; }Output only. Message analyzed by CCAI.
| Property Value | |
|---|---|
| Type | Description |
Message |
|
RecognitionResult
public StreamingRecognitionResult RecognitionResult { get; set; }The result of speech recognition.
| Property Value | |
|---|---|
| Type | Description |
StreamingRecognitionResult |
|
ReplyAudio
public OutputAudio ReplyAudio { get; set; }Optional. The audio data bytes encoded as specified in the request. This field is set if:
- The
reply_audio_configfield is specified in the request. - The automated agent, which this output comes from, responded with audio.
In such case, the
reply_audio.configfield 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.
| Property Value | |
|---|---|
| Type | Description |
OutputAudio |
|
ReplyText
public string ReplyText { get; set; }Optional. The output text content. This field is set if an automated agent responded with a text for the user.
| Property Value | |
|---|---|
| Type | Description |
string |
|
SpeechModel
public string SpeechModel { get; set; }The name of the actual Cloud speech model used for speech recognition.
| Property Value | |
|---|---|
| Type | Description |
string |
|