@google-cloud/discoveryengine 1.3.0 → 1.4.0

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