@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,15 +179,15 @@ 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
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
186
186
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
187
187
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
188
188
|
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
189
|
-
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
190
189
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
190
|
+
projectLocationCollectionEngineSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
191
191
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
192
192
|
projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
|
193
193
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
@@ -198,8 +198,8 @@ class DocumentServiceClient {
|
|
198
198
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
199
199
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
200
200
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
201
|
-
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
202
201
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
202
|
+
projectLocationDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
203
203
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
204
204
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
205
205
|
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
@@ -211,7 +211,7 @@ class DocumentServiceClient {
|
|
211
211
|
this.descriptors.page = {
|
212
212
|
listDocuments: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'documents')
|
213
213
|
};
|
214
|
-
const protoFilesRoot = this._gaxModule.
|
214
|
+
const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
|
215
215
|
// This API contains "long-running operations", which return a
|
216
216
|
// an Operation object that allows for tracking of the operation,
|
217
217
|
// rather than holding a request open.
|
@@ -375,6 +375,12 @@ class DocumentServiceClient {
|
|
375
375
|
?.then(([response, options, rawResponse]) => {
|
376
376
|
this._log.info('getDocument response %j', response);
|
377
377
|
return [response, options, rawResponse];
|
378
|
+
}).catch((error) => {
|
379
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
380
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
381
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
382
|
+
}
|
383
|
+
throw error;
|
378
384
|
});
|
379
385
|
}
|
380
386
|
createDocument(request, optionsOrCallback, callback) {
|
@@ -405,6 +411,12 @@ class DocumentServiceClient {
|
|
405
411
|
?.then(([response, options, rawResponse]) => {
|
406
412
|
this._log.info('createDocument response %j', response);
|
407
413
|
return [response, options, rawResponse];
|
414
|
+
}).catch((error) => {
|
415
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
416
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
417
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
418
|
+
}
|
419
|
+
throw error;
|
408
420
|
});
|
409
421
|
}
|
410
422
|
updateDocument(request, optionsOrCallback, callback) {
|
@@ -435,6 +447,12 @@ class DocumentServiceClient {
|
|
435
447
|
?.then(([response, options, rawResponse]) => {
|
436
448
|
this._log.info('updateDocument response %j', response);
|
437
449
|
return [response, options, rawResponse];
|
450
|
+
}).catch((error) => {
|
451
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
452
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
453
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
454
|
+
}
|
455
|
+
throw error;
|
438
456
|
});
|
439
457
|
}
|
440
458
|
deleteDocument(request, optionsOrCallback, callback) {
|
@@ -465,6 +483,12 @@ class DocumentServiceClient {
|
|
465
483
|
?.then(([response, options, rawResponse]) => {
|
466
484
|
this._log.info('deleteDocument response %j', response);
|
467
485
|
return [response, options, rawResponse];
|
486
|
+
}).catch((error) => {
|
487
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
488
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
489
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
490
|
+
}
|
491
|
+
throw error;
|
468
492
|
});
|
469
493
|
}
|
470
494
|
getProcessedDocument(request, optionsOrCallback, callback) {
|
@@ -495,6 +519,12 @@ class DocumentServiceClient {
|
|
495
519
|
?.then(([response, options, rawResponse]) => {
|
496
520
|
this._log.info('getProcessedDocument response %j', response);
|
497
521
|
return [response, options, rawResponse];
|
522
|
+
}).catch((error) => {
|
523
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
524
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
525
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
526
|
+
}
|
527
|
+
throw error;
|
498
528
|
});
|
499
529
|
}
|
500
530
|
batchGetDocumentsMetadata(request, optionsOrCallback, callback) {
|
@@ -525,6 +555,12 @@ class DocumentServiceClient {
|
|
525
555
|
?.then(([response, options, rawResponse]) => {
|
526
556
|
this._log.info('batchGetDocumentsMetadata response %j', response);
|
527
557
|
return [response, options, rawResponse];
|
558
|
+
}).catch((error) => {
|
559
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
560
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
561
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
562
|
+
}
|
563
|
+
throw error;
|
528
564
|
});
|
529
565
|
}
|
530
566
|
importDocuments(request, optionsOrCallback, callback) {
|
@@ -1868,154 +1904,154 @@ class DocumentServiceClient {
|
|
1868
1904
|
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1869
1905
|
}
|
1870
1906
|
/**
|
1871
|
-
* Return a fully-qualified
|
1907
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
|
1872
1908
|
*
|
1873
1909
|
* @param {string} project
|
1874
1910
|
* @param {string} location
|
1875
1911
|
* @param {string} collection
|
1876
1912
|
* @param {string} data_store
|
1877
1913
|
* @param {string} session
|
1914
|
+
* @param {string} answer
|
1878
1915
|
* @returns {string} Resource name string.
|
1879
1916
|
*/
|
1880
|
-
|
1881
|
-
return this.pathTemplates.
|
1917
|
+
projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
|
1918
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
|
1882
1919
|
project: project,
|
1883
1920
|
location: location,
|
1884
1921
|
collection: collection,
|
1885
1922
|
data_store: dataStore,
|
1886
1923
|
session: session,
|
1924
|
+
answer: answer,
|
1887
1925
|
});
|
1888
1926
|
}
|
1889
1927
|
/**
|
1890
|
-
* Parse the project from
|
1928
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1891
1929
|
*
|
1892
|
-
* @param {string}
|
1893
|
-
* A fully-qualified path representing
|
1930
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1931
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1894
1932
|
* @returns {string} A string representing the project.
|
1895
1933
|
*/
|
1896
|
-
|
1897
|
-
return this.pathTemplates.
|
1934
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1935
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
|
1898
1936
|
}
|
1899
1937
|
/**
|
1900
|
-
* Parse the location from
|
1938
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1901
1939
|
*
|
1902
|
-
* @param {string}
|
1903
|
-
* A fully-qualified path representing
|
1940
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1941
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1904
1942
|
* @returns {string} A string representing the location.
|
1905
1943
|
*/
|
1906
|
-
|
1907
|
-
return this.pathTemplates.
|
1944
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1945
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
|
1908
1946
|
}
|
1909
1947
|
/**
|
1910
|
-
* Parse the collection from
|
1948
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1911
1949
|
*
|
1912
|
-
* @param {string}
|
1913
|
-
* A fully-qualified path representing
|
1950
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1951
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1914
1952
|
* @returns {string} A string representing the collection.
|
1915
1953
|
*/
|
1916
|
-
|
1917
|
-
return this.pathTemplates.
|
1954
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1955
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
|
1918
1956
|
}
|
1919
1957
|
/**
|
1920
|
-
* Parse the data_store from
|
1958
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1921
1959
|
*
|
1922
|
-
* @param {string}
|
1923
|
-
* A fully-qualified path representing
|
1960
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1961
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1924
1962
|
* @returns {string} A string representing the data_store.
|
1925
1963
|
*/
|
1926
|
-
|
1927
|
-
return this.pathTemplates.
|
1964
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1965
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
|
1928
1966
|
}
|
1929
1967
|
/**
|
1930
|
-
* Parse the session from
|
1968
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1931
1969
|
*
|
1932
|
-
* @param {string}
|
1933
|
-
* A fully-qualified path representing
|
1970
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1971
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1934
1972
|
* @returns {string} A string representing the session.
|
1935
1973
|
*/
|
1936
|
-
|
1937
|
-
return this.pathTemplates.
|
1974
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1975
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
|
1938
1976
|
}
|
1939
1977
|
/**
|
1940
|
-
*
|
1978
|
+
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1979
|
+
*
|
1980
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1981
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1982
|
+
* @returns {string} A string representing the answer.
|
1983
|
+
*/
|
1984
|
+
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1985
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1986
|
+
}
|
1987
|
+
/**
|
1988
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
|
1941
1989
|
*
|
1942
1990
|
* @param {string} project
|
1943
1991
|
* @param {string} location
|
1944
1992
|
* @param {string} collection
|
1945
1993
|
* @param {string} data_store
|
1946
1994
|
* @param {string} session
|
1947
|
-
* @param {string} answer
|
1948
1995
|
* @returns {string} Resource name string.
|
1949
1996
|
*/
|
1950
|
-
|
1951
|
-
return this.pathTemplates.
|
1997
|
+
projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
|
1998
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
|
1952
1999
|
project: project,
|
1953
2000
|
location: location,
|
1954
2001
|
collection: collection,
|
1955
2002
|
data_store: dataStore,
|
1956
2003
|
session: session,
|
1957
|
-
answer: answer,
|
1958
2004
|
});
|
1959
2005
|
}
|
1960
2006
|
/**
|
1961
|
-
* Parse the project from
|
2007
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessions resource.
|
1962
2008
|
*
|
1963
|
-
* @param {string}
|
1964
|
-
* A fully-qualified path representing
|
2009
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2010
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1965
2011
|
* @returns {string} A string representing the project.
|
1966
2012
|
*/
|
1967
|
-
|
1968
|
-
return this.pathTemplates.
|
2013
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2014
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
|
1969
2015
|
}
|
1970
2016
|
/**
|
1971
|
-
* Parse the location from
|
2017
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessions resource.
|
1972
2018
|
*
|
1973
|
-
* @param {string}
|
1974
|
-
* A fully-qualified path representing
|
2019
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2020
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1975
2021
|
* @returns {string} A string representing the location.
|
1976
2022
|
*/
|
1977
|
-
|
1978
|
-
return this.pathTemplates.
|
2023
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2024
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
|
1979
2025
|
}
|
1980
2026
|
/**
|
1981
|
-
* Parse the collection from
|
2027
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
|
1982
2028
|
*
|
1983
|
-
* @param {string}
|
1984
|
-
* A fully-qualified path representing
|
2029
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2030
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1985
2031
|
* @returns {string} A string representing the collection.
|
1986
2032
|
*/
|
1987
|
-
|
1988
|
-
return this.pathTemplates.
|
2033
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2034
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
|
1989
2035
|
}
|
1990
2036
|
/**
|
1991
|
-
* Parse the data_store from
|
2037
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
|
1992
2038
|
*
|
1993
|
-
* @param {string}
|
1994
|
-
* A fully-qualified path representing
|
2039
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2040
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1995
2041
|
* @returns {string} A string representing the data_store.
|
1996
2042
|
*/
|
1997
|
-
|
1998
|
-
return this.pathTemplates.
|
2043
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2044
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
|
1999
2045
|
}
|
2000
2046
|
/**
|
2001
|
-
* Parse the session from
|
2047
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessions resource.
|
2002
2048
|
*
|
2003
|
-
* @param {string}
|
2004
|
-
* A fully-qualified path representing
|
2049
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2050
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
2005
2051
|
* @returns {string} A string representing the session.
|
2006
2052
|
*/
|
2007
|
-
|
2008
|
-
return this.pathTemplates.
|
2009
|
-
}
|
2010
|
-
/**
|
2011
|
-
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
2012
|
-
*
|
2013
|
-
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
2014
|
-
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
2015
|
-
* @returns {string} A string representing the answer.
|
2016
|
-
*/
|
2017
|
-
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
2018
|
-
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
2053
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2054
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
|
2019
2055
|
}
|
2020
2056
|
/**
|
2021
2057
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
@@ -2351,154 +2387,154 @@ class DocumentServiceClient {
|
|
2351
2387
|
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
2352
2388
|
}
|
2353
2389
|
/**
|
2354
|
-
* Return a fully-qualified
|
2390
|
+
* Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
|
2355
2391
|
*
|
2356
2392
|
* @param {string} project
|
2357
2393
|
* @param {string} location
|
2358
2394
|
* @param {string} collection
|
2359
2395
|
* @param {string} engine
|
2360
2396
|
* @param {string} session
|
2397
|
+
* @param {string} answer
|
2361
2398
|
* @returns {string} Resource name string.
|
2362
2399
|
*/
|
2363
|
-
|
2364
|
-
return this.pathTemplates.
|
2400
|
+
projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
|
2401
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
|
2365
2402
|
project: project,
|
2366
2403
|
location: location,
|
2367
2404
|
collection: collection,
|
2368
2405
|
engine: engine,
|
2369
2406
|
session: session,
|
2407
|
+
answer: answer,
|
2370
2408
|
});
|
2371
2409
|
}
|
2372
2410
|
/**
|
2373
|
-
* Parse the project from
|
2411
|
+
* Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
|
2374
2412
|
*
|
2375
|
-
* @param {string}
|
2376
|
-
* A fully-qualified path representing
|
2413
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2414
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2377
2415
|
* @returns {string} A string representing the project.
|
2378
2416
|
*/
|
2379
|
-
|
2380
|
-
return this.pathTemplates.
|
2417
|
+
matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2418
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
|
2381
2419
|
}
|
2382
2420
|
/**
|
2383
|
-
* Parse the location from
|
2421
|
+
* Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
|
2384
2422
|
*
|
2385
|
-
* @param {string}
|
2386
|
-
* A fully-qualified path representing
|
2423
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2424
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2387
2425
|
* @returns {string} A string representing the location.
|
2388
2426
|
*/
|
2389
|
-
|
2390
|
-
return this.pathTemplates.
|
2427
|
+
matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2428
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
|
2391
2429
|
}
|
2392
2430
|
/**
|
2393
|
-
* Parse the collection from
|
2431
|
+
* Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
|
2394
2432
|
*
|
2395
|
-
* @param {string}
|
2396
|
-
* A fully-qualified path representing
|
2433
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2434
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2397
2435
|
* @returns {string} A string representing the collection.
|
2398
2436
|
*/
|
2399
|
-
|
2400
|
-
return this.pathTemplates.
|
2437
|
+
matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2438
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
|
2401
2439
|
}
|
2402
2440
|
/**
|
2403
|
-
* Parse the engine from
|
2441
|
+
* Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
|
2404
2442
|
*
|
2405
|
-
* @param {string}
|
2406
|
-
* A fully-qualified path representing
|
2443
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2444
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2407
2445
|
* @returns {string} A string representing the engine.
|
2408
2446
|
*/
|
2409
|
-
|
2410
|
-
return this.pathTemplates.
|
2447
|
+
matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2448
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
|
2411
2449
|
}
|
2412
2450
|
/**
|
2413
|
-
* Parse the session from
|
2451
|
+
* Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
|
2414
2452
|
*
|
2415
|
-
* @param {string}
|
2416
|
-
* A fully-qualified path representing
|
2453
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2454
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2417
2455
|
* @returns {string} A string representing the session.
|
2418
2456
|
*/
|
2419
|
-
|
2420
|
-
return this.pathTemplates.
|
2457
|
+
matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2458
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
|
2421
2459
|
}
|
2422
2460
|
/**
|
2423
|
-
*
|
2461
|
+
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
2462
|
+
*
|
2463
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2464
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2465
|
+
* @returns {string} A string representing the answer.
|
2466
|
+
*/
|
2467
|
+
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2468
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
2469
|
+
}
|
2470
|
+
/**
|
2471
|
+
* Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
|
2424
2472
|
*
|
2425
2473
|
* @param {string} project
|
2426
2474
|
* @param {string} location
|
2427
2475
|
* @param {string} collection
|
2428
2476
|
* @param {string} engine
|
2429
2477
|
* @param {string} session
|
2430
|
-
* @param {string} answer
|
2431
2478
|
* @returns {string} Resource name string.
|
2432
2479
|
*/
|
2433
|
-
|
2434
|
-
return this.pathTemplates.
|
2480
|
+
projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
|
2481
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
|
2435
2482
|
project: project,
|
2436
2483
|
location: location,
|
2437
2484
|
collection: collection,
|
2438
2485
|
engine: engine,
|
2439
2486
|
session: session,
|
2440
|
-
answer: answer,
|
2441
2487
|
});
|
2442
2488
|
}
|
2443
2489
|
/**
|
2444
|
-
* Parse the project from
|
2490
|
+
* Parse the project from ProjectLocationCollectionEngineSessions resource.
|
2445
2491
|
*
|
2446
|
-
* @param {string}
|
2447
|
-
* A fully-qualified path representing
|
2492
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2493
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2448
2494
|
* @returns {string} A string representing the project.
|
2449
2495
|
*/
|
2450
|
-
|
2451
|
-
return this.pathTemplates.
|
2496
|
+
matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2497
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
|
2452
2498
|
}
|
2453
2499
|
/**
|
2454
|
-
* Parse the location from
|
2500
|
+
* Parse the location from ProjectLocationCollectionEngineSessions resource.
|
2455
2501
|
*
|
2456
|
-
* @param {string}
|
2457
|
-
* A fully-qualified path representing
|
2502
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2503
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2458
2504
|
* @returns {string} A string representing the location.
|
2459
2505
|
*/
|
2460
|
-
|
2461
|
-
return this.pathTemplates.
|
2506
|
+
matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2507
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
|
2462
2508
|
}
|
2463
2509
|
/**
|
2464
|
-
* Parse the collection from
|
2510
|
+
* Parse the collection from ProjectLocationCollectionEngineSessions resource.
|
2465
2511
|
*
|
2466
|
-
* @param {string}
|
2467
|
-
* A fully-qualified path representing
|
2512
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2513
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2468
2514
|
* @returns {string} A string representing the collection.
|
2469
2515
|
*/
|
2470
|
-
|
2471
|
-
return this.pathTemplates.
|
2516
|
+
matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2517
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
|
2472
2518
|
}
|
2473
2519
|
/**
|
2474
|
-
* Parse the engine from
|
2520
|
+
* Parse the engine from ProjectLocationCollectionEngineSessions resource.
|
2475
2521
|
*
|
2476
|
-
* @param {string}
|
2477
|
-
* A fully-qualified path representing
|
2522
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2523
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2478
2524
|
* @returns {string} A string representing the engine.
|
2479
2525
|
*/
|
2480
|
-
|
2481
|
-
return this.pathTemplates.
|
2526
|
+
matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2527
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
|
2482
2528
|
}
|
2483
2529
|
/**
|
2484
|
-
* Parse the session from
|
2530
|
+
* Parse the session from ProjectLocationCollectionEngineSessions resource.
|
2485
2531
|
*
|
2486
|
-
* @param {string}
|
2487
|
-
* A fully-qualified path representing
|
2532
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2533
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2488
2534
|
* @returns {string} A string representing the session.
|
2489
2535
|
*/
|
2490
|
-
|
2491
|
-
return this.pathTemplates.
|
2492
|
-
}
|
2493
|
-
/**
|
2494
|
-
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
2495
|
-
*
|
2496
|
-
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2497
|
-
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2498
|
-
* @returns {string} A string representing the answer.
|
2499
|
-
*/
|
2500
|
-
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2501
|
-
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
2536
|
+
matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2537
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
|
2502
2538
|
}
|
2503
2539
|
/**
|
2504
2540
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
@@ -3082,63 +3118,6 @@ class DocumentServiceClient {
|
|
3082
3118
|
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
3083
3119
|
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
3084
3120
|
}
|
3085
|
-
/**
|
3086
|
-
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
3087
|
-
*
|
3088
|
-
* @param {string} project
|
3089
|
-
* @param {string} location
|
3090
|
-
* @param {string} data_store
|
3091
|
-
* @param {string} session
|
3092
|
-
* @returns {string} Resource name string.
|
3093
|
-
*/
|
3094
|
-
projectLocationDataStoreSessionPath(project, location, dataStore, session) {
|
3095
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
|
3096
|
-
project: project,
|
3097
|
-
location: location,
|
3098
|
-
data_store: dataStore,
|
3099
|
-
session: session,
|
3100
|
-
});
|
3101
|
-
}
|
3102
|
-
/**
|
3103
|
-
* Parse the project from ProjectLocationDataStoreSession resource.
|
3104
|
-
*
|
3105
|
-
* @param {string} projectLocationDataStoreSessionName
|
3106
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3107
|
-
* @returns {string} A string representing the project.
|
3108
|
-
*/
|
3109
|
-
matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3110
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
|
3111
|
-
}
|
3112
|
-
/**
|
3113
|
-
* Parse the location from ProjectLocationDataStoreSession resource.
|
3114
|
-
*
|
3115
|
-
* @param {string} projectLocationDataStoreSessionName
|
3116
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3117
|
-
* @returns {string} A string representing the location.
|
3118
|
-
*/
|
3119
|
-
matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3120
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
|
3121
|
-
}
|
3122
|
-
/**
|
3123
|
-
* Parse the data_store from ProjectLocationDataStoreSession resource.
|
3124
|
-
*
|
3125
|
-
* @param {string} projectLocationDataStoreSessionName
|
3126
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3127
|
-
* @returns {string} A string representing the data_store.
|
3128
|
-
*/
|
3129
|
-
matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3130
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
|
3131
|
-
}
|
3132
|
-
/**
|
3133
|
-
* Parse the session from ProjectLocationDataStoreSession resource.
|
3134
|
-
*
|
3135
|
-
* @param {string} projectLocationDataStoreSessionName
|
3136
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3137
|
-
* @returns {string} A string representing the session.
|
3138
|
-
*/
|
3139
|
-
matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3140
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
|
3141
|
-
}
|
3142
3121
|
/**
|
3143
3122
|
* Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
|
3144
3123
|
*
|
@@ -3208,6 +3187,63 @@ class DocumentServiceClient {
|
|
3208
3187
|
matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
3209
3188
|
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
|
3210
3189
|
}
|
3190
|
+
/**
|
3191
|
+
* Return a fully-qualified projectLocationDataStoreSessions resource name string.
|
3192
|
+
*
|
3193
|
+
* @param {string} project
|
3194
|
+
* @param {string} location
|
3195
|
+
* @param {string} data_store
|
3196
|
+
* @param {string} session
|
3197
|
+
* @returns {string} Resource name string.
|
3198
|
+
*/
|
3199
|
+
projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
|
3200
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
|
3201
|
+
project: project,
|
3202
|
+
location: location,
|
3203
|
+
data_store: dataStore,
|
3204
|
+
session: session,
|
3205
|
+
});
|
3206
|
+
}
|
3207
|
+
/**
|
3208
|
+
* Parse the project from ProjectLocationDataStoreSessions resource.
|
3209
|
+
*
|
3210
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3211
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3212
|
+
* @returns {string} A string representing the project.
|
3213
|
+
*/
|
3214
|
+
matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3215
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
|
3216
|
+
}
|
3217
|
+
/**
|
3218
|
+
* Parse the location from ProjectLocationDataStoreSessions resource.
|
3219
|
+
*
|
3220
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3221
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3222
|
+
* @returns {string} A string representing the location.
|
3223
|
+
*/
|
3224
|
+
matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3225
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
|
3226
|
+
}
|
3227
|
+
/**
|
3228
|
+
* Parse the data_store from ProjectLocationDataStoreSessions resource.
|
3229
|
+
*
|
3230
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3231
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3232
|
+
* @returns {string} A string representing the data_store.
|
3233
|
+
*/
|
3234
|
+
matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3235
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
|
3236
|
+
}
|
3237
|
+
/**
|
3238
|
+
* Parse the session from ProjectLocationDataStoreSessions resource.
|
3239
|
+
*
|
3240
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3241
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3242
|
+
* @returns {string} A string representing the session.
|
3243
|
+
*/
|
3244
|
+
matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3245
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
|
3246
|
+
}
|
3211
3247
|
/**
|
3212
3248
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
3213
3249
|
*
|