Struct google_api_proto::google::assistant::embedded::v1alpha2::DialogStateIn
source · pub struct DialogStateIn {
pub conversation_state: Bytes,
pub language_code: String,
pub device_location: Option<DeviceLocation>,
pub is_new_conversation: bool,
}
Expand description
Provides information about the current dialog state.
Fields§
§conversation_state: Bytes
Required This field must always be set to the
[DialogStateOut.conversation_state][google.assistant.embedded.v1alpha2.DialogStateOut.conversation_state]
value that was returned in the prior Assist
RPC. It should only be
omitted (field not set) if there was no prior Assist
RPC because this is
the first Assist
RPC made by this device after it was first setup and/or
a factory-default reset.
language_code: String
Required Language of the request in
IETF BCP 47 syntax (for example,
“en-US”). See Language
Support
for more information. If you have selected a language for this device_id
using the
Settings
menu in your phone’s Google Assistant app, that selection will override
this value.
device_location: Option<DeviceLocation>
Optional Location of the device where the query originated.
is_new_conversation: bool
Optional If true, the server will treat the request as a new conversation and not use state from the prior request. Set this field to true when the conversation should be restarted, such as after a device reboot, or after a significant lapse of time since the prior query.
Trait Implementations§
source§impl Clone for DialogStateIn
impl Clone for DialogStateIn
source§fn clone(&self) -> DialogStateIn
fn clone(&self) -> DialogStateIn
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DialogStateIn
impl Debug for DialogStateIn
source§impl Default for DialogStateIn
impl Default for DialogStateIn
source§impl Message for DialogStateIn
impl Message for DialogStateIn
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 DialogStateIn
impl PartialEq for DialogStateIn
source§fn eq(&self, other: &DialogStateIn) -> bool
fn eq(&self, other: &DialogStateIn) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DialogStateIn
Auto Trait Implementations§
impl !Freeze for DialogStateIn
impl RefUnwindSafe for DialogStateIn
impl Send for DialogStateIn
impl Sync for DialogStateIn
impl Unpin for DialogStateIn
impl UnwindSafe for DialogStateIn
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