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