@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
@@ -177,15 +177,15 @@ class SampleQuerySetServiceClient {
|
|
177
177
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
178
178
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
179
179
|
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
180
|
-
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
181
180
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
181
|
+
projectLocationCollectionDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
182
182
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
183
183
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
184
184
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
185
185
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
186
186
|
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
187
|
-
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
188
187
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
188
|
+
projectLocationCollectionEngineSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
189
189
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
190
190
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
191
191
|
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
@@ -195,8 +195,8 @@ class SampleQuerySetServiceClient {
|
|
195
195
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
196
196
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
197
197
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
198
|
-
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
199
198
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
199
|
+
projectLocationDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
200
200
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
201
201
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
202
202
|
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
@@ -347,6 +347,12 @@ class SampleQuerySetServiceClient {
|
|
347
347
|
?.then(([response, options, rawResponse]) => {
|
348
348
|
this._log.info('getSampleQuerySet response %j', response);
|
349
349
|
return [response, options, rawResponse];
|
350
|
+
}).catch((error) => {
|
351
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
352
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
353
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
354
|
+
}
|
355
|
+
throw error;
|
350
356
|
});
|
351
357
|
}
|
352
358
|
createSampleQuerySet(request, optionsOrCallback, callback) {
|
@@ -377,6 +383,12 @@ class SampleQuerySetServiceClient {
|
|
377
383
|
?.then(([response, options, rawResponse]) => {
|
378
384
|
this._log.info('createSampleQuerySet response %j', response);
|
379
385
|
return [response, options, rawResponse];
|
386
|
+
}).catch((error) => {
|
387
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
388
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
389
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
390
|
+
}
|
391
|
+
throw error;
|
380
392
|
});
|
381
393
|
}
|
382
394
|
updateSampleQuerySet(request, optionsOrCallback, callback) {
|
@@ -407,6 +419,12 @@ class SampleQuerySetServiceClient {
|
|
407
419
|
?.then(([response, options, rawResponse]) => {
|
408
420
|
this._log.info('updateSampleQuerySet response %j', response);
|
409
421
|
return [response, options, rawResponse];
|
422
|
+
}).catch((error) => {
|
423
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
424
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
425
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
426
|
+
}
|
427
|
+
throw error;
|
410
428
|
});
|
411
429
|
}
|
412
430
|
deleteSampleQuerySet(request, optionsOrCallback, callback) {
|
@@ -437,6 +455,12 @@ class SampleQuerySetServiceClient {
|
|
437
455
|
?.then(([response, options, rawResponse]) => {
|
438
456
|
this._log.info('deleteSampleQuerySet response %j', response);
|
439
457
|
return [response, options, rawResponse];
|
458
|
+
}).catch((error) => {
|
459
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
460
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
461
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
462
|
+
}
|
463
|
+
throw error;
|
440
464
|
});
|
441
465
|
}
|
442
466
|
listSampleQuerySets(request, optionsOrCallback, callback) {
|
@@ -1464,154 +1488,154 @@ class SampleQuerySetServiceClient {
|
|
1464
1488
|
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1465
1489
|
}
|
1466
1490
|
/**
|
1467
|
-
* Return a fully-qualified
|
1491
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
|
1468
1492
|
*
|
1469
1493
|
* @param {string} project
|
1470
1494
|
* @param {string} location
|
1471
1495
|
* @param {string} collection
|
1472
1496
|
* @param {string} data_store
|
1473
1497
|
* @param {string} session
|
1498
|
+
* @param {string} answer
|
1474
1499
|
* @returns {string} Resource name string.
|
1475
1500
|
*/
|
1476
|
-
|
1477
|
-
return this.pathTemplates.
|
1501
|
+
projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
|
1502
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
|
1478
1503
|
project: project,
|
1479
1504
|
location: location,
|
1480
1505
|
collection: collection,
|
1481
1506
|
data_store: dataStore,
|
1482
1507
|
session: session,
|
1508
|
+
answer: answer,
|
1483
1509
|
});
|
1484
1510
|
}
|
1485
1511
|
/**
|
1486
|
-
* Parse the project from
|
1512
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1487
1513
|
*
|
1488
|
-
* @param {string}
|
1489
|
-
* A fully-qualified path representing
|
1514
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1515
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1490
1516
|
* @returns {string} A string representing the project.
|
1491
1517
|
*/
|
1492
|
-
|
1493
|
-
return this.pathTemplates.
|
1518
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1519
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
|
1494
1520
|
}
|
1495
1521
|
/**
|
1496
|
-
* Parse the location from
|
1522
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1497
1523
|
*
|
1498
|
-
* @param {string}
|
1499
|
-
* A fully-qualified path representing
|
1524
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1525
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1500
1526
|
* @returns {string} A string representing the location.
|
1501
1527
|
*/
|
1502
|
-
|
1503
|
-
return this.pathTemplates.
|
1528
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1529
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
|
1504
1530
|
}
|
1505
1531
|
/**
|
1506
|
-
* Parse the collection from
|
1532
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1507
1533
|
*
|
1508
|
-
* @param {string}
|
1509
|
-
* A fully-qualified path representing
|
1534
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1535
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1510
1536
|
* @returns {string} A string representing the collection.
|
1511
1537
|
*/
|
1512
|
-
|
1513
|
-
return this.pathTemplates.
|
1538
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1539
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
|
1514
1540
|
}
|
1515
1541
|
/**
|
1516
|
-
* Parse the data_store from
|
1542
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1517
1543
|
*
|
1518
|
-
* @param {string}
|
1519
|
-
* A fully-qualified path representing
|
1544
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1545
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1520
1546
|
* @returns {string} A string representing the data_store.
|
1521
1547
|
*/
|
1522
|
-
|
1523
|
-
return this.pathTemplates.
|
1548
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1549
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
|
1524
1550
|
}
|
1525
1551
|
/**
|
1526
|
-
* Parse the session from
|
1552
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1527
1553
|
*
|
1528
|
-
* @param {string}
|
1529
|
-
* A fully-qualified path representing
|
1554
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1555
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1530
1556
|
* @returns {string} A string representing the session.
|
1531
1557
|
*/
|
1532
|
-
|
1533
|
-
return this.pathTemplates.
|
1558
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1559
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
|
1534
1560
|
}
|
1535
1561
|
/**
|
1536
|
-
*
|
1562
|
+
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1563
|
+
*
|
1564
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1565
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1566
|
+
* @returns {string} A string representing the answer.
|
1567
|
+
*/
|
1568
|
+
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1569
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1570
|
+
}
|
1571
|
+
/**
|
1572
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
|
1537
1573
|
*
|
1538
1574
|
* @param {string} project
|
1539
1575
|
* @param {string} location
|
1540
1576
|
* @param {string} collection
|
1541
1577
|
* @param {string} data_store
|
1542
1578
|
* @param {string} session
|
1543
|
-
* @param {string} answer
|
1544
1579
|
* @returns {string} Resource name string.
|
1545
1580
|
*/
|
1546
|
-
|
1547
|
-
return this.pathTemplates.
|
1581
|
+
projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
|
1582
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
|
1548
1583
|
project: project,
|
1549
1584
|
location: location,
|
1550
1585
|
collection: collection,
|
1551
1586
|
data_store: dataStore,
|
1552
1587
|
session: session,
|
1553
|
-
answer: answer,
|
1554
1588
|
});
|
1555
1589
|
}
|
1556
1590
|
/**
|
1557
|
-
* Parse the project from
|
1591
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessions resource.
|
1558
1592
|
*
|
1559
|
-
* @param {string}
|
1560
|
-
* A fully-qualified path representing
|
1593
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1594
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1561
1595
|
* @returns {string} A string representing the project.
|
1562
1596
|
*/
|
1563
|
-
|
1564
|
-
return this.pathTemplates.
|
1597
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1598
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
|
1565
1599
|
}
|
1566
1600
|
/**
|
1567
|
-
* Parse the location from
|
1601
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessions resource.
|
1568
1602
|
*
|
1569
|
-
* @param {string}
|
1570
|
-
* A fully-qualified path representing
|
1603
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1604
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1571
1605
|
* @returns {string} A string representing the location.
|
1572
1606
|
*/
|
1573
|
-
|
1574
|
-
return this.pathTemplates.
|
1607
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1608
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
|
1575
1609
|
}
|
1576
1610
|
/**
|
1577
|
-
* Parse the collection from
|
1611
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
|
1578
1612
|
*
|
1579
|
-
* @param {string}
|
1580
|
-
* A fully-qualified path representing
|
1613
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1614
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1581
1615
|
* @returns {string} A string representing the collection.
|
1582
1616
|
*/
|
1583
|
-
|
1584
|
-
return this.pathTemplates.
|
1617
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1618
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
|
1585
1619
|
}
|
1586
1620
|
/**
|
1587
|
-
* Parse the data_store from
|
1621
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
|
1588
1622
|
*
|
1589
|
-
* @param {string}
|
1590
|
-
* A fully-qualified path representing
|
1623
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1624
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1591
1625
|
* @returns {string} A string representing the data_store.
|
1592
1626
|
*/
|
1593
|
-
|
1594
|
-
return this.pathTemplates.
|
1627
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1628
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
|
1595
1629
|
}
|
1596
1630
|
/**
|
1597
|
-
* Parse the session from
|
1631
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessions resource.
|
1598
1632
|
*
|
1599
|
-
* @param {string}
|
1600
|
-
* A fully-qualified path representing
|
1633
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1634
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1601
1635
|
* @returns {string} A string representing the session.
|
1602
1636
|
*/
|
1603
|
-
|
1604
|
-
return this.pathTemplates.
|
1605
|
-
}
|
1606
|
-
/**
|
1607
|
-
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1608
|
-
*
|
1609
|
-
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1610
|
-
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1611
|
-
* @returns {string} A string representing the answer.
|
1612
|
-
*/
|
1613
|
-
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1614
|
-
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1637
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1638
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
|
1615
1639
|
}
|
1616
1640
|
/**
|
1617
1641
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
@@ -1947,154 +1971,154 @@ class SampleQuerySetServiceClient {
|
|
1947
1971
|
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1948
1972
|
}
|
1949
1973
|
/**
|
1950
|
-
* Return a fully-qualified
|
1974
|
+
* Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
|
1951
1975
|
*
|
1952
1976
|
* @param {string} project
|
1953
1977
|
* @param {string} location
|
1954
1978
|
* @param {string} collection
|
1955
1979
|
* @param {string} engine
|
1956
1980
|
* @param {string} session
|
1981
|
+
* @param {string} answer
|
1957
1982
|
* @returns {string} Resource name string.
|
1958
1983
|
*/
|
1959
|
-
|
1960
|
-
return this.pathTemplates.
|
1984
|
+
projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
|
1985
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
|
1961
1986
|
project: project,
|
1962
1987
|
location: location,
|
1963
1988
|
collection: collection,
|
1964
1989
|
engine: engine,
|
1965
1990
|
session: session,
|
1991
|
+
answer: answer,
|
1966
1992
|
});
|
1967
1993
|
}
|
1968
1994
|
/**
|
1969
|
-
* Parse the project from
|
1995
|
+
* Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
|
1970
1996
|
*
|
1971
|
-
* @param {string}
|
1972
|
-
* A fully-qualified path representing
|
1997
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1998
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1973
1999
|
* @returns {string} A string representing the project.
|
1974
2000
|
*/
|
1975
|
-
|
1976
|
-
return this.pathTemplates.
|
2001
|
+
matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2002
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
|
1977
2003
|
}
|
1978
2004
|
/**
|
1979
|
-
* Parse the location from
|
2005
|
+
* Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
|
1980
2006
|
*
|
1981
|
-
* @param {string}
|
1982
|
-
* A fully-qualified path representing
|
2007
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2008
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1983
2009
|
* @returns {string} A string representing the location.
|
1984
2010
|
*/
|
1985
|
-
|
1986
|
-
return this.pathTemplates.
|
2011
|
+
matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2012
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
|
1987
2013
|
}
|
1988
2014
|
/**
|
1989
|
-
* Parse the collection from
|
2015
|
+
* Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
|
1990
2016
|
*
|
1991
|
-
* @param {string}
|
1992
|
-
* A fully-qualified path representing
|
2017
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2018
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1993
2019
|
* @returns {string} A string representing the collection.
|
1994
2020
|
*/
|
1995
|
-
|
1996
|
-
return this.pathTemplates.
|
2021
|
+
matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2022
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
|
1997
2023
|
}
|
1998
2024
|
/**
|
1999
|
-
* Parse the engine from
|
2025
|
+
* Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
|
2000
2026
|
*
|
2001
|
-
* @param {string}
|
2002
|
-
* A fully-qualified path representing
|
2027
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2028
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2003
2029
|
* @returns {string} A string representing the engine.
|
2004
2030
|
*/
|
2005
|
-
|
2006
|
-
return this.pathTemplates.
|
2031
|
+
matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2032
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
|
2007
2033
|
}
|
2008
2034
|
/**
|
2009
|
-
* Parse the session from
|
2035
|
+
* Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
|
2010
2036
|
*
|
2011
|
-
* @param {string}
|
2012
|
-
* A fully-qualified path representing
|
2037
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2038
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2013
2039
|
* @returns {string} A string representing the session.
|
2014
2040
|
*/
|
2015
|
-
|
2016
|
-
return this.pathTemplates.
|
2041
|
+
matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2042
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
|
2017
2043
|
}
|
2018
2044
|
/**
|
2019
|
-
*
|
2045
|
+
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
2046
|
+
*
|
2047
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2048
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2049
|
+
* @returns {string} A string representing the answer.
|
2050
|
+
*/
|
2051
|
+
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2052
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
2053
|
+
}
|
2054
|
+
/**
|
2055
|
+
* Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
|
2020
2056
|
*
|
2021
2057
|
* @param {string} project
|
2022
2058
|
* @param {string} location
|
2023
2059
|
* @param {string} collection
|
2024
2060
|
* @param {string} engine
|
2025
2061
|
* @param {string} session
|
2026
|
-
* @param {string} answer
|
2027
2062
|
* @returns {string} Resource name string.
|
2028
2063
|
*/
|
2029
|
-
|
2030
|
-
return this.pathTemplates.
|
2064
|
+
projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
|
2065
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
|
2031
2066
|
project: project,
|
2032
2067
|
location: location,
|
2033
2068
|
collection: collection,
|
2034
2069
|
engine: engine,
|
2035
2070
|
session: session,
|
2036
|
-
answer: answer,
|
2037
2071
|
});
|
2038
2072
|
}
|
2039
2073
|
/**
|
2040
|
-
* Parse the project from
|
2074
|
+
* Parse the project from ProjectLocationCollectionEngineSessions resource.
|
2041
2075
|
*
|
2042
|
-
* @param {string}
|
2043
|
-
* A fully-qualified path representing
|
2076
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2077
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2044
2078
|
* @returns {string} A string representing the project.
|
2045
2079
|
*/
|
2046
|
-
|
2047
|
-
return this.pathTemplates.
|
2080
|
+
matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2081
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
|
2048
2082
|
}
|
2049
2083
|
/**
|
2050
|
-
* Parse the location from
|
2084
|
+
* Parse the location from ProjectLocationCollectionEngineSessions resource.
|
2051
2085
|
*
|
2052
|
-
* @param {string}
|
2053
|
-
* A fully-qualified path representing
|
2086
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2087
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2054
2088
|
* @returns {string} A string representing the location.
|
2055
2089
|
*/
|
2056
|
-
|
2057
|
-
return this.pathTemplates.
|
2090
|
+
matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2091
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
|
2058
2092
|
}
|
2059
2093
|
/**
|
2060
|
-
* Parse the collection from
|
2094
|
+
* Parse the collection from ProjectLocationCollectionEngineSessions resource.
|
2061
2095
|
*
|
2062
|
-
* @param {string}
|
2063
|
-
* A fully-qualified path representing
|
2096
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2097
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2064
2098
|
* @returns {string} A string representing the collection.
|
2065
2099
|
*/
|
2066
|
-
|
2067
|
-
return this.pathTemplates.
|
2100
|
+
matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2101
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
|
2068
2102
|
}
|
2069
2103
|
/**
|
2070
|
-
* Parse the engine from
|
2104
|
+
* Parse the engine from ProjectLocationCollectionEngineSessions resource.
|
2071
2105
|
*
|
2072
|
-
* @param {string}
|
2073
|
-
* A fully-qualified path representing
|
2106
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2107
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2074
2108
|
* @returns {string} A string representing the engine.
|
2075
2109
|
*/
|
2076
|
-
|
2077
|
-
return this.pathTemplates.
|
2110
|
+
matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2111
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
|
2078
2112
|
}
|
2079
2113
|
/**
|
2080
|
-
* Parse the session from
|
2114
|
+
* Parse the session from ProjectLocationCollectionEngineSessions resource.
|
2081
2115
|
*
|
2082
|
-
* @param {string}
|
2083
|
-
* A fully-qualified path representing
|
2116
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2117
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2084
2118
|
* @returns {string} A string representing the session.
|
2085
2119
|
*/
|
2086
|
-
|
2087
|
-
return this.pathTemplates.
|
2088
|
-
}
|
2089
|
-
/**
|
2090
|
-
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
2091
|
-
*
|
2092
|
-
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2093
|
-
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2094
|
-
* @returns {string} A string representing the answer.
|
2095
|
-
*/
|
2096
|
-
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2097
|
-
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
2120
|
+
matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2121
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
|
2098
2122
|
}
|
2099
2123
|
/**
|
2100
2124
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
@@ -2621,63 +2645,6 @@ class SampleQuerySetServiceClient {
|
|
2621
2645
|
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2622
2646
|
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2623
2647
|
}
|
2624
|
-
/**
|
2625
|
-
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2626
|
-
*
|
2627
|
-
* @param {string} project
|
2628
|
-
* @param {string} location
|
2629
|
-
* @param {string} data_store
|
2630
|
-
* @param {string} session
|
2631
|
-
* @returns {string} Resource name string.
|
2632
|
-
*/
|
2633
|
-
projectLocationDataStoreSessionPath(project, location, dataStore, session) {
|
2634
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
|
2635
|
-
project: project,
|
2636
|
-
location: location,
|
2637
|
-
data_store: dataStore,
|
2638
|
-
session: session,
|
2639
|
-
});
|
2640
|
-
}
|
2641
|
-
/**
|
2642
|
-
* Parse the project from ProjectLocationDataStoreSession resource.
|
2643
|
-
*
|
2644
|
-
* @param {string} projectLocationDataStoreSessionName
|
2645
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2646
|
-
* @returns {string} A string representing the project.
|
2647
|
-
*/
|
2648
|
-
matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2649
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
|
2650
|
-
}
|
2651
|
-
/**
|
2652
|
-
* Parse the location from ProjectLocationDataStoreSession resource.
|
2653
|
-
*
|
2654
|
-
* @param {string} projectLocationDataStoreSessionName
|
2655
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2656
|
-
* @returns {string} A string representing the location.
|
2657
|
-
*/
|
2658
|
-
matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2659
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
|
2660
|
-
}
|
2661
|
-
/**
|
2662
|
-
* Parse the data_store from ProjectLocationDataStoreSession resource.
|
2663
|
-
*
|
2664
|
-
* @param {string} projectLocationDataStoreSessionName
|
2665
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2666
|
-
* @returns {string} A string representing the data_store.
|
2667
|
-
*/
|
2668
|
-
matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2669
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
|
2670
|
-
}
|
2671
|
-
/**
|
2672
|
-
* Parse the session from ProjectLocationDataStoreSession resource.
|
2673
|
-
*
|
2674
|
-
* @param {string} projectLocationDataStoreSessionName
|
2675
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2676
|
-
* @returns {string} A string representing the session.
|
2677
|
-
*/
|
2678
|
-
matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2679
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
|
2680
|
-
}
|
2681
2648
|
/**
|
2682
2649
|
* Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
|
2683
2650
|
*
|
@@ -2747,6 +2714,63 @@ class SampleQuerySetServiceClient {
|
|
2747
2714
|
matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2748
2715
|
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
|
2749
2716
|
}
|
2717
|
+
/**
|
2718
|
+
* Return a fully-qualified projectLocationDataStoreSessions resource name string.
|
2719
|
+
*
|
2720
|
+
* @param {string} project
|
2721
|
+
* @param {string} location
|
2722
|
+
* @param {string} data_store
|
2723
|
+
* @param {string} session
|
2724
|
+
* @returns {string} Resource name string.
|
2725
|
+
*/
|
2726
|
+
projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
|
2727
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
|
2728
|
+
project: project,
|
2729
|
+
location: location,
|
2730
|
+
data_store: dataStore,
|
2731
|
+
session: session,
|
2732
|
+
});
|
2733
|
+
}
|
2734
|
+
/**
|
2735
|
+
* Parse the project from ProjectLocationDataStoreSessions resource.
|
2736
|
+
*
|
2737
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2738
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2739
|
+
* @returns {string} A string representing the project.
|
2740
|
+
*/
|
2741
|
+
matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2742
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
|
2743
|
+
}
|
2744
|
+
/**
|
2745
|
+
* Parse the location from ProjectLocationDataStoreSessions resource.
|
2746
|
+
*
|
2747
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2748
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2749
|
+
* @returns {string} A string representing the location.
|
2750
|
+
*/
|
2751
|
+
matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2752
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
|
2753
|
+
}
|
2754
|
+
/**
|
2755
|
+
* Parse the data_store from ProjectLocationDataStoreSessions resource.
|
2756
|
+
*
|
2757
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2758
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2759
|
+
* @returns {string} A string representing the data_store.
|
2760
|
+
*/
|
2761
|
+
matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2762
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
|
2763
|
+
}
|
2764
|
+
/**
|
2765
|
+
* Parse the session from ProjectLocationDataStoreSessions resource.
|
2766
|
+
*
|
2767
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2768
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2769
|
+
* @returns {string} A string representing the session.
|
2770
|
+
*/
|
2771
|
+
matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2772
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
|
2773
|
+
}
|
2750
2774
|
/**
|
2751
2775
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
2752
2776
|
*
|