@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
@@ -176,15 +176,15 @@ class SearchTuningServiceClient {
|
|
176
176
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
177
177
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
178
178
|
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
179
|
-
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
180
179
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
180
|
+
projectLocationCollectionDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
181
181
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
182
182
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
183
183
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
184
184
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
185
185
|
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
186
|
-
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
187
186
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
187
|
+
projectLocationCollectionEngineSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
188
188
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
189
189
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
190
190
|
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
@@ -194,14 +194,14 @@ class SearchTuningServiceClient {
|
|
194
194
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
195
195
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
196
196
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
197
|
-
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
198
197
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
198
|
+
projectLocationDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
199
199
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
200
200
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
201
201
|
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
202
202
|
sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
|
203
203
|
};
|
204
|
-
const protoFilesRoot = this._gaxModule.
|
204
|
+
const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
|
205
205
|
// This API contains "long-running operations", which return a
|
206
206
|
// an Operation object that allows for tracking of the operation,
|
207
207
|
// rather than holding a request open.
|
@@ -361,6 +361,12 @@ class SearchTuningServiceClient {
|
|
361
361
|
?.then(([response, options, rawResponse]) => {
|
362
362
|
this._log.info('listCustomModels response %j', response);
|
363
363
|
return [response, options, rawResponse];
|
364
|
+
}).catch((error) => {
|
365
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
366
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
367
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
368
|
+
}
|
369
|
+
throw error;
|
364
370
|
});
|
365
371
|
}
|
366
372
|
trainCustomModel(request, optionsOrCallback, callback) {
|
@@ -1439,154 +1445,154 @@ class SearchTuningServiceClient {
|
|
1439
1445
|
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1440
1446
|
}
|
1441
1447
|
/**
|
1442
|
-
* Return a fully-qualified
|
1448
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
|
1443
1449
|
*
|
1444
1450
|
* @param {string} project
|
1445
1451
|
* @param {string} location
|
1446
1452
|
* @param {string} collection
|
1447
1453
|
* @param {string} data_store
|
1448
1454
|
* @param {string} session
|
1455
|
+
* @param {string} answer
|
1449
1456
|
* @returns {string} Resource name string.
|
1450
1457
|
*/
|
1451
|
-
|
1452
|
-
return this.pathTemplates.
|
1458
|
+
projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
|
1459
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
|
1453
1460
|
project: project,
|
1454
1461
|
location: location,
|
1455
1462
|
collection: collection,
|
1456
1463
|
data_store: dataStore,
|
1457
1464
|
session: session,
|
1465
|
+
answer: answer,
|
1458
1466
|
});
|
1459
1467
|
}
|
1460
1468
|
/**
|
1461
|
-
* Parse the project from
|
1469
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1462
1470
|
*
|
1463
|
-
* @param {string}
|
1464
|
-
* A fully-qualified path representing
|
1471
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1472
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1465
1473
|
* @returns {string} A string representing the project.
|
1466
1474
|
*/
|
1467
|
-
|
1468
|
-
return this.pathTemplates.
|
1475
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1476
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
|
1469
1477
|
}
|
1470
1478
|
/**
|
1471
|
-
* Parse the location from
|
1479
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1472
1480
|
*
|
1473
|
-
* @param {string}
|
1474
|
-
* A fully-qualified path representing
|
1481
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1482
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1475
1483
|
* @returns {string} A string representing the location.
|
1476
1484
|
*/
|
1477
|
-
|
1478
|
-
return this.pathTemplates.
|
1485
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1486
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
|
1479
1487
|
}
|
1480
1488
|
/**
|
1481
|
-
* Parse the collection from
|
1489
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1482
1490
|
*
|
1483
|
-
* @param {string}
|
1484
|
-
* A fully-qualified path representing
|
1491
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1492
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1485
1493
|
* @returns {string} A string representing the collection.
|
1486
1494
|
*/
|
1487
|
-
|
1488
|
-
return this.pathTemplates.
|
1495
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1496
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
|
1489
1497
|
}
|
1490
1498
|
/**
|
1491
|
-
* Parse the data_store from
|
1499
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1492
1500
|
*
|
1493
|
-
* @param {string}
|
1494
|
-
* A fully-qualified path representing
|
1501
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1502
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1495
1503
|
* @returns {string} A string representing the data_store.
|
1496
1504
|
*/
|
1497
|
-
|
1498
|
-
return this.pathTemplates.
|
1505
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1506
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
|
1499
1507
|
}
|
1500
1508
|
/**
|
1501
|
-
* Parse the session from
|
1509
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1502
1510
|
*
|
1503
|
-
* @param {string}
|
1504
|
-
* A fully-qualified path representing
|
1511
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1512
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1505
1513
|
* @returns {string} A string representing the session.
|
1506
1514
|
*/
|
1507
|
-
|
1508
|
-
return this.pathTemplates.
|
1515
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1516
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
|
1509
1517
|
}
|
1510
1518
|
/**
|
1511
|
-
*
|
1519
|
+
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1520
|
+
*
|
1521
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1522
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1523
|
+
* @returns {string} A string representing the answer.
|
1524
|
+
*/
|
1525
|
+
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1526
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1527
|
+
}
|
1528
|
+
/**
|
1529
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
|
1512
1530
|
*
|
1513
1531
|
* @param {string} project
|
1514
1532
|
* @param {string} location
|
1515
1533
|
* @param {string} collection
|
1516
1534
|
* @param {string} data_store
|
1517
1535
|
* @param {string} session
|
1518
|
-
* @param {string} answer
|
1519
1536
|
* @returns {string} Resource name string.
|
1520
1537
|
*/
|
1521
|
-
|
1522
|
-
return this.pathTemplates.
|
1538
|
+
projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
|
1539
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
|
1523
1540
|
project: project,
|
1524
1541
|
location: location,
|
1525
1542
|
collection: collection,
|
1526
1543
|
data_store: dataStore,
|
1527
1544
|
session: session,
|
1528
|
-
answer: answer,
|
1529
1545
|
});
|
1530
1546
|
}
|
1531
1547
|
/**
|
1532
|
-
* Parse the project from
|
1548
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessions resource.
|
1533
1549
|
*
|
1534
|
-
* @param {string}
|
1535
|
-
* A fully-qualified path representing
|
1550
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1551
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1536
1552
|
* @returns {string} A string representing the project.
|
1537
1553
|
*/
|
1538
|
-
|
1539
|
-
return this.pathTemplates.
|
1554
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1555
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
|
1540
1556
|
}
|
1541
1557
|
/**
|
1542
|
-
* Parse the location from
|
1558
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessions resource.
|
1543
1559
|
*
|
1544
|
-
* @param {string}
|
1545
|
-
* A fully-qualified path representing
|
1560
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1561
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1546
1562
|
* @returns {string} A string representing the location.
|
1547
1563
|
*/
|
1548
|
-
|
1549
|
-
return this.pathTemplates.
|
1564
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1565
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
|
1550
1566
|
}
|
1551
1567
|
/**
|
1552
|
-
* Parse the collection from
|
1568
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
|
1553
1569
|
*
|
1554
|
-
* @param {string}
|
1555
|
-
* A fully-qualified path representing
|
1570
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1571
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1556
1572
|
* @returns {string} A string representing the collection.
|
1557
1573
|
*/
|
1558
|
-
|
1559
|
-
return this.pathTemplates.
|
1574
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1575
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
|
1560
1576
|
}
|
1561
1577
|
/**
|
1562
|
-
* Parse the data_store from
|
1578
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
|
1563
1579
|
*
|
1564
|
-
* @param {string}
|
1565
|
-
* A fully-qualified path representing
|
1580
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1581
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1566
1582
|
* @returns {string} A string representing the data_store.
|
1567
1583
|
*/
|
1568
|
-
|
1569
|
-
return this.pathTemplates.
|
1584
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1585
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
|
1570
1586
|
}
|
1571
1587
|
/**
|
1572
|
-
* Parse the session from
|
1588
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessions resource.
|
1573
1589
|
*
|
1574
|
-
* @param {string}
|
1575
|
-
* A fully-qualified path representing
|
1590
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1591
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1576
1592
|
* @returns {string} A string representing the session.
|
1577
1593
|
*/
|
1578
|
-
|
1579
|
-
return this.pathTemplates.
|
1580
|
-
}
|
1581
|
-
/**
|
1582
|
-
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1583
|
-
*
|
1584
|
-
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1585
|
-
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1586
|
-
* @returns {string} A string representing the answer.
|
1587
|
-
*/
|
1588
|
-
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1589
|
-
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1594
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1595
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
|
1590
1596
|
}
|
1591
1597
|
/**
|
1592
1598
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
@@ -1922,154 +1928,154 @@ class SearchTuningServiceClient {
|
|
1922
1928
|
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1923
1929
|
}
|
1924
1930
|
/**
|
1925
|
-
* Return a fully-qualified
|
1931
|
+
* Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
|
1926
1932
|
*
|
1927
1933
|
* @param {string} project
|
1928
1934
|
* @param {string} location
|
1929
1935
|
* @param {string} collection
|
1930
1936
|
* @param {string} engine
|
1931
1937
|
* @param {string} session
|
1938
|
+
* @param {string} answer
|
1932
1939
|
* @returns {string} Resource name string.
|
1933
1940
|
*/
|
1934
|
-
|
1935
|
-
return this.pathTemplates.
|
1941
|
+
projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
|
1942
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
|
1936
1943
|
project: project,
|
1937
1944
|
location: location,
|
1938
1945
|
collection: collection,
|
1939
1946
|
engine: engine,
|
1940
1947
|
session: session,
|
1948
|
+
answer: answer,
|
1941
1949
|
});
|
1942
1950
|
}
|
1943
1951
|
/**
|
1944
|
-
* Parse the project from
|
1952
|
+
* Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
|
1945
1953
|
*
|
1946
|
-
* @param {string}
|
1947
|
-
* A fully-qualified path representing
|
1954
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1955
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1948
1956
|
* @returns {string} A string representing the project.
|
1949
1957
|
*/
|
1950
|
-
|
1951
|
-
return this.pathTemplates.
|
1958
|
+
matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1959
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
|
1952
1960
|
}
|
1953
1961
|
/**
|
1954
|
-
* Parse the location from
|
1962
|
+
* Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
|
1955
1963
|
*
|
1956
|
-
* @param {string}
|
1957
|
-
* A fully-qualified path representing
|
1964
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1965
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1958
1966
|
* @returns {string} A string representing the location.
|
1959
1967
|
*/
|
1960
|
-
|
1961
|
-
return this.pathTemplates.
|
1968
|
+
matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1969
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
|
1962
1970
|
}
|
1963
1971
|
/**
|
1964
|
-
* Parse the collection from
|
1972
|
+
* Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
|
1965
1973
|
*
|
1966
|
-
* @param {string}
|
1967
|
-
* A fully-qualified path representing
|
1974
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1975
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1968
1976
|
* @returns {string} A string representing the collection.
|
1969
1977
|
*/
|
1970
|
-
|
1971
|
-
return this.pathTemplates.
|
1978
|
+
matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1979
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
|
1972
1980
|
}
|
1973
1981
|
/**
|
1974
|
-
* Parse the engine from
|
1982
|
+
* Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
|
1975
1983
|
*
|
1976
|
-
* @param {string}
|
1977
|
-
* A fully-qualified path representing
|
1984
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1985
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1978
1986
|
* @returns {string} A string representing the engine.
|
1979
1987
|
*/
|
1980
|
-
|
1981
|
-
return this.pathTemplates.
|
1988
|
+
matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1989
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
|
1982
1990
|
}
|
1983
1991
|
/**
|
1984
|
-
* Parse the session from
|
1992
|
+
* Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
|
1985
1993
|
*
|
1986
|
-
* @param {string}
|
1987
|
-
* A fully-qualified path representing
|
1994
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1995
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1988
1996
|
* @returns {string} A string representing the session.
|
1989
1997
|
*/
|
1990
|
-
|
1991
|
-
return this.pathTemplates.
|
1998
|
+
matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1999
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
|
1992
2000
|
}
|
1993
2001
|
/**
|
1994
|
-
*
|
2002
|
+
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
2003
|
+
*
|
2004
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2005
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2006
|
+
* @returns {string} A string representing the answer.
|
2007
|
+
*/
|
2008
|
+
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2009
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
2010
|
+
}
|
2011
|
+
/**
|
2012
|
+
* Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
|
1995
2013
|
*
|
1996
2014
|
* @param {string} project
|
1997
2015
|
* @param {string} location
|
1998
2016
|
* @param {string} collection
|
1999
2017
|
* @param {string} engine
|
2000
2018
|
* @param {string} session
|
2001
|
-
* @param {string} answer
|
2002
2019
|
* @returns {string} Resource name string.
|
2003
2020
|
*/
|
2004
|
-
|
2005
|
-
return this.pathTemplates.
|
2021
|
+
projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
|
2022
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
|
2006
2023
|
project: project,
|
2007
2024
|
location: location,
|
2008
2025
|
collection: collection,
|
2009
2026
|
engine: engine,
|
2010
2027
|
session: session,
|
2011
|
-
answer: answer,
|
2012
2028
|
});
|
2013
2029
|
}
|
2014
2030
|
/**
|
2015
|
-
* Parse the project from
|
2031
|
+
* Parse the project from ProjectLocationCollectionEngineSessions resource.
|
2016
2032
|
*
|
2017
|
-
* @param {string}
|
2018
|
-
* A fully-qualified path representing
|
2033
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2034
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2019
2035
|
* @returns {string} A string representing the project.
|
2020
2036
|
*/
|
2021
|
-
|
2022
|
-
return this.pathTemplates.
|
2037
|
+
matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2038
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
|
2023
2039
|
}
|
2024
2040
|
/**
|
2025
|
-
* Parse the location from
|
2041
|
+
* Parse the location from ProjectLocationCollectionEngineSessions resource.
|
2026
2042
|
*
|
2027
|
-
* @param {string}
|
2028
|
-
* A fully-qualified path representing
|
2043
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2044
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2029
2045
|
* @returns {string} A string representing the location.
|
2030
2046
|
*/
|
2031
|
-
|
2032
|
-
return this.pathTemplates.
|
2047
|
+
matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2048
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
|
2033
2049
|
}
|
2034
2050
|
/**
|
2035
|
-
* Parse the collection from
|
2051
|
+
* Parse the collection from ProjectLocationCollectionEngineSessions resource.
|
2036
2052
|
*
|
2037
|
-
* @param {string}
|
2038
|
-
* A fully-qualified path representing
|
2053
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2054
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2039
2055
|
* @returns {string} A string representing the collection.
|
2040
2056
|
*/
|
2041
|
-
|
2042
|
-
return this.pathTemplates.
|
2057
|
+
matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2058
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
|
2043
2059
|
}
|
2044
2060
|
/**
|
2045
|
-
* Parse the engine from
|
2061
|
+
* Parse the engine from ProjectLocationCollectionEngineSessions resource.
|
2046
2062
|
*
|
2047
|
-
* @param {string}
|
2048
|
-
* A fully-qualified path representing
|
2063
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2064
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2049
2065
|
* @returns {string} A string representing the engine.
|
2050
2066
|
*/
|
2051
|
-
|
2052
|
-
return this.pathTemplates.
|
2067
|
+
matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2068
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
|
2053
2069
|
}
|
2054
2070
|
/**
|
2055
|
-
* Parse the session from
|
2071
|
+
* Parse the session from ProjectLocationCollectionEngineSessions resource.
|
2056
2072
|
*
|
2057
|
-
* @param {string}
|
2058
|
-
* A fully-qualified path representing
|
2073
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2074
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2059
2075
|
* @returns {string} A string representing the session.
|
2060
2076
|
*/
|
2061
|
-
|
2062
|
-
return this.pathTemplates.
|
2063
|
-
}
|
2064
|
-
/**
|
2065
|
-
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
2066
|
-
*
|
2067
|
-
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2068
|
-
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2069
|
-
* @returns {string} A string representing the answer.
|
2070
|
-
*/
|
2071
|
-
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2072
|
-
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
2077
|
+
matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2078
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
|
2073
2079
|
}
|
2074
2080
|
/**
|
2075
2081
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
@@ -2596,63 +2602,6 @@ class SearchTuningServiceClient {
|
|
2596
2602
|
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2597
2603
|
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2598
2604
|
}
|
2599
|
-
/**
|
2600
|
-
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2601
|
-
*
|
2602
|
-
* @param {string} project
|
2603
|
-
* @param {string} location
|
2604
|
-
* @param {string} data_store
|
2605
|
-
* @param {string} session
|
2606
|
-
* @returns {string} Resource name string.
|
2607
|
-
*/
|
2608
|
-
projectLocationDataStoreSessionPath(project, location, dataStore, session) {
|
2609
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
|
2610
|
-
project: project,
|
2611
|
-
location: location,
|
2612
|
-
data_store: dataStore,
|
2613
|
-
session: session,
|
2614
|
-
});
|
2615
|
-
}
|
2616
|
-
/**
|
2617
|
-
* Parse the project from ProjectLocationDataStoreSession resource.
|
2618
|
-
*
|
2619
|
-
* @param {string} projectLocationDataStoreSessionName
|
2620
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2621
|
-
* @returns {string} A string representing the project.
|
2622
|
-
*/
|
2623
|
-
matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2624
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
|
2625
|
-
}
|
2626
|
-
/**
|
2627
|
-
* Parse the location from ProjectLocationDataStoreSession resource.
|
2628
|
-
*
|
2629
|
-
* @param {string} projectLocationDataStoreSessionName
|
2630
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2631
|
-
* @returns {string} A string representing the location.
|
2632
|
-
*/
|
2633
|
-
matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2634
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
|
2635
|
-
}
|
2636
|
-
/**
|
2637
|
-
* Parse the data_store from ProjectLocationDataStoreSession resource.
|
2638
|
-
*
|
2639
|
-
* @param {string} projectLocationDataStoreSessionName
|
2640
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2641
|
-
* @returns {string} A string representing the data_store.
|
2642
|
-
*/
|
2643
|
-
matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2644
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
|
2645
|
-
}
|
2646
|
-
/**
|
2647
|
-
* Parse the session from ProjectLocationDataStoreSession resource.
|
2648
|
-
*
|
2649
|
-
* @param {string} projectLocationDataStoreSessionName
|
2650
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2651
|
-
* @returns {string} A string representing the session.
|
2652
|
-
*/
|
2653
|
-
matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2654
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
|
2655
|
-
}
|
2656
2605
|
/**
|
2657
2606
|
* Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
|
2658
2607
|
*
|
@@ -2722,6 +2671,63 @@ class SearchTuningServiceClient {
|
|
2722
2671
|
matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2723
2672
|
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
|
2724
2673
|
}
|
2674
|
+
/**
|
2675
|
+
* Return a fully-qualified projectLocationDataStoreSessions resource name string.
|
2676
|
+
*
|
2677
|
+
* @param {string} project
|
2678
|
+
* @param {string} location
|
2679
|
+
* @param {string} data_store
|
2680
|
+
* @param {string} session
|
2681
|
+
* @returns {string} Resource name string.
|
2682
|
+
*/
|
2683
|
+
projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
|
2684
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
|
2685
|
+
project: project,
|
2686
|
+
location: location,
|
2687
|
+
data_store: dataStore,
|
2688
|
+
session: session,
|
2689
|
+
});
|
2690
|
+
}
|
2691
|
+
/**
|
2692
|
+
* Parse the project from ProjectLocationDataStoreSessions resource.
|
2693
|
+
*
|
2694
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2695
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2696
|
+
* @returns {string} A string representing the project.
|
2697
|
+
*/
|
2698
|
+
matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2699
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
|
2700
|
+
}
|
2701
|
+
/**
|
2702
|
+
* Parse the location from ProjectLocationDataStoreSessions resource.
|
2703
|
+
*
|
2704
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2705
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2706
|
+
* @returns {string} A string representing the location.
|
2707
|
+
*/
|
2708
|
+
matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2709
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
|
2710
|
+
}
|
2711
|
+
/**
|
2712
|
+
* Parse the data_store from ProjectLocationDataStoreSessions resource.
|
2713
|
+
*
|
2714
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2715
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2716
|
+
* @returns {string} A string representing the data_store.
|
2717
|
+
*/
|
2718
|
+
matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2719
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
|
2720
|
+
}
|
2721
|
+
/**
|
2722
|
+
* Parse the session from ProjectLocationDataStoreSessions resource.
|
2723
|
+
*
|
2724
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2725
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2726
|
+
* @returns {string} A string representing the session.
|
2727
|
+
*/
|
2728
|
+
matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2729
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
|
2730
|
+
}
|
2725
2731
|
/**
|
2726
2732
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
2727
2733
|
*
|