Struct google_api_proto::google::cloud::dialogflow::cx::v3::DetectIntentResponse
source · pub struct DetectIntentResponse {
pub response_id: String,
pub query_result: Option<QueryResult>,
pub output_audio: Bytes,
pub output_audio_config: Option<OutputAudioConfig>,
pub response_type: i32,
pub allow_cancellation: bool,
}
Expand description
The message returned from the DetectIntent method.
Fields§
§response_id: 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.
query_result: Option<QueryResult>
The result of the conversational query.
output_audio: Bytes
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
][google.cloud.dialogflow.cx.v3.QueryResult.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: Option<OutputAudioConfig>
The config used by the speech synthesizer to generate the output audio.
response_type: i32
Response type.
allow_cancellation: bool
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.
Implementations§
source§impl DetectIntentResponse
impl DetectIntentResponse
sourcepub fn response_type(&self) -> ResponseType
pub fn response_type(&self) -> ResponseType
Returns the enum value of response_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_response_type(&mut self, value: ResponseType)
pub fn set_response_type(&mut self, value: ResponseType)
Sets response_type
to the provided enum value.
Trait Implementations§
source§impl Clone for DetectIntentResponse
impl Clone for DetectIntentResponse
source§fn clone(&self) -> DetectIntentResponse
fn clone(&self) -> DetectIntentResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DetectIntentResponse
impl Debug for DetectIntentResponse
source§impl Default for DetectIntentResponse
impl Default for DetectIntentResponse
source§impl Message for DetectIntentResponse
impl Message for DetectIntentResponse
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for DetectIntentResponse
impl PartialEq for DetectIntentResponse
source§fn eq(&self, other: &DetectIntentResponse) -> bool
fn eq(&self, other: &DetectIntentResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DetectIntentResponse
Auto Trait Implementations§
impl !Freeze for DetectIntentResponse
impl RefUnwindSafe for DetectIntentResponse
impl Send for DetectIntentResponse
impl Sync for DetectIntentResponse
impl Unpin for DetectIntentResponse
impl UnwindSafe for DetectIntentResponse
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request