pub struct SuggestSmartRepliesResponse {
pub smart_reply_answers: Vec<SmartReplyAnswer>,
pub latest_message: String,
pub context_size: i32,
}
Expand description
The response message for [Participants.SuggestSmartReplies][google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies].
Fields§
§smart_reply_answers: Vec<SmartReplyAnswer>
Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
latest_message: String
The name of the latest conversation message used to compile suggestion for.
Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>
.
context_size: i32
Number of messages prior to and including [latest_message][google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse.latest_message] to compile the suggestion. It may be smaller than the [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest.context_size] field in the request if there aren’t that many messages in the conversation.
Trait Implementations§
source§impl Clone for SuggestSmartRepliesResponse
impl Clone for SuggestSmartRepliesResponse
source§fn clone(&self) -> SuggestSmartRepliesResponse
fn clone(&self) -> SuggestSmartRepliesResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SuggestSmartRepliesResponse
impl Debug for SuggestSmartRepliesResponse
source§impl Message for SuggestSmartRepliesResponse
impl Message for SuggestSmartRepliesResponse
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 SuggestSmartRepliesResponse
impl PartialEq for SuggestSmartRepliesResponse
source§fn eq(&self, other: &SuggestSmartRepliesResponse) -> bool
fn eq(&self, other: &SuggestSmartRepliesResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SuggestSmartRepliesResponse
Auto Trait Implementations§
impl Freeze for SuggestSmartRepliesResponse
impl RefUnwindSafe for SuggestSmartRepliesResponse
impl Send for SuggestSmartRepliesResponse
impl Sync for SuggestSmartRepliesResponse
impl Unpin for SuggestSmartRepliesResponse
impl UnwindSafe for SuggestSmartRepliesResponse
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