@google-cloud/discoveryengine 1.4.0 → 1.5.0

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