@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 CompletionServiceClient {
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 CompletionServiceClient {
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 CompletionServiceClient {
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);
@@ -143,10 +151,15 @@ class CompletionServiceClient {
143
151
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
144
152
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
145
153
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
154
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
155
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
156
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
146
157
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
147
158
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
148
159
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
149
160
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
161
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
162
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
150
163
  };
151
164
  // Put together the default options sent with requests.
152
165
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.CompletionService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -201,19 +214,38 @@ class CompletionServiceClient {
201
214
  }
202
215
  /**
203
216
  * The DNS address for this API service.
217
+ * @deprecated Use the apiEndpoint method of the client instance.
204
218
  * @returns {string} The DNS address for this service.
205
219
  */
206
220
  static get servicePath() {
221
+ if (typeof process !== undefined &&
222
+ typeof process.emitWarning === 'function') {
223
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
224
+ }
207
225
  return 'discoveryengine.googleapis.com';
208
226
  }
209
227
  /**
210
- * The DNS address for this API service - same as servicePath(),
211
- * exists for compatibility reasons.
228
+ * The DNS address for this API service - same as servicePath.
229
+ * @deprecated Use the apiEndpoint method of the client instance.
212
230
  * @returns {string} The DNS address for this service.
213
231
  */
214
232
  static get apiEndpoint() {
233
+ if (typeof process !== undefined &&
234
+ typeof process.emitWarning === 'function') {
235
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
236
+ }
215
237
  return 'discoveryengine.googleapis.com';
216
238
  }
239
+ /**
240
+ * The DNS address for this API service.
241
+ * @returns {string} The DNS address for this service.
242
+ */
243
+ get apiEndpoint() {
244
+ return this._servicePath;
245
+ }
246
+ get universeDomain() {
247
+ return this._universeDomain;
248
+ }
217
249
  /**
218
250
  * The port for this API service.
219
251
  * @returns {number} The default port for this service.
@@ -652,6 +684,201 @@ class CompletionServiceClient {
652
684
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
653
685
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
654
686
  }
687
+ /**
688
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
689
+ *
690
+ * @param {string} project
691
+ * @param {string} location
692
+ * @param {string} collection
693
+ * @param {string} data_store
694
+ * @returns {string} Resource name string.
695
+ */
696
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
697
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
698
+ project: project,
699
+ location: location,
700
+ collection: collection,
701
+ data_store: dataStore,
702
+ });
703
+ }
704
+ /**
705
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
706
+ *
707
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
708
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
709
+ * @returns {string} A string representing the project.
710
+ */
711
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
712
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
713
+ }
714
+ /**
715
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
716
+ *
717
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
718
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
719
+ * @returns {string} A string representing the location.
720
+ */
721
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
722
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
723
+ }
724
+ /**
725
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
726
+ *
727
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
728
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
729
+ * @returns {string} A string representing the collection.
730
+ */
731
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
732
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
733
+ }
734
+ /**
735
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
736
+ *
737
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
738
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
739
+ * @returns {string} A string representing the data_store.
740
+ */
741
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
742
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
743
+ }
744
+ /**
745
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
746
+ *
747
+ * @param {string} project
748
+ * @param {string} location
749
+ * @param {string} collection
750
+ * @param {string} data_store
751
+ * @param {string} target_site
752
+ * @returns {string} Resource name string.
753
+ */
754
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
755
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
756
+ project: project,
757
+ location: location,
758
+ collection: collection,
759
+ data_store: dataStore,
760
+ target_site: targetSite,
761
+ });
762
+ }
763
+ /**
764
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
765
+ *
766
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
767
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
768
+ * @returns {string} A string representing the project.
769
+ */
770
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
771
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
772
+ }
773
+ /**
774
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
775
+ *
776
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
777
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
778
+ * @returns {string} A string representing the location.
779
+ */
780
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
781
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
782
+ }
783
+ /**
784
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
785
+ *
786
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
787
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
788
+ * @returns {string} A string representing the collection.
789
+ */
790
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
791
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
792
+ }
793
+ /**
794
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
795
+ *
796
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
797
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
798
+ * @returns {string} A string representing the data_store.
799
+ */
800
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
801
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
802
+ }
803
+ /**
804
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
805
+ *
806
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
807
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
808
+ * @returns {string} A string representing the target_site.
809
+ */
810
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
811
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
812
+ }
813
+ /**
814
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
815
+ *
816
+ * @param {string} project
817
+ * @param {string} location
818
+ * @param {string} collection
819
+ * @param {string} engine
820
+ * @param {string} conversation
821
+ * @returns {string} Resource name string.
822
+ */
823
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
824
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
825
+ project: project,
826
+ location: location,
827
+ collection: collection,
828
+ engine: engine,
829
+ conversation: conversation,
830
+ });
831
+ }
832
+ /**
833
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
834
+ *
835
+ * @param {string} projectLocationCollectionEngineConversationName
836
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
837
+ * @returns {string} A string representing the project.
838
+ */
839
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
840
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
841
+ }
842
+ /**
843
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
844
+ *
845
+ * @param {string} projectLocationCollectionEngineConversationName
846
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
847
+ * @returns {string} A string representing the location.
848
+ */
849
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
850
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
851
+ }
852
+ /**
853
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
854
+ *
855
+ * @param {string} projectLocationCollectionEngineConversationName
856
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
857
+ * @returns {string} A string representing the collection.
858
+ */
859
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
860
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
861
+ }
862
+ /**
863
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
864
+ *
865
+ * @param {string} projectLocationCollectionEngineConversationName
866
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
867
+ * @returns {string} A string representing the engine.
868
+ */
869
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
870
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
871
+ }
872
+ /**
873
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
874
+ *
875
+ * @param {string} projectLocationCollectionEngineConversationName
876
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
877
+ * @returns {string} A string representing the conversation.
878
+ */
879
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
880
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
881
+ }
655
882
  /**
656
883
  * Return a fully-qualified projectLocationDataStore resource name string.
657
884
  *
@@ -880,6 +1107,108 @@ class CompletionServiceClient {
880
1107
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
881
1108
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
882
1109
  }
1110
+ /**
1111
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1112
+ *
1113
+ * @param {string} project
1114
+ * @param {string} location
1115
+ * @param {string} data_store
1116
+ * @returns {string} Resource name string.
1117
+ */
1118
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
1119
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
1120
+ project: project,
1121
+ location: location,
1122
+ data_store: dataStore,
1123
+ });
1124
+ }
1125
+ /**
1126
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
1127
+ *
1128
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1129
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1130
+ * @returns {string} A string representing the project.
1131
+ */
1132
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1133
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
1134
+ }
1135
+ /**
1136
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
1137
+ *
1138
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1139
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1140
+ * @returns {string} A string representing the location.
1141
+ */
1142
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1143
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
1144
+ }
1145
+ /**
1146
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
1147
+ *
1148
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1149
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1150
+ * @returns {string} A string representing the data_store.
1151
+ */
1152
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1153
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
1154
+ }
1155
+ /**
1156
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
1157
+ *
1158
+ * @param {string} project
1159
+ * @param {string} location
1160
+ * @param {string} data_store
1161
+ * @param {string} target_site
1162
+ * @returns {string} Resource name string.
1163
+ */
1164
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
1165
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1166
+ project: project,
1167
+ location: location,
1168
+ data_store: dataStore,
1169
+ target_site: targetSite,
1170
+ });
1171
+ }
1172
+ /**
1173
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1174
+ *
1175
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1176
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1177
+ * @returns {string} A string representing the project.
1178
+ */
1179
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1180
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
1181
+ }
1182
+ /**
1183
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1184
+ *
1185
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1186
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1187
+ * @returns {string} A string representing the location.
1188
+ */
1189
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1190
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
1191
+ }
1192
+ /**
1193
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1194
+ *
1195
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1196
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1197
+ * @returns {string} A string representing the data_store.
1198
+ */
1199
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1200
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
1201
+ }
1202
+ /**
1203
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1204
+ *
1205
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1206
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1207
+ * @returns {string} A string representing the target_site.
1208
+ */
1209
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1210
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
1211
+ }
883
1212
  /**
884
1213
  * Terminate the gRPC channel and close the client.
885
1214
  *