Struct googapis::google::cloud::dialogflow::v2beta1::participants_client::ParticipantsClient [−][src]
pub struct ParticipantsClient<T> { /* fields omitted */ }
Expand description
Service for managing [Participants][google.cloud.dialogflow.v2beta1.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.
Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion based on the provided conversation context in the real time.
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.
pub async fn suggest_smart_replies(
&mut self,
request: impl IntoRequest<SuggestSmartRepliesRequest>
) -> Result<Response<SuggestSmartRepliesResponse>, Status>
pub async fn suggest_smart_replies(
&mut self,
request: impl IntoRequest<SuggestSmartRepliesRequest>
) -> Result<Response<SuggestSmartRepliesResponse>, Status>
Gets smart replies for a participant based on specific historical messages.
pub async fn list_suggestions(
&mut self,
request: impl IntoRequest<ListSuggestionsRequest>
) -> Result<Response<ListSuggestionsResponse>, Status>
pub async fn list_suggestions(
&mut self,
request: impl IntoRequest<ListSuggestionsRequest>
) -> Result<Response<ListSuggestionsResponse>, Status>
Deprecated: Use inline suggestion, event based suggestion or Suggestion* API instead. See [HumanAgentAssistantConfig.name][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.name] for more details. Removal Date: 2020-09-01.
Retrieves suggestions for live agents.
This method should be used by human agent client software to fetch auto
generated suggestions in real-time, while the conversation with an end user
is in progress. The functionality is implemented in terms of the
list
pagination
design pattern. The client app should use the next_page_token
field
to fetch the next batch of suggestions. suggestions
are sorted by
create_time
in descending order.
To fetch latest suggestion, just set page_size
to 1.
To fetch new suggestions without duplication, send request with filter
create_time_epoch_microseconds > [first item's create_time of previous request]
and empty page_token.
pub async fn compile_suggestion(
&mut self,
request: impl IntoRequest<CompileSuggestionRequest>
) -> Result<Response<CompileSuggestionResponse>, Status>
pub async fn compile_suggestion(
&mut self,
request: impl IntoRequest<CompileSuggestionRequest>
) -> Result<Response<CompileSuggestionResponse>, Status>
Deprecated. use [SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles] and [SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers] instead.
Gets suggestions for a participant based on specific historical messages.
Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion based on the provided conversation context in the real time.
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