Struct google_dialogflow2_beta1::ProjectMethods [] [src]

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_beta1 as dialogflow2_beta1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use dialogflow2_beta1::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_export(...)`, `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(...)`, `get_agent(...)` and `operations_get(...)`
// to build up your call.
let rb = hub.projects();

Methods

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

[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>.

[src]

Create a builder to help you perform the following task:

Updates the specified session entity type.

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>.

[src]

Create a builder to help you perform the following task:

Updates/Creates multiple entity types in the specified agent.

Operation

Arguments

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

[src]

Create a builder to help you perform the following task:

Trains the specified agent.

Operation

Arguments

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

[src]

Create a builder to help you perform the following task:

Updates/Creates multiple intents in the specified agent.

Operation

Arguments

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

[src]

Create a builder to help you perform the following task:

Creates multiple new entities in the specified entity type (extends the existing collection of entries).

Operation

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>.

[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.

Operation

Arguments

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

[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>. It's up to the API caller to choose an appropriate session ID. It can be a random number or some type of user identifier (preferably hashed). The length of the session ID must not exceed 36 bytes.

[src]

Create a builder to help you perform the following task:

Deletes entity types in the specified agent.

Operation

Arguments

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

[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.

Operation

Arguments

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

[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.

[src]

Create a builder to help you perform the following task:

Updates entities in the specified entity type (replaces the existing collection of entries).

Operation

Arguments

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

[src]

Create a builder to help you perform the following task:

Creates a session entity type.

Arguments

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

[src]

Create a builder to help you perform the following task:

Creates a context.

Arguments

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

[src]

Create a builder to help you perform the following task:

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

Arguments

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

[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>.

[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.

[src]

Create a builder to help you perform the following task:

Deletes intents in the specified agent.

Operation

Arguments

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

[src]

Create a builder to help you perform the following task:

Updates the specified entity type.

Arguments

  • request - No description provided.
  • name - Required for all methods except create (create populates the name automatically. The unique identifier of the entity type. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>.

[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>.

[src]

Create a builder to help you perform the following task:

Retrieves the specified session entity type.

Arguments

  • name - Required. The name of the session entity type. Format: projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>.

[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.

[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>.

[src]

Create a builder to help you perform the following task:

Deletes entities in the specified entity type.

Operation

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>.

[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>. Note: The Context ID is always converted to lowercase.

[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>.

[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.

[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>.

[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>.

[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>.

[src]

Create a builder to help you perform the following task:

Exports the specified agent to a ZIP file.

Operation

Arguments

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

[src]

Create a builder to help you perform the following task:

Updates the specified intent.

Arguments

  • request - No description provided.
  • name - Required for all methods except create (create populates the name automatically. The unique identifier of this intent. Format: projects/<Project ID>/agent/intents/<Intent ID>.

[src]

Create a builder to help you perform the following task:

Deletes the specified session entity type.

Arguments

  • name - Required. The name of the entity type to delete. Format: projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>.

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 '-'>.

[src]

Create a builder to help you perform the following task:

Deletes the specified intent.

Arguments

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

[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.

Trait Implementations

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