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