Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse.
The message returned from the DetectIntent method.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#allow_cancellation
def allow_cancellation() -> ::Boolean
- (::Boolean) — Indicates whether the partial response can be cancelled when a later response arrives. e.g. if the agent specified some music as partial response, it can be cancelled.
#allow_cancellation=
def allow_cancellation=(value) -> ::Boolean
- value (::Boolean) — Indicates whether the partial response can be cancelled when a later response arrives. e.g. if the agent specified some music as partial response, it can be cancelled.
- (::Boolean) — Indicates whether the partial response can be cancelled when a later response arrives. e.g. if the agent specified some music as partial response, it can be cancelled.
#output_audio
def output_audio() -> ::String
-
(::String) — The audio data bytes encoded as specified in the request.
Note: The output audio is generated based on the values of default platform
text responses found in the
query_result.response_messages
field. If multiple default text responses exist, they will be concatenated when generating audio. If no default platform text responses exist, the generated audio content will be empty.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.
#output_audio=
def output_audio=(value) -> ::String
-
value (::String) — The audio data bytes encoded as specified in the request.
Note: The output audio is generated based on the values of default platform
text responses found in the
query_result.response_messages
field. If multiple default text responses exist, they will be concatenated when generating audio. If no default platform text responses exist, the generated audio content will be empty.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.
-
(::String) — The audio data bytes encoded as specified in the request.
Note: The output audio is generated based on the values of default platform
text responses found in the
query_result.response_messages
field. If multiple default text responses exist, they will be concatenated when generating audio. If no default platform text responses exist, the generated audio content will be empty.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.
#output_audio_config
def output_audio_config() -> ::Google::Cloud::Dialogflow::CX::V3::OutputAudioConfig
- (::Google::Cloud::Dialogflow::CX::V3::OutputAudioConfig) — The config used by the speech synthesizer to generate the output audio.
#output_audio_config=
def output_audio_config=(value) -> ::Google::Cloud::Dialogflow::CX::V3::OutputAudioConfig
- value (::Google::Cloud::Dialogflow::CX::V3::OutputAudioConfig) — The config used by the speech synthesizer to generate the output audio.
- (::Google::Cloud::Dialogflow::CX::V3::OutputAudioConfig) — The config used by the speech synthesizer to generate the output audio.
#query_result
def query_result() -> ::Google::Cloud::Dialogflow::CX::V3::QueryResult
- (::Google::Cloud::Dialogflow::CX::V3::QueryResult) — The result of the conversational query.
#query_result=
def query_result=(value) -> ::Google::Cloud::Dialogflow::CX::V3::QueryResult
- value (::Google::Cloud::Dialogflow::CX::V3::QueryResult) — The result of the conversational query.
- (::Google::Cloud::Dialogflow::CX::V3::QueryResult) — The result of the conversational query.
#response_id
def response_id() -> ::String
- (::String) — Output only. The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
#response_id=
def response_id=(value) -> ::String
- value (::String) — Output only. The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
- (::String) — Output only. The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
#response_type
def response_type() -> ::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse::ResponseType
- (::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse::ResponseType) — Response type.
#response_type=
def response_type=(value) -> ::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse::ResponseType
- value (::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse::ResponseType) — Response type.
- (::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse::ResponseType) — Response type.