@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
@@ -178,15 +178,15 @@ class DataStoreServiceClient {
|
|
178
178
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
179
179
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
180
180
|
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
181
|
-
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
182
181
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
182
|
+
projectLocationCollectionDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
183
183
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
184
184
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
185
185
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
186
186
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
187
187
|
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
188
|
-
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
189
188
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
189
|
+
projectLocationCollectionEngineSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
190
190
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
191
191
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
192
192
|
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
@@ -196,8 +196,8 @@ class DataStoreServiceClient {
|
|
196
196
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
197
197
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
198
198
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
199
|
-
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
200
199
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
200
|
+
projectLocationDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
201
201
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
202
202
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
203
203
|
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
@@ -209,7 +209,7 @@ class DataStoreServiceClient {
|
|
209
209
|
this.descriptors.page = {
|
210
210
|
listDataStores: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'dataStores')
|
211
211
|
};
|
212
|
-
const protoFilesRoot = this._gaxModule.
|
212
|
+
const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
|
213
213
|
// This API contains "long-running operations", which return a
|
214
214
|
// an Operation object that allows for tracking of the operation,
|
215
215
|
// rather than holding a request open.
|
@@ -373,6 +373,12 @@ class DataStoreServiceClient {
|
|
373
373
|
?.then(([response, options, rawResponse]) => {
|
374
374
|
this._log.info('getDataStore response %j', response);
|
375
375
|
return [response, options, rawResponse];
|
376
|
+
}).catch((error) => {
|
377
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
378
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
379
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
380
|
+
}
|
381
|
+
throw error;
|
376
382
|
});
|
377
383
|
}
|
378
384
|
updateDataStore(request, optionsOrCallback, callback) {
|
@@ -403,6 +409,12 @@ class DataStoreServiceClient {
|
|
403
409
|
?.then(([response, options, rawResponse]) => {
|
404
410
|
this._log.info('updateDataStore response %j', response);
|
405
411
|
return [response, options, rawResponse];
|
412
|
+
}).catch((error) => {
|
413
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
414
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
415
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
416
|
+
}
|
417
|
+
throw error;
|
406
418
|
});
|
407
419
|
}
|
408
420
|
getDocumentProcessingConfig(request, optionsOrCallback, callback) {
|
@@ -433,6 +445,12 @@ class DataStoreServiceClient {
|
|
433
445
|
?.then(([response, options, rawResponse]) => {
|
434
446
|
this._log.info('getDocumentProcessingConfig response %j', response);
|
435
447
|
return [response, options, rawResponse];
|
448
|
+
}).catch((error) => {
|
449
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
450
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
451
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
452
|
+
}
|
453
|
+
throw error;
|
436
454
|
});
|
437
455
|
}
|
438
456
|
updateDocumentProcessingConfig(request, optionsOrCallback, callback) {
|
@@ -463,6 +481,12 @@ class DataStoreServiceClient {
|
|
463
481
|
?.then(([response, options, rawResponse]) => {
|
464
482
|
this._log.info('updateDocumentProcessingConfig response %j', response);
|
465
483
|
return [response, options, rawResponse];
|
484
|
+
}).catch((error) => {
|
485
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
486
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
487
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
488
|
+
}
|
489
|
+
throw error;
|
466
490
|
});
|
467
491
|
}
|
468
492
|
createDataStore(request, optionsOrCallback, callback) {
|
@@ -1784,154 +1808,154 @@ class DataStoreServiceClient {
|
|
1784
1808
|
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1785
1809
|
}
|
1786
1810
|
/**
|
1787
|
-
* Return a fully-qualified
|
1811
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
|
1788
1812
|
*
|
1789
1813
|
* @param {string} project
|
1790
1814
|
* @param {string} location
|
1791
1815
|
* @param {string} collection
|
1792
1816
|
* @param {string} data_store
|
1793
1817
|
* @param {string} session
|
1818
|
+
* @param {string} answer
|
1794
1819
|
* @returns {string} Resource name string.
|
1795
1820
|
*/
|
1796
|
-
|
1797
|
-
return this.pathTemplates.
|
1821
|
+
projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
|
1822
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
|
1798
1823
|
project: project,
|
1799
1824
|
location: location,
|
1800
1825
|
collection: collection,
|
1801
1826
|
data_store: dataStore,
|
1802
1827
|
session: session,
|
1828
|
+
answer: answer,
|
1803
1829
|
});
|
1804
1830
|
}
|
1805
1831
|
/**
|
1806
|
-
* Parse the project from
|
1832
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1807
1833
|
*
|
1808
|
-
* @param {string}
|
1809
|
-
* A fully-qualified path representing
|
1834
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1835
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1810
1836
|
* @returns {string} A string representing the project.
|
1811
1837
|
*/
|
1812
|
-
|
1813
|
-
return this.pathTemplates.
|
1838
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1839
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
|
1814
1840
|
}
|
1815
1841
|
/**
|
1816
|
-
* Parse the location from
|
1842
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1817
1843
|
*
|
1818
|
-
* @param {string}
|
1819
|
-
* A fully-qualified path representing
|
1844
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1845
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1820
1846
|
* @returns {string} A string representing the location.
|
1821
1847
|
*/
|
1822
|
-
|
1823
|
-
return this.pathTemplates.
|
1848
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1849
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
|
1824
1850
|
}
|
1825
1851
|
/**
|
1826
|
-
* Parse the collection from
|
1852
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1827
1853
|
*
|
1828
|
-
* @param {string}
|
1829
|
-
* A fully-qualified path representing
|
1854
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1855
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1830
1856
|
* @returns {string} A string representing the collection.
|
1831
1857
|
*/
|
1832
|
-
|
1833
|
-
return this.pathTemplates.
|
1858
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1859
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
|
1834
1860
|
}
|
1835
1861
|
/**
|
1836
|
-
* Parse the data_store from
|
1862
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1837
1863
|
*
|
1838
|
-
* @param {string}
|
1839
|
-
* A fully-qualified path representing
|
1864
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1865
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1840
1866
|
* @returns {string} A string representing the data_store.
|
1841
1867
|
*/
|
1842
|
-
|
1843
|
-
return this.pathTemplates.
|
1868
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1869
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
|
1844
1870
|
}
|
1845
1871
|
/**
|
1846
|
-
* Parse the session from
|
1872
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1847
1873
|
*
|
1848
|
-
* @param {string}
|
1849
|
-
* A fully-qualified path representing
|
1874
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1875
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1850
1876
|
* @returns {string} A string representing the session.
|
1851
1877
|
*/
|
1852
|
-
|
1853
|
-
return this.pathTemplates.
|
1878
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1879
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
|
1854
1880
|
}
|
1855
1881
|
/**
|
1856
|
-
*
|
1882
|
+
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1883
|
+
*
|
1884
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1885
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1886
|
+
* @returns {string} A string representing the answer.
|
1887
|
+
*/
|
1888
|
+
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1889
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1890
|
+
}
|
1891
|
+
/**
|
1892
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
|
1857
1893
|
*
|
1858
1894
|
* @param {string} project
|
1859
1895
|
* @param {string} location
|
1860
1896
|
* @param {string} collection
|
1861
1897
|
* @param {string} data_store
|
1862
1898
|
* @param {string} session
|
1863
|
-
* @param {string} answer
|
1864
1899
|
* @returns {string} Resource name string.
|
1865
1900
|
*/
|
1866
|
-
|
1867
|
-
return this.pathTemplates.
|
1901
|
+
projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
|
1902
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
|
1868
1903
|
project: project,
|
1869
1904
|
location: location,
|
1870
1905
|
collection: collection,
|
1871
1906
|
data_store: dataStore,
|
1872
1907
|
session: session,
|
1873
|
-
answer: answer,
|
1874
1908
|
});
|
1875
1909
|
}
|
1876
1910
|
/**
|
1877
|
-
* Parse the project from
|
1911
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessions resource.
|
1878
1912
|
*
|
1879
|
-
* @param {string}
|
1880
|
-
* A fully-qualified path representing
|
1913
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1914
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1881
1915
|
* @returns {string} A string representing the project.
|
1882
1916
|
*/
|
1883
|
-
|
1884
|
-
return this.pathTemplates.
|
1917
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1918
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
|
1885
1919
|
}
|
1886
1920
|
/**
|
1887
|
-
* Parse the location from
|
1921
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessions resource.
|
1888
1922
|
*
|
1889
|
-
* @param {string}
|
1890
|
-
* A fully-qualified path representing
|
1923
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1924
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1891
1925
|
* @returns {string} A string representing the location.
|
1892
1926
|
*/
|
1893
|
-
|
1894
|
-
return this.pathTemplates.
|
1927
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1928
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
|
1895
1929
|
}
|
1896
1930
|
/**
|
1897
|
-
* Parse the collection from
|
1931
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
|
1898
1932
|
*
|
1899
|
-
* @param {string}
|
1900
|
-
* A fully-qualified path representing
|
1933
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1934
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1901
1935
|
* @returns {string} A string representing the collection.
|
1902
1936
|
*/
|
1903
|
-
|
1904
|
-
return this.pathTemplates.
|
1937
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1938
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
|
1905
1939
|
}
|
1906
1940
|
/**
|
1907
|
-
* Parse the data_store from
|
1941
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
|
1908
1942
|
*
|
1909
|
-
* @param {string}
|
1910
|
-
* A fully-qualified path representing
|
1943
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1944
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1911
1945
|
* @returns {string} A string representing the data_store.
|
1912
1946
|
*/
|
1913
|
-
|
1914
|
-
return this.pathTemplates.
|
1947
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1948
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
|
1915
1949
|
}
|
1916
1950
|
/**
|
1917
|
-
* Parse the session from
|
1951
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessions resource.
|
1918
1952
|
*
|
1919
|
-
* @param {string}
|
1920
|
-
* A fully-qualified path representing
|
1953
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1954
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1921
1955
|
* @returns {string} A string representing the session.
|
1922
1956
|
*/
|
1923
|
-
|
1924
|
-
return this.pathTemplates.
|
1925
|
-
}
|
1926
|
-
/**
|
1927
|
-
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1928
|
-
*
|
1929
|
-
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1930
|
-
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1931
|
-
* @returns {string} A string representing the answer.
|
1932
|
-
*/
|
1933
|
-
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1934
|
-
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1957
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1958
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
|
1935
1959
|
}
|
1936
1960
|
/**
|
1937
1961
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
@@ -2267,154 +2291,154 @@ class DataStoreServiceClient {
|
|
2267
2291
|
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
2268
2292
|
}
|
2269
2293
|
/**
|
2270
|
-
* Return a fully-qualified
|
2294
|
+
* Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
|
2271
2295
|
*
|
2272
2296
|
* @param {string} project
|
2273
2297
|
* @param {string} location
|
2274
2298
|
* @param {string} collection
|
2275
2299
|
* @param {string} engine
|
2276
2300
|
* @param {string} session
|
2301
|
+
* @param {string} answer
|
2277
2302
|
* @returns {string} Resource name string.
|
2278
2303
|
*/
|
2279
|
-
|
2280
|
-
return this.pathTemplates.
|
2304
|
+
projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
|
2305
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
|
2281
2306
|
project: project,
|
2282
2307
|
location: location,
|
2283
2308
|
collection: collection,
|
2284
2309
|
engine: engine,
|
2285
2310
|
session: session,
|
2311
|
+
answer: answer,
|
2286
2312
|
});
|
2287
2313
|
}
|
2288
2314
|
/**
|
2289
|
-
* Parse the project from
|
2315
|
+
* Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
|
2290
2316
|
*
|
2291
|
-
* @param {string}
|
2292
|
-
* A fully-qualified path representing
|
2317
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2318
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2293
2319
|
* @returns {string} A string representing the project.
|
2294
2320
|
*/
|
2295
|
-
|
2296
|
-
return this.pathTemplates.
|
2321
|
+
matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2322
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
|
2297
2323
|
}
|
2298
2324
|
/**
|
2299
|
-
* Parse the location from
|
2325
|
+
* Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
|
2300
2326
|
*
|
2301
|
-
* @param {string}
|
2302
|
-
* A fully-qualified path representing
|
2327
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2328
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2303
2329
|
* @returns {string} A string representing the location.
|
2304
2330
|
*/
|
2305
|
-
|
2306
|
-
return this.pathTemplates.
|
2331
|
+
matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2332
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
|
2307
2333
|
}
|
2308
2334
|
/**
|
2309
|
-
* Parse the collection from
|
2335
|
+
* Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
|
2310
2336
|
*
|
2311
|
-
* @param {string}
|
2312
|
-
* A fully-qualified path representing
|
2337
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2338
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2313
2339
|
* @returns {string} A string representing the collection.
|
2314
2340
|
*/
|
2315
|
-
|
2316
|
-
return this.pathTemplates.
|
2341
|
+
matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2342
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
|
2317
2343
|
}
|
2318
2344
|
/**
|
2319
|
-
* Parse the engine from
|
2345
|
+
* Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
|
2320
2346
|
*
|
2321
|
-
* @param {string}
|
2322
|
-
* A fully-qualified path representing
|
2347
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2348
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2323
2349
|
* @returns {string} A string representing the engine.
|
2324
2350
|
*/
|
2325
|
-
|
2326
|
-
return this.pathTemplates.
|
2351
|
+
matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2352
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
|
2327
2353
|
}
|
2328
2354
|
/**
|
2329
|
-
* Parse the session from
|
2355
|
+
* Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
|
2330
2356
|
*
|
2331
|
-
* @param {string}
|
2332
|
-
* A fully-qualified path representing
|
2357
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2358
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2333
2359
|
* @returns {string} A string representing the session.
|
2334
2360
|
*/
|
2335
|
-
|
2336
|
-
return this.pathTemplates.
|
2361
|
+
matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2362
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
|
2337
2363
|
}
|
2338
2364
|
/**
|
2339
|
-
*
|
2365
|
+
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
2366
|
+
*
|
2367
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2368
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2369
|
+
* @returns {string} A string representing the answer.
|
2370
|
+
*/
|
2371
|
+
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2372
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
2373
|
+
}
|
2374
|
+
/**
|
2375
|
+
* Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
|
2340
2376
|
*
|
2341
2377
|
* @param {string} project
|
2342
2378
|
* @param {string} location
|
2343
2379
|
* @param {string} collection
|
2344
2380
|
* @param {string} engine
|
2345
2381
|
* @param {string} session
|
2346
|
-
* @param {string} answer
|
2347
2382
|
* @returns {string} Resource name string.
|
2348
2383
|
*/
|
2349
|
-
|
2350
|
-
return this.pathTemplates.
|
2384
|
+
projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
|
2385
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
|
2351
2386
|
project: project,
|
2352
2387
|
location: location,
|
2353
2388
|
collection: collection,
|
2354
2389
|
engine: engine,
|
2355
2390
|
session: session,
|
2356
|
-
answer: answer,
|
2357
2391
|
});
|
2358
2392
|
}
|
2359
2393
|
/**
|
2360
|
-
* Parse the project from
|
2394
|
+
* Parse the project from ProjectLocationCollectionEngineSessions resource.
|
2361
2395
|
*
|
2362
|
-
* @param {string}
|
2363
|
-
* A fully-qualified path representing
|
2396
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2397
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2364
2398
|
* @returns {string} A string representing the project.
|
2365
2399
|
*/
|
2366
|
-
|
2367
|
-
return this.pathTemplates.
|
2400
|
+
matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2401
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
|
2368
2402
|
}
|
2369
2403
|
/**
|
2370
|
-
* Parse the location from
|
2404
|
+
* Parse the location from ProjectLocationCollectionEngineSessions resource.
|
2371
2405
|
*
|
2372
|
-
* @param {string}
|
2373
|
-
* A fully-qualified path representing
|
2406
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2407
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2374
2408
|
* @returns {string} A string representing the location.
|
2375
2409
|
*/
|
2376
|
-
|
2377
|
-
return this.pathTemplates.
|
2410
|
+
matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2411
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
|
2378
2412
|
}
|
2379
2413
|
/**
|
2380
|
-
* Parse the collection from
|
2414
|
+
* Parse the collection from ProjectLocationCollectionEngineSessions resource.
|
2381
2415
|
*
|
2382
|
-
* @param {string}
|
2383
|
-
* A fully-qualified path representing
|
2416
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2417
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2384
2418
|
* @returns {string} A string representing the collection.
|
2385
2419
|
*/
|
2386
|
-
|
2387
|
-
return this.pathTemplates.
|
2420
|
+
matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2421
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
|
2388
2422
|
}
|
2389
2423
|
/**
|
2390
|
-
* Parse the engine from
|
2424
|
+
* Parse the engine from ProjectLocationCollectionEngineSessions resource.
|
2391
2425
|
*
|
2392
|
-
* @param {string}
|
2393
|
-
* A fully-qualified path representing
|
2426
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2427
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2394
2428
|
* @returns {string} A string representing the engine.
|
2395
2429
|
*/
|
2396
|
-
|
2397
|
-
return this.pathTemplates.
|
2430
|
+
matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2431
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
|
2398
2432
|
}
|
2399
2433
|
/**
|
2400
|
-
* Parse the session from
|
2434
|
+
* Parse the session from ProjectLocationCollectionEngineSessions resource.
|
2401
2435
|
*
|
2402
|
-
* @param {string}
|
2403
|
-
* A fully-qualified path representing
|
2436
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2437
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2404
2438
|
* @returns {string} A string representing the session.
|
2405
2439
|
*/
|
2406
|
-
|
2407
|
-
return this.pathTemplates.
|
2408
|
-
}
|
2409
|
-
/**
|
2410
|
-
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
2411
|
-
*
|
2412
|
-
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2413
|
-
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2414
|
-
* @returns {string} A string representing the answer.
|
2415
|
-
*/
|
2416
|
-
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2417
|
-
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
2440
|
+
matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2441
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
|
2418
2442
|
}
|
2419
2443
|
/**
|
2420
2444
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
@@ -2941,63 +2965,6 @@ class DataStoreServiceClient {
|
|
2941
2965
|
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2942
2966
|
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2943
2967
|
}
|
2944
|
-
/**
|
2945
|
-
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2946
|
-
*
|
2947
|
-
* @param {string} project
|
2948
|
-
* @param {string} location
|
2949
|
-
* @param {string} data_store
|
2950
|
-
* @param {string} session
|
2951
|
-
* @returns {string} Resource name string.
|
2952
|
-
*/
|
2953
|
-
projectLocationDataStoreSessionPath(project, location, dataStore, session) {
|
2954
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
|
2955
|
-
project: project,
|
2956
|
-
location: location,
|
2957
|
-
data_store: dataStore,
|
2958
|
-
session: session,
|
2959
|
-
});
|
2960
|
-
}
|
2961
|
-
/**
|
2962
|
-
* Parse the project from ProjectLocationDataStoreSession resource.
|
2963
|
-
*
|
2964
|
-
* @param {string} projectLocationDataStoreSessionName
|
2965
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2966
|
-
* @returns {string} A string representing the project.
|
2967
|
-
*/
|
2968
|
-
matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2969
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
|
2970
|
-
}
|
2971
|
-
/**
|
2972
|
-
* Parse the location from ProjectLocationDataStoreSession resource.
|
2973
|
-
*
|
2974
|
-
* @param {string} projectLocationDataStoreSessionName
|
2975
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2976
|
-
* @returns {string} A string representing the location.
|
2977
|
-
*/
|
2978
|
-
matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2979
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
|
2980
|
-
}
|
2981
|
-
/**
|
2982
|
-
* Parse the data_store from ProjectLocationDataStoreSession resource.
|
2983
|
-
*
|
2984
|
-
* @param {string} projectLocationDataStoreSessionName
|
2985
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2986
|
-
* @returns {string} A string representing the data_store.
|
2987
|
-
*/
|
2988
|
-
matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2989
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
|
2990
|
-
}
|
2991
|
-
/**
|
2992
|
-
* Parse the session from ProjectLocationDataStoreSession resource.
|
2993
|
-
*
|
2994
|
-
* @param {string} projectLocationDataStoreSessionName
|
2995
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2996
|
-
* @returns {string} A string representing the session.
|
2997
|
-
*/
|
2998
|
-
matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2999
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
|
3000
|
-
}
|
3001
2968
|
/**
|
3002
2969
|
* Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
|
3003
2970
|
*
|
@@ -3067,6 +3034,63 @@ class DataStoreServiceClient {
|
|
3067
3034
|
matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
3068
3035
|
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
|
3069
3036
|
}
|
3037
|
+
/**
|
3038
|
+
* Return a fully-qualified projectLocationDataStoreSessions resource name string.
|
3039
|
+
*
|
3040
|
+
* @param {string} project
|
3041
|
+
* @param {string} location
|
3042
|
+
* @param {string} data_store
|
3043
|
+
* @param {string} session
|
3044
|
+
* @returns {string} Resource name string.
|
3045
|
+
*/
|
3046
|
+
projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
|
3047
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
|
3048
|
+
project: project,
|
3049
|
+
location: location,
|
3050
|
+
data_store: dataStore,
|
3051
|
+
session: session,
|
3052
|
+
});
|
3053
|
+
}
|
3054
|
+
/**
|
3055
|
+
* Parse the project from ProjectLocationDataStoreSessions resource.
|
3056
|
+
*
|
3057
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3058
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3059
|
+
* @returns {string} A string representing the project.
|
3060
|
+
*/
|
3061
|
+
matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3062
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
|
3063
|
+
}
|
3064
|
+
/**
|
3065
|
+
* Parse the location from ProjectLocationDataStoreSessions resource.
|
3066
|
+
*
|
3067
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3068
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3069
|
+
* @returns {string} A string representing the location.
|
3070
|
+
*/
|
3071
|
+
matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3072
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
|
3073
|
+
}
|
3074
|
+
/**
|
3075
|
+
* Parse the data_store from ProjectLocationDataStoreSessions resource.
|
3076
|
+
*
|
3077
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3078
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3079
|
+
* @returns {string} A string representing the data_store.
|
3080
|
+
*/
|
3081
|
+
matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3082
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
|
3083
|
+
}
|
3084
|
+
/**
|
3085
|
+
* Parse the session from ProjectLocationDataStoreSessions resource.
|
3086
|
+
*
|
3087
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3088
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3089
|
+
* @returns {string} A string representing the session.
|
3090
|
+
*/
|
3091
|
+
matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3092
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
|
3093
|
+
}
|
3070
3094
|
/**
|
3071
3095
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
3072
3096
|
*
|