@google-cloud/discoveryengine 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +13 -0
  3. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +49 -0
  4. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +79 -0
  5. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +72 -0
  6. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +137 -0
  7. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +77 -4
  8. package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +52 -0
  9. package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +44 -2
  10. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +6 -1
  11. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +44 -0
  12. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +80 -1
  13. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +83 -0
  14. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +127 -0
  15. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +6 -0
  16. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +13 -8
  17. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +3 -2
  18. package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +130 -0
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +64 -0
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +66 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +3 -1
  22. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +3 -0
  23. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +74 -13
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +24 -20
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +271 -0
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +147 -0
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +9 -3
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +7 -4
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +4 -3
  30. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +5 -0
  31. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +22 -0
  32. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +9 -0
  33. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +94 -0
  34. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +3 -0
  35. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +19 -4
  36. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +151 -0
  37. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +4 -3
  38. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +6 -5
  39. package/build/protos/protos.d.ts +15133 -7787
  40. package/build/protos/protos.js +50444 -32043
  41. package/build/protos/protos.json +4132 -2305
  42. package/build/src/v1alpha/acl_config_service_client.d.ts +1233 -0
  43. package/build/src/v1alpha/acl_config_service_client.js +1765 -0
  44. package/build/src/v1alpha/acl_config_service_client_config.json +34 -0
  45. package/build/src/v1alpha/chunk_service_client.d.ts +1350 -0
  46. package/build/src/v1alpha/chunk_service_client.js +1886 -0
  47. package/build/src/v1alpha/chunk_service_client_config.json +34 -0
  48. package/build/src/v1alpha/completion_service_client.d.ts +588 -3
  49. package/build/src/v1alpha/completion_service_client.js +831 -2
  50. package/build/src/v1alpha/completion_service_client_config.json +10 -0
  51. package/build/src/v1alpha/conversational_search_service_client.d.ts +233 -1
  52. package/build/src/v1alpha/conversational_search_service_client.js +316 -0
  53. package/build/src/v1alpha/data_store_service_client.d.ts +451 -3
  54. package/build/src/v1alpha/data_store_service_client.js +562 -2
  55. package/build/src/v1alpha/data_store_service_client_config.json +8 -0
  56. package/build/src/v1alpha/document_service_client.d.ts +382 -0
  57. package/build/src/v1alpha/document_service_client.js +514 -0
  58. package/build/src/v1alpha/engine_service_client.d.ts +375 -2
  59. package/build/src/v1alpha/engine_service_client.js +514 -0
  60. package/build/src/v1alpha/estimate_billing_service_client.d.ts +1367 -0
  61. package/build/src/v1alpha/estimate_billing_service_client.js +2028 -0
  62. package/build/src/v1alpha/estimate_billing_service_client_config.json +30 -0
  63. package/build/src/v1alpha/index.d.ts +4 -0
  64. package/build/src/v1alpha/index.js +9 -1
  65. package/build/src/v1alpha/recommendation_service_client.d.ts +231 -1
  66. package/build/src/v1alpha/recommendation_service_client.js +316 -0
  67. package/build/src/v1alpha/schema_service_client.d.ts +372 -0
  68. package/build/src/v1alpha/schema_service_client.js +514 -0
  69. package/build/src/v1alpha/search_service_client.d.ts +258 -15
  70. package/build/src/v1alpha/search_service_client.js +336 -10
  71. package/build/src/v1alpha/search_tuning_service_client.d.ts +373 -1
  72. package/build/src/v1alpha/search_tuning_service_client.js +514 -0
  73. package/build/src/v1alpha/serving_config_service_client.d.ts +1369 -0
  74. package/build/src/v1alpha/serving_config_service_client.js +1935 -0
  75. package/build/src/v1alpha/serving_config_service_client_config.json +38 -0
  76. package/build/src/v1alpha/site_search_engine_service_client.d.ts +372 -0
  77. package/build/src/v1alpha/site_search_engine_service_client.js +514 -0
  78. package/build/src/v1alpha/user_event_service_client.d.ts +372 -0
  79. package/build/src/v1alpha/user_event_service_client.js +514 -0
  80. package/build/src/v1beta/completion_service_client.d.ts +75 -0
  81. package/build/src/v1beta/completion_service_client.js +104 -0
  82. package/build/src/v1beta/conversational_search_service_client.d.ts +79 -0
  83. package/build/src/v1beta/conversational_search_service_client.js +104 -0
  84. package/build/src/v1beta/data_store_service_client.d.ts +75 -0
  85. package/build/src/v1beta/data_store_service_client.js +104 -0
  86. package/build/src/v1beta/document_service_client.d.ts +75 -0
  87. package/build/src/v1beta/document_service_client.js +104 -0
  88. package/build/src/v1beta/engine_service_client.d.ts +75 -0
  89. package/build/src/v1beta/engine_service_client.js +104 -0
  90. package/build/src/v1beta/index.d.ts +1 -0
  91. package/build/src/v1beta/index.js +3 -1
  92. package/build/src/v1beta/recommendation_service_client.d.ts +75 -0
  93. package/build/src/v1beta/recommendation_service_client.js +104 -0
  94. package/build/src/v1beta/schema_service_client.d.ts +75 -0
  95. package/build/src/v1beta/schema_service_client.js +104 -0
  96. package/build/src/v1beta/search_service_client.d.ts +81 -0
  97. package/build/src/v1beta/search_service_client.js +108 -0
  98. package/build/src/v1beta/search_tuning_service_client.d.ts +1196 -0
  99. package/build/src/v1beta/search_tuning_service_client.js +1781 -0
  100. package/build/src/v1beta/search_tuning_service_client_config.json +30 -0
  101. package/build/src/v1beta/serving_config_service_client.d.ts +123 -8
  102. package/build/src/v1beta/serving_config_service_client.js +166 -5
  103. package/build/src/v1beta/site_search_engine_service_client.d.ts +75 -0
  104. package/build/src/v1beta/site_search_engine_service_client.js +104 -0
  105. package/build/src/v1beta/user_event_service_client.d.ts +75 -0
  106. package/build/src/v1beta/user_event_service_client.js +104 -0
  107. package/package.json +3 -3
@@ -0,0 +1,1781 @@
1
+ "use strict";
2
+ // Copyright 2024 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // https://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
+ // ** This file is automatically generated by gapic-generator-typescript. **
17
+ // ** https://github.com/googleapis/gapic-generator-typescript **
18
+ // ** All changes to this file may be overwritten. **
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.SearchTuningServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ /**
23
+ * Client JSON configuration object, loaded from
24
+ * `src/v1beta/search_tuning_service_client_config.json`.
25
+ * This file defines retry strategy and timeouts for all API methods in this library.
26
+ */
27
+ const gapicConfig = require("./search_tuning_service_client_config.json");
28
+ const version = require('../../../package.json').version;
29
+ /**
30
+ * Service for search tuning.
31
+ * @class
32
+ * @memberof v1beta
33
+ */
34
+ class SearchTuningServiceClient {
35
+ /**
36
+ * Construct an instance of SearchTuningServiceClient.
37
+ *
38
+ * @param {object} [options] - The configuration object.
39
+ * The options accepted by the constructor are described in detail
40
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
41
+ * The common options are:
42
+ * @param {object} [options.credentials] - Credentials object.
43
+ * @param {string} [options.credentials.client_email]
44
+ * @param {string} [options.credentials.private_key]
45
+ * @param {string} [options.email] - Account email address. Required when
46
+ * using a .pem or .p12 keyFilename.
47
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
48
+ * .p12 key downloaded from the Google Developers Console. If you provide
49
+ * a path to a JSON file, the projectId option below is not necessary.
50
+ * NOTE: .pem and .p12 require you to specify options.email as well.
51
+ * @param {number} [options.port] - The port on which to connect to
52
+ * the remote host.
53
+ * @param {string} [options.projectId] - The project ID from the Google
54
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
55
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
56
+ * app is running in an environment which supports
57
+ * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
58
+ * your project ID will be detected automatically.
59
+ * @param {string} [options.apiEndpoint] - The domain name of the
60
+ * API remote host.
61
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
62
+ * Follows the structure of {@link gapicConfig}.
63
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
64
+ * For more information, please check the
65
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
66
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
67
+ * need to avoid loading the default gRPC version and want to use the fallback
68
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
69
+ * ```
70
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
71
+ * const client = new SearchTuningServiceClient({fallback: true}, gax);
72
+ * ```
73
+ */
74
+ constructor(opts, gaxInstance) {
75
+ var _a, _b, _c, _d;
76
+ this._terminated = false;
77
+ this.descriptors = {
78
+ page: {},
79
+ stream: {},
80
+ longrunning: {},
81
+ batching: {},
82
+ };
83
+ // Ensure that options include all the required fields.
84
+ const staticMembers = this.constructor;
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;
94
+ this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
95
+ const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
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');
98
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
99
+ // Request numeric enum values if REST transport is used.
100
+ opts.numericEnums = true;
101
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
102
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
103
+ opts['scopes'] = staticMembers.scopes;
104
+ }
105
+ // Load google-gax module synchronously if needed
106
+ if (!gaxInstance) {
107
+ gaxInstance = require('google-gax');
108
+ }
109
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
110
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
111
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
112
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
113
+ // Save options to use in initialize() method.
114
+ this._opts = opts;
115
+ // Save the auth object to the client, for use by other methods.
116
+ this.auth = this._gaxGrpc.auth;
117
+ // Set useJWTAccessWithScope on the auth object.
118
+ this.auth.useJWTAccessWithScope = true;
119
+ // Set defaultServicePath on the auth object.
120
+ this.auth.defaultServicePath = this._servicePath;
121
+ // Set the default scopes in auth client if needed.
122
+ if (servicePath === this._servicePath) {
123
+ this.auth.defaultScopes = staticMembers.scopes;
124
+ }
125
+ this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
126
+ // Determine the client header string.
127
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
128
+ if (typeof process !== 'undefined' && 'versions' in process) {
129
+ clientHeader.push(`gl-node/${process.versions.node}`);
130
+ }
131
+ else {
132
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
133
+ }
134
+ if (!opts.fallback) {
135
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
136
+ }
137
+ else {
138
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
139
+ }
140
+ if (opts.libName && opts.libVersion) {
141
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
142
+ }
143
+ // Load the applicable protos.
144
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
145
+ // This API contains "path templates"; forward-slash-separated
146
+ // identifiers to uniquely identify resources within the API.
147
+ // Create useful helper objects for these.
148
+ this.pathTemplates = {
149
+ enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
150
+ projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
151
+ projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
152
+ projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
153
+ projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
154
+ projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
155
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
156
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
157
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
158
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
159
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
160
+ projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
161
+ projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
162
+ projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
163
+ projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
164
+ projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
165
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
166
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
167
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
168
+ };
169
+ const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
170
+ // This API contains "long-running operations", which return a
171
+ // an Operation object that allows for tracking of the operation,
172
+ // rather than holding a request open.
173
+ const lroOptions = {
174
+ auth: this.auth,
175
+ grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
176
+ };
177
+ if (opts.fallback) {
178
+ lroOptions.protoJson = protoFilesRoot;
179
+ lroOptions.httpRules = [
180
+ {
181
+ selector: 'google.longrunning.Operations.GetOperation',
182
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
183
+ additional_bindings: [
184
+ {
185
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
186
+ },
187
+ {
188
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
189
+ },
190
+ {
191
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
192
+ },
193
+ {
194
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
195
+ },
196
+ {
197
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
198
+ },
199
+ {
200
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
201
+ },
202
+ {
203
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
204
+ },
205
+ {
206
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/operations/*}',
207
+ },
208
+ {
209
+ get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
210
+ },
211
+ {
212
+ get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
213
+ },
214
+ {
215
+ get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}',
216
+ },
217
+ { get: '/v1beta/{name=projects/*/locations/*/operations/*}' },
218
+ { get: '/v1beta/{name=projects/*/operations/*}' },
219
+ ],
220
+ },
221
+ {
222
+ selector: 'google.longrunning.Operations.ListOperations',
223
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
224
+ additional_bindings: [
225
+ {
226
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
227
+ },
228
+ {
229
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
230
+ },
231
+ {
232
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
233
+ },
234
+ {
235
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
236
+ },
237
+ {
238
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
239
+ },
240
+ {
241
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
242
+ },
243
+ {
244
+ get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations',
245
+ },
246
+ {
247
+ get: '/v1beta/{name=projects/*/locations/*/collections/*}/operations',
248
+ },
249
+ {
250
+ get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
251
+ },
252
+ {
253
+ get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
254
+ },
255
+ {
256
+ get: '/v1beta/{name=projects/*/locations/*/dataStores/*}/operations',
257
+ },
258
+ { get: '/v1beta/{name=projects/*/locations/*}/operations' },
259
+ { get: '/v1beta/{name=projects/*}/operations' },
260
+ ],
261
+ },
262
+ ];
263
+ }
264
+ this.operationsClient = this._gaxModule
265
+ .lro(lroOptions)
266
+ .operationsClient(opts);
267
+ const trainCustomModelResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse');
268
+ const trainCustomModelMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata');
269
+ this.descriptors.longrunning = {
270
+ trainCustomModel: new this._gaxModule.LongrunningDescriptor(this.operationsClient, trainCustomModelResponse.decode.bind(trainCustomModelResponse), trainCustomModelMetadata.decode.bind(trainCustomModelMetadata)),
271
+ };
272
+ // Put together the default options sent with requests.
273
+ this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1beta.SearchTuningService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
274
+ // Set up a dictionary of "inner API calls"; the core implementation
275
+ // of calling the API is handled in `google-gax`, with this code
276
+ // merely providing the destination and request information.
277
+ this.innerApiCalls = {};
278
+ // Add a warn function to the client constructor so it can be easily tested.
279
+ this.warn = this._gaxModule.warn;
280
+ }
281
+ /**
282
+ * Initialize the client.
283
+ * Performs asynchronous operations (such as authentication) and prepares the client.
284
+ * This function will be called automatically when any class method is called for the
285
+ * first time, but if you need to initialize it before calling an actual method,
286
+ * feel free to call initialize() directly.
287
+ *
288
+ * You can await on this method if you want to make sure the client is initialized.
289
+ *
290
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
291
+ */
292
+ initialize() {
293
+ // If the client stub promise is already initialized, return immediately.
294
+ if (this.searchTuningServiceStub) {
295
+ return this.searchTuningServiceStub;
296
+ }
297
+ // Put together the "service stub" for
298
+ // google.cloud.discoveryengine.v1beta.SearchTuningService.
299
+ this.searchTuningServiceStub = this._gaxGrpc.createStub(this._opts.fallback
300
+ ? this._protos.lookupService('google.cloud.discoveryengine.v1beta.SearchTuningService')
301
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
302
+ this._protos.google.cloud.discoveryengine.v1beta
303
+ .SearchTuningService, this._opts, this._providedCustomServicePath);
304
+ // Iterate over each of the methods that the service provides
305
+ // and create an API call method for each.
306
+ const searchTuningServiceStubMethods = ['trainCustomModel'];
307
+ for (const methodName of searchTuningServiceStubMethods) {
308
+ const callPromise = this.searchTuningServiceStub.then(stub => (...args) => {
309
+ if (this._terminated) {
310
+ return Promise.reject('The client has already been closed.');
311
+ }
312
+ const func = stub[methodName];
313
+ return func.apply(stub, args);
314
+ }, (err) => () => {
315
+ throw err;
316
+ });
317
+ const descriptor = this.descriptors.longrunning[methodName] || undefined;
318
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
319
+ this.innerApiCalls[methodName] = apiCall;
320
+ }
321
+ return this.searchTuningServiceStub;
322
+ }
323
+ /**
324
+ * The DNS address for this API service.
325
+ * @deprecated Use the apiEndpoint method of the client instance.
326
+ * @returns {string} The DNS address for this service.
327
+ */
328
+ static get servicePath() {
329
+ if (typeof process !== undefined &&
330
+ typeof process.emitWarning === 'function') {
331
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
332
+ }
333
+ return 'discoveryengine.googleapis.com';
334
+ }
335
+ /**
336
+ * The DNS address for this API service - same as servicePath.
337
+ * @deprecated Use the apiEndpoint method of the client instance.
338
+ * @returns {string} The DNS address for this service.
339
+ */
340
+ static get apiEndpoint() {
341
+ if (typeof process !== undefined &&
342
+ typeof process.emitWarning === 'function') {
343
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
344
+ }
345
+ return 'discoveryengine.googleapis.com';
346
+ }
347
+ /**
348
+ * The DNS address for this API service.
349
+ * @returns {string} The DNS address for this service.
350
+ */
351
+ get apiEndpoint() {
352
+ return this._servicePath;
353
+ }
354
+ get universeDomain() {
355
+ return this._universeDomain;
356
+ }
357
+ /**
358
+ * The port for this API service.
359
+ * @returns {number} The default port for this service.
360
+ */
361
+ static get port() {
362
+ return 443;
363
+ }
364
+ /**
365
+ * The scopes needed to make gRPC calls for every method defined
366
+ * in this service.
367
+ * @returns {string[]} List of default scopes.
368
+ */
369
+ static get scopes() {
370
+ return ['https://www.googleapis.com/auth/cloud-platform'];
371
+ }
372
+ /**
373
+ * Return the project ID used by this class.
374
+ * @returns {Promise} A promise that resolves to string containing the project ID.
375
+ */
376
+ getProjectId(callback) {
377
+ if (callback) {
378
+ this.auth.getProjectId(callback);
379
+ return;
380
+ }
381
+ return this.auth.getProjectId();
382
+ }
383
+ trainCustomModel(request, optionsOrCallback, callback) {
384
+ var _a;
385
+ request = request || {};
386
+ let options;
387
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
388
+ callback = optionsOrCallback;
389
+ options = {};
390
+ }
391
+ else {
392
+ options = optionsOrCallback;
393
+ }
394
+ options = options || {};
395
+ options.otherArgs = options.otherArgs || {};
396
+ options.otherArgs.headers = options.otherArgs.headers || {};
397
+ options.otherArgs.headers['x-goog-request-params'] =
398
+ this._gaxModule.routingHeader.fromParams({
399
+ data_store: (_a = request.dataStore) !== null && _a !== void 0 ? _a : '',
400
+ });
401
+ this.initialize();
402
+ return this.innerApiCalls.trainCustomModel(request, options, callback);
403
+ }
404
+ /**
405
+ * Check the status of the long running operation returned by `trainCustomModel()`.
406
+ * @param {String} name
407
+ * The operation name that will be passed.
408
+ * @returns {Promise} - The promise which resolves to an object.
409
+ * The decoded operation object has result and metadata field to get information from.
410
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
411
+ * for more details and examples.
412
+ * @example <caption>include:samples/generated/v1beta/search_tuning_service.train_custom_model.js</caption>
413
+ * region_tag:discoveryengine_v1beta_generated_SearchTuningService_TrainCustomModel_async
414
+ */
415
+ async checkTrainCustomModelProgress(name) {
416
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
417
+ const [operation] = await this.operationsClient.getOperation(request);
418
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.trainCustomModel, this._gaxModule.createDefaultBackoffSettings());
419
+ return decodeOperation;
420
+ }
421
+ /**
422
+ * Gets information about a location.
423
+ *
424
+ * @param {Object} request
425
+ * The request object that will be sent.
426
+ * @param {string} request.name
427
+ * Resource name for the location.
428
+ * @param {object} [options]
429
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
430
+ * @returns {Promise} - The promise which resolves to an array.
431
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
432
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
433
+ * for more details and examples.
434
+ * @example
435
+ * ```
436
+ * const [response] = await client.getLocation(request);
437
+ * ```
438
+ */
439
+ getLocation(request, options, callback) {
440
+ return this.locationsClient.getLocation(request, options, callback);
441
+ }
442
+ /**
443
+ * Lists information about the supported locations for this service. Returns an iterable object.
444
+ *
445
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
446
+ * @param {Object} request
447
+ * The request object that will be sent.
448
+ * @param {string} request.name
449
+ * The resource that owns the locations collection, if applicable.
450
+ * @param {string} request.filter
451
+ * The standard list filter.
452
+ * @param {number} request.pageSize
453
+ * The standard list page size.
454
+ * @param {string} request.pageToken
455
+ * The standard list page token.
456
+ * @param {object} [options]
457
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
458
+ * @returns {Object}
459
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
460
+ * When you iterate the returned iterable, each element will be an object representing
461
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
462
+ * so you can stop the iteration when you don't need more results.
463
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
464
+ * for more details and examples.
465
+ * @example
466
+ * ```
467
+ * const iterable = client.listLocationsAsync(request);
468
+ * for await (const response of iterable) {
469
+ * // process response
470
+ * }
471
+ * ```
472
+ */
473
+ listLocationsAsync(request, options) {
474
+ return this.locationsClient.listLocationsAsync(request, options);
475
+ }
476
+ /**
477
+ * Gets the latest state of a long-running operation. Clients can use this
478
+ * method to poll the operation result at intervals as recommended by the API
479
+ * service.
480
+ *
481
+ * @param {Object} request - The request object that will be sent.
482
+ * @param {string} request.name - The name of the operation resource.
483
+ * @param {Object=} options
484
+ * Optional parameters. You can override the default settings for this call,
485
+ * e.g, timeout, retries, paginations, etc. See {@link
486
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
487
+ * for the details.
488
+ * @param {function(?Error, ?Object)=} callback
489
+ * The function which will be called with the result of the API call.
490
+ *
491
+ * The second parameter to the callback is an object representing
492
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
493
+ * @return {Promise} - The promise which resolves to an array.
494
+ * The first element of the array is an object representing
495
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
496
+ * The promise has a method named "cancel" which cancels the ongoing API call.
497
+ *
498
+ * @example
499
+ * ```
500
+ * const client = longrunning.operationsClient();
501
+ * const name = '';
502
+ * const [response] = await client.getOperation({name});
503
+ * // doThingsWith(response)
504
+ * ```
505
+ */
506
+ getOperation(request, options, callback) {
507
+ return this.operationsClient.getOperation(request, options, callback);
508
+ }
509
+ /**
510
+ * Lists operations that match the specified filter in the request. If the
511
+ * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
512
+ *
513
+ * For-await-of syntax is used with the iterable to recursively get response element on-demand.
514
+ *
515
+ * @param {Object} request - The request object that will be sent.
516
+ * @param {string} request.name - The name of the operation collection.
517
+ * @param {string} request.filter - The standard list filter.
518
+ * @param {number=} request.pageSize -
519
+ * The maximum number of resources contained in the underlying API
520
+ * response. If page streaming is performed per-resource, this
521
+ * parameter does not affect the return value. If page streaming is
522
+ * performed per-page, this determines the maximum number of
523
+ * resources in a page.
524
+ * @param {Object=} options
525
+ * Optional parameters. You can override the default settings for this call,
526
+ * e.g, timeout, retries, paginations, etc. See {@link
527
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
528
+ * details.
529
+ * @returns {Object}
530
+ * An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
531
+ *
532
+ * @example
533
+ * ```
534
+ * const client = longrunning.operationsClient();
535
+ * for await (const response of client.listOperationsAsync(request));
536
+ * // doThingsWith(response)
537
+ * ```
538
+ */
539
+ listOperationsAsync(request, options) {
540
+ return this.operationsClient.listOperationsAsync(request, options);
541
+ }
542
+ /**
543
+ * Starts asynchronous cancellation on a long-running operation. The server
544
+ * makes a best effort to cancel the operation, but success is not
545
+ * guaranteed. If the server doesn't support this method, it returns
546
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
547
+ * {@link Operations.GetOperation} or
548
+ * other methods to check whether the cancellation succeeded or whether the
549
+ * operation completed despite cancellation. On successful cancellation,
550
+ * the operation is not deleted; instead, it becomes an operation with
551
+ * an {@link Operation.error} value with a {@link google.rpc.Status.code} of
552
+ * 1, corresponding to `Code.CANCELLED`.
553
+ *
554
+ * @param {Object} request - The request object that will be sent.
555
+ * @param {string} request.name - The name of the operation resource to be cancelled.
556
+ * @param {Object=} options
557
+ * Optional parameters. You can override the default settings for this call,
558
+ * e.g, timeout, retries, paginations, etc. See {@link
559
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
560
+ * details.
561
+ * @param {function(?Error)=} callback
562
+ * The function which will be called with the result of the API call.
563
+ * @return {Promise} - The promise which resolves when API call finishes.
564
+ * The promise has a method named "cancel" which cancels the ongoing API
565
+ * call.
566
+ *
567
+ * @example
568
+ * ```
569
+ * const client = longrunning.operationsClient();
570
+ * await client.cancelOperation({name: ''});
571
+ * ```
572
+ */
573
+ cancelOperation(request, options, callback) {
574
+ return this.operationsClient.cancelOperation(request, options, callback);
575
+ }
576
+ /**
577
+ * Deletes a long-running operation. This method indicates that the client is
578
+ * no longer interested in the operation result. It does not cancel the
579
+ * operation. If the server doesn't support this method, it returns
580
+ * `google.rpc.Code.UNIMPLEMENTED`.
581
+ *
582
+ * @param {Object} request - The request object that will be sent.
583
+ * @param {string} request.name - The name of the operation resource to be deleted.
584
+ * @param {Object=} options
585
+ * Optional parameters. You can override the default settings for this call,
586
+ * e.g, timeout, retries, paginations, etc. See {@link
587
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
588
+ * for the details.
589
+ * @param {function(?Error)=} callback
590
+ * The function which will be called with the result of the API call.
591
+ * @return {Promise} - The promise which resolves when API call finishes.
592
+ * The promise has a method named "cancel" which cancels the ongoing API
593
+ * call.
594
+ *
595
+ * @example
596
+ * ```
597
+ * const client = longrunning.operationsClient();
598
+ * await client.deleteOperation({name: ''});
599
+ * ```
600
+ */
601
+ deleteOperation(request, options, callback) {
602
+ return this.operationsClient.deleteOperation(request, options, callback);
603
+ }
604
+ // --------------------
605
+ // -- Path templates --
606
+ // --------------------
607
+ /**
608
+ * Return a fully-qualified engine resource name string.
609
+ *
610
+ * @param {string} project
611
+ * @param {string} location
612
+ * @param {string} collection
613
+ * @param {string} engine
614
+ * @returns {string} Resource name string.
615
+ */
616
+ enginePath(project, location, collection, engine) {
617
+ return this.pathTemplates.enginePathTemplate.render({
618
+ project: project,
619
+ location: location,
620
+ collection: collection,
621
+ engine: engine,
622
+ });
623
+ }
624
+ /**
625
+ * Parse the project from Engine resource.
626
+ *
627
+ * @param {string} engineName
628
+ * A fully-qualified path representing Engine resource.
629
+ * @returns {string} A string representing the project.
630
+ */
631
+ matchProjectFromEngineName(engineName) {
632
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
633
+ }
634
+ /**
635
+ * Parse the location from Engine resource.
636
+ *
637
+ * @param {string} engineName
638
+ * A fully-qualified path representing Engine resource.
639
+ * @returns {string} A string representing the location.
640
+ */
641
+ matchLocationFromEngineName(engineName) {
642
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
643
+ }
644
+ /**
645
+ * Parse the collection from Engine resource.
646
+ *
647
+ * @param {string} engineName
648
+ * A fully-qualified path representing Engine resource.
649
+ * @returns {string} A string representing the collection.
650
+ */
651
+ matchCollectionFromEngineName(engineName) {
652
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
653
+ }
654
+ /**
655
+ * Parse the engine from Engine resource.
656
+ *
657
+ * @param {string} engineName
658
+ * A fully-qualified path representing Engine resource.
659
+ * @returns {string} A string representing the engine.
660
+ */
661
+ matchEngineFromEngineName(engineName) {
662
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
663
+ }
664
+ /**
665
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
666
+ *
667
+ * @param {string} project
668
+ * @param {string} location
669
+ * @param {string} collection
670
+ * @param {string} data_store
671
+ * @returns {string} Resource name string.
672
+ */
673
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
674
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
675
+ project: project,
676
+ location: location,
677
+ collection: collection,
678
+ data_store: dataStore,
679
+ });
680
+ }
681
+ /**
682
+ * Parse the project from ProjectLocationCollectionDataStore resource.
683
+ *
684
+ * @param {string} projectLocationCollectionDataStoreName
685
+ * A fully-qualified path representing project_location_collection_data_store resource.
686
+ * @returns {string} A string representing the project.
687
+ */
688
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
689
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
690
+ }
691
+ /**
692
+ * Parse the location from ProjectLocationCollectionDataStore resource.
693
+ *
694
+ * @param {string} projectLocationCollectionDataStoreName
695
+ * A fully-qualified path representing project_location_collection_data_store resource.
696
+ * @returns {string} A string representing the location.
697
+ */
698
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
699
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
700
+ }
701
+ /**
702
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
703
+ *
704
+ * @param {string} projectLocationCollectionDataStoreName
705
+ * A fully-qualified path representing project_location_collection_data_store resource.
706
+ * @returns {string} A string representing the collection.
707
+ */
708
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
709
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
710
+ }
711
+ /**
712
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
713
+ *
714
+ * @param {string} projectLocationCollectionDataStoreName
715
+ * A fully-qualified path representing project_location_collection_data_store resource.
716
+ * @returns {string} A string representing the data_store.
717
+ */
718
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
719
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
720
+ }
721
+ /**
722
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
723
+ *
724
+ * @param {string} project
725
+ * @param {string} location
726
+ * @param {string} collection
727
+ * @param {string} data_store
728
+ * @param {string} branch
729
+ * @param {string} document
730
+ * @returns {string} Resource name string.
731
+ */
732
+ projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
733
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
734
+ project: project,
735
+ location: location,
736
+ collection: collection,
737
+ data_store: dataStore,
738
+ branch: branch,
739
+ document: document,
740
+ });
741
+ }
742
+ /**
743
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
744
+ *
745
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
746
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
747
+ * @returns {string} A string representing the project.
748
+ */
749
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
750
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
751
+ }
752
+ /**
753
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
754
+ *
755
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
756
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
757
+ * @returns {string} A string representing the location.
758
+ */
759
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
760
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
761
+ }
762
+ /**
763
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
764
+ *
765
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
766
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
767
+ * @returns {string} A string representing the collection.
768
+ */
769
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
770
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
771
+ }
772
+ /**
773
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
774
+ *
775
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
776
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
777
+ * @returns {string} A string representing the data_store.
778
+ */
779
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
780
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
781
+ }
782
+ /**
783
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
784
+ *
785
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
786
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
787
+ * @returns {string} A string representing the branch.
788
+ */
789
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
790
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
791
+ }
792
+ /**
793
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
794
+ *
795
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
796
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
797
+ * @returns {string} A string representing the document.
798
+ */
799
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
800
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
801
+ }
802
+ /**
803
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
804
+ *
805
+ * @param {string} project
806
+ * @param {string} location
807
+ * @param {string} collection
808
+ * @param {string} data_store
809
+ * @param {string} conversation
810
+ * @returns {string} Resource name string.
811
+ */
812
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
813
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
814
+ project: project,
815
+ location: location,
816
+ collection: collection,
817
+ data_store: dataStore,
818
+ conversation: conversation,
819
+ });
820
+ }
821
+ /**
822
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
823
+ *
824
+ * @param {string} projectLocationCollectionDataStoreConversationName
825
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
826
+ * @returns {string} A string representing the project.
827
+ */
828
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
829
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
830
+ }
831
+ /**
832
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
833
+ *
834
+ * @param {string} projectLocationCollectionDataStoreConversationName
835
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
836
+ * @returns {string} A string representing the location.
837
+ */
838
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
839
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
840
+ }
841
+ /**
842
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
843
+ *
844
+ * @param {string} projectLocationCollectionDataStoreConversationName
845
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
846
+ * @returns {string} A string representing the collection.
847
+ */
848
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
849
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
850
+ }
851
+ /**
852
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
853
+ *
854
+ * @param {string} projectLocationCollectionDataStoreConversationName
855
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
856
+ * @returns {string} A string representing the data_store.
857
+ */
858
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
859
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
860
+ }
861
+ /**
862
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
863
+ *
864
+ * @param {string} projectLocationCollectionDataStoreConversationName
865
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
866
+ * @returns {string} A string representing the conversation.
867
+ */
868
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
869
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
870
+ }
871
+ /**
872
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
873
+ *
874
+ * @param {string} project
875
+ * @param {string} location
876
+ * @param {string} collection
877
+ * @param {string} data_store
878
+ * @returns {string} Resource name string.
879
+ */
880
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
881
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
882
+ project: project,
883
+ location: location,
884
+ collection: collection,
885
+ data_store: dataStore,
886
+ });
887
+ }
888
+ /**
889
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
890
+ *
891
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
892
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
893
+ * @returns {string} A string representing the project.
894
+ */
895
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
896
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
897
+ }
898
+ /**
899
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
900
+ *
901
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
902
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
903
+ * @returns {string} A string representing the location.
904
+ */
905
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
906
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
907
+ }
908
+ /**
909
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
910
+ *
911
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
912
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
913
+ * @returns {string} A string representing the collection.
914
+ */
915
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
916
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
917
+ }
918
+ /**
919
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
920
+ *
921
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
922
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
923
+ * @returns {string} A string representing the data_store.
924
+ */
925
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
926
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
927
+ }
928
+ /**
929
+ * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
930
+ *
931
+ * @param {string} project
932
+ * @param {string} location
933
+ * @param {string} collection
934
+ * @param {string} data_store
935
+ * @param {string} schema
936
+ * @returns {string} Resource name string.
937
+ */
938
+ projectLocationCollectionDataStoreSchemaPath(project, location, collection, dataStore, schema) {
939
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.render({
940
+ project: project,
941
+ location: location,
942
+ collection: collection,
943
+ data_store: dataStore,
944
+ schema: schema,
945
+ });
946
+ }
947
+ /**
948
+ * Parse the project from ProjectLocationCollectionDataStoreSchema resource.
949
+ *
950
+ * @param {string} projectLocationCollectionDataStoreSchemaName
951
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
952
+ * @returns {string} A string representing the project.
953
+ */
954
+ matchProjectFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
955
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).project;
956
+ }
957
+ /**
958
+ * Parse the location from ProjectLocationCollectionDataStoreSchema resource.
959
+ *
960
+ * @param {string} projectLocationCollectionDataStoreSchemaName
961
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
962
+ * @returns {string} A string representing the location.
963
+ */
964
+ matchLocationFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
965
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).location;
966
+ }
967
+ /**
968
+ * Parse the collection from ProjectLocationCollectionDataStoreSchema resource.
969
+ *
970
+ * @param {string} projectLocationCollectionDataStoreSchemaName
971
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
972
+ * @returns {string} A string representing the collection.
973
+ */
974
+ matchCollectionFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
975
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).collection;
976
+ }
977
+ /**
978
+ * Parse the data_store from ProjectLocationCollectionDataStoreSchema resource.
979
+ *
980
+ * @param {string} projectLocationCollectionDataStoreSchemaName
981
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
982
+ * @returns {string} A string representing the data_store.
983
+ */
984
+ matchDataStoreFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
985
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).data_store;
986
+ }
987
+ /**
988
+ * Parse the schema from ProjectLocationCollectionDataStoreSchema resource.
989
+ *
990
+ * @param {string} projectLocationCollectionDataStoreSchemaName
991
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
992
+ * @returns {string} A string representing the schema.
993
+ */
994
+ matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
995
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
996
+ }
997
+ /**
998
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
999
+ *
1000
+ * @param {string} project
1001
+ * @param {string} location
1002
+ * @param {string} collection
1003
+ * @param {string} data_store
1004
+ * @param {string} serving_config
1005
+ * @returns {string} Resource name string.
1006
+ */
1007
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1008
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1009
+ project: project,
1010
+ location: location,
1011
+ collection: collection,
1012
+ data_store: dataStore,
1013
+ serving_config: servingConfig,
1014
+ });
1015
+ }
1016
+ /**
1017
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1018
+ *
1019
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1020
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1021
+ * @returns {string} A string representing the project.
1022
+ */
1023
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1024
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1025
+ }
1026
+ /**
1027
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1028
+ *
1029
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1030
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1031
+ * @returns {string} A string representing the location.
1032
+ */
1033
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1034
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1035
+ }
1036
+ /**
1037
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1038
+ *
1039
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1040
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1041
+ * @returns {string} A string representing the collection.
1042
+ */
1043
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1044
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1045
+ }
1046
+ /**
1047
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1048
+ *
1049
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1050
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1051
+ * @returns {string} A string representing the data_store.
1052
+ */
1053
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1054
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1055
+ }
1056
+ /**
1057
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1058
+ *
1059
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1060
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1061
+ * @returns {string} A string representing the serving_config.
1062
+ */
1063
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1064
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1065
+ }
1066
+ /**
1067
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1068
+ *
1069
+ * @param {string} project
1070
+ * @param {string} location
1071
+ * @param {string} collection
1072
+ * @param {string} data_store
1073
+ * @returns {string} Resource name string.
1074
+ */
1075
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
1076
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
1077
+ project: project,
1078
+ location: location,
1079
+ collection: collection,
1080
+ data_store: dataStore,
1081
+ });
1082
+ }
1083
+ /**
1084
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1085
+ *
1086
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1087
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1088
+ * @returns {string} A string representing the project.
1089
+ */
1090
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1091
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
1092
+ }
1093
+ /**
1094
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1095
+ *
1096
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1097
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1098
+ * @returns {string} A string representing the location.
1099
+ */
1100
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1101
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
1102
+ }
1103
+ /**
1104
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1105
+ *
1106
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1107
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1108
+ * @returns {string} A string representing the collection.
1109
+ */
1110
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1111
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
1112
+ }
1113
+ /**
1114
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1115
+ *
1116
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1117
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1118
+ * @returns {string} A string representing the data_store.
1119
+ */
1120
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1121
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1122
+ }
1123
+ /**
1124
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1125
+ *
1126
+ * @param {string} project
1127
+ * @param {string} location
1128
+ * @param {string} collection
1129
+ * @param {string} data_store
1130
+ * @param {string} target_site
1131
+ * @returns {string} Resource name string.
1132
+ */
1133
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
1134
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1135
+ project: project,
1136
+ location: location,
1137
+ collection: collection,
1138
+ data_store: dataStore,
1139
+ target_site: targetSite,
1140
+ });
1141
+ }
1142
+ /**
1143
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1144
+ *
1145
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1146
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1147
+ * @returns {string} A string representing the project.
1148
+ */
1149
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1150
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
1151
+ }
1152
+ /**
1153
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1154
+ *
1155
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1156
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1157
+ * @returns {string} A string representing the location.
1158
+ */
1159
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1160
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
1161
+ }
1162
+ /**
1163
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1164
+ *
1165
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1166
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1167
+ * @returns {string} A string representing the collection.
1168
+ */
1169
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1170
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
1171
+ }
1172
+ /**
1173
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1174
+ *
1175
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1176
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1177
+ * @returns {string} A string representing the data_store.
1178
+ */
1179
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1180
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
1181
+ }
1182
+ /**
1183
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1184
+ *
1185
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1186
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1187
+ * @returns {string} A string representing the target_site.
1188
+ */
1189
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1190
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1191
+ }
1192
+ /**
1193
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1194
+ *
1195
+ * @param {string} project
1196
+ * @param {string} location
1197
+ * @param {string} collection
1198
+ * @param {string} engine
1199
+ * @param {string} conversation
1200
+ * @returns {string} Resource name string.
1201
+ */
1202
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
1203
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
1204
+ project: project,
1205
+ location: location,
1206
+ collection: collection,
1207
+ engine: engine,
1208
+ conversation: conversation,
1209
+ });
1210
+ }
1211
+ /**
1212
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
1213
+ *
1214
+ * @param {string} projectLocationCollectionEngineConversationName
1215
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1216
+ * @returns {string} A string representing the project.
1217
+ */
1218
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1219
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
1220
+ }
1221
+ /**
1222
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
1223
+ *
1224
+ * @param {string} projectLocationCollectionEngineConversationName
1225
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1226
+ * @returns {string} A string representing the location.
1227
+ */
1228
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1229
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
1230
+ }
1231
+ /**
1232
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
1233
+ *
1234
+ * @param {string} projectLocationCollectionEngineConversationName
1235
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1236
+ * @returns {string} A string representing the collection.
1237
+ */
1238
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1239
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
1240
+ }
1241
+ /**
1242
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
1243
+ *
1244
+ * @param {string} projectLocationCollectionEngineConversationName
1245
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1246
+ * @returns {string} A string representing the engine.
1247
+ */
1248
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1249
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
1250
+ }
1251
+ /**
1252
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
1253
+ *
1254
+ * @param {string} projectLocationCollectionEngineConversationName
1255
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1256
+ * @returns {string} A string representing the conversation.
1257
+ */
1258
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1259
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1260
+ }
1261
+ /**
1262
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1263
+ *
1264
+ * @param {string} project
1265
+ * @param {string} location
1266
+ * @param {string} collection
1267
+ * @param {string} engine
1268
+ * @param {string} serving_config
1269
+ * @returns {string} Resource name string.
1270
+ */
1271
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1272
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1273
+ project: project,
1274
+ location: location,
1275
+ collection: collection,
1276
+ engine: engine,
1277
+ serving_config: servingConfig,
1278
+ });
1279
+ }
1280
+ /**
1281
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1282
+ *
1283
+ * @param {string} projectLocationCollectionEngineServingConfigName
1284
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1285
+ * @returns {string} A string representing the project.
1286
+ */
1287
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1288
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1289
+ }
1290
+ /**
1291
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1292
+ *
1293
+ * @param {string} projectLocationCollectionEngineServingConfigName
1294
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1295
+ * @returns {string} A string representing the location.
1296
+ */
1297
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1298
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1299
+ }
1300
+ /**
1301
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1302
+ *
1303
+ * @param {string} projectLocationCollectionEngineServingConfigName
1304
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1305
+ * @returns {string} A string representing the collection.
1306
+ */
1307
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1308
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1309
+ }
1310
+ /**
1311
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1312
+ *
1313
+ * @param {string} projectLocationCollectionEngineServingConfigName
1314
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1315
+ * @returns {string} A string representing the engine.
1316
+ */
1317
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1318
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1319
+ }
1320
+ /**
1321
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1322
+ *
1323
+ * @param {string} projectLocationCollectionEngineServingConfigName
1324
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1325
+ * @returns {string} A string representing the serving_config.
1326
+ */
1327
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1328
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1329
+ }
1330
+ /**
1331
+ * Return a fully-qualified projectLocationDataStore resource name string.
1332
+ *
1333
+ * @param {string} project
1334
+ * @param {string} location
1335
+ * @param {string} data_store
1336
+ * @returns {string} Resource name string.
1337
+ */
1338
+ projectLocationDataStorePath(project, location, dataStore) {
1339
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
1340
+ project: project,
1341
+ location: location,
1342
+ data_store: dataStore,
1343
+ });
1344
+ }
1345
+ /**
1346
+ * Parse the project from ProjectLocationDataStore resource.
1347
+ *
1348
+ * @param {string} projectLocationDataStoreName
1349
+ * A fully-qualified path representing project_location_data_store resource.
1350
+ * @returns {string} A string representing the project.
1351
+ */
1352
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1353
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
1354
+ }
1355
+ /**
1356
+ * Parse the location from ProjectLocationDataStore resource.
1357
+ *
1358
+ * @param {string} projectLocationDataStoreName
1359
+ * A fully-qualified path representing project_location_data_store resource.
1360
+ * @returns {string} A string representing the location.
1361
+ */
1362
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1363
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
1364
+ }
1365
+ /**
1366
+ * Parse the data_store from ProjectLocationDataStore resource.
1367
+ *
1368
+ * @param {string} projectLocationDataStoreName
1369
+ * A fully-qualified path representing project_location_data_store resource.
1370
+ * @returns {string} A string representing the data_store.
1371
+ */
1372
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1373
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
1374
+ }
1375
+ /**
1376
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
1377
+ *
1378
+ * @param {string} project
1379
+ * @param {string} location
1380
+ * @param {string} data_store
1381
+ * @param {string} branch
1382
+ * @param {string} document
1383
+ * @returns {string} Resource name string.
1384
+ */
1385
+ projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
1386
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
1387
+ project: project,
1388
+ location: location,
1389
+ data_store: dataStore,
1390
+ branch: branch,
1391
+ document: document,
1392
+ });
1393
+ }
1394
+ /**
1395
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
1396
+ *
1397
+ * @param {string} projectLocationDataStoreBranchDocumentName
1398
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1399
+ * @returns {string} A string representing the project.
1400
+ */
1401
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1402
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
1403
+ }
1404
+ /**
1405
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
1406
+ *
1407
+ * @param {string} projectLocationDataStoreBranchDocumentName
1408
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1409
+ * @returns {string} A string representing the location.
1410
+ */
1411
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1412
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
1413
+ }
1414
+ /**
1415
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
1416
+ *
1417
+ * @param {string} projectLocationDataStoreBranchDocumentName
1418
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1419
+ * @returns {string} A string representing the data_store.
1420
+ */
1421
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1422
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
1423
+ }
1424
+ /**
1425
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
1426
+ *
1427
+ * @param {string} projectLocationDataStoreBranchDocumentName
1428
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1429
+ * @returns {string} A string representing the branch.
1430
+ */
1431
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1432
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
1433
+ }
1434
+ /**
1435
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
1436
+ *
1437
+ * @param {string} projectLocationDataStoreBranchDocumentName
1438
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1439
+ * @returns {string} A string representing the document.
1440
+ */
1441
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1442
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1443
+ }
1444
+ /**
1445
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
1446
+ *
1447
+ * @param {string} project
1448
+ * @param {string} location
1449
+ * @param {string} data_store
1450
+ * @param {string} conversation
1451
+ * @returns {string} Resource name string.
1452
+ */
1453
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
1454
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
1455
+ project: project,
1456
+ location: location,
1457
+ data_store: dataStore,
1458
+ conversation: conversation,
1459
+ });
1460
+ }
1461
+ /**
1462
+ * Parse the project from ProjectLocationDataStoreConversation resource.
1463
+ *
1464
+ * @param {string} projectLocationDataStoreConversationName
1465
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1466
+ * @returns {string} A string representing the project.
1467
+ */
1468
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1469
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
1470
+ }
1471
+ /**
1472
+ * Parse the location from ProjectLocationDataStoreConversation resource.
1473
+ *
1474
+ * @param {string} projectLocationDataStoreConversationName
1475
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1476
+ * @returns {string} A string representing the location.
1477
+ */
1478
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1479
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
1480
+ }
1481
+ /**
1482
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
1483
+ *
1484
+ * @param {string} projectLocationDataStoreConversationName
1485
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1486
+ * @returns {string} A string representing the data_store.
1487
+ */
1488
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1489
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
1490
+ }
1491
+ /**
1492
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
1493
+ *
1494
+ * @param {string} projectLocationDataStoreConversationName
1495
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1496
+ * @returns {string} A string representing the conversation.
1497
+ */
1498
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1499
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1500
+ }
1501
+ /**
1502
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
1503
+ *
1504
+ * @param {string} project
1505
+ * @param {string} location
1506
+ * @param {string} data_store
1507
+ * @returns {string} Resource name string.
1508
+ */
1509
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
1510
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
1511
+ project: project,
1512
+ location: location,
1513
+ data_store: dataStore,
1514
+ });
1515
+ }
1516
+ /**
1517
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
1518
+ *
1519
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1520
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1521
+ * @returns {string} A string representing the project.
1522
+ */
1523
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1524
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
1525
+ }
1526
+ /**
1527
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
1528
+ *
1529
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1530
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1531
+ * @returns {string} A string representing the location.
1532
+ */
1533
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1534
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
1535
+ }
1536
+ /**
1537
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
1538
+ *
1539
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1540
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1541
+ * @returns {string} A string representing the data_store.
1542
+ */
1543
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1544
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
1545
+ }
1546
+ /**
1547
+ * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1548
+ *
1549
+ * @param {string} project
1550
+ * @param {string} location
1551
+ * @param {string} data_store
1552
+ * @param {string} schema
1553
+ * @returns {string} Resource name string.
1554
+ */
1555
+ projectLocationDataStoreSchemaPath(project, location, dataStore, schema) {
1556
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.render({
1557
+ project: project,
1558
+ location: location,
1559
+ data_store: dataStore,
1560
+ schema: schema,
1561
+ });
1562
+ }
1563
+ /**
1564
+ * Parse the project from ProjectLocationDataStoreSchema resource.
1565
+ *
1566
+ * @param {string} projectLocationDataStoreSchemaName
1567
+ * A fully-qualified path representing project_location_data_store_schema resource.
1568
+ * @returns {string} A string representing the project.
1569
+ */
1570
+ matchProjectFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1571
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).project;
1572
+ }
1573
+ /**
1574
+ * Parse the location from ProjectLocationDataStoreSchema resource.
1575
+ *
1576
+ * @param {string} projectLocationDataStoreSchemaName
1577
+ * A fully-qualified path representing project_location_data_store_schema resource.
1578
+ * @returns {string} A string representing the location.
1579
+ */
1580
+ matchLocationFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1581
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).location;
1582
+ }
1583
+ /**
1584
+ * Parse the data_store from ProjectLocationDataStoreSchema resource.
1585
+ *
1586
+ * @param {string} projectLocationDataStoreSchemaName
1587
+ * A fully-qualified path representing project_location_data_store_schema resource.
1588
+ * @returns {string} A string representing the data_store.
1589
+ */
1590
+ matchDataStoreFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1591
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).data_store;
1592
+ }
1593
+ /**
1594
+ * Parse the schema from ProjectLocationDataStoreSchema resource.
1595
+ *
1596
+ * @param {string} projectLocationDataStoreSchemaName
1597
+ * A fully-qualified path representing project_location_data_store_schema resource.
1598
+ * @returns {string} A string representing the schema.
1599
+ */
1600
+ matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1601
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
1602
+ }
1603
+ /**
1604
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
1605
+ *
1606
+ * @param {string} project
1607
+ * @param {string} location
1608
+ * @param {string} data_store
1609
+ * @param {string} serving_config
1610
+ * @returns {string} Resource name string.
1611
+ */
1612
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
1613
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
1614
+ project: project,
1615
+ location: location,
1616
+ data_store: dataStore,
1617
+ serving_config: servingConfig,
1618
+ });
1619
+ }
1620
+ /**
1621
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
1622
+ *
1623
+ * @param {string} projectLocationDataStoreServingConfigName
1624
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1625
+ * @returns {string} A string representing the project.
1626
+ */
1627
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1628
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
1629
+ }
1630
+ /**
1631
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
1632
+ *
1633
+ * @param {string} projectLocationDataStoreServingConfigName
1634
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1635
+ * @returns {string} A string representing the location.
1636
+ */
1637
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1638
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
1639
+ }
1640
+ /**
1641
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
1642
+ *
1643
+ * @param {string} projectLocationDataStoreServingConfigName
1644
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1645
+ * @returns {string} A string representing the data_store.
1646
+ */
1647
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1648
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
1649
+ }
1650
+ /**
1651
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
1652
+ *
1653
+ * @param {string} projectLocationDataStoreServingConfigName
1654
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1655
+ * @returns {string} A string representing the serving_config.
1656
+ */
1657
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1658
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1659
+ }
1660
+ /**
1661
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1662
+ *
1663
+ * @param {string} project
1664
+ * @param {string} location
1665
+ * @param {string} data_store
1666
+ * @returns {string} Resource name string.
1667
+ */
1668
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
1669
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
1670
+ project: project,
1671
+ location: location,
1672
+ data_store: dataStore,
1673
+ });
1674
+ }
1675
+ /**
1676
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
1677
+ *
1678
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1679
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1680
+ * @returns {string} A string representing the project.
1681
+ */
1682
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1683
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
1684
+ }
1685
+ /**
1686
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
1687
+ *
1688
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1689
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1690
+ * @returns {string} A string representing the location.
1691
+ */
1692
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1693
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
1694
+ }
1695
+ /**
1696
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
1697
+ *
1698
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1699
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1700
+ * @returns {string} A string representing the data_store.
1701
+ */
1702
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1703
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
1704
+ }
1705
+ /**
1706
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
1707
+ *
1708
+ * @param {string} project
1709
+ * @param {string} location
1710
+ * @param {string} data_store
1711
+ * @param {string} target_site
1712
+ * @returns {string} Resource name string.
1713
+ */
1714
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
1715
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1716
+ project: project,
1717
+ location: location,
1718
+ data_store: dataStore,
1719
+ target_site: targetSite,
1720
+ });
1721
+ }
1722
+ /**
1723
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1724
+ *
1725
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1726
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1727
+ * @returns {string} A string representing the project.
1728
+ */
1729
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1730
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
1731
+ }
1732
+ /**
1733
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1734
+ *
1735
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1736
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1737
+ * @returns {string} A string representing the location.
1738
+ */
1739
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1740
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
1741
+ }
1742
+ /**
1743
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1744
+ *
1745
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1746
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1747
+ * @returns {string} A string representing the data_store.
1748
+ */
1749
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1750
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
1751
+ }
1752
+ /**
1753
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1754
+ *
1755
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1756
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1757
+ * @returns {string} A string representing the target_site.
1758
+ */
1759
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1760
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
1761
+ }
1762
+ /**
1763
+ * Terminate the gRPC channel and close the client.
1764
+ *
1765
+ * The client will no longer be usable and all future behavior is undefined.
1766
+ * @returns {Promise} A promise that resolves when the client is closed.
1767
+ */
1768
+ close() {
1769
+ if (this.searchTuningServiceStub && !this._terminated) {
1770
+ return this.searchTuningServiceStub.then(stub => {
1771
+ this._terminated = true;
1772
+ stub.close();
1773
+ this.locationsClient.close();
1774
+ this.operationsClient.close();
1775
+ });
1776
+ }
1777
+ return Promise.resolve();
1778
+ }
1779
+ }
1780
+ exports.SearchTuningServiceClient = SearchTuningServiceClient;
1781
+ //# sourceMappingURL=search_tuning_service_client.js.map