#[non_exhaustive]pub struct SuggestKnowledgeAssistRequest {
pub parent: String,
pub latest_message: String,
pub context_size: i32,
pub previous_suggested_query: String,
/* private fields */
}participants only.Expand description
The request message for Participants.SuggestKnowledgeAssist.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The name of the participant to fetch suggestions for.
Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>.
latest_message: StringOptional. The name of the latest conversation message to compile
suggestions 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: i32Optional. Max number of messages prior to and including latest_message to use as context when compiling the suggestion. The context size is by default 100 and at most 100.
previous_suggested_query: StringOptional. The previously suggested query for the given conversation. This helps identify whether the next suggestion we generate is reasonably different from the previous one. This is useful to avoid similar suggestions within the conversation.
Implementations§
Source§impl SuggestKnowledgeAssistRequest
impl SuggestKnowledgeAssistRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_latest_message<T: Into<String>>(self, v: T) -> Self
pub fn set_latest_message<T: Into<String>>(self, v: T) -> Self
Sets the value of latest_message.
§Example
let x = SuggestKnowledgeAssistRequest::new().set_latest_message("example");Sourcepub fn set_context_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_context_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of context_size.
§Example
let x = SuggestKnowledgeAssistRequest::new().set_context_size(42);Sourcepub fn set_previous_suggested_query<T: Into<String>>(self, v: T) -> Self
pub fn set_previous_suggested_query<T: Into<String>>(self, v: T) -> Self
Sets the value of previous_suggested_query.
§Example
let x = SuggestKnowledgeAssistRequest::new().set_previous_suggested_query("example");Trait Implementations§
Source§impl Clone for SuggestKnowledgeAssistRequest
impl Clone for SuggestKnowledgeAssistRequest
Source§fn clone(&self) -> SuggestKnowledgeAssistRequest
fn clone(&self) -> SuggestKnowledgeAssistRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for SuggestKnowledgeAssistRequest
impl Default for SuggestKnowledgeAssistRequest
Source§fn default() -> SuggestKnowledgeAssistRequest
fn default() -> SuggestKnowledgeAssistRequest
Source§impl PartialEq for SuggestKnowledgeAssistRequest
impl PartialEq for SuggestKnowledgeAssistRequest
Source§fn eq(&self, other: &SuggestKnowledgeAssistRequest) -> bool
fn eq(&self, other: &SuggestKnowledgeAssistRequest) -> bool
self and other values to be equal, and is used by ==.