Struct google_api_proto::google::cloud::discoveryengine::v1alpha::conversational_search_service_client::ConversationalSearchServiceClient
source · pub struct ConversationalSearchServiceClient<T> { /* private fields */ }
Expand description
Service for conversational search.
Implementations§
source§impl<T> ConversationalSearchServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ConversationalSearchServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ConversationalSearchServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn converse_conversation(
&mut self,
request: impl IntoRequest<ConverseConversationRequest>,
) -> Result<Response<ConverseConversationResponse>, Status>
pub async fn converse_conversation( &mut self, request: impl IntoRequest<ConverseConversationRequest>, ) -> Result<Response<ConverseConversationResponse>, Status>
Converses a conversation.
sourcepub async fn create_conversation(
&mut self,
request: impl IntoRequest<CreateConversationRequest>,
) -> Result<Response<Conversation>, Status>
pub async fn create_conversation( &mut self, request: impl IntoRequest<CreateConversationRequest>, ) -> Result<Response<Conversation>, Status>
Creates a Conversation.
If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to create already exists, an ALREADY_EXISTS error is returned.
sourcepub async fn delete_conversation(
&mut self,
request: impl IntoRequest<DeleteConversationRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_conversation( &mut self, request: impl IntoRequest<DeleteConversationRequest>, ) -> Result<Response<()>, Status>
Deletes a Conversation.
If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to delete does not exist, a NOT_FOUND error is returned.
sourcepub async fn update_conversation(
&mut self,
request: impl IntoRequest<UpdateConversationRequest>,
) -> Result<Response<Conversation>, Status>
pub async fn update_conversation( &mut self, request: impl IntoRequest<UpdateConversationRequest>, ) -> Result<Response<Conversation>, Status>
Updates a Conversation.
[Conversation][google.cloud.discoveryengine.v1alpha.Conversation] action type cannot be changed. If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to update does not exist, a NOT_FOUND error is returned.
sourcepub async fn get_conversation(
&mut self,
request: impl IntoRequest<GetConversationRequest>,
) -> Result<Response<Conversation>, Status>
pub async fn get_conversation( &mut self, request: impl IntoRequest<GetConversationRequest>, ) -> Result<Response<Conversation>, Status>
Gets a Conversation.
sourcepub async fn list_conversations(
&mut self,
request: impl IntoRequest<ListConversationsRequest>,
) -> Result<Response<ListConversationsResponse>, Status>
pub async fn list_conversations( &mut self, request: impl IntoRequest<ListConversationsRequest>, ) -> Result<Response<ListConversationsResponse>, Status>
Lists all Conversations by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
sourcepub async fn answer_query(
&mut self,
request: impl IntoRequest<AnswerQueryRequest>,
) -> Result<Response<AnswerQueryResponse>, Status>
pub async fn answer_query( &mut self, request: impl IntoRequest<AnswerQueryRequest>, ) -> Result<Response<AnswerQueryResponse>, Status>
Answer query method.
sourcepub async fn get_answer(
&mut self,
request: impl IntoRequest<GetAnswerRequest>,
) -> Result<Response<Answer>, Status>
pub async fn get_answer( &mut self, request: impl IntoRequest<GetAnswerRequest>, ) -> Result<Response<Answer>, Status>
Gets a Answer.
sourcepub async fn create_session(
&mut self,
request: impl IntoRequest<CreateSessionRequest>,
) -> Result<Response<Session>, Status>
pub async fn create_session( &mut self, request: impl IntoRequest<CreateSessionRequest>, ) -> Result<Response<Session>, Status>
Creates a Session.
If the [Session][google.cloud.discoveryengine.v1alpha.Session] to create already exists, an ALREADY_EXISTS error is returned.
sourcepub async fn delete_session(
&mut self,
request: impl IntoRequest<DeleteSessionRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_session( &mut self, request: impl IntoRequest<DeleteSessionRequest>, ) -> Result<Response<()>, Status>
Deletes a Session.
If the [Session][google.cloud.discoveryengine.v1alpha.Session] to delete does not exist, a NOT_FOUND error is returned.
sourcepub async fn update_session(
&mut self,
request: impl IntoRequest<UpdateSessionRequest>,
) -> Result<Response<Session>, Status>
pub async fn update_session( &mut self, request: impl IntoRequest<UpdateSessionRequest>, ) -> Result<Response<Session>, Status>
Updates a Session.
[Session][google.cloud.discoveryengine.v1alpha.Session] action type cannot be changed. If the [Session][google.cloud.discoveryengine.v1alpha.Session] to update does not exist, a NOT_FOUND error is returned.
sourcepub async fn get_session(
&mut self,
request: impl IntoRequest<GetSessionRequest>,
) -> Result<Response<Session>, Status>
pub async fn get_session( &mut self, request: impl IntoRequest<GetSessionRequest>, ) -> Result<Response<Session>, Status>
Gets a Session.
sourcepub async fn list_sessions(
&mut self,
request: impl IntoRequest<ListSessionsRequest>,
) -> Result<Response<ListSessionsResponse>, Status>
pub async fn list_sessions( &mut self, request: impl IntoRequest<ListSessionsRequest>, ) -> Result<Response<ListSessionsResponse>, Status>
Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
Trait Implementations§
source§impl<T: Clone> Clone for ConversationalSearchServiceClient<T>
impl<T: Clone> Clone for ConversationalSearchServiceClient<T>
source§fn clone(&self) -> ConversationalSearchServiceClient<T>
fn clone(&self) -> ConversationalSearchServiceClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for ConversationalSearchServiceClient<T>
impl<T> RefUnwindSafe for ConversationalSearchServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for ConversationalSearchServiceClient<T>where
T: Send,
impl<T> Sync for ConversationalSearchServiceClient<T>where
T: Sync,
impl<T> Unpin for ConversationalSearchServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for ConversationalSearchServiceClient<T>where
T: UnwindSafe,
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