pub struct ConversationProfiles { /* private fields */ }conversation-profiles only.Expand description
Implements a client for the Dialogflow API.
§Example
let client = ConversationProfiles::builder().build().await?;
// use `client` to make requests to the Dialogflow API.§Service Description
Service for managing ConversationProfiles.
§Configuration
To configure ConversationProfiles use the with_* methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://dialogflow.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
ConversationProfiles holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap ConversationProfiles in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl ConversationProfiles
impl ConversationProfiles
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for ConversationProfiles.
let client = ConversationProfiles::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: ConversationProfiles + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: ConversationProfiles + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn list_conversation_profiles(&self) -> ListConversationProfiles
pub fn list_conversation_profiles(&self) -> ListConversationProfiles
Returns the list of all conversation profiles in the specified project.
Sourcepub fn get_conversation_profile(&self) -> GetConversationProfile
pub fn get_conversation_profile(&self) -> GetConversationProfile
Retrieves the specified conversation profile.
Sourcepub fn create_conversation_profile(&self) -> CreateConversationProfile
pub fn create_conversation_profile(&self) -> CreateConversationProfile
Creates a conversation profile in the specified project.
ConversationProfile.create_time and ConversationProfile.update_time aren’t populated in the response. You can retrieve them via GetConversationProfile API.
Sourcepub fn update_conversation_profile(&self) -> UpdateConversationProfile
pub fn update_conversation_profile(&self) -> UpdateConversationProfile
Updates the specified conversation profile.
ConversationProfile.create_time and ConversationProfile.update_time aren’t populated in the response. You can retrieve them via GetConversationProfile API.
Sourcepub fn delete_conversation_profile(&self) -> DeleteConversationProfile
pub fn delete_conversation_profile(&self) -> DeleteConversationProfile
Deletes the specified conversation profile.
Sourcepub fn set_suggestion_feature_config(&self) -> SetSuggestionFeatureConfig
pub fn set_suggestion_feature_config(&self) -> SetSuggestionFeatureConfig
Adds or updates a suggestion feature in a conversation profile. If the conversation profile contains the type of suggestion feature for the participant role, it will update it. Otherwise it will insert the suggestion feature.
This method is a long-running
operation.
The returned Operation type has the following method-specific fields:
metadata: SetSuggestionFeatureConfigOperationMetadataresponse: ConversationProfile
If a long running operation to add or update suggestion feature config for the same conversation profile, participant role and suggestion feature type exists, please cancel the existing long running operation before sending such request, otherwise the request will be rejected.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn clear_suggestion_feature_config(&self) -> ClearSuggestionFeatureConfig
pub fn clear_suggestion_feature_config(&self) -> ClearSuggestionFeatureConfig
Clears a suggestion feature from a conversation profile for the given participant role.
This method is a long-running
operation.
The returned Operation type has the following method-specific fields:
metadata: ClearSuggestionFeatureConfigOperationMetadataresponse: ConversationProfile
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_locations(&self) -> ListLocations
pub fn list_locations(&self) -> ListLocations
Lists information about the supported locations for this service.
Sourcepub fn get_location(&self) -> GetLocation
pub fn get_location(&self) -> GetLocation
Gets information about a location.
Sourcepub fn list_operations(&self) -> ListOperations
pub fn list_operations(&self) -> ListOperations
Provides the Operations service functionality in this service.
Sourcepub fn get_operation(&self) -> GetOperation
pub fn get_operation(&self) -> GetOperation
Provides the Operations service functionality in this service.
Sourcepub fn cancel_operation(&self) -> CancelOperation
pub fn cancel_operation(&self) -> CancelOperation
Provides the Operations service functionality in this service.
Trait Implementations§
Source§impl Clone for ConversationProfiles
impl Clone for ConversationProfiles
Source§fn clone(&self) -> ConversationProfiles
fn clone(&self) -> ConversationProfiles
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more