@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
@@ -74,7 +74,7 @@ class DocumentServiceClient {
74
74
  * ```
75
75
  */
76
76
  constructor(opts, gaxInstance) {
77
- var _a, _b;
77
+ var _a, _b, _c, _d;
78
78
  this._terminated = false;
79
79
  this.descriptors = {
80
80
  page: {},
@@ -84,16 +84,24 @@ class DocumentServiceClient {
84
84
  };
85
85
  // Ensure that options include all the required fields.
86
86
  const staticMembers = this.constructor;
87
- const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || staticMembers.servicePath;
87
+ if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
88
+ (opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
89
+ (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
90
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
91
+ }
92
+ this._universeDomain =
93
+ (_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';
94
+ this._servicePath = 'discoveryengine.' + this._universeDomain;
95
+ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
88
96
  this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
89
97
  const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
90
- const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {};
91
- 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');
98
+ const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
99
+ 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');
92
100
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
93
101
  // Request numeric enum values if REST transport is used.
94
102
  opts.numericEnums = true;
95
103
  // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
96
- if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) {
104
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
97
105
  opts['scopes'] = staticMembers.scopes;
98
106
  }
99
107
  // Load google-gax module synchronously if needed
@@ -111,9 +119,9 @@ class DocumentServiceClient {
111
119
  // Set useJWTAccessWithScope on the auth object.
112
120
  this.auth.useJWTAccessWithScope = true;
113
121
  // Set defaultServicePath on the auth object.
114
- this.auth.defaultServicePath = staticMembers.servicePath;
122
+ this.auth.defaultServicePath = this._servicePath;
115
123
  // Set the default scopes in auth client if needed.
116
- if (servicePath === staticMembers.servicePath) {
124
+ if (servicePath === this._servicePath) {
117
125
  this.auth.defaultScopes = staticMembers.scopes;
118
126
  }
119
127
  this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
@@ -140,14 +148,25 @@ class DocumentServiceClient {
140
148
  // identifiers to uniquely identify resources within the API.
141
149
  // Create useful helper objects for these.
142
150
  this.pathTemplates = {
151
+ enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
152
+ projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
143
153
  projectLocationCollectionDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}'),
144
154
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
145
155
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
146
156
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
157
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
158
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
159
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
160
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
161
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
162
+ projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
147
163
  projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
148
164
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
149
165
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
150
166
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
167
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
168
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
169
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
151
170
  };
152
171
  // Some of the methods on this service return "paged" results,
153
172
  // (e.g. 50 results at a time, with tokens to get subsequent
@@ -168,8 +187,11 @@ class DocumentServiceClient {
168
187
  lroOptions.httpRules = [
169
188
  {
170
189
  selector: 'google.longrunning.Operations.GetOperation',
171
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
190
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
172
191
  additional_bindings: [
192
+ {
193
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
194
+ },
173
195
  {
174
196
  get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
175
197
  },
@@ -206,8 +228,11 @@ class DocumentServiceClient {
206
228
  },
207
229
  {
208
230
  selector: 'google.longrunning.Operations.ListOperations',
209
- get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
231
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
210
232
  additional_bindings: [
233
+ {
234
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
235
+ },
211
236
  {
212
237
  get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
213
238
  },
@@ -318,19 +343,38 @@ class DocumentServiceClient {
318
343
  }
319
344
  /**
320
345
  * The DNS address for this API service.
346
+ * @deprecated Use the apiEndpoint method of the client instance.
321
347
  * @returns {string} The DNS address for this service.
322
348
  */
323
349
  static get servicePath() {
350
+ if (typeof process !== undefined &&
351
+ typeof process.emitWarning === 'function') {
352
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
353
+ }
324
354
  return 'discoveryengine.googleapis.com';
325
355
  }
326
356
  /**
327
- * The DNS address for this API service - same as servicePath(),
328
- * exists for compatibility reasons.
357
+ * The DNS address for this API service - same as servicePath.
358
+ * @deprecated Use the apiEndpoint method of the client instance.
329
359
  * @returns {string} The DNS address for this service.
330
360
  */
331
361
  static get apiEndpoint() {
362
+ if (typeof process !== undefined &&
363
+ typeof process.emitWarning === 'function') {
364
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
365
+ }
332
366
  return 'discoveryengine.googleapis.com';
333
367
  }
368
+ /**
369
+ * The DNS address for this API service.
370
+ * @returns {string} The DNS address for this service.
371
+ */
372
+ get apiEndpoint() {
373
+ return this._servicePath;
374
+ }
375
+ get universeDomain() {
376
+ return this._universeDomain;
377
+ }
334
378
  /**
335
379
  * The port for this API service.
336
380
  * @returns {number} The default port for this service.
@@ -841,6 +885,120 @@ class DocumentServiceClient {
841
885
  // --------------------
842
886
  // -- Path templates --
843
887
  // --------------------
888
+ /**
889
+ * Return a fully-qualified engine resource name string.
890
+ *
891
+ * @param {string} project
892
+ * @param {string} location
893
+ * @param {string} collection
894
+ * @param {string} engine
895
+ * @returns {string} Resource name string.
896
+ */
897
+ enginePath(project, location, collection, engine) {
898
+ return this.pathTemplates.enginePathTemplate.render({
899
+ project: project,
900
+ location: location,
901
+ collection: collection,
902
+ engine: engine,
903
+ });
904
+ }
905
+ /**
906
+ * Parse the project from Engine resource.
907
+ *
908
+ * @param {string} engineName
909
+ * A fully-qualified path representing Engine resource.
910
+ * @returns {string} A string representing the project.
911
+ */
912
+ matchProjectFromEngineName(engineName) {
913
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
914
+ }
915
+ /**
916
+ * Parse the location from Engine resource.
917
+ *
918
+ * @param {string} engineName
919
+ * A fully-qualified path representing Engine resource.
920
+ * @returns {string} A string representing the location.
921
+ */
922
+ matchLocationFromEngineName(engineName) {
923
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
924
+ }
925
+ /**
926
+ * Parse the collection from Engine resource.
927
+ *
928
+ * @param {string} engineName
929
+ * A fully-qualified path representing Engine resource.
930
+ * @returns {string} A string representing the collection.
931
+ */
932
+ matchCollectionFromEngineName(engineName) {
933
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
934
+ }
935
+ /**
936
+ * Parse the engine from Engine resource.
937
+ *
938
+ * @param {string} engineName
939
+ * A fully-qualified path representing Engine resource.
940
+ * @returns {string} A string representing the engine.
941
+ */
942
+ matchEngineFromEngineName(engineName) {
943
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
944
+ }
945
+ /**
946
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
947
+ *
948
+ * @param {string} project
949
+ * @param {string} location
950
+ * @param {string} collection
951
+ * @param {string} data_store
952
+ * @returns {string} Resource name string.
953
+ */
954
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
955
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
956
+ project: project,
957
+ location: location,
958
+ collection: collection,
959
+ data_store: dataStore,
960
+ });
961
+ }
962
+ /**
963
+ * Parse the project from ProjectLocationCollectionDataStore resource.
964
+ *
965
+ * @param {string} projectLocationCollectionDataStoreName
966
+ * A fully-qualified path representing project_location_collection_data_store resource.
967
+ * @returns {string} A string representing the project.
968
+ */
969
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
970
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
971
+ }
972
+ /**
973
+ * Parse the location from ProjectLocationCollectionDataStore resource.
974
+ *
975
+ * @param {string} projectLocationCollectionDataStoreName
976
+ * A fully-qualified path representing project_location_collection_data_store resource.
977
+ * @returns {string} A string representing the location.
978
+ */
979
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
980
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
981
+ }
982
+ /**
983
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
984
+ *
985
+ * @param {string} projectLocationCollectionDataStoreName
986
+ * A fully-qualified path representing project_location_collection_data_store resource.
987
+ * @returns {string} A string representing the collection.
988
+ */
989
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
990
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
991
+ }
992
+ /**
993
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
994
+ *
995
+ * @param {string} projectLocationCollectionDataStoreName
996
+ * A fully-qualified path representing project_location_collection_data_store resource.
997
+ * @returns {string} A string representing the data_store.
998
+ */
999
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
1000
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
1001
+ }
844
1002
  /**
845
1003
  * Return a fully-qualified projectLocationCollectionDataStoreBranch resource name string.
846
1004
  *
@@ -1129,6 +1287,384 @@ class DocumentServiceClient {
1129
1287
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1130
1288
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1131
1289
  }
1290
+ /**
1291
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1292
+ *
1293
+ * @param {string} project
1294
+ * @param {string} location
1295
+ * @param {string} collection
1296
+ * @param {string} data_store
1297
+ * @param {string} serving_config
1298
+ * @returns {string} Resource name string.
1299
+ */
1300
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1301
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1302
+ project: project,
1303
+ location: location,
1304
+ collection: collection,
1305
+ data_store: dataStore,
1306
+ serving_config: servingConfig,
1307
+ });
1308
+ }
1309
+ /**
1310
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1311
+ *
1312
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1313
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1314
+ * @returns {string} A string representing the project.
1315
+ */
1316
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1317
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1318
+ }
1319
+ /**
1320
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1321
+ *
1322
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1323
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1324
+ * @returns {string} A string representing the location.
1325
+ */
1326
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1327
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1328
+ }
1329
+ /**
1330
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1331
+ *
1332
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1333
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1334
+ * @returns {string} A string representing the collection.
1335
+ */
1336
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1337
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1338
+ }
1339
+ /**
1340
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1341
+ *
1342
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1343
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1344
+ * @returns {string} A string representing the data_store.
1345
+ */
1346
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1347
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1348
+ }
1349
+ /**
1350
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1351
+ *
1352
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1353
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1354
+ * @returns {string} A string representing the serving_config.
1355
+ */
1356
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1357
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1358
+ }
1359
+ /**
1360
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1361
+ *
1362
+ * @param {string} project
1363
+ * @param {string} location
1364
+ * @param {string} collection
1365
+ * @param {string} data_store
1366
+ * @returns {string} Resource name string.
1367
+ */
1368
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
1369
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
1370
+ project: project,
1371
+ location: location,
1372
+ collection: collection,
1373
+ data_store: dataStore,
1374
+ });
1375
+ }
1376
+ /**
1377
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1378
+ *
1379
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1380
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1381
+ * @returns {string} A string representing the project.
1382
+ */
1383
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1384
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
1385
+ }
1386
+ /**
1387
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1388
+ *
1389
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1390
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1391
+ * @returns {string} A string representing the location.
1392
+ */
1393
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1394
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
1395
+ }
1396
+ /**
1397
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1398
+ *
1399
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1400
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1401
+ * @returns {string} A string representing the collection.
1402
+ */
1403
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1404
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
1405
+ }
1406
+ /**
1407
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1408
+ *
1409
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1410
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1411
+ * @returns {string} A string representing the data_store.
1412
+ */
1413
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1414
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1415
+ }
1416
+ /**
1417
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1418
+ *
1419
+ * @param {string} project
1420
+ * @param {string} location
1421
+ * @param {string} collection
1422
+ * @param {string} data_store
1423
+ * @param {string} target_site
1424
+ * @returns {string} Resource name string.
1425
+ */
1426
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
1427
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1428
+ project: project,
1429
+ location: location,
1430
+ collection: collection,
1431
+ data_store: dataStore,
1432
+ target_site: targetSite,
1433
+ });
1434
+ }
1435
+ /**
1436
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1437
+ *
1438
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1439
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1440
+ * @returns {string} A string representing the project.
1441
+ */
1442
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1443
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
1444
+ }
1445
+ /**
1446
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1447
+ *
1448
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1449
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1450
+ * @returns {string} A string representing the location.
1451
+ */
1452
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1453
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
1454
+ }
1455
+ /**
1456
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1457
+ *
1458
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1459
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1460
+ * @returns {string} A string representing the collection.
1461
+ */
1462
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1463
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
1464
+ }
1465
+ /**
1466
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1467
+ *
1468
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1469
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1470
+ * @returns {string} A string representing the data_store.
1471
+ */
1472
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1473
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
1474
+ }
1475
+ /**
1476
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1477
+ *
1478
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1479
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1480
+ * @returns {string} A string representing the target_site.
1481
+ */
1482
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1483
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1484
+ }
1485
+ /**
1486
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1487
+ *
1488
+ * @param {string} project
1489
+ * @param {string} location
1490
+ * @param {string} collection
1491
+ * @param {string} engine
1492
+ * @param {string} conversation
1493
+ * @returns {string} Resource name string.
1494
+ */
1495
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
1496
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
1497
+ project: project,
1498
+ location: location,
1499
+ collection: collection,
1500
+ engine: engine,
1501
+ conversation: conversation,
1502
+ });
1503
+ }
1504
+ /**
1505
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
1506
+ *
1507
+ * @param {string} projectLocationCollectionEngineConversationName
1508
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1509
+ * @returns {string} A string representing the project.
1510
+ */
1511
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1512
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
1513
+ }
1514
+ /**
1515
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
1516
+ *
1517
+ * @param {string} projectLocationCollectionEngineConversationName
1518
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1519
+ * @returns {string} A string representing the location.
1520
+ */
1521
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1522
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
1523
+ }
1524
+ /**
1525
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
1526
+ *
1527
+ * @param {string} projectLocationCollectionEngineConversationName
1528
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1529
+ * @returns {string} A string representing the collection.
1530
+ */
1531
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1532
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
1533
+ }
1534
+ /**
1535
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
1536
+ *
1537
+ * @param {string} projectLocationCollectionEngineConversationName
1538
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1539
+ * @returns {string} A string representing the engine.
1540
+ */
1541
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1542
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
1543
+ }
1544
+ /**
1545
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
1546
+ *
1547
+ * @param {string} projectLocationCollectionEngineConversationName
1548
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1549
+ * @returns {string} A string representing the conversation.
1550
+ */
1551
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1552
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1553
+ }
1554
+ /**
1555
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1556
+ *
1557
+ * @param {string} project
1558
+ * @param {string} location
1559
+ * @param {string} collection
1560
+ * @param {string} engine
1561
+ * @param {string} serving_config
1562
+ * @returns {string} Resource name string.
1563
+ */
1564
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1565
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1566
+ project: project,
1567
+ location: location,
1568
+ collection: collection,
1569
+ engine: engine,
1570
+ serving_config: servingConfig,
1571
+ });
1572
+ }
1573
+ /**
1574
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1575
+ *
1576
+ * @param {string} projectLocationCollectionEngineServingConfigName
1577
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1578
+ * @returns {string} A string representing the project.
1579
+ */
1580
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1581
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1582
+ }
1583
+ /**
1584
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1585
+ *
1586
+ * @param {string} projectLocationCollectionEngineServingConfigName
1587
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1588
+ * @returns {string} A string representing the location.
1589
+ */
1590
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1591
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1592
+ }
1593
+ /**
1594
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1595
+ *
1596
+ * @param {string} projectLocationCollectionEngineServingConfigName
1597
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1598
+ * @returns {string} A string representing the collection.
1599
+ */
1600
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1601
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1602
+ }
1603
+ /**
1604
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1605
+ *
1606
+ * @param {string} projectLocationCollectionEngineServingConfigName
1607
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1608
+ * @returns {string} A string representing the engine.
1609
+ */
1610
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1611
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1612
+ }
1613
+ /**
1614
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1615
+ *
1616
+ * @param {string} projectLocationCollectionEngineServingConfigName
1617
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1618
+ * @returns {string} A string representing the serving_config.
1619
+ */
1620
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1621
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1622
+ }
1623
+ /**
1624
+ * Return a fully-qualified projectLocationDataStore resource name string.
1625
+ *
1626
+ * @param {string} project
1627
+ * @param {string} location
1628
+ * @param {string} data_store
1629
+ * @returns {string} Resource name string.
1630
+ */
1631
+ projectLocationDataStorePath(project, location, dataStore) {
1632
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
1633
+ project: project,
1634
+ location: location,
1635
+ data_store: dataStore,
1636
+ });
1637
+ }
1638
+ /**
1639
+ * Parse the project from ProjectLocationDataStore resource.
1640
+ *
1641
+ * @param {string} projectLocationDataStoreName
1642
+ * A fully-qualified path representing project_location_data_store resource.
1643
+ * @returns {string} A string representing the project.
1644
+ */
1645
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1646
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
1647
+ }
1648
+ /**
1649
+ * Parse the location from ProjectLocationDataStore resource.
1650
+ *
1651
+ * @param {string} projectLocationDataStoreName
1652
+ * A fully-qualified path representing project_location_data_store resource.
1653
+ * @returns {string} A string representing the location.
1654
+ */
1655
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1656
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
1657
+ }
1658
+ /**
1659
+ * Parse the data_store from ProjectLocationDataStore resource.
1660
+ *
1661
+ * @param {string} projectLocationDataStoreName
1662
+ * A fully-qualified path representing project_location_data_store resource.
1663
+ * @returns {string} A string representing the data_store.
1664
+ */
1665
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1666
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
1667
+ }
1132
1668
  /**
1133
1669
  * Return a fully-qualified projectLocationDataStoreBranch resource name string.
1134
1670
  *
@@ -1369,6 +1905,165 @@ class DocumentServiceClient {
1369
1905
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1370
1906
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
1371
1907
  }
1908
+ /**
1909
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
1910
+ *
1911
+ * @param {string} project
1912
+ * @param {string} location
1913
+ * @param {string} data_store
1914
+ * @param {string} serving_config
1915
+ * @returns {string} Resource name string.
1916
+ */
1917
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
1918
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
1919
+ project: project,
1920
+ location: location,
1921
+ data_store: dataStore,
1922
+ serving_config: servingConfig,
1923
+ });
1924
+ }
1925
+ /**
1926
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
1927
+ *
1928
+ * @param {string} projectLocationDataStoreServingConfigName
1929
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1930
+ * @returns {string} A string representing the project.
1931
+ */
1932
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1933
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
1934
+ }
1935
+ /**
1936
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
1937
+ *
1938
+ * @param {string} projectLocationDataStoreServingConfigName
1939
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1940
+ * @returns {string} A string representing the location.
1941
+ */
1942
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1943
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
1944
+ }
1945
+ /**
1946
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
1947
+ *
1948
+ * @param {string} projectLocationDataStoreServingConfigName
1949
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1950
+ * @returns {string} A string representing the data_store.
1951
+ */
1952
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1953
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
1954
+ }
1955
+ /**
1956
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
1957
+ *
1958
+ * @param {string} projectLocationDataStoreServingConfigName
1959
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1960
+ * @returns {string} A string representing the serving_config.
1961
+ */
1962
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1963
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1964
+ }
1965
+ /**
1966
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1967
+ *
1968
+ * @param {string} project
1969
+ * @param {string} location
1970
+ * @param {string} data_store
1971
+ * @returns {string} Resource name string.
1972
+ */
1973
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
1974
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
1975
+ project: project,
1976
+ location: location,
1977
+ data_store: dataStore,
1978
+ });
1979
+ }
1980
+ /**
1981
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
1982
+ *
1983
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1984
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1985
+ * @returns {string} A string representing the project.
1986
+ */
1987
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1988
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
1989
+ }
1990
+ /**
1991
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
1992
+ *
1993
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1994
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1995
+ * @returns {string} A string representing the location.
1996
+ */
1997
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1998
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
1999
+ }
2000
+ /**
2001
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
2002
+ *
2003
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
2004
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
2005
+ * @returns {string} A string representing the data_store.
2006
+ */
2007
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2008
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
2009
+ }
2010
+ /**
2011
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
2012
+ *
2013
+ * @param {string} project
2014
+ * @param {string} location
2015
+ * @param {string} data_store
2016
+ * @param {string} target_site
2017
+ * @returns {string} Resource name string.
2018
+ */
2019
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
2020
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
2021
+ project: project,
2022
+ location: location,
2023
+ data_store: dataStore,
2024
+ target_site: targetSite,
2025
+ });
2026
+ }
2027
+ /**
2028
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2029
+ *
2030
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2031
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2032
+ * @returns {string} A string representing the project.
2033
+ */
2034
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2035
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
2036
+ }
2037
+ /**
2038
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2039
+ *
2040
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2041
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2042
+ * @returns {string} A string representing the location.
2043
+ */
2044
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2045
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
2046
+ }
2047
+ /**
2048
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2049
+ *
2050
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2051
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2052
+ * @returns {string} A string representing the data_store.
2053
+ */
2054
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2055
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
2056
+ }
2057
+ /**
2058
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2059
+ *
2060
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2061
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2062
+ * @returns {string} A string representing the target_site.
2063
+ */
2064
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2065
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
2066
+ }
1372
2067
  /**
1373
2068
  * Terminate the gRPC channel and close the client.
1374
2069
  *