Struct google_api_proto::google::cloud::dialogflow::cx::v3::StreamingDetectIntentResponse
source · pub struct StreamingDetectIntentResponse {
pub debugging_info: Option<CloudConversationDebuggingInfo>,
pub response: Option<Response>,
}
Expand description
The top-level message returned from the [StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method.
Multiple response messages (N) can be returned in order.
The first (N-1) responses set either the recognition_result
or
detect_intent_response
field, depending on the request:
-
If the
StreamingDetectIntentRequest.query_input.audio
field was set, and theStreamingDetectIntentRequest.enable_partial_response
field was false, therecognition_result
field is populated for each of the (N-1) responses. See the [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] message for details about the result message sequence. -
If the
StreamingDetectIntentRequest.enable_partial_response
field was true, thedetect_intent_response
field is populated for each of the (N-1) responses, where 1 <= N <= 4. These responses set the [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] field toPARTIAL
.
For the final Nth response message, the detect_intent_response
is fully
populated, and
[DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type]
is set to FINAL
.
Fields§
§debugging_info: Option<CloudConversationDebuggingInfo>
Debugging info that would get populated when
StreamingDetectIntentRequest.enable_debugging_info
is set to true.
response: Option<Response>
The output response.
Trait Implementations§
source§impl Clone for StreamingDetectIntentResponse
impl Clone for StreamingDetectIntentResponse
source§fn clone(&self) -> StreamingDetectIntentResponse
fn clone(&self) -> StreamingDetectIntentResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for StreamingDetectIntentResponse
impl Message for StreamingDetectIntentResponse
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 StreamingDetectIntentResponse
impl PartialEq for StreamingDetectIntentResponse
source§fn eq(&self, other: &StreamingDetectIntentResponse) -> bool
fn eq(&self, other: &StreamingDetectIntentResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StreamingDetectIntentResponse
Auto Trait Implementations§
impl !Freeze for StreamingDetectIntentResponse
impl RefUnwindSafe for StreamingDetectIntentResponse
impl Send for StreamingDetectIntentResponse
impl Sync for StreamingDetectIntentResponse
impl Unpin for StreamingDetectIntentResponse
impl UnwindSafe for StreamingDetectIntentResponse
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