Struct google_api_proto::google::assistant::embedded::v1alpha2::DialogStateOut
source · pub struct DialogStateOut {
pub supplemental_display_text: String,
pub conversation_state: Bytes,
pub microphone_mode: i32,
pub volume_percentage: i32,
}
Expand description
The dialog state resulting from the user’s query. Multiple of these messages may be received.
Fields§
§supplemental_display_text: String
Output-only Supplemental display text from the Assistant. This could be
the same as the speech spoken in AssistResponse.audio_out
or it could
be some additional information which aids the user’s understanding.
conversation_state: Bytes
Output-only State information for the subsequent Assist
RPC. This
value should be saved in the client and returned in the
DialogStateIn.conversation_state
field with the next
Assist
RPC. (The client does not need to interpret or otherwise use this
value.) This information should be saved across device reboots. However,
this value should be cleared (not saved in the client) during a
factory-default reset.
microphone_mode: i32
Output-only Specifies the mode of the microphone after this Assist
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 AssistRequest
. (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 DialogStateOut
impl DialogStateOut
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 DialogStateOut
impl Clone for DialogStateOut
source§fn clone(&self) -> DialogStateOut
fn clone(&self) -> DialogStateOut
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DialogStateOut
impl Debug for DialogStateOut
source§impl Default for DialogStateOut
impl Default for DialogStateOut
source§impl Message for DialogStateOut
impl Message for DialogStateOut
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 DialogStateOut
impl PartialEq for DialogStateOut
source§fn eq(&self, other: &DialogStateOut) -> bool
fn eq(&self, other: &DialogStateOut) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DialogStateOut
Auto Trait Implementations§
impl !Freeze for DialogStateOut
impl RefUnwindSafe for DialogStateOut
impl Send for DialogStateOut
impl Sync for DialogStateOut
impl Unpin for DialogStateOut
impl UnwindSafe for DialogStateOut
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