@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
@@ -175,16 +175,16 @@ class ConversationalSearchServiceClient {
|
|
175
175
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
176
176
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
177
177
|
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
178
|
-
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
179
178
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
179
|
+
projectLocationCollectionDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
180
180
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
181
181
|
projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
182
182
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
183
183
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
184
184
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
185
185
|
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
186
|
-
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
187
186
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
187
|
+
projectLocationCollectionEngineSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
188
188
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
189
189
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
190
190
|
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
@@ -194,8 +194,8 @@ class ConversationalSearchServiceClient {
|
|
194
194
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
195
195
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
196
196
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
197
|
-
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
198
197
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
198
|
+
projectLocationDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
199
199
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
200
200
|
projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
201
201
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
@@ -348,6 +348,12 @@ class ConversationalSearchServiceClient {
|
|
348
348
|
?.then(([response, options, rawResponse]) => {
|
349
349
|
this._log.info('converseConversation response %j', response);
|
350
350
|
return [response, options, rawResponse];
|
351
|
+
}).catch((error) => {
|
352
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
353
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
354
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
355
|
+
}
|
356
|
+
throw error;
|
351
357
|
});
|
352
358
|
}
|
353
359
|
createConversation(request, optionsOrCallback, callback) {
|
@@ -378,6 +384,12 @@ class ConversationalSearchServiceClient {
|
|
378
384
|
?.then(([response, options, rawResponse]) => {
|
379
385
|
this._log.info('createConversation response %j', response);
|
380
386
|
return [response, options, rawResponse];
|
387
|
+
}).catch((error) => {
|
388
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
389
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
390
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
391
|
+
}
|
392
|
+
throw error;
|
381
393
|
});
|
382
394
|
}
|
383
395
|
deleteConversation(request, optionsOrCallback, callback) {
|
@@ -408,6 +420,12 @@ class ConversationalSearchServiceClient {
|
|
408
420
|
?.then(([response, options, rawResponse]) => {
|
409
421
|
this._log.info('deleteConversation response %j', response);
|
410
422
|
return [response, options, rawResponse];
|
423
|
+
}).catch((error) => {
|
424
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
425
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
426
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
427
|
+
}
|
428
|
+
throw error;
|
411
429
|
});
|
412
430
|
}
|
413
431
|
updateConversation(request, optionsOrCallback, callback) {
|
@@ -438,6 +456,12 @@ class ConversationalSearchServiceClient {
|
|
438
456
|
?.then(([response, options, rawResponse]) => {
|
439
457
|
this._log.info('updateConversation response %j', response);
|
440
458
|
return [response, options, rawResponse];
|
459
|
+
}).catch((error) => {
|
460
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
461
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
462
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
463
|
+
}
|
464
|
+
throw error;
|
441
465
|
});
|
442
466
|
}
|
443
467
|
getConversation(request, optionsOrCallback, callback) {
|
@@ -468,6 +492,12 @@ class ConversationalSearchServiceClient {
|
|
468
492
|
?.then(([response, options, rawResponse]) => {
|
469
493
|
this._log.info('getConversation response %j', response);
|
470
494
|
return [response, options, rawResponse];
|
495
|
+
}).catch((error) => {
|
496
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
497
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
498
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
499
|
+
}
|
500
|
+
throw error;
|
471
501
|
});
|
472
502
|
}
|
473
503
|
answerQuery(request, optionsOrCallback, callback) {
|
@@ -498,6 +528,12 @@ class ConversationalSearchServiceClient {
|
|
498
528
|
?.then(([response, options, rawResponse]) => {
|
499
529
|
this._log.info('answerQuery response %j', response);
|
500
530
|
return [response, options, rawResponse];
|
531
|
+
}).catch((error) => {
|
532
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
533
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
534
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
535
|
+
}
|
536
|
+
throw error;
|
501
537
|
});
|
502
538
|
}
|
503
539
|
getAnswer(request, optionsOrCallback, callback) {
|
@@ -528,6 +564,12 @@ class ConversationalSearchServiceClient {
|
|
528
564
|
?.then(([response, options, rawResponse]) => {
|
529
565
|
this._log.info('getAnswer response %j', response);
|
530
566
|
return [response, options, rawResponse];
|
567
|
+
}).catch((error) => {
|
568
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
569
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
570
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
571
|
+
}
|
572
|
+
throw error;
|
531
573
|
});
|
532
574
|
}
|
533
575
|
createSession(request, optionsOrCallback, callback) {
|
@@ -558,6 +600,12 @@ class ConversationalSearchServiceClient {
|
|
558
600
|
?.then(([response, options, rawResponse]) => {
|
559
601
|
this._log.info('createSession response %j', response);
|
560
602
|
return [response, options, rawResponse];
|
603
|
+
}).catch((error) => {
|
604
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
605
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
606
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
607
|
+
}
|
608
|
+
throw error;
|
561
609
|
});
|
562
610
|
}
|
563
611
|
deleteSession(request, optionsOrCallback, callback) {
|
@@ -588,6 +636,12 @@ class ConversationalSearchServiceClient {
|
|
588
636
|
?.then(([response, options, rawResponse]) => {
|
589
637
|
this._log.info('deleteSession response %j', response);
|
590
638
|
return [response, options, rawResponse];
|
639
|
+
}).catch((error) => {
|
640
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
641
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
642
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
643
|
+
}
|
644
|
+
throw error;
|
591
645
|
});
|
592
646
|
}
|
593
647
|
updateSession(request, optionsOrCallback, callback) {
|
@@ -618,6 +672,12 @@ class ConversationalSearchServiceClient {
|
|
618
672
|
?.then(([response, options, rawResponse]) => {
|
619
673
|
this._log.info('updateSession response %j', response);
|
620
674
|
return [response, options, rawResponse];
|
675
|
+
}).catch((error) => {
|
676
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
677
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
678
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
679
|
+
}
|
680
|
+
throw error;
|
621
681
|
});
|
622
682
|
}
|
623
683
|
getSession(request, optionsOrCallback, callback) {
|
@@ -648,6 +708,12 @@ class ConversationalSearchServiceClient {
|
|
648
708
|
?.then(([response, options, rawResponse]) => {
|
649
709
|
this._log.info('getSession response %j', response);
|
650
710
|
return [response, options, rawResponse];
|
711
|
+
}).catch((error) => {
|
712
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
713
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
714
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
715
|
+
}
|
716
|
+
throw error;
|
651
717
|
});
|
652
718
|
}
|
653
719
|
listConversations(request, optionsOrCallback, callback) {
|
@@ -839,22 +905,39 @@ class ConversationalSearchServiceClient {
|
|
839
905
|
* A page token, received from a previous `ListSessions` call.
|
840
906
|
* Provide this to retrieve the subsequent page.
|
841
907
|
* @param {string} request.filter
|
842
|
-
* A
|
843
|
-
*
|
844
|
-
*
|
845
|
-
*
|
908
|
+
* A comma-separated list of fields to filter by, in EBNF grammar.
|
909
|
+
* The supported fields are:
|
910
|
+
* * `user_pseudo_id`
|
911
|
+
* * `state`
|
912
|
+
* * `display_name`
|
913
|
+
* * `starred`
|
914
|
+
* * `is_pinned`
|
915
|
+
* * `labels`
|
916
|
+
* * `create_time`
|
917
|
+
* * `update_time`
|
918
|
+
*
|
919
|
+
* Examples:
|
846
920
|
* "user_pseudo_id = some_id"
|
921
|
+
* "display_name = \"some_name\""
|
922
|
+
* "starred = true"
|
923
|
+
* "is_pinned=true AND (NOT labels:hidden)"
|
924
|
+
* "create_time > \"1970-01-01T12:00:00Z\""
|
847
925
|
* @param {string} request.orderBy
|
848
926
|
* A comma-separated list of fields to order by, sorted in ascending order.
|
849
927
|
* Use "desc" after a field name for descending.
|
850
928
|
* Supported fields:
|
929
|
+
*
|
851
930
|
* * `update_time`
|
852
931
|
* * `create_time`
|
853
932
|
* * `session_name`
|
933
|
+
* * `is_pinned`
|
854
934
|
*
|
855
935
|
* Example:
|
856
|
-
*
|
857
|
-
* "
|
936
|
+
*
|
937
|
+
* * "update_time desc"
|
938
|
+
* * "create_time"
|
939
|
+
* * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
|
940
|
+
* by update_time.
|
858
941
|
* @param {object} [options]
|
859
942
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
860
943
|
* @returns {Stream}
|
@@ -896,22 +979,39 @@ class ConversationalSearchServiceClient {
|
|
896
979
|
* A page token, received from a previous `ListSessions` call.
|
897
980
|
* Provide this to retrieve the subsequent page.
|
898
981
|
* @param {string} request.filter
|
899
|
-
* A
|
900
|
-
*
|
901
|
-
*
|
902
|
-
*
|
982
|
+
* A comma-separated list of fields to filter by, in EBNF grammar.
|
983
|
+
* The supported fields are:
|
984
|
+
* * `user_pseudo_id`
|
985
|
+
* * `state`
|
986
|
+
* * `display_name`
|
987
|
+
* * `starred`
|
988
|
+
* * `is_pinned`
|
989
|
+
* * `labels`
|
990
|
+
* * `create_time`
|
991
|
+
* * `update_time`
|
992
|
+
*
|
993
|
+
* Examples:
|
903
994
|
* "user_pseudo_id = some_id"
|
995
|
+
* "display_name = \"some_name\""
|
996
|
+
* "starred = true"
|
997
|
+
* "is_pinned=true AND (NOT labels:hidden)"
|
998
|
+
* "create_time > \"1970-01-01T12:00:00Z\""
|
904
999
|
* @param {string} request.orderBy
|
905
1000
|
* A comma-separated list of fields to order by, sorted in ascending order.
|
906
1001
|
* Use "desc" after a field name for descending.
|
907
1002
|
* Supported fields:
|
1003
|
+
*
|
908
1004
|
* * `update_time`
|
909
1005
|
* * `create_time`
|
910
1006
|
* * `session_name`
|
1007
|
+
* * `is_pinned`
|
911
1008
|
*
|
912
1009
|
* Example:
|
913
|
-
*
|
914
|
-
* "
|
1010
|
+
*
|
1011
|
+
* * "update_time desc"
|
1012
|
+
* * "create_time"
|
1013
|
+
* * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
|
1014
|
+
* by update_time.
|
915
1015
|
* @param {object} [options]
|
916
1016
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
917
1017
|
* @returns {Object}
|
@@ -1798,154 +1898,154 @@ class ConversationalSearchServiceClient {
|
|
1798
1898
|
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1799
1899
|
}
|
1800
1900
|
/**
|
1801
|
-
* Return a fully-qualified
|
1901
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
|
1802
1902
|
*
|
1803
1903
|
* @param {string} project
|
1804
1904
|
* @param {string} location
|
1805
1905
|
* @param {string} collection
|
1806
1906
|
* @param {string} data_store
|
1807
1907
|
* @param {string} session
|
1908
|
+
* @param {string} answer
|
1808
1909
|
* @returns {string} Resource name string.
|
1809
1910
|
*/
|
1810
|
-
|
1811
|
-
return this.pathTemplates.
|
1911
|
+
projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
|
1912
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
|
1812
1913
|
project: project,
|
1813
1914
|
location: location,
|
1814
1915
|
collection: collection,
|
1815
1916
|
data_store: dataStore,
|
1816
1917
|
session: session,
|
1918
|
+
answer: answer,
|
1817
1919
|
});
|
1818
1920
|
}
|
1819
1921
|
/**
|
1820
|
-
* Parse the project from
|
1922
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1821
1923
|
*
|
1822
|
-
* @param {string}
|
1823
|
-
* A fully-qualified path representing
|
1924
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1925
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1824
1926
|
* @returns {string} A string representing the project.
|
1825
1927
|
*/
|
1826
|
-
|
1827
|
-
return this.pathTemplates.
|
1928
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1929
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
|
1828
1930
|
}
|
1829
1931
|
/**
|
1830
|
-
* Parse the location from
|
1932
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1831
1933
|
*
|
1832
|
-
* @param {string}
|
1833
|
-
* A fully-qualified path representing
|
1934
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1935
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1834
1936
|
* @returns {string} A string representing the location.
|
1835
1937
|
*/
|
1836
|
-
|
1837
|
-
return this.pathTemplates.
|
1938
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1939
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
|
1838
1940
|
}
|
1839
1941
|
/**
|
1840
|
-
* Parse the collection from
|
1942
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1841
1943
|
*
|
1842
|
-
* @param {string}
|
1843
|
-
* A fully-qualified path representing
|
1944
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1945
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1844
1946
|
* @returns {string} A string representing the collection.
|
1845
1947
|
*/
|
1846
|
-
|
1847
|
-
return this.pathTemplates.
|
1948
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1949
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
|
1848
1950
|
}
|
1849
1951
|
/**
|
1850
|
-
* Parse the data_store from
|
1952
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1851
1953
|
*
|
1852
|
-
* @param {string}
|
1853
|
-
* A fully-qualified path representing
|
1954
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1955
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1854
1956
|
* @returns {string} A string representing the data_store.
|
1855
1957
|
*/
|
1856
|
-
|
1857
|
-
return this.pathTemplates.
|
1958
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1959
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
|
1858
1960
|
}
|
1859
1961
|
/**
|
1860
|
-
* Parse the session from
|
1962
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1861
1963
|
*
|
1862
|
-
* @param {string}
|
1863
|
-
* A fully-qualified path representing
|
1964
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1965
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1864
1966
|
* @returns {string} A string representing the session.
|
1865
1967
|
*/
|
1866
|
-
|
1867
|
-
return this.pathTemplates.
|
1968
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1969
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
|
1868
1970
|
}
|
1869
1971
|
/**
|
1870
|
-
*
|
1972
|
+
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1973
|
+
*
|
1974
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1975
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1976
|
+
* @returns {string} A string representing the answer.
|
1977
|
+
*/
|
1978
|
+
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1979
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1980
|
+
}
|
1981
|
+
/**
|
1982
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
|
1871
1983
|
*
|
1872
1984
|
* @param {string} project
|
1873
1985
|
* @param {string} location
|
1874
1986
|
* @param {string} collection
|
1875
1987
|
* @param {string} data_store
|
1876
1988
|
* @param {string} session
|
1877
|
-
* @param {string} answer
|
1878
1989
|
* @returns {string} Resource name string.
|
1879
1990
|
*/
|
1880
|
-
|
1881
|
-
return this.pathTemplates.
|
1991
|
+
projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
|
1992
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
|
1882
1993
|
project: project,
|
1883
1994
|
location: location,
|
1884
1995
|
collection: collection,
|
1885
1996
|
data_store: dataStore,
|
1886
1997
|
session: session,
|
1887
|
-
answer: answer,
|
1888
1998
|
});
|
1889
1999
|
}
|
1890
2000
|
/**
|
1891
|
-
* Parse the project from
|
2001
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessions resource.
|
1892
2002
|
*
|
1893
|
-
* @param {string}
|
1894
|
-
* A fully-qualified path representing
|
2003
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2004
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1895
2005
|
* @returns {string} A string representing the project.
|
1896
2006
|
*/
|
1897
|
-
|
1898
|
-
return this.pathTemplates.
|
2007
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2008
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
|
1899
2009
|
}
|
1900
2010
|
/**
|
1901
|
-
* Parse the location from
|
2011
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessions resource.
|
1902
2012
|
*
|
1903
|
-
* @param {string}
|
1904
|
-
* A fully-qualified path representing
|
2013
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2014
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1905
2015
|
* @returns {string} A string representing the location.
|
1906
2016
|
*/
|
1907
|
-
|
1908
|
-
return this.pathTemplates.
|
2017
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2018
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
|
1909
2019
|
}
|
1910
2020
|
/**
|
1911
|
-
* Parse the collection from
|
2021
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
|
1912
2022
|
*
|
1913
|
-
* @param {string}
|
1914
|
-
* A fully-qualified path representing
|
2023
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2024
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1915
2025
|
* @returns {string} A string representing the collection.
|
1916
2026
|
*/
|
1917
|
-
|
1918
|
-
return this.pathTemplates.
|
2027
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2028
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
|
1919
2029
|
}
|
1920
2030
|
/**
|
1921
|
-
* Parse the data_store from
|
2031
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
|
1922
2032
|
*
|
1923
|
-
* @param {string}
|
1924
|
-
* A fully-qualified path representing
|
2033
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2034
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1925
2035
|
* @returns {string} A string representing the data_store.
|
1926
2036
|
*/
|
1927
|
-
|
1928
|
-
return this.pathTemplates.
|
2037
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2038
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
|
1929
2039
|
}
|
1930
2040
|
/**
|
1931
|
-
* Parse the session from
|
2041
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessions resource.
|
1932
2042
|
*
|
1933
|
-
* @param {string}
|
1934
|
-
* A fully-qualified path representing
|
2043
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2044
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1935
2045
|
* @returns {string} A string representing the session.
|
1936
2046
|
*/
|
1937
|
-
|
1938
|
-
return this.pathTemplates.
|
1939
|
-
}
|
1940
|
-
/**
|
1941
|
-
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1942
|
-
*
|
1943
|
-
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1944
|
-
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1945
|
-
* @returns {string} A string representing the answer.
|
1946
|
-
*/
|
1947
|
-
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1948
|
-
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
2047
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2048
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
|
1949
2049
|
}
|
1950
2050
|
/**
|
1951
2051
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
@@ -2350,154 +2450,154 @@ class ConversationalSearchServiceClient {
|
|
2350
2450
|
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
2351
2451
|
}
|
2352
2452
|
/**
|
2353
|
-
* Return a fully-qualified
|
2453
|
+
* Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
|
2354
2454
|
*
|
2355
2455
|
* @param {string} project
|
2356
2456
|
* @param {string} location
|
2357
2457
|
* @param {string} collection
|
2358
2458
|
* @param {string} engine
|
2359
2459
|
* @param {string} session
|
2460
|
+
* @param {string} answer
|
2360
2461
|
* @returns {string} Resource name string.
|
2361
2462
|
*/
|
2362
|
-
|
2363
|
-
return this.pathTemplates.
|
2463
|
+
projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
|
2464
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
|
2364
2465
|
project: project,
|
2365
2466
|
location: location,
|
2366
2467
|
collection: collection,
|
2367
2468
|
engine: engine,
|
2368
2469
|
session: session,
|
2470
|
+
answer: answer,
|
2369
2471
|
});
|
2370
2472
|
}
|
2371
2473
|
/**
|
2372
|
-
* Parse the project from
|
2474
|
+
* Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
|
2373
2475
|
*
|
2374
|
-
* @param {string}
|
2375
|
-
* A fully-qualified path representing
|
2476
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2477
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2376
2478
|
* @returns {string} A string representing the project.
|
2377
2479
|
*/
|
2378
|
-
|
2379
|
-
return this.pathTemplates.
|
2480
|
+
matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2481
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
|
2380
2482
|
}
|
2381
2483
|
/**
|
2382
|
-
* Parse the location from
|
2484
|
+
* Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
|
2383
2485
|
*
|
2384
|
-
* @param {string}
|
2385
|
-
* A fully-qualified path representing
|
2486
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2487
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2386
2488
|
* @returns {string} A string representing the location.
|
2387
2489
|
*/
|
2388
|
-
|
2389
|
-
return this.pathTemplates.
|
2490
|
+
matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2491
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
|
2390
2492
|
}
|
2391
2493
|
/**
|
2392
|
-
* Parse the collection from
|
2494
|
+
* Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
|
2393
2495
|
*
|
2394
|
-
* @param {string}
|
2395
|
-
* A fully-qualified path representing
|
2496
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2497
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2396
2498
|
* @returns {string} A string representing the collection.
|
2397
2499
|
*/
|
2398
|
-
|
2399
|
-
return this.pathTemplates.
|
2500
|
+
matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2501
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
|
2400
2502
|
}
|
2401
2503
|
/**
|
2402
|
-
* Parse the engine from
|
2504
|
+
* Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
|
2403
2505
|
*
|
2404
|
-
* @param {string}
|
2405
|
-
* A fully-qualified path representing
|
2506
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2507
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2406
2508
|
* @returns {string} A string representing the engine.
|
2407
2509
|
*/
|
2408
|
-
|
2409
|
-
return this.pathTemplates.
|
2510
|
+
matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2511
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
|
2410
2512
|
}
|
2411
2513
|
/**
|
2412
|
-
* Parse the session from
|
2514
|
+
* Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
|
2413
2515
|
*
|
2414
|
-
* @param {string}
|
2415
|
-
* A fully-qualified path representing
|
2516
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2517
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2416
2518
|
* @returns {string} A string representing the session.
|
2417
2519
|
*/
|
2418
|
-
|
2419
|
-
return this.pathTemplates.
|
2520
|
+
matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2521
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
|
2420
2522
|
}
|
2421
2523
|
/**
|
2422
|
-
*
|
2524
|
+
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
2525
|
+
*
|
2526
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2527
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2528
|
+
* @returns {string} A string representing the answer.
|
2529
|
+
*/
|
2530
|
+
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2531
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
2532
|
+
}
|
2533
|
+
/**
|
2534
|
+
* Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
|
2423
2535
|
*
|
2424
2536
|
* @param {string} project
|
2425
2537
|
* @param {string} location
|
2426
2538
|
* @param {string} collection
|
2427
2539
|
* @param {string} engine
|
2428
2540
|
* @param {string} session
|
2429
|
-
* @param {string} answer
|
2430
2541
|
* @returns {string} Resource name string.
|
2431
2542
|
*/
|
2432
|
-
|
2433
|
-
return this.pathTemplates.
|
2543
|
+
projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
|
2544
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
|
2434
2545
|
project: project,
|
2435
2546
|
location: location,
|
2436
2547
|
collection: collection,
|
2437
2548
|
engine: engine,
|
2438
2549
|
session: session,
|
2439
|
-
answer: answer,
|
2440
2550
|
});
|
2441
2551
|
}
|
2442
2552
|
/**
|
2443
|
-
* Parse the project from
|
2553
|
+
* Parse the project from ProjectLocationCollectionEngineSessions resource.
|
2444
2554
|
*
|
2445
|
-
* @param {string}
|
2446
|
-
* A fully-qualified path representing
|
2555
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2556
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2447
2557
|
* @returns {string} A string representing the project.
|
2448
2558
|
*/
|
2449
|
-
|
2450
|
-
return this.pathTemplates.
|
2559
|
+
matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2560
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
|
2451
2561
|
}
|
2452
2562
|
/**
|
2453
|
-
* Parse the location from
|
2563
|
+
* Parse the location from ProjectLocationCollectionEngineSessions resource.
|
2454
2564
|
*
|
2455
|
-
* @param {string}
|
2456
|
-
* A fully-qualified path representing
|
2565
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2566
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2457
2567
|
* @returns {string} A string representing the location.
|
2458
2568
|
*/
|
2459
|
-
|
2460
|
-
return this.pathTemplates.
|
2569
|
+
matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2570
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
|
2461
2571
|
}
|
2462
2572
|
/**
|
2463
|
-
* Parse the collection from
|
2573
|
+
* Parse the collection from ProjectLocationCollectionEngineSessions resource.
|
2464
2574
|
*
|
2465
|
-
* @param {string}
|
2466
|
-
* A fully-qualified path representing
|
2575
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2576
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2467
2577
|
* @returns {string} A string representing the collection.
|
2468
2578
|
*/
|
2469
|
-
|
2470
|
-
return this.pathTemplates.
|
2579
|
+
matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2580
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
|
2471
2581
|
}
|
2472
2582
|
/**
|
2473
|
-
* Parse the engine from
|
2583
|
+
* Parse the engine from ProjectLocationCollectionEngineSessions resource.
|
2474
2584
|
*
|
2475
|
-
* @param {string}
|
2476
|
-
* A fully-qualified path representing
|
2585
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2586
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2477
2587
|
* @returns {string} A string representing the engine.
|
2478
2588
|
*/
|
2479
|
-
|
2480
|
-
return this.pathTemplates.
|
2589
|
+
matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2590
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
|
2481
2591
|
}
|
2482
2592
|
/**
|
2483
|
-
* Parse the session from
|
2593
|
+
* Parse the session from ProjectLocationCollectionEngineSessions resource.
|
2484
2594
|
*
|
2485
|
-
* @param {string}
|
2486
|
-
* A fully-qualified path representing
|
2595
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2596
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2487
2597
|
* @returns {string} A string representing the session.
|
2488
2598
|
*/
|
2489
|
-
|
2490
|
-
return this.pathTemplates.
|
2491
|
-
}
|
2492
|
-
/**
|
2493
|
-
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
2494
|
-
*
|
2495
|
-
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2496
|
-
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2497
|
-
* @returns {string} A string representing the answer.
|
2498
|
-
*/
|
2499
|
-
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2500
|
-
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
2599
|
+
matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2600
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
|
2501
2601
|
}
|
2502
2602
|
/**
|
2503
2603
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
@@ -3024,63 +3124,6 @@ class ConversationalSearchServiceClient {
|
|
3024
3124
|
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
3025
3125
|
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
3026
3126
|
}
|
3027
|
-
/**
|
3028
|
-
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
3029
|
-
*
|
3030
|
-
* @param {string} project
|
3031
|
-
* @param {string} location
|
3032
|
-
* @param {string} data_store
|
3033
|
-
* @param {string} session
|
3034
|
-
* @returns {string} Resource name string.
|
3035
|
-
*/
|
3036
|
-
projectLocationDataStoreSessionPath(project, location, dataStore, session) {
|
3037
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
|
3038
|
-
project: project,
|
3039
|
-
location: location,
|
3040
|
-
data_store: dataStore,
|
3041
|
-
session: session,
|
3042
|
-
});
|
3043
|
-
}
|
3044
|
-
/**
|
3045
|
-
* Parse the project from ProjectLocationDataStoreSession resource.
|
3046
|
-
*
|
3047
|
-
* @param {string} projectLocationDataStoreSessionName
|
3048
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3049
|
-
* @returns {string} A string representing the project.
|
3050
|
-
*/
|
3051
|
-
matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3052
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
|
3053
|
-
}
|
3054
|
-
/**
|
3055
|
-
* Parse the location from ProjectLocationDataStoreSession resource.
|
3056
|
-
*
|
3057
|
-
* @param {string} projectLocationDataStoreSessionName
|
3058
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3059
|
-
* @returns {string} A string representing the location.
|
3060
|
-
*/
|
3061
|
-
matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3062
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
|
3063
|
-
}
|
3064
|
-
/**
|
3065
|
-
* Parse the data_store from ProjectLocationDataStoreSession resource.
|
3066
|
-
*
|
3067
|
-
* @param {string} projectLocationDataStoreSessionName
|
3068
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3069
|
-
* @returns {string} A string representing the data_store.
|
3070
|
-
*/
|
3071
|
-
matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3072
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
|
3073
|
-
}
|
3074
|
-
/**
|
3075
|
-
* Parse the session from ProjectLocationDataStoreSession resource.
|
3076
|
-
*
|
3077
|
-
* @param {string} projectLocationDataStoreSessionName
|
3078
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3079
|
-
* @returns {string} A string representing the session.
|
3080
|
-
*/
|
3081
|
-
matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3082
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
|
3083
|
-
}
|
3084
3127
|
/**
|
3085
3128
|
* Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
|
3086
3129
|
*
|
@@ -3150,6 +3193,63 @@ class ConversationalSearchServiceClient {
|
|
3150
3193
|
matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
3151
3194
|
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
|
3152
3195
|
}
|
3196
|
+
/**
|
3197
|
+
* Return a fully-qualified projectLocationDataStoreSessions resource name string.
|
3198
|
+
*
|
3199
|
+
* @param {string} project
|
3200
|
+
* @param {string} location
|
3201
|
+
* @param {string} data_store
|
3202
|
+
* @param {string} session
|
3203
|
+
* @returns {string} Resource name string.
|
3204
|
+
*/
|
3205
|
+
projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
|
3206
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
|
3207
|
+
project: project,
|
3208
|
+
location: location,
|
3209
|
+
data_store: dataStore,
|
3210
|
+
session: session,
|
3211
|
+
});
|
3212
|
+
}
|
3213
|
+
/**
|
3214
|
+
* Parse the project from ProjectLocationDataStoreSessions resource.
|
3215
|
+
*
|
3216
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3217
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3218
|
+
* @returns {string} A string representing the project.
|
3219
|
+
*/
|
3220
|
+
matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3221
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
|
3222
|
+
}
|
3223
|
+
/**
|
3224
|
+
* Parse the location from ProjectLocationDataStoreSessions resource.
|
3225
|
+
*
|
3226
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3227
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3228
|
+
* @returns {string} A string representing the location.
|
3229
|
+
*/
|
3230
|
+
matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3231
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
|
3232
|
+
}
|
3233
|
+
/**
|
3234
|
+
* Parse the data_store from ProjectLocationDataStoreSessions resource.
|
3235
|
+
*
|
3236
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3237
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3238
|
+
* @returns {string} A string representing the data_store.
|
3239
|
+
*/
|
3240
|
+
matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3241
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
|
3242
|
+
}
|
3243
|
+
/**
|
3244
|
+
* Parse the session from ProjectLocationDataStoreSessions resource.
|
3245
|
+
*
|
3246
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3247
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3248
|
+
* @returns {string} A string representing the session.
|
3249
|
+
*/
|
3250
|
+
matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3251
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
|
3252
|
+
}
|
3153
3253
|
/**
|
3154
3254
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
3155
3255
|
*
|