@google-cloud/discoveryengine 2.2.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +17 -0
- package/build/protos/google/cloud/discoveryengine/v1/assist_answer.proto +251 -0
- package/build/protos/google/cloud/discoveryengine/v1/assistant.proto +44 -0
- package/build/protos/google/cloud/discoveryengine/v1/assistant_service.proto +217 -0
- package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1/cmek_config_service.proto +300 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +67 -0
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +1 -3
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +18 -3
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +54 -2
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +14 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +95 -4
- package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +28 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +131 -6
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +8 -0
- package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +9 -0
- package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store.proto +84 -0
- package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto +375 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +14 -14
- package/build/protos/google/cloud/discoveryengine/v1/session.proto +21 -8
- package/build/protos/google/cloud/discoveryengine/v1/session_service.proto +128 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_license.proto +98 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_license_service.proto +191 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +15 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +30 -9
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +8 -14
- package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +238 -8
- package/build/protos/google/cloud/discoveryengine/v1alpha/session_service.proto +201 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +26 -5
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +8 -14
- package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +40 -8
- package/build/protos/google/cloud/discoveryengine/v1beta/session_service.proto +128 -0
- package/build/protos/protos.d.ts +21218 -11675
- package/build/protos/protos.js +92642 -66407
- package/build/protos/protos.json +5854 -2801
- package/build/src/index.d.ts +16 -1
- package/build/src/index.js +12 -2
- package/build/src/v1/assistant_service_client.d.ts +2058 -0
- package/build/src/v1/assistant_service_client.js +2957 -0
- package/build/src/v1/assistant_service_client_config.json +43 -0
- package/build/src/v1/assistant_service_proto_list.json +48 -0
- package/build/src/v1/cmek_config_service_client.d.ts +2398 -0
- package/build/src/v1/cmek_config_service_client.js +3426 -0
- package/build/src/v1/cmek_config_service_client_config.json +42 -0
- package/build/src/v1/cmek_config_service_proto_list.json +48 -0
- package/build/src/v1/completion_service_client.d.ts +345 -144
- package/build/src/v1/completion_service_client.js +482 -198
- package/build/src/v1/completion_service_proto_list.json +10 -1
- package/build/src/v1/control_service_client.d.ts +345 -144
- package/build/src/v1/control_service_client.js +498 -196
- package/build/src/v1/control_service_proto_list.json +10 -1
- package/build/src/v1/conversational_search_service_client.d.ts +392 -155
- package/build/src/v1/conversational_search_service_client.js +572 -204
- package/build/src/v1/conversational_search_service_proto_list.json +10 -1
- package/build/src/v1/data_store_service_client.d.ts +351 -144
- package/build/src/v1/data_store_service_client.js +488 -198
- package/build/src/v1/data_store_service_proto_list.json +10 -1
- package/build/src/v1/document_service_client.d.ts +345 -144
- package/build/src/v1/document_service_client.js +506 -198
- package/build/src/v1/document_service_proto_list.json +10 -1
- package/build/src/v1/engine_service_client.d.ts +345 -144
- package/build/src/v1/engine_service_client.js +488 -198
- package/build/src/v1/engine_service_proto_list.json +10 -1
- package/build/src/v1/gapic_metadata.json +270 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +345 -144
- package/build/src/v1/grounded_generation_service_client.js +486 -196
- package/build/src/v1/grounded_generation_service_proto_list.json +10 -1
- package/build/src/v1/identity_mapping_store_service_client.d.ts +2581 -0
- package/build/src/v1/identity_mapping_store_service_client.js +3601 -0
- package/build/src/v1/identity_mapping_store_service_client_config.json +54 -0
- package/build/src/v1/identity_mapping_store_service_proto_list.json +48 -0
- package/build/src/v1/index.d.ts +5 -0
- package/build/src/v1/index.js +11 -1
- package/build/src/v1/project_service_client.d.ts +345 -144
- package/build/src/v1/project_service_client.js +476 -198
- package/build/src/v1/project_service_proto_list.json +10 -1
- package/build/src/v1/rank_service_client.d.ts +345 -144
- package/build/src/v1/rank_service_client.js +480 -196
- package/build/src/v1/rank_service_proto_list.json +10 -1
- package/build/src/v1/recommendation_service_client.d.ts +345 -144
- package/build/src/v1/recommendation_service_client.js +480 -196
- package/build/src/v1/recommendation_service_proto_list.json +10 -1
- package/build/src/v1/schema_service_client.d.ts +345 -144
- package/build/src/v1/schema_service_client.js +482 -198
- package/build/src/v1/schema_service_proto_list.json +10 -1
- package/build/src/v1/search_service_client.d.ts +393 -228
- package/build/src/v1/search_service_client.js +506 -252
- package/build/src/v1/search_service_proto_list.json +10 -1
- package/build/src/v1/search_tuning_service_client.d.ts +345 -144
- package/build/src/v1/search_tuning_service_client.js +482 -198
- package/build/src/v1/search_tuning_service_proto_list.json +10 -1
- package/build/src/v1/serving_config_service_client.d.ts +345 -144
- package/build/src/v1/serving_config_service_client.js +480 -196
- package/build/src/v1/serving_config_service_proto_list.json +10 -1
- package/build/src/v1/session_service_client.d.ts +2326 -0
- package/build/src/v1/session_service_client.js +3218 -0
- package/build/src/v1/session_service_client_config.json +63 -0
- package/build/src/v1/session_service_proto_list.json +48 -0
- package/build/src/v1/site_search_engine_service_client.d.ts +345 -144
- package/build/src/v1/site_search_engine_service_client.js +494 -198
- package/build/src/v1/site_search_engine_service_proto_list.json +10 -1
- package/build/src/v1/user_event_service_client.d.ts +345 -144
- package/build/src/v1/user_event_service_client.js +488 -198
- package/build/src/v1/user_event_service_proto_list.json +10 -1
- package/build/src/v1/user_license_service_client.d.ts +2367 -0
- package/build/src/v1/user_license_service_client.js +3346 -0
- package/build/src/v1/user_license_service_client_config.json +34 -0
- package/build/src/v1/user_license_service_proto_list.json +48 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +144 -144
- package/build/src/v1alpha/acl_config_service_client.js +208 -196
- package/build/src/v1alpha/acl_config_service_proto_list.json +1 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +144 -144
- package/build/src/v1alpha/chunk_service_client.js +202 -196
- package/build/src/v1alpha/chunk_service_proto_list.json +1 -0
- package/build/src/v1alpha/completion_service_client.d.ts +144 -144
- package/build/src/v1alpha/completion_service_client.js +203 -197
- package/build/src/v1alpha/completion_service_proto_list.json +1 -0
- package/build/src/v1alpha/control_service_client.d.ts +144 -144
- package/build/src/v1alpha/control_service_client.js +220 -196
- package/build/src/v1alpha/control_service_proto_list.json +1 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +221 -167
- package/build/src/v1alpha/conversational_search_service_client.js +310 -210
- package/build/src/v1alpha/conversational_search_service_proto_list.json +1 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +144 -144
- package/build/src/v1alpha/data_store_service_client.js +221 -197
- package/build/src/v1alpha/data_store_service_proto_list.json +1 -0
- package/build/src/v1alpha/document_service_client.d.ts +144 -144
- package/build/src/v1alpha/document_service_client.js +233 -197
- package/build/src/v1alpha/document_service_proto_list.json +1 -0
- package/build/src/v1alpha/engine_service_client.d.ts +144 -144
- package/build/src/v1alpha/engine_service_client.js +221 -197
- package/build/src/v1alpha/engine_service_proto_list.json +1 -0
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +144 -144
- package/build/src/v1alpha/estimate_billing_service_client.js +197 -197
- package/build/src/v1alpha/estimate_billing_service_proto_list.json +1 -0
- package/build/src/v1alpha/evaluation_service_client.d.ts +144 -144
- package/build/src/v1alpha/evaluation_service_client.js +203 -197
- package/build/src/v1alpha/evaluation_service_proto_list.json +1 -0
- package/build/src/v1alpha/gapic_metadata.json +82 -0
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +144 -144
- package/build/src/v1alpha/grounded_generation_service_client.js +202 -196
- package/build/src/v1alpha/grounded_generation_service_proto_list.json +1 -0
- package/build/src/v1alpha/index.d.ts +1 -0
- package/build/src/v1alpha/index.js +3 -1
- package/build/src/v1alpha/project_service_client.d.ts +144 -144
- package/build/src/v1alpha/project_service_client.js +209 -197
- package/build/src/v1alpha/project_service_proto_list.json +1 -0
- package/build/src/v1alpha/rank_service_client.d.ts +144 -144
- package/build/src/v1alpha/rank_service_client.js +202 -196
- package/build/src/v1alpha/rank_service_proto_list.json +1 -0
- package/build/src/v1alpha/recommendation_service_client.d.ts +144 -144
- package/build/src/v1alpha/recommendation_service_client.js +202 -196
- package/build/src/v1alpha/recommendation_service_proto_list.json +1 -0
- package/build/src/v1alpha/sample_query_service_client.d.ts +144 -144
- package/build/src/v1alpha/sample_query_service_client.js +221 -197
- package/build/src/v1alpha/sample_query_service_proto_list.json +1 -0
- package/build/src/v1alpha/sample_query_set_service_client.d.ts +144 -144
- package/build/src/v1alpha/sample_query_set_service_client.js +220 -196
- package/build/src/v1alpha/sample_query_set_service_proto_list.json +1 -0
- package/build/src/v1alpha/schema_service_client.d.ts +144 -144
- package/build/src/v1alpha/schema_service_client.js +203 -197
- package/build/src/v1alpha/schema_service_proto_list.json +1 -0
- package/build/src/v1alpha/search_service_client.d.ts +168 -186
- package/build/src/v1alpha/search_service_client.js +212 -224
- package/build/src/v1alpha/search_service_proto_list.json +1 -0
- package/build/src/v1alpha/search_tuning_service_client.d.ts +144 -144
- package/build/src/v1alpha/search_tuning_service_client.js +203 -197
- package/build/src/v1alpha/search_tuning_service_proto_list.json +1 -0
- package/build/src/v1alpha/serving_config_service_client.d.ts +144 -144
- package/build/src/v1alpha/serving_config_service_client.js +208 -196
- package/build/src/v1alpha/serving_config_service_proto_list.json +1 -0
- package/build/src/v1alpha/session_service_client.d.ts +2331 -0
- package/build/src/v1alpha/session_service_client.js +3161 -0
- package/build/src/v1alpha/session_service_client_config.json +68 -0
- package/build/src/v1alpha/session_service_proto_list.json +49 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +144 -144
- package/build/src/v1alpha/site_search_engine_service_client.js +215 -197
- package/build/src/v1alpha/site_search_engine_service_proto_list.json +1 -0
- package/build/src/v1alpha/user_event_service_client.d.ts +144 -144
- package/build/src/v1alpha/user_event_service_client.js +209 -197
- package/build/src/v1alpha/user_event_service_proto_list.json +1 -0
- package/build/src/v1beta/completion_service_client.d.ts +144 -144
- package/build/src/v1beta/completion_service_client.js +209 -197
- package/build/src/v1beta/completion_service_proto_list.json +1 -0
- package/build/src/v1beta/control_service_client.d.ts +144 -144
- package/build/src/v1beta/control_service_client.js +220 -196
- package/build/src/v1beta/control_service_proto_list.json +1 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +215 -161
- package/build/src/v1beta/conversational_search_service_client.js +308 -208
- package/build/src/v1beta/conversational_search_service_proto_list.json +1 -0
- package/build/src/v1beta/data_store_service_client.d.ts +144 -144
- package/build/src/v1beta/data_store_service_client.js +209 -197
- package/build/src/v1beta/data_store_service_proto_list.json +1 -0
- package/build/src/v1beta/document_service_client.d.ts +144 -144
- package/build/src/v1beta/document_service_client.js +227 -197
- package/build/src/v1beta/document_service_proto_list.json +1 -0
- package/build/src/v1beta/engine_service_client.d.ts +144 -144
- package/build/src/v1beta/engine_service_client.js +221 -197
- package/build/src/v1beta/engine_service_proto_list.json +1 -0
- package/build/src/v1beta/evaluation_service_client.d.ts +144 -144
- package/build/src/v1beta/evaluation_service_client.js +203 -197
- package/build/src/v1beta/evaluation_service_proto_list.json +1 -0
- package/build/src/v1beta/gapic_metadata.json +68 -0
- package/build/src/v1beta/grounded_generation_service_client.d.ts +144 -144
- package/build/src/v1beta/grounded_generation_service_client.js +208 -196
- package/build/src/v1beta/grounded_generation_service_proto_list.json +1 -0
- package/build/src/v1beta/index.d.ts +1 -0
- package/build/src/v1beta/index.js +3 -1
- package/build/src/v1beta/project_service_client.d.ts +144 -144
- package/build/src/v1beta/project_service_client.js +197 -197
- package/build/src/v1beta/project_service_proto_list.json +1 -0
- package/build/src/v1beta/rank_service_client.d.ts +144 -144
- package/build/src/v1beta/rank_service_client.js +202 -196
- package/build/src/v1beta/rank_service_proto_list.json +1 -0
- package/build/src/v1beta/recommendation_service_client.d.ts +144 -144
- package/build/src/v1beta/recommendation_service_client.js +202 -196
- package/build/src/v1beta/recommendation_service_proto_list.json +1 -0
- package/build/src/v1beta/sample_query_service_client.d.ts +144 -144
- package/build/src/v1beta/sample_query_service_client.js +221 -197
- package/build/src/v1beta/sample_query_service_proto_list.json +1 -0
- package/build/src/v1beta/sample_query_set_service_client.d.ts +144 -144
- package/build/src/v1beta/sample_query_set_service_client.js +220 -196
- package/build/src/v1beta/sample_query_set_service_proto_list.json +1 -0
- package/build/src/v1beta/schema_service_client.d.ts +144 -144
- package/build/src/v1beta/schema_service_client.js +203 -197
- package/build/src/v1beta/schema_service_proto_list.json +1 -0
- package/build/src/v1beta/search_service_client.d.ts +192 -228
- package/build/src/v1beta/search_service_client.js +228 -252
- package/build/src/v1beta/search_service_proto_list.json +1 -0
- package/build/src/v1beta/search_tuning_service_client.d.ts +144 -144
- package/build/src/v1beta/search_tuning_service_client.js +203 -197
- package/build/src/v1beta/search_tuning_service_proto_list.json +1 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +144 -144
- package/build/src/v1beta/serving_config_service_client.js +208 -196
- package/build/src/v1beta/serving_config_service_proto_list.json +1 -0
- package/build/src/v1beta/session_service_client.d.ts +2266 -0
- package/build/src/v1beta/session_service_client.js +3136 -0
- package/build/src/v1beta/session_service_client_config.json +63 -0
- package/build/src/v1beta/session_service_proto_list.json +45 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +144 -144
- package/build/src/v1beta/site_search_engine_service_client.js +215 -197
- package/build/src/v1beta/site_search_engine_service_proto_list.json +1 -0
- package/build/src/v1beta/user_event_service_client.d.ts +144 -144
- package/build/src/v1beta/user_event_service_client.js +209 -197
- package/build/src/v1beta/user_event_service_proto_list.json +1 -0
- package/package.json +7 -7
- package/CHANGELOG.md +0 -274
@@ -179,16 +179,16 @@ class DocumentServiceClient {
|
|
179
179
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
180
180
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
181
181
|
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
182
|
-
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
183
182
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
183
|
+
projectLocationCollectionDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
184
184
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
185
185
|
projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
186
186
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
187
187
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
188
188
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
189
189
|
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
190
|
-
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
191
190
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
191
|
+
projectLocationCollectionEngineSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
192
192
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
193
193
|
projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
|
194
194
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
@@ -199,8 +199,8 @@ class DocumentServiceClient {
|
|
199
199
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
200
200
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
201
201
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
202
|
-
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
203
202
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
203
|
+
projectLocationDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
204
204
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
205
205
|
projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
206
206
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
@@ -213,7 +213,7 @@ class DocumentServiceClient {
|
|
213
213
|
this.descriptors.page = {
|
214
214
|
listDocuments: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'documents')
|
215
215
|
};
|
216
|
-
const protoFilesRoot = this._gaxModule.
|
216
|
+
const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
|
217
217
|
// This API contains "long-running operations", which return a
|
218
218
|
// an Operation object that allows for tracking of the operation,
|
219
219
|
// rather than holding a request open.
|
@@ -377,6 +377,12 @@ class DocumentServiceClient {
|
|
377
377
|
?.then(([response, options, rawResponse]) => {
|
378
378
|
this._log.info('getDocument response %j', response);
|
379
379
|
return [response, options, rawResponse];
|
380
|
+
}).catch((error) => {
|
381
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
382
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
383
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
384
|
+
}
|
385
|
+
throw error;
|
380
386
|
});
|
381
387
|
}
|
382
388
|
createDocument(request, optionsOrCallback, callback) {
|
@@ -407,6 +413,12 @@ class DocumentServiceClient {
|
|
407
413
|
?.then(([response, options, rawResponse]) => {
|
408
414
|
this._log.info('createDocument response %j', response);
|
409
415
|
return [response, options, rawResponse];
|
416
|
+
}).catch((error) => {
|
417
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
418
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
419
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
420
|
+
}
|
421
|
+
throw error;
|
410
422
|
});
|
411
423
|
}
|
412
424
|
updateDocument(request, optionsOrCallback, callback) {
|
@@ -437,6 +449,12 @@ class DocumentServiceClient {
|
|
437
449
|
?.then(([response, options, rawResponse]) => {
|
438
450
|
this._log.info('updateDocument response %j', response);
|
439
451
|
return [response, options, rawResponse];
|
452
|
+
}).catch((error) => {
|
453
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
454
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
455
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
456
|
+
}
|
457
|
+
throw error;
|
440
458
|
});
|
441
459
|
}
|
442
460
|
deleteDocument(request, optionsOrCallback, callback) {
|
@@ -467,6 +485,12 @@ class DocumentServiceClient {
|
|
467
485
|
?.then(([response, options, rawResponse]) => {
|
468
486
|
this._log.info('deleteDocument response %j', response);
|
469
487
|
return [response, options, rawResponse];
|
488
|
+
}).catch((error) => {
|
489
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
490
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
491
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
492
|
+
}
|
493
|
+
throw error;
|
470
494
|
});
|
471
495
|
}
|
472
496
|
batchGetDocumentsMetadata(request, optionsOrCallback, callback) {
|
@@ -497,6 +521,12 @@ class DocumentServiceClient {
|
|
497
521
|
?.then(([response, options, rawResponse]) => {
|
498
522
|
this._log.info('batchGetDocumentsMetadata response %j', response);
|
499
523
|
return [response, options, rawResponse];
|
524
|
+
}).catch((error) => {
|
525
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
526
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
527
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
528
|
+
}
|
529
|
+
throw error;
|
500
530
|
});
|
501
531
|
}
|
502
532
|
importDocuments(request, optionsOrCallback, callback) {
|
@@ -1850,154 +1880,154 @@ class DocumentServiceClient {
|
|
1850
1880
|
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1851
1881
|
}
|
1852
1882
|
/**
|
1853
|
-
* Return a fully-qualified
|
1883
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
|
1854
1884
|
*
|
1855
1885
|
* @param {string} project
|
1856
1886
|
* @param {string} location
|
1857
1887
|
* @param {string} collection
|
1858
1888
|
* @param {string} data_store
|
1859
1889
|
* @param {string} session
|
1890
|
+
* @param {string} answer
|
1860
1891
|
* @returns {string} Resource name string.
|
1861
1892
|
*/
|
1862
|
-
|
1863
|
-
return this.pathTemplates.
|
1893
|
+
projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
|
1894
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
|
1864
1895
|
project: project,
|
1865
1896
|
location: location,
|
1866
1897
|
collection: collection,
|
1867
1898
|
data_store: dataStore,
|
1868
1899
|
session: session,
|
1900
|
+
answer: answer,
|
1869
1901
|
});
|
1870
1902
|
}
|
1871
1903
|
/**
|
1872
|
-
* Parse the project from
|
1904
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1873
1905
|
*
|
1874
|
-
* @param {string}
|
1875
|
-
* A fully-qualified path representing
|
1906
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1907
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1876
1908
|
* @returns {string} A string representing the project.
|
1877
1909
|
*/
|
1878
|
-
|
1879
|
-
return this.pathTemplates.
|
1910
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1911
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
|
1880
1912
|
}
|
1881
1913
|
/**
|
1882
|
-
* Parse the location from
|
1914
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1883
1915
|
*
|
1884
|
-
* @param {string}
|
1885
|
-
* A fully-qualified path representing
|
1916
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1917
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1886
1918
|
* @returns {string} A string representing the location.
|
1887
1919
|
*/
|
1888
|
-
|
1889
|
-
return this.pathTemplates.
|
1920
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1921
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
|
1890
1922
|
}
|
1891
1923
|
/**
|
1892
|
-
* Parse the collection from
|
1924
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1893
1925
|
*
|
1894
|
-
* @param {string}
|
1895
|
-
* A fully-qualified path representing
|
1926
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1927
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1896
1928
|
* @returns {string} A string representing the collection.
|
1897
1929
|
*/
|
1898
|
-
|
1899
|
-
return this.pathTemplates.
|
1930
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1931
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
|
1900
1932
|
}
|
1901
1933
|
/**
|
1902
|
-
* Parse the data_store from
|
1934
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1903
1935
|
*
|
1904
|
-
* @param {string}
|
1905
|
-
* A fully-qualified path representing
|
1936
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1937
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1906
1938
|
* @returns {string} A string representing the data_store.
|
1907
1939
|
*/
|
1908
|
-
|
1909
|
-
return this.pathTemplates.
|
1940
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1941
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
|
1910
1942
|
}
|
1911
1943
|
/**
|
1912
|
-
* Parse the session from
|
1944
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1913
1945
|
*
|
1914
|
-
* @param {string}
|
1915
|
-
* A fully-qualified path representing
|
1946
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1947
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1916
1948
|
* @returns {string} A string representing the session.
|
1917
1949
|
*/
|
1918
|
-
|
1919
|
-
return this.pathTemplates.
|
1950
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1951
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
|
1920
1952
|
}
|
1921
1953
|
/**
|
1922
|
-
*
|
1954
|
+
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1955
|
+
*
|
1956
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1957
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1958
|
+
* @returns {string} A string representing the answer.
|
1959
|
+
*/
|
1960
|
+
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1961
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1962
|
+
}
|
1963
|
+
/**
|
1964
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
|
1923
1965
|
*
|
1924
1966
|
* @param {string} project
|
1925
1967
|
* @param {string} location
|
1926
1968
|
* @param {string} collection
|
1927
1969
|
* @param {string} data_store
|
1928
1970
|
* @param {string} session
|
1929
|
-
* @param {string} answer
|
1930
1971
|
* @returns {string} Resource name string.
|
1931
1972
|
*/
|
1932
|
-
|
1933
|
-
return this.pathTemplates.
|
1973
|
+
projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
|
1974
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
|
1934
1975
|
project: project,
|
1935
1976
|
location: location,
|
1936
1977
|
collection: collection,
|
1937
1978
|
data_store: dataStore,
|
1938
1979
|
session: session,
|
1939
|
-
answer: answer,
|
1940
1980
|
});
|
1941
1981
|
}
|
1942
1982
|
/**
|
1943
|
-
* Parse the project from
|
1983
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessions resource.
|
1944
1984
|
*
|
1945
|
-
* @param {string}
|
1946
|
-
* A fully-qualified path representing
|
1985
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1986
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1947
1987
|
* @returns {string} A string representing the project.
|
1948
1988
|
*/
|
1949
|
-
|
1950
|
-
return this.pathTemplates.
|
1989
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1990
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
|
1951
1991
|
}
|
1952
1992
|
/**
|
1953
|
-
* Parse the location from
|
1993
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessions resource.
|
1954
1994
|
*
|
1955
|
-
* @param {string}
|
1956
|
-
* A fully-qualified path representing
|
1995
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1996
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1957
1997
|
* @returns {string} A string representing the location.
|
1958
1998
|
*/
|
1959
|
-
|
1960
|
-
return this.pathTemplates.
|
1999
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2000
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
|
1961
2001
|
}
|
1962
2002
|
/**
|
1963
|
-
* Parse the collection from
|
2003
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
|
1964
2004
|
*
|
1965
|
-
* @param {string}
|
1966
|
-
* A fully-qualified path representing
|
2005
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2006
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1967
2007
|
* @returns {string} A string representing the collection.
|
1968
2008
|
*/
|
1969
|
-
|
1970
|
-
return this.pathTemplates.
|
2009
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2010
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
|
1971
2011
|
}
|
1972
2012
|
/**
|
1973
|
-
* Parse the data_store from
|
2013
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
|
1974
2014
|
*
|
1975
|
-
* @param {string}
|
1976
|
-
* A fully-qualified path representing
|
2015
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2016
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1977
2017
|
* @returns {string} A string representing the data_store.
|
1978
2018
|
*/
|
1979
|
-
|
1980
|
-
return this.pathTemplates.
|
2019
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2020
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
|
1981
2021
|
}
|
1982
2022
|
/**
|
1983
|
-
* Parse the session from
|
2023
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessions resource.
|
1984
2024
|
*
|
1985
|
-
* @param {string}
|
1986
|
-
* A fully-qualified path representing
|
2025
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2026
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1987
2027
|
* @returns {string} A string representing the session.
|
1988
2028
|
*/
|
1989
|
-
|
1990
|
-
return this.pathTemplates.
|
1991
|
-
}
|
1992
|
-
/**
|
1993
|
-
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1994
|
-
*
|
1995
|
-
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1996
|
-
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1997
|
-
* @returns {string} A string representing the answer.
|
1998
|
-
*/
|
1999
|
-
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
2000
|
-
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
2029
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2030
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
|
2001
2031
|
}
|
2002
2032
|
/**
|
2003
2033
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
@@ -2402,154 +2432,154 @@ class DocumentServiceClient {
|
|
2402
2432
|
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
2403
2433
|
}
|
2404
2434
|
/**
|
2405
|
-
* Return a fully-qualified
|
2435
|
+
* Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
|
2406
2436
|
*
|
2407
2437
|
* @param {string} project
|
2408
2438
|
* @param {string} location
|
2409
2439
|
* @param {string} collection
|
2410
2440
|
* @param {string} engine
|
2411
2441
|
* @param {string} session
|
2442
|
+
* @param {string} answer
|
2412
2443
|
* @returns {string} Resource name string.
|
2413
2444
|
*/
|
2414
|
-
|
2415
|
-
return this.pathTemplates.
|
2445
|
+
projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
|
2446
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
|
2416
2447
|
project: project,
|
2417
2448
|
location: location,
|
2418
2449
|
collection: collection,
|
2419
2450
|
engine: engine,
|
2420
2451
|
session: session,
|
2452
|
+
answer: answer,
|
2421
2453
|
});
|
2422
2454
|
}
|
2423
2455
|
/**
|
2424
|
-
* Parse the project from
|
2456
|
+
* Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
|
2425
2457
|
*
|
2426
|
-
* @param {string}
|
2427
|
-
* A fully-qualified path representing
|
2458
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2459
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2428
2460
|
* @returns {string} A string representing the project.
|
2429
2461
|
*/
|
2430
|
-
|
2431
|
-
return this.pathTemplates.
|
2462
|
+
matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2463
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
|
2432
2464
|
}
|
2433
2465
|
/**
|
2434
|
-
* Parse the location from
|
2466
|
+
* Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
|
2435
2467
|
*
|
2436
|
-
* @param {string}
|
2437
|
-
* A fully-qualified path representing
|
2468
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2469
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2438
2470
|
* @returns {string} A string representing the location.
|
2439
2471
|
*/
|
2440
|
-
|
2441
|
-
return this.pathTemplates.
|
2472
|
+
matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2473
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
|
2442
2474
|
}
|
2443
2475
|
/**
|
2444
|
-
* Parse the collection from
|
2476
|
+
* Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
|
2445
2477
|
*
|
2446
|
-
* @param {string}
|
2447
|
-
* A fully-qualified path representing
|
2478
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2479
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2448
2480
|
* @returns {string} A string representing the collection.
|
2449
2481
|
*/
|
2450
|
-
|
2451
|
-
return this.pathTemplates.
|
2482
|
+
matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2483
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
|
2452
2484
|
}
|
2453
2485
|
/**
|
2454
|
-
* Parse the engine from
|
2486
|
+
* Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
|
2455
2487
|
*
|
2456
|
-
* @param {string}
|
2457
|
-
* A fully-qualified path representing
|
2488
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2489
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2458
2490
|
* @returns {string} A string representing the engine.
|
2459
2491
|
*/
|
2460
|
-
|
2461
|
-
return this.pathTemplates.
|
2492
|
+
matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2493
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
|
2462
2494
|
}
|
2463
2495
|
/**
|
2464
|
-
* Parse the session from
|
2496
|
+
* Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
|
2465
2497
|
*
|
2466
|
-
* @param {string}
|
2467
|
-
* A fully-qualified path representing
|
2498
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2499
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2468
2500
|
* @returns {string} A string representing the session.
|
2469
2501
|
*/
|
2470
|
-
|
2471
|
-
return this.pathTemplates.
|
2502
|
+
matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2503
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
|
2472
2504
|
}
|
2473
2505
|
/**
|
2474
|
-
*
|
2506
|
+
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
2507
|
+
*
|
2508
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2509
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2510
|
+
* @returns {string} A string representing the answer.
|
2511
|
+
*/
|
2512
|
+
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2513
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
2514
|
+
}
|
2515
|
+
/**
|
2516
|
+
* Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
|
2475
2517
|
*
|
2476
2518
|
* @param {string} project
|
2477
2519
|
* @param {string} location
|
2478
2520
|
* @param {string} collection
|
2479
2521
|
* @param {string} engine
|
2480
2522
|
* @param {string} session
|
2481
|
-
* @param {string} answer
|
2482
2523
|
* @returns {string} Resource name string.
|
2483
2524
|
*/
|
2484
|
-
|
2485
|
-
return this.pathTemplates.
|
2525
|
+
projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
|
2526
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
|
2486
2527
|
project: project,
|
2487
2528
|
location: location,
|
2488
2529
|
collection: collection,
|
2489
2530
|
engine: engine,
|
2490
2531
|
session: session,
|
2491
|
-
answer: answer,
|
2492
2532
|
});
|
2493
2533
|
}
|
2494
2534
|
/**
|
2495
|
-
* Parse the project from
|
2535
|
+
* Parse the project from ProjectLocationCollectionEngineSessions resource.
|
2496
2536
|
*
|
2497
|
-
* @param {string}
|
2498
|
-
* A fully-qualified path representing
|
2537
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2538
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2499
2539
|
* @returns {string} A string representing the project.
|
2500
2540
|
*/
|
2501
|
-
|
2502
|
-
return this.pathTemplates.
|
2541
|
+
matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2542
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
|
2503
2543
|
}
|
2504
2544
|
/**
|
2505
|
-
* Parse the location from
|
2545
|
+
* Parse the location from ProjectLocationCollectionEngineSessions resource.
|
2506
2546
|
*
|
2507
|
-
* @param {string}
|
2508
|
-
* A fully-qualified path representing
|
2547
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2548
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2509
2549
|
* @returns {string} A string representing the location.
|
2510
2550
|
*/
|
2511
|
-
|
2512
|
-
return this.pathTemplates.
|
2551
|
+
matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2552
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
|
2513
2553
|
}
|
2514
2554
|
/**
|
2515
|
-
* Parse the collection from
|
2555
|
+
* Parse the collection from ProjectLocationCollectionEngineSessions resource.
|
2516
2556
|
*
|
2517
|
-
* @param {string}
|
2518
|
-
* A fully-qualified path representing
|
2557
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2558
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2519
2559
|
* @returns {string} A string representing the collection.
|
2520
2560
|
*/
|
2521
|
-
|
2522
|
-
return this.pathTemplates.
|
2561
|
+
matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2562
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
|
2523
2563
|
}
|
2524
2564
|
/**
|
2525
|
-
* Parse the engine from
|
2565
|
+
* Parse the engine from ProjectLocationCollectionEngineSessions resource.
|
2526
2566
|
*
|
2527
|
-
* @param {string}
|
2528
|
-
* A fully-qualified path representing
|
2567
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2568
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2529
2569
|
* @returns {string} A string representing the engine.
|
2530
2570
|
*/
|
2531
|
-
|
2532
|
-
return this.pathTemplates.
|
2571
|
+
matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2572
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
|
2533
2573
|
}
|
2534
2574
|
/**
|
2535
|
-
* Parse the session from
|
2575
|
+
* Parse the session from ProjectLocationCollectionEngineSessions resource.
|
2536
2576
|
*
|
2537
|
-
* @param {string}
|
2538
|
-
* A fully-qualified path representing
|
2577
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2578
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2539
2579
|
* @returns {string} A string representing the session.
|
2540
2580
|
*/
|
2541
|
-
|
2542
|
-
return this.pathTemplates.
|
2543
|
-
}
|
2544
|
-
/**
|
2545
|
-
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
2546
|
-
*
|
2547
|
-
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2548
|
-
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2549
|
-
* @returns {string} A string representing the answer.
|
2550
|
-
*/
|
2551
|
-
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2552
|
-
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
2581
|
+
matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2582
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
|
2553
2583
|
}
|
2554
2584
|
/**
|
2555
2585
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
@@ -3133,63 +3163,6 @@ class DocumentServiceClient {
|
|
3133
3163
|
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
3134
3164
|
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
3135
3165
|
}
|
3136
|
-
/**
|
3137
|
-
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
3138
|
-
*
|
3139
|
-
* @param {string} project
|
3140
|
-
* @param {string} location
|
3141
|
-
* @param {string} data_store
|
3142
|
-
* @param {string} session
|
3143
|
-
* @returns {string} Resource name string.
|
3144
|
-
*/
|
3145
|
-
projectLocationDataStoreSessionPath(project, location, dataStore, session) {
|
3146
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
|
3147
|
-
project: project,
|
3148
|
-
location: location,
|
3149
|
-
data_store: dataStore,
|
3150
|
-
session: session,
|
3151
|
-
});
|
3152
|
-
}
|
3153
|
-
/**
|
3154
|
-
* Parse the project from ProjectLocationDataStoreSession resource.
|
3155
|
-
*
|
3156
|
-
* @param {string} projectLocationDataStoreSessionName
|
3157
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3158
|
-
* @returns {string} A string representing the project.
|
3159
|
-
*/
|
3160
|
-
matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3161
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
|
3162
|
-
}
|
3163
|
-
/**
|
3164
|
-
* Parse the location from ProjectLocationDataStoreSession resource.
|
3165
|
-
*
|
3166
|
-
* @param {string} projectLocationDataStoreSessionName
|
3167
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3168
|
-
* @returns {string} A string representing the location.
|
3169
|
-
*/
|
3170
|
-
matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3171
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
|
3172
|
-
}
|
3173
|
-
/**
|
3174
|
-
* Parse the data_store from ProjectLocationDataStoreSession resource.
|
3175
|
-
*
|
3176
|
-
* @param {string} projectLocationDataStoreSessionName
|
3177
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3178
|
-
* @returns {string} A string representing the data_store.
|
3179
|
-
*/
|
3180
|
-
matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3181
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
|
3182
|
-
}
|
3183
|
-
/**
|
3184
|
-
* Parse the session from ProjectLocationDataStoreSession resource.
|
3185
|
-
*
|
3186
|
-
* @param {string} projectLocationDataStoreSessionName
|
3187
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3188
|
-
* @returns {string} A string representing the session.
|
3189
|
-
*/
|
3190
|
-
matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3191
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
|
3192
|
-
}
|
3193
3166
|
/**
|
3194
3167
|
* Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
|
3195
3168
|
*
|
@@ -3259,6 +3232,63 @@ class DocumentServiceClient {
|
|
3259
3232
|
matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
3260
3233
|
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
|
3261
3234
|
}
|
3235
|
+
/**
|
3236
|
+
* Return a fully-qualified projectLocationDataStoreSessions resource name string.
|
3237
|
+
*
|
3238
|
+
* @param {string} project
|
3239
|
+
* @param {string} location
|
3240
|
+
* @param {string} data_store
|
3241
|
+
* @param {string} session
|
3242
|
+
* @returns {string} Resource name string.
|
3243
|
+
*/
|
3244
|
+
projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
|
3245
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
|
3246
|
+
project: project,
|
3247
|
+
location: location,
|
3248
|
+
data_store: dataStore,
|
3249
|
+
session: session,
|
3250
|
+
});
|
3251
|
+
}
|
3252
|
+
/**
|
3253
|
+
* Parse the project from ProjectLocationDataStoreSessions resource.
|
3254
|
+
*
|
3255
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3256
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3257
|
+
* @returns {string} A string representing the project.
|
3258
|
+
*/
|
3259
|
+
matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3260
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
|
3261
|
+
}
|
3262
|
+
/**
|
3263
|
+
* Parse the location from ProjectLocationDataStoreSessions resource.
|
3264
|
+
*
|
3265
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3266
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3267
|
+
* @returns {string} A string representing the location.
|
3268
|
+
*/
|
3269
|
+
matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3270
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
|
3271
|
+
}
|
3272
|
+
/**
|
3273
|
+
* Parse the data_store from ProjectLocationDataStoreSessions resource.
|
3274
|
+
*
|
3275
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3276
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3277
|
+
* @returns {string} A string representing the data_store.
|
3278
|
+
*/
|
3279
|
+
matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3280
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
|
3281
|
+
}
|
3282
|
+
/**
|
3283
|
+
* Parse the session from ProjectLocationDataStoreSessions resource.
|
3284
|
+
*
|
3285
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3286
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3287
|
+
* @returns {string} A string representing the session.
|
3288
|
+
*/
|
3289
|
+
matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3290
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
|
3291
|
+
}
|
3262
3292
|
/**
|
3263
3293
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
3264
3294
|
*
|