@google-cloud/discoveryengine 2.2.0 → 2.3.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 (129) hide show
  1. package/README.md +13 -0
  2. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +17 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +52 -0
  4. package/build/protos/google/cloud/discoveryengine/v1/cmek_config_service.proto +300 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/common.proto +67 -0
  6. package/build/protos/google/cloud/discoveryengine/v1/control.proto +1 -3
  7. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +3 -0
  8. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +54 -2
  9. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +14 -0
  10. package/build/protos/google/cloud/discoveryengine/v1/document.proto +95 -4
  11. package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +28 -1
  12. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +131 -6
  13. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +8 -0
  14. package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +9 -0
  15. package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store.proto +84 -0
  16. package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto +375 -0
  17. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +6 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +6 -0
  19. package/build/protos/google/cloud/discoveryengine/v1/user_license.proto +98 -0
  20. package/build/protos/google/cloud/discoveryengine/v1/user_license_service.proto +191 -0
  21. package/build/protos/protos.d.ts +5387 -265
  22. package/build/protos/protos.js +77991 -63105
  23. package/build/protos/protos.json +1512 -91
  24. package/build/src/index.d.ts +10 -1
  25. package/build/src/index.js +8 -2
  26. package/build/src/v1/cmek_config_service_client.d.ts +2287 -0
  27. package/build/src/v1/cmek_config_service_client.js +3274 -0
  28. package/build/src/v1/cmek_config_service_client_config.json +42 -0
  29. package/build/src/v1/cmek_config_service_proto_list.json +44 -0
  30. package/build/src/v1/completion_service_client.d.ts +90 -0
  31. package/build/src/v1/completion_service_client.js +134 -2
  32. package/build/src/v1/completion_service_proto_list.json +6 -1
  33. package/build/src/v1/control_service_client.d.ts +90 -0
  34. package/build/src/v1/control_service_client.js +150 -0
  35. package/build/src/v1/control_service_proto_list.json +6 -1
  36. package/build/src/v1/conversational_search_service_client.d.ts +90 -0
  37. package/build/src/v1/conversational_search_service_client.js +192 -0
  38. package/build/src/v1/conversational_search_service_proto_list.json +6 -1
  39. package/build/src/v1/data_store_service_client.d.ts +96 -0
  40. package/build/src/v1/data_store_service_client.js +140 -2
  41. package/build/src/v1/data_store_service_proto_list.json +6 -1
  42. package/build/src/v1/document_service_client.d.ts +90 -0
  43. package/build/src/v1/document_service_client.js +158 -2
  44. package/build/src/v1/document_service_proto_list.json +6 -1
  45. package/build/src/v1/engine_service_client.d.ts +90 -0
  46. package/build/src/v1/engine_service_client.js +140 -2
  47. package/build/src/v1/engine_service_proto_list.json +6 -1
  48. package/build/src/v1/gapic_metadata.json +184 -0
  49. package/build/src/v1/grounded_generation_service_client.d.ts +90 -0
  50. package/build/src/v1/grounded_generation_service_client.js +138 -0
  51. package/build/src/v1/grounded_generation_service_proto_list.json +6 -1
  52. package/build/src/v1/identity_mapping_store_service_client.d.ts +2470 -0
  53. package/build/src/v1/identity_mapping_store_service_client.js +3449 -0
  54. package/build/src/v1/identity_mapping_store_service_client_config.json +54 -0
  55. package/build/src/v1/identity_mapping_store_service_proto_list.json +44 -0
  56. package/build/src/v1/index.d.ts +3 -0
  57. package/build/src/v1/index.js +7 -1
  58. package/build/src/v1/project_service_client.d.ts +90 -0
  59. package/build/src/v1/project_service_client.js +128 -2
  60. package/build/src/v1/project_service_proto_list.json +6 -1
  61. package/build/src/v1/rank_service_client.d.ts +90 -0
  62. package/build/src/v1/rank_service_client.js +132 -0
  63. package/build/src/v1/rank_service_proto_list.json +6 -1
  64. package/build/src/v1/recommendation_service_client.d.ts +90 -0
  65. package/build/src/v1/recommendation_service_client.js +132 -0
  66. package/build/src/v1/recommendation_service_proto_list.json +6 -1
  67. package/build/src/v1/schema_service_client.d.ts +90 -0
  68. package/build/src/v1/schema_service_client.js +134 -2
  69. package/build/src/v1/schema_service_proto_list.json +6 -1
  70. package/build/src/v1/search_service_client.d.ts +90 -0
  71. package/build/src/v1/search_service_client.js +126 -0
  72. package/build/src/v1/search_service_proto_list.json +6 -1
  73. package/build/src/v1/search_tuning_service_client.d.ts +90 -0
  74. package/build/src/v1/search_tuning_service_client.js +134 -2
  75. package/build/src/v1/search_tuning_service_proto_list.json +6 -1
  76. package/build/src/v1/serving_config_service_client.d.ts +90 -0
  77. package/build/src/v1/serving_config_service_client.js +132 -0
  78. package/build/src/v1/serving_config_service_proto_list.json +6 -1
  79. package/build/src/v1/site_search_engine_service_client.d.ts +90 -0
  80. package/build/src/v1/site_search_engine_service_client.js +146 -2
  81. package/build/src/v1/site_search_engine_service_proto_list.json +6 -1
  82. package/build/src/v1/user_event_service_client.d.ts +90 -0
  83. package/build/src/v1/user_event_service_client.js +140 -2
  84. package/build/src/v1/user_event_service_proto_list.json +6 -1
  85. package/build/src/v1/user_license_service_client.d.ts +2256 -0
  86. package/build/src/v1/user_license_service_client.js +3194 -0
  87. package/build/src/v1/user_license_service_client_config.json +34 -0
  88. package/build/src/v1/user_license_service_proto_list.json +44 -0
  89. package/build/src/v1alpha/acl_config_service_client.js +12 -0
  90. package/build/src/v1alpha/chunk_service_client.js +6 -0
  91. package/build/src/v1alpha/completion_service_client.js +7 -1
  92. package/build/src/v1alpha/control_service_client.js +24 -0
  93. package/build/src/v1alpha/conversational_search_service_client.js +66 -0
  94. package/build/src/v1alpha/data_store_service_client.js +25 -1
  95. package/build/src/v1alpha/document_service_client.js +37 -1
  96. package/build/src/v1alpha/engine_service_client.js +25 -1
  97. package/build/src/v1alpha/estimate_billing_service_client.js +1 -1
  98. package/build/src/v1alpha/evaluation_service_client.js +7 -1
  99. package/build/src/v1alpha/grounded_generation_service_client.js +6 -0
  100. package/build/src/v1alpha/project_service_client.js +13 -1
  101. package/build/src/v1alpha/rank_service_client.js +6 -0
  102. package/build/src/v1alpha/recommendation_service_client.js +6 -0
  103. package/build/src/v1alpha/sample_query_service_client.js +25 -1
  104. package/build/src/v1alpha/sample_query_set_service_client.js +24 -0
  105. package/build/src/v1alpha/schema_service_client.js +7 -1
  106. package/build/src/v1alpha/search_tuning_service_client.js +7 -1
  107. package/build/src/v1alpha/serving_config_service_client.js +12 -0
  108. package/build/src/v1alpha/site_search_engine_service_client.js +19 -1
  109. package/build/src/v1alpha/user_event_service_client.js +13 -1
  110. package/build/src/v1beta/completion_service_client.js +13 -1
  111. package/build/src/v1beta/control_service_client.js +24 -0
  112. package/build/src/v1beta/conversational_search_service_client.js +66 -0
  113. package/build/src/v1beta/data_store_service_client.js +13 -1
  114. package/build/src/v1beta/document_service_client.js +31 -1
  115. package/build/src/v1beta/engine_service_client.js +25 -1
  116. package/build/src/v1beta/evaluation_service_client.js +7 -1
  117. package/build/src/v1beta/grounded_generation_service_client.js +12 -0
  118. package/build/src/v1beta/project_service_client.js +1 -1
  119. package/build/src/v1beta/rank_service_client.js +6 -0
  120. package/build/src/v1beta/recommendation_service_client.js +6 -0
  121. package/build/src/v1beta/sample_query_service_client.js +25 -1
  122. package/build/src/v1beta/sample_query_set_service_client.js +24 -0
  123. package/build/src/v1beta/schema_service_client.js +7 -1
  124. package/build/src/v1beta/search_tuning_service_client.js +7 -1
  125. package/build/src/v1beta/serving_config_service_client.js +12 -0
  126. package/build/src/v1beta/site_search_engine_service_client.js +19 -1
  127. package/build/src/v1beta/user_event_service_client.js +13 -1
  128. package/package.json +7 -7
  129. package/CHANGELOG.md +0 -274
@@ -0,0 +1,3274 @@
1
+ "use strict";
2
+ // Copyright 2025 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.CmekConfigServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ const google_gax_1 = require("google-gax");
23
+ /**
24
+ * Client JSON configuration object, loaded from
25
+ * `src/v1/cmek_config_service_client_config.json`.
26
+ * This file defines retry strategy and timeouts for all API methods in this library.
27
+ */
28
+ const gapicConfig = require("./cmek_config_service_client_config.json");
29
+ const version = require('../../../package.json').version;
30
+ /**
31
+ * Service for managing CMEK related tasks
32
+ * @class
33
+ * @memberof v1
34
+ */
35
+ class CmekConfigServiceClient {
36
+ _terminated = false;
37
+ _opts;
38
+ _providedCustomServicePath;
39
+ _gaxModule;
40
+ _gaxGrpc;
41
+ _protos;
42
+ _defaults;
43
+ _universeDomain;
44
+ _servicePath;
45
+ _log = google_gax_1.loggingUtils.log('discoveryengine');
46
+ auth;
47
+ descriptors = {
48
+ page: {},
49
+ stream: {},
50
+ longrunning: {},
51
+ batching: {},
52
+ };
53
+ warn;
54
+ innerApiCalls;
55
+ locationsClient;
56
+ pathTemplates;
57
+ operationsClient;
58
+ cmekConfigServiceStub;
59
+ /**
60
+ * Construct an instance of CmekConfigServiceClient.
61
+ *
62
+ * @param {object} [options] - The configuration object.
63
+ * The options accepted by the constructor are described in detail
64
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
65
+ * The common options are:
66
+ * @param {object} [options.credentials] - Credentials object.
67
+ * @param {string} [options.credentials.client_email]
68
+ * @param {string} [options.credentials.private_key]
69
+ * @param {string} [options.email] - Account email address. Required when
70
+ * using a .pem or .p12 keyFilename.
71
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
72
+ * .p12 key downloaded from the Google Developers Console. If you provide
73
+ * a path to a JSON file, the projectId option below is not necessary.
74
+ * NOTE: .pem and .p12 require you to specify options.email as well.
75
+ * @param {number} [options.port] - The port on which to connect to
76
+ * the remote host.
77
+ * @param {string} [options.projectId] - The project ID from the Google
78
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
79
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
80
+ * app is running in an environment which supports
81
+ * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
82
+ * your project ID will be detected automatically.
83
+ * @param {string} [options.apiEndpoint] - The domain name of the
84
+ * API remote host.
85
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
86
+ * Follows the structure of {@link gapicConfig}.
87
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
88
+ * For more information, please check the
89
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
90
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
91
+ * need to avoid loading the default gRPC version and want to use the fallback
92
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
93
+ * ```
94
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
95
+ * const client = new CmekConfigServiceClient({fallback: true}, gax);
96
+ * ```
97
+ */
98
+ constructor(opts, gaxInstance) {
99
+ // Ensure that options include all the required fields.
100
+ const staticMembers = this.constructor;
101
+ if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
102
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
103
+ }
104
+ const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
105
+ this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
106
+ this._servicePath = 'discoveryengine.' + this._universeDomain;
107
+ const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
108
+ this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
109
+ const port = opts?.port || staticMembers.port;
110
+ const clientConfig = opts?.clientConfig ?? {};
111
+ const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
112
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
113
+ // Request numeric enum values if REST transport is used.
114
+ opts.numericEnums = true;
115
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
116
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
117
+ opts['scopes'] = staticMembers.scopes;
118
+ }
119
+ // Load google-gax module synchronously if needed
120
+ if (!gaxInstance) {
121
+ gaxInstance = require('google-gax');
122
+ }
123
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
124
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
125
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
126
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
127
+ // Save options to use in initialize() method.
128
+ this._opts = opts;
129
+ // Save the auth object to the client, for use by other methods.
130
+ this.auth = this._gaxGrpc.auth;
131
+ // Set useJWTAccessWithScope on the auth object.
132
+ this.auth.useJWTAccessWithScope = true;
133
+ // Set defaultServicePath on the auth object.
134
+ this.auth.defaultServicePath = this._servicePath;
135
+ // Set the default scopes in auth client if needed.
136
+ if (servicePath === this._servicePath) {
137
+ this.auth.defaultScopes = staticMembers.scopes;
138
+ }
139
+ this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
140
+ // Determine the client header string.
141
+ const clientHeader = [
142
+ `gax/${this._gaxModule.version}`,
143
+ `gapic/${version}`,
144
+ ];
145
+ if (typeof process === 'object' && 'versions' in process) {
146
+ clientHeader.push(`gl-node/${process.versions.node}`);
147
+ }
148
+ else {
149
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
150
+ }
151
+ if (!opts.fallback) {
152
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
153
+ }
154
+ else {
155
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
156
+ }
157
+ if (opts.libName && opts.libVersion) {
158
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
159
+ }
160
+ // Load the applicable protos.
161
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
162
+ // This API contains "path templates"; forward-slash-separated
163
+ // identifiers to uniquely identify resources within the API.
164
+ // Create useful helper objects for these.
165
+ this.pathTemplates = {
166
+ cryptoKeyVersionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}'),
167
+ cryptoKeysPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}'),
168
+ enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
169
+ identityMappingStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}'),
170
+ locationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}'),
171
+ projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
172
+ projectLocationCmekConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfig'),
173
+ projectLocationCmekConfigsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfigs/{cmek_config}'),
174
+ projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
175
+ projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
176
+ projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
177
+ projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
178
+ projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
179
+ projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
180
+ projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
181
+ projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
182
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
183
+ projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
184
+ projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
185
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
186
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
187
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
188
+ projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
189
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
190
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
191
+ projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
192
+ projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
193
+ projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
194
+ projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
195
+ projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
196
+ projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
197
+ projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
198
+ projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
199
+ projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
200
+ projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
201
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
202
+ projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
203
+ projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
204
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
205
+ projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
206
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
207
+ };
208
+ const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
209
+ // This API contains "long-running operations", which return a
210
+ // an Operation object that allows for tracking of the operation,
211
+ // rather than holding a request open.
212
+ const lroOptions = {
213
+ auth: this.auth,
214
+ grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
215
+ };
216
+ if (opts.fallback) {
217
+ lroOptions.protoJson = protoFilesRoot;
218
+ lroOptions.httpRules = [{ selector: 'google.longrunning.Operations.CancelOperation', post: '/v1/{name=projects/*/operations/*}:cancel', body: '*', additional_bindings: [{ post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }, { post: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}:cancel', body: '*', }, { post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }],
219
+ }, { selector: 'google.longrunning.Operations.GetOperation', get: '/v1/{name=projects/*/operations/*}', additional_bindings: [{ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/operations/*}', }, { get: '/v1/{name=projects/*/operations/*}', }],
220
+ }, { selector: 'google.longrunning.Operations.ListOperations', get: '/v1/{name=projects/*}/operations', additional_bindings: [{ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*}/operations', }, { get: '/v1/{name=projects/*}/operations', }],
221
+ }];
222
+ }
223
+ this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
224
+ const updateCmekConfigResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.CmekConfig');
225
+ const updateCmekConfigMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.UpdateCmekConfigMetadata');
226
+ const deleteCmekConfigResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
227
+ const deleteCmekConfigMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.DeleteCmekConfigMetadata');
228
+ this.descriptors.longrunning = {
229
+ updateCmekConfig: new this._gaxModule.LongrunningDescriptor(this.operationsClient, updateCmekConfigResponse.decode.bind(updateCmekConfigResponse), updateCmekConfigMetadata.decode.bind(updateCmekConfigMetadata)),
230
+ deleteCmekConfig: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteCmekConfigResponse.decode.bind(deleteCmekConfigResponse), deleteCmekConfigMetadata.decode.bind(deleteCmekConfigMetadata))
231
+ };
232
+ // Put together the default options sent with requests.
233
+ this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.CmekConfigService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
234
+ // Set up a dictionary of "inner API calls"; the core implementation
235
+ // of calling the API is handled in `google-gax`, with this code
236
+ // merely providing the destination and request information.
237
+ this.innerApiCalls = {};
238
+ // Add a warn function to the client constructor so it can be easily tested.
239
+ this.warn = this._gaxModule.warn;
240
+ }
241
+ /**
242
+ * Initialize the client.
243
+ * Performs asynchronous operations (such as authentication) and prepares the client.
244
+ * This function will be called automatically when any class method is called for the
245
+ * first time, but if you need to initialize it before calling an actual method,
246
+ * feel free to call initialize() directly.
247
+ *
248
+ * You can await on this method if you want to make sure the client is initialized.
249
+ *
250
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
251
+ */
252
+ initialize() {
253
+ // If the client stub promise is already initialized, return immediately.
254
+ if (this.cmekConfigServiceStub) {
255
+ return this.cmekConfigServiceStub;
256
+ }
257
+ // Put together the "service stub" for
258
+ // google.cloud.discoveryengine.v1.CmekConfigService.
259
+ this.cmekConfigServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
260
+ this._protos.lookupService('google.cloud.discoveryengine.v1.CmekConfigService') :
261
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
262
+ this._protos.google.cloud.discoveryengine.v1.CmekConfigService, this._opts, this._providedCustomServicePath);
263
+ // Iterate over each of the methods that the service provides
264
+ // and create an API call method for each.
265
+ const cmekConfigServiceStubMethods = ['updateCmekConfig', 'getCmekConfig', 'listCmekConfigs', 'deleteCmekConfig'];
266
+ for (const methodName of cmekConfigServiceStubMethods) {
267
+ const callPromise = this.cmekConfigServiceStub.then(stub => (...args) => {
268
+ if (this._terminated) {
269
+ return Promise.reject('The client has already been closed.');
270
+ }
271
+ const func = stub[methodName];
272
+ return func.apply(stub, args);
273
+ }, (err) => () => {
274
+ throw err;
275
+ });
276
+ const descriptor = this.descriptors.longrunning[methodName] ||
277
+ undefined;
278
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
279
+ this.innerApiCalls[methodName] = apiCall;
280
+ }
281
+ return this.cmekConfigServiceStub;
282
+ }
283
+ /**
284
+ * The DNS address for this API service.
285
+ * @deprecated Use the apiEndpoint method of the client instance.
286
+ * @returns {string} The DNS address for this service.
287
+ */
288
+ static get servicePath() {
289
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
290
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
291
+ }
292
+ return 'discoveryengine.googleapis.com';
293
+ }
294
+ /**
295
+ * The DNS address for this API service - same as servicePath.
296
+ * @deprecated Use the apiEndpoint method of the client instance.
297
+ * @returns {string} The DNS address for this service.
298
+ */
299
+ static get apiEndpoint() {
300
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
301
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
302
+ }
303
+ return 'discoveryengine.googleapis.com';
304
+ }
305
+ /**
306
+ * The DNS address for this API service.
307
+ * @returns {string} The DNS address for this service.
308
+ */
309
+ get apiEndpoint() {
310
+ return this._servicePath;
311
+ }
312
+ get universeDomain() {
313
+ return this._universeDomain;
314
+ }
315
+ /**
316
+ * The port for this API service.
317
+ * @returns {number} The default port for this service.
318
+ */
319
+ static get port() {
320
+ return 443;
321
+ }
322
+ /**
323
+ * The scopes needed to make gRPC calls for every method defined
324
+ * in this service.
325
+ * @returns {string[]} List of default scopes.
326
+ */
327
+ static get scopes() {
328
+ return [
329
+ 'https://www.googleapis.com/auth/cloud-platform'
330
+ ];
331
+ }
332
+ /**
333
+ * Return the project ID used by this class.
334
+ * @returns {Promise} A promise that resolves to string containing the project ID.
335
+ */
336
+ getProjectId(callback) {
337
+ if (callback) {
338
+ this.auth.getProjectId(callback);
339
+ return;
340
+ }
341
+ return this.auth.getProjectId();
342
+ }
343
+ getCmekConfig(request, optionsOrCallback, callback) {
344
+ request = request || {};
345
+ let options;
346
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
347
+ callback = optionsOrCallback;
348
+ options = {};
349
+ }
350
+ else {
351
+ options = optionsOrCallback;
352
+ }
353
+ options = options || {};
354
+ options.otherArgs = options.otherArgs || {};
355
+ options.otherArgs.headers = options.otherArgs.headers || {};
356
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
357
+ 'name': request.name ?? '',
358
+ });
359
+ this.initialize().catch(err => { throw err; });
360
+ this._log.info('getCmekConfig request %j', request);
361
+ const wrappedCallback = callback
362
+ ? (error, response, options, rawResponse) => {
363
+ this._log.info('getCmekConfig response %j', response);
364
+ callback(error, response, options, rawResponse); // We verified callback above.
365
+ }
366
+ : undefined;
367
+ return this.innerApiCalls.getCmekConfig(request, options, wrappedCallback)
368
+ ?.then(([response, options, rawResponse]) => {
369
+ this._log.info('getCmekConfig response %j', response);
370
+ return [response, options, rawResponse];
371
+ }).catch((error) => {
372
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
373
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
374
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
375
+ }
376
+ throw error;
377
+ });
378
+ }
379
+ listCmekConfigs(request, optionsOrCallback, callback) {
380
+ request = request || {};
381
+ let options;
382
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
383
+ callback = optionsOrCallback;
384
+ options = {};
385
+ }
386
+ else {
387
+ options = optionsOrCallback;
388
+ }
389
+ options = options || {};
390
+ options.otherArgs = options.otherArgs || {};
391
+ options.otherArgs.headers = options.otherArgs.headers || {};
392
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
393
+ 'parent': request.parent ?? '',
394
+ });
395
+ this.initialize().catch(err => { throw err; });
396
+ this._log.info('listCmekConfigs request %j', request);
397
+ const wrappedCallback = callback
398
+ ? (error, response, options, rawResponse) => {
399
+ this._log.info('listCmekConfigs response %j', response);
400
+ callback(error, response, options, rawResponse); // We verified callback above.
401
+ }
402
+ : undefined;
403
+ return this.innerApiCalls.listCmekConfigs(request, options, wrappedCallback)
404
+ ?.then(([response, options, rawResponse]) => {
405
+ this._log.info('listCmekConfigs response %j', response);
406
+ return [response, options, rawResponse];
407
+ }).catch((error) => {
408
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
409
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
410
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
411
+ }
412
+ throw error;
413
+ });
414
+ }
415
+ updateCmekConfig(request, optionsOrCallback, callback) {
416
+ request = request || {};
417
+ let options;
418
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
419
+ callback = optionsOrCallback;
420
+ options = {};
421
+ }
422
+ else {
423
+ options = optionsOrCallback;
424
+ }
425
+ options = options || {};
426
+ options.otherArgs = options.otherArgs || {};
427
+ options.otherArgs.headers = options.otherArgs.headers || {};
428
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
429
+ 'config.name': request.config.name ?? '',
430
+ });
431
+ this.initialize().catch(err => { throw err; });
432
+ const wrappedCallback = callback
433
+ ? (error, response, rawResponse, _) => {
434
+ this._log.info('updateCmekConfig response %j', rawResponse);
435
+ callback(error, response, rawResponse, _); // We verified callback above.
436
+ }
437
+ : undefined;
438
+ this._log.info('updateCmekConfig request %j', request);
439
+ return this.innerApiCalls.updateCmekConfig(request, options, wrappedCallback)
440
+ ?.then(([response, rawResponse, _]) => {
441
+ this._log.info('updateCmekConfig response %j', rawResponse);
442
+ return [response, rawResponse, _];
443
+ });
444
+ }
445
+ /**
446
+ * Check the status of the long running operation returned by `updateCmekConfig()`.
447
+ * @param {String} name
448
+ * The operation name that will be passed.
449
+ * @returns {Promise} - The promise which resolves to an object.
450
+ * The decoded operation object has result and metadata field to get information from.
451
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
452
+ * for more details and examples.
453
+ * @example <caption>include:samples/generated/v1/cmek_config_service.update_cmek_config.js</caption>
454
+ * region_tag:discoveryengine_v1_generated_CmekConfigService_UpdateCmekConfig_async
455
+ */
456
+ async checkUpdateCmekConfigProgress(name) {
457
+ this._log.info('updateCmekConfig long-running');
458
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
459
+ const [operation] = await this.operationsClient.getOperation(request);
460
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.updateCmekConfig, this._gaxModule.createDefaultBackoffSettings());
461
+ return decodeOperation;
462
+ }
463
+ deleteCmekConfig(request, optionsOrCallback, callback) {
464
+ request = request || {};
465
+ let options;
466
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
467
+ callback = optionsOrCallback;
468
+ options = {};
469
+ }
470
+ else {
471
+ options = optionsOrCallback;
472
+ }
473
+ options = options || {};
474
+ options.otherArgs = options.otherArgs || {};
475
+ options.otherArgs.headers = options.otherArgs.headers || {};
476
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
477
+ 'name': request.name ?? '',
478
+ });
479
+ this.initialize().catch(err => { throw err; });
480
+ const wrappedCallback = callback
481
+ ? (error, response, rawResponse, _) => {
482
+ this._log.info('deleteCmekConfig response %j', rawResponse);
483
+ callback(error, response, rawResponse, _); // We verified callback above.
484
+ }
485
+ : undefined;
486
+ this._log.info('deleteCmekConfig request %j', request);
487
+ return this.innerApiCalls.deleteCmekConfig(request, options, wrappedCallback)
488
+ ?.then(([response, rawResponse, _]) => {
489
+ this._log.info('deleteCmekConfig response %j', rawResponse);
490
+ return [response, rawResponse, _];
491
+ });
492
+ }
493
+ /**
494
+ * Check the status of the long running operation returned by `deleteCmekConfig()`.
495
+ * @param {String} name
496
+ * The operation name that will be passed.
497
+ * @returns {Promise} - The promise which resolves to an object.
498
+ * The decoded operation object has result and metadata field to get information from.
499
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
500
+ * for more details and examples.
501
+ * @example <caption>include:samples/generated/v1/cmek_config_service.delete_cmek_config.js</caption>
502
+ * region_tag:discoveryengine_v1_generated_CmekConfigService_DeleteCmekConfig_async
503
+ */
504
+ async checkDeleteCmekConfigProgress(name) {
505
+ this._log.info('deleteCmekConfig long-running');
506
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
507
+ const [operation] = await this.operationsClient.getOperation(request);
508
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteCmekConfig, this._gaxModule.createDefaultBackoffSettings());
509
+ return decodeOperation;
510
+ }
511
+ /**
512
+ * Gets information about a location.
513
+ *
514
+ * @param {Object} request
515
+ * The request object that will be sent.
516
+ * @param {string} request.name
517
+ * Resource name for the location.
518
+ * @param {object} [options]
519
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
520
+ * @returns {Promise} - The promise which resolves to an array.
521
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
522
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
523
+ * for more details and examples.
524
+ * @example
525
+ * ```
526
+ * const [response] = await client.getLocation(request);
527
+ * ```
528
+ */
529
+ getLocation(request, options, callback) {
530
+ return this.locationsClient.getLocation(request, options, callback);
531
+ }
532
+ /**
533
+ * Lists information about the supported locations for this service. Returns an iterable object.
534
+ *
535
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
536
+ * @param {Object} request
537
+ * The request object that will be sent.
538
+ * @param {string} request.name
539
+ * The resource that owns the locations collection, if applicable.
540
+ * @param {string} request.filter
541
+ * The standard list filter.
542
+ * @param {number} request.pageSize
543
+ * The standard list page size.
544
+ * @param {string} request.pageToken
545
+ * The standard list page token.
546
+ * @param {object} [options]
547
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
548
+ * @returns {Object}
549
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
550
+ * When you iterate the returned iterable, each element will be an object representing
551
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
552
+ * so you can stop the iteration when you don't need more results.
553
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
554
+ * for more details and examples.
555
+ * @example
556
+ * ```
557
+ * const iterable = client.listLocationsAsync(request);
558
+ * for await (const response of iterable) {
559
+ * // process response
560
+ * }
561
+ * ```
562
+ */
563
+ listLocationsAsync(request, options) {
564
+ return this.locationsClient.listLocationsAsync(request, options);
565
+ }
566
+ /**
567
+ * Gets the latest state of a long-running operation. Clients can use this
568
+ * method to poll the operation result at intervals as recommended by the API
569
+ * service.
570
+ *
571
+ * @param {Object} request - The request object that will be sent.
572
+ * @param {string} request.name - The name of the operation resource.
573
+ * @param {Object=} options
574
+ * Optional parameters. You can override the default settings for this call,
575
+ * e.g, timeout, retries, paginations, etc. See {@link
576
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
577
+ * for the details.
578
+ * @param {function(?Error, ?Object)=} callback
579
+ * The function which will be called with the result of the API call.
580
+ *
581
+ * The second parameter to the callback is an object representing
582
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
583
+ * @return {Promise} - The promise which resolves to an array.
584
+ * The first element of the array is an object representing
585
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
586
+ * The promise has a method named "cancel" which cancels the ongoing API call.
587
+ *
588
+ * @example
589
+ * ```
590
+ * const client = longrunning.operationsClient();
591
+ * const name = '';
592
+ * const [response] = await client.getOperation({name});
593
+ * // doThingsWith(response)
594
+ * ```
595
+ */
596
+ getOperation(request, optionsOrCallback, callback) {
597
+ let options;
598
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
599
+ callback = optionsOrCallback;
600
+ options = {};
601
+ }
602
+ else {
603
+ options = optionsOrCallback;
604
+ }
605
+ options = options || {};
606
+ options.otherArgs = options.otherArgs || {};
607
+ options.otherArgs.headers = options.otherArgs.headers || {};
608
+ options.otherArgs.headers['x-goog-request-params'] =
609
+ this._gaxModule.routingHeader.fromParams({
610
+ name: request.name ?? '',
611
+ });
612
+ return this.operationsClient.getOperation(request, options, callback);
613
+ }
614
+ /**
615
+ * Lists operations that match the specified filter in the request. If the
616
+ * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
617
+ *
618
+ * For-await-of syntax is used with the iterable to recursively get response element on-demand.
619
+ *
620
+ * @param {Object} request - The request object that will be sent.
621
+ * @param {string} request.name - The name of the operation collection.
622
+ * @param {string} request.filter - The standard list filter.
623
+ * @param {number=} request.pageSize -
624
+ * The maximum number of resources contained in the underlying API
625
+ * response. If page streaming is performed per-resource, this
626
+ * parameter does not affect the return value. If page streaming is
627
+ * performed per-page, this determines the maximum number of
628
+ * resources in a page.
629
+ * @param {Object=} options
630
+ * Optional parameters. You can override the default settings for this call,
631
+ * e.g, timeout, retries, paginations, etc. See {@link
632
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
633
+ * details.
634
+ * @returns {Object}
635
+ * An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
636
+ *
637
+ * @example
638
+ * ```
639
+ * const client = longrunning.operationsClient();
640
+ * for await (const response of client.listOperationsAsync(request));
641
+ * // doThingsWith(response)
642
+ * ```
643
+ */
644
+ listOperationsAsync(request, options) {
645
+ options = options || {};
646
+ options.otherArgs = options.otherArgs || {};
647
+ options.otherArgs.headers = options.otherArgs.headers || {};
648
+ options.otherArgs.headers['x-goog-request-params'] =
649
+ this._gaxModule.routingHeader.fromParams({
650
+ name: request.name ?? '',
651
+ });
652
+ return this.operationsClient.listOperationsAsync(request, options);
653
+ }
654
+ /**
655
+ * Starts asynchronous cancellation on a long-running operation. The server
656
+ * makes a best effort to cancel the operation, but success is not
657
+ * guaranteed. If the server doesn't support this method, it returns
658
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
659
+ * {@link Operations.GetOperation} or
660
+ * other methods to check whether the cancellation succeeded or whether the
661
+ * operation completed despite cancellation. On successful cancellation,
662
+ * the operation is not deleted; instead, it becomes an operation with
663
+ * an {@link Operation.error} value with a {@link google.rpc.Status.code} of
664
+ * 1, corresponding to `Code.CANCELLED`.
665
+ *
666
+ * @param {Object} request - The request object that will be sent.
667
+ * @param {string} request.name - The name of the operation resource to be cancelled.
668
+ * @param {Object=} options
669
+ * Optional parameters. You can override the default settings for this call,
670
+ * e.g, timeout, retries, paginations, etc. See {@link
671
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
672
+ * details.
673
+ * @param {function(?Error)=} callback
674
+ * The function which will be called with the result of the API call.
675
+ * @return {Promise} - The promise which resolves when API call finishes.
676
+ * The promise has a method named "cancel" which cancels the ongoing API
677
+ * call.
678
+ *
679
+ * @example
680
+ * ```
681
+ * const client = longrunning.operationsClient();
682
+ * await client.cancelOperation({name: ''});
683
+ * ```
684
+ */
685
+ cancelOperation(request, optionsOrCallback, callback) {
686
+ let options;
687
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
688
+ callback = optionsOrCallback;
689
+ options = {};
690
+ }
691
+ else {
692
+ options = optionsOrCallback;
693
+ }
694
+ options = options || {};
695
+ options.otherArgs = options.otherArgs || {};
696
+ options.otherArgs.headers = options.otherArgs.headers || {};
697
+ options.otherArgs.headers['x-goog-request-params'] =
698
+ this._gaxModule.routingHeader.fromParams({
699
+ name: request.name ?? '',
700
+ });
701
+ return this.operationsClient.cancelOperation(request, options, callback);
702
+ }
703
+ /**
704
+ * Deletes a long-running operation. This method indicates that the client is
705
+ * no longer interested in the operation result. It does not cancel the
706
+ * operation. If the server doesn't support this method, it returns
707
+ * `google.rpc.Code.UNIMPLEMENTED`.
708
+ *
709
+ * @param {Object} request - The request object that will be sent.
710
+ * @param {string} request.name - The name of the operation resource to be deleted.
711
+ * @param {Object=} options
712
+ * Optional parameters. You can override the default settings for this call,
713
+ * e.g, timeout, retries, paginations, etc. See {@link
714
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
715
+ * for the details.
716
+ * @param {function(?Error)=} callback
717
+ * The function which will be called with the result of the API call.
718
+ * @return {Promise} - The promise which resolves when API call finishes.
719
+ * The promise has a method named "cancel" which cancels the ongoing API
720
+ * call.
721
+ *
722
+ * @example
723
+ * ```
724
+ * const client = longrunning.operationsClient();
725
+ * await client.deleteOperation({name: ''});
726
+ * ```
727
+ */
728
+ deleteOperation(request, optionsOrCallback, callback) {
729
+ let options;
730
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
731
+ callback = optionsOrCallback;
732
+ options = {};
733
+ }
734
+ else {
735
+ options = optionsOrCallback;
736
+ }
737
+ options = options || {};
738
+ options.otherArgs = options.otherArgs || {};
739
+ options.otherArgs.headers = options.otherArgs.headers || {};
740
+ options.otherArgs.headers['x-goog-request-params'] =
741
+ this._gaxModule.routingHeader.fromParams({
742
+ name: request.name ?? '',
743
+ });
744
+ return this.operationsClient.deleteOperation(request, options, callback);
745
+ }
746
+ // --------------------
747
+ // -- Path templates --
748
+ // --------------------
749
+ /**
750
+ * Return a fully-qualified cryptoKeyVersions resource name string.
751
+ *
752
+ * @param {string} project
753
+ * @param {string} location
754
+ * @param {string} key_ring
755
+ * @param {string} crypto_key
756
+ * @param {string} crypto_key_version
757
+ * @returns {string} Resource name string.
758
+ */
759
+ cryptoKeyVersionsPath(project, location, keyRing, cryptoKey, cryptoKeyVersion) {
760
+ return this.pathTemplates.cryptoKeyVersionsPathTemplate.render({
761
+ project: project,
762
+ location: location,
763
+ key_ring: keyRing,
764
+ crypto_key: cryptoKey,
765
+ crypto_key_version: cryptoKeyVersion,
766
+ });
767
+ }
768
+ /**
769
+ * Parse the project from CryptoKeyVersions resource.
770
+ *
771
+ * @param {string} cryptoKeyVersionsName
772
+ * A fully-qualified path representing CryptoKeyVersions resource.
773
+ * @returns {string} A string representing the project.
774
+ */
775
+ matchProjectFromCryptoKeyVersionsName(cryptoKeyVersionsName) {
776
+ return this.pathTemplates.cryptoKeyVersionsPathTemplate.match(cryptoKeyVersionsName).project;
777
+ }
778
+ /**
779
+ * Parse the location from CryptoKeyVersions resource.
780
+ *
781
+ * @param {string} cryptoKeyVersionsName
782
+ * A fully-qualified path representing CryptoKeyVersions resource.
783
+ * @returns {string} A string representing the location.
784
+ */
785
+ matchLocationFromCryptoKeyVersionsName(cryptoKeyVersionsName) {
786
+ return this.pathTemplates.cryptoKeyVersionsPathTemplate.match(cryptoKeyVersionsName).location;
787
+ }
788
+ /**
789
+ * Parse the key_ring from CryptoKeyVersions resource.
790
+ *
791
+ * @param {string} cryptoKeyVersionsName
792
+ * A fully-qualified path representing CryptoKeyVersions resource.
793
+ * @returns {string} A string representing the key_ring.
794
+ */
795
+ matchKeyRingFromCryptoKeyVersionsName(cryptoKeyVersionsName) {
796
+ return this.pathTemplates.cryptoKeyVersionsPathTemplate.match(cryptoKeyVersionsName).key_ring;
797
+ }
798
+ /**
799
+ * Parse the crypto_key from CryptoKeyVersions resource.
800
+ *
801
+ * @param {string} cryptoKeyVersionsName
802
+ * A fully-qualified path representing CryptoKeyVersions resource.
803
+ * @returns {string} A string representing the crypto_key.
804
+ */
805
+ matchCryptoKeyFromCryptoKeyVersionsName(cryptoKeyVersionsName) {
806
+ return this.pathTemplates.cryptoKeyVersionsPathTemplate.match(cryptoKeyVersionsName).crypto_key;
807
+ }
808
+ /**
809
+ * Parse the crypto_key_version from CryptoKeyVersions resource.
810
+ *
811
+ * @param {string} cryptoKeyVersionsName
812
+ * A fully-qualified path representing CryptoKeyVersions resource.
813
+ * @returns {string} A string representing the crypto_key_version.
814
+ */
815
+ matchCryptoKeyVersionFromCryptoKeyVersionsName(cryptoKeyVersionsName) {
816
+ return this.pathTemplates.cryptoKeyVersionsPathTemplate.match(cryptoKeyVersionsName).crypto_key_version;
817
+ }
818
+ /**
819
+ * Return a fully-qualified cryptoKeys resource name string.
820
+ *
821
+ * @param {string} project
822
+ * @param {string} location
823
+ * @param {string} key_ring
824
+ * @param {string} crypto_key
825
+ * @returns {string} Resource name string.
826
+ */
827
+ cryptoKeysPath(project, location, keyRing, cryptoKey) {
828
+ return this.pathTemplates.cryptoKeysPathTemplate.render({
829
+ project: project,
830
+ location: location,
831
+ key_ring: keyRing,
832
+ crypto_key: cryptoKey,
833
+ });
834
+ }
835
+ /**
836
+ * Parse the project from CryptoKeys resource.
837
+ *
838
+ * @param {string} cryptoKeysName
839
+ * A fully-qualified path representing CryptoKeys resource.
840
+ * @returns {string} A string representing the project.
841
+ */
842
+ matchProjectFromCryptoKeysName(cryptoKeysName) {
843
+ return this.pathTemplates.cryptoKeysPathTemplate.match(cryptoKeysName).project;
844
+ }
845
+ /**
846
+ * Parse the location from CryptoKeys resource.
847
+ *
848
+ * @param {string} cryptoKeysName
849
+ * A fully-qualified path representing CryptoKeys resource.
850
+ * @returns {string} A string representing the location.
851
+ */
852
+ matchLocationFromCryptoKeysName(cryptoKeysName) {
853
+ return this.pathTemplates.cryptoKeysPathTemplate.match(cryptoKeysName).location;
854
+ }
855
+ /**
856
+ * Parse the key_ring from CryptoKeys resource.
857
+ *
858
+ * @param {string} cryptoKeysName
859
+ * A fully-qualified path representing CryptoKeys resource.
860
+ * @returns {string} A string representing the key_ring.
861
+ */
862
+ matchKeyRingFromCryptoKeysName(cryptoKeysName) {
863
+ return this.pathTemplates.cryptoKeysPathTemplate.match(cryptoKeysName).key_ring;
864
+ }
865
+ /**
866
+ * Parse the crypto_key from CryptoKeys resource.
867
+ *
868
+ * @param {string} cryptoKeysName
869
+ * A fully-qualified path representing CryptoKeys resource.
870
+ * @returns {string} A string representing the crypto_key.
871
+ */
872
+ matchCryptoKeyFromCryptoKeysName(cryptoKeysName) {
873
+ return this.pathTemplates.cryptoKeysPathTemplate.match(cryptoKeysName).crypto_key;
874
+ }
875
+ /**
876
+ * Return a fully-qualified engine resource name string.
877
+ *
878
+ * @param {string} project
879
+ * @param {string} location
880
+ * @param {string} collection
881
+ * @param {string} engine
882
+ * @returns {string} Resource name string.
883
+ */
884
+ enginePath(project, location, collection, engine) {
885
+ return this.pathTemplates.enginePathTemplate.render({
886
+ project: project,
887
+ location: location,
888
+ collection: collection,
889
+ engine: engine,
890
+ });
891
+ }
892
+ /**
893
+ * Parse the project from Engine resource.
894
+ *
895
+ * @param {string} engineName
896
+ * A fully-qualified path representing Engine resource.
897
+ * @returns {string} A string representing the project.
898
+ */
899
+ matchProjectFromEngineName(engineName) {
900
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
901
+ }
902
+ /**
903
+ * Parse the location from Engine resource.
904
+ *
905
+ * @param {string} engineName
906
+ * A fully-qualified path representing Engine resource.
907
+ * @returns {string} A string representing the location.
908
+ */
909
+ matchLocationFromEngineName(engineName) {
910
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
911
+ }
912
+ /**
913
+ * Parse the collection from Engine resource.
914
+ *
915
+ * @param {string} engineName
916
+ * A fully-qualified path representing Engine resource.
917
+ * @returns {string} A string representing the collection.
918
+ */
919
+ matchCollectionFromEngineName(engineName) {
920
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
921
+ }
922
+ /**
923
+ * Parse the engine from Engine resource.
924
+ *
925
+ * @param {string} engineName
926
+ * A fully-qualified path representing Engine resource.
927
+ * @returns {string} A string representing the engine.
928
+ */
929
+ matchEngineFromEngineName(engineName) {
930
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
931
+ }
932
+ /**
933
+ * Return a fully-qualified identityMappingStore resource name string.
934
+ *
935
+ * @param {string} project
936
+ * @param {string} location
937
+ * @param {string} identity_mapping_store
938
+ * @returns {string} Resource name string.
939
+ */
940
+ identityMappingStorePath(project, location, identityMappingStore) {
941
+ return this.pathTemplates.identityMappingStorePathTemplate.render({
942
+ project: project,
943
+ location: location,
944
+ identity_mapping_store: identityMappingStore,
945
+ });
946
+ }
947
+ /**
948
+ * Parse the project from IdentityMappingStore resource.
949
+ *
950
+ * @param {string} identityMappingStoreName
951
+ * A fully-qualified path representing IdentityMappingStore resource.
952
+ * @returns {string} A string representing the project.
953
+ */
954
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName) {
955
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).project;
956
+ }
957
+ /**
958
+ * Parse the location from IdentityMappingStore resource.
959
+ *
960
+ * @param {string} identityMappingStoreName
961
+ * A fully-qualified path representing IdentityMappingStore resource.
962
+ * @returns {string} A string representing the location.
963
+ */
964
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName) {
965
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).location;
966
+ }
967
+ /**
968
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
969
+ *
970
+ * @param {string} identityMappingStoreName
971
+ * A fully-qualified path representing IdentityMappingStore resource.
972
+ * @returns {string} A string representing the identity_mapping_store.
973
+ */
974
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName) {
975
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).identity_mapping_store;
976
+ }
977
+ /**
978
+ * Return a fully-qualified location resource name string.
979
+ *
980
+ * @param {string} project
981
+ * @param {string} location
982
+ * @returns {string} Resource name string.
983
+ */
984
+ locationPath(project, location) {
985
+ return this.pathTemplates.locationPathTemplate.render({
986
+ project: project,
987
+ location: location,
988
+ });
989
+ }
990
+ /**
991
+ * Parse the project from Location resource.
992
+ *
993
+ * @param {string} locationName
994
+ * A fully-qualified path representing Location resource.
995
+ * @returns {string} A string representing the project.
996
+ */
997
+ matchProjectFromLocationName(locationName) {
998
+ return this.pathTemplates.locationPathTemplate.match(locationName).project;
999
+ }
1000
+ /**
1001
+ * Parse the location from Location resource.
1002
+ *
1003
+ * @param {string} locationName
1004
+ * A fully-qualified path representing Location resource.
1005
+ * @returns {string} A string representing the location.
1006
+ */
1007
+ matchLocationFromLocationName(locationName) {
1008
+ return this.pathTemplates.locationPathTemplate.match(locationName).location;
1009
+ }
1010
+ /**
1011
+ * Return a fully-qualified project resource name string.
1012
+ *
1013
+ * @param {string} project
1014
+ * @returns {string} Resource name string.
1015
+ */
1016
+ projectPath(project) {
1017
+ return this.pathTemplates.projectPathTemplate.render({
1018
+ project: project,
1019
+ });
1020
+ }
1021
+ /**
1022
+ * Parse the project from Project resource.
1023
+ *
1024
+ * @param {string} projectName
1025
+ * A fully-qualified path representing Project resource.
1026
+ * @returns {string} A string representing the project.
1027
+ */
1028
+ matchProjectFromProjectName(projectName) {
1029
+ return this.pathTemplates.projectPathTemplate.match(projectName).project;
1030
+ }
1031
+ /**
1032
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
1033
+ *
1034
+ * @param {string} project
1035
+ * @param {string} location
1036
+ * @returns {string} Resource name string.
1037
+ */
1038
+ projectLocationCmekConfigPath(project, location) {
1039
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.render({
1040
+ project: project,
1041
+ location: location,
1042
+ });
1043
+ }
1044
+ /**
1045
+ * Parse the project from ProjectLocationCmekConfig resource.
1046
+ *
1047
+ * @param {string} projectLocationCmekConfigName
1048
+ * A fully-qualified path representing project_location_cmekConfig resource.
1049
+ * @returns {string} A string representing the project.
1050
+ */
1051
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
1052
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).project;
1053
+ }
1054
+ /**
1055
+ * Parse the location from ProjectLocationCmekConfig resource.
1056
+ *
1057
+ * @param {string} projectLocationCmekConfigName
1058
+ * A fully-qualified path representing project_location_cmekConfig resource.
1059
+ * @returns {string} A string representing the location.
1060
+ */
1061
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
1062
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).location;
1063
+ }
1064
+ /**
1065
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
1066
+ *
1067
+ * @param {string} project
1068
+ * @param {string} location
1069
+ * @param {string} cmek_config
1070
+ * @returns {string} Resource name string.
1071
+ */
1072
+ projectLocationCmekConfigsPath(project, location, cmekConfig) {
1073
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.render({
1074
+ project: project,
1075
+ location: location,
1076
+ cmek_config: cmekConfig,
1077
+ });
1078
+ }
1079
+ /**
1080
+ * Parse the project from ProjectLocationCmekConfigs resource.
1081
+ *
1082
+ * @param {string} projectLocationCmekConfigsName
1083
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1084
+ * @returns {string} A string representing the project.
1085
+ */
1086
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1087
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).project;
1088
+ }
1089
+ /**
1090
+ * Parse the location from ProjectLocationCmekConfigs resource.
1091
+ *
1092
+ * @param {string} projectLocationCmekConfigsName
1093
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1094
+ * @returns {string} A string representing the location.
1095
+ */
1096
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1097
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).location;
1098
+ }
1099
+ /**
1100
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
1101
+ *
1102
+ * @param {string} projectLocationCmekConfigsName
1103
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1104
+ * @returns {string} A string representing the cmek_config.
1105
+ */
1106
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1107
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).cmek_config;
1108
+ }
1109
+ /**
1110
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
1111
+ *
1112
+ * @param {string} project
1113
+ * @param {string} location
1114
+ * @param {string} collection
1115
+ * @param {string} data_store
1116
+ * @returns {string} Resource name string.
1117
+ */
1118
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
1119
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
1120
+ project: project,
1121
+ location: location,
1122
+ collection: collection,
1123
+ data_store: dataStore,
1124
+ });
1125
+ }
1126
+ /**
1127
+ * Parse the project from ProjectLocationCollectionDataStore resource.
1128
+ *
1129
+ * @param {string} projectLocationCollectionDataStoreName
1130
+ * A fully-qualified path representing project_location_collection_data_store resource.
1131
+ * @returns {string} A string representing the project.
1132
+ */
1133
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
1134
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
1135
+ }
1136
+ /**
1137
+ * Parse the location from ProjectLocationCollectionDataStore resource.
1138
+ *
1139
+ * @param {string} projectLocationCollectionDataStoreName
1140
+ * A fully-qualified path representing project_location_collection_data_store resource.
1141
+ * @returns {string} A string representing the location.
1142
+ */
1143
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
1144
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
1145
+ }
1146
+ /**
1147
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
1148
+ *
1149
+ * @param {string} projectLocationCollectionDataStoreName
1150
+ * A fully-qualified path representing project_location_collection_data_store resource.
1151
+ * @returns {string} A string representing the collection.
1152
+ */
1153
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
1154
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
1155
+ }
1156
+ /**
1157
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
1158
+ *
1159
+ * @param {string} projectLocationCollectionDataStoreName
1160
+ * A fully-qualified path representing project_location_collection_data_store resource.
1161
+ * @returns {string} A string representing the data_store.
1162
+ */
1163
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
1164
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
1165
+ }
1166
+ /**
1167
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
1168
+ *
1169
+ * @param {string} project
1170
+ * @param {string} location
1171
+ * @param {string} collection
1172
+ * @param {string} data_store
1173
+ * @param {string} branch
1174
+ * @param {string} document
1175
+ * @returns {string} Resource name string.
1176
+ */
1177
+ projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
1178
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
1179
+ project: project,
1180
+ location: location,
1181
+ collection: collection,
1182
+ data_store: dataStore,
1183
+ branch: branch,
1184
+ document: document,
1185
+ });
1186
+ }
1187
+ /**
1188
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
1189
+ *
1190
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1191
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1192
+ * @returns {string} A string representing the project.
1193
+ */
1194
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1195
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
1196
+ }
1197
+ /**
1198
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
1199
+ *
1200
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1201
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1202
+ * @returns {string} A string representing the location.
1203
+ */
1204
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1205
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
1206
+ }
1207
+ /**
1208
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
1209
+ *
1210
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1211
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1212
+ * @returns {string} A string representing the collection.
1213
+ */
1214
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1215
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
1216
+ }
1217
+ /**
1218
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
1219
+ *
1220
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1221
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1222
+ * @returns {string} A string representing the data_store.
1223
+ */
1224
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1225
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
1226
+ }
1227
+ /**
1228
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
1229
+ *
1230
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1231
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1232
+ * @returns {string} A string representing the branch.
1233
+ */
1234
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1235
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
1236
+ }
1237
+ /**
1238
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
1239
+ *
1240
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1241
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1242
+ * @returns {string} A string representing the document.
1243
+ */
1244
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1245
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
1246
+ }
1247
+ /**
1248
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
1249
+ *
1250
+ * @param {string} project
1251
+ * @param {string} location
1252
+ * @param {string} collection
1253
+ * @param {string} data_store
1254
+ * @param {string} branch
1255
+ * @param {string} document
1256
+ * @param {string} chunk
1257
+ * @returns {string} Resource name string.
1258
+ */
1259
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
1260
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
1261
+ project: project,
1262
+ location: location,
1263
+ collection: collection,
1264
+ data_store: dataStore,
1265
+ branch: branch,
1266
+ document: document,
1267
+ chunk: chunk,
1268
+ });
1269
+ }
1270
+ /**
1271
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1272
+ *
1273
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1274
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1275
+ * @returns {string} A string representing the project.
1276
+ */
1277
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1278
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
1279
+ }
1280
+ /**
1281
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1282
+ *
1283
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1284
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1285
+ * @returns {string} A string representing the location.
1286
+ */
1287
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1288
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
1289
+ }
1290
+ /**
1291
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1292
+ *
1293
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1294
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1295
+ * @returns {string} A string representing the collection.
1296
+ */
1297
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1298
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
1299
+ }
1300
+ /**
1301
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1302
+ *
1303
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1304
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1305
+ * @returns {string} A string representing the data_store.
1306
+ */
1307
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1308
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
1309
+ }
1310
+ /**
1311
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1312
+ *
1313
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1314
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1315
+ * @returns {string} A string representing the branch.
1316
+ */
1317
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1318
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
1319
+ }
1320
+ /**
1321
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1322
+ *
1323
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1324
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1325
+ * @returns {string} A string representing the document.
1326
+ */
1327
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1328
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
1329
+ }
1330
+ /**
1331
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1332
+ *
1333
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1334
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1335
+ * @returns {string} A string representing the chunk.
1336
+ */
1337
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1338
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
1339
+ }
1340
+ /**
1341
+ * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
1342
+ *
1343
+ * @param {string} project
1344
+ * @param {string} location
1345
+ * @param {string} collection
1346
+ * @param {string} data_store
1347
+ * @param {string} control
1348
+ * @returns {string} Resource name string.
1349
+ */
1350
+ projectLocationCollectionDataStoreControlPath(project, location, collection, dataStore, control) {
1351
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.render({
1352
+ project: project,
1353
+ location: location,
1354
+ collection: collection,
1355
+ data_store: dataStore,
1356
+ control: control,
1357
+ });
1358
+ }
1359
+ /**
1360
+ * Parse the project from ProjectLocationCollectionDataStoreControl resource.
1361
+ *
1362
+ * @param {string} projectLocationCollectionDataStoreControlName
1363
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1364
+ * @returns {string} A string representing the project.
1365
+ */
1366
+ matchProjectFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1367
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).project;
1368
+ }
1369
+ /**
1370
+ * Parse the location from ProjectLocationCollectionDataStoreControl resource.
1371
+ *
1372
+ * @param {string} projectLocationCollectionDataStoreControlName
1373
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1374
+ * @returns {string} A string representing the location.
1375
+ */
1376
+ matchLocationFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1377
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).location;
1378
+ }
1379
+ /**
1380
+ * Parse the collection from ProjectLocationCollectionDataStoreControl resource.
1381
+ *
1382
+ * @param {string} projectLocationCollectionDataStoreControlName
1383
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1384
+ * @returns {string} A string representing the collection.
1385
+ */
1386
+ matchCollectionFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1387
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).collection;
1388
+ }
1389
+ /**
1390
+ * Parse the data_store from ProjectLocationCollectionDataStoreControl resource.
1391
+ *
1392
+ * @param {string} projectLocationCollectionDataStoreControlName
1393
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1394
+ * @returns {string} A string representing the data_store.
1395
+ */
1396
+ matchDataStoreFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1397
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).data_store;
1398
+ }
1399
+ /**
1400
+ * Parse the control from ProjectLocationCollectionDataStoreControl resource.
1401
+ *
1402
+ * @param {string} projectLocationCollectionDataStoreControlName
1403
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1404
+ * @returns {string} A string representing the control.
1405
+ */
1406
+ matchControlFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1407
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).control;
1408
+ }
1409
+ /**
1410
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
1411
+ *
1412
+ * @param {string} project
1413
+ * @param {string} location
1414
+ * @param {string} collection
1415
+ * @param {string} data_store
1416
+ * @param {string} conversation
1417
+ * @returns {string} Resource name string.
1418
+ */
1419
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
1420
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
1421
+ project: project,
1422
+ location: location,
1423
+ collection: collection,
1424
+ data_store: dataStore,
1425
+ conversation: conversation,
1426
+ });
1427
+ }
1428
+ /**
1429
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
1430
+ *
1431
+ * @param {string} projectLocationCollectionDataStoreConversationName
1432
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1433
+ * @returns {string} A string representing the project.
1434
+ */
1435
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1436
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
1437
+ }
1438
+ /**
1439
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
1440
+ *
1441
+ * @param {string} projectLocationCollectionDataStoreConversationName
1442
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1443
+ * @returns {string} A string representing the location.
1444
+ */
1445
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1446
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
1447
+ }
1448
+ /**
1449
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
1450
+ *
1451
+ * @param {string} projectLocationCollectionDataStoreConversationName
1452
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1453
+ * @returns {string} A string representing the collection.
1454
+ */
1455
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1456
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
1457
+ }
1458
+ /**
1459
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
1460
+ *
1461
+ * @param {string} projectLocationCollectionDataStoreConversationName
1462
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1463
+ * @returns {string} A string representing the data_store.
1464
+ */
1465
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1466
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
1467
+ }
1468
+ /**
1469
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
1470
+ *
1471
+ * @param {string} projectLocationCollectionDataStoreConversationName
1472
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1473
+ * @returns {string} A string representing the conversation.
1474
+ */
1475
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1476
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
1477
+ }
1478
+ /**
1479
+ * Return a fully-qualified projectLocationCollectionDataStoreCustomTuningModel resource name string.
1480
+ *
1481
+ * @param {string} project
1482
+ * @param {string} location
1483
+ * @param {string} collection
1484
+ * @param {string} data_store
1485
+ * @param {string} custom_tuning_model
1486
+ * @returns {string} Resource name string.
1487
+ */
1488
+ projectLocationCollectionDataStoreCustomTuningModelPath(project, location, collection, dataStore, customTuningModel) {
1489
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.render({
1490
+ project: project,
1491
+ location: location,
1492
+ collection: collection,
1493
+ data_store: dataStore,
1494
+ custom_tuning_model: customTuningModel,
1495
+ });
1496
+ }
1497
+ /**
1498
+ * Parse the project from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1499
+ *
1500
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1501
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1502
+ * @returns {string} A string representing the project.
1503
+ */
1504
+ matchProjectFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1505
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).project;
1506
+ }
1507
+ /**
1508
+ * Parse the location from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1509
+ *
1510
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1511
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1512
+ * @returns {string} A string representing the location.
1513
+ */
1514
+ matchLocationFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1515
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).location;
1516
+ }
1517
+ /**
1518
+ * Parse the collection from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1519
+ *
1520
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1521
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1522
+ * @returns {string} A string representing the collection.
1523
+ */
1524
+ matchCollectionFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1525
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).collection;
1526
+ }
1527
+ /**
1528
+ * Parse the data_store from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1529
+ *
1530
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1531
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1532
+ * @returns {string} A string representing the data_store.
1533
+ */
1534
+ matchDataStoreFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1535
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).data_store;
1536
+ }
1537
+ /**
1538
+ * Parse the custom_tuning_model from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1539
+ *
1540
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1541
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1542
+ * @returns {string} A string representing the custom_tuning_model.
1543
+ */
1544
+ matchCustomTuningModelFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1545
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).custom_tuning_model;
1546
+ }
1547
+ /**
1548
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
1549
+ *
1550
+ * @param {string} project
1551
+ * @param {string} location
1552
+ * @param {string} collection
1553
+ * @param {string} data_store
1554
+ * @returns {string} Resource name string.
1555
+ */
1556
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
1557
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
1558
+ project: project,
1559
+ location: location,
1560
+ collection: collection,
1561
+ data_store: dataStore,
1562
+ });
1563
+ }
1564
+ /**
1565
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1566
+ *
1567
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1568
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1569
+ * @returns {string} A string representing the project.
1570
+ */
1571
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1572
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
1573
+ }
1574
+ /**
1575
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1576
+ *
1577
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1578
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1579
+ * @returns {string} A string representing the location.
1580
+ */
1581
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1582
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
1583
+ }
1584
+ /**
1585
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1586
+ *
1587
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1588
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1589
+ * @returns {string} A string representing the collection.
1590
+ */
1591
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1592
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
1593
+ }
1594
+ /**
1595
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1596
+ *
1597
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1598
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1599
+ * @returns {string} A string representing the data_store.
1600
+ */
1601
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1602
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
1603
+ }
1604
+ /**
1605
+ * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
1606
+ *
1607
+ * @param {string} project
1608
+ * @param {string} location
1609
+ * @param {string} collection
1610
+ * @param {string} data_store
1611
+ * @param {string} schema
1612
+ * @returns {string} Resource name string.
1613
+ */
1614
+ projectLocationCollectionDataStoreSchemaPath(project, location, collection, dataStore, schema) {
1615
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.render({
1616
+ project: project,
1617
+ location: location,
1618
+ collection: collection,
1619
+ data_store: dataStore,
1620
+ schema: schema,
1621
+ });
1622
+ }
1623
+ /**
1624
+ * Parse the project from ProjectLocationCollectionDataStoreSchema resource.
1625
+ *
1626
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1627
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1628
+ * @returns {string} A string representing the project.
1629
+ */
1630
+ matchProjectFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1631
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).project;
1632
+ }
1633
+ /**
1634
+ * Parse the location from ProjectLocationCollectionDataStoreSchema resource.
1635
+ *
1636
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1637
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1638
+ * @returns {string} A string representing the location.
1639
+ */
1640
+ matchLocationFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1641
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).location;
1642
+ }
1643
+ /**
1644
+ * Parse the collection from ProjectLocationCollectionDataStoreSchema resource.
1645
+ *
1646
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1647
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1648
+ * @returns {string} A string representing the collection.
1649
+ */
1650
+ matchCollectionFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1651
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).collection;
1652
+ }
1653
+ /**
1654
+ * Parse the data_store from ProjectLocationCollectionDataStoreSchema resource.
1655
+ *
1656
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1657
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1658
+ * @returns {string} A string representing the data_store.
1659
+ */
1660
+ matchDataStoreFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1661
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).data_store;
1662
+ }
1663
+ /**
1664
+ * Parse the schema from ProjectLocationCollectionDataStoreSchema resource.
1665
+ *
1666
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1667
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1668
+ * @returns {string} A string representing the schema.
1669
+ */
1670
+ matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1671
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1672
+ }
1673
+ /**
1674
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1675
+ *
1676
+ * @param {string} project
1677
+ * @param {string} location
1678
+ * @param {string} collection
1679
+ * @param {string} data_store
1680
+ * @param {string} serving_config
1681
+ * @returns {string} Resource name string.
1682
+ */
1683
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1684
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1685
+ project: project,
1686
+ location: location,
1687
+ collection: collection,
1688
+ data_store: dataStore,
1689
+ serving_config: servingConfig,
1690
+ });
1691
+ }
1692
+ /**
1693
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1694
+ *
1695
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1696
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1697
+ * @returns {string} A string representing the project.
1698
+ */
1699
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1700
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1701
+ }
1702
+ /**
1703
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1704
+ *
1705
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1706
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1707
+ * @returns {string} A string representing the location.
1708
+ */
1709
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1710
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1711
+ }
1712
+ /**
1713
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1714
+ *
1715
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1716
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1717
+ * @returns {string} A string representing the collection.
1718
+ */
1719
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1720
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1721
+ }
1722
+ /**
1723
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1724
+ *
1725
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1726
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1727
+ * @returns {string} A string representing the data_store.
1728
+ */
1729
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1730
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1731
+ }
1732
+ /**
1733
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1734
+ *
1735
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1736
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1737
+ * @returns {string} A string representing the serving_config.
1738
+ */
1739
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1740
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1741
+ }
1742
+ /**
1743
+ * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1744
+ *
1745
+ * @param {string} project
1746
+ * @param {string} location
1747
+ * @param {string} collection
1748
+ * @param {string} data_store
1749
+ * @param {string} session
1750
+ * @returns {string} Resource name string.
1751
+ */
1752
+ projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1753
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1754
+ project: project,
1755
+ location: location,
1756
+ collection: collection,
1757
+ data_store: dataStore,
1758
+ session: session,
1759
+ });
1760
+ }
1761
+ /**
1762
+ * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1763
+ *
1764
+ * @param {string} projectLocationCollectionDataStoreSessionName
1765
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1766
+ * @returns {string} A string representing the project.
1767
+ */
1768
+ matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1769
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1770
+ }
1771
+ /**
1772
+ * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1773
+ *
1774
+ * @param {string} projectLocationCollectionDataStoreSessionName
1775
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1776
+ * @returns {string} A string representing the location.
1777
+ */
1778
+ matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1779
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1780
+ }
1781
+ /**
1782
+ * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1783
+ *
1784
+ * @param {string} projectLocationCollectionDataStoreSessionName
1785
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1786
+ * @returns {string} A string representing the collection.
1787
+ */
1788
+ matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1789
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1790
+ }
1791
+ /**
1792
+ * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1793
+ *
1794
+ * @param {string} projectLocationCollectionDataStoreSessionName
1795
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1796
+ * @returns {string} A string representing the data_store.
1797
+ */
1798
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1799
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1800
+ }
1801
+ /**
1802
+ * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1803
+ *
1804
+ * @param {string} projectLocationCollectionDataStoreSessionName
1805
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1806
+ * @returns {string} A string representing the session.
1807
+ */
1808
+ matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1809
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1810
+ }
1811
+ /**
1812
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1813
+ *
1814
+ * @param {string} project
1815
+ * @param {string} location
1816
+ * @param {string} collection
1817
+ * @param {string} data_store
1818
+ * @param {string} session
1819
+ * @param {string} answer
1820
+ * @returns {string} Resource name string.
1821
+ */
1822
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1823
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1824
+ project: project,
1825
+ location: location,
1826
+ collection: collection,
1827
+ data_store: dataStore,
1828
+ session: session,
1829
+ answer: answer,
1830
+ });
1831
+ }
1832
+ /**
1833
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1834
+ *
1835
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1836
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1837
+ * @returns {string} A string representing the project.
1838
+ */
1839
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1840
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1841
+ }
1842
+ /**
1843
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1844
+ *
1845
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1846
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1847
+ * @returns {string} A string representing the location.
1848
+ */
1849
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1850
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1851
+ }
1852
+ /**
1853
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1854
+ *
1855
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1856
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1857
+ * @returns {string} A string representing the collection.
1858
+ */
1859
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1860
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1861
+ }
1862
+ /**
1863
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1864
+ *
1865
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1866
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1867
+ * @returns {string} A string representing the data_store.
1868
+ */
1869
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1870
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1871
+ }
1872
+ /**
1873
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1874
+ *
1875
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1876
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1877
+ * @returns {string} A string representing the session.
1878
+ */
1879
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1880
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1881
+ }
1882
+ /**
1883
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1884
+ *
1885
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1886
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1887
+ * @returns {string} A string representing the answer.
1888
+ */
1889
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1890
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1891
+ }
1892
+ /**
1893
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1894
+ *
1895
+ * @param {string} project
1896
+ * @param {string} location
1897
+ * @param {string} collection
1898
+ * @param {string} data_store
1899
+ * @returns {string} Resource name string.
1900
+ */
1901
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
1902
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
1903
+ project: project,
1904
+ location: location,
1905
+ collection: collection,
1906
+ data_store: dataStore,
1907
+ });
1908
+ }
1909
+ /**
1910
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1911
+ *
1912
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1913
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1914
+ * @returns {string} A string representing the project.
1915
+ */
1916
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1917
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
1918
+ }
1919
+ /**
1920
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1921
+ *
1922
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1923
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1924
+ * @returns {string} A string representing the location.
1925
+ */
1926
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1927
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
1928
+ }
1929
+ /**
1930
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1931
+ *
1932
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1933
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1934
+ * @returns {string} A string representing the collection.
1935
+ */
1936
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1937
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
1938
+ }
1939
+ /**
1940
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1941
+ *
1942
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1943
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1944
+ * @returns {string} A string representing the data_store.
1945
+ */
1946
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1947
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1948
+ }
1949
+ /**
1950
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
1951
+ *
1952
+ * @param {string} project
1953
+ * @param {string} location
1954
+ * @param {string} collection
1955
+ * @param {string} data_store
1956
+ * @param {string} sitemap
1957
+ * @returns {string} Resource name string.
1958
+ */
1959
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
1960
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
1961
+ project: project,
1962
+ location: location,
1963
+ collection: collection,
1964
+ data_store: dataStore,
1965
+ sitemap: sitemap,
1966
+ });
1967
+ }
1968
+ /**
1969
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1970
+ *
1971
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1972
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1973
+ * @returns {string} A string representing the project.
1974
+ */
1975
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1976
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
1977
+ }
1978
+ /**
1979
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1980
+ *
1981
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1982
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1983
+ * @returns {string} A string representing the location.
1984
+ */
1985
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1986
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
1987
+ }
1988
+ /**
1989
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1990
+ *
1991
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1992
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1993
+ * @returns {string} A string representing the collection.
1994
+ */
1995
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1996
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
1997
+ }
1998
+ /**
1999
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2000
+ *
2001
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2002
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2003
+ * @returns {string} A string representing the data_store.
2004
+ */
2005
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2006
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
2007
+ }
2008
+ /**
2009
+ * Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2010
+ *
2011
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2012
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2013
+ * @returns {string} A string representing the sitemap.
2014
+ */
2015
+ matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2016
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
2017
+ }
2018
+ /**
2019
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
2020
+ *
2021
+ * @param {string} project
2022
+ * @param {string} location
2023
+ * @param {string} collection
2024
+ * @param {string} data_store
2025
+ * @param {string} target_site
2026
+ * @returns {string} Resource name string.
2027
+ */
2028
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
2029
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
2030
+ project: project,
2031
+ location: location,
2032
+ collection: collection,
2033
+ data_store: dataStore,
2034
+ target_site: targetSite,
2035
+ });
2036
+ }
2037
+ /**
2038
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
2039
+ *
2040
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
2041
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
2042
+ * @returns {string} A string representing the project.
2043
+ */
2044
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
2045
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
2046
+ }
2047
+ /**
2048
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
2049
+ *
2050
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
2051
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
2052
+ * @returns {string} A string representing the location.
2053
+ */
2054
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
2055
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
2056
+ }
2057
+ /**
2058
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
2059
+ *
2060
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
2061
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
2062
+ * @returns {string} A string representing the collection.
2063
+ */
2064
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
2065
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
2066
+ }
2067
+ /**
2068
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
2069
+ *
2070
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
2071
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
2072
+ * @returns {string} A string representing the data_store.
2073
+ */
2074
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
2075
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
2076
+ }
2077
+ /**
2078
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
2079
+ *
2080
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
2081
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
2082
+ * @returns {string} A string representing the target_site.
2083
+ */
2084
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
2085
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
2086
+ }
2087
+ /**
2088
+ * Return a fully-qualified projectLocationCollectionEngineControl resource name string.
2089
+ *
2090
+ * @param {string} project
2091
+ * @param {string} location
2092
+ * @param {string} collection
2093
+ * @param {string} engine
2094
+ * @param {string} control
2095
+ * @returns {string} Resource name string.
2096
+ */
2097
+ projectLocationCollectionEngineControlPath(project, location, collection, engine, control) {
2098
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.render({
2099
+ project: project,
2100
+ location: location,
2101
+ collection: collection,
2102
+ engine: engine,
2103
+ control: control,
2104
+ });
2105
+ }
2106
+ /**
2107
+ * Parse the project from ProjectLocationCollectionEngineControl resource.
2108
+ *
2109
+ * @param {string} projectLocationCollectionEngineControlName
2110
+ * A fully-qualified path representing project_location_collection_engine_control resource.
2111
+ * @returns {string} A string representing the project.
2112
+ */
2113
+ matchProjectFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
2114
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).project;
2115
+ }
2116
+ /**
2117
+ * Parse the location from ProjectLocationCollectionEngineControl resource.
2118
+ *
2119
+ * @param {string} projectLocationCollectionEngineControlName
2120
+ * A fully-qualified path representing project_location_collection_engine_control resource.
2121
+ * @returns {string} A string representing the location.
2122
+ */
2123
+ matchLocationFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
2124
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).location;
2125
+ }
2126
+ /**
2127
+ * Parse the collection from ProjectLocationCollectionEngineControl resource.
2128
+ *
2129
+ * @param {string} projectLocationCollectionEngineControlName
2130
+ * A fully-qualified path representing project_location_collection_engine_control resource.
2131
+ * @returns {string} A string representing the collection.
2132
+ */
2133
+ matchCollectionFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
2134
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).collection;
2135
+ }
2136
+ /**
2137
+ * Parse the engine from ProjectLocationCollectionEngineControl resource.
2138
+ *
2139
+ * @param {string} projectLocationCollectionEngineControlName
2140
+ * A fully-qualified path representing project_location_collection_engine_control resource.
2141
+ * @returns {string} A string representing the engine.
2142
+ */
2143
+ matchEngineFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
2144
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).engine;
2145
+ }
2146
+ /**
2147
+ * Parse the control from ProjectLocationCollectionEngineControl resource.
2148
+ *
2149
+ * @param {string} projectLocationCollectionEngineControlName
2150
+ * A fully-qualified path representing project_location_collection_engine_control resource.
2151
+ * @returns {string} A string representing the control.
2152
+ */
2153
+ matchControlFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
2154
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).control;
2155
+ }
2156
+ /**
2157
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
2158
+ *
2159
+ * @param {string} project
2160
+ * @param {string} location
2161
+ * @param {string} collection
2162
+ * @param {string} engine
2163
+ * @param {string} conversation
2164
+ * @returns {string} Resource name string.
2165
+ */
2166
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
2167
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
2168
+ project: project,
2169
+ location: location,
2170
+ collection: collection,
2171
+ engine: engine,
2172
+ conversation: conversation,
2173
+ });
2174
+ }
2175
+ /**
2176
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
2177
+ *
2178
+ * @param {string} projectLocationCollectionEngineConversationName
2179
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
2180
+ * @returns {string} A string representing the project.
2181
+ */
2182
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
2183
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
2184
+ }
2185
+ /**
2186
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
2187
+ *
2188
+ * @param {string} projectLocationCollectionEngineConversationName
2189
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
2190
+ * @returns {string} A string representing the location.
2191
+ */
2192
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
2193
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
2194
+ }
2195
+ /**
2196
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
2197
+ *
2198
+ * @param {string} projectLocationCollectionEngineConversationName
2199
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
2200
+ * @returns {string} A string representing the collection.
2201
+ */
2202
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
2203
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
2204
+ }
2205
+ /**
2206
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
2207
+ *
2208
+ * @param {string} projectLocationCollectionEngineConversationName
2209
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
2210
+ * @returns {string} A string representing the engine.
2211
+ */
2212
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
2213
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
2214
+ }
2215
+ /**
2216
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
2217
+ *
2218
+ * @param {string} projectLocationCollectionEngineConversationName
2219
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
2220
+ * @returns {string} A string representing the conversation.
2221
+ */
2222
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
2223
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
2224
+ }
2225
+ /**
2226
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
2227
+ *
2228
+ * @param {string} project
2229
+ * @param {string} location
2230
+ * @param {string} collection
2231
+ * @param {string} engine
2232
+ * @param {string} serving_config
2233
+ * @returns {string} Resource name string.
2234
+ */
2235
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
2236
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
2237
+ project: project,
2238
+ location: location,
2239
+ collection: collection,
2240
+ engine: engine,
2241
+ serving_config: servingConfig,
2242
+ });
2243
+ }
2244
+ /**
2245
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
2246
+ *
2247
+ * @param {string} projectLocationCollectionEngineServingConfigName
2248
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2249
+ * @returns {string} A string representing the project.
2250
+ */
2251
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2252
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
2253
+ }
2254
+ /**
2255
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
2256
+ *
2257
+ * @param {string} projectLocationCollectionEngineServingConfigName
2258
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2259
+ * @returns {string} A string representing the location.
2260
+ */
2261
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2262
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
2263
+ }
2264
+ /**
2265
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
2266
+ *
2267
+ * @param {string} projectLocationCollectionEngineServingConfigName
2268
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2269
+ * @returns {string} A string representing the collection.
2270
+ */
2271
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2272
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
2273
+ }
2274
+ /**
2275
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
2276
+ *
2277
+ * @param {string} projectLocationCollectionEngineServingConfigName
2278
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2279
+ * @returns {string} A string representing the engine.
2280
+ */
2281
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2282
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
2283
+ }
2284
+ /**
2285
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
2286
+ *
2287
+ * @param {string} projectLocationCollectionEngineServingConfigName
2288
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2289
+ * @returns {string} A string representing the serving_config.
2290
+ */
2291
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2292
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
2293
+ }
2294
+ /**
2295
+ * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
2296
+ *
2297
+ * @param {string} project
2298
+ * @param {string} location
2299
+ * @param {string} collection
2300
+ * @param {string} engine
2301
+ * @param {string} session
2302
+ * @returns {string} Resource name string.
2303
+ */
2304
+ projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
2305
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
2306
+ project: project,
2307
+ location: location,
2308
+ collection: collection,
2309
+ engine: engine,
2310
+ session: session,
2311
+ });
2312
+ }
2313
+ /**
2314
+ * Parse the project from ProjectLocationCollectionEngineSession resource.
2315
+ *
2316
+ * @param {string} projectLocationCollectionEngineSessionName
2317
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2318
+ * @returns {string} A string representing the project.
2319
+ */
2320
+ matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2321
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
2322
+ }
2323
+ /**
2324
+ * Parse the location from ProjectLocationCollectionEngineSession resource.
2325
+ *
2326
+ * @param {string} projectLocationCollectionEngineSessionName
2327
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2328
+ * @returns {string} A string representing the location.
2329
+ */
2330
+ matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2331
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
2332
+ }
2333
+ /**
2334
+ * Parse the collection from ProjectLocationCollectionEngineSession resource.
2335
+ *
2336
+ * @param {string} projectLocationCollectionEngineSessionName
2337
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2338
+ * @returns {string} A string representing the collection.
2339
+ */
2340
+ matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2341
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
2342
+ }
2343
+ /**
2344
+ * Parse the engine from ProjectLocationCollectionEngineSession resource.
2345
+ *
2346
+ * @param {string} projectLocationCollectionEngineSessionName
2347
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2348
+ * @returns {string} A string representing the engine.
2349
+ */
2350
+ matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2351
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
2352
+ }
2353
+ /**
2354
+ * Parse the session from ProjectLocationCollectionEngineSession resource.
2355
+ *
2356
+ * @param {string} projectLocationCollectionEngineSessionName
2357
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2358
+ * @returns {string} A string representing the session.
2359
+ */
2360
+ matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2361
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
2362
+ }
2363
+ /**
2364
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
2365
+ *
2366
+ * @param {string} project
2367
+ * @param {string} location
2368
+ * @param {string} collection
2369
+ * @param {string} engine
2370
+ * @param {string} session
2371
+ * @param {string} answer
2372
+ * @returns {string} Resource name string.
2373
+ */
2374
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
2375
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
2376
+ project: project,
2377
+ location: location,
2378
+ collection: collection,
2379
+ engine: engine,
2380
+ session: session,
2381
+ answer: answer,
2382
+ });
2383
+ }
2384
+ /**
2385
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
2386
+ *
2387
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2388
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2389
+ * @returns {string} A string representing the project.
2390
+ */
2391
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2392
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
2393
+ }
2394
+ /**
2395
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2396
+ *
2397
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2398
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2399
+ * @returns {string} A string representing the location.
2400
+ */
2401
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2402
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2403
+ }
2404
+ /**
2405
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2406
+ *
2407
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2408
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2409
+ * @returns {string} A string representing the collection.
2410
+ */
2411
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2412
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2413
+ }
2414
+ /**
2415
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2416
+ *
2417
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2418
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2419
+ * @returns {string} A string representing the engine.
2420
+ */
2421
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2422
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2423
+ }
2424
+ /**
2425
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2426
+ *
2427
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2428
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2429
+ * @returns {string} A string representing the session.
2430
+ */
2431
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2432
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2433
+ }
2434
+ /**
2435
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2436
+ *
2437
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2438
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2439
+ * @returns {string} A string representing the answer.
2440
+ */
2441
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2442
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2443
+ }
2444
+ /**
2445
+ * Return a fully-qualified projectLocationDataStore resource name string.
2446
+ *
2447
+ * @param {string} project
2448
+ * @param {string} location
2449
+ * @param {string} data_store
2450
+ * @returns {string} Resource name string.
2451
+ */
2452
+ projectLocationDataStorePath(project, location, dataStore) {
2453
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
2454
+ project: project,
2455
+ location: location,
2456
+ data_store: dataStore,
2457
+ });
2458
+ }
2459
+ /**
2460
+ * Parse the project from ProjectLocationDataStore resource.
2461
+ *
2462
+ * @param {string} projectLocationDataStoreName
2463
+ * A fully-qualified path representing project_location_data_store resource.
2464
+ * @returns {string} A string representing the project.
2465
+ */
2466
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
2467
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
2468
+ }
2469
+ /**
2470
+ * Parse the location from ProjectLocationDataStore resource.
2471
+ *
2472
+ * @param {string} projectLocationDataStoreName
2473
+ * A fully-qualified path representing project_location_data_store resource.
2474
+ * @returns {string} A string representing the location.
2475
+ */
2476
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
2477
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
2478
+ }
2479
+ /**
2480
+ * Parse the data_store from ProjectLocationDataStore resource.
2481
+ *
2482
+ * @param {string} projectLocationDataStoreName
2483
+ * A fully-qualified path representing project_location_data_store resource.
2484
+ * @returns {string} A string representing the data_store.
2485
+ */
2486
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
2487
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
2488
+ }
2489
+ /**
2490
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
2491
+ *
2492
+ * @param {string} project
2493
+ * @param {string} location
2494
+ * @param {string} data_store
2495
+ * @param {string} branch
2496
+ * @param {string} document
2497
+ * @returns {string} Resource name string.
2498
+ */
2499
+ projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
2500
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
2501
+ project: project,
2502
+ location: location,
2503
+ data_store: dataStore,
2504
+ branch: branch,
2505
+ document: document,
2506
+ });
2507
+ }
2508
+ /**
2509
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
2510
+ *
2511
+ * @param {string} projectLocationDataStoreBranchDocumentName
2512
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2513
+ * @returns {string} A string representing the project.
2514
+ */
2515
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2516
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
2517
+ }
2518
+ /**
2519
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
2520
+ *
2521
+ * @param {string} projectLocationDataStoreBranchDocumentName
2522
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2523
+ * @returns {string} A string representing the location.
2524
+ */
2525
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2526
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
2527
+ }
2528
+ /**
2529
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
2530
+ *
2531
+ * @param {string} projectLocationDataStoreBranchDocumentName
2532
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2533
+ * @returns {string} A string representing the data_store.
2534
+ */
2535
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2536
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
2537
+ }
2538
+ /**
2539
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
2540
+ *
2541
+ * @param {string} projectLocationDataStoreBranchDocumentName
2542
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2543
+ * @returns {string} A string representing the branch.
2544
+ */
2545
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2546
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
2547
+ }
2548
+ /**
2549
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
2550
+ *
2551
+ * @param {string} projectLocationDataStoreBranchDocumentName
2552
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2553
+ * @returns {string} A string representing the document.
2554
+ */
2555
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2556
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
2557
+ }
2558
+ /**
2559
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
2560
+ *
2561
+ * @param {string} project
2562
+ * @param {string} location
2563
+ * @param {string} data_store
2564
+ * @param {string} branch
2565
+ * @param {string} document
2566
+ * @param {string} chunk
2567
+ * @returns {string} Resource name string.
2568
+ */
2569
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
2570
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
2571
+ project: project,
2572
+ location: location,
2573
+ data_store: dataStore,
2574
+ branch: branch,
2575
+ document: document,
2576
+ chunk: chunk,
2577
+ });
2578
+ }
2579
+ /**
2580
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
2581
+ *
2582
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2583
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2584
+ * @returns {string} A string representing the project.
2585
+ */
2586
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2587
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
2588
+ }
2589
+ /**
2590
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
2591
+ *
2592
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2593
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2594
+ * @returns {string} A string representing the location.
2595
+ */
2596
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2597
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
2598
+ }
2599
+ /**
2600
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
2601
+ *
2602
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2603
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2604
+ * @returns {string} A string representing the data_store.
2605
+ */
2606
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2607
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
2608
+ }
2609
+ /**
2610
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
2611
+ *
2612
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2613
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2614
+ * @returns {string} A string representing the branch.
2615
+ */
2616
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2617
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
2618
+ }
2619
+ /**
2620
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
2621
+ *
2622
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2623
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2624
+ * @returns {string} A string representing the document.
2625
+ */
2626
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2627
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
2628
+ }
2629
+ /**
2630
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
2631
+ *
2632
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2633
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2634
+ * @returns {string} A string representing the chunk.
2635
+ */
2636
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2637
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
2638
+ }
2639
+ /**
2640
+ * Return a fully-qualified projectLocationDataStoreControl resource name string.
2641
+ *
2642
+ * @param {string} project
2643
+ * @param {string} location
2644
+ * @param {string} data_store
2645
+ * @param {string} control
2646
+ * @returns {string} Resource name string.
2647
+ */
2648
+ projectLocationDataStoreControlPath(project, location, dataStore, control) {
2649
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.render({
2650
+ project: project,
2651
+ location: location,
2652
+ data_store: dataStore,
2653
+ control: control,
2654
+ });
2655
+ }
2656
+ /**
2657
+ * Parse the project from ProjectLocationDataStoreControl resource.
2658
+ *
2659
+ * @param {string} projectLocationDataStoreControlName
2660
+ * A fully-qualified path representing project_location_data_store_control resource.
2661
+ * @returns {string} A string representing the project.
2662
+ */
2663
+ matchProjectFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2664
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).project;
2665
+ }
2666
+ /**
2667
+ * Parse the location from ProjectLocationDataStoreControl resource.
2668
+ *
2669
+ * @param {string} projectLocationDataStoreControlName
2670
+ * A fully-qualified path representing project_location_data_store_control resource.
2671
+ * @returns {string} A string representing the location.
2672
+ */
2673
+ matchLocationFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2674
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).location;
2675
+ }
2676
+ /**
2677
+ * Parse the data_store from ProjectLocationDataStoreControl resource.
2678
+ *
2679
+ * @param {string} projectLocationDataStoreControlName
2680
+ * A fully-qualified path representing project_location_data_store_control resource.
2681
+ * @returns {string} A string representing the data_store.
2682
+ */
2683
+ matchDataStoreFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2684
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).data_store;
2685
+ }
2686
+ /**
2687
+ * Parse the control from ProjectLocationDataStoreControl resource.
2688
+ *
2689
+ * @param {string} projectLocationDataStoreControlName
2690
+ * A fully-qualified path representing project_location_data_store_control resource.
2691
+ * @returns {string} A string representing the control.
2692
+ */
2693
+ matchControlFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2694
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).control;
2695
+ }
2696
+ /**
2697
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
2698
+ *
2699
+ * @param {string} project
2700
+ * @param {string} location
2701
+ * @param {string} data_store
2702
+ * @param {string} conversation
2703
+ * @returns {string} Resource name string.
2704
+ */
2705
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
2706
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
2707
+ project: project,
2708
+ location: location,
2709
+ data_store: dataStore,
2710
+ conversation: conversation,
2711
+ });
2712
+ }
2713
+ /**
2714
+ * Parse the project from ProjectLocationDataStoreConversation resource.
2715
+ *
2716
+ * @param {string} projectLocationDataStoreConversationName
2717
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2718
+ * @returns {string} A string representing the project.
2719
+ */
2720
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2721
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
2722
+ }
2723
+ /**
2724
+ * Parse the location from ProjectLocationDataStoreConversation resource.
2725
+ *
2726
+ * @param {string} projectLocationDataStoreConversationName
2727
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2728
+ * @returns {string} A string representing the location.
2729
+ */
2730
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2731
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
2732
+ }
2733
+ /**
2734
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
2735
+ *
2736
+ * @param {string} projectLocationDataStoreConversationName
2737
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2738
+ * @returns {string} A string representing the data_store.
2739
+ */
2740
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2741
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
2742
+ }
2743
+ /**
2744
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
2745
+ *
2746
+ * @param {string} projectLocationDataStoreConversationName
2747
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2748
+ * @returns {string} A string representing the conversation.
2749
+ */
2750
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2751
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
2752
+ }
2753
+ /**
2754
+ * Return a fully-qualified projectLocationDataStoreCustomTuningModel resource name string.
2755
+ *
2756
+ * @param {string} project
2757
+ * @param {string} location
2758
+ * @param {string} data_store
2759
+ * @param {string} custom_tuning_model
2760
+ * @returns {string} Resource name string.
2761
+ */
2762
+ projectLocationDataStoreCustomTuningModelPath(project, location, dataStore, customTuningModel) {
2763
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.render({
2764
+ project: project,
2765
+ location: location,
2766
+ data_store: dataStore,
2767
+ custom_tuning_model: customTuningModel,
2768
+ });
2769
+ }
2770
+ /**
2771
+ * Parse the project from ProjectLocationDataStoreCustomTuningModel resource.
2772
+ *
2773
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2774
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2775
+ * @returns {string} A string representing the project.
2776
+ */
2777
+ matchProjectFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2778
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).project;
2779
+ }
2780
+ /**
2781
+ * Parse the location from ProjectLocationDataStoreCustomTuningModel resource.
2782
+ *
2783
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2784
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2785
+ * @returns {string} A string representing the location.
2786
+ */
2787
+ matchLocationFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2788
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).location;
2789
+ }
2790
+ /**
2791
+ * Parse the data_store from ProjectLocationDataStoreCustomTuningModel resource.
2792
+ *
2793
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2794
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2795
+ * @returns {string} A string representing the data_store.
2796
+ */
2797
+ matchDataStoreFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2798
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).data_store;
2799
+ }
2800
+ /**
2801
+ * Parse the custom_tuning_model from ProjectLocationDataStoreCustomTuningModel resource.
2802
+ *
2803
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2804
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2805
+ * @returns {string} A string representing the custom_tuning_model.
2806
+ */
2807
+ matchCustomTuningModelFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2808
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).custom_tuning_model;
2809
+ }
2810
+ /**
2811
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
2812
+ *
2813
+ * @param {string} project
2814
+ * @param {string} location
2815
+ * @param {string} data_store
2816
+ * @returns {string} Resource name string.
2817
+ */
2818
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
2819
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
2820
+ project: project,
2821
+ location: location,
2822
+ data_store: dataStore,
2823
+ });
2824
+ }
2825
+ /**
2826
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
2827
+ *
2828
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2829
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2830
+ * @returns {string} A string representing the project.
2831
+ */
2832
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2833
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
2834
+ }
2835
+ /**
2836
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
2837
+ *
2838
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2839
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2840
+ * @returns {string} A string representing the location.
2841
+ */
2842
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2843
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
2844
+ }
2845
+ /**
2846
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
2847
+ *
2848
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2849
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2850
+ * @returns {string} A string representing the data_store.
2851
+ */
2852
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2853
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
2854
+ }
2855
+ /**
2856
+ * Return a fully-qualified projectLocationDataStoreSchema resource name string.
2857
+ *
2858
+ * @param {string} project
2859
+ * @param {string} location
2860
+ * @param {string} data_store
2861
+ * @param {string} schema
2862
+ * @returns {string} Resource name string.
2863
+ */
2864
+ projectLocationDataStoreSchemaPath(project, location, dataStore, schema) {
2865
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.render({
2866
+ project: project,
2867
+ location: location,
2868
+ data_store: dataStore,
2869
+ schema: schema,
2870
+ });
2871
+ }
2872
+ /**
2873
+ * Parse the project from ProjectLocationDataStoreSchema resource.
2874
+ *
2875
+ * @param {string} projectLocationDataStoreSchemaName
2876
+ * A fully-qualified path representing project_location_data_store_schema resource.
2877
+ * @returns {string} A string representing the project.
2878
+ */
2879
+ matchProjectFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2880
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).project;
2881
+ }
2882
+ /**
2883
+ * Parse the location from ProjectLocationDataStoreSchema resource.
2884
+ *
2885
+ * @param {string} projectLocationDataStoreSchemaName
2886
+ * A fully-qualified path representing project_location_data_store_schema resource.
2887
+ * @returns {string} A string representing the location.
2888
+ */
2889
+ matchLocationFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2890
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).location;
2891
+ }
2892
+ /**
2893
+ * Parse the data_store from ProjectLocationDataStoreSchema resource.
2894
+ *
2895
+ * @param {string} projectLocationDataStoreSchemaName
2896
+ * A fully-qualified path representing project_location_data_store_schema resource.
2897
+ * @returns {string} A string representing the data_store.
2898
+ */
2899
+ matchDataStoreFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2900
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).data_store;
2901
+ }
2902
+ /**
2903
+ * Parse the schema from ProjectLocationDataStoreSchema resource.
2904
+ *
2905
+ * @param {string} projectLocationDataStoreSchemaName
2906
+ * A fully-qualified path representing project_location_data_store_schema resource.
2907
+ * @returns {string} A string representing the schema.
2908
+ */
2909
+ matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2910
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
2911
+ }
2912
+ /**
2913
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
2914
+ *
2915
+ * @param {string} project
2916
+ * @param {string} location
2917
+ * @param {string} data_store
2918
+ * @param {string} serving_config
2919
+ * @returns {string} Resource name string.
2920
+ */
2921
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
2922
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
2923
+ project: project,
2924
+ location: location,
2925
+ data_store: dataStore,
2926
+ serving_config: servingConfig,
2927
+ });
2928
+ }
2929
+ /**
2930
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
2931
+ *
2932
+ * @param {string} projectLocationDataStoreServingConfigName
2933
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2934
+ * @returns {string} A string representing the project.
2935
+ */
2936
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2937
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
2938
+ }
2939
+ /**
2940
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
2941
+ *
2942
+ * @param {string} projectLocationDataStoreServingConfigName
2943
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2944
+ * @returns {string} A string representing the location.
2945
+ */
2946
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2947
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
2948
+ }
2949
+ /**
2950
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
2951
+ *
2952
+ * @param {string} projectLocationDataStoreServingConfigName
2953
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2954
+ * @returns {string} A string representing the data_store.
2955
+ */
2956
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2957
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
2958
+ }
2959
+ /**
2960
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
2961
+ *
2962
+ * @param {string} projectLocationDataStoreServingConfigName
2963
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2964
+ * @returns {string} A string representing the serving_config.
2965
+ */
2966
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2967
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2968
+ }
2969
+ /**
2970
+ * Return a fully-qualified projectLocationDataStoreSession resource name string.
2971
+ *
2972
+ * @param {string} project
2973
+ * @param {string} location
2974
+ * @param {string} data_store
2975
+ * @param {string} session
2976
+ * @returns {string} Resource name string.
2977
+ */
2978
+ projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2979
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2980
+ project: project,
2981
+ location: location,
2982
+ data_store: dataStore,
2983
+ session: session,
2984
+ });
2985
+ }
2986
+ /**
2987
+ * Parse the project from ProjectLocationDataStoreSession resource.
2988
+ *
2989
+ * @param {string} projectLocationDataStoreSessionName
2990
+ * A fully-qualified path representing project_location_data_store_session resource.
2991
+ * @returns {string} A string representing the project.
2992
+ */
2993
+ matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2994
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2995
+ }
2996
+ /**
2997
+ * Parse the location from ProjectLocationDataStoreSession resource.
2998
+ *
2999
+ * @param {string} projectLocationDataStoreSessionName
3000
+ * A fully-qualified path representing project_location_data_store_session resource.
3001
+ * @returns {string} A string representing the location.
3002
+ */
3003
+ matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3004
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
3005
+ }
3006
+ /**
3007
+ * Parse the data_store from ProjectLocationDataStoreSession resource.
3008
+ *
3009
+ * @param {string} projectLocationDataStoreSessionName
3010
+ * A fully-qualified path representing project_location_data_store_session resource.
3011
+ * @returns {string} A string representing the data_store.
3012
+ */
3013
+ matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3014
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
3015
+ }
3016
+ /**
3017
+ * Parse the session from ProjectLocationDataStoreSession resource.
3018
+ *
3019
+ * @param {string} projectLocationDataStoreSessionName
3020
+ * A fully-qualified path representing project_location_data_store_session resource.
3021
+ * @returns {string} A string representing the session.
3022
+ */
3023
+ matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3024
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
3025
+ }
3026
+ /**
3027
+ * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
3028
+ *
3029
+ * @param {string} project
3030
+ * @param {string} location
3031
+ * @param {string} data_store
3032
+ * @param {string} session
3033
+ * @param {string} answer
3034
+ * @returns {string} Resource name string.
3035
+ */
3036
+ projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
3037
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
3038
+ project: project,
3039
+ location: location,
3040
+ data_store: dataStore,
3041
+ session: session,
3042
+ answer: answer,
3043
+ });
3044
+ }
3045
+ /**
3046
+ * Parse the project from ProjectLocationDataStoreSessionAnswer resource.
3047
+ *
3048
+ * @param {string} projectLocationDataStoreSessionAnswerName
3049
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
3050
+ * @returns {string} A string representing the project.
3051
+ */
3052
+ matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
3053
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
3054
+ }
3055
+ /**
3056
+ * Parse the location from ProjectLocationDataStoreSessionAnswer resource.
3057
+ *
3058
+ * @param {string} projectLocationDataStoreSessionAnswerName
3059
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
3060
+ * @returns {string} A string representing the location.
3061
+ */
3062
+ matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
3063
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
3064
+ }
3065
+ /**
3066
+ * Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
3067
+ *
3068
+ * @param {string} projectLocationDataStoreSessionAnswerName
3069
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
3070
+ * @returns {string} A string representing the data_store.
3071
+ */
3072
+ matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
3073
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
3074
+ }
3075
+ /**
3076
+ * Parse the session from ProjectLocationDataStoreSessionAnswer resource.
3077
+ *
3078
+ * @param {string} projectLocationDataStoreSessionAnswerName
3079
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
3080
+ * @returns {string} A string representing the session.
3081
+ */
3082
+ matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
3083
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
3084
+ }
3085
+ /**
3086
+ * Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
3087
+ *
3088
+ * @param {string} projectLocationDataStoreSessionAnswerName
3089
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
3090
+ * @returns {string} A string representing the answer.
3091
+ */
3092
+ matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
3093
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
3094
+ }
3095
+ /**
3096
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
3097
+ *
3098
+ * @param {string} project
3099
+ * @param {string} location
3100
+ * @param {string} data_store
3101
+ * @returns {string} Resource name string.
3102
+ */
3103
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
3104
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
3105
+ project: project,
3106
+ location: location,
3107
+ data_store: dataStore,
3108
+ });
3109
+ }
3110
+ /**
3111
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
3112
+ *
3113
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
3114
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
3115
+ * @returns {string} A string representing the project.
3116
+ */
3117
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
3118
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
3119
+ }
3120
+ /**
3121
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
3122
+ *
3123
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
3124
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
3125
+ * @returns {string} A string representing the location.
3126
+ */
3127
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
3128
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
3129
+ }
3130
+ /**
3131
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
3132
+ *
3133
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
3134
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
3135
+ * @returns {string} A string representing the data_store.
3136
+ */
3137
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
3138
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
3139
+ }
3140
+ /**
3141
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
3142
+ *
3143
+ * @param {string} project
3144
+ * @param {string} location
3145
+ * @param {string} data_store
3146
+ * @param {string} sitemap
3147
+ * @returns {string} Resource name string.
3148
+ */
3149
+ projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
3150
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
3151
+ project: project,
3152
+ location: location,
3153
+ data_store: dataStore,
3154
+ sitemap: sitemap,
3155
+ });
3156
+ }
3157
+ /**
3158
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3159
+ *
3160
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3161
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3162
+ * @returns {string} A string representing the project.
3163
+ */
3164
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3165
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
3166
+ }
3167
+ /**
3168
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3169
+ *
3170
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3171
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3172
+ * @returns {string} A string representing the location.
3173
+ */
3174
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3175
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
3176
+ }
3177
+ /**
3178
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3179
+ *
3180
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3181
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3182
+ * @returns {string} A string representing the data_store.
3183
+ */
3184
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3185
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
3186
+ }
3187
+ /**
3188
+ * Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3189
+ *
3190
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3191
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3192
+ * @returns {string} A string representing the sitemap.
3193
+ */
3194
+ matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3195
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
3196
+ }
3197
+ /**
3198
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
3199
+ *
3200
+ * @param {string} project
3201
+ * @param {string} location
3202
+ * @param {string} data_store
3203
+ * @param {string} target_site
3204
+ * @returns {string} Resource name string.
3205
+ */
3206
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
3207
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
3208
+ project: project,
3209
+ location: location,
3210
+ data_store: dataStore,
3211
+ target_site: targetSite,
3212
+ });
3213
+ }
3214
+ /**
3215
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
3216
+ *
3217
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
3218
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
3219
+ * @returns {string} A string representing the project.
3220
+ */
3221
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
3222
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
3223
+ }
3224
+ /**
3225
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
3226
+ *
3227
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
3228
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
3229
+ * @returns {string} A string representing the location.
3230
+ */
3231
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
3232
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
3233
+ }
3234
+ /**
3235
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
3236
+ *
3237
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
3238
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
3239
+ * @returns {string} A string representing the data_store.
3240
+ */
3241
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
3242
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
3243
+ }
3244
+ /**
3245
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
3246
+ *
3247
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
3248
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
3249
+ * @returns {string} A string representing the target_site.
3250
+ */
3251
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
3252
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
3253
+ }
3254
+ /**
3255
+ * Terminate the gRPC channel and close the client.
3256
+ *
3257
+ * The client will no longer be usable and all future behavior is undefined.
3258
+ * @returns {Promise} A promise that resolves when the client is closed.
3259
+ */
3260
+ close() {
3261
+ if (this.cmekConfigServiceStub && !this._terminated) {
3262
+ return this.cmekConfigServiceStub.then(stub => {
3263
+ this._log.info('ending gRPC channel');
3264
+ this._terminated = true;
3265
+ stub.close();
3266
+ this.locationsClient.close().catch(err => { throw err; });
3267
+ void this.operationsClient.close();
3268
+ });
3269
+ }
3270
+ return Promise.resolve();
3271
+ }
3272
+ }
3273
+ exports.CmekConfigServiceClient = CmekConfigServiceClient;
3274
+ //# sourceMappingURL=cmek_config_service_client.js.map