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