@google-cloud/discoveryengine 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +63 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/common.proto +54 -3
  4. package/build/protos/google/cloud/discoveryengine/v1/completion.proto +52 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +51 -4
  6. package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +3 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +40 -1
  8. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +98 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +304 -0
  10. package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
  11. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +215 -0
  12. package/build/protos/google/cloud/discoveryengine/v1/engine_service.proto +242 -0
  13. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +64 -0
  14. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
  15. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +137 -4
  16. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +170 -0
  17. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +691 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +3 -3
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +0 -5
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +3 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +39 -0
  22. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +1 -1
  23. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +1 -1
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +97 -0
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +147 -0
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +164 -0
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +540 -0
  28. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +59 -8
  29. package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +52 -0
  30. package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +51 -4
  31. package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -0
  32. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +40 -1
  33. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +98 -0
  34. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +306 -0
  35. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
  36. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +220 -0
  37. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +244 -0
  38. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +64 -0
  39. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +38 -0
  40. package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +26 -3
  41. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +150 -11
  42. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +264 -0
  43. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +147 -0
  44. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +170 -0
  45. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +695 -0
  46. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -3
  47. package/build/protos/protos.d.ts +42822 -21397
  48. package/build/protos/protos.js +110509 -61572
  49. package/build/protos/protos.json +11779 -6752
  50. package/build/src/index.d.ts +10 -1
  51. package/build/src/index.js +11 -2
  52. package/build/src/v1/completion_service_client.d.ts +489 -7
  53. package/build/src/v1/completion_service_client.js +716 -12
  54. package/build/src/v1/completion_service_client_config.json +10 -0
  55. package/build/src/v1/conversational_search_service_client.d.ts +341 -3
  56. package/build/src/v1/conversational_search_service_client.js +467 -10
  57. package/build/src/v1/data_store_service_client.d.ts +1286 -0
  58. package/build/src/v1/data_store_service_client.js +1768 -0
  59. package/build/src/v1/data_store_service_client_config.json +46 -0
  60. package/build/src/v1/document_service_client.d.ts +347 -2
  61. package/build/src/v1/document_service_client.js +507 -10
  62. package/build/src/v1/engine_service_client.d.ts +1211 -0
  63. package/build/src/v1/engine_service_client.js +1731 -0
  64. package/build/src/v1/engine_service_client_config.json +46 -0
  65. package/build/src/v1/index.d.ts +3 -0
  66. package/build/src/v1/index.js +8 -2
  67. package/build/src/v1/schema_service_client.d.ts +272 -2
  68. package/build/src/v1/schema_service_client.js +403 -10
  69. package/build/src/v1/search_service_client.d.ts +515 -11
  70. package/build/src/v1/search_service_client.js +649 -16
  71. package/build/src/v1/site_search_engine_service_client.d.ts +1564 -0
  72. package/build/src/v1/site_search_engine_service_client.js +2075 -0
  73. package/build/src/v1/site_search_engine_service_client_config.json +74 -0
  74. package/build/src/v1/user_event_service_client.d.ts +272 -2
  75. package/build/src/v1/user_event_service_client.js +403 -10
  76. package/build/src/v1alpha/completion_service_client.d.ts +230 -2
  77. package/build/src/v1alpha/completion_service_client.js +339 -10
  78. package/build/src/v1alpha/conversational_search_service_client.d.ts +247 -2
  79. package/build/src/v1alpha/conversational_search_service_client.js +339 -10
  80. package/build/src/v1alpha/data_store_service_client.d.ts +230 -2
  81. package/build/src/v1alpha/data_store_service_client.js +347 -12
  82. package/build/src/v1alpha/document_service_client.d.ts +230 -2
  83. package/build/src/v1alpha/document_service_client.js +347 -12
  84. package/build/src/v1alpha/engine_service_client.d.ts +231 -3
  85. package/build/src/v1alpha/engine_service_client.js +347 -12
  86. package/build/src/v1alpha/index.d.ts +1 -0
  87. package/build/src/v1alpha/index.js +4 -2
  88. package/build/src/v1alpha/recommendation_service_client.d.ts +230 -2
  89. package/build/src/v1alpha/recommendation_service_client.js +339 -10
  90. package/build/src/v1alpha/schema_service_client.d.ts +230 -2
  91. package/build/src/v1alpha/schema_service_client.js +347 -12
  92. package/build/src/v1alpha/search_service_client.d.ts +269 -2
  93. package/build/src/v1alpha/search_service_client.js +365 -10
  94. package/build/src/v1alpha/search_tuning_service_client.d.ts +977 -0
  95. package/build/src/v1alpha/search_tuning_service_client.js +1479 -0
  96. package/build/src/v1alpha/search_tuning_service_client_config.json +30 -0
  97. package/build/src/v1alpha/site_search_engine_service_client.d.ts +750 -3
  98. package/build/src/v1alpha/site_search_engine_service_client.js +838 -14
  99. package/build/src/v1alpha/site_search_engine_service_client_config.json +44 -0
  100. package/build/src/v1alpha/user_event_service_client.d.ts +230 -2
  101. package/build/src/v1alpha/user_event_service_client.js +347 -12
  102. package/build/src/v1beta/completion_service_client.d.ts +633 -7
  103. package/build/src/v1beta/completion_service_client.js +912 -12
  104. package/build/src/v1beta/completion_service_client_config.json +10 -0
  105. package/build/src/v1beta/conversational_search_service_client.d.ts +341 -3
  106. package/build/src/v1beta/conversational_search_service_client.js +467 -10
  107. package/build/src/v1beta/data_store_service_client.d.ts +1433 -0
  108. package/build/src/v1beta/data_store_service_client.js +1966 -0
  109. package/build/src/v1beta/data_store_service_client_config.json +46 -0
  110. package/build/src/v1beta/document_service_client.d.ts +491 -2
  111. package/build/src/v1beta/document_service_client.js +707 -12
  112. package/build/src/v1beta/engine_service_client.d.ts +1357 -0
  113. package/build/src/v1beta/engine_service_client.js +1928 -0
  114. package/build/src/v1beta/engine_service_client_config.json +46 -0
  115. package/build/src/v1beta/index.d.ts +4 -0
  116. package/build/src/v1beta/index.js +10 -2
  117. package/build/src/v1beta/recommendation_service_client.d.ts +420 -5
  118. package/build/src/v1beta/recommendation_service_client.js +571 -10
  119. package/build/src/v1beta/schema_service_client.d.ts +416 -2
  120. package/build/src/v1beta/schema_service_client.js +603 -12
  121. package/build/src/v1beta/search_service_client.d.ts +539 -29
  122. package/build/src/v1beta/search_service_client.js +665 -28
  123. package/build/src/v1beta/serving_config_service_client.d.ts +1102 -0
  124. package/build/src/v1beta/serving_config_service_client.js +1563 -0
  125. package/build/src/v1beta/serving_config_service_client_config.json +38 -0
  126. package/build/src/v1beta/site_search_engine_service_client.d.ts +1712 -0
  127. package/build/src/v1beta/site_search_engine_service_client.js +2271 -0
  128. package/build/src/v1beta/site_search_engine_service_client_config.json +74 -0
  129. package/build/src/v1beta/user_event_service_client.d.ts +416 -2
  130. package/build/src/v1beta/user_event_service_client.js +603 -12
  131. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2023 Google LLC
2
+ // Copyright 2024 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -72,7 +72,7 @@ class SearchServiceClient {
72
72
  * ```
73
73
  */
74
74
  constructor(opts, gaxInstance) {
75
- var _a, _b;
75
+ var _a, _b, _c, _d;
76
76
  this._terminated = false;
77
77
  this.descriptors = {
78
78
  page: {},
@@ -82,16 +82,24 @@ class SearchServiceClient {
82
82
  };
83
83
  // Ensure that options include all the required fields.
84
84
  const staticMembers = this.constructor;
85
- const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || staticMembers.servicePath;
85
+ if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
86
+ (opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
87
+ (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
88
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
89
+ }
90
+ this._universeDomain =
91
+ (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
92
+ this._servicePath = 'discoveryengine.' + this._universeDomain;
93
+ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
86
94
  this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
87
95
  const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
88
- const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {};
89
- const fallback = (_b = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _b !== void 0 ? _b : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
96
+ const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
97
+ const fallback = (_d = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _d !== void 0 ? _d : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
90
98
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
91
99
  // Request numeric enum values if REST transport is used.
92
100
  opts.numericEnums = true;
93
101
  // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
94
- if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) {
102
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
95
103
  opts['scopes'] = staticMembers.scopes;
96
104
  }
97
105
  // Load google-gax module synchronously if needed
@@ -109,9 +117,9 @@ class SearchServiceClient {
109
117
  // Set useJWTAccessWithScope on the auth object.
110
118
  this.auth.useJWTAccessWithScope = true;
111
119
  // Set defaultServicePath on the auth object.
112
- this.auth.defaultServicePath = staticMembers.servicePath;
120
+ this.auth.defaultServicePath = this._servicePath;
113
121
  // Set the default scopes in auth client if needed.
114
- if (servicePath === staticMembers.servicePath) {
122
+ if (servicePath === this._servicePath) {
115
123
  this.auth.defaultScopes = staticMembers.scopes;
116
124
  }
117
125
  this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
@@ -138,16 +146,25 @@ class SearchServiceClient {
138
146
  // identifiers to uniquely identify resources within the API.
139
147
  // Create useful helper objects for these.
140
148
  this.pathTemplates = {
149
+ enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
150
+ projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
141
151
  projectLocationCollectionDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}'),
142
152
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
143
153
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
144
154
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
145
155
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
156
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
157
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
158
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
159
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
160
+ projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
146
161
  projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
147
162
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
148
163
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
149
164
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
150
165
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
166
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
167
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
151
168
  };
152
169
  // Some of the methods on this service return "paged" results,
153
170
  // (e.g. 50 results at a time, with tokens to get subsequent
@@ -207,19 +224,38 @@ class SearchServiceClient {
207
224
  }
208
225
  /**
209
226
  * The DNS address for this API service.
227
+ * @deprecated Use the apiEndpoint method of the client instance.
210
228
  * @returns {string} The DNS address for this service.
211
229
  */
212
230
  static get servicePath() {
231
+ if (typeof process !== undefined &&
232
+ typeof process.emitWarning === 'function') {
233
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
234
+ }
213
235
  return 'discoveryengine.googleapis.com';
214
236
  }
215
237
  /**
216
- * The DNS address for this API service - same as servicePath(),
217
- * exists for compatibility reasons.
238
+ * The DNS address for this API service - same as servicePath.
239
+ * @deprecated Use the apiEndpoint method of the client instance.
218
240
  * @returns {string} The DNS address for this service.
219
241
  */
220
242
  static get apiEndpoint() {
243
+ if (typeof process !== undefined &&
244
+ typeof process.emitWarning === 'function') {
245
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
246
+ }
221
247
  return 'discoveryengine.googleapis.com';
222
248
  }
249
+ /**
250
+ * The DNS address for this API service.
251
+ * @returns {string} The DNS address for this service.
252
+ */
253
+ get apiEndpoint() {
254
+ return this._servicePath;
255
+ }
256
+ get universeDomain() {
257
+ return this._universeDomain;
258
+ }
223
259
  /**
224
260
  * The port for this API service.
225
261
  * @returns {number} The default port for this service.
@@ -273,6 +309,8 @@ class SearchServiceClient {
273
309
  * The request object that will be sent.
274
310
  * @param {string} request.servingConfig
275
311
  * Required. The resource name of the Search serving config, such as
312
+ * `projects/* /locations/global/collections/default_collection/engines/* /servingConfigs/default_serving_config`,
313
+ * or
276
314
  * `projects/* /locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
277
315
  * This field is used to identify the serving configuration name, set
278
316
  * of models used to make the search.
@@ -316,11 +354,35 @@ class SearchServiceClient {
316
354
  * expression is case-sensitive.
317
355
  *
318
356
  * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
357
+ *
358
+ * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
359
+ * key property defined in the Vertex AI Search backend -- this mapping is
360
+ * defined by the customer in their schema. For example a media customer might
361
+ * have a field 'name' in their schema. In this case the filter would look
362
+ * like this: filter --> name:'ANY("king kong")'
363
+ *
364
+ * For more information about filtering including syntax and filter
365
+ * operators, see
366
+ * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
367
+ * @param {string} request.canonicalFilter
368
+ * The default filter that is applied when a user performs a search without
369
+ * checking any filters on the search page.
370
+ *
371
+ * The filter applied to every search request when quality improvement such as
372
+ * query expansion is needed. In the case a query does not have a sufficient
373
+ * amount of results this filter will be used to determine whether or not to
374
+ * enable the query expansion flow. The original filter will still be used for
375
+ * the query expanded search.
376
+ * This field is strongly recommended to achieve high search quality.
377
+ *
378
+ * For more information about filter syntax, see
379
+ * {@link protos.google.cloud.discoveryengine.v1.SearchRequest.filter|SearchRequest.filter}.
319
380
  * @param {string} request.orderBy
320
381
  * The order in which documents are returned. Documents can be ordered by
321
382
  * a field in an {@link protos.google.cloud.discoveryengine.v1.Document|Document} object.
322
383
  * Leave it unset if ordered by relevance. `order_by` expression is
323
- * case-sensitive.
384
+ * case-sensitive. For more information on ordering, see
385
+ * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
324
386
  *
325
387
  * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
326
388
  * @param {google.cloud.discoveryengine.v1.UserInfo} request.userInfo
@@ -335,6 +397,8 @@ class SearchServiceClient {
335
397
  * error is returned.
336
398
  * @param {google.cloud.discoveryengine.v1.SearchRequest.BoostSpec} request.boostSpec
337
399
  * Boost specification to boost certain documents.
400
+ * For more information on boosting, see
401
+ * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
338
402
  * @param {number[]} request.params
339
403
  * Additional search parameters.
340
404
  *
@@ -342,9 +406,17 @@ class SearchServiceClient {
342
406
  *
343
407
  * * `user_country_code`: string. Default empty. If set to non-empty, results
344
408
  * are restricted or boosted based on the location provided.
409
+ * Example:
410
+ * user_country_code: "au"
411
+ *
412
+ * For available codes see [Country
413
+ * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
414
+ *
345
415
  * * `search_type`: double. Default empty. Enables non-webpage searching
346
- * depending on the value. The only valid non-default value is 1,
347
- * which enables image searching.
416
+ * depending on the value. The only valid non-default value is 1,
417
+ * which enables image searching.
418
+ * Example:
419
+ * search_type: 1
348
420
  * @param {google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec} request.queryExpansionSpec
349
421
  * The query expansion specification that specifies the conditions under which
350
422
  * query expansion occurs.
@@ -423,6 +495,8 @@ class SearchServiceClient {
423
495
  * The request object that will be sent.
424
496
  * @param {string} request.servingConfig
425
497
  * Required. The resource name of the Search serving config, such as
498
+ * `projects/* /locations/global/collections/default_collection/engines/* /servingConfigs/default_serving_config`,
499
+ * or
426
500
  * `projects/* /locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
427
501
  * This field is used to identify the serving configuration name, set
428
502
  * of models used to make the search.
@@ -466,11 +540,35 @@ class SearchServiceClient {
466
540
  * expression is case-sensitive.
467
541
  *
468
542
  * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
543
+ *
544
+ * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
545
+ * key property defined in the Vertex AI Search backend -- this mapping is
546
+ * defined by the customer in their schema. For example a media customer might
547
+ * have a field 'name' in their schema. In this case the filter would look
548
+ * like this: filter --> name:'ANY("king kong")'
549
+ *
550
+ * For more information about filtering including syntax and filter
551
+ * operators, see
552
+ * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
553
+ * @param {string} request.canonicalFilter
554
+ * The default filter that is applied when a user performs a search without
555
+ * checking any filters on the search page.
556
+ *
557
+ * The filter applied to every search request when quality improvement such as
558
+ * query expansion is needed. In the case a query does not have a sufficient
559
+ * amount of results this filter will be used to determine whether or not to
560
+ * enable the query expansion flow. The original filter will still be used for
561
+ * the query expanded search.
562
+ * This field is strongly recommended to achieve high search quality.
563
+ *
564
+ * For more information about filter syntax, see
565
+ * {@link protos.google.cloud.discoveryengine.v1.SearchRequest.filter|SearchRequest.filter}.
469
566
  * @param {string} request.orderBy
470
567
  * The order in which documents are returned. Documents can be ordered by
471
568
  * a field in an {@link protos.google.cloud.discoveryengine.v1.Document|Document} object.
472
569
  * Leave it unset if ordered by relevance. `order_by` expression is
473
- * case-sensitive.
570
+ * case-sensitive. For more information on ordering, see
571
+ * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
474
572
  *
475
573
  * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
476
574
  * @param {google.cloud.discoveryengine.v1.UserInfo} request.userInfo
@@ -485,6 +583,8 @@ class SearchServiceClient {
485
583
  * error is returned.
486
584
  * @param {google.cloud.discoveryengine.v1.SearchRequest.BoostSpec} request.boostSpec
487
585
  * Boost specification to boost certain documents.
586
+ * For more information on boosting, see
587
+ * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
488
588
  * @param {number[]} request.params
489
589
  * Additional search parameters.
490
590
  *
@@ -492,9 +592,17 @@ class SearchServiceClient {
492
592
  *
493
593
  * * `user_country_code`: string. Default empty. If set to non-empty, results
494
594
  * are restricted or boosted based on the location provided.
595
+ * Example:
596
+ * user_country_code: "au"
597
+ *
598
+ * For available codes see [Country
599
+ * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
600
+ *
495
601
  * * `search_type`: double. Default empty. Enables non-webpage searching
496
- * depending on the value. The only valid non-default value is 1,
497
- * which enables image searching.
602
+ * depending on the value. The only valid non-default value is 1,
603
+ * which enables image searching.
604
+ * Example:
605
+ * search_type: 1
498
606
  * @param {google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec} request.queryExpansionSpec
499
607
  * The query expansion specification that specifies the conditions under which
500
608
  * query expansion occurs.
@@ -624,6 +732,120 @@ class SearchServiceClient {
624
732
  // --------------------
625
733
  // -- Path templates --
626
734
  // --------------------
735
+ /**
736
+ * Return a fully-qualified engine resource name string.
737
+ *
738
+ * @param {string} project
739
+ * @param {string} location
740
+ * @param {string} collection
741
+ * @param {string} engine
742
+ * @returns {string} Resource name string.
743
+ */
744
+ enginePath(project, location, collection, engine) {
745
+ return this.pathTemplates.enginePathTemplate.render({
746
+ project: project,
747
+ location: location,
748
+ collection: collection,
749
+ engine: engine,
750
+ });
751
+ }
752
+ /**
753
+ * Parse the project from Engine resource.
754
+ *
755
+ * @param {string} engineName
756
+ * A fully-qualified path representing Engine resource.
757
+ * @returns {string} A string representing the project.
758
+ */
759
+ matchProjectFromEngineName(engineName) {
760
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
761
+ }
762
+ /**
763
+ * Parse the location from Engine resource.
764
+ *
765
+ * @param {string} engineName
766
+ * A fully-qualified path representing Engine resource.
767
+ * @returns {string} A string representing the location.
768
+ */
769
+ matchLocationFromEngineName(engineName) {
770
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
771
+ }
772
+ /**
773
+ * Parse the collection from Engine resource.
774
+ *
775
+ * @param {string} engineName
776
+ * A fully-qualified path representing Engine resource.
777
+ * @returns {string} A string representing the collection.
778
+ */
779
+ matchCollectionFromEngineName(engineName) {
780
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
781
+ }
782
+ /**
783
+ * Parse the engine from Engine resource.
784
+ *
785
+ * @param {string} engineName
786
+ * A fully-qualified path representing Engine resource.
787
+ * @returns {string} A string representing the engine.
788
+ */
789
+ matchEngineFromEngineName(engineName) {
790
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
791
+ }
792
+ /**
793
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
794
+ *
795
+ * @param {string} project
796
+ * @param {string} location
797
+ * @param {string} collection
798
+ * @param {string} data_store
799
+ * @returns {string} Resource name string.
800
+ */
801
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
802
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
803
+ project: project,
804
+ location: location,
805
+ collection: collection,
806
+ data_store: dataStore,
807
+ });
808
+ }
809
+ /**
810
+ * Parse the project from ProjectLocationCollectionDataStore resource.
811
+ *
812
+ * @param {string} projectLocationCollectionDataStoreName
813
+ * A fully-qualified path representing project_location_collection_data_store resource.
814
+ * @returns {string} A string representing the project.
815
+ */
816
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
817
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
818
+ }
819
+ /**
820
+ * Parse the location from ProjectLocationCollectionDataStore resource.
821
+ *
822
+ * @param {string} projectLocationCollectionDataStoreName
823
+ * A fully-qualified path representing project_location_collection_data_store resource.
824
+ * @returns {string} A string representing the location.
825
+ */
826
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
827
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
828
+ }
829
+ /**
830
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
831
+ *
832
+ * @param {string} projectLocationCollectionDataStoreName
833
+ * A fully-qualified path representing project_location_collection_data_store resource.
834
+ * @returns {string} A string representing the collection.
835
+ */
836
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
837
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
838
+ }
839
+ /**
840
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
841
+ *
842
+ * @param {string} projectLocationCollectionDataStoreName
843
+ * A fully-qualified path representing project_location_collection_data_store resource.
844
+ * @returns {string} A string representing the data_store.
845
+ */
846
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
847
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
848
+ }
627
849
  /**
628
850
  * Return a fully-qualified projectLocationCollectionDataStoreBranch resource name string.
629
851
  *
@@ -981,6 +1203,315 @@ class SearchServiceClient {
981
1203
  matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
982
1204
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
983
1205
  }
1206
+ /**
1207
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1208
+ *
1209
+ * @param {string} project
1210
+ * @param {string} location
1211
+ * @param {string} collection
1212
+ * @param {string} data_store
1213
+ * @returns {string} Resource name string.
1214
+ */
1215
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
1216
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
1217
+ project: project,
1218
+ location: location,
1219
+ collection: collection,
1220
+ data_store: dataStore,
1221
+ });
1222
+ }
1223
+ /**
1224
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1225
+ *
1226
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1227
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1228
+ * @returns {string} A string representing the project.
1229
+ */
1230
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1231
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
1232
+ }
1233
+ /**
1234
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1235
+ *
1236
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1237
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1238
+ * @returns {string} A string representing the location.
1239
+ */
1240
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1241
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
1242
+ }
1243
+ /**
1244
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1245
+ *
1246
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1247
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1248
+ * @returns {string} A string representing the collection.
1249
+ */
1250
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1251
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
1252
+ }
1253
+ /**
1254
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1255
+ *
1256
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1257
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1258
+ * @returns {string} A string representing the data_store.
1259
+ */
1260
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1261
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1262
+ }
1263
+ /**
1264
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1265
+ *
1266
+ * @param {string} project
1267
+ * @param {string} location
1268
+ * @param {string} collection
1269
+ * @param {string} data_store
1270
+ * @param {string} target_site
1271
+ * @returns {string} Resource name string.
1272
+ */
1273
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
1274
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1275
+ project: project,
1276
+ location: location,
1277
+ collection: collection,
1278
+ data_store: dataStore,
1279
+ target_site: targetSite,
1280
+ });
1281
+ }
1282
+ /**
1283
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1284
+ *
1285
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1286
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1287
+ * @returns {string} A string representing the project.
1288
+ */
1289
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1290
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
1291
+ }
1292
+ /**
1293
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1294
+ *
1295
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1296
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1297
+ * @returns {string} A string representing the location.
1298
+ */
1299
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1300
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
1301
+ }
1302
+ /**
1303
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1304
+ *
1305
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1306
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1307
+ * @returns {string} A string representing the collection.
1308
+ */
1309
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1310
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
1311
+ }
1312
+ /**
1313
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1314
+ *
1315
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1316
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1317
+ * @returns {string} A string representing the data_store.
1318
+ */
1319
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1320
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
1321
+ }
1322
+ /**
1323
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1324
+ *
1325
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1326
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1327
+ * @returns {string} A string representing the target_site.
1328
+ */
1329
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1330
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1331
+ }
1332
+ /**
1333
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1334
+ *
1335
+ * @param {string} project
1336
+ * @param {string} location
1337
+ * @param {string} collection
1338
+ * @param {string} engine
1339
+ * @param {string} conversation
1340
+ * @returns {string} Resource name string.
1341
+ */
1342
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
1343
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
1344
+ project: project,
1345
+ location: location,
1346
+ collection: collection,
1347
+ engine: engine,
1348
+ conversation: conversation,
1349
+ });
1350
+ }
1351
+ /**
1352
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
1353
+ *
1354
+ * @param {string} projectLocationCollectionEngineConversationName
1355
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1356
+ * @returns {string} A string representing the project.
1357
+ */
1358
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1359
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
1360
+ }
1361
+ /**
1362
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
1363
+ *
1364
+ * @param {string} projectLocationCollectionEngineConversationName
1365
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1366
+ * @returns {string} A string representing the location.
1367
+ */
1368
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1369
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
1370
+ }
1371
+ /**
1372
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
1373
+ *
1374
+ * @param {string} projectLocationCollectionEngineConversationName
1375
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1376
+ * @returns {string} A string representing the collection.
1377
+ */
1378
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1379
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
1380
+ }
1381
+ /**
1382
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
1383
+ *
1384
+ * @param {string} projectLocationCollectionEngineConversationName
1385
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1386
+ * @returns {string} A string representing the engine.
1387
+ */
1388
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1389
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
1390
+ }
1391
+ /**
1392
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
1393
+ *
1394
+ * @param {string} projectLocationCollectionEngineConversationName
1395
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1396
+ * @returns {string} A string representing the conversation.
1397
+ */
1398
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1399
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1400
+ }
1401
+ /**
1402
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1403
+ *
1404
+ * @param {string} project
1405
+ * @param {string} location
1406
+ * @param {string} collection
1407
+ * @param {string} engine
1408
+ * @param {string} serving_config
1409
+ * @returns {string} Resource name string.
1410
+ */
1411
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1412
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1413
+ project: project,
1414
+ location: location,
1415
+ collection: collection,
1416
+ engine: engine,
1417
+ serving_config: servingConfig,
1418
+ });
1419
+ }
1420
+ /**
1421
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1422
+ *
1423
+ * @param {string} projectLocationCollectionEngineServingConfigName
1424
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1425
+ * @returns {string} A string representing the project.
1426
+ */
1427
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1428
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1429
+ }
1430
+ /**
1431
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1432
+ *
1433
+ * @param {string} projectLocationCollectionEngineServingConfigName
1434
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1435
+ * @returns {string} A string representing the location.
1436
+ */
1437
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1438
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1439
+ }
1440
+ /**
1441
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1442
+ *
1443
+ * @param {string} projectLocationCollectionEngineServingConfigName
1444
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1445
+ * @returns {string} A string representing the collection.
1446
+ */
1447
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1448
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1449
+ }
1450
+ /**
1451
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1452
+ *
1453
+ * @param {string} projectLocationCollectionEngineServingConfigName
1454
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1455
+ * @returns {string} A string representing the engine.
1456
+ */
1457
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1458
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1459
+ }
1460
+ /**
1461
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1462
+ *
1463
+ * @param {string} projectLocationCollectionEngineServingConfigName
1464
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1465
+ * @returns {string} A string representing the serving_config.
1466
+ */
1467
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1468
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1469
+ }
1470
+ /**
1471
+ * Return a fully-qualified projectLocationDataStore resource name string.
1472
+ *
1473
+ * @param {string} project
1474
+ * @param {string} location
1475
+ * @param {string} data_store
1476
+ * @returns {string} Resource name string.
1477
+ */
1478
+ projectLocationDataStorePath(project, location, dataStore) {
1479
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
1480
+ project: project,
1481
+ location: location,
1482
+ data_store: dataStore,
1483
+ });
1484
+ }
1485
+ /**
1486
+ * Parse the project from ProjectLocationDataStore resource.
1487
+ *
1488
+ * @param {string} projectLocationDataStoreName
1489
+ * A fully-qualified path representing project_location_data_store resource.
1490
+ * @returns {string} A string representing the project.
1491
+ */
1492
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1493
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
1494
+ }
1495
+ /**
1496
+ * Parse the location from ProjectLocationDataStore resource.
1497
+ *
1498
+ * @param {string} projectLocationDataStoreName
1499
+ * A fully-qualified path representing project_location_data_store resource.
1500
+ * @returns {string} A string representing the location.
1501
+ */
1502
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1503
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
1504
+ }
1505
+ /**
1506
+ * Parse the data_store from ProjectLocationDataStore resource.
1507
+ *
1508
+ * @param {string} projectLocationDataStoreName
1509
+ * A fully-qualified path representing project_location_data_store resource.
1510
+ * @returns {string} A string representing the data_store.
1511
+ */
1512
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1513
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
1514
+ }
984
1515
  /**
985
1516
  * Return a fully-qualified projectLocationDataStoreBranch resource name string.
986
1517
  *
@@ -1278,6 +1809,108 @@ class SearchServiceClient {
1278
1809
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1279
1810
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1280
1811
  }
1812
+ /**
1813
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1814
+ *
1815
+ * @param {string} project
1816
+ * @param {string} location
1817
+ * @param {string} data_store
1818
+ * @returns {string} Resource name string.
1819
+ */
1820
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
1821
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
1822
+ project: project,
1823
+ location: location,
1824
+ data_store: dataStore,
1825
+ });
1826
+ }
1827
+ /**
1828
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
1829
+ *
1830
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1831
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1832
+ * @returns {string} A string representing the project.
1833
+ */
1834
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1835
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
1836
+ }
1837
+ /**
1838
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
1839
+ *
1840
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1841
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1842
+ * @returns {string} A string representing the location.
1843
+ */
1844
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1845
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
1846
+ }
1847
+ /**
1848
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
1849
+ *
1850
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1851
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1852
+ * @returns {string} A string representing the data_store.
1853
+ */
1854
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1855
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
1856
+ }
1857
+ /**
1858
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
1859
+ *
1860
+ * @param {string} project
1861
+ * @param {string} location
1862
+ * @param {string} data_store
1863
+ * @param {string} target_site
1864
+ * @returns {string} Resource name string.
1865
+ */
1866
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
1867
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1868
+ project: project,
1869
+ location: location,
1870
+ data_store: dataStore,
1871
+ target_site: targetSite,
1872
+ });
1873
+ }
1874
+ /**
1875
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1876
+ *
1877
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1878
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1879
+ * @returns {string} A string representing the project.
1880
+ */
1881
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1882
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
1883
+ }
1884
+ /**
1885
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1886
+ *
1887
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1888
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1889
+ * @returns {string} A string representing the location.
1890
+ */
1891
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1892
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
1893
+ }
1894
+ /**
1895
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1896
+ *
1897
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1898
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1899
+ * @returns {string} A string representing the data_store.
1900
+ */
1901
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1902
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
1903
+ }
1904
+ /**
1905
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1906
+ *
1907
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1908
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1909
+ * @returns {string} A string representing the target_site.
1910
+ */
1911
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1912
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
1913
+ }
1281
1914
  /**
1282
1915
  * Terminate the gRPC channel and close the client.
1283
1916
  *