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