[][src]Struct google_dialogflow2::ProjectMethods

pub struct ProjectMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

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 yup_oauth2 as oauth2;
extern crate google_dialogflow2 as dialogflow2;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use dialogflow2::Dialogflow;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
                              <MemoryStorage as Default>::default(), None);
let mut hub = Dialogflow::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), 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_list(...)`, `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_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(...)`, `delete_agent(...)`, `get_agent(...)`, `locations_operations_cancel(...)`, `locations_operations_get(...)`, `locations_operations_list(...)`, `operations_cancel(...)`, `operations_get(...)`, `operations_list(...)` and `set_agent(...)`
// to build up your call.
let rb = hub.projects();

Implementations

impl<'a, C, A> ProjectMethods<'a, C, A>[src]

pub fn agent_sessions_entity_types_list(
    &self,
    parent: &str
) -> ProjectAgentSessionEntityTypeListCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

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

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Arguments

  • parent - Required. The session to list all session entity types from. Format: projects/<Project ID>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/ sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

pub fn agent_environments_users_sessions_contexts_delete(
    &self,
    name: &str
) -> ProjectAgentEnvironmentUserSessionContextDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes the specified context.

Arguments

  • name - Required. The name of the context to delete. Format: projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/contexts/<Context ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

pub fn agent_sessions_entity_types_patch(
    &self,
    request: GoogleCloudDialogflowV2SessionEntityType,
    name: &str
) -> ProjectAgentSessionEntityTypePatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Arguments

  • request - No description provided.
  • name - Required. The unique identifier of this session entity type. Format: projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user. <Entity Type Display Name> must be the display name of an existing entity type in the same agent that will be overridden or supplemented.

pub fn agent_environments_users_sessions_entity_types_delete(
    &self,
    name: &str
) -> ProjectAgentEnvironmentUserSessionEntityTypeDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Arguments

  • name - Required. The name of the entity type to delete. Format: projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

pub fn agent_environments_users_sessions_contexts_get(
    &self,
    name: &str
) -> ProjectAgentEnvironmentUserSessionContextGetCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Retrieves the specified context.

Arguments

  • name - Required. The name of the context. Format: projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/contexts/<Context ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

pub fn locations_operations_get(
    &self,
    name: &str
) -> ProjectLocationOperationGetCall<'a, C, A>
[src]

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.

pub fn agent_entity_types_batch_update(
    &self,
    request: GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest,
    parent: &str
) -> ProjectAgentEntityTypeBatchUpdateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates/Creates multiple entity types in the specified agent.

Operation <response: BatchUpdateEntityTypesResponse>

Arguments

  • request - No description provided.
  • parent - Required. The name of the agent to update or create entity types in. Format: projects/<Project ID>/agent.

pub fn agent_sessions_contexts_list(
    &self,
    parent: &str
) -> ProjectAgentSessionContextListCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Returns the list of all contexts in the specified session.

Arguments

  • parent - Required. The session to list all contexts from. Format: projects/<Project ID>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

pub fn agent_train(
    &self,
    request: GoogleCloudDialogflowV2TrainAgentRequest,
    parent: &str
) -> ProjectAgentTrainCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Trains the specified agent.

Operation <response: google.protobuf.Empty>

Arguments

  • request - No description provided.
  • parent - Required. The project that the agent to train is associated with. Format: projects/<Project ID>.

pub fn agent_intents_batch_update(
    &self,
    request: GoogleCloudDialogflowV2BatchUpdateIntentsRequest,
    parent: &str
) -> ProjectAgentIntentBatchUpdateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates/Creates multiple intents in the specified agent.

Operation <response: BatchUpdateIntentsResponse>

Arguments

  • request - No description provided.
  • parent - Required. The name of the agent to update or create intents in. Format: projects/<Project ID>/agent.

pub fn set_agent(
    &self,
    request: GoogleCloudDialogflowV2Agent,
    parent: &str
) -> ProjectSetAgentCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates/updates the specified agent.

Arguments

  • request - No description provided.
  • parent - Required. The project of this agent. Format: projects/<Project ID>.

pub fn agent_get_validation_result(
    &self,
    parent: &str
) -> ProjectAgentGetValidationResultCall<'a, C, A>
[src]

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/<Project ID>.

pub fn agent_restore(
    &self,
    request: GoogleCloudDialogflowV2RestoreAgentRequest,
    parent: &str
) -> ProjectAgentRestoreCall<'a, C, A>
[src]

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.

Operation <response: google.protobuf.Empty> An operation which tracks when restoring is complete. It only tracks when the draft agent is updated not when it is done training.

Arguments

  • request - No description provided.
  • parent - Required. The project that the agent to restore is associated with. Format: projects/<Project ID>.

pub fn agent_sessions_detect_intent(
    &self,
    request: GoogleCloudDialogflowV2DetectIntentRequest,
    session: &str
) -> ProjectAgentSessionDetectIntentCall<'a, C, A>
[src]

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.

Arguments

  • request - No description provided.
  • session - Required. The name of the session this query is sent to. Format: projects/<Project ID>/agent/sessions/<Session ID>, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we are using "-". It's up to the API caller to choose an appropriate Session ID and User Id. They can be a random number or some type of user and session identifiers (preferably hashed). The length of the Session ID and User ID must not exceed 36 characters.

pub fn agent_environments_users_sessions_contexts_patch(
    &self,
    request: GoogleCloudDialogflowV2Context,
    name: &str
) -> ProjectAgentEnvironmentUserSessionContextPatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates the specified context.

Arguments

  • request - No description provided.
  • name - Required. The unique identifier of the context. Format: projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/contexts/<Context ID>. 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

pub fn get_agent(&self, parent: &str) -> ProjectGetAgentCall<'a, C, A>[src]

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/<Project ID>.

pub fn agent_environments_users_sessions_entity_types_patch(
    &self,
    request: GoogleCloudDialogflowV2SessionEntityType,
    name: &str
) -> ProjectAgentEnvironmentUserSessionEntityTypePatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Arguments

  • request - No description provided.
  • name - Required. The unique identifier of this session entity type. Format: projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user. <Entity Type Display Name> must be the display name of an existing entity type in the same agent that will be overridden or supplemented.

pub fn agent_entity_types_batch_delete(
    &self,
    request: GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest,
    parent: &str
) -> ProjectAgentEntityTypeBatchDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes entity types in the specified agent.

Operation <response: google.protobuf.Empty>

Arguments

  • request - No description provided.
  • parent - Required. The name of the agent to delete all entities types for. Format: projects/<Project ID>/agent.

pub fn agent_get_fulfillment(
    &self,
    name: &str
) -> ProjectAgentGetFulfillmentCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Retrieves the fulfillment.

Arguments

  • name - Required. The name of the fulfillment. Format: projects/<Project ID>/agent/fulfillment.

pub fn locations_operations_list(
    &self,
    name: &str
) -> ProjectLocationOperationListCall<'a, C, A>
[src]

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.

NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.

Arguments

  • name - The name of the operation's parent resource.

pub fn agent_intents_list(
    &self,
    parent: &str
) -> ProjectAgentIntentListCall<'a, C, A>
[src]

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/<Project ID>/agent.

pub fn agent_entity_types_entities_batch_update(
    &self,
    request: GoogleCloudDialogflowV2BatchUpdateEntitiesRequest,
    parent: &str
) -> ProjectAgentEntityTypeEntityBatchUpdateCall<'a, C, A>
[src]

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.

Operation <response: google.protobuf.Empty>

Arguments

  • request - No description provided.
  • parent - Required. The name of the entity type to update or create entities in. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>.

pub fn agent_sessions_entity_types_create(
    &self,
    request: GoogleCloudDialogflowV2SessionEntityType,
    parent: &str
) -> ProjectAgentSessionEntityTypeCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates a session entity type.

If the specified session entity type already exists, overrides the session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Arguments

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

pub fn operations_cancel(
    &self,
    name: &str
) -> ProjectOperationCancelCall<'a, C, A>
[src]

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.

pub fn agent_environments_users_sessions_delete_contexts(
    &self,
    parent: &str
) -> ProjectAgentEnvironmentUserSessionDeleteContextCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes all active contexts in the specified session.

Arguments

  • parent - Required. The name of the session to delete all contexts from. Format: projects/<Project ID>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>. If Environment ID is not specified we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

pub fn agent_entity_types_entities_batch_create(
    &self,
    request: GoogleCloudDialogflowV2BatchCreateEntitiesRequest,
    parent: &str
) -> ProjectAgentEntityTypeEntityBatchCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates multiple new entities in the specified entity type.

Operation <response: google.protobuf.Empty>

Arguments

  • request - No description provided.
  • parent - Required. The name of the entity type to create entities in. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>.

pub fn agent_intents_patch(
    &self,
    request: GoogleCloudDialogflowV2Intent,
    name: &str
) -> ProjectAgentIntentPatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates the specified intent.

Arguments

  • request - No description provided.
  • name - Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: projects/<Project ID>/agent/intents/<Intent ID>.

pub fn agent_environments_users_sessions_entity_types_get(
    &self,
    name: &str
) -> ProjectAgentEnvironmentUserSessionEntityTypeGetCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Retrieves the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Arguments

  • name - Required. The name of the session entity type. Format: projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

pub fn agent_intents_batch_delete(
    &self,
    request: GoogleCloudDialogflowV2BatchDeleteIntentsRequest,
    parent: &str
) -> ProjectAgentIntentBatchDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes intents in the specified agent.

Operation <response: google.protobuf.Empty>

Arguments

  • request - No description provided.
  • parent - Required. The name of the agent to delete all entities types for. Format: projects/<Project ID>/agent.

pub fn agent_environments_users_sessions_entity_types_create(
    &self,
    request: GoogleCloudDialogflowV2SessionEntityType,
    parent: &str
) -> ProjectAgentEnvironmentUserSessionEntityTypeCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates a session entity type.

If the specified session entity type already exists, overrides the session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Arguments

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

pub fn agent_sessions_contexts_get(
    &self,
    name: &str
) -> ProjectAgentSessionContextGetCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Retrieves the specified context.

Arguments

  • name - Required. The name of the context. Format: projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/contexts/<Context ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

pub fn agent_environments_users_sessions_entity_types_list(
    &self,
    parent: &str
) -> ProjectAgentEnvironmentUserSessionEntityTypeListCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

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

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Arguments

  • parent - Required. The session to list all session entity types from. Format: projects/<Project ID>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/ sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

pub fn agent_environments_users_sessions_detect_intent(
    &self,
    request: GoogleCloudDialogflowV2DetectIntentRequest,
    session: &str
) -> ProjectAgentEnvironmentUserSessionDetectIntentCall<'a, C, A>
[src]

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.

Arguments

  • request - No description provided.
  • session - Required. The name of the session this query is sent to. Format: projects/<Project ID>/agent/sessions/<Session ID>, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we are using "-". It's up to the API caller to choose an appropriate Session ID and User Id. They can be a random number or some type of user and session identifiers (preferably hashed). The length of the Session ID and User ID must not exceed 36 characters.

pub fn agent_environments_users_sessions_contexts_create(
    &self,
    request: GoogleCloudDialogflowV2Context,
    parent: &str
) -> ProjectAgentEnvironmentUserSessionContextCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates a context.

If the specified context already exists, overrides the context.

Arguments

  • request - No description provided.
  • parent - Required. The session to create a context for. Format: projects/<Project ID>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

pub fn agent_entity_types_patch(
    &self,
    request: GoogleCloudDialogflowV2EntityType,
    name: &str
) -> ProjectAgentEntityTypePatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates the specified entity type.

Arguments

  • request - No description provided.
  • name - The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>.

pub fn agent_environments_users_sessions_contexts_list(
    &self,
    parent: &str
) -> ProjectAgentEnvironmentUserSessionContextListCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Returns the list of all contexts in the specified session.

Arguments

  • parent - Required. The session to list all contexts from. Format: projects/<Project ID>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

pub fn agent_entity_types_delete(
    &self,
    name: &str
) -> ProjectAgentEntityTypeDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes the specified entity type.

Arguments

  • name - Required. The name of the entity type to delete. Format: projects/<Project ID>/agent/entityTypes/<EntityType ID>.

pub fn agent_sessions_entity_types_get(
    &self,
    name: &str
) -> ProjectAgentSessionEntityTypeGetCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Retrieves the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Arguments

  • name - Required. The name of the session entity type. Format: projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

pub fn agent_entity_types_create(
    &self,
    request: GoogleCloudDialogflowV2EntityType,
    parent: &str
) -> ProjectAgentEntityTypeCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates an entity type in the specified agent.

Arguments

  • request - No description provided.
  • parent - Required. The agent to create a entity type for. Format: projects/<Project ID>/agent.

pub fn agent_entity_types_get(
    &self,
    name: &str
) -> ProjectAgentEntityTypeGetCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Retrieves the specified entity type.

Arguments

  • name - Required. The name of the entity type. Format: projects/<Project ID>/agent/entityTypes/<EntityType ID>.

pub fn agent_entity_types_entities_batch_delete(
    &self,
    request: GoogleCloudDialogflowV2BatchDeleteEntitiesRequest,
    parent: &str
) -> ProjectAgentEntityTypeEntityBatchDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes entities in the specified entity type.

Operation <response: google.protobuf.Empty>

Arguments

  • request - No description provided.
  • parent - Required. The name of the entity type to delete entries for. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>.

pub fn agent_environments_list(
    &self,
    parent: &str
) -> ProjectAgentEnvironmentListCall<'a, C, A>
[src]

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/<Project ID>/agent.

pub fn agent_sessions_contexts_patch(
    &self,
    request: GoogleCloudDialogflowV2Context,
    name: &str
) -> ProjectAgentSessionContextPatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates the specified context.

Arguments

  • request - No description provided.
  • name - Required. The unique identifier of the context. Format: projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/contexts/<Context ID>. 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

pub fn agent_update_fulfillment(
    &self,
    request: GoogleCloudDialogflowV2Fulfillment,
    name: &str
) -> ProjectAgentUpdateFulfillmentCall<'a, C, A>
[src]

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. Format: projects/<Project ID>/agent/fulfillment.

pub fn locations_operations_cancel(
    &self,
    name: &str
) -> ProjectLocationOperationCancelCall<'a, C, A>
[src]

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.

pub fn agent_sessions_delete_contexts(
    &self,
    parent: &str
) -> ProjectAgentSessionDeleteContextCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes all active contexts in the specified session.

Arguments

  • parent - Required. The name of the session to delete all contexts from. Format: projects/<Project ID>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>. If Environment ID is not specified we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

pub fn agent_import(
    &self,
    request: GoogleCloudDialogflowV2ImportAgentRequest,
    parent: &str
) -> ProjectAgentImportCall<'a, C, A>
[src]

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.

Operation <response: google.protobuf.Empty> An operation which tracks when importing is complete. It only tracks when the draft agent is updated not when it is done training.

Arguments

  • request - No description provided.
  • parent - Required. The project that the agent to import is associated with. Format: projects/<Project ID>.

pub fn operations_get(&self, name: &str) -> ProjectOperationGetCall<'a, C, A>[src]

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.

pub fn delete_agent(&self, parent: &str) -> ProjectDeleteAgentCall<'a, C, A>[src]

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/<Project ID>.

pub fn agent_intents_get(
    &self,
    name: &str
) -> ProjectAgentIntentGetCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Retrieves the specified intent.

Arguments

  • name - Required. The name of the intent. Format: projects/<Project ID>/agent/intents/<Intent ID>.

pub fn agent_sessions_contexts_create(
    &self,
    request: GoogleCloudDialogflowV2Context,
    parent: &str
) -> ProjectAgentSessionContextCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates a context.

If the specified context already exists, overrides the context.

Arguments

  • request - No description provided.
  • parent - Required. The session to create a context for. Format: projects/<Project ID>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

pub fn agent_sessions_contexts_delete(
    &self,
    name: &str
) -> ProjectAgentSessionContextDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes the specified context.

Arguments

  • name - Required. The name of the context to delete. Format: projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/contexts/<Context ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

pub fn agent_export(
    &self,
    request: GoogleCloudDialogflowV2ExportAgentRequest,
    parent: &str
) -> ProjectAgentExportCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Exports the specified agent to a ZIP file.

Operation <response: ExportAgentResponse>

Arguments

  • request - No description provided.
  • parent - Required. The project that the agent to export is associated with. Format: projects/<Project ID>.

pub fn agent_entity_types_list(
    &self,
    parent: &str
) -> ProjectAgentEntityTypeListCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

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

Arguments

  • parent - Required. The agent to list all entity types from. Format: projects/<Project ID>/agent.

pub fn agent_sessions_entity_types_delete(
    &self,
    name: &str
) -> ProjectAgentSessionEntityTypeDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Arguments

  • name - Required. The name of the entity type to delete. Format: projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

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/<Project ID or '-'>.

pub fn agent_intents_delete(
    &self,
    name: &str
) -> ProjectAgentIntentDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes the specified intent and its direct or indirect followup intents.

Arguments

  • name - Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Format: projects/<Project ID>/agent/intents/<Intent ID>.

pub fn agent_intents_create(
    &self,
    request: GoogleCloudDialogflowV2Intent,
    parent: &str
) -> ProjectAgentIntentCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates an intent in the specified agent.

Arguments

  • request - No description provided.
  • parent - Required. The agent to create a intent for. Format: projects/<Project ID>/agent.

pub fn operations_list(&self, name: &str) -> ProjectOperationListCall<'a, C, A>[src]

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.

NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.

Arguments

  • name - The name of the operation's parent resource.

Trait Implementations

impl<'a, C, A> MethodsBuilder for ProjectMethods<'a, C, A>[src]

Auto Trait Implementations

impl<'a, C, A> !RefUnwindSafe for ProjectMethods<'a, C, A>

impl<'a, C, A> !Send for ProjectMethods<'a, C, A>

impl<'a, C, A> !Sync for ProjectMethods<'a, C, A>

impl<'a, C, A> Unpin for ProjectMethods<'a, C, A>

impl<'a, C, A> !UnwindSafe for ProjectMethods<'a, C, A>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any