pub struct ProjectMethods<'a, S>
where S: 'a,
{ /* private fields */ }
Expand description

A builder providing access to all methods supported on project resources. It is not used directly, but through the Dialogflow hub.

§Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_dialogflow2 as dialogflow2;
 
use std::default::Default;
use dialogflow2::{Dialogflow, oauth2, hyper, hyper_rustls, chrono, FieldMask};
 
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
        secret,
        oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    ).build().await.unwrap();
let mut hub = Dialogflow::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `agent_entity_types_batch_delete(...)`, `agent_entity_types_batch_update(...)`, `agent_entity_types_create(...)`, `agent_entity_types_delete(...)`, `agent_entity_types_entities_batch_create(...)`, `agent_entity_types_entities_batch_delete(...)`, `agent_entity_types_entities_batch_update(...)`, `agent_entity_types_get(...)`, `agent_entity_types_list(...)`, `agent_entity_types_patch(...)`, `agent_environments_create(...)`, `agent_environments_delete(...)`, `agent_environments_get(...)`, `agent_environments_get_history(...)`, `agent_environments_intents_list(...)`, `agent_environments_list(...)`, `agent_environments_patch(...)`, `agent_environments_users_sessions_contexts_create(...)`, `agent_environments_users_sessions_contexts_delete(...)`, `agent_environments_users_sessions_contexts_get(...)`, `agent_environments_users_sessions_contexts_list(...)`, `agent_environments_users_sessions_contexts_patch(...)`, `agent_environments_users_sessions_delete_contexts(...)`, `agent_environments_users_sessions_detect_intent(...)`, `agent_environments_users_sessions_entity_types_create(...)`, `agent_environments_users_sessions_entity_types_delete(...)`, `agent_environments_users_sessions_entity_types_get(...)`, `agent_environments_users_sessions_entity_types_list(...)`, `agent_environments_users_sessions_entity_types_patch(...)`, `agent_export(...)`, `agent_get_fulfillment(...)`, `agent_get_validation_result(...)`, `agent_import(...)`, `agent_intents_batch_delete(...)`, `agent_intents_batch_update(...)`, `agent_intents_create(...)`, `agent_intents_delete(...)`, `agent_intents_get(...)`, `agent_intents_list(...)`, `agent_intents_patch(...)`, `agent_knowledge_bases_create(...)`, `agent_knowledge_bases_delete(...)`, `agent_knowledge_bases_documents_create(...)`, `agent_knowledge_bases_documents_delete(...)`, `agent_knowledge_bases_documents_get(...)`, `agent_knowledge_bases_documents_list(...)`, `agent_knowledge_bases_documents_patch(...)`, `agent_knowledge_bases_documents_reload(...)`, `agent_knowledge_bases_get(...)`, `agent_knowledge_bases_list(...)`, `agent_knowledge_bases_patch(...)`, `agent_restore(...)`, `agent_search(...)`, `agent_sessions_contexts_create(...)`, `agent_sessions_contexts_delete(...)`, `agent_sessions_contexts_get(...)`, `agent_sessions_contexts_list(...)`, `agent_sessions_contexts_patch(...)`, `agent_sessions_delete_contexts(...)`, `agent_sessions_detect_intent(...)`, `agent_sessions_entity_types_create(...)`, `agent_sessions_entity_types_delete(...)`, `agent_sessions_entity_types_get(...)`, `agent_sessions_entity_types_list(...)`, `agent_sessions_entity_types_patch(...)`, `agent_train(...)`, `agent_update_fulfillment(...)`, `agent_versions_create(...)`, `agent_versions_delete(...)`, `agent_versions_get(...)`, `agent_versions_list(...)`, `agent_versions_patch(...)`, `answer_records_list(...)`, `answer_records_patch(...)`, `conversation_datasets_get(...)`, `conversation_datasets_import_conversation_data(...)`, `conversation_datasets_list(...)`, `conversation_models_create(...)`, `conversation_models_delete(...)`, `conversation_models_deploy(...)`, `conversation_models_evaluations_get(...)`, `conversation_models_evaluations_list(...)`, `conversation_models_get(...)`, `conversation_models_list(...)`, `conversation_models_undeploy(...)`, `conversation_profiles_clear_suggestion_feature_config(...)`, `conversation_profiles_create(...)`, `conversation_profiles_delete(...)`, `conversation_profiles_get(...)`, `conversation_profiles_list(...)`, `conversation_profiles_patch(...)`, `conversation_profiles_set_suggestion_feature_config(...)`, `conversations_complete(...)`, `conversations_create(...)`, `conversations_get(...)`, `conversations_list(...)`, `conversations_messages_list(...)`, `conversations_participants_analyze_content(...)`, `conversations_participants_create(...)`, `conversations_participants_get(...)`, `conversations_participants_list(...)`, `conversations_participants_patch(...)`, `conversations_participants_suggestions_suggest_articles(...)`, `conversations_participants_suggestions_suggest_faq_answers(...)`, `conversations_participants_suggestions_suggest_smart_replies(...)`, `conversations_suggestions_search_knowledge(...)`, `conversations_suggestions_suggest_conversation_summary(...)`, `delete_agent(...)`, `get_agent(...)`, `knowledge_bases_create(...)`, `knowledge_bases_delete(...)`, `knowledge_bases_documents_create(...)`, `knowledge_bases_documents_delete(...)`, `knowledge_bases_documents_export(...)`, `knowledge_bases_documents_get(...)`, `knowledge_bases_documents_import(...)`, `knowledge_bases_documents_list(...)`, `knowledge_bases_documents_patch(...)`, `knowledge_bases_documents_reload(...)`, `knowledge_bases_get(...)`, `knowledge_bases_list(...)`, `knowledge_bases_patch(...)`, `locations_agent_entity_types_batch_delete(...)`, `locations_agent_entity_types_batch_update(...)`, `locations_agent_entity_types_create(...)`, `locations_agent_entity_types_delete(...)`, `locations_agent_entity_types_entities_batch_create(...)`, `locations_agent_entity_types_entities_batch_delete(...)`, `locations_agent_entity_types_entities_batch_update(...)`, `locations_agent_entity_types_get(...)`, `locations_agent_entity_types_list(...)`, `locations_agent_entity_types_patch(...)`, `locations_agent_environments_create(...)`, `locations_agent_environments_delete(...)`, `locations_agent_environments_get(...)`, `locations_agent_environments_get_history(...)`, `locations_agent_environments_intents_list(...)`, `locations_agent_environments_list(...)`, `locations_agent_environments_patch(...)`, `locations_agent_environments_users_sessions_contexts_create(...)`, `locations_agent_environments_users_sessions_contexts_delete(...)`, `locations_agent_environments_users_sessions_contexts_get(...)`, `locations_agent_environments_users_sessions_contexts_list(...)`, `locations_agent_environments_users_sessions_contexts_patch(...)`, `locations_agent_environments_users_sessions_delete_contexts(...)`, `locations_agent_environments_users_sessions_detect_intent(...)`, `locations_agent_environments_users_sessions_entity_types_create(...)`, `locations_agent_environments_users_sessions_entity_types_delete(...)`, `locations_agent_environments_users_sessions_entity_types_get(...)`, `locations_agent_environments_users_sessions_entity_types_list(...)`, `locations_agent_environments_users_sessions_entity_types_patch(...)`, `locations_agent_export(...)`, `locations_agent_get_fulfillment(...)`, `locations_agent_get_validation_result(...)`, `locations_agent_import(...)`, `locations_agent_intents_batch_delete(...)`, `locations_agent_intents_batch_update(...)`, `locations_agent_intents_create(...)`, `locations_agent_intents_delete(...)`, `locations_agent_intents_get(...)`, `locations_agent_intents_list(...)`, `locations_agent_intents_patch(...)`, `locations_agent_restore(...)`, `locations_agent_search(...)`, `locations_agent_sessions_contexts_create(...)`, `locations_agent_sessions_contexts_delete(...)`, `locations_agent_sessions_contexts_get(...)`, `locations_agent_sessions_contexts_list(...)`, `locations_agent_sessions_contexts_patch(...)`, `locations_agent_sessions_delete_contexts(...)`, `locations_agent_sessions_detect_intent(...)`, `locations_agent_sessions_entity_types_create(...)`, `locations_agent_sessions_entity_types_delete(...)`, `locations_agent_sessions_entity_types_get(...)`, `locations_agent_sessions_entity_types_list(...)`, `locations_agent_sessions_entity_types_patch(...)`, `locations_agent_train(...)`, `locations_agent_update_fulfillment(...)`, `locations_agent_versions_create(...)`, `locations_agent_versions_delete(...)`, `locations_agent_versions_get(...)`, `locations_agent_versions_list(...)`, `locations_agent_versions_patch(...)`, `locations_answer_records_list(...)`, `locations_answer_records_patch(...)`, `locations_conversation_datasets_create(...)`, `locations_conversation_datasets_delete(...)`, `locations_conversation_datasets_get(...)`, `locations_conversation_datasets_import_conversation_data(...)`, `locations_conversation_datasets_list(...)`, `locations_conversation_models_create(...)`, `locations_conversation_models_delete(...)`, `locations_conversation_models_deploy(...)`, `locations_conversation_models_evaluations_create(...)`, `locations_conversation_models_evaluations_get(...)`, `locations_conversation_models_evaluations_list(...)`, `locations_conversation_models_get(...)`, `locations_conversation_models_list(...)`, `locations_conversation_models_undeploy(...)`, `locations_conversation_profiles_clear_suggestion_feature_config(...)`, `locations_conversation_profiles_create(...)`, `locations_conversation_profiles_delete(...)`, `locations_conversation_profiles_get(...)`, `locations_conversation_profiles_list(...)`, `locations_conversation_profiles_patch(...)`, `locations_conversation_profiles_set_suggestion_feature_config(...)`, `locations_conversations_complete(...)`, `locations_conversations_create(...)`, `locations_conversations_get(...)`, `locations_conversations_list(...)`, `locations_conversations_messages_list(...)`, `locations_conversations_participants_analyze_content(...)`, `locations_conversations_participants_create(...)`, `locations_conversations_participants_get(...)`, `locations_conversations_participants_list(...)`, `locations_conversations_participants_patch(...)`, `locations_conversations_participants_suggestions_suggest_articles(...)`, `locations_conversations_participants_suggestions_suggest_faq_answers(...)`, `locations_conversations_participants_suggestions_suggest_smart_replies(...)`, `locations_conversations_suggestions_search_knowledge(...)`, `locations_conversations_suggestions_suggest_conversation_summary(...)`, `locations_delete_agent(...)`, `locations_get(...)`, `locations_get_agent(...)`, `locations_knowledge_bases_create(...)`, `locations_knowledge_bases_delete(...)`, `locations_knowledge_bases_documents_create(...)`, `locations_knowledge_bases_documents_delete(...)`, `locations_knowledge_bases_documents_export(...)`, `locations_knowledge_bases_documents_get(...)`, `locations_knowledge_bases_documents_import(...)`, `locations_knowledge_bases_documents_list(...)`, `locations_knowledge_bases_documents_patch(...)`, `locations_knowledge_bases_documents_reload(...)`, `locations_knowledge_bases_get(...)`, `locations_knowledge_bases_list(...)`, `locations_knowledge_bases_patch(...)`, `locations_list(...)`, `locations_operations_cancel(...)`, `locations_operations_get(...)`, `locations_operations_list(...)`, `locations_set_agent(...)`, `locations_suggestions_generate_stateless_summary(...)`, `locations_suggestions_search_knowledge(...)`, `operations_cancel(...)`, `operations_get(...)`, `operations_list(...)`, `set_agent(...)`, `suggestions_generate_stateless_summary(...)` and `suggestions_search_knowledge(...)`
// to build up your call.
let rb = hub.projects();

Implementations§

source§

impl<'a, S> ProjectMethods<'a, S>

source

pub fn agent_entity_types_entities_batch_create( &self, request: GoogleCloudDialogflowV2BatchCreateEntitiesRequest, parent: &str ) -> ProjectAgentEntityTypeEntityBatchCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates multiple new entities in the specified entity type. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the entity type to create entities in. Format: projects//agent/entityTypes/.
source

pub fn agent_entity_types_entities_batch_delete( &self, request: GoogleCloudDialogflowV2BatchDeleteEntitiesRequest, parent: &str ) -> ProjectAgentEntityTypeEntityBatchDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes entities in the specified entity type. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the entity type to delete entries for. Format: projects//agent/entityTypes/.
source

pub fn agent_entity_types_entities_batch_update( &self, request: GoogleCloudDialogflowV2BatchUpdateEntitiesRequest, parent: &str ) -> ProjectAgentEntityTypeEntityBatchUpdateCall<'a, S>

Create a builder to help you perform the following task:

Updates or creates multiple entities in the specified entity type. This method does not affect entities in the entity type that aren’t explicitly specified in the request. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the entity type to update or create entities in. Format: projects//agent/entityTypes/.
source

pub fn agent_entity_types_batch_delete( &self, request: GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest, parent: &str ) -> ProjectAgentEntityTypeBatchDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes entity types in the specified agent. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the agent to delete all entities types for. Format: projects//agent.
source

pub fn agent_entity_types_batch_update( &self, request: GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest, parent: &str ) -> ProjectAgentEntityTypeBatchUpdateCall<'a, S>

Create a builder to help you perform the following task:

Updates/Creates multiple entity types in the specified agent. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: BatchUpdateEntityTypesResponse Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the agent to update or create entity types in. Format: projects//agent.
source

pub fn agent_entity_types_create( &self, request: GoogleCloudDialogflowV2EntityType, parent: &str ) -> ProjectAgentEntityTypeCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates an entity type in the specified agent. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The agent to create a entity type for. Format: projects//agent.
source

pub fn agent_entity_types_delete( &self, name: &str ) -> ProjectAgentEntityTypeDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified entity type. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • name - Required. The name of the entity type to delete. Format: projects//agent/entityTypes/.
source

pub fn agent_entity_types_get( &self, name: &str ) -> ProjectAgentEntityTypeGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified entity type.

§Arguments
  • name - Required. The name of the entity type. Format: projects//agent/entityTypes/.
source

pub fn agent_entity_types_list( &self, parent: &str ) -> ProjectAgentEntityTypeListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all entity types in the specified agent.

§Arguments
  • parent - Required. The agent to list all entity types from. Format: projects//agent.
source

pub fn agent_entity_types_patch( &self, request: GoogleCloudDialogflowV2EntityType, name: &str ) -> ProjectAgentEntityTypePatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified entity type. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • name - The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Format: projects//agent/entityTypes/.
source

pub fn agent_environments_intents_list( &self, parent: &str ) -> ProjectAgentEnvironmentIntentListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all intents in the specified agent.

§Arguments
  • parent - Required. The agent to list all intents from. Format: projects//agent or projects//locations//agent. Alternatively, you can specify the environment to list intents for. Format: projects//agent/environments/ or projects//locations//agent/environments/. Note: training phrases of the intents will not be returned for non-draft environment.
source

pub fn agent_environments_users_sessions_contexts_create( &self, request: GoogleCloudDialogflowV2Context, parent: &str ) -> ProjectAgentEnvironmentUserSessionContextCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a context. If the specified context already exists, overrides the context.

§Arguments
  • request - No description provided.
  • parent - Required. The session to create a context for. Format: projects//agent/sessions/ or projects//agent/environments//users//sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_environments_users_sessions_contexts_delete( &self, name: &str ) -> ProjectAgentEnvironmentUserSessionContextDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified context.

§Arguments
  • name - Required. The name of the context to delete. Format: projects//agent/sessions//contexts/ or projects//agent/environments//users//sessions//contexts/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_environments_users_sessions_contexts_get( &self, name: &str ) -> ProjectAgentEnvironmentUserSessionContextGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified context.

§Arguments
  • name - Required. The name of the context. Format: projects//agent/sessions//contexts/ or projects//agent/environments//users//sessions//contexts/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_environments_users_sessions_contexts_list( &self, parent: &str ) -> ProjectAgentEnvironmentUserSessionContextListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all contexts in the specified session.

§Arguments
  • parent - Required. The session to list all contexts from. Format: projects//agent/sessions/ or projects//agent/environments//users//sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_environments_users_sessions_contexts_patch( &self, request: GoogleCloudDialogflowV2Context, name: &str ) -> ProjectAgentEnvironmentUserSessionContextPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified context.

§Arguments
  • request - No description provided.
  • name - Required. The unique identifier of the context. Format: projects//agent/sessions//contexts/, or projects//agent/environments//users//sessions//contexts/. The Context ID is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * __system_counters__ * *_id_dialog_context * *_dialog_params_size
source

pub fn agent_environments_users_sessions_entity_types_create( &self, request: GoogleCloudDialogflowV2SessionEntityType, parent: &str ) -> ProjectAgentEnvironmentUserSessionEntityTypeCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a session entity type. If the specified session entity type already exists, overrides the session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • request - No description provided.
  • parent - Required. The session to create a session entity type for. Format: projects//agent/sessions/ or projects//agent/environments//users// sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_environments_users_sessions_entity_types_delete( &self, name: &str ) -> ProjectAgentEnvironmentUserSessionEntityTypeDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • name - Required. The name of the entity type to delete. Format: projects//agent/sessions//entityTypes/ or projects//agent/environments//users//sessions//entityTypes/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_environments_users_sessions_entity_types_get( &self, name: &str ) -> ProjectAgentEnvironmentUserSessionEntityTypeGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • name - Required. The name of the session entity type. Format: projects//agent/sessions//entityTypes/ or projects//agent/environments//users//sessions//entityTypes/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_environments_users_sessions_entity_types_list( &self, parent: &str ) -> ProjectAgentEnvironmentUserSessionEntityTypeListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all session entity types in the specified session. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • parent - Required. The session to list all session entity types from. Format: projects//agent/sessions/ or projects//agent/environments//users// sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_environments_users_sessions_entity_types_patch( &self, request: GoogleCloudDialogflowV2SessionEntityType, name: &str ) -> ProjectAgentEnvironmentUserSessionEntityTypePatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • request - No description provided.
  • name - Required. The unique identifier of this session entity type. Format: projects//agent/sessions//entityTypes/, or projects//agent/environments//users//sessions//entityTypes/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user. `` must be the display name of an existing entity type in the same agent that will be overridden or supplemented.
source

pub fn agent_environments_users_sessions_delete_contexts( &self, parent: &str ) -> ProjectAgentEnvironmentUserSessionDeleteContextCall<'a, S>

Create a builder to help you perform the following task:

Deletes all active contexts in the specified session.

§Arguments
  • parent - Required. The name of the session to delete all contexts from. Format: projects//agent/sessions/ or projects//agent/environments//users//sessions/. If Environment ID is not specified we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_environments_users_sessions_detect_intent( &self, request: GoogleCloudDialogflowV2DetectIntentRequest, session: &str ) -> ProjectAgentEnvironmentUserSessionDetectIntentCall<'a, S>

Create a builder to help you perform the following task:

Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. If you might use Agent Assist or other CCAI products now or in the future, consider using AnalyzeContent instead of DetectIntent. AnalyzeContent has additional functionality for Agent Assist and other CCAI products. Note: Always use agent versions for production traffic. See Versions and environments.

§Arguments
  • request - No description provided.
  • session - Required. The name of the session this query is sent to. Format: projects//agent/sessions/, or projects//agent/environments//users//sessions/. If Environment ID is not specified, we assume default ‘draft’ environment (Environment ID might be referred to as environment name at some places). If User ID is not specified, we are using “-”. It’s up to the API caller to choose an appropriate Session ID and User Id. They can be a random number or some type of user and session identifiers (preferably hashed). The length of the Session ID and User ID must not exceed 36 characters. For more information, see the API interactions guide. Note: Always use agent versions for production traffic. See Versions and environments.
source

pub fn agent_environments_create( &self, request: GoogleCloudDialogflowV2Environment, parent: &str ) -> ProjectAgentEnvironmentCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates an agent environment.

§Arguments
  • request - No description provided.
  • parent - Required. The agent to create an environment for. Supported formats: - projects//agent - projects//locations//agent
source

pub fn agent_environments_delete( &self, name: &str ) -> ProjectAgentEnvironmentDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified agent environment.

§Arguments
  • name - Required. The name of the environment to delete. / Format: - projects//agent/environments/ - projects//locations//agent/environments/ The environment ID for the default environment is -.
source

pub fn agent_environments_get( &self, name: &str ) -> ProjectAgentEnvironmentGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified agent environment.

§Arguments
  • name - Required. The name of the environment. Supported formats: - projects//agent/environments/ - projects//locations//agent/environments/ The environment ID for the default environment is -.
source

pub fn agent_environments_get_history( &self, parent: &str ) -> ProjectAgentEnvironmentGetHistoryCall<'a, S>

Create a builder to help you perform the following task:

Gets the history of the specified environment.

§Arguments
  • parent - Required. The name of the environment to retrieve history for. Supported formats: - projects//agent/environments/ - projects//locations//agent/environments/ The environment ID for the default environment is -.
source

pub fn agent_environments_list( &self, parent: &str ) -> ProjectAgentEnvironmentListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all non-default environments of the specified agent.

§Arguments
  • parent - Required. The agent to list all environments from. Format: - projects//agent - projects//locations//agent
source

pub fn agent_environments_patch( &self, request: GoogleCloudDialogflowV2Environment, name: &str ) -> ProjectAgentEnvironmentPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified agent environment. This method allows you to deploy new agent versions into the environment. When an environment is pointed to a new agent version by setting environment.agent_version, the environment is temporarily set to the LOADING state. During that time, the environment continues serving the previous version of the agent. After the new agent version is done loading, the environment is set back to the RUNNING state. You can use “-” as Environment ID in environment name to update an agent version in the default environment. WARNING: this will negate all recent changes to the draft agent and can’t be undone. You may want to save the draft agent to a version before calling this method.

§Arguments
  • request - No description provided.
  • name - Output only. The unique identifier of this agent environment. Supported formats: - projects//agent/environments/ - projects//locations//agent/environments/ The environment ID for the default environment is -.
source

pub fn agent_intents_batch_delete( &self, request: GoogleCloudDialogflowV2BatchDeleteIntentsRequest, parent: &str ) -> ProjectAgentIntentBatchDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes intents in the specified agent. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the agent to delete all entities types for. Format: projects//agent.
source

pub fn agent_intents_batch_update( &self, request: GoogleCloudDialogflowV2BatchUpdateIntentsRequest, parent: &str ) -> ProjectAgentIntentBatchUpdateCall<'a, S>

Create a builder to help you perform the following task:

Updates/Creates multiple intents in the specified agent. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: BatchUpdateIntentsResponse Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the agent to update or create intents in. Format: projects//agent.
source

pub fn agent_intents_create( &self, request: GoogleCloudDialogflowV2Intent, parent: &str ) -> ProjectAgentIntentCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates an intent in the specified agent. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The agent to create a intent for. Format: projects//agent.
source

pub fn agent_intents_delete( &self, name: &str ) -> ProjectAgentIntentDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified intent and its direct or indirect followup intents. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • name - Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Format: projects//agent/intents/.
source

pub fn agent_intents_get(&self, name: &str) -> ProjectAgentIntentGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified intent.

§Arguments
  • name - Required. The name of the intent. Format: projects//agent/intents/.
source

pub fn agent_intents_list( &self, parent: &str ) -> ProjectAgentIntentListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all intents in the specified agent.

§Arguments
  • parent - Required. The agent to list all intents from. Format: projects//agent or projects//locations//agent. Alternatively, you can specify the environment to list intents for. Format: projects//agent/environments/ or projects//locations//agent/environments/. Note: training phrases of the intents will not be returned for non-draft environment.
source

pub fn agent_intents_patch( &self, request: GoogleCloudDialogflowV2Intent, name: &str ) -> ProjectAgentIntentPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified intent. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • name - Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: projects//agent/intents/.
source

pub fn agent_knowledge_bases_documents_create( &self, request: GoogleCloudDialogflowV2Document, parent: &str ) -> ProjectAgentKnowledgeBaseDocumentCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a new document. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: Document

§Arguments
  • request - No description provided.
  • parent - Required. The knowledge base to create a document for. Format: projects//locations//knowledgeBases/.
source

pub fn agent_knowledge_bases_documents_delete( &self, name: &str ) -> ProjectAgentKnowledgeBaseDocumentDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified document. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: An Empty message

§Arguments
  • name - Required. The name of the document to delete. Format: projects//locations//knowledgeBases//documents/.
source

pub fn agent_knowledge_bases_documents_get( &self, name: &str ) -> ProjectAgentKnowledgeBaseDocumentGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified document.

§Arguments
  • name - Required. The name of the document to retrieve. Format projects//locations//knowledgeBases//documents/.
source

pub fn agent_knowledge_bases_documents_list( &self, parent: &str ) -> ProjectAgentKnowledgeBaseDocumentListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all documents of the knowledge base.

§Arguments
  • parent - Required. The knowledge base to list all documents for. Format: projects//locations//knowledgeBases/.
source

pub fn agent_knowledge_bases_documents_patch( &self, request: GoogleCloudDialogflowV2Document, name: &str ) -> ProjectAgentKnowledgeBaseDocumentPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified document. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: Document

§Arguments
  • request - No description provided.
  • name - Optional. The document resource name. The name must be empty when creating a document. Format: projects//locations//knowledgeBases//documents/.
source

pub fn agent_knowledge_bases_documents_reload( &self, request: GoogleCloudDialogflowV2ReloadDocumentRequest, name: &str ) -> ProjectAgentKnowledgeBaseDocumentReloadCall<'a, S>

Create a builder to help you perform the following task:

Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: Document Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§Arguments
  • request - No description provided.
  • name - Required. The name of the document to reload. Format: projects//locations//knowledgeBases//documents/
source

pub fn agent_knowledge_bases_create( &self, request: GoogleCloudDialogflowV2KnowledgeBase, parent: &str ) -> ProjectAgentKnowledgeBaseCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a knowledge base.

§Arguments
  • request - No description provided.
  • parent - Required. The project to create a knowledge base for. Format: projects//locations/.
source

pub fn agent_knowledge_bases_delete( &self, name: &str ) -> ProjectAgentKnowledgeBaseDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified knowledge base.

§Arguments
  • name - Required. The name of the knowledge base to delete. Format: projects//locations//knowledgeBases/.
source

pub fn agent_knowledge_bases_get( &self, name: &str ) -> ProjectAgentKnowledgeBaseGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified knowledge base.

§Arguments
  • name - Required. The name of the knowledge base to retrieve. Format projects//locations//knowledgeBases/.
source

pub fn agent_knowledge_bases_list( &self, parent: &str ) -> ProjectAgentKnowledgeBaseListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all knowledge bases of the specified agent.

§Arguments
  • parent - Required. The project to list of knowledge bases for. Format: projects//locations/.
source

pub fn agent_knowledge_bases_patch( &self, request: GoogleCloudDialogflowV2KnowledgeBase, name: &str ) -> ProjectAgentKnowledgeBasePatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified knowledge base.

§Arguments
  • request - No description provided.
  • name - The knowledge base resource name. The name must be empty when creating a knowledge base. Format: projects//locations//knowledgeBases/.
source

pub fn agent_sessions_contexts_create( &self, request: GoogleCloudDialogflowV2Context, parent: &str ) -> ProjectAgentSessionContextCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a context. If the specified context already exists, overrides the context.

§Arguments
  • request - No description provided.
  • parent - Required. The session to create a context for. Format: projects//agent/sessions/ or projects//agent/environments//users//sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_sessions_contexts_delete( &self, name: &str ) -> ProjectAgentSessionContextDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified context.

§Arguments
  • name - Required. The name of the context to delete. Format: projects//agent/sessions//contexts/ or projects//agent/environments//users//sessions//contexts/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_sessions_contexts_get( &self, name: &str ) -> ProjectAgentSessionContextGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified context.

§Arguments
  • name - Required. The name of the context. Format: projects//agent/sessions//contexts/ or projects//agent/environments//users//sessions//contexts/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_sessions_contexts_list( &self, parent: &str ) -> ProjectAgentSessionContextListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all contexts in the specified session.

§Arguments
  • parent - Required. The session to list all contexts from. Format: projects//agent/sessions/ or projects//agent/environments//users//sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_sessions_contexts_patch( &self, request: GoogleCloudDialogflowV2Context, name: &str ) -> ProjectAgentSessionContextPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified context.

§Arguments
  • request - No description provided.
  • name - Required. The unique identifier of the context. Format: projects//agent/sessions//contexts/, or projects//agent/environments//users//sessions//contexts/. The Context ID is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * __system_counters__ * *_id_dialog_context * *_dialog_params_size
source

pub fn agent_sessions_entity_types_create( &self, request: GoogleCloudDialogflowV2SessionEntityType, parent: &str ) -> ProjectAgentSessionEntityTypeCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a session entity type. If the specified session entity type already exists, overrides the session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • request - No description provided.
  • parent - Required. The session to create a session entity type for. Format: projects//agent/sessions/ or projects//agent/environments//users// sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_sessions_entity_types_delete( &self, name: &str ) -> ProjectAgentSessionEntityTypeDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • name - Required. The name of the entity type to delete. Format: projects//agent/sessions//entityTypes/ or projects//agent/environments//users//sessions//entityTypes/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_sessions_entity_types_get( &self, name: &str ) -> ProjectAgentSessionEntityTypeGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • name - Required. The name of the session entity type. Format: projects//agent/sessions//entityTypes/ or projects//agent/environments//users//sessions//entityTypes/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_sessions_entity_types_list( &self, parent: &str ) -> ProjectAgentSessionEntityTypeListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all session entity types in the specified session. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • parent - Required. The session to list all session entity types from. Format: projects//agent/sessions/ or projects//agent/environments//users// sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_sessions_entity_types_patch( &self, request: GoogleCloudDialogflowV2SessionEntityType, name: &str ) -> ProjectAgentSessionEntityTypePatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • request - No description provided.
  • name - Required. The unique identifier of this session entity type. Format: projects//agent/sessions//entityTypes/, or projects//agent/environments//users//sessions//entityTypes/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user. `` must be the display name of an existing entity type in the same agent that will be overridden or supplemented.
source

pub fn agent_sessions_delete_contexts( &self, parent: &str ) -> ProjectAgentSessionDeleteContextCall<'a, S>

Create a builder to help you perform the following task:

Deletes all active contexts in the specified session.

§Arguments
  • parent - Required. The name of the session to delete all contexts from. Format: projects//agent/sessions/ or projects//agent/environments//users//sessions/. If Environment ID is not specified we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn agent_sessions_detect_intent( &self, request: GoogleCloudDialogflowV2DetectIntentRequest, session: &str ) -> ProjectAgentSessionDetectIntentCall<'a, S>

Create a builder to help you perform the following task:

Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. If you might use Agent Assist or other CCAI products now or in the future, consider using AnalyzeContent instead of DetectIntent. AnalyzeContent has additional functionality for Agent Assist and other CCAI products. Note: Always use agent versions for production traffic. See Versions and environments.

§Arguments
  • request - No description provided.
  • session - Required. The name of the session this query is sent to. Format: projects//agent/sessions/, or projects//agent/environments//users//sessions/. If Environment ID is not specified, we assume default ‘draft’ environment (Environment ID might be referred to as environment name at some places). If User ID is not specified, we are using “-”. It’s up to the API caller to choose an appropriate Session ID and User Id. They can be a random number or some type of user and session identifiers (preferably hashed). The length of the Session ID and User ID must not exceed 36 characters. For more information, see the API interactions guide. Note: Always use agent versions for production traffic. See Versions and environments.
source

pub fn agent_versions_create( &self, request: GoogleCloudDialogflowV2Version, parent: &str ) -> ProjectAgentVersionCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates an agent version. The new version points to the agent instance in the “default” environment.

§Arguments
  • request - No description provided.
  • parent - Required. The agent to create a version for. Supported formats: - projects//agent - projects//locations//agent
source

pub fn agent_versions_delete( &self, name: &str ) -> ProjectAgentVersionDeleteCall<'a, S>

Create a builder to help you perform the following task:

Delete the specified agent version.

§Arguments
  • name - Required. The name of the version to delete. Supported formats: - projects//agent/versions/ - projects//locations//agent/versions/
source

pub fn agent_versions_get( &self, name: &str ) -> ProjectAgentVersionGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified agent version.

§Arguments
  • name - Required. The name of the version. Supported formats: - projects//agent/versions/ - projects//locations//agent/versions/
source

pub fn agent_versions_list( &self, parent: &str ) -> ProjectAgentVersionListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all versions of the specified agent.

§Arguments
  • parent - Required. The agent to list all versions from. Supported formats: - projects//agent - projects//locations//agent
source

pub fn agent_versions_patch( &self, request: GoogleCloudDialogflowV2Version, name: &str ) -> ProjectAgentVersionPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified agent version. Note that this method does not allow you to update the state of the agent the given version points to. It allows you to update only mutable properties of the version resource.

§Arguments
  • request - No description provided.
  • name - Output only. The unique identifier of this agent version. Supported formats: - projects//agent/versions/ - projects//locations//agent/versions/
source

pub fn agent_export( &self, request: GoogleCloudDialogflowV2ExportAgentRequest, parent: &str ) -> ProjectAgentExportCall<'a, S>

Create a builder to help you perform the following task:

Exports the specified agent to a ZIP file. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: ExportAgentResponse

§Arguments
  • request - No description provided.
  • parent - Required. The project that the agent to export is associated with. Format: projects/.
source

pub fn agent_get_fulfillment( &self, name: &str ) -> ProjectAgentGetFulfillmentCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the fulfillment.

§Arguments
  • name - Required. The name of the fulfillment. Format: projects//agent/fulfillment.
source

pub fn agent_get_validation_result( &self, parent: &str ) -> ProjectAgentGetValidationResultCall<'a, S>

Create a builder to help you perform the following task:

Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.

§Arguments
  • parent - Required. The project that the agent is associated with. Format: projects/.
source

pub fn agent_import( &self, request: GoogleCloudDialogflowV2ImportAgentRequest, parent: &str ) -> ProjectAgentImportCall<'a, S>

Create a builder to help you perform the following task:

Imports the specified agent from a ZIP file. Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from ImportAgentRequest. After the import, the imported draft agent will be trained automatically (unless disabled in agent settings). However, once the import is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message The operation only tracks when importing is complete, not when it is done training. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The project that the agent to import is associated with. Format: projects/.
source

pub fn agent_restore( &self, request: GoogleCloudDialogflowV2RestoreAgentRequest, parent: &str ) -> ProjectAgentRestoreCall<'a, S>

Create a builder to help you perform the following task:

Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message The operation only tracks when restoring is complete, not when it is done training. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The project that the agent to restore is associated with. Format: projects/.

Create a builder to help you perform the following task:

Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id “-”. Refer to List Sub-Collections.

§Arguments
  • parent - Required. The project to list agents from. Format: projects/.
source

pub fn agent_train( &self, request: GoogleCloudDialogflowV2TrainAgentRequest, parent: &str ) -> ProjectAgentTrainCall<'a, S>

Create a builder to help you perform the following task:

Trains the specified agent. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The project that the agent to train is associated with. Format: projects/.
source

pub fn agent_update_fulfillment( &self, request: GoogleCloudDialogflowV2Fulfillment, name: &str ) -> ProjectAgentUpdateFulfillmentCall<'a, S>

Create a builder to help you perform the following task:

Updates the fulfillment.

§Arguments
  • request - No description provided.
  • name - Required. The unique identifier of the fulfillment. Supported formats: - projects//agent/fulfillment - projects//locations//agent/fulfillment This field is not used for Fulfillment in an Environment.
source

pub fn answer_records_list( &self, parent: &str ) -> ProjectAnswerRecordListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all answer records in the specified project in reverse chronological order.

§Arguments
  • parent - Required. The project to list all answer records for in reverse chronological order. Format: projects//locations/.
source

pub fn answer_records_patch( &self, request: GoogleCloudDialogflowV2AnswerRecord, name: &str ) -> ProjectAnswerRecordPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified answer record.

§Arguments
  • request - No description provided.
  • name - The unique identifier of this answer record. Format: projects//locations//answerRecords/.
source

pub fn conversation_datasets_get( &self, name: &str ) -> ProjectConversationDatasetGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified conversation dataset.

§Arguments
  • name - Required. The conversation dataset to retrieve. Format: projects//locations//conversationDatasets/
source

pub fn conversation_datasets_import_conversation_data( &self, request: GoogleCloudDialogflowV2ImportConversationDataRequest, name: &str ) -> ProjectConversationDatasetImportConversationDataCall<'a, S>

Create a builder to help you perform the following task:

Import data into the specified conversation dataset. Note that it is not allowed to import data to a conversation dataset that already has data in it. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: ImportConversationDataOperationMetadata - response: ImportConversationDataOperationResponse

§Arguments
  • request - No description provided.
  • name - Required. Dataset resource name. Format: projects//locations//conversationDatasets/
source

pub fn conversation_datasets_list( &self, parent: &str ) -> ProjectConversationDatasetListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all conversation datasets in the specified project and location.

§Arguments
  • parent - Required. The project and location name to list all conversation datasets for. Format: projects//locations/
source

pub fn conversation_models_evaluations_get( &self, name: &str ) -> ProjectConversationModelEvaluationGetCall<'a, S>

Create a builder to help you perform the following task:

Gets an evaluation of conversation model.

§Arguments
  • name - Required. The conversation model evaluation resource name. Format: projects//conversationModels//evaluations/
source

pub fn conversation_models_evaluations_list( &self, parent: &str ) -> ProjectConversationModelEvaluationListCall<'a, S>

Create a builder to help you perform the following task:

Lists evaluations of a conversation model.

§Arguments
  • parent - Required. The conversation model resource name. Format: projects//conversationModels/
source

pub fn conversation_models_create( &self, request: GoogleCloudDialogflowV2ConversationModel, parent: &str ) -> ProjectConversationModelCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a model. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: CreateConversationModelOperationMetadata - response: ConversationModel

§Arguments
  • request - No description provided.
  • parent - The project to create conversation model for. Format: projects/
source

pub fn conversation_models_delete( &self, name: &str ) -> ProjectConversationModelDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes a model. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: DeleteConversationModelOperationMetadata - response: An Empty message

§Arguments
  • name - Required. The conversation model to delete. Format: projects//conversationModels/
source

pub fn conversation_models_deploy( &self, request: GoogleCloudDialogflowV2DeployConversationModelRequest, name: &str ) -> ProjectConversationModelDeployCall<'a, S>

Create a builder to help you perform the following task:

Deploys a model. If a model is already deployed, deploying it has no effect. A model can only serve prediction requests after it gets deployed. For article suggestion, custom model will not be used unless it is deployed. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: DeployConversationModelOperationMetadata - response: An Empty message

§Arguments
  • request - No description provided.
  • name - Required. The conversation model to deploy. Format: projects//conversationModels/
source

pub fn conversation_models_get( &self, name: &str ) -> ProjectConversationModelGetCall<'a, S>

Create a builder to help you perform the following task:

Gets conversation model.

§Arguments
  • name - Required. The conversation model to retrieve. Format: projects//conversationModels/
source

pub fn conversation_models_list( &self, parent: &str ) -> ProjectConversationModelListCall<'a, S>

Create a builder to help you perform the following task:

Lists conversation models.

§Arguments
  • parent - Required. The project to list all conversation models for. Format: projects/
source

pub fn conversation_models_undeploy( &self, request: GoogleCloudDialogflowV2UndeployConversationModelRequest, name: &str ) -> ProjectConversationModelUndeployCall<'a, S>

Create a builder to help you perform the following task:

Undeploys a model. If the model is not deployed this method has no effect. If the model is currently being used: - For article suggestion, article suggestion will fallback to the default model if model is undeployed. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: UndeployConversationModelOperationMetadata - response: An Empty message

§Arguments
  • request - No description provided.
  • name - Required. The conversation model to undeploy. Format: projects//conversationModels/
source

pub fn conversation_profiles_clear_suggestion_feature_config( &self, request: GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest, conversation_profile: &str ) -> ProjectConversationProfileClearSuggestionFeatureConfigCall<'a, S>

Create a builder to help you perform the following task:

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: ClearSuggestionFeatureConfigOperationMetadata - response: ConversationProfile

§Arguments
  • request - No description provided.
  • conversationProfile - Required. The Conversation Profile to add or update the suggestion feature config. Format: projects//locations//conversationProfiles/.
source

pub fn conversation_profiles_create( &self, request: GoogleCloudDialogflowV2ConversationProfile, parent: &str ) -> ProjectConversationProfileCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a conversation profile in the specified project. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren’t populated in the response. You can retrieve them via GetConversationProfile API.

§Arguments
  • request - No description provided.
  • parent - Required. The project to create a conversation profile for. Format: projects//locations/.
source

pub fn conversation_profiles_delete( &self, name: &str ) -> ProjectConversationProfileDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified conversation profile.

§Arguments
  • name - Required. The name of the conversation profile to delete. Format: projects//locations//conversationProfiles/.
source

pub fn conversation_profiles_get( &self, name: &str ) -> ProjectConversationProfileGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified conversation profile.

§Arguments
  • name - Required. The resource name of the conversation profile. Format: projects//locations//conversationProfiles/.
source

pub fn conversation_profiles_list( &self, parent: &str ) -> ProjectConversationProfileListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all conversation profiles in the specified project.

§Arguments
  • parent - Required. The project to list all conversation profiles from. Format: projects//locations/.
source

pub fn conversation_profiles_patch( &self, request: GoogleCloudDialogflowV2ConversationProfile, name: &str ) -> ProjectConversationProfilePatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified conversation profile. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren’t populated in the response. You can retrieve them via GetConversationProfile API.

§Arguments
  • request - No description provided.
  • name - The unique identifier of this conversation profile. Format: projects//locations//conversationProfiles/.
source

pub fn conversation_profiles_set_suggestion_feature_config( &self, request: GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest, conversation_profile: &str ) -> ProjectConversationProfileSetSuggestionFeatureConfigCall<'a, S>

Create a builder to help you perform the following task:

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: SetSuggestionFeatureConfigOperationMetadata - response: 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.

§Arguments
  • request - No description provided.
  • conversationProfile - Required. The Conversation Profile to add or update the suggestion feature config. Format: projects//locations//conversationProfiles/.
source

pub fn conversations_messages_list( &self, parent: &str ) -> ProjectConversationMessageListCall<'a, S>

Create a builder to help you perform the following task:

Lists messages that belong to a given conversation. messages are ordered by create_time in descending order. To fetch updates without duplication, send request with filter create_time_epoch_microseconds > [first item's create_time of previous request] and empty page_token.

§Arguments
  • parent - Required. The name of the conversation to list messages for. Format: projects//locations//conversations/
source

pub fn conversations_participants_suggestions_suggest_articles( &self, request: GoogleCloudDialogflowV2SuggestArticlesRequest, parent: &str ) -> ProjectConversationParticipantSuggestionSuggestArticleCall<'a, S>

Create a builder to help you perform the following task:

Gets suggested articles for a participant based on specific historical messages.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the participant to fetch suggestion for. Format: projects//locations//conversations//participants/.
source

pub fn conversations_participants_suggestions_suggest_faq_answers( &self, request: GoogleCloudDialogflowV2SuggestFaqAnswersRequest, parent: &str ) -> ProjectConversationParticipantSuggestionSuggestFaqAnswerCall<'a, S>

Create a builder to help you perform the following task:

Gets suggested faq answers for a participant based on specific historical messages.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the participant to fetch suggestion for. Format: projects//locations//conversations//participants/.
source

pub fn conversations_participants_suggestions_suggest_smart_replies( &self, request: GoogleCloudDialogflowV2SuggestSmartRepliesRequest, parent: &str ) -> ProjectConversationParticipantSuggestionSuggestSmartReplyCall<'a, S>

Create a builder to help you perform the following task:

Gets smart replies for a participant based on specific historical messages.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the participant to fetch suggestion for. Format: projects//locations//conversations//participants/.
source

pub fn conversations_participants_analyze_content( &self, request: GoogleCloudDialogflowV2AnalyzeContentRequest, participant: &str ) -> ProjectConversationParticipantAnalyzeContentCall<'a, S>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • participant - Required. The name of the participant this text comes from. Format: projects//locations//conversations//participants/.
source

pub fn conversations_participants_create( &self, request: GoogleCloudDialogflowV2Participant, parent: &str ) -> ProjectConversationParticipantCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a new participant in a conversation.

§Arguments
  • request - No description provided.
  • parent - Required. Resource identifier of the conversation adding the participant. Format: projects//locations//conversations/.
source

pub fn conversations_participants_get( &self, name: &str ) -> ProjectConversationParticipantGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves a conversation participant.

§Arguments
  • name - Required. The name of the participant. Format: projects//locations//conversations//participants/.
source

pub fn conversations_participants_list( &self, parent: &str ) -> ProjectConversationParticipantListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all participants in the specified conversation.

§Arguments
  • parent - Required. The conversation to list all participants from. Format: projects//locations//conversations/.
source

pub fn conversations_participants_patch( &self, request: GoogleCloudDialogflowV2Participant, name: &str ) -> ProjectConversationParticipantPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified participant.

§Arguments
  • request - No description provided.
  • name - Optional. The unique identifier of this participant. Format: projects//locations//conversations//participants/.
source

pub fn conversations_suggestions_search_knowledge( &self, request: GoogleCloudDialogflowV2SearchKnowledgeRequest, conversation: &str ) -> ProjectConversationSuggestionSearchKnowledgeCall<'a, S>

Create a builder to help you perform the following task:

Get answers for the given query based on knowledge documents.

§Arguments
  • request - No description provided.
  • conversation - The conversation (between human agent and end user) where the search request is triggered. Format: projects//locations//conversations/.
source

pub fn conversations_suggestions_suggest_conversation_summary( &self, request: GoogleCloudDialogflowV2SuggestConversationSummaryRequest, conversation: &str ) -> ProjectConversationSuggestionSuggestConversationSummaryCall<'a, S>

Create a builder to help you perform the following task:

Suggests summary for a conversation based on specific historical messages. The range of the messages to be used for summary can be specified in the request.

§Arguments
  • request - No description provided.
  • conversation - Required. The conversation to fetch suggestion for. Format: projects//locations//conversations/.
source

pub fn conversations_complete( &self, request: GoogleCloudDialogflowV2CompleteConversationRequest, name: &str ) -> ProjectConversationCompleteCall<'a, S>

Create a builder to help you perform the following task:

Completes the specified conversation. Finished conversations are purged from the database after 30 days.

§Arguments
  • request - No description provided.
  • name - Required. Resource identifier of the conversation to close. Format: projects//locations//conversations/.
source

pub fn conversations_create( &self, request: GoogleCloudDialogflowV2Conversation, parent: &str ) -> ProjectConversationCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a new conversation. Conversations are auto-completed after 24 hours. Conversation Lifecycle: There are two stages during a conversation: Automated Agent Stage and Assist Stage. For Automated Agent Stage, there will be a dialogflow agent responding to user queries. For Assist Stage, there’s no dialogflow agent responding to user queries. But we will provide suggestions which are generated from conversation. If Conversation.conversation_profile is configured for a dialogflow agent, conversation will start from Automated Agent Stage, otherwise, it will start from Assist Stage. And during Automated Agent Stage, once an Intent with Intent.live_agent_handoff is triggered, conversation will transfer to Assist Stage.

§Arguments
  • request - No description provided.
  • parent - Required. Resource identifier of the project creating the conversation. Format: projects//locations/.
source

pub fn conversations_get(&self, name: &str) -> ProjectConversationGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specific conversation.

§Arguments
  • name - Required. The name of the conversation. Format: projects//locations//conversations/.
source

pub fn conversations_list( &self, parent: &str ) -> ProjectConversationListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all conversations in the specified project.

§Arguments
  • parent - Required. The project from which to list all conversation. Format: projects//locations/.
source

pub fn knowledge_bases_documents_create( &self, request: GoogleCloudDialogflowV2Document, parent: &str ) -> ProjectKnowledgeBaseDocumentCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a new document. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: Document

§Arguments
  • request - No description provided.
  • parent - Required. The knowledge base to create a document for. Format: projects//locations//knowledgeBases/.
source

pub fn knowledge_bases_documents_delete( &self, name: &str ) -> ProjectKnowledgeBaseDocumentDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified document. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: An Empty message

§Arguments
  • name - Required. The name of the document to delete. Format: projects//locations//knowledgeBases//documents/.
source

pub fn knowledge_bases_documents_export( &self, request: GoogleCloudDialogflowV2ExportDocumentRequest, name: &str ) -> ProjectKnowledgeBaseDocumentExportCall<'a, S>

Create a builder to help you perform the following task:

Exports a smart messaging candidate document into the specified destination. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: Document

§Arguments
  • request - No description provided.
  • name - Required. The name of the document to export. Format: projects//locations//knowledgeBases//documents/.
source

pub fn knowledge_bases_documents_get( &self, name: &str ) -> ProjectKnowledgeBaseDocumentGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified document.

§Arguments
  • name - Required. The name of the document to retrieve. Format projects//locations//knowledgeBases//documents/.
source

pub fn knowledge_bases_documents_import( &self, request: GoogleCloudDialogflowV2ImportDocumentsRequest, parent: &str ) -> ProjectKnowledgeBaseDocumentImportCall<'a, S>

Create a builder to help you perform the following task:

Creates documents by importing data from external sources. Dialogflow supports up to 350 documents in each request. If you try to import more, Dialogflow will return an error. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: ImportDocumentsResponse

§Arguments
  • request - No description provided.
  • parent - Required. The knowledge base to import documents into. Format: projects//locations//knowledgeBases/.
source

pub fn knowledge_bases_documents_list( &self, parent: &str ) -> ProjectKnowledgeBaseDocumentListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all documents of the knowledge base.

§Arguments
  • parent - Required. The knowledge base to list all documents for. Format: projects//locations//knowledgeBases/.
source

pub fn knowledge_bases_documents_patch( &self, request: GoogleCloudDialogflowV2Document, name: &str ) -> ProjectKnowledgeBaseDocumentPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified document. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: Document

§Arguments
  • request - No description provided.
  • name - Optional. The document resource name. The name must be empty when creating a document. Format: projects//locations//knowledgeBases//documents/.
source

pub fn knowledge_bases_documents_reload( &self, request: GoogleCloudDialogflowV2ReloadDocumentRequest, name: &str ) -> ProjectKnowledgeBaseDocumentReloadCall<'a, S>

Create a builder to help you perform the following task:

Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: Document Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§Arguments
  • request - No description provided.
  • name - Required. The name of the document to reload. Format: projects//locations//knowledgeBases//documents/
source

pub fn knowledge_bases_create( &self, request: GoogleCloudDialogflowV2KnowledgeBase, parent: &str ) -> ProjectKnowledgeBaseCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a knowledge base.

§Arguments
  • request - No description provided.
  • parent - Required. The project to create a knowledge base for. Format: projects//locations/.
source

pub fn knowledge_bases_delete( &self, name: &str ) -> ProjectKnowledgeBaseDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified knowledge base.

§Arguments
  • name - Required. The name of the knowledge base to delete. Format: projects//locations//knowledgeBases/.
source

pub fn knowledge_bases_get( &self, name: &str ) -> ProjectKnowledgeBaseGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified knowledge base.

§Arguments
  • name - Required. The name of the knowledge base to retrieve. Format projects//locations//knowledgeBases/.
source

pub fn knowledge_bases_list( &self, parent: &str ) -> ProjectKnowledgeBaseListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all knowledge bases of the specified agent.

§Arguments
  • parent - Required. The project to list of knowledge bases for. Format: projects//locations/.
source

pub fn knowledge_bases_patch( &self, request: GoogleCloudDialogflowV2KnowledgeBase, name: &str ) -> ProjectKnowledgeBasePatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified knowledge base.

§Arguments
  • request - No description provided.
  • name - The knowledge base resource name. The name must be empty when creating a knowledge base. Format: projects//locations//knowledgeBases/.
source

pub fn locations_agent_entity_types_entities_batch_create( &self, request: GoogleCloudDialogflowV2BatchCreateEntitiesRequest, parent: &str ) -> ProjectLocationAgentEntityTypeEntityBatchCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates multiple new entities in the specified entity type. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the entity type to create entities in. Format: projects//agent/entityTypes/.
source

pub fn locations_agent_entity_types_entities_batch_delete( &self, request: GoogleCloudDialogflowV2BatchDeleteEntitiesRequest, parent: &str ) -> ProjectLocationAgentEntityTypeEntityBatchDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes entities in the specified entity type. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the entity type to delete entries for. Format: projects//agent/entityTypes/.
source

pub fn locations_agent_entity_types_entities_batch_update( &self, request: GoogleCloudDialogflowV2BatchUpdateEntitiesRequest, parent: &str ) -> ProjectLocationAgentEntityTypeEntityBatchUpdateCall<'a, S>

Create a builder to help you perform the following task:

Updates or creates multiple entities in the specified entity type. This method does not affect entities in the entity type that aren’t explicitly specified in the request. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the entity type to update or create entities in. Format: projects//agent/entityTypes/.
source

pub fn locations_agent_entity_types_batch_delete( &self, request: GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest, parent: &str ) -> ProjectLocationAgentEntityTypeBatchDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes entity types in the specified agent. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the agent to delete all entities types for. Format: projects//agent.
source

pub fn locations_agent_entity_types_batch_update( &self, request: GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest, parent: &str ) -> ProjectLocationAgentEntityTypeBatchUpdateCall<'a, S>

Create a builder to help you perform the following task:

Updates/Creates multiple entity types in the specified agent. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: BatchUpdateEntityTypesResponse Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the agent to update or create entity types in. Format: projects//agent.
source

pub fn locations_agent_entity_types_create( &self, request: GoogleCloudDialogflowV2EntityType, parent: &str ) -> ProjectLocationAgentEntityTypeCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates an entity type in the specified agent. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The agent to create a entity type for. Format: projects//agent.
source

pub fn locations_agent_entity_types_delete( &self, name: &str ) -> ProjectLocationAgentEntityTypeDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified entity type. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • name - Required. The name of the entity type to delete. Format: projects//agent/entityTypes/.
source

pub fn locations_agent_entity_types_get( &self, name: &str ) -> ProjectLocationAgentEntityTypeGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified entity type.

§Arguments
  • name - Required. The name of the entity type. Format: projects//agent/entityTypes/.
source

pub fn locations_agent_entity_types_list( &self, parent: &str ) -> ProjectLocationAgentEntityTypeListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all entity types in the specified agent.

§Arguments
  • parent - Required. The agent to list all entity types from. Format: projects//agent.
source

pub fn locations_agent_entity_types_patch( &self, request: GoogleCloudDialogflowV2EntityType, name: &str ) -> ProjectLocationAgentEntityTypePatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified entity type. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • name - The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Format: projects//agent/entityTypes/.
source

pub fn locations_agent_environments_intents_list( &self, parent: &str ) -> ProjectLocationAgentEnvironmentIntentListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all intents in the specified agent.

§Arguments
  • parent - Required. The agent to list all intents from. Format: projects//agent or projects//locations//agent. Alternatively, you can specify the environment to list intents for. Format: projects//agent/environments/ or projects//locations//agent/environments/. Note: training phrases of the intents will not be returned for non-draft environment.
source

pub fn locations_agent_environments_users_sessions_contexts_create( &self, request: GoogleCloudDialogflowV2Context, parent: &str ) -> ProjectLocationAgentEnvironmentUserSessionContextCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a context. If the specified context already exists, overrides the context.

§Arguments
  • request - No description provided.
  • parent - Required. The session to create a context for. Format: projects//agent/sessions/ or projects//agent/environments//users//sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_environments_users_sessions_contexts_delete( &self, name: &str ) -> ProjectLocationAgentEnvironmentUserSessionContextDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified context.

§Arguments
  • name - Required. The name of the context to delete. Format: projects//agent/sessions//contexts/ or projects//agent/environments//users//sessions//contexts/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_environments_users_sessions_contexts_get( &self, name: &str ) -> ProjectLocationAgentEnvironmentUserSessionContextGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified context.

§Arguments
  • name - Required. The name of the context. Format: projects//agent/sessions//contexts/ or projects//agent/environments//users//sessions//contexts/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_environments_users_sessions_contexts_list( &self, parent: &str ) -> ProjectLocationAgentEnvironmentUserSessionContextListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all contexts in the specified session.

§Arguments
  • parent - Required. The session to list all contexts from. Format: projects//agent/sessions/ or projects//agent/environments//users//sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_environments_users_sessions_contexts_patch( &self, request: GoogleCloudDialogflowV2Context, name: &str ) -> ProjectLocationAgentEnvironmentUserSessionContextPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified context.

§Arguments
  • request - No description provided.
  • name - Required. The unique identifier of the context. Format: projects//agent/sessions//contexts/, or projects//agent/environments//users//sessions//contexts/. The Context ID is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * __system_counters__ * *_id_dialog_context * *_dialog_params_size
source

pub fn locations_agent_environments_users_sessions_entity_types_create( &self, request: GoogleCloudDialogflowV2SessionEntityType, parent: &str ) -> ProjectLocationAgentEnvironmentUserSessionEntityTypeCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a session entity type. If the specified session entity type already exists, overrides the session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • request - No description provided.
  • parent - Required. The session to create a session entity type for. Format: projects//agent/sessions/ or projects//agent/environments//users// sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_environments_users_sessions_entity_types_delete( &self, name: &str ) -> ProjectLocationAgentEnvironmentUserSessionEntityTypeDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • name - Required. The name of the entity type to delete. Format: projects//agent/sessions//entityTypes/ or projects//agent/environments//users//sessions//entityTypes/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_environments_users_sessions_entity_types_get( &self, name: &str ) -> ProjectLocationAgentEnvironmentUserSessionEntityTypeGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • name - Required. The name of the session entity type. Format: projects//agent/sessions//entityTypes/ or projects//agent/environments//users//sessions//entityTypes/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_environments_users_sessions_entity_types_list( &self, parent: &str ) -> ProjectLocationAgentEnvironmentUserSessionEntityTypeListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all session entity types in the specified session. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • parent - Required. The session to list all session entity types from. Format: projects//agent/sessions/ or projects//agent/environments//users// sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_environments_users_sessions_entity_types_patch( &self, request: GoogleCloudDialogflowV2SessionEntityType, name: &str ) -> ProjectLocationAgentEnvironmentUserSessionEntityTypePatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • request - No description provided.
  • name - Required. The unique identifier of this session entity type. Format: projects//agent/sessions//entityTypes/, or projects//agent/environments//users//sessions//entityTypes/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user. `` must be the display name of an existing entity type in the same agent that will be overridden or supplemented.
source

pub fn locations_agent_environments_users_sessions_delete_contexts( &self, parent: &str ) -> ProjectLocationAgentEnvironmentUserSessionDeleteContextCall<'a, S>

Create a builder to help you perform the following task:

Deletes all active contexts in the specified session.

§Arguments
  • parent - Required. The name of the session to delete all contexts from. Format: projects//agent/sessions/ or projects//agent/environments//users//sessions/. If Environment ID is not specified we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_environments_users_sessions_detect_intent( &self, request: GoogleCloudDialogflowV2DetectIntentRequest, session: &str ) -> ProjectLocationAgentEnvironmentUserSessionDetectIntentCall<'a, S>

Create a builder to help you perform the following task:

Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. If you might use Agent Assist or other CCAI products now or in the future, consider using AnalyzeContent instead of DetectIntent. AnalyzeContent has additional functionality for Agent Assist and other CCAI products. Note: Always use agent versions for production traffic. See Versions and environments.

§Arguments
  • request - No description provided.
  • session - Required. The name of the session this query is sent to. Format: projects//agent/sessions/, or projects//agent/environments//users//sessions/. If Environment ID is not specified, we assume default ‘draft’ environment (Environment ID might be referred to as environment name at some places). If User ID is not specified, we are using “-”. It’s up to the API caller to choose an appropriate Session ID and User Id. They can be a random number or some type of user and session identifiers (preferably hashed). The length of the Session ID and User ID must not exceed 36 characters. For more information, see the API interactions guide. Note: Always use agent versions for production traffic. See Versions and environments.
source

pub fn locations_agent_environments_create( &self, request: GoogleCloudDialogflowV2Environment, parent: &str ) -> ProjectLocationAgentEnvironmentCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates an agent environment.

§Arguments
  • request - No description provided.
  • parent - Required. The agent to create an environment for. Supported formats: - projects//agent - projects//locations//agent
source

pub fn locations_agent_environments_delete( &self, name: &str ) -> ProjectLocationAgentEnvironmentDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified agent environment.

§Arguments
  • name - Required. The name of the environment to delete. / Format: - projects//agent/environments/ - projects//locations//agent/environments/ The environment ID for the default environment is -.
source

pub fn locations_agent_environments_get( &self, name: &str ) -> ProjectLocationAgentEnvironmentGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified agent environment.

§Arguments
  • name - Required. The name of the environment. Supported formats: - projects//agent/environments/ - projects//locations//agent/environments/ The environment ID for the default environment is -.
source

pub fn locations_agent_environments_get_history( &self, parent: &str ) -> ProjectLocationAgentEnvironmentGetHistoryCall<'a, S>

Create a builder to help you perform the following task:

Gets the history of the specified environment.

§Arguments
  • parent - Required. The name of the environment to retrieve history for. Supported formats: - projects//agent/environments/ - projects//locations//agent/environments/ The environment ID for the default environment is -.
source

pub fn locations_agent_environments_list( &self, parent: &str ) -> ProjectLocationAgentEnvironmentListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all non-default environments of the specified agent.

§Arguments
  • parent - Required. The agent to list all environments from. Format: - projects//agent - projects//locations//agent
source

pub fn locations_agent_environments_patch( &self, request: GoogleCloudDialogflowV2Environment, name: &str ) -> ProjectLocationAgentEnvironmentPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified agent environment. This method allows you to deploy new agent versions into the environment. When an environment is pointed to a new agent version by setting environment.agent_version, the environment is temporarily set to the LOADING state. During that time, the environment continues serving the previous version of the agent. After the new agent version is done loading, the environment is set back to the RUNNING state. You can use “-” as Environment ID in environment name to update an agent version in the default environment. WARNING: this will negate all recent changes to the draft agent and can’t be undone. You may want to save the draft agent to a version before calling this method.

§Arguments
  • request - No description provided.
  • name - Output only. The unique identifier of this agent environment. Supported formats: - projects//agent/environments/ - projects//locations//agent/environments/ The environment ID for the default environment is -.
source

pub fn locations_agent_intents_batch_delete( &self, request: GoogleCloudDialogflowV2BatchDeleteIntentsRequest, parent: &str ) -> ProjectLocationAgentIntentBatchDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes intents in the specified agent. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the agent to delete all entities types for. Format: projects//agent.
source

pub fn locations_agent_intents_batch_update( &self, request: GoogleCloudDialogflowV2BatchUpdateIntentsRequest, parent: &str ) -> ProjectLocationAgentIntentBatchUpdateCall<'a, S>

Create a builder to help you perform the following task:

Updates/Creates multiple intents in the specified agent. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: BatchUpdateIntentsResponse Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the agent to update or create intents in. Format: projects//agent.
source

pub fn locations_agent_intents_create( &self, request: GoogleCloudDialogflowV2Intent, parent: &str ) -> ProjectLocationAgentIntentCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates an intent in the specified agent. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The agent to create a intent for. Format: projects//agent.
source

pub fn locations_agent_intents_delete( &self, name: &str ) -> ProjectLocationAgentIntentDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified intent and its direct or indirect followup intents. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • name - Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Format: projects//agent/intents/.
source

pub fn locations_agent_intents_get( &self, name: &str ) -> ProjectLocationAgentIntentGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified intent.

§Arguments
  • name - Required. The name of the intent. Format: projects//agent/intents/.
source

pub fn locations_agent_intents_list( &self, parent: &str ) -> ProjectLocationAgentIntentListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all intents in the specified agent.

§Arguments
  • parent - Required. The agent to list all intents from. Format: projects//agent or projects//locations//agent. Alternatively, you can specify the environment to list intents for. Format: projects//agent/environments/ or projects//locations//agent/environments/. Note: training phrases of the intents will not be returned for non-draft environment.
source

pub fn locations_agent_intents_patch( &self, request: GoogleCloudDialogflowV2Intent, name: &str ) -> ProjectLocationAgentIntentPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified intent. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • name - Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: projects//agent/intents/.
source

pub fn locations_agent_sessions_contexts_create( &self, request: GoogleCloudDialogflowV2Context, parent: &str ) -> ProjectLocationAgentSessionContextCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a context. If the specified context already exists, overrides the context.

§Arguments
  • request - No description provided.
  • parent - Required. The session to create a context for. Format: projects//agent/sessions/ or projects//agent/environments//users//sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_sessions_contexts_delete( &self, name: &str ) -> ProjectLocationAgentSessionContextDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified context.

§Arguments
  • name - Required. The name of the context to delete. Format: projects//agent/sessions//contexts/ or projects//agent/environments//users//sessions//contexts/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_sessions_contexts_get( &self, name: &str ) -> ProjectLocationAgentSessionContextGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified context.

§Arguments
  • name - Required. The name of the context. Format: projects//agent/sessions//contexts/ or projects//agent/environments//users//sessions//contexts/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_sessions_contexts_list( &self, parent: &str ) -> ProjectLocationAgentSessionContextListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all contexts in the specified session.

§Arguments
  • parent - Required. The session to list all contexts from. Format: projects//agent/sessions/ or projects//agent/environments//users//sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_sessions_contexts_patch( &self, request: GoogleCloudDialogflowV2Context, name: &str ) -> ProjectLocationAgentSessionContextPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified context.

§Arguments
  • request - No description provided.
  • name - Required. The unique identifier of the context. Format: projects//agent/sessions//contexts/, or projects//agent/environments//users//sessions//contexts/. The Context ID is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * __system_counters__ * *_id_dialog_context * *_dialog_params_size
source

pub fn locations_agent_sessions_entity_types_create( &self, request: GoogleCloudDialogflowV2SessionEntityType, parent: &str ) -> ProjectLocationAgentSessionEntityTypeCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a session entity type. If the specified session entity type already exists, overrides the session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • request - No description provided.
  • parent - Required. The session to create a session entity type for. Format: projects//agent/sessions/ or projects//agent/environments//users// sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_sessions_entity_types_delete( &self, name: &str ) -> ProjectLocationAgentSessionEntityTypeDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • name - Required. The name of the entity type to delete. Format: projects//agent/sessions//entityTypes/ or projects//agent/environments//users//sessions//entityTypes/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_sessions_entity_types_get( &self, name: &str ) -> ProjectLocationAgentSessionEntityTypeGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • name - Required. The name of the session entity type. Format: projects//agent/sessions//entityTypes/ or projects//agent/environments//users//sessions//entityTypes/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_sessions_entity_types_list( &self, parent: &str ) -> ProjectLocationAgentSessionEntityTypeListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all session entity types in the specified session. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • parent - Required. The session to list all session entity types from. Format: projects//agent/sessions/ or projects//agent/environments//users// sessions/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_sessions_entity_types_patch( &self, request: GoogleCloudDialogflowV2SessionEntityType, name: &str ) -> ProjectLocationAgentSessionEntityTypePatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified session entity type. This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

§Arguments
  • request - No description provided.
  • name - Required. The unique identifier of this session entity type. Format: projects//agent/sessions//entityTypes/, or projects//agent/environments//users//sessions//entityTypes/. If Environment ID is not specified, we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user. `` must be the display name of an existing entity type in the same agent that will be overridden or supplemented.
source

pub fn locations_agent_sessions_delete_contexts( &self, parent: &str ) -> ProjectLocationAgentSessionDeleteContextCall<'a, S>

Create a builder to help you perform the following task:

Deletes all active contexts in the specified session.

§Arguments
  • parent - Required. The name of the session to delete all contexts from. Format: projects//agent/sessions/ or projects//agent/environments//users//sessions/. If Environment ID is not specified we assume default ‘draft’ environment. If User ID is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_sessions_detect_intent( &self, request: GoogleCloudDialogflowV2DetectIntentRequest, session: &str ) -> ProjectLocationAgentSessionDetectIntentCall<'a, S>

Create a builder to help you perform the following task:

Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. If you might use Agent Assist or other CCAI products now or in the future, consider using AnalyzeContent instead of DetectIntent. AnalyzeContent has additional functionality for Agent Assist and other CCAI products. Note: Always use agent versions for production traffic. See Versions and environments.

§Arguments
  • request - No description provided.
  • session - Required. The name of the session this query is sent to. Format: projects//agent/sessions/, or projects//agent/environments//users//sessions/. If Environment ID is not specified, we assume default ‘draft’ environment (Environment ID might be referred to as environment name at some places). If User ID is not specified, we are using “-”. It’s up to the API caller to choose an appropriate Session ID and User Id. They can be a random number or some type of user and session identifiers (preferably hashed). The length of the Session ID and User ID must not exceed 36 characters. For more information, see the API interactions guide. Note: Always use agent versions for production traffic. See Versions and environments.
source

pub fn locations_agent_versions_create( &self, request: GoogleCloudDialogflowV2Version, parent: &str ) -> ProjectLocationAgentVersionCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates an agent version. The new version points to the agent instance in the “default” environment.

§Arguments
  • request - No description provided.
  • parent - Required. The agent to create a version for. Supported formats: - projects//agent - projects//locations//agent
source

pub fn locations_agent_versions_delete( &self, name: &str ) -> ProjectLocationAgentVersionDeleteCall<'a, S>

Create a builder to help you perform the following task:

Delete the specified agent version.

§Arguments
  • name - Required. The name of the version to delete. Supported formats: - projects//agent/versions/ - projects//locations//agent/versions/
source

pub fn locations_agent_versions_get( &self, name: &str ) -> ProjectLocationAgentVersionGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified agent version.

§Arguments
  • name - Required. The name of the version. Supported formats: - projects//agent/versions/ - projects//locations//agent/versions/
source

pub fn locations_agent_versions_list( &self, parent: &str ) -> ProjectLocationAgentVersionListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all versions of the specified agent.

§Arguments
  • parent - Required. The agent to list all versions from. Supported formats: - projects//agent - projects//locations//agent
source

pub fn locations_agent_versions_patch( &self, request: GoogleCloudDialogflowV2Version, name: &str ) -> ProjectLocationAgentVersionPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified agent version. Note that this method does not allow you to update the state of the agent the given version points to. It allows you to update only mutable properties of the version resource.

§Arguments
  • request - No description provided.
  • name - Output only. The unique identifier of this agent version. Supported formats: - projects//agent/versions/ - projects//locations//agent/versions/
source

pub fn locations_agent_export( &self, request: GoogleCloudDialogflowV2ExportAgentRequest, parent: &str ) -> ProjectLocationAgentExportCall<'a, S>

Create a builder to help you perform the following task:

Exports the specified agent to a ZIP file. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: ExportAgentResponse

§Arguments
  • request - No description provided.
  • parent - Required. The project that the agent to export is associated with. Format: projects/.
source

pub fn locations_agent_get_fulfillment( &self, name: &str ) -> ProjectLocationAgentGetFulfillmentCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the fulfillment.

§Arguments
  • name - Required. The name of the fulfillment. Format: projects//agent/fulfillment.
source

pub fn locations_agent_get_validation_result( &self, parent: &str ) -> ProjectLocationAgentGetValidationResultCall<'a, S>

Create a builder to help you perform the following task:

Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.

§Arguments
  • parent - Required. The project that the agent is associated with. Format: projects/.
source

pub fn locations_agent_import( &self, request: GoogleCloudDialogflowV2ImportAgentRequest, parent: &str ) -> ProjectLocationAgentImportCall<'a, S>

Create a builder to help you perform the following task:

Imports the specified agent from a ZIP file. Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from ImportAgentRequest. After the import, the imported draft agent will be trained automatically (unless disabled in agent settings). However, once the import is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message The operation only tracks when importing is complete, not when it is done training. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The project that the agent to import is associated with. Format: projects/.
source

pub fn locations_agent_restore( &self, request: GoogleCloudDialogflowV2RestoreAgentRequest, parent: &str ) -> ProjectLocationAgentRestoreCall<'a, S>

Create a builder to help you perform the following task:

Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message The operation only tracks when restoring is complete, not when it is done training. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The project that the agent to restore is associated with. Format: projects/.

Create a builder to help you perform the following task:

Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id “-”. Refer to List Sub-Collections.

§Arguments
  • parent - Required. The project to list agents from. Format: projects/.
source

pub fn locations_agent_train( &self, request: GoogleCloudDialogflowV2TrainAgentRequest, parent: &str ) -> ProjectLocationAgentTrainCall<'a, S>

Create a builder to help you perform the following task:

Trains the specified agent. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The project that the agent to train is associated with. Format: projects/.
source

pub fn locations_agent_update_fulfillment( &self, request: GoogleCloudDialogflowV2Fulfillment, name: &str ) -> ProjectLocationAgentUpdateFulfillmentCall<'a, S>

Create a builder to help you perform the following task:

Updates the fulfillment.

§Arguments
  • request - No description provided.
  • name - Required. The unique identifier of the fulfillment. Supported formats: - projects//agent/fulfillment - projects//locations//agent/fulfillment This field is not used for Fulfillment in an Environment.
source

pub fn locations_answer_records_list( &self, parent: &str ) -> ProjectLocationAnswerRecordListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all answer records in the specified project in reverse chronological order.

§Arguments
  • parent - Required. The project to list all answer records for in reverse chronological order. Format: projects//locations/.
source

pub fn locations_answer_records_patch( &self, request: GoogleCloudDialogflowV2AnswerRecord, name: &str ) -> ProjectLocationAnswerRecordPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified answer record.

§Arguments
  • request - No description provided.
  • name - The unique identifier of this answer record. Format: projects//locations//answerRecords/.
source

pub fn locations_conversation_datasets_create( &self, request: GoogleCloudDialogflowV2ConversationDataset, parent: &str ) -> ProjectLocationConversationDatasetCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a new conversation dataset. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: CreateConversationDatasetOperationMetadata - response: ConversationDataset

§Arguments
  • request - No description provided.
  • parent - Required. The project to create conversation dataset for. Format: projects//locations/
source

pub fn locations_conversation_datasets_delete( &self, name: &str ) -> ProjectLocationConversationDatasetDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified conversation dataset. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: DeleteConversationDatasetOperationMetadata - response: An Empty message

§Arguments
  • name - Required. The conversation dataset to delete. Format: projects//locations//conversationDatasets/
source

pub fn locations_conversation_datasets_get( &self, name: &str ) -> ProjectLocationConversationDatasetGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified conversation dataset.

§Arguments
  • name - Required. The conversation dataset to retrieve. Format: projects//locations//conversationDatasets/
source

pub fn locations_conversation_datasets_import_conversation_data( &self, request: GoogleCloudDialogflowV2ImportConversationDataRequest, name: &str ) -> ProjectLocationConversationDatasetImportConversationDataCall<'a, S>

Create a builder to help you perform the following task:

Import data into the specified conversation dataset. Note that it is not allowed to import data to a conversation dataset that already has data in it. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: ImportConversationDataOperationMetadata - response: ImportConversationDataOperationResponse

§Arguments
  • request - No description provided.
  • name - Required. Dataset resource name. Format: projects//locations//conversationDatasets/
source

pub fn locations_conversation_datasets_list( &self, parent: &str ) -> ProjectLocationConversationDatasetListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all conversation datasets in the specified project and location.

§Arguments
  • parent - Required. The project and location name to list all conversation datasets for. Format: projects//locations/
source

pub fn locations_conversation_models_evaluations_create( &self, request: GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest, parent: &str ) -> ProjectLocationConversationModelEvaluationCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates evaluation of a conversation model.

§Arguments
  • request - No description provided.
  • parent - Required. The conversation model resource name. Format: projects//locations//conversationModels/
source

pub fn locations_conversation_models_evaluations_get( &self, name: &str ) -> ProjectLocationConversationModelEvaluationGetCall<'a, S>

Create a builder to help you perform the following task:

Gets an evaluation of conversation model.

§Arguments
  • name - Required. The conversation model evaluation resource name. Format: projects//conversationModels//evaluations/
source

pub fn locations_conversation_models_evaluations_list( &self, parent: &str ) -> ProjectLocationConversationModelEvaluationListCall<'a, S>

Create a builder to help you perform the following task:

Lists evaluations of a conversation model.

§Arguments
  • parent - Required. The conversation model resource name. Format: projects//conversationModels/
source

pub fn locations_conversation_models_create( &self, request: GoogleCloudDialogflowV2ConversationModel, parent: &str ) -> ProjectLocationConversationModelCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a model. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: CreateConversationModelOperationMetadata - response: ConversationModel

§Arguments
  • request - No description provided.
  • parent - The project to create conversation model for. Format: projects/
source

pub fn locations_conversation_models_delete( &self, name: &str ) -> ProjectLocationConversationModelDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes a model. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: DeleteConversationModelOperationMetadata - response: An Empty message

§Arguments
  • name - Required. The conversation model to delete. Format: projects//conversationModels/
source

pub fn locations_conversation_models_deploy( &self, request: GoogleCloudDialogflowV2DeployConversationModelRequest, name: &str ) -> ProjectLocationConversationModelDeployCall<'a, S>

Create a builder to help you perform the following task:

Deploys a model. If a model is already deployed, deploying it has no effect. A model can only serve prediction requests after it gets deployed. For article suggestion, custom model will not be used unless it is deployed. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: DeployConversationModelOperationMetadata - response: An Empty message

§Arguments
  • request - No description provided.
  • name - Required. The conversation model to deploy. Format: projects//conversationModels/
source

pub fn locations_conversation_models_get( &self, name: &str ) -> ProjectLocationConversationModelGetCall<'a, S>

Create a builder to help you perform the following task:

Gets conversation model.

§Arguments
  • name - Required. The conversation model to retrieve. Format: projects//conversationModels/
source

pub fn locations_conversation_models_list( &self, parent: &str ) -> ProjectLocationConversationModelListCall<'a, S>

Create a builder to help you perform the following task:

Lists conversation models.

§Arguments
  • parent - Required. The project to list all conversation models for. Format: projects/
source

pub fn locations_conversation_models_undeploy( &self, request: GoogleCloudDialogflowV2UndeployConversationModelRequest, name: &str ) -> ProjectLocationConversationModelUndeployCall<'a, S>

Create a builder to help you perform the following task:

Undeploys a model. If the model is not deployed this method has no effect. If the model is currently being used: - For article suggestion, article suggestion will fallback to the default model if model is undeployed. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: UndeployConversationModelOperationMetadata - response: An Empty message

§Arguments
  • request - No description provided.
  • name - Required. The conversation model to undeploy. Format: projects//conversationModels/
source

pub fn locations_conversation_profiles_clear_suggestion_feature_config( &self, request: GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest, conversation_profile: &str ) -> ProjectLocationConversationProfileClearSuggestionFeatureConfigCall<'a, S>

Create a builder to help you perform the following task:

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: ClearSuggestionFeatureConfigOperationMetadata - response: ConversationProfile

§Arguments
  • request - No description provided.
  • conversationProfile - Required. The Conversation Profile to add or update the suggestion feature config. Format: projects//locations//conversationProfiles/.
source

pub fn locations_conversation_profiles_create( &self, request: GoogleCloudDialogflowV2ConversationProfile, parent: &str ) -> ProjectLocationConversationProfileCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a conversation profile in the specified project. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren’t populated in the response. You can retrieve them via GetConversationProfile API.

§Arguments
  • request - No description provided.
  • parent - Required. The project to create a conversation profile for. Format: projects//locations/.
source

pub fn locations_conversation_profiles_delete( &self, name: &str ) -> ProjectLocationConversationProfileDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified conversation profile.

§Arguments
  • name - Required. The name of the conversation profile to delete. Format: projects//locations//conversationProfiles/.
source

pub fn locations_conversation_profiles_get( &self, name: &str ) -> ProjectLocationConversationProfileGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified conversation profile.

§Arguments
  • name - Required. The resource name of the conversation profile. Format: projects//locations//conversationProfiles/.
source

pub fn locations_conversation_profiles_list( &self, parent: &str ) -> ProjectLocationConversationProfileListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all conversation profiles in the specified project.

§Arguments
  • parent - Required. The project to list all conversation profiles from. Format: projects//locations/.
source

pub fn locations_conversation_profiles_patch( &self, request: GoogleCloudDialogflowV2ConversationProfile, name: &str ) -> ProjectLocationConversationProfilePatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified conversation profile. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren’t populated in the response. You can retrieve them via GetConversationProfile API.

§Arguments
  • request - No description provided.
  • name - The unique identifier of this conversation profile. Format: projects//locations//conversationProfiles/.
source

pub fn locations_conversation_profiles_set_suggestion_feature_config( &self, request: GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest, conversation_profile: &str ) -> ProjectLocationConversationProfileSetSuggestionFeatureConfigCall<'a, S>

Create a builder to help you perform the following task:

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: SetSuggestionFeatureConfigOperationMetadata - response: 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.

§Arguments
  • request - No description provided.
  • conversationProfile - Required. The Conversation Profile to add or update the suggestion feature config. Format: projects//locations//conversationProfiles/.
source

pub fn locations_conversations_messages_list( &self, parent: &str ) -> ProjectLocationConversationMessageListCall<'a, S>

Create a builder to help you perform the following task:

Lists messages that belong to a given conversation. messages are ordered by create_time in descending order. To fetch updates without duplication, send request with filter create_time_epoch_microseconds > [first item's create_time of previous request] and empty page_token.

§Arguments
  • parent - Required. The name of the conversation to list messages for. Format: projects//locations//conversations/
source

pub fn locations_conversations_participants_suggestions_suggest_articles( &self, request: GoogleCloudDialogflowV2SuggestArticlesRequest, parent: &str ) -> ProjectLocationConversationParticipantSuggestionSuggestArticleCall<'a, S>

Create a builder to help you perform the following task:

Gets suggested articles for a participant based on specific historical messages.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the participant to fetch suggestion for. Format: projects//locations//conversations//participants/.
source

pub fn locations_conversations_participants_suggestions_suggest_faq_answers( &self, request: GoogleCloudDialogflowV2SuggestFaqAnswersRequest, parent: &str ) -> ProjectLocationConversationParticipantSuggestionSuggestFaqAnswerCall<'a, S>

Create a builder to help you perform the following task:

Gets suggested faq answers for a participant based on specific historical messages.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the participant to fetch suggestion for. Format: projects//locations//conversations//participants/.
source

pub fn locations_conversations_participants_suggestions_suggest_smart_replies( &self, request: GoogleCloudDialogflowV2SuggestSmartRepliesRequest, parent: &str ) -> ProjectLocationConversationParticipantSuggestionSuggestSmartReplyCall<'a, S>

Create a builder to help you perform the following task:

Gets smart replies for a participant based on specific historical messages.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the participant to fetch suggestion for. Format: projects//locations//conversations//participants/.
source

pub fn locations_conversations_participants_analyze_content( &self, request: GoogleCloudDialogflowV2AnalyzeContentRequest, participant: &str ) -> ProjectLocationConversationParticipantAnalyzeContentCall<'a, S>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • participant - Required. The name of the participant this text comes from. Format: projects//locations//conversations//participants/.
source

pub fn locations_conversations_participants_create( &self, request: GoogleCloudDialogflowV2Participant, parent: &str ) -> ProjectLocationConversationParticipantCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a new participant in a conversation.

§Arguments
  • request - No description provided.
  • parent - Required. Resource identifier of the conversation adding the participant. Format: projects//locations//conversations/.
source

pub fn locations_conversations_participants_get( &self, name: &str ) -> ProjectLocationConversationParticipantGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves a conversation participant.

§Arguments
  • name - Required. The name of the participant. Format: projects//locations//conversations//participants/.
source

pub fn locations_conversations_participants_list( &self, parent: &str ) -> ProjectLocationConversationParticipantListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all participants in the specified conversation.

§Arguments
  • parent - Required. The conversation to list all participants from. Format: projects//locations//conversations/.
source

pub fn locations_conversations_participants_patch( &self, request: GoogleCloudDialogflowV2Participant, name: &str ) -> ProjectLocationConversationParticipantPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified participant.

§Arguments
  • request - No description provided.
  • name - Optional. The unique identifier of this participant. Format: projects//locations//conversations//participants/.
source

pub fn locations_conversations_suggestions_search_knowledge( &self, request: GoogleCloudDialogflowV2SearchKnowledgeRequest, conversation: &str ) -> ProjectLocationConversationSuggestionSearchKnowledgeCall<'a, S>

Create a builder to help you perform the following task:

Get answers for the given query based on knowledge documents.

§Arguments
  • request - No description provided.
  • conversation - The conversation (between human agent and end user) where the search request is triggered. Format: projects//locations//conversations/.
source

pub fn locations_conversations_suggestions_suggest_conversation_summary( &self, request: GoogleCloudDialogflowV2SuggestConversationSummaryRequest, conversation: &str ) -> ProjectLocationConversationSuggestionSuggestConversationSummaryCall<'a, S>

Create a builder to help you perform the following task:

Suggests summary for a conversation based on specific historical messages. The range of the messages to be used for summary can be specified in the request.

§Arguments
  • request - No description provided.
  • conversation - Required. The conversation to fetch suggestion for. Format: projects//locations//conversations/.
source

pub fn locations_conversations_complete( &self, request: GoogleCloudDialogflowV2CompleteConversationRequest, name: &str ) -> ProjectLocationConversationCompleteCall<'a, S>

Create a builder to help you perform the following task:

Completes the specified conversation. Finished conversations are purged from the database after 30 days.

§Arguments
  • request - No description provided.
  • name - Required. Resource identifier of the conversation to close. Format: projects//locations//conversations/.
source

pub fn locations_conversations_create( &self, request: GoogleCloudDialogflowV2Conversation, parent: &str ) -> ProjectLocationConversationCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a new conversation. Conversations are auto-completed after 24 hours. Conversation Lifecycle: There are two stages during a conversation: Automated Agent Stage and Assist Stage. For Automated Agent Stage, there will be a dialogflow agent responding to user queries. For Assist Stage, there’s no dialogflow agent responding to user queries. But we will provide suggestions which are generated from conversation. If Conversation.conversation_profile is configured for a dialogflow agent, conversation will start from Automated Agent Stage, otherwise, it will start from Assist Stage. And during Automated Agent Stage, once an Intent with Intent.live_agent_handoff is triggered, conversation will transfer to Assist Stage.

§Arguments
  • request - No description provided.
  • parent - Required. Resource identifier of the project creating the conversation. Format: projects//locations/.
source

pub fn locations_conversations_get( &self, name: &str ) -> ProjectLocationConversationGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specific conversation.

§Arguments
  • name - Required. The name of the conversation. Format: projects//locations//conversations/.
source

pub fn locations_conversations_list( &self, parent: &str ) -> ProjectLocationConversationListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all conversations in the specified project.

§Arguments
  • parent - Required. The project from which to list all conversation. Format: projects//locations/.
source

pub fn locations_knowledge_bases_documents_create( &self, request: GoogleCloudDialogflowV2Document, parent: &str ) -> ProjectLocationKnowledgeBaseDocumentCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a new document. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: Document

§Arguments
  • request - No description provided.
  • parent - Required. The knowledge base to create a document for. Format: projects//locations//knowledgeBases/.
source

pub fn locations_knowledge_bases_documents_delete( &self, name: &str ) -> ProjectLocationKnowledgeBaseDocumentDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified document. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: An Empty message

§Arguments
  • name - Required. The name of the document to delete. Format: projects//locations//knowledgeBases//documents/.
source

pub fn locations_knowledge_bases_documents_export( &self, request: GoogleCloudDialogflowV2ExportDocumentRequest, name: &str ) -> ProjectLocationKnowledgeBaseDocumentExportCall<'a, S>

Create a builder to help you perform the following task:

Exports a smart messaging candidate document into the specified destination. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: Document

§Arguments
  • request - No description provided.
  • name - Required. The name of the document to export. Format: projects//locations//knowledgeBases//documents/.
source

pub fn locations_knowledge_bases_documents_get( &self, name: &str ) -> ProjectLocationKnowledgeBaseDocumentGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified document.

§Arguments
  • name - Required. The name of the document to retrieve. Format projects//locations//knowledgeBases//documents/.
source

pub fn locations_knowledge_bases_documents_import( &self, request: GoogleCloudDialogflowV2ImportDocumentsRequest, parent: &str ) -> ProjectLocationKnowledgeBaseDocumentImportCall<'a, S>

Create a builder to help you perform the following task:

Creates documents by importing data from external sources. Dialogflow supports up to 350 documents in each request. If you try to import more, Dialogflow will return an error. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: ImportDocumentsResponse

§Arguments
  • request - No description provided.
  • parent - Required. The knowledge base to import documents into. Format: projects//locations//knowledgeBases/.
source

pub fn locations_knowledge_bases_documents_list( &self, parent: &str ) -> ProjectLocationKnowledgeBaseDocumentListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all documents of the knowledge base.

§Arguments
  • parent - Required. The knowledge base to list all documents for. Format: projects//locations//knowledgeBases/.
source

pub fn locations_knowledge_bases_documents_patch( &self, request: GoogleCloudDialogflowV2Document, name: &str ) -> ProjectLocationKnowledgeBaseDocumentPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified document. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: Document

§Arguments
  • request - No description provided.
  • name - Optional. The document resource name. The name must be empty when creating a document. Format: projects//locations//knowledgeBases//documents/.
source

pub fn locations_knowledge_bases_documents_reload( &self, request: GoogleCloudDialogflowV2ReloadDocumentRequest, name: &str ) -> ProjectLocationKnowledgeBaseDocumentReloadCall<'a, S>

Create a builder to help you perform the following task:

Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: KnowledgeOperationMetadata - response: Document Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§Arguments
  • request - No description provided.
  • name - Required. The name of the document to reload. Format: projects//locations//knowledgeBases//documents/
source

pub fn locations_knowledge_bases_create( &self, request: GoogleCloudDialogflowV2KnowledgeBase, parent: &str ) -> ProjectLocationKnowledgeBaseCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a knowledge base.

§Arguments
  • request - No description provided.
  • parent - Required. The project to create a knowledge base for. Format: projects//locations/.
source

pub fn locations_knowledge_bases_delete( &self, name: &str ) -> ProjectLocationKnowledgeBaseDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified knowledge base.

§Arguments
  • name - Required. The name of the knowledge base to delete. Format: projects//locations//knowledgeBases/.
source

pub fn locations_knowledge_bases_get( &self, name: &str ) -> ProjectLocationKnowledgeBaseGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified knowledge base.

§Arguments
  • name - Required. The name of the knowledge base to retrieve. Format projects//locations//knowledgeBases/.
source

pub fn locations_knowledge_bases_list( &self, parent: &str ) -> ProjectLocationKnowledgeBaseListCall<'a, S>

Create a builder to help you perform the following task:

Returns the list of all knowledge bases of the specified agent.

§Arguments
  • parent - Required. The project to list of knowledge bases for. Format: projects//locations/.
source

pub fn locations_knowledge_bases_patch( &self, request: GoogleCloudDialogflowV2KnowledgeBase, name: &str ) -> ProjectLocationKnowledgeBasePatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the specified knowledge base.

§Arguments
  • request - No description provided.
  • name - The knowledge base resource name. The name must be empty when creating a knowledge base. Format: projects//locations//knowledgeBases/.
source

pub fn locations_operations_cancel( &self, name: &str ) -> ProjectLocationOperationCancelCall<'a, S>

Create a builder to help you perform the following task:

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn’t support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

§Arguments
  • name - The name of the operation resource to be cancelled.
source

pub fn locations_operations_get( &self, name: &str ) -> ProjectLocationOperationGetCall<'a, S>

Create a builder to help you perform the following task:

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

§Arguments
  • name - The name of the operation resource.
source

pub fn locations_operations_list( &self, name: &str ) -> ProjectLocationOperationListCall<'a, S>

Create a builder to help you perform the following task:

Lists operations that match the specified filter in the request. If the server doesn’t support this method, it returns UNIMPLEMENTED.

§Arguments
  • name - The name of the operation’s parent resource.
source

pub fn locations_suggestions_generate_stateless_summary( &self, request: GoogleCloudDialogflowV2GenerateStatelessSummaryRequest, parent: &str ) -> ProjectLocationSuggestionGenerateStatelessSummaryCall<'a, S>

Create a builder to help you perform the following task:

Generates and returns a summary for a conversation that does not have a resource created for it.

§Arguments
  • request - No description provided.
  • parent - Required. The parent resource to charge for the Summary’s generation. Format: projects//locations/.
source

pub fn locations_suggestions_search_knowledge( &self, request: GoogleCloudDialogflowV2SearchKnowledgeRequest, parent: &str ) -> ProjectLocationSuggestionSearchKnowledgeCall<'a, S>

Create a builder to help you perform the following task:

Get answers for the given query based on knowledge documents.

§Arguments
  • request - No description provided.
  • parent - The parent resource contains the conversation profile Format: ‘projects/’ or projects//locations/.
source

pub fn locations_delete_agent( &self, parent: &str ) -> ProjectLocationDeleteAgentCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified agent.

§Arguments
  • parent - Required. The project that the agent to delete is associated with. Format: projects/.
source

pub fn locations_get(&self, name: &str) -> ProjectLocationGetCall<'a, S>

Create a builder to help you perform the following task:

Gets information about a location.

§Arguments
  • name - Resource name for the location.
source

pub fn locations_get_agent( &self, parent: &str ) -> ProjectLocationGetAgentCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified agent.

§Arguments
  • parent - Required. The project that the agent to fetch is associated with. Format: projects/.
source

pub fn locations_list(&self, name: &str) -> ProjectLocationListCall<'a, S>

Create a builder to help you perform the following task:

Lists information about the supported locations for this service.

§Arguments
  • name - The resource that owns the locations collection, if applicable.
source

pub fn locations_set_agent( &self, request: GoogleCloudDialogflowV2Agent, parent: &str ) -> ProjectLocationSetAgentCall<'a, S>

Create a builder to help you perform the following task:

Creates/updates the specified agent. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The project of this agent. Format: projects/.
source

pub fn operations_cancel(&self, name: &str) -> ProjectOperationCancelCall<'a, S>

Create a builder to help you perform the following task:

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn’t support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

§Arguments
  • name - The name of the operation resource to be cancelled.
source

pub fn operations_get(&self, name: &str) -> ProjectOperationGetCall<'a, S>

Create a builder to help you perform the following task:

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

§Arguments
  • name - The name of the operation resource.
source

pub fn operations_list(&self, name: &str) -> ProjectOperationListCall<'a, S>

Create a builder to help you perform the following task:

Lists operations that match the specified filter in the request. If the server doesn’t support this method, it returns UNIMPLEMENTED.

§Arguments
  • name - The name of the operation’s parent resource.
source

pub fn suggestions_generate_stateless_summary( &self, request: GoogleCloudDialogflowV2GenerateStatelessSummaryRequest, parent: &str ) -> ProjectSuggestionGenerateStatelessSummaryCall<'a, S>

Create a builder to help you perform the following task:

Generates and returns a summary for a conversation that does not have a resource created for it.

§Arguments
  • request - No description provided.
  • parent - Required. The parent resource to charge for the Summary’s generation. Format: projects//locations/.
source

pub fn suggestions_search_knowledge( &self, request: GoogleCloudDialogflowV2SearchKnowledgeRequest, parent: &str ) -> ProjectSuggestionSearchKnowledgeCall<'a, S>

Create a builder to help you perform the following task:

Get answers for the given query based on knowledge documents.

§Arguments
  • request - No description provided.
  • parent - The parent resource contains the conversation profile Format: ‘projects/’ or projects//locations/.
source

pub fn delete_agent(&self, parent: &str) -> ProjectDeleteAgentCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified agent.

§Arguments
  • parent - Required. The project that the agent to delete is associated with. Format: projects/.
source

pub fn get_agent(&self, parent: &str) -> ProjectGetAgentCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified agent.

§Arguments
  • parent - Required. The project that the agent to fetch is associated with. Format: projects/.
source

pub fn set_agent( &self, request: GoogleCloudDialogflowV2Agent, parent: &str ) -> ProjectSetAgentCall<'a, S>

Create a builder to help you perform the following task:

Creates/updates the specified agent. Note: You should always train an agent prior to sending it queries. See the training documentation.

§Arguments
  • request - No description provided.
  • parent - Required. The project of this agent. Format: projects/.

Trait Implementations§

source§

impl<'a, S> MethodsBuilder for ProjectMethods<'a, S>

Auto Trait Implementations§

§

impl<'a, S> !RefUnwindSafe for ProjectMethods<'a, S>

§

impl<'a, S> Send for ProjectMethods<'a, S>
where S: Sync,

§

impl<'a, S> Sync for ProjectMethods<'a, S>
where S: Sync,

§

impl<'a, S> Unpin for ProjectMethods<'a, S>

§

impl<'a, S> !UnwindSafe for ProjectMethods<'a, S>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more