Struct googapis::google::assistant::embedded::v1alpha2::AssistResponse [−][src]
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
Returns the enum value of event_type
, or the default if the field is set to an invalid enum value.
Sets event_type
to the provided enum value.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AssistResponse
impl Send for AssistResponse
impl Sync for AssistResponse
impl Unpin for AssistResponse
impl UnwindSafe for AssistResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more