@google-cloud/discoveryengine 2.0.1 → 2.2.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 +14 -0
- package/README.md +7 -2
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +54 -2
- package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +35 -6
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +113 -2
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +168 -2
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +23 -4
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +7 -2
- package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +16 -3
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +70 -9
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +20 -1
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +9 -5
- package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +3 -1
- package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1/safety.proto +107 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +96 -8
- package/build/protos/google/cloud/discoveryengine/v1/serving_config.proto +271 -0
- package/build/protos/google/cloud/discoveryengine/v1/serving_config_service.proto +75 -0
- package/build/protos/google/cloud/discoveryengine/v1/session.proto +19 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +27 -3
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +184 -5
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +34 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +16 -4
- package/build/protos/protos.d.ts +4390 -300
- package/build/protos/protos.js +13785 -2922
- package/build/protos/protos.json +1355 -14
- package/build/src/index.d.ts +4 -1
- package/build/src/index.js +4 -21
- package/build/src/v1/completion_service_client.d.ts +313 -76
- package/build/src/v1/completion_service_client.js +451 -262
- package/build/src/v1/completion_service_proto_list.json +3 -0
- package/build/src/v1/control_service_client.d.ts +318 -81
- package/build/src/v1/control_service_client.js +422 -132
- package/build/src/v1/control_service_proto_list.json +3 -0
- package/build/src/v1/conversational_search_service_client.d.ts +341 -134
- package/build/src/v1/conversational_search_service_client.js +395 -223
- package/build/src/v1/conversational_search_service_client_config.json +5 -0
- package/build/src/v1/conversational_search_service_proto_list.json +3 -0
- package/build/src/v1/data_store_service_client.d.ts +359 -122
- package/build/src/v1/data_store_service_client.js +460 -280
- package/build/src/v1/data_store_service_proto_list.json +3 -0
- package/build/src/v1/document_service_client.d.ts +364 -121
- package/build/src/v1/document_service_client.js +469 -300
- package/build/src/v1/document_service_proto_list.json +3 -0
- package/build/src/v1/engine_service_client.d.ts +340 -103
- package/build/src/v1/engine_service_client.js +460 -279
- package/build/src/v1/engine_service_proto_list.json +3 -0
- package/build/src/v1/gapic_metadata.json +59 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +286 -51
- package/build/src/v1/grounded_generation_service_client.js +405 -100
- package/build/src/v1/grounded_generation_service_proto_list.json +3 -0
- package/build/src/v1/index.d.ts +1 -0
- package/build/src/v1/index.js +3 -1
- package/build/src/v1/project_service_client.d.ts +313 -76
- package/build/src/v1/project_service_client.js +434 -222
- package/build/src/v1/project_service_proto_list.json +3 -0
- package/build/src/v1/rank_service_client.d.ts +285 -48
- package/build/src/v1/rank_service_client.js +398 -85
- package/build/src/v1/rank_service_proto_list.json +3 -0
- package/build/src/v1/recommendation_service_client.d.ts +142 -49
- package/build/src/v1/recommendation_service_client.js +198 -82
- package/build/src/v1/recommendation_service_proto_list.json +3 -0
- package/build/src/v1/schema_service_client.d.ts +348 -111
- package/build/src/v1/schema_service_client.js +457 -273
- package/build/src/v1/schema_service_proto_list.json +3 -0
- package/build/src/v1/search_service_client.d.ts +748 -559
- package/build/src/v1/search_service_client.js +302 -133
- package/build/src/v1/search_service_proto_list.json +3 -0
- package/build/src/v1/search_tuning_service_client.d.ts +314 -77
- package/build/src/v1/search_tuning_service_client.js +439 -235
- package/build/src/v1/search_tuning_service_proto_list.json +3 -0
- package/build/src/v1/serving_config_service_client.d.ts +1851 -0
- package/build/src/v1/serving_config_service_client.js +2642 -0
- package/build/src/v1/serving_config_service_client_config.json +30 -0
- package/build/src/v1/serving_config_service_proto_list.json +39 -0
- package/build/src/v1/site_search_engine_service_client.d.ts +504 -151
- package/build/src/v1/site_search_engine_service_client.js +625 -351
- package/build/src/v1/site_search_engine_service_client_config.json +12 -0
- package/build/src/v1/site_search_engine_service_proto_list.json +3 -0
- package/build/src/v1/user_event_service_client.d.ts +335 -86
- package/build/src/v1/user_event_service_client.js +447 -253
- package/build/src/v1/user_event_service_proto_list.json +3 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +49 -49
- package/build/src/v1alpha/acl_config_service_client.js +82 -106
- package/build/src/v1alpha/chunk_service_client.d.ts +88 -88
- package/build/src/v1alpha/chunk_service_client.js +92 -120
- package/build/src/v1alpha/completion_service_client.d.ts +77 -77
- package/build/src/v1alpha/completion_service_client.js +134 -280
- package/build/src/v1alpha/control_service_client.d.ts +85 -85
- package/build/src/v1alpha/control_service_client.js +105 -151
- package/build/src/v1alpha/conversational_search_service_client.d.ts +143 -143
- package/build/src/v1alpha/conversational_search_service_client.js +145 -237
- package/build/src/v1alpha/data_store_service_client.d.ts +126 -126
- package/build/src/v1alpha/data_store_service_client.js +151 -316
- package/build/src/v1alpha/document_service_client.d.ts +126 -126
- package/build/src/v1alpha/document_service_client.js +156 -328
- package/build/src/v1alpha/engine_service_client.d.ts +106 -106
- package/build/src/v1alpha/engine_service_client.js +155 -325
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +76 -76
- package/build/src/v1alpha/estimate_billing_service_client.js +118 -243
- package/build/src/v1alpha/evaluation_service_client.d.ts +161 -161
- package/build/src/v1alpha/evaluation_service_client.js +143 -295
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +48 -48
- package/build/src/v1alpha/grounded_generation_service_client.js +79 -100
- package/build/src/v1alpha/project_service_client.d.ts +78 -78
- package/build/src/v1alpha/project_service_client.js +126 -262
- package/build/src/v1alpha/rank_service_client.d.ts +47 -47
- package/build/src/v1alpha/rank_service_client.js +81 -104
- package/build/src/v1alpha/recommendation_service_client.d.ts +47 -47
- package/build/src/v1alpha/recommendation_service_client.js +79 -100
- package/build/src/v1alpha/sample_query_service_client.d.ts +123 -123
- package/build/src/v1alpha/sample_query_service_client.js +144 -301
- package/build/src/v1alpha/sample_query_set_service_client.d.ts +94 -94
- package/build/src/v1alpha/sample_query_set_service_client.js +106 -153
- package/build/src/v1alpha/schema_service_client.d.ts +112 -112
- package/build/src/v1alpha/schema_service_client.js +140 -292
- package/build/src/v1alpha/search_service_client.d.ts +327 -327
- package/build/src/v1alpha/search_service_client.js +88 -112
- package/build/src/v1alpha/search_tuning_service_client.d.ts +77 -77
- package/build/src/v1alpha/search_tuning_service_client.js +122 -253
- package/build/src/v1alpha/serving_config_service_client.d.ts +75 -75
- package/build/src/v1alpha/serving_config_service_client.js +97 -133
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +151 -151
- package/build/src/v1alpha/site_search_engine_service_client.js +184 -387
- package/build/src/v1alpha/user_event_service_client.d.ts +78 -78
- package/build/src/v1alpha/user_event_service_client.js +130 -271
- package/build/src/v1beta/completion_service_client.d.ts +78 -78
- package/build/src/v1beta/completion_service_client.js +136 -279
- package/build/src/v1beta/control_service_client.d.ts +84 -84
- package/build/src/v1beta/control_service_client.js +103 -147
- package/build/src/v1beta/conversational_search_service_client.d.ts +142 -142
- package/build/src/v1beta/conversational_search_service_client.js +143 -233
- package/build/src/v1beta/data_store_service_client.d.ts +124 -124
- package/build/src/v1beta/data_store_service_client.js +141 -288
- package/build/src/v1beta/document_service_client.d.ts +124 -124
- package/build/src/v1beta/document_service_client.js +150 -309
- package/build/src/v1beta/engine_service_client.d.ts +106 -106
- package/build/src/v1beta/engine_service_client.js +153 -315
- package/build/src/v1beta/evaluation_service_client.d.ts +161 -161
- package/build/src/v1beta/evaluation_service_client.js +141 -285
- package/build/src/v1beta/grounded_generation_service_client.d.ts +49 -49
- package/build/src/v1beta/grounded_generation_service_client.js +86 -114
- package/build/src/v1beta/project_service_client.d.ts +76 -76
- package/build/src/v1beta/project_service_client.js +115 -231
- package/build/src/v1beta/rank_service_client.d.ts +47 -47
- package/build/src/v1beta/rank_service_client.js +79 -99
- package/build/src/v1beta/recommendation_service_client.d.ts +47 -47
- package/build/src/v1beta/recommendation_service_client.js +77 -96
- package/build/src/v1beta/sample_query_service_client.d.ts +123 -123
- package/build/src/v1beta/sample_query_service_client.js +142 -291
- package/build/src/v1beta/sample_query_set_service_client.d.ts +94 -94
- package/build/src/v1beta/sample_query_set_service_client.js +104 -149
- package/build/src/v1beta/schema_service_client.d.ts +111 -111
- package/build/src/v1beta/schema_service_client.js +138 -282
- package/build/src/v1beta/search_service_client.d.ts +665 -665
- package/build/src/v1beta/search_service_client.js +97 -128
- package/build/src/v1beta/search_tuning_service_client.d.ts +77 -77
- package/build/src/v1beta/search_tuning_service_client.js +120 -243
- package/build/src/v1beta/serving_config_service_client.d.ts +75 -75
- package/build/src/v1beta/serving_config_service_client.js +95 -129
- package/build/src/v1beta/site_search_engine_service_client.d.ts +151 -151
- package/build/src/v1beta/site_search_engine_service_client.js +186 -386
- package/build/src/v1beta/user_event_service_client.d.ts +78 -78
- package/build/src/v1beta/user_event_service_client.js +128 -261
- package/package.json +4 -4
@@ -24,10 +24,13 @@
|
|
24
24
|
"../../protos/google/cloud/discoveryengine/v1/purge_config.proto",
|
25
25
|
"../../protos/google/cloud/discoveryengine/v1/rank_service.proto",
|
26
26
|
"../../protos/google/cloud/discoveryengine/v1/recommendation_service.proto",
|
27
|
+
"../../protos/google/cloud/discoveryengine/v1/safety.proto",
|
27
28
|
"../../protos/google/cloud/discoveryengine/v1/schema.proto",
|
28
29
|
"../../protos/google/cloud/discoveryengine/v1/schema_service.proto",
|
29
30
|
"../../protos/google/cloud/discoveryengine/v1/search_service.proto",
|
30
31
|
"../../protos/google/cloud/discoveryengine/v1/search_tuning_service.proto",
|
32
|
+
"../../protos/google/cloud/discoveryengine/v1/serving_config.proto",
|
33
|
+
"../../protos/google/cloud/discoveryengine/v1/serving_config_service.proto",
|
31
34
|
"../../protos/google/cloud/discoveryengine/v1/session.proto",
|
32
35
|
"../../protos/google/cloud/discoveryengine/v1/site_search_engine.proto",
|
33
36
|
"../../protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto",
|
@@ -171,9 +171,9 @@ export declare class RecommendationServiceClient {
|
|
171
171
|
* attribute-based expressions are expected instead of the above described
|
172
172
|
* tag-based syntax. Examples:
|
173
173
|
*
|
174
|
-
* * (
|
174
|
+
* * (language: ANY("en", "es")) AND NOT (categories: ANY("Movie"))
|
175
175
|
* * (available: true) AND
|
176
|
-
* (
|
176
|
+
* (language: ANY("en", "es")) OR (categories: ANY("Movie"))
|
177
177
|
*
|
178
178
|
* If your filter blocks all results, the API returns generic
|
179
179
|
* (unfiltered) popular Documents. If you only want results strictly matching
|
@@ -253,55 +253,55 @@ export declare class RecommendationServiceClient {
|
|
253
253
|
recommend(request: protos.google.cloud.discoveryengine.v1.IRecommendRequest, options: CallOptions, callback: Callback<protos.google.cloud.discoveryengine.v1.IRecommendResponse, protos.google.cloud.discoveryengine.v1.IRecommendRequest | null | undefined, {} | null | undefined>): void;
|
254
254
|
recommend(request: protos.google.cloud.discoveryengine.v1.IRecommendRequest, callback: Callback<protos.google.cloud.discoveryengine.v1.IRecommendResponse, protos.google.cloud.discoveryengine.v1.IRecommendRequest | null | undefined, {} | null | undefined>): void;
|
255
255
|
/**
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
256
|
+
* Gets information about a location.
|
257
|
+
*
|
258
|
+
* @param {Object} request
|
259
|
+
* The request object that will be sent.
|
260
|
+
* @param {string} request.name
|
261
|
+
* Resource name for the location.
|
262
|
+
* @param {object} [options]
|
263
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
264
|
+
* @returns {Promise} - The promise which resolves to an array.
|
265
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
266
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
267
|
+
* for more details and examples.
|
268
|
+
* @example
|
269
|
+
* ```
|
270
|
+
* const [response] = await client.getLocation(request);
|
271
|
+
* ```
|
272
|
+
*/
|
273
273
|
getLocation(request: LocationProtos.google.cloud.location.IGetLocationRequest, options?: gax.CallOptions | Callback<LocationProtos.google.cloud.location.ILocation, LocationProtos.google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>, callback?: Callback<LocationProtos.google.cloud.location.ILocation, LocationProtos.google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>): Promise<LocationProtos.google.cloud.location.ILocation>;
|
274
274
|
/**
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
275
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
276
|
+
*
|
277
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
278
|
+
* @param {Object} request
|
279
|
+
* The request object that will be sent.
|
280
|
+
* @param {string} request.name
|
281
|
+
* The resource that owns the locations collection, if applicable.
|
282
|
+
* @param {string} request.filter
|
283
|
+
* The standard list filter.
|
284
|
+
* @param {number} request.pageSize
|
285
|
+
* The standard list page size.
|
286
|
+
* @param {string} request.pageToken
|
287
|
+
* The standard list page token.
|
288
|
+
* @param {object} [options]
|
289
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
290
|
+
* @returns {Object}
|
291
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
292
|
+
* When you iterate the returned iterable, each element will be an object representing
|
293
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
294
|
+
* so you can stop the iteration when you don't need more results.
|
295
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
296
|
+
* for more details and examples.
|
297
|
+
* @example
|
298
|
+
* ```
|
299
|
+
* const iterable = client.listLocationsAsync(request);
|
300
|
+
* for await (const response of iterable) {
|
301
|
+
* // process response
|
302
|
+
* }
|
303
|
+
* ```
|
304
|
+
*/
|
305
305
|
listLocationsAsync(request: LocationProtos.google.cloud.location.IListLocationsRequest, options?: CallOptions): AsyncIterable<LocationProtos.google.cloud.location.ILocation>;
|
306
306
|
/**
|
307
307
|
* Return a fully-qualified engine resource name string.
|
@@ -981,6 +981,57 @@ export declare class RecommendationServiceClient {
|
|
981
981
|
* @returns {string} A string representing the data_store.
|
982
982
|
*/
|
983
983
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName: string): string | number;
|
984
|
+
/**
|
985
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
986
|
+
*
|
987
|
+
* @param {string} project
|
988
|
+
* @param {string} location
|
989
|
+
* @param {string} collection
|
990
|
+
* @param {string} data_store
|
991
|
+
* @param {string} sitemap
|
992
|
+
* @returns {string} Resource name string.
|
993
|
+
*/
|
994
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project: string, location: string, collection: string, dataStore: string, sitemap: string): string;
|
995
|
+
/**
|
996
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
997
|
+
*
|
998
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
999
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1000
|
+
* @returns {string} A string representing the project.
|
1001
|
+
*/
|
1002
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1003
|
+
/**
|
1004
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1005
|
+
*
|
1006
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1007
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1008
|
+
* @returns {string} A string representing the location.
|
1009
|
+
*/
|
1010
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1011
|
+
/**
|
1012
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1013
|
+
*
|
1014
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1015
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1016
|
+
* @returns {string} A string representing the collection.
|
1017
|
+
*/
|
1018
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1019
|
+
/**
|
1020
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1021
|
+
*
|
1022
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1023
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1024
|
+
* @returns {string} A string representing the data_store.
|
1025
|
+
*/
|
1026
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1027
|
+
/**
|
1028
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1029
|
+
*
|
1030
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1031
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1032
|
+
* @returns {string} A string representing the sitemap.
|
1033
|
+
*/
|
1034
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName: string): string | number;
|
984
1035
|
/**
|
985
1036
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
986
1037
|
*
|
@@ -1809,6 +1860,48 @@ export declare class RecommendationServiceClient {
|
|
1809
1860
|
* @returns {string} A string representing the data_store.
|
1810
1861
|
*/
|
1811
1862
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName: string): string | number;
|
1863
|
+
/**
|
1864
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
1865
|
+
*
|
1866
|
+
* @param {string} project
|
1867
|
+
* @param {string} location
|
1868
|
+
* @param {string} data_store
|
1869
|
+
* @param {string} sitemap
|
1870
|
+
* @returns {string} Resource name string.
|
1871
|
+
*/
|
1872
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project: string, location: string, dataStore: string, sitemap: string): string;
|
1873
|
+
/**
|
1874
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
1875
|
+
*
|
1876
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
1877
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
1878
|
+
* @returns {string} A string representing the project.
|
1879
|
+
*/
|
1880
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1881
|
+
/**
|
1882
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
1883
|
+
*
|
1884
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
1885
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
1886
|
+
* @returns {string} A string representing the location.
|
1887
|
+
*/
|
1888
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1889
|
+
/**
|
1890
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
1891
|
+
*
|
1892
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
1893
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
1894
|
+
* @returns {string} A string representing the data_store.
|
1895
|
+
*/
|
1896
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1897
|
+
/**
|
1898
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
1899
|
+
*
|
1900
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
1901
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
1902
|
+
* @returns {string} A string representing the sitemap.
|
1903
|
+
*/
|
1904
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1812
1905
|
/**
|
1813
1906
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
1814
1907
|
*
|
@@ -96,28 +96,18 @@ class RecommendationServiceClient {
|
|
96
96
|
*/
|
97
97
|
constructor(opts, gaxInstance) {
|
98
98
|
// Ensure that options include all the required fields.
|
99
|
-
const staticMembers = this
|
100
|
-
|
101
|
-
if (opts?.universe_domain &&
|
102
|
-
opts?.universeDomain &&
|
103
|
-
opts?.universe_domain !== opts?.universeDomain) {
|
99
|
+
const staticMembers = this.constructor;
|
100
|
+
if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
|
104
101
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
105
102
|
}
|
106
|
-
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
107
|
-
|
108
|
-
: undefined;
|
109
|
-
this._universeDomain =
|
110
|
-
opts?.universeDomain ??
|
111
|
-
opts?.universe_domain ??
|
112
|
-
universeDomainEnvVar ??
|
113
|
-
'googleapis.com';
|
103
|
+
const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
|
104
|
+
this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
|
114
105
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
115
106
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
116
107
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
117
108
|
const port = opts?.port || staticMembers.port;
|
118
109
|
const clientConfig = opts?.clientConfig ?? {};
|
119
|
-
const fallback = opts?.fallback ??
|
120
|
-
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
110
|
+
const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
121
111
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
122
112
|
// Request numeric enum values if REST transport is used.
|
123
113
|
opts.numericEnums = true;
|
@@ -147,7 +137,10 @@ class RecommendationServiceClient {
|
|
147
137
|
}
|
148
138
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
149
139
|
// Determine the client header string.
|
150
|
-
const clientHeader = [
|
140
|
+
const clientHeader = [
|
141
|
+
`gax/${this._gaxModule.version}`,
|
142
|
+
`gapic/${version}`,
|
143
|
+
];
|
151
144
|
if (typeof process === 'object' && 'versions' in process) {
|
152
145
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
153
146
|
}
|
@@ -183,6 +176,7 @@ class RecommendationServiceClient {
|
|
183
176
|
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
184
177
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
185
178
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
179
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
186
180
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
187
181
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
188
182
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
@@ -201,6 +195,7 @@ class RecommendationServiceClient {
|
|
201
195
|
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
202
196
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
203
197
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
198
|
+
projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
204
199
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
205
200
|
};
|
206
201
|
// Put together the default options sent with requests.
|
@@ -230,11 +225,10 @@ class RecommendationServiceClient {
|
|
230
225
|
}
|
231
226
|
// Put together the "service stub" for
|
232
227
|
// google.cloud.discoveryengine.v1.RecommendationService.
|
233
|
-
this.recommendationServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
.RecommendationService, this._opts, this._providedCustomServicePath);
|
228
|
+
this.recommendationServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
229
|
+
this._protos.lookupService('google.cloud.discoveryengine.v1.RecommendationService') :
|
230
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
231
|
+
this._protos.google.cloud.discoveryengine.v1.RecommendationService, this._opts, this._providedCustomServicePath);
|
238
232
|
// Iterate over each of the methods that the service provides
|
239
233
|
// and create an API call method for each.
|
240
234
|
const recommendationServiceStubMethods = ['recommend'];
|
@@ -260,8 +254,7 @@ class RecommendationServiceClient {
|
|
260
254
|
* @returns {string} The DNS address for this service.
|
261
255
|
*/
|
262
256
|
static get servicePath() {
|
263
|
-
if (typeof process === 'object' &&
|
264
|
-
typeof process.emitWarning === 'function') {
|
257
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
265
258
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
266
259
|
}
|
267
260
|
return 'discoveryengine.googleapis.com';
|
@@ -272,8 +265,7 @@ class RecommendationServiceClient {
|
|
272
265
|
* @returns {string} The DNS address for this service.
|
273
266
|
*/
|
274
267
|
static get apiEndpoint() {
|
275
|
-
if (typeof process === 'object' &&
|
276
|
-
typeof process.emitWarning === 'function') {
|
268
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
277
269
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
278
270
|
}
|
279
271
|
return 'discoveryengine.googleapis.com';
|
@@ -301,7 +293,9 @@ class RecommendationServiceClient {
|
|
301
293
|
* @returns {string[]} List of default scopes.
|
302
294
|
*/
|
303
295
|
static get scopes() {
|
304
|
-
return [
|
296
|
+
return [
|
297
|
+
'https://www.googleapis.com/auth/cloud-platform'
|
298
|
+
];
|
305
299
|
}
|
306
300
|
/**
|
307
301
|
* Return the project ID used by this class.
|
@@ -327,13 +321,10 @@ class RecommendationServiceClient {
|
|
327
321
|
options = options || {};
|
328
322
|
options.otherArgs = options.otherArgs || {};
|
329
323
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
330
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
331
|
-
|
332
|
-
serving_config: request.servingConfig ?? '',
|
333
|
-
});
|
334
|
-
this.initialize().catch(err => {
|
335
|
-
throw err;
|
324
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
325
|
+
'serving_config': request.servingConfig ?? '',
|
336
326
|
});
|
327
|
+
this.initialize().catch(err => { throw err; });
|
337
328
|
this._log.info('recommend request %j', request);
|
338
329
|
const wrappedCallback = callback
|
339
330
|
? (error, response, options, rawResponse) => {
|
@@ -341,65 +332,64 @@ class RecommendationServiceClient {
|
|
341
332
|
callback(error, response, options, rawResponse); // We verified callback above.
|
342
333
|
}
|
343
334
|
: undefined;
|
344
|
-
return this.innerApiCalls
|
345
|
-
.recommend(request, options, wrappedCallback)
|
335
|
+
return this.innerApiCalls.recommend(request, options, wrappedCallback)
|
346
336
|
?.then(([response, options, rawResponse]) => {
|
347
337
|
this._log.info('recommend response %j', response);
|
348
338
|
return [response, options, rawResponse];
|
349
339
|
});
|
350
340
|
}
|
351
341
|
/**
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
342
|
+
* Gets information about a location.
|
343
|
+
*
|
344
|
+
* @param {Object} request
|
345
|
+
* The request object that will be sent.
|
346
|
+
* @param {string} request.name
|
347
|
+
* Resource name for the location.
|
348
|
+
* @param {object} [options]
|
349
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
350
|
+
* @returns {Promise} - The promise which resolves to an array.
|
351
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
352
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
353
|
+
* for more details and examples.
|
354
|
+
* @example
|
355
|
+
* ```
|
356
|
+
* const [response] = await client.getLocation(request);
|
357
|
+
* ```
|
358
|
+
*/
|
369
359
|
getLocation(request, options, callback) {
|
370
360
|
return this.locationsClient.getLocation(request, options, callback);
|
371
361
|
}
|
372
362
|
/**
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
363
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
364
|
+
*
|
365
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
366
|
+
* @param {Object} request
|
367
|
+
* The request object that will be sent.
|
368
|
+
* @param {string} request.name
|
369
|
+
* The resource that owns the locations collection, if applicable.
|
370
|
+
* @param {string} request.filter
|
371
|
+
* The standard list filter.
|
372
|
+
* @param {number} request.pageSize
|
373
|
+
* The standard list page size.
|
374
|
+
* @param {string} request.pageToken
|
375
|
+
* The standard list page token.
|
376
|
+
* @param {object} [options]
|
377
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
378
|
+
* @returns {Object}
|
379
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
380
|
+
* When you iterate the returned iterable, each element will be an object representing
|
381
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
382
|
+
* so you can stop the iteration when you don't need more results.
|
383
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
384
|
+
* for more details and examples.
|
385
|
+
* @example
|
386
|
+
* ```
|
387
|
+
* const iterable = client.listLocationsAsync(request);
|
388
|
+
* for await (const response of iterable) {
|
389
|
+
* // process response
|
390
|
+
* }
|
391
|
+
* ```
|
392
|
+
*/
|
403
393
|
listLocationsAsync(request, options) {
|
404
394
|
return this.locationsClient.listLocationsAsync(request, options);
|
405
395
|
}
|
@@ -1324,6 +1314,75 @@ class RecommendationServiceClient {
|
|
1324
1314
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1325
1315
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1326
1316
|
}
|
1317
|
+
/**
|
1318
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
1319
|
+
*
|
1320
|
+
* @param {string} project
|
1321
|
+
* @param {string} location
|
1322
|
+
* @param {string} collection
|
1323
|
+
* @param {string} data_store
|
1324
|
+
* @param {string} sitemap
|
1325
|
+
* @returns {string} Resource name string.
|
1326
|
+
*/
|
1327
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
|
1328
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
1329
|
+
project: project,
|
1330
|
+
location: location,
|
1331
|
+
collection: collection,
|
1332
|
+
data_store: dataStore,
|
1333
|
+
sitemap: sitemap,
|
1334
|
+
});
|
1335
|
+
}
|
1336
|
+
/**
|
1337
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1338
|
+
*
|
1339
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1340
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1341
|
+
* @returns {string} A string representing the project.
|
1342
|
+
*/
|
1343
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1344
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
|
1345
|
+
}
|
1346
|
+
/**
|
1347
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1348
|
+
*
|
1349
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1350
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1351
|
+
* @returns {string} A string representing the location.
|
1352
|
+
*/
|
1353
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1354
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
|
1355
|
+
}
|
1356
|
+
/**
|
1357
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1358
|
+
*
|
1359
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1360
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1361
|
+
* @returns {string} A string representing the collection.
|
1362
|
+
*/
|
1363
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1364
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
|
1365
|
+
}
|
1366
|
+
/**
|
1367
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1368
|
+
*
|
1369
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1370
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1371
|
+
* @returns {string} A string representing the data_store.
|
1372
|
+
*/
|
1373
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1374
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
|
1375
|
+
}
|
1376
|
+
/**
|
1377
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1378
|
+
*
|
1379
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1380
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1381
|
+
* @returns {string} A string representing the sitemap.
|
1382
|
+
*/
|
1383
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1384
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
|
1385
|
+
}
|
1327
1386
|
/**
|
1328
1387
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1329
1388
|
*
|
@@ -2446,6 +2505,63 @@ class RecommendationServiceClient {
|
|
2446
2505
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
2447
2506
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
2448
2507
|
}
|
2508
|
+
/**
|
2509
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
2510
|
+
*
|
2511
|
+
* @param {string} project
|
2512
|
+
* @param {string} location
|
2513
|
+
* @param {string} data_store
|
2514
|
+
* @param {string} sitemap
|
2515
|
+
* @returns {string} Resource name string.
|
2516
|
+
*/
|
2517
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
|
2518
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
2519
|
+
project: project,
|
2520
|
+
location: location,
|
2521
|
+
data_store: dataStore,
|
2522
|
+
sitemap: sitemap,
|
2523
|
+
});
|
2524
|
+
}
|
2525
|
+
/**
|
2526
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2527
|
+
*
|
2528
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2529
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2530
|
+
* @returns {string} A string representing the project.
|
2531
|
+
*/
|
2532
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2533
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
|
2534
|
+
}
|
2535
|
+
/**
|
2536
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2537
|
+
*
|
2538
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2539
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2540
|
+
* @returns {string} A string representing the location.
|
2541
|
+
*/
|
2542
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2543
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
|
2544
|
+
}
|
2545
|
+
/**
|
2546
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2547
|
+
*
|
2548
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2549
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2550
|
+
* @returns {string} A string representing the data_store.
|
2551
|
+
*/
|
2552
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2553
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
|
2554
|
+
}
|
2555
|
+
/**
|
2556
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2557
|
+
*
|
2558
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2559
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2560
|
+
* @returns {string} A string representing the sitemap.
|
2561
|
+
*/
|
2562
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2563
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
|
2564
|
+
}
|
2449
2565
|
/**
|
2450
2566
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
2451
2567
|
*
|
@@ -2515,7 +2631,7 @@ class RecommendationServiceClient {
|
|
2515
2631
|
this._log.info('ending gRPC channel');
|
2516
2632
|
this._terminated = true;
|
2517
2633
|
stub.close();
|
2518
|
-
this.locationsClient.close();
|
2634
|
+
this.locationsClient.close().catch(err => { throw err; });
|
2519
2635
|
});
|
2520
2636
|
}
|
2521
2637
|
return Promise.resolve();
|
@@ -24,10 +24,13 @@
|
|
24
24
|
"../../protos/google/cloud/discoveryengine/v1/purge_config.proto",
|
25
25
|
"../../protos/google/cloud/discoveryengine/v1/rank_service.proto",
|
26
26
|
"../../protos/google/cloud/discoveryengine/v1/recommendation_service.proto",
|
27
|
+
"../../protos/google/cloud/discoveryengine/v1/safety.proto",
|
27
28
|
"../../protos/google/cloud/discoveryengine/v1/schema.proto",
|
28
29
|
"../../protos/google/cloud/discoveryengine/v1/schema_service.proto",
|
29
30
|
"../../protos/google/cloud/discoveryengine/v1/search_service.proto",
|
30
31
|
"../../protos/google/cloud/discoveryengine/v1/search_tuning_service.proto",
|
32
|
+
"../../protos/google/cloud/discoveryengine/v1/serving_config.proto",
|
33
|
+
"../../protos/google/cloud/discoveryengine/v1/serving_config_service.proto",
|
31
34
|
"../../protos/google/cloud/discoveryengine/v1/session.proto",
|
32
35
|
"../../protos/google/cloud/discoveryengine/v1/site_search_engine.proto",
|
33
36
|
"../../protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto",
|