pub struct GoogleCloudDialogflowV2SearchKnowledgeRequest {
pub conversation: Option<String>,
pub conversation_profile: Option<String>,
pub latest_message: Option<String>,
pub parent: Option<String>,
pub query: Option<GoogleCloudDialogflowV2TextInput>,
pub session_id: Option<String>,
}
Expand description
The request message for Conversations.SearchKnowledge.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§conversation: Option<String>
Optional. The conversation (between human agent and end user) where the search request is triggered. Format: projects//locations//conversations/
.
conversation_profile: Option<String>
Required. The conversation profile used to configure the search. Format: projects//locations//conversationProfiles/
.
latest_message: Option<String>
Optional. The name of the latest conversation message when the request is triggered. Format: projects//locations//conversations//messages/
.
parent: Option<String>
Required. The parent resource contains the conversation profile Format: ‘projects/’ or projects//locations/
.
query: Option<GoogleCloudDialogflowV2TextInput>
Required. The natural language text query for knowledge search.
session_id: Option<String>
Optional. The ID of the search session. The session_id can be combined with Dialogflow V3 Agent ID retrieved from conversation profile or on its own to identify a search session. The search history of the same session will impact the search result. It’s up to the API caller to choose an appropriate Session ID
. It can be a random number or some type of session identifiers (preferably hashed). The length must not exceed 36 characters.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowV2SearchKnowledgeRequest
impl Clone for GoogleCloudDialogflowV2SearchKnowledgeRequest
Source§fn clone(&self) -> GoogleCloudDialogflowV2SearchKnowledgeRequest
fn clone(&self) -> GoogleCloudDialogflowV2SearchKnowledgeRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDialogflowV2SearchKnowledgeRequest
impl Default for GoogleCloudDialogflowV2SearchKnowledgeRequest
Source§fn default() -> GoogleCloudDialogflowV2SearchKnowledgeRequest
fn default() -> GoogleCloudDialogflowV2SearchKnowledgeRequest
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2SearchKnowledgeRequest
impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2SearchKnowledgeRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for GoogleCloudDialogflowV2SearchKnowledgeRequest
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowV2SearchKnowledgeRequest
impl RefUnwindSafe for GoogleCloudDialogflowV2SearchKnowledgeRequest
impl Send for GoogleCloudDialogflowV2SearchKnowledgeRequest
impl Sync for GoogleCloudDialogflowV2SearchKnowledgeRequest
impl Unpin for GoogleCloudDialogflowV2SearchKnowledgeRequest
impl UnwindSafe for GoogleCloudDialogflowV2SearchKnowledgeRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more