Struct google_api_proto::google::cloud::dialogflow::v2::SearchKnowledgeRequest
source · pub struct SearchKnowledgeRequest {
pub parent: String,
pub query: Option<TextInput>,
pub conversation_profile: String,
pub session_id: String,
pub conversation: String,
pub latest_message: String,
}
Expand description
The request message for [Conversations.SearchKnowledge][google.cloud.dialogflow.v2.Conversations.SearchKnowledge].
Fields§
§parent: String
Required. The parent resource contains the conversation profile
Format: ‘projects/projects/<Project ID>/locations/<Location ID>
.
query: Option<TextInput>
Required. The natural language text query for knowledge search.
conversation_profile: String
Required. The conversation profile used to configure the search.
Format: projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>
.
session_id: String
Required. 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.
conversation: String
Optional. The conversation (between human agent and end user) where the
search request is triggered. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>
.
latest_message: String
Optional. The name of the latest conversation message when the request is
triggered.
Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>
.
Trait Implementations§
source§impl Clone for SearchKnowledgeRequest
impl Clone for SearchKnowledgeRequest
source§fn clone(&self) -> SearchKnowledgeRequest
fn clone(&self) -> SearchKnowledgeRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SearchKnowledgeRequest
impl Debug for SearchKnowledgeRequest
source§impl Default for SearchKnowledgeRequest
impl Default for SearchKnowledgeRequest
source§impl Message for SearchKnowledgeRequest
impl Message for SearchKnowledgeRequest
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 SearchKnowledgeRequest
impl PartialEq for SearchKnowledgeRequest
source§fn eq(&self, other: &SearchKnowledgeRequest) -> bool
fn eq(&self, other: &SearchKnowledgeRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SearchKnowledgeRequest
Auto Trait Implementations§
impl Freeze for SearchKnowledgeRequest
impl RefUnwindSafe for SearchKnowledgeRequest
impl Send for SearchKnowledgeRequest
impl Sync for SearchKnowledgeRequest
impl Unpin for SearchKnowledgeRequest
impl UnwindSafe for SearchKnowledgeRequest
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