Struct google_api_proto::google::cloud::dialogflow::v2::SuggestSmartRepliesRequest
source · pub struct SuggestSmartRepliesRequest {
pub parent: String,
pub current_text_input: Option<TextInput>,
pub latest_message: String,
pub context_size: i32,
}
Expand description
The request message for [Participants.SuggestSmartReplies][google.cloud.dialogflow.v2.Participants.SuggestSmartReplies].
Fields§
§parent: String
Required. The name of the participant to fetch suggestion for.
Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>
.
current_text_input: Option<TextInput>
The current natural language text segment to compile suggestion for. This provides a way for user to get follow up smart reply suggestion after a smart reply selection, without sending a text message.
latest_message: String
The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation.
Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>
.
context_size: i32
Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 20 and at most 50.
Trait Implementations§
source§impl Clone for SuggestSmartRepliesRequest
impl Clone for SuggestSmartRepliesRequest
source§fn clone(&self) -> SuggestSmartRepliesRequest
fn clone(&self) -> SuggestSmartRepliesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SuggestSmartRepliesRequest
impl Debug for SuggestSmartRepliesRequest
source§impl Default for SuggestSmartRepliesRequest
impl Default for SuggestSmartRepliesRequest
source§impl Message for SuggestSmartRepliesRequest
impl Message for SuggestSmartRepliesRequest
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 SuggestSmartRepliesRequest
impl PartialEq for SuggestSmartRepliesRequest
source§fn eq(&self, other: &SuggestSmartRepliesRequest) -> bool
fn eq(&self, other: &SuggestSmartRepliesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SuggestSmartRepliesRequest
Auto Trait Implementations§
impl Freeze for SuggestSmartRepliesRequest
impl RefUnwindSafe for SuggestSmartRepliesRequest
impl Send for SuggestSmartRepliesRequest
impl Sync for SuggestSmartRepliesRequest
impl Unpin for SuggestSmartRepliesRequest
impl UnwindSafe for SuggestSmartRepliesRequest
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