@google-cloud/discoveryengine 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +51 -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/v1beta/common.proto +59 -8
  20. package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +52 -0
  21. package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +51 -4
  22. package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -0
  23. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +40 -1
  24. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +98 -0
  25. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +306 -0
  26. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
  27. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +220 -0
  28. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +244 -0
  29. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +64 -0
  30. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +38 -0
  31. package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +26 -3
  32. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +150 -11
  33. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +264 -0
  34. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +147 -0
  35. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +170 -0
  36. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +695 -0
  37. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -3
  38. package/build/protos/protos.d.ts +41157 -23655
  39. package/build/protos/protos.js +103188 -62466
  40. package/build/protos/protos.json +10400 -6075
  41. package/build/src/index.d.ts +10 -1
  42. package/build/src/index.js +10 -1
  43. package/build/src/v1/completion_service_client.d.ts +489 -7
  44. package/build/src/v1/completion_service_client.js +715 -11
  45. package/build/src/v1/completion_service_client_config.json +10 -0
  46. package/build/src/v1/conversational_search_service_client.d.ts +341 -3
  47. package/build/src/v1/conversational_search_service_client.js +466 -9
  48. package/build/src/v1/data_store_service_client.d.ts +1286 -0
  49. package/build/src/v1/data_store_service_client.js +1768 -0
  50. package/build/src/v1/data_store_service_client_config.json +46 -0
  51. package/build/src/v1/document_service_client.d.ts +347 -2
  52. package/build/src/v1/document_service_client.js +506 -9
  53. package/build/src/v1/engine_service_client.d.ts +1211 -0
  54. package/build/src/v1/engine_service_client.js +1731 -0
  55. package/build/src/v1/engine_service_client_config.json +46 -0
  56. package/build/src/v1/index.d.ts +3 -0
  57. package/build/src/v1/index.js +7 -1
  58. package/build/src/v1/schema_service_client.d.ts +272 -2
  59. package/build/src/v1/schema_service_client.js +402 -9
  60. package/build/src/v1/search_service_client.d.ts +515 -11
  61. package/build/src/v1/search_service_client.js +648 -15
  62. package/build/src/v1/site_search_engine_service_client.d.ts +1564 -0
  63. package/build/src/v1/site_search_engine_service_client.js +2075 -0
  64. package/build/src/v1/site_search_engine_service_client_config.json +74 -0
  65. package/build/src/v1/user_event_service_client.d.ts +272 -2
  66. package/build/src/v1/user_event_service_client.js +402 -9
  67. package/build/src/v1alpha/completion_service_client.d.ts +11 -2
  68. package/build/src/v1alpha/completion_service_client.js +37 -10
  69. package/build/src/v1alpha/conversational_search_service_client.d.ts +11 -2
  70. package/build/src/v1alpha/conversational_search_service_client.js +37 -10
  71. package/build/src/v1alpha/data_store_service_client.d.ts +11 -2
  72. package/build/src/v1alpha/data_store_service_client.js +37 -10
  73. package/build/src/v1alpha/document_service_client.d.ts +11 -2
  74. package/build/src/v1alpha/document_service_client.js +37 -10
  75. package/build/src/v1alpha/engine_service_client.d.ts +11 -2
  76. package/build/src/v1alpha/engine_service_client.js +37 -10
  77. package/build/src/v1alpha/index.js +1 -1
  78. package/build/src/v1alpha/recommendation_service_client.d.ts +11 -2
  79. package/build/src/v1alpha/recommendation_service_client.js +37 -10
  80. package/build/src/v1alpha/schema_service_client.d.ts +11 -2
  81. package/build/src/v1alpha/schema_service_client.js +37 -10
  82. package/build/src/v1alpha/search_service_client.d.ts +11 -2
  83. package/build/src/v1alpha/search_service_client.js +37 -10
  84. package/build/src/v1alpha/search_tuning_service_client.d.ts +11 -2
  85. package/build/src/v1alpha/search_tuning_service_client.js +37 -10
  86. package/build/src/v1alpha/site_search_engine_service_client.d.ts +11 -2
  87. package/build/src/v1alpha/site_search_engine_service_client.js +37 -10
  88. package/build/src/v1alpha/user_event_service_client.d.ts +11 -2
  89. package/build/src/v1alpha/user_event_service_client.js +37 -10
  90. package/build/src/v1beta/completion_service_client.d.ts +633 -7
  91. package/build/src/v1beta/completion_service_client.js +911 -11
  92. package/build/src/v1beta/completion_service_client_config.json +10 -0
  93. package/build/src/v1beta/conversational_search_service_client.d.ts +341 -3
  94. package/build/src/v1beta/conversational_search_service_client.js +466 -9
  95. package/build/src/v1beta/data_store_service_client.d.ts +1433 -0
  96. package/build/src/v1beta/data_store_service_client.js +1966 -0
  97. package/build/src/v1beta/data_store_service_client_config.json +46 -0
  98. package/build/src/v1beta/document_service_client.d.ts +491 -2
  99. package/build/src/v1beta/document_service_client.js +706 -11
  100. package/build/src/v1beta/engine_service_client.d.ts +1357 -0
  101. package/build/src/v1beta/engine_service_client.js +1928 -0
  102. package/build/src/v1beta/engine_service_client_config.json +46 -0
  103. package/build/src/v1beta/index.d.ts +4 -0
  104. package/build/src/v1beta/index.js +9 -1
  105. package/build/src/v1beta/recommendation_service_client.d.ts +420 -5
  106. package/build/src/v1beta/recommendation_service_client.js +570 -9
  107. package/build/src/v1beta/schema_service_client.d.ts +416 -2
  108. package/build/src/v1beta/schema_service_client.js +602 -11
  109. package/build/src/v1beta/search_service_client.d.ts +539 -29
  110. package/build/src/v1beta/search_service_client.js +664 -27
  111. package/build/src/v1beta/serving_config_service_client.d.ts +1102 -0
  112. package/build/src/v1beta/serving_config_service_client.js +1563 -0
  113. package/build/src/v1beta/serving_config_service_client_config.json +38 -0
  114. package/build/src/v1beta/site_search_engine_service_client.d.ts +1712 -0
  115. package/build/src/v1beta/site_search_engine_service_client.js +2271 -0
  116. package/build/src/v1beta/site_search_engine_service_client_config.json +74 -0
  117. package/build/src/v1beta/user_event_service_client.d.ts +416 -2
  118. package/build/src/v1beta/user_event_service_client.js +602 -11
  119. package/package.json +2 -2
@@ -72,7 +72,7 @@ class SchemaServiceClient {
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 SchemaServiceClient {
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 SchemaServiceClient {
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,14 +146,20 @@ class SchemaServiceClient {
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}'),
141
150
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
142
151
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
143
152
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
144
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}'),
145
157
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
146
158
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
147
159
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
148
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}'),
149
163
  };
150
164
  // Some of the methods on this service return "paged" results,
151
165
  // (e.g. 50 results at a time, with tokens to get subsequent
@@ -168,6 +182,9 @@ class SchemaServiceClient {
168
182
  selector: 'google.longrunning.Operations.GetOperation',
169
183
  get: '/v1/{name=projects/*/operations/*}',
170
184
  additional_bindings: [
185
+ {
186
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
187
+ },
171
188
  {
172
189
  get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
173
190
  },
@@ -209,6 +226,9 @@ class SchemaServiceClient {
209
226
  selector: 'google.longrunning.Operations.ListOperations',
210
227
  get: '/v1/{name=projects/*}/operations',
211
228
  additional_bindings: [
229
+ {
230
+ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
231
+ },
212
232
  {
213
233
  get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
214
234
  },
@@ -318,19 +338,38 @@ class SchemaServiceClient {
318
338
  }
319
339
  /**
320
340
  * The DNS address for this API service.
341
+ * @deprecated Use the apiEndpoint method of the client instance.
321
342
  * @returns {string} The DNS address for this service.
322
343
  */
323
344
  static get servicePath() {
345
+ if (typeof process !== undefined &&
346
+ typeof process.emitWarning === 'function') {
347
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
348
+ }
324
349
  return 'discoveryengine.googleapis.com';
325
350
  }
326
351
  /**
327
- * The DNS address for this API service - same as servicePath(),
328
- * exists for compatibility reasons.
352
+ * The DNS address for this API service - same as servicePath.
353
+ * @deprecated Use the apiEndpoint method of the client instance.
329
354
  * @returns {string} The DNS address for this service.
330
355
  */
331
356
  static get apiEndpoint() {
357
+ if (typeof process !== undefined &&
358
+ typeof process.emitWarning === 'function') {
359
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
360
+ }
332
361
  return 'discoveryengine.googleapis.com';
333
362
  }
363
+ /**
364
+ * The DNS address for this API service.
365
+ * @returns {string} The DNS address for this service.
366
+ */
367
+ get apiEndpoint() {
368
+ return this._servicePath;
369
+ }
370
+ get universeDomain() {
371
+ return this._universeDomain;
372
+ }
334
373
  /**
335
374
  * The port for this API service.
336
375
  * @returns {number} The default port for this service.
@@ -800,6 +839,63 @@ class SchemaServiceClient {
800
839
  // --------------------
801
840
  // -- Path templates --
802
841
  // --------------------
842
+ /**
843
+ * Return a fully-qualified engine resource name string.
844
+ *
845
+ * @param {string} project
846
+ * @param {string} location
847
+ * @param {string} collection
848
+ * @param {string} engine
849
+ * @returns {string} Resource name string.
850
+ */
851
+ enginePath(project, location, collection, engine) {
852
+ return this.pathTemplates.enginePathTemplate.render({
853
+ project: project,
854
+ location: location,
855
+ collection: collection,
856
+ engine: engine,
857
+ });
858
+ }
859
+ /**
860
+ * Parse the project from Engine resource.
861
+ *
862
+ * @param {string} engineName
863
+ * A fully-qualified path representing Engine resource.
864
+ * @returns {string} A string representing the project.
865
+ */
866
+ matchProjectFromEngineName(engineName) {
867
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
868
+ }
869
+ /**
870
+ * Parse the location from Engine resource.
871
+ *
872
+ * @param {string} engineName
873
+ * A fully-qualified path representing Engine resource.
874
+ * @returns {string} A string representing the location.
875
+ */
876
+ matchLocationFromEngineName(engineName) {
877
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
878
+ }
879
+ /**
880
+ * Parse the collection from Engine resource.
881
+ *
882
+ * @param {string} engineName
883
+ * A fully-qualified path representing Engine resource.
884
+ * @returns {string} A string representing the collection.
885
+ */
886
+ matchCollectionFromEngineName(engineName) {
887
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
888
+ }
889
+ /**
890
+ * Parse the engine from Engine resource.
891
+ *
892
+ * @param {string} engineName
893
+ * A fully-qualified path representing Engine resource.
894
+ * @returns {string} A string representing the engine.
895
+ */
896
+ matchEngineFromEngineName(engineName) {
897
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
898
+ }
803
899
  /**
804
900
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
805
901
  *
@@ -1076,6 +1172,201 @@ class SchemaServiceClient {
1076
1172
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1077
1173
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1078
1174
  }
1175
+ /**
1176
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1177
+ *
1178
+ * @param {string} project
1179
+ * @param {string} location
1180
+ * @param {string} collection
1181
+ * @param {string} data_store
1182
+ * @returns {string} Resource name string.
1183
+ */
1184
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
1185
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
1186
+ project: project,
1187
+ location: location,
1188
+ collection: collection,
1189
+ data_store: dataStore,
1190
+ });
1191
+ }
1192
+ /**
1193
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1194
+ *
1195
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1196
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1197
+ * @returns {string} A string representing the project.
1198
+ */
1199
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1200
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
1201
+ }
1202
+ /**
1203
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1204
+ *
1205
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1206
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1207
+ * @returns {string} A string representing the location.
1208
+ */
1209
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1210
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
1211
+ }
1212
+ /**
1213
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1214
+ *
1215
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1216
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1217
+ * @returns {string} A string representing the collection.
1218
+ */
1219
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1220
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
1221
+ }
1222
+ /**
1223
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1224
+ *
1225
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1226
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1227
+ * @returns {string} A string representing the data_store.
1228
+ */
1229
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1230
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1231
+ }
1232
+ /**
1233
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1234
+ *
1235
+ * @param {string} project
1236
+ * @param {string} location
1237
+ * @param {string} collection
1238
+ * @param {string} data_store
1239
+ * @param {string} target_site
1240
+ * @returns {string} Resource name string.
1241
+ */
1242
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
1243
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1244
+ project: project,
1245
+ location: location,
1246
+ collection: collection,
1247
+ data_store: dataStore,
1248
+ target_site: targetSite,
1249
+ });
1250
+ }
1251
+ /**
1252
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1253
+ *
1254
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1255
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1256
+ * @returns {string} A string representing the project.
1257
+ */
1258
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1259
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
1260
+ }
1261
+ /**
1262
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1263
+ *
1264
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1265
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1266
+ * @returns {string} A string representing the location.
1267
+ */
1268
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1269
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
1270
+ }
1271
+ /**
1272
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1273
+ *
1274
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1275
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1276
+ * @returns {string} A string representing the collection.
1277
+ */
1278
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1279
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
1280
+ }
1281
+ /**
1282
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1283
+ *
1284
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1285
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1286
+ * @returns {string} A string representing the data_store.
1287
+ */
1288
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1289
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
1290
+ }
1291
+ /**
1292
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1293
+ *
1294
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1295
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1296
+ * @returns {string} A string representing the target_site.
1297
+ */
1298
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1299
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1300
+ }
1301
+ /**
1302
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1303
+ *
1304
+ * @param {string} project
1305
+ * @param {string} location
1306
+ * @param {string} collection
1307
+ * @param {string} engine
1308
+ * @param {string} conversation
1309
+ * @returns {string} Resource name string.
1310
+ */
1311
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
1312
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
1313
+ project: project,
1314
+ location: location,
1315
+ collection: collection,
1316
+ engine: engine,
1317
+ conversation: conversation,
1318
+ });
1319
+ }
1320
+ /**
1321
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
1322
+ *
1323
+ * @param {string} projectLocationCollectionEngineConversationName
1324
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1325
+ * @returns {string} A string representing the project.
1326
+ */
1327
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1328
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
1329
+ }
1330
+ /**
1331
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
1332
+ *
1333
+ * @param {string} projectLocationCollectionEngineConversationName
1334
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1335
+ * @returns {string} A string representing the location.
1336
+ */
1337
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1338
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
1339
+ }
1340
+ /**
1341
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
1342
+ *
1343
+ * @param {string} projectLocationCollectionEngineConversationName
1344
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1345
+ * @returns {string} A string representing the collection.
1346
+ */
1347
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1348
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
1349
+ }
1350
+ /**
1351
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
1352
+ *
1353
+ * @param {string} projectLocationCollectionEngineConversationName
1354
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1355
+ * @returns {string} A string representing the engine.
1356
+ */
1357
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1358
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
1359
+ }
1360
+ /**
1361
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
1362
+ *
1363
+ * @param {string} projectLocationCollectionEngineConversationName
1364
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1365
+ * @returns {string} A string representing the conversation.
1366
+ */
1367
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1368
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1369
+ }
1079
1370
  /**
1080
1371
  * Return a fully-qualified projectLocationDataStore resource name string.
1081
1372
  *
@@ -1304,6 +1595,108 @@ class SchemaServiceClient {
1304
1595
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1305
1596
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
1306
1597
  }
1598
+ /**
1599
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1600
+ *
1601
+ * @param {string} project
1602
+ * @param {string} location
1603
+ * @param {string} data_store
1604
+ * @returns {string} Resource name string.
1605
+ */
1606
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
1607
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
1608
+ project: project,
1609
+ location: location,
1610
+ data_store: dataStore,
1611
+ });
1612
+ }
1613
+ /**
1614
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
1615
+ *
1616
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1617
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1618
+ * @returns {string} A string representing the project.
1619
+ */
1620
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1621
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
1622
+ }
1623
+ /**
1624
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
1625
+ *
1626
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1627
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1628
+ * @returns {string} A string representing the location.
1629
+ */
1630
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1631
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
1632
+ }
1633
+ /**
1634
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
1635
+ *
1636
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1637
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1638
+ * @returns {string} A string representing the data_store.
1639
+ */
1640
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1641
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
1642
+ }
1643
+ /**
1644
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
1645
+ *
1646
+ * @param {string} project
1647
+ * @param {string} location
1648
+ * @param {string} data_store
1649
+ * @param {string} target_site
1650
+ * @returns {string} Resource name string.
1651
+ */
1652
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
1653
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1654
+ project: project,
1655
+ location: location,
1656
+ data_store: dataStore,
1657
+ target_site: targetSite,
1658
+ });
1659
+ }
1660
+ /**
1661
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1662
+ *
1663
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1664
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1665
+ * @returns {string} A string representing the project.
1666
+ */
1667
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1668
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
1669
+ }
1670
+ /**
1671
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1672
+ *
1673
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1674
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1675
+ * @returns {string} A string representing the location.
1676
+ */
1677
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1678
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
1679
+ }
1680
+ /**
1681
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1682
+ *
1683
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1684
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1685
+ * @returns {string} A string representing the data_store.
1686
+ */
1687
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1688
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
1689
+ }
1690
+ /**
1691
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1692
+ *
1693
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1694
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1695
+ * @returns {string} A string representing the target_site.
1696
+ */
1697
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1698
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
1699
+ }
1307
1700
  /**
1308
1701
  * Terminate the gRPC channel and close the client.
1309
1702
  *