Struct google_api_proto::google::assistant::embedded::v1alpha2::AssistResponse
source · pub struct AssistResponse {
pub event_type: i32,
pub audio_out: Option<AudioOut>,
pub screen_out: Option<ScreenOut>,
pub device_action: Option<DeviceAction>,
pub speech_results: Vec<SpeechRecognitionResult>,
pub dialog_state_out: Option<DialogStateOut>,
pub debug_info: Option<DebugInfo>,
}
Expand description
The top-level message received by the client. A series of one or more
AssistResponse
messages are streamed back to the client.
Fields§
§event_type: i32
Output-only Indicates the type of event.
audio_out: Option<AudioOut>
Output-only The audio containing the Assistant’s response to the query.
screen_out: Option<ScreenOut>
Output-only Contains the Assistant’s visual response to the query.
device_action: Option<DeviceAction>
Output-only Contains the action triggered by the query with the appropriate payloads and semantic parsing.
speech_results: Vec<SpeechRecognitionResult>
Output-only This repeated list contains zero or more speech recognition
results that correspond to consecutive portions of the audio currently
being processed, starting with the portion corresponding to the earliest
audio (and most stable portion) to the portion corresponding to the most
recent audio. The strings can be concatenated to view the full
in-progress response. When the speech recognition completes, this list
will contain one item with stability
of 1.0
.
dialog_state_out: Option<DialogStateOut>
Output-only Contains output related to the user’s query.
debug_info: Option<DebugInfo>
Output-only Debugging info for developer. Only returned if request set
return_debug_info
to true.
Implementations§
source§impl AssistResponse
impl AssistResponse
sourcepub fn event_type(&self) -> EventType
pub fn event_type(&self) -> EventType
Returns the enum value of event_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_event_type(&mut self, value: EventType)
pub fn set_event_type(&mut self, value: EventType)
Sets event_type
to the provided enum value.
Trait Implementations§
source§impl Clone for AssistResponse
impl Clone for AssistResponse
source§fn clone(&self) -> AssistResponse
fn clone(&self) -> AssistResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssistResponse
impl Debug for AssistResponse
source§impl Default for AssistResponse
impl Default for AssistResponse
source§impl Message for AssistResponse
impl Message for AssistResponse
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 AssistResponse
impl PartialEq for AssistResponse
source§fn eq(&self, other: &AssistResponse) -> bool
fn eq(&self, other: &AssistResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AssistResponse
Auto Trait Implementations§
impl !Freeze for AssistResponse
impl RefUnwindSafe for AssistResponse
impl Send for AssistResponse
impl Sync for AssistResponse
impl Unpin for AssistResponse
impl UnwindSafe for AssistResponse
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