@google-cloud/discoveryengine 1.8.0 → 1.9.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/CHANGELOG.md +8 -0
- package/README.md +33 -4
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +337 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +33 -0
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +214 -0
- package/build/protos/google/cloud/discoveryengine/v1/control_service.proto +236 -0
- package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +569 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +4 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +92 -0
- package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +6 -6
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +4 -4
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +149 -0
- package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +58 -0
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +4 -4
- package/build/protos/google/cloud/discoveryengine/v1/project.proto +103 -0
- package/build/protos/google/cloud/discoveryengine/v1/project_service.proto +90 -0
- package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +131 -0
- package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +20 -19
- package/build/protos/google/cloud/discoveryengine/v1/schema_service.proto +5 -5
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +23 -18
- package/build/protos/google/cloud/discoveryengine/v1/session.proto +97 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +28 -3
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +18 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +9 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +7 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +16 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/control.proto +217 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/control_service.proto +236 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +19 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/custom_tuning_model.proto +87 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +1 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +12 -9
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +4 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +30 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/grounding.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +4 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/project.proto +1 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/project_service.proto +2 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +19 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +20 -19
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +37 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema_service.proto +6 -6
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +28 -31
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +39 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +29 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +18 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +10 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +16 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/control.proto +216 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/control_service.proto +236 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +19 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +87 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +1 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +7 -8
- package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +4 -4
- package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +30 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/grounding.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +4 -4
- package/build/protos/google/cloud/discoveryengine/v1beta/project.proto +103 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/project_service.proto +90 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/rank_service.proto +19 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +20 -19
- package/build/protos/google/cloud/discoveryengine/v1beta/schema_service.proto +5 -5
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +30 -24
- package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +39 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +4 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +28 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +18 -2
- package/build/protos/protos.d.ts +52350 -38733
- package/build/protos/protos.js +136479 -103212
- package/build/protos/protos.json +9460 -5916
- package/build/src/index.d.ts +13 -1
- package/build/src/index.js +13 -1
- package/build/src/v1/completion_service_client.d.ts +549 -0
- package/build/src/v1/completion_service_client.js +771 -0
- package/build/src/v1/control_service_client.d.ts +1623 -0
- package/build/src/v1/control_service_client.js +2218 -0
- package/build/src/v1/control_service_client_config.json +63 -0
- package/build/src/v1/conversational_search_service_client.d.ts +893 -0
- package/build/src/v1/conversational_search_service_client.js +1040 -14
- package/build/src/v1/conversational_search_service_client_config.json +35 -0
- package/build/src/v1/data_store_service_client.d.ts +555 -6
- package/build/src/v1/data_store_service_client.js +775 -4
- package/build/src/v1/document_service_client.d.ts +557 -8
- package/build/src/v1/document_service_client.js +773 -2
- package/build/src/v1/engine_service_client.d.ts +549 -0
- package/build/src/v1/engine_service_client.js +771 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +1439 -0
- package/build/src/v1/grounded_generation_service_client.js +2036 -0
- package/build/src/v1/grounded_generation_service_client_config.json +43 -0
- package/build/src/v1/index.d.ts +4 -0
- package/build/src/v1/index.js +9 -1
- package/build/src/v1/project_service_client.d.ts +1533 -0
- package/build/src/v1/project_service_client.js +2255 -0
- package/build/src/v1/project_service_client_config.json +43 -0
- package/build/src/v1/rank_service_client.d.ts +1449 -0
- package/build/src/v1/rank_service_client.js +2037 -0
- package/build/src/v1/rank_service_client_config.json +43 -0
- package/build/src/v1/recommendation_service_client.d.ts +568 -18
- package/build/src/v1/recommendation_service_client.js +756 -0
- package/build/src/v1/schema_service_client.d.ts +558 -9
- package/build/src/v1/schema_service_client.js +775 -4
- package/build/src/v1/search_service_client.d.ts +579 -21
- package/build/src/v1/search_service_client.js +776 -14
- package/build/src/v1/site_search_engine_service_client.d.ts +549 -0
- package/build/src/v1/site_search_engine_service_client.js +771 -0
- package/build/src/v1/user_event_service_client.d.ts +562 -2
- package/build/src/v1/user_event_service_client.js +771 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +237 -0
- package/build/src/v1alpha/acl_config_service_client.js +326 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +237 -0
- package/build/src/v1alpha/chunk_service_client.js +326 -0
- package/build/src/v1alpha/completion_service_client.d.ts +237 -0
- package/build/src/v1alpha/completion_service_client.js +340 -0
- package/build/src/v1alpha/control_service_client.d.ts +2013 -0
- package/build/src/v1alpha/control_service_client.js +2757 -0
- package/build/src/v1alpha/control_service_client_config.json +63 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +239 -2
- package/build/src/v1alpha/conversational_search_service_client.js +326 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +243 -6
- package/build/src/v1alpha/data_store_service_client.js +344 -4
- package/build/src/v1alpha/document_service_client.d.ts +246 -9
- package/build/src/v1alpha/document_service_client.js +342 -2
- package/build/src/v1alpha/engine_service_client.d.ts +237 -0
- package/build/src/v1alpha/engine_service_client.js +340 -0
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +237 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +340 -0
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +256 -1
- package/build/src/v1alpha/grounded_generation_service_client.js +326 -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 +239 -0
- package/build/src/v1alpha/project_service_client.js +340 -0
- package/build/src/v1alpha/project_service_client_config.json +21 -6
- package/build/src/v1alpha/rank_service_client.d.ts +255 -0
- package/build/src/v1alpha/rank_service_client.js +326 -0
- package/build/src/v1alpha/recommendation_service_client.d.ts +256 -18
- package/build/src/v1alpha/recommendation_service_client.js +326 -0
- package/build/src/v1alpha/schema_service_client.d.ts +247 -10
- package/build/src/v1alpha/schema_service_client.js +344 -4
- package/build/src/v1alpha/search_service_client.d.ts +267 -21
- package/build/src/v1alpha/search_service_client.js +346 -14
- package/build/src/v1alpha/search_tuning_service_client.d.ts +265 -0
- package/build/src/v1alpha/search_tuning_service_client.js +365 -1
- package/build/src/v1alpha/search_tuning_service_client_config.json +4 -0
- package/build/src/v1alpha/serving_config_service_client.d.ts +237 -0
- package/build/src/v1alpha/serving_config_service_client.js +326 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +237 -0
- package/build/src/v1alpha/site_search_engine_service_client.js +340 -0
- package/build/src/v1alpha/user_event_service_client.d.ts +250 -2
- package/build/src/v1alpha/user_event_service_client.js +340 -0
- package/build/src/v1beta/completion_service_client.d.ts +252 -0
- package/build/src/v1beta/completion_service_client.js +359 -0
- package/build/src/v1beta/control_service_client.d.ts +1860 -0
- package/build/src/v1beta/control_service_client.js +2545 -0
- package/build/src/v1beta/control_service_client_config.json +63 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +254 -2
- package/build/src/v1beta/conversational_search_service_client.js +348 -0
- package/build/src/v1beta/data_store_service_client.d.ts +258 -6
- package/build/src/v1beta/data_store_service_client.js +363 -4
- package/build/src/v1beta/document_service_client.d.ts +261 -10
- package/build/src/v1beta/document_service_client.js +361 -2
- package/build/src/v1beta/engine_service_client.d.ts +252 -0
- package/build/src/v1beta/engine_service_client.js +359 -0
- package/build/src/v1beta/grounded_generation_service_client.d.ts +271 -1
- package/build/src/v1beta/grounded_generation_service_client.js +348 -0
- package/build/src/v1beta/index.d.ts +2 -0
- package/build/src/v1beta/index.js +5 -1
- package/build/src/v1beta/project_service_client.d.ts +1770 -0
- package/build/src/v1beta/project_service_client.js +2576 -0
- package/build/src/v1beta/project_service_client_config.json +43 -0
- package/build/src/v1beta/rank_service_client.d.ts +270 -0
- package/build/src/v1beta/rank_service_client.js +348 -0
- package/build/src/v1beta/recommendation_service_client.d.ts +271 -18
- package/build/src/v1beta/recommendation_service_client.js +348 -0
- package/build/src/v1beta/schema_service_client.d.ts +261 -9
- package/build/src/v1beta/schema_service_client.js +363 -4
- package/build/src/v1beta/search_service_client.d.ts +282 -21
- package/build/src/v1beta/search_service_client.js +368 -14
- package/build/src/v1beta/search_tuning_service_client.d.ts +280 -0
- package/build/src/v1beta/search_tuning_service_client.js +384 -1
- package/build/src/v1beta/search_tuning_service_client_config.json +4 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +237 -0
- package/build/src/v1beta/serving_config_service_client.js +326 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +252 -0
- package/build/src/v1beta/site_search_engine_service_client.js +359 -0
- package/build/src/v1beta/user_event_service_client.d.ts +265 -2
- package/build/src/v1beta/user_event_service_client.js +359 -0
- package/package.json +2 -2
@@ -150,10 +150,13 @@ class SearchServiceClient {
|
|
150
150
|
// Create useful helper objects for these.
|
151
151
|
this.pathTemplates = {
|
152
152
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
153
|
+
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
|
153
154
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
154
155
|
projectLocationCollectionDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}'),
|
155
156
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
157
|
+
projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
|
156
158
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
159
|
+
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
157
160
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
158
161
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
159
162
|
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
@@ -161,6 +164,7 @@ class SearchServiceClient {
|
|
161
164
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
162
165
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
163
166
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
167
|
+
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
164
168
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
165
169
|
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
166
170
|
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
@@ -168,7 +172,9 @@ class SearchServiceClient {
|
|
168
172
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
169
173
|
projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
|
170
174
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
175
|
+
projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
|
171
176
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
177
|
+
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
172
178
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
173
179
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
174
180
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
@@ -365,7 +371,10 @@ class SearchServiceClient {
|
|
365
371
|
*
|
366
372
|
* If this field is negative, an `INVALID_ARGUMENT` is returned.
|
367
373
|
* @param {number[]} request.dataStoreSpecs
|
368
|
-
*
|
374
|
+
* Specs defining dataStores to filter on in a search call and configurations
|
375
|
+
* for those dataStores. This is only considered for engines with multiple
|
376
|
+
* dataStores use case. For single dataStore within an engine, they should
|
377
|
+
* use the specs at the top level.
|
369
378
|
* @param {string} request.filter
|
370
379
|
* The filter syntax consists of an expression language for constructing a
|
371
380
|
* predicate from one or more fields of the documents being filtered. Filter
|
@@ -399,7 +408,9 @@ class SearchServiceClient {
|
|
399
408
|
* The order in which documents are returned. Documents can be ordered by
|
400
409
|
* a field in an {@link protos.google.cloud.discoveryengine.v1beta.Document|Document}
|
401
410
|
* object. Leave it unset if ordered by relevance. `order_by` expression is
|
402
|
-
* case-sensitive.
|
411
|
+
* case-sensitive.
|
412
|
+
*
|
413
|
+
* For more information on ordering for retail search, see
|
403
414
|
* [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
|
404
415
|
*
|
405
416
|
* If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
@@ -416,7 +427,7 @@ class SearchServiceClient {
|
|
416
427
|
* @param {google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec} request.boostSpec
|
417
428
|
* Boost specification to boost certain documents.
|
418
429
|
* For more information on boosting, see
|
419
|
-
* [Boosting](https://cloud.google.com/
|
430
|
+
* [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
|
420
431
|
* @param {number[]} request.params
|
421
432
|
* Additional search parameters.
|
422
433
|
*
|
@@ -424,8 +435,7 @@ class SearchServiceClient {
|
|
424
435
|
*
|
425
436
|
* * `user_country_code`: string. Default empty. If set to non-empty, results
|
426
437
|
* are restricted or boosted based on the location provided.
|
427
|
-
*
|
428
|
-
* user_country_code: "au"
|
438
|
+
* For example, `user_country_code: "au"`
|
429
439
|
*
|
430
440
|
* For available codes see [Country
|
431
441
|
* Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
|
@@ -433,8 +443,7 @@ class SearchServiceClient {
|
|
433
443
|
* * `search_type`: double. Default empty. Enables non-webpage searching
|
434
444
|
* depending on the value. The only valid non-default value is 1,
|
435
445
|
* which enables image searching.
|
436
|
-
*
|
437
|
-
* search_type: 1
|
446
|
+
* For example, `search_type: 1`
|
438
447
|
* @param {google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec} request.queryExpansionSpec
|
439
448
|
* The query expansion specification that specifies the conditions under which
|
440
449
|
* query expansion occurs.
|
@@ -589,7 +598,10 @@ class SearchServiceClient {
|
|
589
598
|
*
|
590
599
|
* If this field is negative, an `INVALID_ARGUMENT` is returned.
|
591
600
|
* @param {number[]} request.dataStoreSpecs
|
592
|
-
*
|
601
|
+
* Specs defining dataStores to filter on in a search call and configurations
|
602
|
+
* for those dataStores. This is only considered for engines with multiple
|
603
|
+
* dataStores use case. For single dataStore within an engine, they should
|
604
|
+
* use the specs at the top level.
|
593
605
|
* @param {string} request.filter
|
594
606
|
* The filter syntax consists of an expression language for constructing a
|
595
607
|
* predicate from one or more fields of the documents being filtered. Filter
|
@@ -623,7 +635,9 @@ class SearchServiceClient {
|
|
623
635
|
* The order in which documents are returned. Documents can be ordered by
|
624
636
|
* a field in an {@link protos.google.cloud.discoveryengine.v1beta.Document|Document}
|
625
637
|
* object. Leave it unset if ordered by relevance. `order_by` expression is
|
626
|
-
* case-sensitive.
|
638
|
+
* case-sensitive.
|
639
|
+
*
|
640
|
+
* For more information on ordering for retail search, see
|
627
641
|
* [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
|
628
642
|
*
|
629
643
|
* If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
@@ -640,7 +654,7 @@ class SearchServiceClient {
|
|
640
654
|
* @param {google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec} request.boostSpec
|
641
655
|
* Boost specification to boost certain documents.
|
642
656
|
* For more information on boosting, see
|
643
|
-
* [Boosting](https://cloud.google.com/
|
657
|
+
* [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
|
644
658
|
* @param {number[]} request.params
|
645
659
|
* Additional search parameters.
|
646
660
|
*
|
@@ -648,8 +662,7 @@ class SearchServiceClient {
|
|
648
662
|
*
|
649
663
|
* * `user_country_code`: string. Default empty. If set to non-empty, results
|
650
664
|
* are restricted or boosted based on the location provided.
|
651
|
-
*
|
652
|
-
* user_country_code: "au"
|
665
|
+
* For example, `user_country_code: "au"`
|
653
666
|
*
|
654
667
|
* For available codes see [Country
|
655
668
|
* Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
|
@@ -657,8 +670,7 @@ class SearchServiceClient {
|
|
657
670
|
* * `search_type`: double. Default empty. Enables non-webpage searching
|
658
671
|
* depending on the value. The only valid non-default value is 1,
|
659
672
|
* which enables image searching.
|
660
|
-
*
|
661
|
-
* search_type: 1
|
673
|
+
* For example, `search_type: 1`
|
662
674
|
* @param {google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec} request.queryExpansionSpec
|
663
675
|
* The query expansion specification that specifies the conditions under which
|
664
676
|
* query expansion occurs.
|
@@ -877,6 +889,27 @@ class SearchServiceClient {
|
|
877
889
|
matchEngineFromEngineName(engineName) {
|
878
890
|
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
879
891
|
}
|
892
|
+
/**
|
893
|
+
* Return a fully-qualified project resource name string.
|
894
|
+
*
|
895
|
+
* @param {string} project
|
896
|
+
* @returns {string} Resource name string.
|
897
|
+
*/
|
898
|
+
projectPath(project) {
|
899
|
+
return this.pathTemplates.projectPathTemplate.render({
|
900
|
+
project: project,
|
901
|
+
});
|
902
|
+
}
|
903
|
+
/**
|
904
|
+
* Parse the project from Project resource.
|
905
|
+
*
|
906
|
+
* @param {string} projectName
|
907
|
+
* A fully-qualified path representing Project resource.
|
908
|
+
* @returns {string} A string representing the project.
|
909
|
+
*/
|
910
|
+
matchProjectFromProjectName(projectName) {
|
911
|
+
return this.pathTemplates.projectPathTemplate.match(projectName).project;
|
912
|
+
}
|
880
913
|
/**
|
881
914
|
* Return a fully-qualified projectLocationCollectionDataStore resource name string.
|
882
915
|
*
|
@@ -1084,6 +1117,75 @@ class SearchServiceClient {
|
|
1084
1117
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
1085
1118
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
1086
1119
|
}
|
1120
|
+
/**
|
1121
|
+
* Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
|
1122
|
+
*
|
1123
|
+
* @param {string} project
|
1124
|
+
* @param {string} location
|
1125
|
+
* @param {string} collection
|
1126
|
+
* @param {string} data_store
|
1127
|
+
* @param {string} control
|
1128
|
+
* @returns {string} Resource name string.
|
1129
|
+
*/
|
1130
|
+
projectLocationCollectionDataStoreControlPath(project, location, collection, dataStore, control) {
|
1131
|
+
return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.render({
|
1132
|
+
project: project,
|
1133
|
+
location: location,
|
1134
|
+
collection: collection,
|
1135
|
+
data_store: dataStore,
|
1136
|
+
control: control,
|
1137
|
+
});
|
1138
|
+
}
|
1139
|
+
/**
|
1140
|
+
* Parse the project from ProjectLocationCollectionDataStoreControl resource.
|
1141
|
+
*
|
1142
|
+
* @param {string} projectLocationCollectionDataStoreControlName
|
1143
|
+
* A fully-qualified path representing project_location_collection_data_store_control resource.
|
1144
|
+
* @returns {string} A string representing the project.
|
1145
|
+
*/
|
1146
|
+
matchProjectFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
|
1147
|
+
return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).project;
|
1148
|
+
}
|
1149
|
+
/**
|
1150
|
+
* Parse the location from ProjectLocationCollectionDataStoreControl resource.
|
1151
|
+
*
|
1152
|
+
* @param {string} projectLocationCollectionDataStoreControlName
|
1153
|
+
* A fully-qualified path representing project_location_collection_data_store_control resource.
|
1154
|
+
* @returns {string} A string representing the location.
|
1155
|
+
*/
|
1156
|
+
matchLocationFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
|
1157
|
+
return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).location;
|
1158
|
+
}
|
1159
|
+
/**
|
1160
|
+
* Parse the collection from ProjectLocationCollectionDataStoreControl resource.
|
1161
|
+
*
|
1162
|
+
* @param {string} projectLocationCollectionDataStoreControlName
|
1163
|
+
* A fully-qualified path representing project_location_collection_data_store_control resource.
|
1164
|
+
* @returns {string} A string representing the collection.
|
1165
|
+
*/
|
1166
|
+
matchCollectionFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
|
1167
|
+
return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).collection;
|
1168
|
+
}
|
1169
|
+
/**
|
1170
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreControl resource.
|
1171
|
+
*
|
1172
|
+
* @param {string} projectLocationCollectionDataStoreControlName
|
1173
|
+
* A fully-qualified path representing project_location_collection_data_store_control resource.
|
1174
|
+
* @returns {string} A string representing the data_store.
|
1175
|
+
*/
|
1176
|
+
matchDataStoreFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
|
1177
|
+
return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).data_store;
|
1178
|
+
}
|
1179
|
+
/**
|
1180
|
+
* Parse the control from ProjectLocationCollectionDataStoreControl resource.
|
1181
|
+
*
|
1182
|
+
* @param {string} projectLocationCollectionDataStoreControlName
|
1183
|
+
* A fully-qualified path representing project_location_collection_data_store_control resource.
|
1184
|
+
* @returns {string} A string representing the control.
|
1185
|
+
*/
|
1186
|
+
matchControlFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
|
1187
|
+
return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).control;
|
1188
|
+
}
|
1087
1189
|
/**
|
1088
1190
|
* Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
|
1089
1191
|
*
|
@@ -1153,6 +1255,75 @@ class SearchServiceClient {
|
|
1153
1255
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
1154
1256
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
1155
1257
|
}
|
1258
|
+
/**
|
1259
|
+
* Return a fully-qualified projectLocationCollectionDataStoreCustomTuningModel resource name string.
|
1260
|
+
*
|
1261
|
+
* @param {string} project
|
1262
|
+
* @param {string} location
|
1263
|
+
* @param {string} collection
|
1264
|
+
* @param {string} data_store
|
1265
|
+
* @param {string} custom_tuning_model
|
1266
|
+
* @returns {string} Resource name string.
|
1267
|
+
*/
|
1268
|
+
projectLocationCollectionDataStoreCustomTuningModelPath(project, location, collection, dataStore, customTuningModel) {
|
1269
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.render({
|
1270
|
+
project: project,
|
1271
|
+
location: location,
|
1272
|
+
collection: collection,
|
1273
|
+
data_store: dataStore,
|
1274
|
+
custom_tuning_model: customTuningModel,
|
1275
|
+
});
|
1276
|
+
}
|
1277
|
+
/**
|
1278
|
+
* Parse the project from ProjectLocationCollectionDataStoreCustomTuningModel resource.
|
1279
|
+
*
|
1280
|
+
* @param {string} projectLocationCollectionDataStoreCustomTuningModelName
|
1281
|
+
* A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
|
1282
|
+
* @returns {string} A string representing the project.
|
1283
|
+
*/
|
1284
|
+
matchProjectFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
|
1285
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).project;
|
1286
|
+
}
|
1287
|
+
/**
|
1288
|
+
* Parse the location from ProjectLocationCollectionDataStoreCustomTuningModel resource.
|
1289
|
+
*
|
1290
|
+
* @param {string} projectLocationCollectionDataStoreCustomTuningModelName
|
1291
|
+
* A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
|
1292
|
+
* @returns {string} A string representing the location.
|
1293
|
+
*/
|
1294
|
+
matchLocationFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
|
1295
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).location;
|
1296
|
+
}
|
1297
|
+
/**
|
1298
|
+
* Parse the collection from ProjectLocationCollectionDataStoreCustomTuningModel resource.
|
1299
|
+
*
|
1300
|
+
* @param {string} projectLocationCollectionDataStoreCustomTuningModelName
|
1301
|
+
* A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
|
1302
|
+
* @returns {string} A string representing the collection.
|
1303
|
+
*/
|
1304
|
+
matchCollectionFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
|
1305
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).collection;
|
1306
|
+
}
|
1307
|
+
/**
|
1308
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreCustomTuningModel resource.
|
1309
|
+
*
|
1310
|
+
* @param {string} projectLocationCollectionDataStoreCustomTuningModelName
|
1311
|
+
* A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
|
1312
|
+
* @returns {string} A string representing the data_store.
|
1313
|
+
*/
|
1314
|
+
matchDataStoreFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
|
1315
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).data_store;
|
1316
|
+
}
|
1317
|
+
/**
|
1318
|
+
* Parse the custom_tuning_model from ProjectLocationCollectionDataStoreCustomTuningModel resource.
|
1319
|
+
*
|
1320
|
+
* @param {string} projectLocationCollectionDataStoreCustomTuningModelName
|
1321
|
+
* A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
|
1322
|
+
* @returns {string} A string representing the custom_tuning_model.
|
1323
|
+
*/
|
1324
|
+
matchCustomTuningModelFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
|
1325
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).custom_tuning_model;
|
1326
|
+
}
|
1156
1327
|
/**
|
1157
1328
|
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
1158
1329
|
*
|
@@ -1624,6 +1795,75 @@ class SearchServiceClient {
|
|
1624
1795
|
matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1625
1796
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
|
1626
1797
|
}
|
1798
|
+
/**
|
1799
|
+
* Return a fully-qualified projectLocationCollectionEngineControl resource name string.
|
1800
|
+
*
|
1801
|
+
* @param {string} project
|
1802
|
+
* @param {string} location
|
1803
|
+
* @param {string} collection
|
1804
|
+
* @param {string} engine
|
1805
|
+
* @param {string} control
|
1806
|
+
* @returns {string} Resource name string.
|
1807
|
+
*/
|
1808
|
+
projectLocationCollectionEngineControlPath(project, location, collection, engine, control) {
|
1809
|
+
return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.render({
|
1810
|
+
project: project,
|
1811
|
+
location: location,
|
1812
|
+
collection: collection,
|
1813
|
+
engine: engine,
|
1814
|
+
control: control,
|
1815
|
+
});
|
1816
|
+
}
|
1817
|
+
/**
|
1818
|
+
* Parse the project from ProjectLocationCollectionEngineControl resource.
|
1819
|
+
*
|
1820
|
+
* @param {string} projectLocationCollectionEngineControlName
|
1821
|
+
* A fully-qualified path representing project_location_collection_engine_control resource.
|
1822
|
+
* @returns {string} A string representing the project.
|
1823
|
+
*/
|
1824
|
+
matchProjectFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
|
1825
|
+
return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).project;
|
1826
|
+
}
|
1827
|
+
/**
|
1828
|
+
* Parse the location from ProjectLocationCollectionEngineControl resource.
|
1829
|
+
*
|
1830
|
+
* @param {string} projectLocationCollectionEngineControlName
|
1831
|
+
* A fully-qualified path representing project_location_collection_engine_control resource.
|
1832
|
+
* @returns {string} A string representing the location.
|
1833
|
+
*/
|
1834
|
+
matchLocationFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
|
1835
|
+
return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).location;
|
1836
|
+
}
|
1837
|
+
/**
|
1838
|
+
* Parse the collection from ProjectLocationCollectionEngineControl resource.
|
1839
|
+
*
|
1840
|
+
* @param {string} projectLocationCollectionEngineControlName
|
1841
|
+
* A fully-qualified path representing project_location_collection_engine_control resource.
|
1842
|
+
* @returns {string} A string representing the collection.
|
1843
|
+
*/
|
1844
|
+
matchCollectionFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
|
1845
|
+
return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).collection;
|
1846
|
+
}
|
1847
|
+
/**
|
1848
|
+
* Parse the engine from ProjectLocationCollectionEngineControl resource.
|
1849
|
+
*
|
1850
|
+
* @param {string} projectLocationCollectionEngineControlName
|
1851
|
+
* A fully-qualified path representing project_location_collection_engine_control resource.
|
1852
|
+
* @returns {string} A string representing the engine.
|
1853
|
+
*/
|
1854
|
+
matchEngineFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
|
1855
|
+
return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).engine;
|
1856
|
+
}
|
1857
|
+
/**
|
1858
|
+
* Parse the control from ProjectLocationCollectionEngineControl resource.
|
1859
|
+
*
|
1860
|
+
* @param {string} projectLocationCollectionEngineControlName
|
1861
|
+
* A fully-qualified path representing project_location_collection_engine_control resource.
|
1862
|
+
* @returns {string} A string representing the control.
|
1863
|
+
*/
|
1864
|
+
matchControlFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
|
1865
|
+
return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).control;
|
1866
|
+
}
|
1627
1867
|
/**
|
1628
1868
|
* Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
|
1629
1869
|
*
|
@@ -2083,6 +2323,63 @@ class SearchServiceClient {
|
|
2083
2323
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
2084
2324
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
2085
2325
|
}
|
2326
|
+
/**
|
2327
|
+
* Return a fully-qualified projectLocationDataStoreControl resource name string.
|
2328
|
+
*
|
2329
|
+
* @param {string} project
|
2330
|
+
* @param {string} location
|
2331
|
+
* @param {string} data_store
|
2332
|
+
* @param {string} control
|
2333
|
+
* @returns {string} Resource name string.
|
2334
|
+
*/
|
2335
|
+
projectLocationDataStoreControlPath(project, location, dataStore, control) {
|
2336
|
+
return this.pathTemplates.projectLocationDataStoreControlPathTemplate.render({
|
2337
|
+
project: project,
|
2338
|
+
location: location,
|
2339
|
+
data_store: dataStore,
|
2340
|
+
control: control,
|
2341
|
+
});
|
2342
|
+
}
|
2343
|
+
/**
|
2344
|
+
* Parse the project from ProjectLocationDataStoreControl resource.
|
2345
|
+
*
|
2346
|
+
* @param {string} projectLocationDataStoreControlName
|
2347
|
+
* A fully-qualified path representing project_location_data_store_control resource.
|
2348
|
+
* @returns {string} A string representing the project.
|
2349
|
+
*/
|
2350
|
+
matchProjectFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
|
2351
|
+
return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).project;
|
2352
|
+
}
|
2353
|
+
/**
|
2354
|
+
* Parse the location from ProjectLocationDataStoreControl resource.
|
2355
|
+
*
|
2356
|
+
* @param {string} projectLocationDataStoreControlName
|
2357
|
+
* A fully-qualified path representing project_location_data_store_control resource.
|
2358
|
+
* @returns {string} A string representing the location.
|
2359
|
+
*/
|
2360
|
+
matchLocationFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
|
2361
|
+
return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).location;
|
2362
|
+
}
|
2363
|
+
/**
|
2364
|
+
* Parse the data_store from ProjectLocationDataStoreControl resource.
|
2365
|
+
*
|
2366
|
+
* @param {string} projectLocationDataStoreControlName
|
2367
|
+
* A fully-qualified path representing project_location_data_store_control resource.
|
2368
|
+
* @returns {string} A string representing the data_store.
|
2369
|
+
*/
|
2370
|
+
matchDataStoreFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
|
2371
|
+
return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).data_store;
|
2372
|
+
}
|
2373
|
+
/**
|
2374
|
+
* Parse the control from ProjectLocationDataStoreControl resource.
|
2375
|
+
*
|
2376
|
+
* @param {string} projectLocationDataStoreControlName
|
2377
|
+
* A fully-qualified path representing project_location_data_store_control resource.
|
2378
|
+
* @returns {string} A string representing the control.
|
2379
|
+
*/
|
2380
|
+
matchControlFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
|
2381
|
+
return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).control;
|
2382
|
+
}
|
2086
2383
|
/**
|
2087
2384
|
* Return a fully-qualified projectLocationDataStoreConversation resource name string.
|
2088
2385
|
*
|
@@ -2140,6 +2437,63 @@ class SearchServiceClient {
|
|
2140
2437
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
2141
2438
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
2142
2439
|
}
|
2440
|
+
/**
|
2441
|
+
* Return a fully-qualified projectLocationDataStoreCustomTuningModel resource name string.
|
2442
|
+
*
|
2443
|
+
* @param {string} project
|
2444
|
+
* @param {string} location
|
2445
|
+
* @param {string} data_store
|
2446
|
+
* @param {string} custom_tuning_model
|
2447
|
+
* @returns {string} Resource name string.
|
2448
|
+
*/
|
2449
|
+
projectLocationDataStoreCustomTuningModelPath(project, location, dataStore, customTuningModel) {
|
2450
|
+
return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.render({
|
2451
|
+
project: project,
|
2452
|
+
location: location,
|
2453
|
+
data_store: dataStore,
|
2454
|
+
custom_tuning_model: customTuningModel,
|
2455
|
+
});
|
2456
|
+
}
|
2457
|
+
/**
|
2458
|
+
* Parse the project from ProjectLocationDataStoreCustomTuningModel resource.
|
2459
|
+
*
|
2460
|
+
* @param {string} projectLocationDataStoreCustomTuningModelName
|
2461
|
+
* A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
|
2462
|
+
* @returns {string} A string representing the project.
|
2463
|
+
*/
|
2464
|
+
matchProjectFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
|
2465
|
+
return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).project;
|
2466
|
+
}
|
2467
|
+
/**
|
2468
|
+
* Parse the location from ProjectLocationDataStoreCustomTuningModel resource.
|
2469
|
+
*
|
2470
|
+
* @param {string} projectLocationDataStoreCustomTuningModelName
|
2471
|
+
* A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
|
2472
|
+
* @returns {string} A string representing the location.
|
2473
|
+
*/
|
2474
|
+
matchLocationFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
|
2475
|
+
return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).location;
|
2476
|
+
}
|
2477
|
+
/**
|
2478
|
+
* Parse the data_store from ProjectLocationDataStoreCustomTuningModel resource.
|
2479
|
+
*
|
2480
|
+
* @param {string} projectLocationDataStoreCustomTuningModelName
|
2481
|
+
* A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
|
2482
|
+
* @returns {string} A string representing the data_store.
|
2483
|
+
*/
|
2484
|
+
matchDataStoreFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
|
2485
|
+
return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).data_store;
|
2486
|
+
}
|
2487
|
+
/**
|
2488
|
+
* Parse the custom_tuning_model from ProjectLocationDataStoreCustomTuningModel resource.
|
2489
|
+
*
|
2490
|
+
* @param {string} projectLocationDataStoreCustomTuningModelName
|
2491
|
+
* A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
|
2492
|
+
* @returns {string} A string representing the custom_tuning_model.
|
2493
|
+
*/
|
2494
|
+
matchCustomTuningModelFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
|
2495
|
+
return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).custom_tuning_model;
|
2496
|
+
}
|
2143
2497
|
/**
|
2144
2498
|
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
2145
2499
|
*
|