Struct google_api_proto::google::assistant::embedded::v1alpha1::ConverseResult
source · pub struct ConverseResult {
pub spoken_request_text: String,
pub spoken_response_text: String,
pub conversation_state: Bytes,
pub microphone_mode: i32,
pub volume_percentage: i32,
}
Expand description
The semantic result for the user’s spoken query.
Fields§
§spoken_request_text: String
Output-only The recognized transcript of what the user said.
spoken_response_text: String
Output-only The text of the assistant’s spoken response. This is only returned for an IFTTT action.
conversation_state: Bytes
Output-only State information for subsequent ConverseRequest
. This
value should be saved in the client and returned in the
conversation_state
with the next ConverseRequest
. (The client does not
need to interpret or otherwise use this value.) There is no need to save
this information across device restarts.
microphone_mode: i32
Output-only Specifies the mode of the microphone after this Converse
RPC is processed.
volume_percentage: i32
Output-only Updated volume level. The value will be 0 or omitted
(indicating no change) unless a voice command such as “Increase the volume”
or “Set volume level 4” was recognized, in which case the value will be
between 1 and 100 (corresponding to the new volume level of 1% to 100%).
Typically, a client should use this volume level when playing the
audio_out
data, and retain this value as the current volume level and
supply it in the AudioOutConfig
of the next ConverseRequest
. (Some
clients may also implement other ways to allow the current volume level to
be changed, for example, by providing a knob that the user can turn.)
Implementations§
source§impl ConverseResult
impl ConverseResult
sourcepub fn microphone_mode(&self) -> MicrophoneMode
pub fn microphone_mode(&self) -> MicrophoneMode
Returns the enum value of microphone_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_microphone_mode(&mut self, value: MicrophoneMode)
pub fn set_microphone_mode(&mut self, value: MicrophoneMode)
Sets microphone_mode
to the provided enum value.
Trait Implementations§
source§impl Clone for ConverseResult
impl Clone for ConverseResult
source§fn clone(&self) -> ConverseResult
fn clone(&self) -> ConverseResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConverseResult
impl Debug for ConverseResult
source§impl Default for ConverseResult
impl Default for ConverseResult
source§impl Message for ConverseResult
impl Message for ConverseResult
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 ConverseResult
impl PartialEq for ConverseResult
source§fn eq(&self, other: &ConverseResult) -> bool
fn eq(&self, other: &ConverseResult) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConverseResult
Auto Trait Implementations§
impl !Freeze for ConverseResult
impl RefUnwindSafe for ConverseResult
impl Send for ConverseResult
impl Sync for ConverseResult
impl Unpin for ConverseResult
impl UnwindSafe for ConverseResult
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