google_dialogflow2/
lib.rs

1// DO NOT EDIT !
2// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
3// DO NOT EDIT !
4
5//! This documentation was generated from *Dialogflow* crate version *6.0.0+20240614*, where *20240614* is the exact revision of the *dialogflow:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v6.0.0*.
6//!
7//! Everything else about the *Dialogflow* *v2* API can be found at the
8//! [official documentation site](https://cloud.google.com/dialogflow/).
9//! The original source code is [on github](https://github.com/Byron/google-apis-rs/tree/main/gen/dialogflow2).
10//! # Features
11//!
12//! Handle the following *Resources* with ease from the central [hub](Dialogflow) ...
13//!
14//! * projects
15//!  * [*agent entity types batch delete*](api::ProjectAgentEntityTypeBatchDeleteCall), [*agent entity types batch update*](api::ProjectAgentEntityTypeBatchUpdateCall), [*agent entity types create*](api::ProjectAgentEntityTypeCreateCall), [*agent entity types delete*](api::ProjectAgentEntityTypeDeleteCall), [*agent entity types entities batch create*](api::ProjectAgentEntityTypeEntityBatchCreateCall), [*agent entity types entities batch delete*](api::ProjectAgentEntityTypeEntityBatchDeleteCall), [*agent entity types entities batch update*](api::ProjectAgentEntityTypeEntityBatchUpdateCall), [*agent entity types get*](api::ProjectAgentEntityTypeGetCall), [*agent entity types list*](api::ProjectAgentEntityTypeListCall), [*agent entity types patch*](api::ProjectAgentEntityTypePatchCall), [*agent environments create*](api::ProjectAgentEnvironmentCreateCall), [*agent environments delete*](api::ProjectAgentEnvironmentDeleteCall), [*agent environments get*](api::ProjectAgentEnvironmentGetCall), [*agent environments get history*](api::ProjectAgentEnvironmentGetHistoryCall), [*agent environments intents list*](api::ProjectAgentEnvironmentIntentListCall), [*agent environments list*](api::ProjectAgentEnvironmentListCall), [*agent environments patch*](api::ProjectAgentEnvironmentPatchCall), [*agent environments users sessions contexts create*](api::ProjectAgentEnvironmentUserSessionContextCreateCall), [*agent environments users sessions contexts delete*](api::ProjectAgentEnvironmentUserSessionContextDeleteCall), [*agent environments users sessions contexts get*](api::ProjectAgentEnvironmentUserSessionContextGetCall), [*agent environments users sessions contexts list*](api::ProjectAgentEnvironmentUserSessionContextListCall), [*agent environments users sessions contexts patch*](api::ProjectAgentEnvironmentUserSessionContextPatchCall), [*agent environments users sessions delete contexts*](api::ProjectAgentEnvironmentUserSessionDeleteContextCall), [*agent environments users sessions detect intent*](api::ProjectAgentEnvironmentUserSessionDetectIntentCall), [*agent environments users sessions entity types create*](api::ProjectAgentEnvironmentUserSessionEntityTypeCreateCall), [*agent environments users sessions entity types delete*](api::ProjectAgentEnvironmentUserSessionEntityTypeDeleteCall), [*agent environments users sessions entity types get*](api::ProjectAgentEnvironmentUserSessionEntityTypeGetCall), [*agent environments users sessions entity types list*](api::ProjectAgentEnvironmentUserSessionEntityTypeListCall), [*agent environments users sessions entity types patch*](api::ProjectAgentEnvironmentUserSessionEntityTypePatchCall), [*agent export*](api::ProjectAgentExportCall), [*agent get fulfillment*](api::ProjectAgentGetFulfillmentCall), [*agent get validation result*](api::ProjectAgentGetValidationResultCall), [*agent import*](api::ProjectAgentImportCall), [*agent intents batch delete*](api::ProjectAgentIntentBatchDeleteCall), [*agent intents batch update*](api::ProjectAgentIntentBatchUpdateCall), [*agent intents create*](api::ProjectAgentIntentCreateCall), [*agent intents delete*](api::ProjectAgentIntentDeleteCall), [*agent intents get*](api::ProjectAgentIntentGetCall), [*agent intents list*](api::ProjectAgentIntentListCall), [*agent intents patch*](api::ProjectAgentIntentPatchCall), [*agent knowledge bases create*](api::ProjectAgentKnowledgeBaseCreateCall), [*agent knowledge bases delete*](api::ProjectAgentKnowledgeBaseDeleteCall), [*agent knowledge bases documents create*](api::ProjectAgentKnowledgeBaseDocumentCreateCall), [*agent knowledge bases documents delete*](api::ProjectAgentKnowledgeBaseDocumentDeleteCall), [*agent knowledge bases documents get*](api::ProjectAgentKnowledgeBaseDocumentGetCall), [*agent knowledge bases documents list*](api::ProjectAgentKnowledgeBaseDocumentListCall), [*agent knowledge bases documents patch*](api::ProjectAgentKnowledgeBaseDocumentPatchCall), [*agent knowledge bases documents reload*](api::ProjectAgentKnowledgeBaseDocumentReloadCall), [*agent knowledge bases get*](api::ProjectAgentKnowledgeBaseGetCall), [*agent knowledge bases list*](api::ProjectAgentKnowledgeBaseListCall), [*agent knowledge bases patch*](api::ProjectAgentKnowledgeBasePatchCall), [*agent restore*](api::ProjectAgentRestoreCall), [*agent search*](api::ProjectAgentSearchCall), [*agent sessions contexts create*](api::ProjectAgentSessionContextCreateCall), [*agent sessions contexts delete*](api::ProjectAgentSessionContextDeleteCall), [*agent sessions contexts get*](api::ProjectAgentSessionContextGetCall), [*agent sessions contexts list*](api::ProjectAgentSessionContextListCall), [*agent sessions contexts patch*](api::ProjectAgentSessionContextPatchCall), [*agent sessions delete contexts*](api::ProjectAgentSessionDeleteContextCall), [*agent sessions detect intent*](api::ProjectAgentSessionDetectIntentCall), [*agent sessions entity types create*](api::ProjectAgentSessionEntityTypeCreateCall), [*agent sessions entity types delete*](api::ProjectAgentSessionEntityTypeDeleteCall), [*agent sessions entity types get*](api::ProjectAgentSessionEntityTypeGetCall), [*agent sessions entity types list*](api::ProjectAgentSessionEntityTypeListCall), [*agent sessions entity types patch*](api::ProjectAgentSessionEntityTypePatchCall), [*agent train*](api::ProjectAgentTrainCall), [*agent update fulfillment*](api::ProjectAgentUpdateFulfillmentCall), [*agent versions create*](api::ProjectAgentVersionCreateCall), [*agent versions delete*](api::ProjectAgentVersionDeleteCall), [*agent versions get*](api::ProjectAgentVersionGetCall), [*agent versions list*](api::ProjectAgentVersionListCall), [*agent versions patch*](api::ProjectAgentVersionPatchCall), [*answer records list*](api::ProjectAnswerRecordListCall), [*answer records patch*](api::ProjectAnswerRecordPatchCall), [*conversation datasets get*](api::ProjectConversationDatasetGetCall), [*conversation datasets import conversation data*](api::ProjectConversationDatasetImportConversationDataCall), [*conversation datasets list*](api::ProjectConversationDatasetListCall), [*conversation models create*](api::ProjectConversationModelCreateCall), [*conversation models delete*](api::ProjectConversationModelDeleteCall), [*conversation models deploy*](api::ProjectConversationModelDeployCall), [*conversation models evaluations get*](api::ProjectConversationModelEvaluationGetCall), [*conversation models evaluations list*](api::ProjectConversationModelEvaluationListCall), [*conversation models get*](api::ProjectConversationModelGetCall), [*conversation models list*](api::ProjectConversationModelListCall), [*conversation models undeploy*](api::ProjectConversationModelUndeployCall), [*conversation profiles clear suggestion feature config*](api::ProjectConversationProfileClearSuggestionFeatureConfigCall), [*conversation profiles create*](api::ProjectConversationProfileCreateCall), [*conversation profiles delete*](api::ProjectConversationProfileDeleteCall), [*conversation profiles get*](api::ProjectConversationProfileGetCall), [*conversation profiles list*](api::ProjectConversationProfileListCall), [*conversation profiles patch*](api::ProjectConversationProfilePatchCall), [*conversation profiles set suggestion feature config*](api::ProjectConversationProfileSetSuggestionFeatureConfigCall), [*conversations complete*](api::ProjectConversationCompleteCall), [*conversations create*](api::ProjectConversationCreateCall), [*conversations get*](api::ProjectConversationGetCall), [*conversations list*](api::ProjectConversationListCall), [*conversations messages list*](api::ProjectConversationMessageListCall), [*conversations participants analyze content*](api::ProjectConversationParticipantAnalyzeContentCall), [*conversations participants create*](api::ProjectConversationParticipantCreateCall), [*conversations participants get*](api::ProjectConversationParticipantGetCall), [*conversations participants list*](api::ProjectConversationParticipantListCall), [*conversations participants patch*](api::ProjectConversationParticipantPatchCall), [*conversations participants suggestions suggest articles*](api::ProjectConversationParticipantSuggestionSuggestArticleCall), [*conversations participants suggestions suggest faq answers*](api::ProjectConversationParticipantSuggestionSuggestFaqAnswerCall), [*conversations participants suggestions suggest knowledge assist*](api::ProjectConversationParticipantSuggestionSuggestKnowledgeAssistCall), [*conversations participants suggestions suggest smart replies*](api::ProjectConversationParticipantSuggestionSuggestSmartReplyCall), [*conversations suggestions search knowledge*](api::ProjectConversationSuggestionSearchKnowledgeCall), [*conversations suggestions suggest conversation summary*](api::ProjectConversationSuggestionSuggestConversationSummaryCall), [*delete agent*](api::ProjectDeleteAgentCall), [*generators create*](api::ProjectGeneratorCreateCall), [*generators list*](api::ProjectGeneratorListCall), [*get agent*](api::ProjectGetAgentCall), [*knowledge bases create*](api::ProjectKnowledgeBaseCreateCall), [*knowledge bases delete*](api::ProjectKnowledgeBaseDeleteCall), [*knowledge bases documents create*](api::ProjectKnowledgeBaseDocumentCreateCall), [*knowledge bases documents delete*](api::ProjectKnowledgeBaseDocumentDeleteCall), [*knowledge bases documents export*](api::ProjectKnowledgeBaseDocumentExportCall), [*knowledge bases documents get*](api::ProjectKnowledgeBaseDocumentGetCall), [*knowledge bases documents import*](api::ProjectKnowledgeBaseDocumentImportCall), [*knowledge bases documents list*](api::ProjectKnowledgeBaseDocumentListCall), [*knowledge bases documents patch*](api::ProjectKnowledgeBaseDocumentPatchCall), [*knowledge bases documents reload*](api::ProjectKnowledgeBaseDocumentReloadCall), [*knowledge bases get*](api::ProjectKnowledgeBaseGetCall), [*knowledge bases list*](api::ProjectKnowledgeBaseListCall), [*knowledge bases patch*](api::ProjectKnowledgeBasePatchCall), [*locations agent entity types batch delete*](api::ProjectLocationAgentEntityTypeBatchDeleteCall), [*locations agent entity types batch update*](api::ProjectLocationAgentEntityTypeBatchUpdateCall), [*locations agent entity types create*](api::ProjectLocationAgentEntityTypeCreateCall), [*locations agent entity types delete*](api::ProjectLocationAgentEntityTypeDeleteCall), [*locations agent entity types entities batch create*](api::ProjectLocationAgentEntityTypeEntityBatchCreateCall), [*locations agent entity types entities batch delete*](api::ProjectLocationAgentEntityTypeEntityBatchDeleteCall), [*locations agent entity types entities batch update*](api::ProjectLocationAgentEntityTypeEntityBatchUpdateCall), [*locations agent entity types get*](api::ProjectLocationAgentEntityTypeGetCall), [*locations agent entity types list*](api::ProjectLocationAgentEntityTypeListCall), [*locations agent entity types patch*](api::ProjectLocationAgentEntityTypePatchCall), [*locations agent environments create*](api::ProjectLocationAgentEnvironmentCreateCall), [*locations agent environments delete*](api::ProjectLocationAgentEnvironmentDeleteCall), [*locations agent environments get*](api::ProjectLocationAgentEnvironmentGetCall), [*locations agent environments get history*](api::ProjectLocationAgentEnvironmentGetHistoryCall), [*locations agent environments intents list*](api::ProjectLocationAgentEnvironmentIntentListCall), [*locations agent environments list*](api::ProjectLocationAgentEnvironmentListCall), [*locations agent environments patch*](api::ProjectLocationAgentEnvironmentPatchCall), [*locations agent environments users sessions contexts create*](api::ProjectLocationAgentEnvironmentUserSessionContextCreateCall), [*locations agent environments users sessions contexts delete*](api::ProjectLocationAgentEnvironmentUserSessionContextDeleteCall), [*locations agent environments users sessions contexts get*](api::ProjectLocationAgentEnvironmentUserSessionContextGetCall), [*locations agent environments users sessions contexts list*](api::ProjectLocationAgentEnvironmentUserSessionContextListCall), [*locations agent environments users sessions contexts patch*](api::ProjectLocationAgentEnvironmentUserSessionContextPatchCall), [*locations agent environments users sessions delete contexts*](api::ProjectLocationAgentEnvironmentUserSessionDeleteContextCall), [*locations agent environments users sessions detect intent*](api::ProjectLocationAgentEnvironmentUserSessionDetectIntentCall), [*locations agent environments users sessions entity types create*](api::ProjectLocationAgentEnvironmentUserSessionEntityTypeCreateCall), [*locations agent environments users sessions entity types delete*](api::ProjectLocationAgentEnvironmentUserSessionEntityTypeDeleteCall), [*locations agent environments users sessions entity types get*](api::ProjectLocationAgentEnvironmentUserSessionEntityTypeGetCall), [*locations agent environments users sessions entity types list*](api::ProjectLocationAgentEnvironmentUserSessionEntityTypeListCall), [*locations agent environments users sessions entity types patch*](api::ProjectLocationAgentEnvironmentUserSessionEntityTypePatchCall), [*locations agent export*](api::ProjectLocationAgentExportCall), [*locations agent get fulfillment*](api::ProjectLocationAgentGetFulfillmentCall), [*locations agent get validation result*](api::ProjectLocationAgentGetValidationResultCall), [*locations agent import*](api::ProjectLocationAgentImportCall), [*locations agent intents batch delete*](api::ProjectLocationAgentIntentBatchDeleteCall), [*locations agent intents batch update*](api::ProjectLocationAgentIntentBatchUpdateCall), [*locations agent intents create*](api::ProjectLocationAgentIntentCreateCall), [*locations agent intents delete*](api::ProjectLocationAgentIntentDeleteCall), [*locations agent intents get*](api::ProjectLocationAgentIntentGetCall), [*locations agent intents list*](api::ProjectLocationAgentIntentListCall), [*locations agent intents patch*](api::ProjectLocationAgentIntentPatchCall), [*locations agent restore*](api::ProjectLocationAgentRestoreCall), [*locations agent search*](api::ProjectLocationAgentSearchCall), [*locations agent sessions contexts create*](api::ProjectLocationAgentSessionContextCreateCall), [*locations agent sessions contexts delete*](api::ProjectLocationAgentSessionContextDeleteCall), [*locations agent sessions contexts get*](api::ProjectLocationAgentSessionContextGetCall), [*locations agent sessions contexts list*](api::ProjectLocationAgentSessionContextListCall), [*locations agent sessions contexts patch*](api::ProjectLocationAgentSessionContextPatchCall), [*locations agent sessions delete contexts*](api::ProjectLocationAgentSessionDeleteContextCall), [*locations agent sessions detect intent*](api::ProjectLocationAgentSessionDetectIntentCall), [*locations agent sessions entity types create*](api::ProjectLocationAgentSessionEntityTypeCreateCall), [*locations agent sessions entity types delete*](api::ProjectLocationAgentSessionEntityTypeDeleteCall), [*locations agent sessions entity types get*](api::ProjectLocationAgentSessionEntityTypeGetCall), [*locations agent sessions entity types list*](api::ProjectLocationAgentSessionEntityTypeListCall), [*locations agent sessions entity types patch*](api::ProjectLocationAgentSessionEntityTypePatchCall), [*locations agent train*](api::ProjectLocationAgentTrainCall), [*locations agent update fulfillment*](api::ProjectLocationAgentUpdateFulfillmentCall), [*locations agent versions create*](api::ProjectLocationAgentVersionCreateCall), [*locations agent versions delete*](api::ProjectLocationAgentVersionDeleteCall), [*locations agent versions get*](api::ProjectLocationAgentVersionGetCall), [*locations agent versions list*](api::ProjectLocationAgentVersionListCall), [*locations agent versions patch*](api::ProjectLocationAgentVersionPatchCall), [*locations answer records list*](api::ProjectLocationAnswerRecordListCall), [*locations answer records patch*](api::ProjectLocationAnswerRecordPatchCall), [*locations conversation datasets create*](api::ProjectLocationConversationDatasetCreateCall), [*locations conversation datasets delete*](api::ProjectLocationConversationDatasetDeleteCall), [*locations conversation datasets get*](api::ProjectLocationConversationDatasetGetCall), [*locations conversation datasets import conversation data*](api::ProjectLocationConversationDatasetImportConversationDataCall), [*locations conversation datasets list*](api::ProjectLocationConversationDatasetListCall), [*locations conversation models create*](api::ProjectLocationConversationModelCreateCall), [*locations conversation models delete*](api::ProjectLocationConversationModelDeleteCall), [*locations conversation models deploy*](api::ProjectLocationConversationModelDeployCall), [*locations conversation models evaluations create*](api::ProjectLocationConversationModelEvaluationCreateCall), [*locations conversation models evaluations get*](api::ProjectLocationConversationModelEvaluationGetCall), [*locations conversation models evaluations list*](api::ProjectLocationConversationModelEvaluationListCall), [*locations conversation models get*](api::ProjectLocationConversationModelGetCall), [*locations conversation models list*](api::ProjectLocationConversationModelListCall), [*locations conversation models undeploy*](api::ProjectLocationConversationModelUndeployCall), [*locations conversation profiles clear suggestion feature config*](api::ProjectLocationConversationProfileClearSuggestionFeatureConfigCall), [*locations conversation profiles create*](api::ProjectLocationConversationProfileCreateCall), [*locations conversation profiles delete*](api::ProjectLocationConversationProfileDeleteCall), [*locations conversation profiles get*](api::ProjectLocationConversationProfileGetCall), [*locations conversation profiles list*](api::ProjectLocationConversationProfileListCall), [*locations conversation profiles patch*](api::ProjectLocationConversationProfilePatchCall), [*locations conversation profiles set suggestion feature config*](api::ProjectLocationConversationProfileSetSuggestionFeatureConfigCall), [*locations conversations complete*](api::ProjectLocationConversationCompleteCall), [*locations conversations create*](api::ProjectLocationConversationCreateCall), [*locations conversations get*](api::ProjectLocationConversationGetCall), [*locations conversations list*](api::ProjectLocationConversationListCall), [*locations conversations messages list*](api::ProjectLocationConversationMessageListCall), [*locations conversations participants analyze content*](api::ProjectLocationConversationParticipantAnalyzeContentCall), [*locations conversations participants create*](api::ProjectLocationConversationParticipantCreateCall), [*locations conversations participants get*](api::ProjectLocationConversationParticipantGetCall), [*locations conversations participants list*](api::ProjectLocationConversationParticipantListCall), [*locations conversations participants patch*](api::ProjectLocationConversationParticipantPatchCall), [*locations conversations participants suggestions suggest articles*](api::ProjectLocationConversationParticipantSuggestionSuggestArticleCall), [*locations conversations participants suggestions suggest faq answers*](api::ProjectLocationConversationParticipantSuggestionSuggestFaqAnswerCall), [*locations conversations participants suggestions suggest knowledge assist*](api::ProjectLocationConversationParticipantSuggestionSuggestKnowledgeAssistCall), [*locations conversations participants suggestions suggest smart replies*](api::ProjectLocationConversationParticipantSuggestionSuggestSmartReplyCall), [*locations conversations suggestions search knowledge*](api::ProjectLocationConversationSuggestionSearchKnowledgeCall), [*locations conversations suggestions suggest conversation summary*](api::ProjectLocationConversationSuggestionSuggestConversationSummaryCall), [*locations delete agent*](api::ProjectLocationDeleteAgentCall), [*locations generators create*](api::ProjectLocationGeneratorCreateCall), [*locations generators delete*](api::ProjectLocationGeneratorDeleteCall), [*locations generators get*](api::ProjectLocationGeneratorGetCall), [*locations generators list*](api::ProjectLocationGeneratorListCall), [*locations generators patch*](api::ProjectLocationGeneratorPatchCall), [*locations get*](api::ProjectLocationGetCall), [*locations get agent*](api::ProjectLocationGetAgentCall), [*locations knowledge bases create*](api::ProjectLocationKnowledgeBaseCreateCall), [*locations knowledge bases delete*](api::ProjectLocationKnowledgeBaseDeleteCall), [*locations knowledge bases documents create*](api::ProjectLocationKnowledgeBaseDocumentCreateCall), [*locations knowledge bases documents delete*](api::ProjectLocationKnowledgeBaseDocumentDeleteCall), [*locations knowledge bases documents export*](api::ProjectLocationKnowledgeBaseDocumentExportCall), [*locations knowledge bases documents get*](api::ProjectLocationKnowledgeBaseDocumentGetCall), [*locations knowledge bases documents import*](api::ProjectLocationKnowledgeBaseDocumentImportCall), [*locations knowledge bases documents list*](api::ProjectLocationKnowledgeBaseDocumentListCall), [*locations knowledge bases documents patch*](api::ProjectLocationKnowledgeBaseDocumentPatchCall), [*locations knowledge bases documents reload*](api::ProjectLocationKnowledgeBaseDocumentReloadCall), [*locations knowledge bases get*](api::ProjectLocationKnowledgeBaseGetCall), [*locations knowledge bases list*](api::ProjectLocationKnowledgeBaseListCall), [*locations knowledge bases patch*](api::ProjectLocationKnowledgeBasePatchCall), [*locations list*](api::ProjectLocationListCall), [*locations operations cancel*](api::ProjectLocationOperationCancelCall), [*locations operations get*](api::ProjectLocationOperationGetCall), [*locations operations list*](api::ProjectLocationOperationListCall), [*locations set agent*](api::ProjectLocationSetAgentCall), [*locations stateless suggestion generate*](api::ProjectLocationStatelessSuggestionGenerateCall), [*locations suggestions generate stateless summary*](api::ProjectLocationSuggestionGenerateStatelessSummaryCall), [*locations suggestions search knowledge*](api::ProjectLocationSuggestionSearchKnowledgeCall), [*operations cancel*](api::ProjectOperationCancelCall), [*operations get*](api::ProjectOperationGetCall), [*operations list*](api::ProjectOperationListCall), [*set agent*](api::ProjectSetAgentCall), [*suggestions generate stateless summary*](api::ProjectSuggestionGenerateStatelessSummaryCall) and [*suggestions search knowledge*](api::ProjectSuggestionSearchKnowledgeCall)
16//!
17//!
18//!
19//!
20//! Not what you are looking for ? Find all other Google APIs in their Rust [documentation index](http://byron.github.io/google-apis-rs).
21//!
22//! # Structure of this Library
23//!
24//! The API is structured into the following primary items:
25//!
26//! * **[Hub](Dialogflow)**
27//!     * a central object to maintain state and allow accessing all *Activities*
28//!     * creates [*Method Builders*](common::MethodsBuilder) which in turn
29//!       allow access to individual [*Call Builders*](common::CallBuilder)
30//! * **[Resources](common::Resource)**
31//!     * primary types that you can apply *Activities* to
32//!     * a collection of properties and *Parts*
33//!     * **[Parts](common::Part)**
34//!         * a collection of properties
35//!         * never directly used in *Activities*
36//! * **[Activities](common::CallBuilder)**
37//!     * operations to apply to *Resources*
38//!
39//! All *structures* are marked with applicable traits to further categorize them and ease browsing.
40//!
41//! Generally speaking, you can invoke *Activities* like this:
42//!
43//! ```Rust,ignore
44//! let r = hub.resource().activity(...).doit().await
45//! ```
46//!
47//! Or specifically ...
48//!
49//! ```ignore
50//! let r = hub.projects().agent_entity_types_entities_batch_create(...).doit().await
51//! let r = hub.projects().agent_entity_types_entities_batch_delete(...).doit().await
52//! let r = hub.projects().agent_entity_types_entities_batch_update(...).doit().await
53//! let r = hub.projects().agent_entity_types_batch_delete(...).doit().await
54//! let r = hub.projects().agent_entity_types_batch_update(...).doit().await
55//! let r = hub.projects().agent_intents_batch_delete(...).doit().await
56//! let r = hub.projects().agent_intents_batch_update(...).doit().await
57//! let r = hub.projects().agent_knowledge_bases_documents_create(...).doit().await
58//! let r = hub.projects().agent_knowledge_bases_documents_delete(...).doit().await
59//! let r = hub.projects().agent_knowledge_bases_documents_patch(...).doit().await
60//! let r = hub.projects().agent_knowledge_bases_documents_reload(...).doit().await
61//! let r = hub.projects().agent_export(...).doit().await
62//! let r = hub.projects().agent_import(...).doit().await
63//! let r = hub.projects().agent_restore(...).doit().await
64//! let r = hub.projects().agent_train(...).doit().await
65//! let r = hub.projects().conversation_datasets_import_conversation_data(...).doit().await
66//! let r = hub.projects().conversation_models_create(...).doit().await
67//! let r = hub.projects().conversation_models_delete(...).doit().await
68//! let r = hub.projects().conversation_models_deploy(...).doit().await
69//! let r = hub.projects().conversation_models_undeploy(...).doit().await
70//! let r = hub.projects().conversation_profiles_clear_suggestion_feature_config(...).doit().await
71//! let r = hub.projects().conversation_profiles_set_suggestion_feature_config(...).doit().await
72//! let r = hub.projects().knowledge_bases_documents_create(...).doit().await
73//! let r = hub.projects().knowledge_bases_documents_delete(...).doit().await
74//! let r = hub.projects().knowledge_bases_documents_export(...).doit().await
75//! let r = hub.projects().knowledge_bases_documents_import(...).doit().await
76//! let r = hub.projects().knowledge_bases_documents_patch(...).doit().await
77//! let r = hub.projects().knowledge_bases_documents_reload(...).doit().await
78//! let r = hub.projects().locations_agent_entity_types_entities_batch_create(...).doit().await
79//! let r = hub.projects().locations_agent_entity_types_entities_batch_delete(...).doit().await
80//! let r = hub.projects().locations_agent_entity_types_entities_batch_update(...).doit().await
81//! let r = hub.projects().locations_agent_entity_types_batch_delete(...).doit().await
82//! let r = hub.projects().locations_agent_entity_types_batch_update(...).doit().await
83//! let r = hub.projects().locations_agent_intents_batch_delete(...).doit().await
84//! let r = hub.projects().locations_agent_intents_batch_update(...).doit().await
85//! let r = hub.projects().locations_agent_export(...).doit().await
86//! let r = hub.projects().locations_agent_import(...).doit().await
87//! let r = hub.projects().locations_agent_restore(...).doit().await
88//! let r = hub.projects().locations_agent_train(...).doit().await
89//! let r = hub.projects().locations_conversation_datasets_create(...).doit().await
90//! let r = hub.projects().locations_conversation_datasets_delete(...).doit().await
91//! let r = hub.projects().locations_conversation_datasets_import_conversation_data(...).doit().await
92//! let r = hub.projects().locations_conversation_models_evaluations_create(...).doit().await
93//! let r = hub.projects().locations_conversation_models_create(...).doit().await
94//! let r = hub.projects().locations_conversation_models_delete(...).doit().await
95//! let r = hub.projects().locations_conversation_models_deploy(...).doit().await
96//! let r = hub.projects().locations_conversation_models_undeploy(...).doit().await
97//! let r = hub.projects().locations_conversation_profiles_clear_suggestion_feature_config(...).doit().await
98//! let r = hub.projects().locations_conversation_profiles_set_suggestion_feature_config(...).doit().await
99//! let r = hub.projects().locations_knowledge_bases_documents_create(...).doit().await
100//! let r = hub.projects().locations_knowledge_bases_documents_delete(...).doit().await
101//! let r = hub.projects().locations_knowledge_bases_documents_export(...).doit().await
102//! let r = hub.projects().locations_knowledge_bases_documents_import(...).doit().await
103//! let r = hub.projects().locations_knowledge_bases_documents_patch(...).doit().await
104//! let r = hub.projects().locations_knowledge_bases_documents_reload(...).doit().await
105//! let r = hub.projects().locations_operations_get(...).doit().await
106//! let r = hub.projects().operations_get(...).doit().await
107//! ```
108//!
109//! The `resource()` and `activity(...)` calls create [builders][builder-pattern]. The second one dealing with `Activities`
110//! supports various methods to configure the impending operation (not shown here). It is made such that all required arguments have to be
111//! specified right away (i.e. `(...)`), whereas all optional ones can be [build up][builder-pattern] as desired.
112//! The `doit()` method performs the actual communication with the server and returns the respective result.
113//!
114//! # Usage
115//!
116//! ## Setting up your Project
117//!
118//! To use this library, you would put the following lines into your `Cargo.toml` file:
119//!
120//! ```toml
121//! [dependencies]
122//! google-dialogflow2 = "*"
123//! serde = "1"
124//! serde_json = "1"
125//! ```
126//!
127//! ## A complete example
128//!
129//! ```test_harness,no_run
130//! extern crate hyper;
131//! extern crate hyper_rustls;
132//! extern crate google_dialogflow2 as dialogflow2;
133//! use dialogflow2::api::GoogleCloudDialogflowV2Document;
134//! use dialogflow2::{Result, Error};
135//! # async fn dox() {
136//! use dialogflow2::{Dialogflow, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
137//!
138//! // Get an ApplicationSecret instance by some means. It contains the `client_id` and
139//! // `client_secret`, among other things.
140//! let secret: yup_oauth2::ApplicationSecret = Default::default();
141//! // Instantiate the authenticator. It will choose a suitable authentication flow for you,
142//! // unless you replace  `None` with the desired Flow.
143//! // Provide your own `AuthenticatorDelegate` to adjust the way it operates and get feedback about
144//! // what's going on. You probably want to bring in your own `TokenStorage` to persist tokens and
145//! // retrieve them from storage.
146//! let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
147//!     secret,
148//!     yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
149//! ).build().await.unwrap();
150//!
151//! let client = hyper_util::client::legacy::Client::builder(
152//!     hyper_util::rt::TokioExecutor::new()
153//! )
154//! .build(
155//!     hyper_rustls::HttpsConnectorBuilder::new()
156//!         .with_native_roots()
157//!         .unwrap()
158//!         .https_or_http()
159//!         .enable_http1()
160//!         .build()
161//! );
162//! let mut hub = Dialogflow::new(client, auth);
163//! // As the method needs a request, you would usually fill it with the desired information
164//! // into the respective structure. Some of the parts shown here might not be applicable !
165//! // Values shown here are possibly random and not representative !
166//! let mut req = GoogleCloudDialogflowV2Document::default();
167//!
168//! // You can configure optional parameters by calling the respective setters at will, and
169//! // execute the final call using `doit()`.
170//! // Values shown here are possibly random and not representative !
171//! let result = hub.projects().agent_knowledge_bases_documents_patch(req, "name")
172//!              .update_mask(FieldMask::new::<&str>(&[]))
173//!              .doit().await;
174//!
175//! match result {
176//!     Err(e) => match e {
177//!         // The Error enum provides details about what exactly happened.
178//!         // You can also just use its `Debug`, `Display` or `Error` traits
179//!          Error::HttpError(_)
180//!         |Error::Io(_)
181//!         |Error::MissingAPIKey
182//!         |Error::MissingToken(_)
183//!         |Error::Cancelled
184//!         |Error::UploadSizeLimitExceeded(_, _)
185//!         |Error::Failure(_)
186//!         |Error::BadRequest(_)
187//!         |Error::FieldClash(_)
188//!         |Error::JsonDecodeError(_, _) => println!("{}", e),
189//!     },
190//!     Ok(res) => println!("Success: {:?}", res),
191//! }
192//! # }
193//! ```
194//! ## Handling Errors
195//!
196//! All errors produced by the system are provided either as [Result](common::Result) enumeration as return value of
197//! the doit() methods, or handed as possibly intermediate results to either the
198//! [Hub Delegate](common::Delegate), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
199//!
200//! When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This
201//! makes the system potentially resilient to all kinds of errors.
202//!
203//! ## Uploads and Downloads
204//! If a method supports downloads, the response body, which is part of the [Result](common::Result), should be
205//! read by you to obtain the media.
206//! If such a method also supports a [Response Result](common::ResponseResult), it will return that by default.
207//! You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making
208//! this call: `.param("alt", "media")`.
209//!
210//! Methods supporting uploads can do so using up to 2 different protocols:
211//! *simple* and *resumable*. The distinctiveness of each is represented by customized
212//! `doit(...)` methods, which are then named `upload(...)` and `upload_resumable(...)` respectively.
213//!
214//! ## Customization and Callbacks
215//!
216//! You may alter the way an `doit()` method is called by providing a [delegate](common::Delegate) to the
217//! [Method Builder](common::CallBuilder) before making the final `doit()` call.
218//! Respective methods will be called to provide progress information, as well as determine whether the system should
219//! retry on failure.
220//!
221//! The [delegate trait](common::Delegate) is default-implemented, allowing you to customize it with minimal effort.
222//!
223//! ## Optional Parts in Server-Requests
224//!
225//! All structures provided by this library are made to be [encodable](common::RequestValue) and
226//! [decodable](common::ResponseResult) via *json*. Optionals are used to indicate that partial requests are responses
227//! are valid.
228//! Most optionals are are considered [Parts](common::Part) which are identifiable by name, which will be sent to
229//! the server to indicate either the set parts of the request or the desired parts in the response.
230//!
231//! ## Builder Arguments
232//!
233//! Using [method builders](common::CallBuilder), you are able to prepare an action call by repeatedly calling it's methods.
234//! These will always take a single argument, for which the following statements are true.
235//!
236//! * [PODs][wiki-pod] are handed by copy
237//! * strings are passed as `&str`
238//! * [request values](common::RequestValue) are moved
239//!
240//! Arguments will always be copied or cloned into the builder, to make them independent of their original life times.
241//!
242//! [wiki-pod]: http://en.wikipedia.org/wiki/Plain_old_data_structure
243//! [builder-pattern]: http://en.wikipedia.org/wiki/Builder_pattern
244//! [google-go-api]: https://github.com/google/google-api-go-client
245//!
246//! ## Cargo Features
247//!
248//! * `utoipa` - Add support for [utoipa](https://crates.io/crates/utoipa) and derive `utoipa::ToSchema` on all
249//! the types. You'll have to import and register the required types in `#[openapi(schemas(...))]`, otherwise the
250//! generated `openapi` spec would be invalid.
251//!
252//!
253//!
254
255// Unused attributes happen thanks to defined, but unused structures We don't
256// warn about this, as depending on the API, some data structures or facilities
257// are never used. Instead of pre-determining this, we just disable the lint.
258// It's manually tuned to not have any unused imports in fully featured APIs.
259// Same with unused_mut.
260#![allow(unused_imports, unused_mut, dead_code)]
261
262// DO NOT EDIT !
263// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
264// DO NOT EDIT !
265
266pub extern crate hyper;
267pub extern crate hyper_rustls;
268pub extern crate hyper_util;
269#[cfg(feature = "yup-oauth2")]
270pub extern crate yup_oauth2;
271
272pub extern crate google_apis_common as common;
273pub use common::{Delegate, Error, FieldMask, Result};
274
275pub mod api;
276pub use api::Dialogflow;