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_beta1 as dialogflow2_beta1;
 
use std::default::Default;
use dialogflow2_beta1::{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_get(...)`, `answer_records_list(...)`, `answer_records_patch(...)`, `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_batch_create(...)`, `conversations_messages_list(...)`, `conversations_participants_analyze_content(...)`, `conversations_participants_create(...)`, `conversations_participants_get(...)`, `conversations_participants_list(...)`, `conversations_participants_patch(...)`, `conversations_participants_suggestions_compile(...)`, `conversations_participants_suggestions_list(...)`, `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_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_get(...)`, `locations_answer_records_list(...)`, `locations_answer_records_patch(...)`, `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_batch_create(...)`, `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_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: GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest, 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. Supported formats: - projects//agent/entityTypes/ - projects//locations//agent/entityTypes/
source

pub fn agent_entity_types_entities_batch_delete( &self, request: GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest, 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. Supported formats: - projects//agent/entityTypes/ - projects//locations//agent/entityTypes/
source

pub fn agent_entity_types_entities_batch_update( &self, request: GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest, 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. Note: You should always train an agent prior to sending it queries. See the training documentation. 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

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

pub fn agent_entity_types_batch_delete( &self, request: GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest, 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. Supported formats: - projects//agent, - projects//locations//agent.
source

pub fn agent_entity_types_batch_update( &self, request: GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest, 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. Supported formats: - projects//agent - projects//locations//agent
source

pub fn agent_entity_types_create( &self, request: GoogleCloudDialogflowV2beta1EntityType, 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. Supported formats: - projects//agent - projects//locations//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. Supported formats: - projects//agent/entityTypes/ - projects//locations//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. Supported formats: - projects//agent/entityTypes/ - projects//locations//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. Supported formats: - projects//agent - projects//locations//agent
source

pub fn agent_entity_types_patch( &self, request: GoogleCloudDialogflowV2beta1EntityType, 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. Supported formats: - projects//agent/entityTypes/ - projects//locations//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: GoogleCloudDialogflowV2beta1Context, 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser 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. Supported formats: - projects//agent/sessions//contexts/, - projects//locations//agent/sessions//contexts/, - projects//agent/environments//users//sessions//contexts/, - projects//locations//agent/environments//users//sessions//contexts/, If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions//contexts/, - projects//locations//agent/sessions//contexts/, - projects//agent/environments//users//sessions//contexts/, - projects//locations//agent/environments//users//sessions//contexts/, If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser ID` is not specified, we assume default ‘-’ user.
source

pub fn agent_environments_users_sessions_contexts_patch( &self, request: GoogleCloudDialogflowV2beta1Context, 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. Supported formats: - projects//agent/sessions//contexts/, - projects//locations//agent/sessions//contexts/, - projects//agent/environments//users//sessions//contexts/, - projects//locations//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: GoogleCloudDialogflowV2beta1SessionEntityType, 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser 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. Supported formats: - projects//agent/sessions//entityTypes/ - projects//locations//agent/sessions//entityTypes/ - projects//agent/environments//users//sessions//entityTypes/ - projects//locations//agent/environments/ /users//sessions//entityTypes/ If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions//entityTypes/ - projects//locations//agent/sessions//entityTypes/ - projects//agent/environments//users//sessions//entityTypes/ - projects//locations//agent/environments/ /users//sessions//entityTypes/ If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser ID` is not specified, we assume default ‘-’ user.
source

pub fn agent_environments_users_sessions_entity_types_patch( &self, request: GoogleCloudDialogflowV2beta1SessionEntityType, 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. Supported formats: - projects//agent/sessions//entityTypes/ - projects//locations//agent/sessions//entityTypes/ - projects//agent/environments//users//sessions//entityTypes/ - projects//locations//agent/environments/ /users//sessions//entityTypes/ If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified we assume default 'draft' environment. IfUser ID` is not specified, we assume default ‘-’ user.
source

pub fn agent_environments_users_sessions_detect_intent( &self, request: GoogleCloudDialogflowV2beta1DetectIntentRequest, 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment ID is not specified, we assume default 'draft' environment (Environment IDmight be referred to as environment name at some places). IfUser IDis not specified, we are using "-". It's up to the API caller to choose an appropriateSession IDandUser Id. They can be a random number or some type of user and session identifiers (preferably hashed). The length of the Session IDandUser 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: GoogleCloudDialogflowV2beta1Environment, 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/
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/
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/
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-draft 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: GoogleCloudDialogflowV2beta1Environment, 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 keeps on 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 version in “draft” environment. WARNING: this will negate all recent changes to draft and can’t be undone. You may want to save the draft to a version before calling this function.

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

pub fn agent_intents_batch_delete( &self, request: GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest, 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. Supported formats: - projects//agent - projects//locations//agent
source

pub fn agent_intents_batch_update( &self, request: GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest, 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. Supported formats: - projects//agent - projects//locations//agent
source

pub fn agent_intents_create( &self, request: GoogleCloudDialogflowV2beta1Intent, 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. Supported formats: - projects//agent - projects//locations//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. Supported formats: - projects//agent/intents/ - projects//locations//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. Supported formats: - projects//agent/intents/ - projects//locations//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: GoogleCloudDialogflowV2beta1Intent, 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. Supported formats: - projects//agent/intents/ - projects//locations//agent/intents/
source

pub fn agent_knowledge_bases_documents_create( &self, request: GoogleCloudDialogflowV2beta1Document, 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 Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§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 Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§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. Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§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. Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§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: GoogleCloudDialogflowV2beta1Document, 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 Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§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: GoogleCloudDialogflowV2beta1ReloadDocumentRequest, 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. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the import_gcs_custom_metadata field is set to true in the request. 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: GoogleCloudDialogflowV2beta1KnowledgeBase, parent: &str ) -> ProjectAgentKnowledgeBaseCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a knowledge base. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

§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. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

§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. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

§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. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

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

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

Create a builder to help you perform the following task:

Updates the specified knowledge base. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

§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: GoogleCloudDialogflowV2beta1Context, 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser 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. Supported formats: - projects//agent/sessions//contexts/, - projects//locations//agent/sessions//contexts/, - projects//agent/environments//users//sessions//contexts/, - projects//locations//agent/environments//users//sessions//contexts/, If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions//contexts/, - projects//locations//agent/sessions//contexts/, - projects//agent/environments//users//sessions//contexts/, - projects//locations//agent/environments//users//sessions//contexts/, If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser ID` is not specified, we assume default ‘-’ user.
source

pub fn agent_sessions_contexts_patch( &self, request: GoogleCloudDialogflowV2beta1Context, 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. Supported formats: - projects//agent/sessions//contexts/, - projects//locations//agent/sessions//contexts/, - projects//agent/environments//users//sessions//contexts/, - projects//locations//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: GoogleCloudDialogflowV2beta1SessionEntityType, 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser 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. Supported formats: - projects//agent/sessions//entityTypes/ - projects//locations//agent/sessions//entityTypes/ - projects//agent/environments//users//sessions//entityTypes/ - projects//locations//agent/environments/ /users//sessions//entityTypes/ If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions//entityTypes/ - projects//locations//agent/sessions//entityTypes/ - projects//agent/environments//users//sessions//entityTypes/ - projects//locations//agent/environments/ /users//sessions//entityTypes/ If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser ID` is not specified, we assume default ‘-’ user.
source

pub fn agent_sessions_entity_types_patch( &self, request: GoogleCloudDialogflowV2beta1SessionEntityType, 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. Supported formats: - projects//agent/sessions//entityTypes/ - projects//locations//agent/sessions//entityTypes/ - projects//agent/environments//users//sessions//entityTypes/ - projects//locations//agent/environments/ /users//sessions//entityTypes/ If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified we assume default 'draft' environment. IfUser ID` is not specified, we assume default ‘-’ user.
source

pub fn agent_sessions_detect_intent( &self, request: GoogleCloudDialogflowV2beta1DetectIntentRequest, 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment ID is not specified, we assume default 'draft' environment (Environment IDmight be referred to as environment name at some places). IfUser IDis not specified, we are using "-". It's up to the API caller to choose an appropriateSession IDandUser Id. They can be a random number or some type of user and session identifiers (preferably hashed). The length of the Session IDandUser 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: GoogleCloudDialogflowV2beta1Version, 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: GoogleCloudDialogflowV2beta1Version, 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: GoogleCloudDialogflowV2beta1ExportAgentRequest, 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/ or projects//locations/.
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. Supported formats: - projects//agent/fulfillment - projects//locations//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/ or projects//locations/.
source

pub fn agent_import( &self, request: GoogleCloudDialogflowV2beta1ImportAgentRequest, 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/ or projects//locations/.
source

pub fn agent_restore( &self, request: GoogleCloudDialogflowV2beta1RestoreAgentRequest, 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/ or projects//locations/.

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/ or projects//locations/.
source

pub fn agent_train( &self, request: GoogleCloudDialogflowV2beta1TrainAgentRequest, 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/ or projects//locations/.
source

pub fn agent_update_fulfillment( &self, request: GoogleCloudDialogflowV2beta1Fulfillment, 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_get( &self, name: &str ) -> ProjectAnswerRecordGetCall<'a, S>

Create a builder to help you perform the following task:

Deprecated. Retrieves a specific answer record.

§Arguments
  • name - Required. The name of the answer record to retrieve. Format: projects//locations//answerRecords/.
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: GoogleCloudDialogflowV2beta1AnswerRecord, 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. Required for AnswerRecords.UpdateAnswerRecord method. Format: projects//locations//answerRecords/.
source

pub fn conversation_profiles_clear_suggestion_feature_config( &self, request: GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest, 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: GoogleCloudDialogflowV2beta1ConversationProfile, 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: GoogleCloudDialogflowV2beta1ConversationProfile, 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: GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest, 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_batch_create( &self, request: GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest, parent: &str ) -> ProjectConversationMessageBatchCreateCall<'a, S>

Create a builder to help you perform the following task:

Batch ingests messages to conversation. Customers can use this RPC to ingest historical messages to conversation.

§Arguments
  • request - No description provided.
  • parent - Required. Resource identifier of the conversation to create message. Format: projects//locations//conversations/.
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_compile( &self, request: GoogleCloudDialogflowV2beta1CompileSuggestionRequest, parent: &str ) -> ProjectConversationParticipantSuggestionCompileCall<'a, S>

Create a builder to help you perform the following task:

Deprecated. use SuggestArticles and SuggestFaqAnswers instead. Gets suggestions for a participant based on specific historical messages. Note that ListSuggestions will only list the auto-generated suggestions, while CompileSuggestion will try to compile suggestion based on the provided conversation context in the real time.

§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_list( &self, parent: &str ) -> ProjectConversationParticipantSuggestionListCall<'a, S>

Create a builder to help you perform the following task:

Deprecated: Use inline suggestion, event based suggestion or Suggestion* API instead. See HumanAgentAssistantConfig.name for more details. Removal Date: 2020-09-01. Retrieves suggestions for live agents. This method should be used by human agent client software to fetch auto generated suggestions in real-time, while the conversation with an end user is in progress. The functionality is implemented in terms of the list pagination design pattern. The client app should use the next_page_token field to fetch the next batch of suggestions. suggestions are sorted by create_time in descending order. To fetch latest suggestion, just set page_size to 1. To fetch new suggestions without duplication, send request with filter create_time_epoch_microseconds > [first item's create_time of previous request] and empty page_token.

§Arguments
  • parent - Required. The name of the participant to fetch suggestions for. Format: projects//locations//conversations//participants/.
source

pub fn conversations_participants_suggestions_suggest_articles( &self, request: GoogleCloudDialogflowV2beta1SuggestArticlesRequest, 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. Note that ListSuggestions will only list the auto-generated suggestions, while CompileSuggestion will try to compile suggestion based on the provided conversation context in the real time.

§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: GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest, 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: GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest, 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: GoogleCloudDialogflowV2beta1AnalyzeContentRequest, 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: GoogleCloudDialogflowV2beta1Participant, 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: GoogleCloudDialogflowV2beta1Participant, 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: GoogleCloudDialogflowV2beta1SearchKnowledgeRequest, 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: GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest, conversation: &str ) -> ProjectConversationSuggestionSuggestConversationSummaryCall<'a, S>

Create a builder to help you perform the following task:

Suggest 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: GoogleCloudDialogflowV2beta1CompleteConversationRequest, 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: GoogleCloudDialogflowV2beta1Conversation, 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: GoogleCloudDialogflowV2beta1Document, 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 Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§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 Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§Arguments
  • name - Required. The name of the document to delete. 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. Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

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

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

Create a builder to help you perform the following task:

Create 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. Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

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

pub fn knowledge_bases_documents_patch( &self, request: GoogleCloudDialogflowV2beta1Document, 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 Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§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: GoogleCloudDialogflowV2beta1ReloadDocumentRequest, 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. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the import_gcs_custom_metadata field is set to true in the request. 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: GoogleCloudDialogflowV2beta1KnowledgeBase, parent: &str ) -> ProjectKnowledgeBaseCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a knowledge base. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

§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. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

§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. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

§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. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

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

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

Create a builder to help you perform the following task:

Updates the specified knowledge base. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

§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: GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest, 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. Supported formats: - projects//agent/entityTypes/ - projects//locations//agent/entityTypes/
source

pub fn locations_agent_entity_types_entities_batch_delete( &self, request: GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest, 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. Supported formats: - projects//agent/entityTypes/ - projects//locations//agent/entityTypes/
source

pub fn locations_agent_entity_types_entities_batch_update( &self, request: GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest, 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. Note: You should always train an agent prior to sending it queries. See the training documentation. 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

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

pub fn locations_agent_entity_types_batch_delete( &self, request: GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest, 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. Supported formats: - projects//agent, - projects//locations//agent.
source

pub fn locations_agent_entity_types_batch_update( &self, request: GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest, 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. Supported formats: - projects//agent - projects//locations//agent
source

pub fn locations_agent_entity_types_create( &self, request: GoogleCloudDialogflowV2beta1EntityType, 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. Supported formats: - projects//agent - projects//locations//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. Supported formats: - projects//agent/entityTypes/ - projects//locations//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. Supported formats: - projects//agent/entityTypes/ - projects//locations//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. Supported formats: - projects//agent - projects//locations//agent
source

pub fn locations_agent_entity_types_patch( &self, request: GoogleCloudDialogflowV2beta1EntityType, 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. Supported formats: - projects//agent/entityTypes/ - projects//locations//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: GoogleCloudDialogflowV2beta1Context, 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser 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. Supported formats: - projects//agent/sessions//contexts/, - projects//locations//agent/sessions//contexts/, - projects//agent/environments//users//sessions//contexts/, - projects//locations//agent/environments//users//sessions//contexts/, If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions//contexts/, - projects//locations//agent/sessions//contexts/, - projects//agent/environments//users//sessions//contexts/, - projects//locations//agent/environments//users//sessions//contexts/, If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser ID` is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_environments_users_sessions_contexts_patch( &self, request: GoogleCloudDialogflowV2beta1Context, 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. Supported formats: - projects//agent/sessions//contexts/, - projects//locations//agent/sessions//contexts/, - projects//agent/environments//users//sessions//contexts/, - projects//locations//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: GoogleCloudDialogflowV2beta1SessionEntityType, 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser 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. Supported formats: - projects//agent/sessions//entityTypes/ - projects//locations//agent/sessions//entityTypes/ - projects//agent/environments//users//sessions//entityTypes/ - projects//locations//agent/environments/ /users//sessions//entityTypes/ If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions//entityTypes/ - projects//locations//agent/sessions//entityTypes/ - projects//agent/environments//users//sessions//entityTypes/ - projects//locations//agent/environments/ /users//sessions//entityTypes/ If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser ID` is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_environments_users_sessions_entity_types_patch( &self, request: GoogleCloudDialogflowV2beta1SessionEntityType, 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. Supported formats: - projects//agent/sessions//entityTypes/ - projects//locations//agent/sessions//entityTypes/ - projects//agent/environments//users//sessions//entityTypes/ - projects//locations//agent/environments/ /users//sessions//entityTypes/ If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified we assume default 'draft' environment. IfUser ID` is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_environments_users_sessions_detect_intent( &self, request: GoogleCloudDialogflowV2beta1DetectIntentRequest, 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment ID is not specified, we assume default 'draft' environment (Environment IDmight be referred to as environment name at some places). IfUser IDis not specified, we are using "-". It's up to the API caller to choose an appropriateSession IDandUser Id. They can be a random number or some type of user and session identifiers (preferably hashed). The length of the Session IDandUser 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: GoogleCloudDialogflowV2beta1Environment, 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/
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/
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/
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-draft 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: GoogleCloudDialogflowV2beta1Environment, 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 keeps on 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 version in “draft” environment. WARNING: this will negate all recent changes to draft and can’t be undone. You may want to save the draft to a version before calling this function.

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

pub fn locations_agent_intents_batch_delete( &self, request: GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest, 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. Supported formats: - projects//agent - projects//locations//agent
source

pub fn locations_agent_intents_batch_update( &self, request: GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest, 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. Supported formats: - projects//agent - projects//locations//agent
source

pub fn locations_agent_intents_create( &self, request: GoogleCloudDialogflowV2beta1Intent, 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. Supported formats: - projects//agent - projects//locations//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. Supported formats: - projects//agent/intents/ - projects//locations//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. Supported formats: - projects//agent/intents/ - projects//locations//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: GoogleCloudDialogflowV2beta1Intent, 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. Supported formats: - projects//agent/intents/ - projects//locations//agent/intents/
source

pub fn locations_agent_sessions_contexts_create( &self, request: GoogleCloudDialogflowV2beta1Context, 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser 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. Supported formats: - projects//agent/sessions//contexts/, - projects//locations//agent/sessions//contexts/, - projects//agent/environments//users//sessions//contexts/, - projects//locations//agent/environments//users//sessions//contexts/, If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions//contexts/, - projects//locations//agent/sessions//contexts/, - projects//agent/environments//users//sessions//contexts/, - projects//locations//agent/environments//users//sessions//contexts/, If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser ID` is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_sessions_contexts_patch( &self, request: GoogleCloudDialogflowV2beta1Context, 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. Supported formats: - projects//agent/sessions//contexts/, - projects//locations//agent/sessions//contexts/, - projects//agent/environments//users//sessions//contexts/, - projects//locations//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: GoogleCloudDialogflowV2beta1SessionEntityType, 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser 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. Supported formats: - projects//agent/sessions//entityTypes/ - projects//locations//agent/sessions//entityTypes/ - projects//agent/environments//users//sessions//entityTypes/ - projects//locations//agent/environments/ /users//sessions//entityTypes/ If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions//entityTypes/ - projects//locations//agent/sessions//entityTypes/ - projects//agent/environments//users//sessions//entityTypes/ - projects//locations//agent/environments/ /users//sessions//entityTypes/ If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified, we assume default 'draft' environment. IfUser ID` is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_sessions_entity_types_patch( &self, request: GoogleCloudDialogflowV2beta1SessionEntityType, 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. Supported formats: - projects//agent/sessions//entityTypes/ - projects//locations//agent/sessions//entityTypes/ - projects//agent/environments//users//sessions//entityTypes/ - projects//locations//agent/environments/ /users//sessions//entityTypes/ If Location ID is not specified we assume default ‘us’ location. 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment IDis not specified we assume default 'draft' environment. IfUser ID` is not specified, we assume default ‘-’ user.
source

pub fn locations_agent_sessions_detect_intent( &self, request: GoogleCloudDialogflowV2beta1DetectIntentRequest, 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. Supported formats: - projects//agent/sessions/, - projects//locations//agent/sessions/, - projects//agent/environments//users//sessions/, - projects//locations//agent/environments//users//sessions/, If Location IDis not specified we assume default 'us' location. IfEnvironment ID is not specified, we assume default 'draft' environment (Environment IDmight be referred to as environment name at some places). IfUser IDis not specified, we are using "-". It's up to the API caller to choose an appropriateSession IDandUser Id. They can be a random number or some type of user and session identifiers (preferably hashed). The length of the Session IDandUser 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: GoogleCloudDialogflowV2beta1Version, 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: GoogleCloudDialogflowV2beta1Version, 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: GoogleCloudDialogflowV2beta1ExportAgentRequest, 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/ or projects//locations/.
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. Supported formats: - projects//agent/fulfillment - projects//locations//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/ or projects//locations/.
source

pub fn locations_agent_import( &self, request: GoogleCloudDialogflowV2beta1ImportAgentRequest, 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/ or projects//locations/.
source

pub fn locations_agent_restore( &self, request: GoogleCloudDialogflowV2beta1RestoreAgentRequest, 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/ or projects//locations/.

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/ or projects//locations/.
source

pub fn locations_agent_train( &self, request: GoogleCloudDialogflowV2beta1TrainAgentRequest, 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/ or projects//locations/.
source

pub fn locations_agent_update_fulfillment( &self, request: GoogleCloudDialogflowV2beta1Fulfillment, 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_get( &self, name: &str ) -> ProjectLocationAnswerRecordGetCall<'a, S>

Create a builder to help you perform the following task:

Deprecated. Retrieves a specific answer record.

§Arguments
  • name - Required. The name of the answer record to retrieve. Format: projects//locations//answerRecords/.
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: GoogleCloudDialogflowV2beta1AnswerRecord, 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. Required for AnswerRecords.UpdateAnswerRecord method. Format: projects//locations//answerRecords/.
source

pub fn locations_conversation_profiles_clear_suggestion_feature_config( &self, request: GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest, 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: GoogleCloudDialogflowV2beta1ConversationProfile, 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: GoogleCloudDialogflowV2beta1ConversationProfile, 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: GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest, 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_batch_create( &self, request: GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest, parent: &str ) -> ProjectLocationConversationMessageBatchCreateCall<'a, S>

Create a builder to help you perform the following task:

Batch ingests messages to conversation. Customers can use this RPC to ingest historical messages to conversation.

§Arguments
  • request - No description provided.
  • parent - Required. Resource identifier of the conversation to create message. Format: projects//locations//conversations/.
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: GoogleCloudDialogflowV2beta1SuggestArticlesRequest, 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. Note that ListSuggestions will only list the auto-generated suggestions, while CompileSuggestion will try to compile suggestion based on the provided conversation context in the real time.

§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: GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest, 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: GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest, 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: GoogleCloudDialogflowV2beta1AnalyzeContentRequest, 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: GoogleCloudDialogflowV2beta1Participant, 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: GoogleCloudDialogflowV2beta1Participant, 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: GoogleCloudDialogflowV2beta1SearchKnowledgeRequest, 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: GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest, conversation: &str ) -> ProjectLocationConversationSuggestionSuggestConversationSummaryCall<'a, S>

Create a builder to help you perform the following task:

Suggest 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: GoogleCloudDialogflowV2beta1CompleteConversationRequest, 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: GoogleCloudDialogflowV2beta1Conversation, 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: GoogleCloudDialogflowV2beta1Document, 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 Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§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 Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§Arguments
  • name - Required. The name of the document to delete. 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. Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§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: GoogleCloudDialogflowV2beta1ImportDocumentsRequest, parent: &str ) -> ProjectLocationKnowledgeBaseDocumentImportCall<'a, S>

Create a builder to help you perform the following task:

Create 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. Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§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: GoogleCloudDialogflowV2beta1Document, 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 Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

§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: GoogleCloudDialogflowV2beta1ReloadDocumentRequest, 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. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the import_gcs_custom_metadata field is set to true in the request. 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: GoogleCloudDialogflowV2beta1KnowledgeBase, parent: &str ) -> ProjectLocationKnowledgeBaseCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a knowledge base. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

§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. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

§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. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

§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. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

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

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

Create a builder to help you perform the following task:

Updates the specified knowledge base. Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

§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: GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest, 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: GoogleCloudDialogflowV2beta1SearchKnowledgeRequest, 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/ or projects//locations/.
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/ or projects//locations/.
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: GoogleCloudDialogflowV2beta1Agent, 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/ or projects//locations/
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: GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest, 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: GoogleCloudDialogflowV2beta1SearchKnowledgeRequest, 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/ or projects//locations/.
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/ or projects//locations/.
source

pub fn set_agent( &self, request: GoogleCloudDialogflowV2beta1Agent, 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/ or projects//locations/

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