Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::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_result
represents a more complete transcript of what the user said. The lastrecognition_result
hasis_final
set totrue
.In virtual agent stage: if
enable_partial_automated_agent_reply
is true, the following N (currently 1 <= N <= 4) messages containautomated_agent_reply
and optionallyreply_audio
returned by the virtual agent. The first (N-1)automated_agent_reply
s will haveautomated_agent_reply_type
set toPARTIAL
. The lastautomated_agent_reply
hasautomated_agent_reply_type
set toFINAL
. Ifenable_partial_automated_agent_reply
is 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_results
ormessage
.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#automated_agent_reply
def automated_agent_reply() -> ::Google::Cloud::Dialogflow::V2::AutomatedAgentReply
- (::Google::Cloud::Dialogflow::V2::AutomatedAgentReply) — Note that in [AutomatedAgentReply.DetectIntentResponse][], [Sessions.DetectIntentResponse.output_audio][] and [Sessions.DetectIntentResponse.output_audio_config][] are always empty, use reply_audio instead.
#automated_agent_reply=
def automated_agent_reply=(value) -> ::Google::Cloud::Dialogflow::V2::AutomatedAgentReply
- value (::Google::Cloud::Dialogflow::V2::AutomatedAgentReply) — Note that in [AutomatedAgentReply.DetectIntentResponse][], [Sessions.DetectIntentResponse.output_audio][] and [Sessions.DetectIntentResponse.output_audio_config][] are always empty, use reply_audio instead.
- (::Google::Cloud::Dialogflow::V2::AutomatedAgentReply) — Note that in [AutomatedAgentReply.DetectIntentResponse][], [Sessions.DetectIntentResponse.output_audio][] and [Sessions.DetectIntentResponse.output_audio_config][] are always empty, use reply_audio instead.
#debugging_info
def debugging_info() -> ::Google::Cloud::Dialogflow::V2::CloudConversationDebuggingInfo
-
(::Google::Cloud::Dialogflow::V2::CloudConversationDebuggingInfo) — Debugging info that would get populated when
StreamingAnalyzeContentRequest.enable_debugging_info
is set to true.
#debugging_info=
def debugging_info=(value) -> ::Google::Cloud::Dialogflow::V2::CloudConversationDebuggingInfo
-
value (::Google::Cloud::Dialogflow::V2::CloudConversationDebuggingInfo) — Debugging info that would get populated when
StreamingAnalyzeContentRequest.enable_debugging_info
is set to true.
-
(::Google::Cloud::Dialogflow::V2::CloudConversationDebuggingInfo) — Debugging info that would get populated when
StreamingAnalyzeContentRequest.enable_debugging_info
is set to true.
#dtmf_parameters
def dtmf_parameters() -> ::Google::Cloud::Dialogflow::V2::DtmfParameters
- (::Google::Cloud::Dialogflow::V2::DtmfParameters) — Indicates the parameters of DTMF.
#dtmf_parameters=
def dtmf_parameters=(value) -> ::Google::Cloud::Dialogflow::V2::DtmfParameters
- value (::Google::Cloud::Dialogflow::V2::DtmfParameters) — Indicates the parameters of DTMF.
- (::Google::Cloud::Dialogflow::V2::DtmfParameters) — Indicates the parameters of DTMF.
#end_user_suggestion_results
def end_user_suggestion_results() -> ::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>
- (::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>) — The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.end_user_suggestion_config.
#end_user_suggestion_results=
def end_user_suggestion_results=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>
- value (::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>) — The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.end_user_suggestion_config.
- (::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>) — The suggestions for end user. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.end_user_suggestion_config.
#human_agent_suggestion_results
def human_agent_suggestion_results() -> ::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>
- (::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>) — The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.human_agent_suggestion_config.
#human_agent_suggestion_results=
def human_agent_suggestion_results=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>
- value (::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>) — The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.human_agent_suggestion_config.
- (::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>) — The suggestions for most recent human agent. The order is the same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of HumanAgentAssistantConfig.human_agent_suggestion_config.
#message
def message() -> ::Google::Cloud::Dialogflow::V2::Message
- (::Google::Cloud::Dialogflow::V2::Message) — Message analyzed by CCAI.
#message=
def message=(value) -> ::Google::Cloud::Dialogflow::V2::Message
- value (::Google::Cloud::Dialogflow::V2::Message) — Message analyzed by CCAI.
- (::Google::Cloud::Dialogflow::V2::Message) — Message analyzed by CCAI.
#recognition_result
def recognition_result() -> ::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult
- (::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult) — The result of speech recognition.
#recognition_result=
def recognition_result=(value) -> ::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult
- value (::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult) — The result of speech recognition.
- (::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult) — The result of speech recognition.
#reply_audio
def reply_audio() -> ::Google::Cloud::Dialogflow::V2::OutputAudio
-
(::Google::Cloud::Dialogflow::V2::OutputAudio) — The audio data bytes encoded as specified in the request.
This field is set if:
- The
reply_audio_config
field is specified in the request. - The automated agent, which this output comes from, responded with audio.
In such case, the
reply_audio.config
field 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.
- The
#reply_audio=
def reply_audio=(value) -> ::Google::Cloud::Dialogflow::V2::OutputAudio
-
value (::Google::Cloud::Dialogflow::V2::OutputAudio) — The audio data bytes encoded as specified in the request.
This field is set if:
- The
reply_audio_config
field is specified in the request. - The automated agent, which this output comes from, responded with audio.
In such case, the
reply_audio.config
field 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.
- The
-
(::Google::Cloud::Dialogflow::V2::OutputAudio) — The audio data bytes encoded as specified in the request.
This field is set if:
- The
reply_audio_config
field is specified in the request. - The automated agent, which this output comes from, responded with audio.
In such case, the
reply_audio.config
field 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.
- The
#reply_text
def reply_text() -> ::String
- (::String) — The output text content. This field is set if an automated agent responded with a text for the user.
#reply_text=
def reply_text=(value) -> ::String
- value (::String) — The output text content. This field is set if an automated agent responded with a text for the user.
- (::String) — The output text content. This field is set if an automated agent responded with a text for the user.