Struct googapis::google::cloud::dialogflow::v2::participants_client::ParticipantsClient [−][src]
pub struct ParticipantsClient<T> { /* fields omitted */ }
Expand description
Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
Implementations
impl<T> ParticipantsClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ParticipantsClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> ParticipantsClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn create_participant(
&mut self,
request: impl IntoRequest<CreateParticipantRequest>
) -> Result<Response<Participant>, Status>
pub async fn create_participant(
&mut self,
request: impl IntoRequest<CreateParticipantRequest>
) -> Result<Response<Participant>, Status>
Creates a new participant in a conversation.
pub async fn get_participant(
&mut self,
request: impl IntoRequest<GetParticipantRequest>
) -> Result<Response<Participant>, Status>
pub async fn get_participant(
&mut self,
request: impl IntoRequest<GetParticipantRequest>
) -> Result<Response<Participant>, Status>
Retrieves a conversation participant.
pub async fn list_participants(
&mut self,
request: impl IntoRequest<ListParticipantsRequest>
) -> Result<Response<ListParticipantsResponse>, Status>
pub async fn list_participants(
&mut self,
request: impl IntoRequest<ListParticipantsRequest>
) -> Result<Response<ListParticipantsResponse>, Status>
Returns the list of all participants in the specified conversation.
pub async fn update_participant(
&mut self,
request: impl IntoRequest<UpdateParticipantRequest>
) -> Result<Response<Participant>, Status>
pub async fn update_participant(
&mut self,
request: impl IntoRequest<UpdateParticipantRequest>
) -> Result<Response<Participant>, Status>
Updates the specified participant.
pub async fn analyze_content(
&mut self,
request: impl IntoRequest<AnalyzeContentRequest>
) -> Result<Response<AnalyzeContentResponse>, Status>
pub async fn analyze_content(
&mut self,
request: impl IntoRequest<AnalyzeContentRequest>
) -> Result<Response<AnalyzeContentResponse>, Status>
Adds a text (chat, for example), or audio (phone recording, for example) message from a participant into the conversation.
Note: Always use agent versions for production traffic sent to virtual agents. See Versions and environments.
pub async fn suggest_articles(
&mut self,
request: impl IntoRequest<SuggestArticlesRequest>
) -> Result<Response<SuggestArticlesResponse>, Status>
pub async fn suggest_articles(
&mut self,
request: impl IntoRequest<SuggestArticlesRequest>
) -> Result<Response<SuggestArticlesResponse>, Status>
Gets suggested articles for a participant based on specific historical messages.
pub async fn suggest_faq_answers(
&mut self,
request: impl IntoRequest<SuggestFaqAnswersRequest>
) -> Result<Response<SuggestFaqAnswersResponse>, Status>
pub async fn suggest_faq_answers(
&mut self,
request: impl IntoRequest<SuggestFaqAnswersRequest>
) -> Result<Response<SuggestFaqAnswersResponse>, Status>
Gets suggested faq answers for a participant based on specific historical messages.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for ParticipantsClient<T> where
T: RefUnwindSafe,
impl<T> Send for ParticipantsClient<T> where
T: Send,
impl<T> Sync for ParticipantsClient<T> where
T: Sync,
impl<T> Unpin for ParticipantsClient<T> where
T: Unpin,
impl<T> UnwindSafe for ParticipantsClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more