[][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(...)`, `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(...)`, `delete_agent(...)`, `get_agent(...)` and `operations_get(...)`
// to build up your call.
let rb = hub.projects();

Methods

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

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

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.

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

Operation <response: google.protobuf.Empty>

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

pub fn agent(
    &self,
    request: GoogleCloudDialogflowV2Agent,
    parent: &str
) -> ProjectAgentCall<'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_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_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.

Operation <response: google.protobuf.Empty>

Arguments

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

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.

Arguments

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

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.

Arguments

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

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

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

Arguments

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

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

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

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

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

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

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.

Trait Implementations

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.