@google-cloud/discoveryengine 2.0.1 → 2.2.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 (167) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +7 -2
  3. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +54 -2
  4. package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +2 -1
  5. package/build/protos/google/cloud/discoveryengine/v1/common.proto +35 -6
  6. package/build/protos/google/cloud/discoveryengine/v1/control.proto +113 -2
  7. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +168 -2
  8. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +23 -4
  9. package/build/protos/google/cloud/discoveryengine/v1/document.proto +7 -2
  10. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +1 -1
  11. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +16 -3
  12. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +70 -9
  13. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +20 -1
  14. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +9 -5
  15. package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +3 -1
  16. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +2 -2
  17. package/build/protos/google/cloud/discoveryengine/v1/safety.proto +107 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +96 -8
  19. package/build/protos/google/cloud/discoveryengine/v1/serving_config.proto +271 -0
  20. package/build/protos/google/cloud/discoveryengine/v1/serving_config_service.proto +75 -0
  21. package/build/protos/google/cloud/discoveryengine/v1/session.proto +19 -0
  22. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +27 -3
  23. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +184 -5
  24. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +34 -0
  25. package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +16 -4
  26. package/build/protos/protos.d.ts +4390 -300
  27. package/build/protos/protos.js +13785 -2922
  28. package/build/protos/protos.json +1355 -14
  29. package/build/src/index.d.ts +4 -1
  30. package/build/src/index.js +4 -21
  31. package/build/src/v1/completion_service_client.d.ts +313 -76
  32. package/build/src/v1/completion_service_client.js +451 -262
  33. package/build/src/v1/completion_service_proto_list.json +3 -0
  34. package/build/src/v1/control_service_client.d.ts +318 -81
  35. package/build/src/v1/control_service_client.js +422 -132
  36. package/build/src/v1/control_service_proto_list.json +3 -0
  37. package/build/src/v1/conversational_search_service_client.d.ts +341 -134
  38. package/build/src/v1/conversational_search_service_client.js +395 -223
  39. package/build/src/v1/conversational_search_service_client_config.json +5 -0
  40. package/build/src/v1/conversational_search_service_proto_list.json +3 -0
  41. package/build/src/v1/data_store_service_client.d.ts +359 -122
  42. package/build/src/v1/data_store_service_client.js +460 -280
  43. package/build/src/v1/data_store_service_proto_list.json +3 -0
  44. package/build/src/v1/document_service_client.d.ts +364 -121
  45. package/build/src/v1/document_service_client.js +469 -300
  46. package/build/src/v1/document_service_proto_list.json +3 -0
  47. package/build/src/v1/engine_service_client.d.ts +340 -103
  48. package/build/src/v1/engine_service_client.js +460 -279
  49. package/build/src/v1/engine_service_proto_list.json +3 -0
  50. package/build/src/v1/gapic_metadata.json +59 -0
  51. package/build/src/v1/grounded_generation_service_client.d.ts +286 -51
  52. package/build/src/v1/grounded_generation_service_client.js +405 -100
  53. package/build/src/v1/grounded_generation_service_proto_list.json +3 -0
  54. package/build/src/v1/index.d.ts +1 -0
  55. package/build/src/v1/index.js +3 -1
  56. package/build/src/v1/project_service_client.d.ts +313 -76
  57. package/build/src/v1/project_service_client.js +434 -222
  58. package/build/src/v1/project_service_proto_list.json +3 -0
  59. package/build/src/v1/rank_service_client.d.ts +285 -48
  60. package/build/src/v1/rank_service_client.js +398 -85
  61. package/build/src/v1/rank_service_proto_list.json +3 -0
  62. package/build/src/v1/recommendation_service_client.d.ts +142 -49
  63. package/build/src/v1/recommendation_service_client.js +198 -82
  64. package/build/src/v1/recommendation_service_proto_list.json +3 -0
  65. package/build/src/v1/schema_service_client.d.ts +348 -111
  66. package/build/src/v1/schema_service_client.js +457 -273
  67. package/build/src/v1/schema_service_proto_list.json +3 -0
  68. package/build/src/v1/search_service_client.d.ts +748 -559
  69. package/build/src/v1/search_service_client.js +302 -133
  70. package/build/src/v1/search_service_proto_list.json +3 -0
  71. package/build/src/v1/search_tuning_service_client.d.ts +314 -77
  72. package/build/src/v1/search_tuning_service_client.js +439 -235
  73. package/build/src/v1/search_tuning_service_proto_list.json +3 -0
  74. package/build/src/v1/serving_config_service_client.d.ts +1851 -0
  75. package/build/src/v1/serving_config_service_client.js +2642 -0
  76. package/build/src/v1/serving_config_service_client_config.json +30 -0
  77. package/build/src/v1/serving_config_service_proto_list.json +39 -0
  78. package/build/src/v1/site_search_engine_service_client.d.ts +504 -151
  79. package/build/src/v1/site_search_engine_service_client.js +625 -351
  80. package/build/src/v1/site_search_engine_service_client_config.json +12 -0
  81. package/build/src/v1/site_search_engine_service_proto_list.json +3 -0
  82. package/build/src/v1/user_event_service_client.d.ts +335 -86
  83. package/build/src/v1/user_event_service_client.js +447 -253
  84. package/build/src/v1/user_event_service_proto_list.json +3 -0
  85. package/build/src/v1alpha/acl_config_service_client.d.ts +49 -49
  86. package/build/src/v1alpha/acl_config_service_client.js +82 -106
  87. package/build/src/v1alpha/chunk_service_client.d.ts +88 -88
  88. package/build/src/v1alpha/chunk_service_client.js +92 -120
  89. package/build/src/v1alpha/completion_service_client.d.ts +77 -77
  90. package/build/src/v1alpha/completion_service_client.js +134 -280
  91. package/build/src/v1alpha/control_service_client.d.ts +85 -85
  92. package/build/src/v1alpha/control_service_client.js +105 -151
  93. package/build/src/v1alpha/conversational_search_service_client.d.ts +143 -143
  94. package/build/src/v1alpha/conversational_search_service_client.js +145 -237
  95. package/build/src/v1alpha/data_store_service_client.d.ts +126 -126
  96. package/build/src/v1alpha/data_store_service_client.js +151 -316
  97. package/build/src/v1alpha/document_service_client.d.ts +126 -126
  98. package/build/src/v1alpha/document_service_client.js +156 -328
  99. package/build/src/v1alpha/engine_service_client.d.ts +106 -106
  100. package/build/src/v1alpha/engine_service_client.js +155 -325
  101. package/build/src/v1alpha/estimate_billing_service_client.d.ts +76 -76
  102. package/build/src/v1alpha/estimate_billing_service_client.js +118 -243
  103. package/build/src/v1alpha/evaluation_service_client.d.ts +161 -161
  104. package/build/src/v1alpha/evaluation_service_client.js +143 -295
  105. package/build/src/v1alpha/grounded_generation_service_client.d.ts +48 -48
  106. package/build/src/v1alpha/grounded_generation_service_client.js +79 -100
  107. package/build/src/v1alpha/project_service_client.d.ts +78 -78
  108. package/build/src/v1alpha/project_service_client.js +126 -262
  109. package/build/src/v1alpha/rank_service_client.d.ts +47 -47
  110. package/build/src/v1alpha/rank_service_client.js +81 -104
  111. package/build/src/v1alpha/recommendation_service_client.d.ts +47 -47
  112. package/build/src/v1alpha/recommendation_service_client.js +79 -100
  113. package/build/src/v1alpha/sample_query_service_client.d.ts +123 -123
  114. package/build/src/v1alpha/sample_query_service_client.js +144 -301
  115. package/build/src/v1alpha/sample_query_set_service_client.d.ts +94 -94
  116. package/build/src/v1alpha/sample_query_set_service_client.js +106 -153
  117. package/build/src/v1alpha/schema_service_client.d.ts +112 -112
  118. package/build/src/v1alpha/schema_service_client.js +140 -292
  119. package/build/src/v1alpha/search_service_client.d.ts +327 -327
  120. package/build/src/v1alpha/search_service_client.js +88 -112
  121. package/build/src/v1alpha/search_tuning_service_client.d.ts +77 -77
  122. package/build/src/v1alpha/search_tuning_service_client.js +122 -253
  123. package/build/src/v1alpha/serving_config_service_client.d.ts +75 -75
  124. package/build/src/v1alpha/serving_config_service_client.js +97 -133
  125. package/build/src/v1alpha/site_search_engine_service_client.d.ts +151 -151
  126. package/build/src/v1alpha/site_search_engine_service_client.js +184 -387
  127. package/build/src/v1alpha/user_event_service_client.d.ts +78 -78
  128. package/build/src/v1alpha/user_event_service_client.js +130 -271
  129. package/build/src/v1beta/completion_service_client.d.ts +78 -78
  130. package/build/src/v1beta/completion_service_client.js +136 -279
  131. package/build/src/v1beta/control_service_client.d.ts +84 -84
  132. package/build/src/v1beta/control_service_client.js +103 -147
  133. package/build/src/v1beta/conversational_search_service_client.d.ts +142 -142
  134. package/build/src/v1beta/conversational_search_service_client.js +143 -233
  135. package/build/src/v1beta/data_store_service_client.d.ts +124 -124
  136. package/build/src/v1beta/data_store_service_client.js +141 -288
  137. package/build/src/v1beta/document_service_client.d.ts +124 -124
  138. package/build/src/v1beta/document_service_client.js +150 -309
  139. package/build/src/v1beta/engine_service_client.d.ts +106 -106
  140. package/build/src/v1beta/engine_service_client.js +153 -315
  141. package/build/src/v1beta/evaluation_service_client.d.ts +161 -161
  142. package/build/src/v1beta/evaluation_service_client.js +141 -285
  143. package/build/src/v1beta/grounded_generation_service_client.d.ts +49 -49
  144. package/build/src/v1beta/grounded_generation_service_client.js +86 -114
  145. package/build/src/v1beta/project_service_client.d.ts +76 -76
  146. package/build/src/v1beta/project_service_client.js +115 -231
  147. package/build/src/v1beta/rank_service_client.d.ts +47 -47
  148. package/build/src/v1beta/rank_service_client.js +79 -99
  149. package/build/src/v1beta/recommendation_service_client.d.ts +47 -47
  150. package/build/src/v1beta/recommendation_service_client.js +77 -96
  151. package/build/src/v1beta/sample_query_service_client.d.ts +123 -123
  152. package/build/src/v1beta/sample_query_service_client.js +142 -291
  153. package/build/src/v1beta/sample_query_set_service_client.d.ts +94 -94
  154. package/build/src/v1beta/sample_query_set_service_client.js +104 -149
  155. package/build/src/v1beta/schema_service_client.d.ts +111 -111
  156. package/build/src/v1beta/schema_service_client.js +138 -282
  157. package/build/src/v1beta/search_service_client.d.ts +665 -665
  158. package/build/src/v1beta/search_service_client.js +97 -128
  159. package/build/src/v1beta/search_tuning_service_client.d.ts +77 -77
  160. package/build/src/v1beta/search_tuning_service_client.js +120 -243
  161. package/build/src/v1beta/serving_config_service_client.d.ts +75 -75
  162. package/build/src/v1beta/serving_config_service_client.js +95 -129
  163. package/build/src/v1beta/site_search_engine_service_client.d.ts +151 -151
  164. package/build/src/v1beta/site_search_engine_service_client.js +186 -386
  165. package/build/src/v1beta/user_event_service_client.d.ts +78 -78
  166. package/build/src/v1beta/user_event_service_client.js +128 -261
  167. package/package.json +4 -4
@@ -0,0 +1,2642 @@
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.ServingConfigServiceClient = 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/serving_config_service_client_config.json`.
26
+ * This file defines retry strategy and timeouts for all API methods in this library.
27
+ */
28
+ const gapicConfig = require("./serving_config_service_client_config.json");
29
+ const version = require('../../../package.json').version;
30
+ /**
31
+ * Service for operations related to
32
+ * {@link protos.google.cloud.discoveryengine.v1.ServingConfig|ServingConfig}.
33
+ * @class
34
+ * @memberof v1
35
+ */
36
+ class ServingConfigServiceClient {
37
+ _terminated = false;
38
+ _opts;
39
+ _providedCustomServicePath;
40
+ _gaxModule;
41
+ _gaxGrpc;
42
+ _protos;
43
+ _defaults;
44
+ _universeDomain;
45
+ _servicePath;
46
+ _log = google_gax_1.loggingUtils.log('discoveryengine');
47
+ auth;
48
+ descriptors = {
49
+ page: {},
50
+ stream: {},
51
+ longrunning: {},
52
+ batching: {},
53
+ };
54
+ warn;
55
+ innerApiCalls;
56
+ locationsClient;
57
+ pathTemplates;
58
+ servingConfigServiceStub;
59
+ /**
60
+ * Construct an instance of ServingConfigServiceClient.
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 ServingConfigServiceClient({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
+ projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
168
+ projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
169
+ projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
170
+ projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
171
+ projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
172
+ projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
173
+ projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
174
+ projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
175
+ projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
176
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
177
+ projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
178
+ projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
179
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
180
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
181
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
182
+ projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
183
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
184
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
185
+ projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
186
+ projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
187
+ projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
188
+ projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
189
+ projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
190
+ projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
191
+ projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
192
+ projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
193
+ projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
194
+ projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
195
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
196
+ projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
197
+ projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
198
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
199
+ projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
200
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
201
+ };
202
+ // Put together the default options sent with requests.
203
+ this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.ServingConfigService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
204
+ // Set up a dictionary of "inner API calls"; the core implementation
205
+ // of calling the API is handled in `google-gax`, with this code
206
+ // merely providing the destination and request information.
207
+ this.innerApiCalls = {};
208
+ // Add a warn function to the client constructor so it can be easily tested.
209
+ this.warn = this._gaxModule.warn;
210
+ }
211
+ /**
212
+ * Initialize the client.
213
+ * Performs asynchronous operations (such as authentication) and prepares the client.
214
+ * This function will be called automatically when any class method is called for the
215
+ * first time, but if you need to initialize it before calling an actual method,
216
+ * feel free to call initialize() directly.
217
+ *
218
+ * You can await on this method if you want to make sure the client is initialized.
219
+ *
220
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
221
+ */
222
+ initialize() {
223
+ // If the client stub promise is already initialized, return immediately.
224
+ if (this.servingConfigServiceStub) {
225
+ return this.servingConfigServiceStub;
226
+ }
227
+ // Put together the "service stub" for
228
+ // google.cloud.discoveryengine.v1.ServingConfigService.
229
+ this.servingConfigServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
230
+ this._protos.lookupService('google.cloud.discoveryengine.v1.ServingConfigService') :
231
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
232
+ this._protos.google.cloud.discoveryengine.v1.ServingConfigService, this._opts, this._providedCustomServicePath);
233
+ // Iterate over each of the methods that the service provides
234
+ // and create an API call method for each.
235
+ const servingConfigServiceStubMethods = ['updateServingConfig'];
236
+ for (const methodName of servingConfigServiceStubMethods) {
237
+ const callPromise = this.servingConfigServiceStub.then(stub => (...args) => {
238
+ if (this._terminated) {
239
+ return Promise.reject('The client has already been closed.');
240
+ }
241
+ const func = stub[methodName];
242
+ return func.apply(stub, args);
243
+ }, (err) => () => {
244
+ throw err;
245
+ });
246
+ const descriptor = undefined;
247
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
248
+ this.innerApiCalls[methodName] = apiCall;
249
+ }
250
+ return this.servingConfigServiceStub;
251
+ }
252
+ /**
253
+ * The DNS address for this API service.
254
+ * @deprecated Use the apiEndpoint method of the client instance.
255
+ * @returns {string} The DNS address for this service.
256
+ */
257
+ static get servicePath() {
258
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
259
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
260
+ }
261
+ return 'discoveryengine.googleapis.com';
262
+ }
263
+ /**
264
+ * The DNS address for this API service - same as servicePath.
265
+ * @deprecated Use the apiEndpoint method of the client instance.
266
+ * @returns {string} The DNS address for this service.
267
+ */
268
+ static get apiEndpoint() {
269
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
270
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
271
+ }
272
+ return 'discoveryengine.googleapis.com';
273
+ }
274
+ /**
275
+ * The DNS address for this API service.
276
+ * @returns {string} The DNS address for this service.
277
+ */
278
+ get apiEndpoint() {
279
+ return this._servicePath;
280
+ }
281
+ get universeDomain() {
282
+ return this._universeDomain;
283
+ }
284
+ /**
285
+ * The port for this API service.
286
+ * @returns {number} The default port for this service.
287
+ */
288
+ static get port() {
289
+ return 443;
290
+ }
291
+ /**
292
+ * The scopes needed to make gRPC calls for every method defined
293
+ * in this service.
294
+ * @returns {string[]} List of default scopes.
295
+ */
296
+ static get scopes() {
297
+ return [
298
+ 'https://www.googleapis.com/auth/cloud-platform'
299
+ ];
300
+ }
301
+ /**
302
+ * Return the project ID used by this class.
303
+ * @returns {Promise} A promise that resolves to string containing the project ID.
304
+ */
305
+ getProjectId(callback) {
306
+ if (callback) {
307
+ this.auth.getProjectId(callback);
308
+ return;
309
+ }
310
+ return this.auth.getProjectId();
311
+ }
312
+ updateServingConfig(request, optionsOrCallback, callback) {
313
+ request = request || {};
314
+ let options;
315
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
316
+ callback = optionsOrCallback;
317
+ options = {};
318
+ }
319
+ else {
320
+ options = optionsOrCallback;
321
+ }
322
+ options = options || {};
323
+ options.otherArgs = options.otherArgs || {};
324
+ options.otherArgs.headers = options.otherArgs.headers || {};
325
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
326
+ 'serving_config.name': request.servingConfig.name ?? '',
327
+ });
328
+ this.initialize().catch(err => { throw err; });
329
+ this._log.info('updateServingConfig request %j', request);
330
+ const wrappedCallback = callback
331
+ ? (error, response, options, rawResponse) => {
332
+ this._log.info('updateServingConfig response %j', response);
333
+ callback(error, response, options, rawResponse); // We verified callback above.
334
+ }
335
+ : undefined;
336
+ return this.innerApiCalls.updateServingConfig(request, options, wrappedCallback)
337
+ ?.then(([response, options, rawResponse]) => {
338
+ this._log.info('updateServingConfig response %j', response);
339
+ return [response, options, rawResponse];
340
+ });
341
+ }
342
+ /**
343
+ * Gets information about a location.
344
+ *
345
+ * @param {Object} request
346
+ * The request object that will be sent.
347
+ * @param {string} request.name
348
+ * Resource name for the location.
349
+ * @param {object} [options]
350
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
351
+ * @returns {Promise} - The promise which resolves to an array.
352
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
353
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
354
+ * for more details and examples.
355
+ * @example
356
+ * ```
357
+ * const [response] = await client.getLocation(request);
358
+ * ```
359
+ */
360
+ getLocation(request, options, callback) {
361
+ return this.locationsClient.getLocation(request, options, callback);
362
+ }
363
+ /**
364
+ * Lists information about the supported locations for this service. Returns an iterable object.
365
+ *
366
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
367
+ * @param {Object} request
368
+ * The request object that will be sent.
369
+ * @param {string} request.name
370
+ * The resource that owns the locations collection, if applicable.
371
+ * @param {string} request.filter
372
+ * The standard list filter.
373
+ * @param {number} request.pageSize
374
+ * The standard list page size.
375
+ * @param {string} request.pageToken
376
+ * The standard list page token.
377
+ * @param {object} [options]
378
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
379
+ * @returns {Object}
380
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
381
+ * When you iterate the returned iterable, each element will be an object representing
382
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
383
+ * so you can stop the iteration when you don't need more results.
384
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
385
+ * for more details and examples.
386
+ * @example
387
+ * ```
388
+ * const iterable = client.listLocationsAsync(request);
389
+ * for await (const response of iterable) {
390
+ * // process response
391
+ * }
392
+ * ```
393
+ */
394
+ listLocationsAsync(request, options) {
395
+ return this.locationsClient.listLocationsAsync(request, options);
396
+ }
397
+ // --------------------
398
+ // -- Path templates --
399
+ // --------------------
400
+ /**
401
+ * Return a fully-qualified engine resource name string.
402
+ *
403
+ * @param {string} project
404
+ * @param {string} location
405
+ * @param {string} collection
406
+ * @param {string} engine
407
+ * @returns {string} Resource name string.
408
+ */
409
+ enginePath(project, location, collection, engine) {
410
+ return this.pathTemplates.enginePathTemplate.render({
411
+ project: project,
412
+ location: location,
413
+ collection: collection,
414
+ engine: engine,
415
+ });
416
+ }
417
+ /**
418
+ * Parse the project from Engine resource.
419
+ *
420
+ * @param {string} engineName
421
+ * A fully-qualified path representing Engine resource.
422
+ * @returns {string} A string representing the project.
423
+ */
424
+ matchProjectFromEngineName(engineName) {
425
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
426
+ }
427
+ /**
428
+ * Parse the location from Engine resource.
429
+ *
430
+ * @param {string} engineName
431
+ * A fully-qualified path representing Engine resource.
432
+ * @returns {string} A string representing the location.
433
+ */
434
+ matchLocationFromEngineName(engineName) {
435
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
436
+ }
437
+ /**
438
+ * Parse the collection from Engine resource.
439
+ *
440
+ * @param {string} engineName
441
+ * A fully-qualified path representing Engine resource.
442
+ * @returns {string} A string representing the collection.
443
+ */
444
+ matchCollectionFromEngineName(engineName) {
445
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
446
+ }
447
+ /**
448
+ * Parse the engine from Engine resource.
449
+ *
450
+ * @param {string} engineName
451
+ * A fully-qualified path representing Engine resource.
452
+ * @returns {string} A string representing the engine.
453
+ */
454
+ matchEngineFromEngineName(engineName) {
455
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
456
+ }
457
+ /**
458
+ * Return a fully-qualified project resource name string.
459
+ *
460
+ * @param {string} project
461
+ * @returns {string} Resource name string.
462
+ */
463
+ projectPath(project) {
464
+ return this.pathTemplates.projectPathTemplate.render({
465
+ project: project,
466
+ });
467
+ }
468
+ /**
469
+ * Parse the project from Project resource.
470
+ *
471
+ * @param {string} projectName
472
+ * A fully-qualified path representing Project resource.
473
+ * @returns {string} A string representing the project.
474
+ */
475
+ matchProjectFromProjectName(projectName) {
476
+ return this.pathTemplates.projectPathTemplate.match(projectName).project;
477
+ }
478
+ /**
479
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
480
+ *
481
+ * @param {string} project
482
+ * @param {string} location
483
+ * @param {string} collection
484
+ * @param {string} data_store
485
+ * @returns {string} Resource name string.
486
+ */
487
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
488
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
489
+ project: project,
490
+ location: location,
491
+ collection: collection,
492
+ data_store: dataStore,
493
+ });
494
+ }
495
+ /**
496
+ * Parse the project from ProjectLocationCollectionDataStore resource.
497
+ *
498
+ * @param {string} projectLocationCollectionDataStoreName
499
+ * A fully-qualified path representing project_location_collection_data_store resource.
500
+ * @returns {string} A string representing the project.
501
+ */
502
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
503
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
504
+ }
505
+ /**
506
+ * Parse the location from ProjectLocationCollectionDataStore resource.
507
+ *
508
+ * @param {string} projectLocationCollectionDataStoreName
509
+ * A fully-qualified path representing project_location_collection_data_store resource.
510
+ * @returns {string} A string representing the location.
511
+ */
512
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
513
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
514
+ }
515
+ /**
516
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
517
+ *
518
+ * @param {string} projectLocationCollectionDataStoreName
519
+ * A fully-qualified path representing project_location_collection_data_store resource.
520
+ * @returns {string} A string representing the collection.
521
+ */
522
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
523
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
524
+ }
525
+ /**
526
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
527
+ *
528
+ * @param {string} projectLocationCollectionDataStoreName
529
+ * A fully-qualified path representing project_location_collection_data_store resource.
530
+ * @returns {string} A string representing the data_store.
531
+ */
532
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
533
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
534
+ }
535
+ /**
536
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
537
+ *
538
+ * @param {string} project
539
+ * @param {string} location
540
+ * @param {string} collection
541
+ * @param {string} data_store
542
+ * @param {string} branch
543
+ * @param {string} document
544
+ * @returns {string} Resource name string.
545
+ */
546
+ projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
547
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
548
+ project: project,
549
+ location: location,
550
+ collection: collection,
551
+ data_store: dataStore,
552
+ branch: branch,
553
+ document: document,
554
+ });
555
+ }
556
+ /**
557
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
558
+ *
559
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
560
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
561
+ * @returns {string} A string representing the project.
562
+ */
563
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
564
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
565
+ }
566
+ /**
567
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
568
+ *
569
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
570
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
571
+ * @returns {string} A string representing the location.
572
+ */
573
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
574
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
575
+ }
576
+ /**
577
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
578
+ *
579
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
580
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
581
+ * @returns {string} A string representing the collection.
582
+ */
583
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
584
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
585
+ }
586
+ /**
587
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
588
+ *
589
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
590
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
591
+ * @returns {string} A string representing the data_store.
592
+ */
593
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
594
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
595
+ }
596
+ /**
597
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
598
+ *
599
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
600
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
601
+ * @returns {string} A string representing the branch.
602
+ */
603
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
604
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
605
+ }
606
+ /**
607
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
608
+ *
609
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
610
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
611
+ * @returns {string} A string representing the document.
612
+ */
613
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
614
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
615
+ }
616
+ /**
617
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
618
+ *
619
+ * @param {string} project
620
+ * @param {string} location
621
+ * @param {string} collection
622
+ * @param {string} data_store
623
+ * @param {string} branch
624
+ * @param {string} document
625
+ * @param {string} chunk
626
+ * @returns {string} Resource name string.
627
+ */
628
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
629
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
630
+ project: project,
631
+ location: location,
632
+ collection: collection,
633
+ data_store: dataStore,
634
+ branch: branch,
635
+ document: document,
636
+ chunk: chunk,
637
+ });
638
+ }
639
+ /**
640
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
641
+ *
642
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
643
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
644
+ * @returns {string} A string representing the project.
645
+ */
646
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
647
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
648
+ }
649
+ /**
650
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
651
+ *
652
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
653
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
654
+ * @returns {string} A string representing the location.
655
+ */
656
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
657
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
658
+ }
659
+ /**
660
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
661
+ *
662
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
663
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
664
+ * @returns {string} A string representing the collection.
665
+ */
666
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
667
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
668
+ }
669
+ /**
670
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
671
+ *
672
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
673
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
674
+ * @returns {string} A string representing the data_store.
675
+ */
676
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
677
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
678
+ }
679
+ /**
680
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
681
+ *
682
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
683
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
684
+ * @returns {string} A string representing the branch.
685
+ */
686
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
687
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
688
+ }
689
+ /**
690
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
691
+ *
692
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
693
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
694
+ * @returns {string} A string representing the document.
695
+ */
696
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
697
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
698
+ }
699
+ /**
700
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
701
+ *
702
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
703
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
704
+ * @returns {string} A string representing the chunk.
705
+ */
706
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
707
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
708
+ }
709
+ /**
710
+ * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
711
+ *
712
+ * @param {string} project
713
+ * @param {string} location
714
+ * @param {string} collection
715
+ * @param {string} data_store
716
+ * @param {string} control
717
+ * @returns {string} Resource name string.
718
+ */
719
+ projectLocationCollectionDataStoreControlPath(project, location, collection, dataStore, control) {
720
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.render({
721
+ project: project,
722
+ location: location,
723
+ collection: collection,
724
+ data_store: dataStore,
725
+ control: control,
726
+ });
727
+ }
728
+ /**
729
+ * Parse the project from ProjectLocationCollectionDataStoreControl resource.
730
+ *
731
+ * @param {string} projectLocationCollectionDataStoreControlName
732
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
733
+ * @returns {string} A string representing the project.
734
+ */
735
+ matchProjectFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
736
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).project;
737
+ }
738
+ /**
739
+ * Parse the location from ProjectLocationCollectionDataStoreControl resource.
740
+ *
741
+ * @param {string} projectLocationCollectionDataStoreControlName
742
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
743
+ * @returns {string} A string representing the location.
744
+ */
745
+ matchLocationFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
746
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).location;
747
+ }
748
+ /**
749
+ * Parse the collection from ProjectLocationCollectionDataStoreControl resource.
750
+ *
751
+ * @param {string} projectLocationCollectionDataStoreControlName
752
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
753
+ * @returns {string} A string representing the collection.
754
+ */
755
+ matchCollectionFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
756
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).collection;
757
+ }
758
+ /**
759
+ * Parse the data_store from ProjectLocationCollectionDataStoreControl resource.
760
+ *
761
+ * @param {string} projectLocationCollectionDataStoreControlName
762
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
763
+ * @returns {string} A string representing the data_store.
764
+ */
765
+ matchDataStoreFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
766
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).data_store;
767
+ }
768
+ /**
769
+ * Parse the control from ProjectLocationCollectionDataStoreControl resource.
770
+ *
771
+ * @param {string} projectLocationCollectionDataStoreControlName
772
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
773
+ * @returns {string} A string representing the control.
774
+ */
775
+ matchControlFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
776
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).control;
777
+ }
778
+ /**
779
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
780
+ *
781
+ * @param {string} project
782
+ * @param {string} location
783
+ * @param {string} collection
784
+ * @param {string} data_store
785
+ * @param {string} conversation
786
+ * @returns {string} Resource name string.
787
+ */
788
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
789
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
790
+ project: project,
791
+ location: location,
792
+ collection: collection,
793
+ data_store: dataStore,
794
+ conversation: conversation,
795
+ });
796
+ }
797
+ /**
798
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
799
+ *
800
+ * @param {string} projectLocationCollectionDataStoreConversationName
801
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
802
+ * @returns {string} A string representing the project.
803
+ */
804
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
805
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
806
+ }
807
+ /**
808
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
809
+ *
810
+ * @param {string} projectLocationCollectionDataStoreConversationName
811
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
812
+ * @returns {string} A string representing the location.
813
+ */
814
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
815
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
816
+ }
817
+ /**
818
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
819
+ *
820
+ * @param {string} projectLocationCollectionDataStoreConversationName
821
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
822
+ * @returns {string} A string representing the collection.
823
+ */
824
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
825
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
826
+ }
827
+ /**
828
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
829
+ *
830
+ * @param {string} projectLocationCollectionDataStoreConversationName
831
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
832
+ * @returns {string} A string representing the data_store.
833
+ */
834
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
835
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
836
+ }
837
+ /**
838
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
839
+ *
840
+ * @param {string} projectLocationCollectionDataStoreConversationName
841
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
842
+ * @returns {string} A string representing the conversation.
843
+ */
844
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
845
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
846
+ }
847
+ /**
848
+ * Return a fully-qualified projectLocationCollectionDataStoreCustomTuningModel resource name string.
849
+ *
850
+ * @param {string} project
851
+ * @param {string} location
852
+ * @param {string} collection
853
+ * @param {string} data_store
854
+ * @param {string} custom_tuning_model
855
+ * @returns {string} Resource name string.
856
+ */
857
+ projectLocationCollectionDataStoreCustomTuningModelPath(project, location, collection, dataStore, customTuningModel) {
858
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.render({
859
+ project: project,
860
+ location: location,
861
+ collection: collection,
862
+ data_store: dataStore,
863
+ custom_tuning_model: customTuningModel,
864
+ });
865
+ }
866
+ /**
867
+ * Parse the project from ProjectLocationCollectionDataStoreCustomTuningModel resource.
868
+ *
869
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
870
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
871
+ * @returns {string} A string representing the project.
872
+ */
873
+ matchProjectFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
874
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).project;
875
+ }
876
+ /**
877
+ * Parse the location from ProjectLocationCollectionDataStoreCustomTuningModel resource.
878
+ *
879
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
880
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
881
+ * @returns {string} A string representing the location.
882
+ */
883
+ matchLocationFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
884
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).location;
885
+ }
886
+ /**
887
+ * Parse the collection from ProjectLocationCollectionDataStoreCustomTuningModel resource.
888
+ *
889
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
890
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
891
+ * @returns {string} A string representing the collection.
892
+ */
893
+ matchCollectionFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
894
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).collection;
895
+ }
896
+ /**
897
+ * Parse the data_store from ProjectLocationCollectionDataStoreCustomTuningModel resource.
898
+ *
899
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
900
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
901
+ * @returns {string} A string representing the data_store.
902
+ */
903
+ matchDataStoreFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
904
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).data_store;
905
+ }
906
+ /**
907
+ * Parse the custom_tuning_model from ProjectLocationCollectionDataStoreCustomTuningModel resource.
908
+ *
909
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
910
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
911
+ * @returns {string} A string representing the custom_tuning_model.
912
+ */
913
+ matchCustomTuningModelFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
914
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).custom_tuning_model;
915
+ }
916
+ /**
917
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
918
+ *
919
+ * @param {string} project
920
+ * @param {string} location
921
+ * @param {string} collection
922
+ * @param {string} data_store
923
+ * @returns {string} Resource name string.
924
+ */
925
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
926
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
927
+ project: project,
928
+ location: location,
929
+ collection: collection,
930
+ data_store: dataStore,
931
+ });
932
+ }
933
+ /**
934
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
935
+ *
936
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
937
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
938
+ * @returns {string} A string representing the project.
939
+ */
940
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
941
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
942
+ }
943
+ /**
944
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
945
+ *
946
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
947
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
948
+ * @returns {string} A string representing the location.
949
+ */
950
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
951
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
952
+ }
953
+ /**
954
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
955
+ *
956
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
957
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
958
+ * @returns {string} A string representing the collection.
959
+ */
960
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
961
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
962
+ }
963
+ /**
964
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
965
+ *
966
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
967
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
968
+ * @returns {string} A string representing the data_store.
969
+ */
970
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
971
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
972
+ }
973
+ /**
974
+ * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
975
+ *
976
+ * @param {string} project
977
+ * @param {string} location
978
+ * @param {string} collection
979
+ * @param {string} data_store
980
+ * @param {string} schema
981
+ * @returns {string} Resource name string.
982
+ */
983
+ projectLocationCollectionDataStoreSchemaPath(project, location, collection, dataStore, schema) {
984
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.render({
985
+ project: project,
986
+ location: location,
987
+ collection: collection,
988
+ data_store: dataStore,
989
+ schema: schema,
990
+ });
991
+ }
992
+ /**
993
+ * Parse the project from ProjectLocationCollectionDataStoreSchema resource.
994
+ *
995
+ * @param {string} projectLocationCollectionDataStoreSchemaName
996
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
997
+ * @returns {string} A string representing the project.
998
+ */
999
+ matchProjectFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1000
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).project;
1001
+ }
1002
+ /**
1003
+ * Parse the location from ProjectLocationCollectionDataStoreSchema resource.
1004
+ *
1005
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1006
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1007
+ * @returns {string} A string representing the location.
1008
+ */
1009
+ matchLocationFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1010
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).location;
1011
+ }
1012
+ /**
1013
+ * Parse the collection from ProjectLocationCollectionDataStoreSchema resource.
1014
+ *
1015
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1016
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1017
+ * @returns {string} A string representing the collection.
1018
+ */
1019
+ matchCollectionFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1020
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).collection;
1021
+ }
1022
+ /**
1023
+ * Parse the data_store from ProjectLocationCollectionDataStoreSchema resource.
1024
+ *
1025
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1026
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1027
+ * @returns {string} A string representing the data_store.
1028
+ */
1029
+ matchDataStoreFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1030
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).data_store;
1031
+ }
1032
+ /**
1033
+ * Parse the schema from ProjectLocationCollectionDataStoreSchema resource.
1034
+ *
1035
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1036
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1037
+ * @returns {string} A string representing the schema.
1038
+ */
1039
+ matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1040
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1041
+ }
1042
+ /**
1043
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1044
+ *
1045
+ * @param {string} project
1046
+ * @param {string} location
1047
+ * @param {string} collection
1048
+ * @param {string} data_store
1049
+ * @param {string} serving_config
1050
+ * @returns {string} Resource name string.
1051
+ */
1052
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1053
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1054
+ project: project,
1055
+ location: location,
1056
+ collection: collection,
1057
+ data_store: dataStore,
1058
+ serving_config: servingConfig,
1059
+ });
1060
+ }
1061
+ /**
1062
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1063
+ *
1064
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1065
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1066
+ * @returns {string} A string representing the project.
1067
+ */
1068
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1069
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1070
+ }
1071
+ /**
1072
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1073
+ *
1074
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1075
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1076
+ * @returns {string} A string representing the location.
1077
+ */
1078
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1079
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1080
+ }
1081
+ /**
1082
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1083
+ *
1084
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1085
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1086
+ * @returns {string} A string representing the collection.
1087
+ */
1088
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1089
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1090
+ }
1091
+ /**
1092
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1093
+ *
1094
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1095
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1096
+ * @returns {string} A string representing the data_store.
1097
+ */
1098
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1099
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1100
+ }
1101
+ /**
1102
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1103
+ *
1104
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1105
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1106
+ * @returns {string} A string representing the serving_config.
1107
+ */
1108
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1109
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1110
+ }
1111
+ /**
1112
+ * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1113
+ *
1114
+ * @param {string} project
1115
+ * @param {string} location
1116
+ * @param {string} collection
1117
+ * @param {string} data_store
1118
+ * @param {string} session
1119
+ * @returns {string} Resource name string.
1120
+ */
1121
+ projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1122
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1123
+ project: project,
1124
+ location: location,
1125
+ collection: collection,
1126
+ data_store: dataStore,
1127
+ session: session,
1128
+ });
1129
+ }
1130
+ /**
1131
+ * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1132
+ *
1133
+ * @param {string} projectLocationCollectionDataStoreSessionName
1134
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1135
+ * @returns {string} A string representing the project.
1136
+ */
1137
+ matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1138
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1139
+ }
1140
+ /**
1141
+ * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1142
+ *
1143
+ * @param {string} projectLocationCollectionDataStoreSessionName
1144
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1145
+ * @returns {string} A string representing the location.
1146
+ */
1147
+ matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1148
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1149
+ }
1150
+ /**
1151
+ * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1152
+ *
1153
+ * @param {string} projectLocationCollectionDataStoreSessionName
1154
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1155
+ * @returns {string} A string representing the collection.
1156
+ */
1157
+ matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1158
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1159
+ }
1160
+ /**
1161
+ * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1162
+ *
1163
+ * @param {string} projectLocationCollectionDataStoreSessionName
1164
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1165
+ * @returns {string} A string representing the data_store.
1166
+ */
1167
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1168
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1169
+ }
1170
+ /**
1171
+ * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1172
+ *
1173
+ * @param {string} projectLocationCollectionDataStoreSessionName
1174
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1175
+ * @returns {string} A string representing the session.
1176
+ */
1177
+ matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1178
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1179
+ }
1180
+ /**
1181
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1182
+ *
1183
+ * @param {string} project
1184
+ * @param {string} location
1185
+ * @param {string} collection
1186
+ * @param {string} data_store
1187
+ * @param {string} session
1188
+ * @param {string} answer
1189
+ * @returns {string} Resource name string.
1190
+ */
1191
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1192
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1193
+ project: project,
1194
+ location: location,
1195
+ collection: collection,
1196
+ data_store: dataStore,
1197
+ session: session,
1198
+ answer: answer,
1199
+ });
1200
+ }
1201
+ /**
1202
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1203
+ *
1204
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1205
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1206
+ * @returns {string} A string representing the project.
1207
+ */
1208
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1209
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1210
+ }
1211
+ /**
1212
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1213
+ *
1214
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1215
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1216
+ * @returns {string} A string representing the location.
1217
+ */
1218
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1219
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1220
+ }
1221
+ /**
1222
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1223
+ *
1224
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1225
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1226
+ * @returns {string} A string representing the collection.
1227
+ */
1228
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1229
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1230
+ }
1231
+ /**
1232
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1233
+ *
1234
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1235
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1236
+ * @returns {string} A string representing the data_store.
1237
+ */
1238
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1239
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1240
+ }
1241
+ /**
1242
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1243
+ *
1244
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1245
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1246
+ * @returns {string} A string representing the session.
1247
+ */
1248
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1249
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1250
+ }
1251
+ /**
1252
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1253
+ *
1254
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1255
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1256
+ * @returns {string} A string representing the answer.
1257
+ */
1258
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1259
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1260
+ }
1261
+ /**
1262
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1263
+ *
1264
+ * @param {string} project
1265
+ * @param {string} location
1266
+ * @param {string} collection
1267
+ * @param {string} data_store
1268
+ * @returns {string} Resource name string.
1269
+ */
1270
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
1271
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
1272
+ project: project,
1273
+ location: location,
1274
+ collection: collection,
1275
+ data_store: dataStore,
1276
+ });
1277
+ }
1278
+ /**
1279
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1280
+ *
1281
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1282
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1283
+ * @returns {string} A string representing the project.
1284
+ */
1285
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1286
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
1287
+ }
1288
+ /**
1289
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1290
+ *
1291
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1292
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1293
+ * @returns {string} A string representing the location.
1294
+ */
1295
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1296
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
1297
+ }
1298
+ /**
1299
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1300
+ *
1301
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1302
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1303
+ * @returns {string} A string representing the collection.
1304
+ */
1305
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1306
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
1307
+ }
1308
+ /**
1309
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1310
+ *
1311
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1312
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1313
+ * @returns {string} A string representing the data_store.
1314
+ */
1315
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1316
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1317
+ }
1318
+ /**
1319
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
1320
+ *
1321
+ * @param {string} project
1322
+ * @param {string} location
1323
+ * @param {string} collection
1324
+ * @param {string} data_store
1325
+ * @param {string} sitemap
1326
+ * @returns {string} Resource name string.
1327
+ */
1328
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
1329
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
1330
+ project: project,
1331
+ location: location,
1332
+ collection: collection,
1333
+ data_store: dataStore,
1334
+ sitemap: sitemap,
1335
+ });
1336
+ }
1337
+ /**
1338
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1339
+ *
1340
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1341
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1342
+ * @returns {string} A string representing the project.
1343
+ */
1344
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1345
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
1346
+ }
1347
+ /**
1348
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1349
+ *
1350
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1351
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1352
+ * @returns {string} A string representing the location.
1353
+ */
1354
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1355
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
1356
+ }
1357
+ /**
1358
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1359
+ *
1360
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1361
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1362
+ * @returns {string} A string representing the collection.
1363
+ */
1364
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1365
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
1366
+ }
1367
+ /**
1368
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1369
+ *
1370
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1371
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1372
+ * @returns {string} A string representing the data_store.
1373
+ */
1374
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1375
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
1376
+ }
1377
+ /**
1378
+ * Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1379
+ *
1380
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1381
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1382
+ * @returns {string} A string representing the sitemap.
1383
+ */
1384
+ matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1385
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
1386
+ }
1387
+ /**
1388
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1389
+ *
1390
+ * @param {string} project
1391
+ * @param {string} location
1392
+ * @param {string} collection
1393
+ * @param {string} data_store
1394
+ * @param {string} target_site
1395
+ * @returns {string} Resource name string.
1396
+ */
1397
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
1398
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1399
+ project: project,
1400
+ location: location,
1401
+ collection: collection,
1402
+ data_store: dataStore,
1403
+ target_site: targetSite,
1404
+ });
1405
+ }
1406
+ /**
1407
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1408
+ *
1409
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1410
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1411
+ * @returns {string} A string representing the project.
1412
+ */
1413
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1414
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
1415
+ }
1416
+ /**
1417
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1418
+ *
1419
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1420
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1421
+ * @returns {string} A string representing the location.
1422
+ */
1423
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1424
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
1425
+ }
1426
+ /**
1427
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1428
+ *
1429
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1430
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1431
+ * @returns {string} A string representing the collection.
1432
+ */
1433
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1434
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
1435
+ }
1436
+ /**
1437
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1438
+ *
1439
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1440
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1441
+ * @returns {string} A string representing the data_store.
1442
+ */
1443
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1444
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
1445
+ }
1446
+ /**
1447
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1448
+ *
1449
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1450
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1451
+ * @returns {string} A string representing the target_site.
1452
+ */
1453
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1454
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1455
+ }
1456
+ /**
1457
+ * Return a fully-qualified projectLocationCollectionEngineControl resource name string.
1458
+ *
1459
+ * @param {string} project
1460
+ * @param {string} location
1461
+ * @param {string} collection
1462
+ * @param {string} engine
1463
+ * @param {string} control
1464
+ * @returns {string} Resource name string.
1465
+ */
1466
+ projectLocationCollectionEngineControlPath(project, location, collection, engine, control) {
1467
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.render({
1468
+ project: project,
1469
+ location: location,
1470
+ collection: collection,
1471
+ engine: engine,
1472
+ control: control,
1473
+ });
1474
+ }
1475
+ /**
1476
+ * Parse the project from ProjectLocationCollectionEngineControl resource.
1477
+ *
1478
+ * @param {string} projectLocationCollectionEngineControlName
1479
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1480
+ * @returns {string} A string representing the project.
1481
+ */
1482
+ matchProjectFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1483
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).project;
1484
+ }
1485
+ /**
1486
+ * Parse the location from ProjectLocationCollectionEngineControl resource.
1487
+ *
1488
+ * @param {string} projectLocationCollectionEngineControlName
1489
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1490
+ * @returns {string} A string representing the location.
1491
+ */
1492
+ matchLocationFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1493
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).location;
1494
+ }
1495
+ /**
1496
+ * Parse the collection from ProjectLocationCollectionEngineControl resource.
1497
+ *
1498
+ * @param {string} projectLocationCollectionEngineControlName
1499
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1500
+ * @returns {string} A string representing the collection.
1501
+ */
1502
+ matchCollectionFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1503
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).collection;
1504
+ }
1505
+ /**
1506
+ * Parse the engine from ProjectLocationCollectionEngineControl resource.
1507
+ *
1508
+ * @param {string} projectLocationCollectionEngineControlName
1509
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1510
+ * @returns {string} A string representing the engine.
1511
+ */
1512
+ matchEngineFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1513
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).engine;
1514
+ }
1515
+ /**
1516
+ * Parse the control from ProjectLocationCollectionEngineControl resource.
1517
+ *
1518
+ * @param {string} projectLocationCollectionEngineControlName
1519
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1520
+ * @returns {string} A string representing the control.
1521
+ */
1522
+ matchControlFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1523
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).control;
1524
+ }
1525
+ /**
1526
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1527
+ *
1528
+ * @param {string} project
1529
+ * @param {string} location
1530
+ * @param {string} collection
1531
+ * @param {string} engine
1532
+ * @param {string} conversation
1533
+ * @returns {string} Resource name string.
1534
+ */
1535
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
1536
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
1537
+ project: project,
1538
+ location: location,
1539
+ collection: collection,
1540
+ engine: engine,
1541
+ conversation: conversation,
1542
+ });
1543
+ }
1544
+ /**
1545
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
1546
+ *
1547
+ * @param {string} projectLocationCollectionEngineConversationName
1548
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1549
+ * @returns {string} A string representing the project.
1550
+ */
1551
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1552
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
1553
+ }
1554
+ /**
1555
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
1556
+ *
1557
+ * @param {string} projectLocationCollectionEngineConversationName
1558
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1559
+ * @returns {string} A string representing the location.
1560
+ */
1561
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1562
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
1563
+ }
1564
+ /**
1565
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
1566
+ *
1567
+ * @param {string} projectLocationCollectionEngineConversationName
1568
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1569
+ * @returns {string} A string representing the collection.
1570
+ */
1571
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1572
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
1573
+ }
1574
+ /**
1575
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
1576
+ *
1577
+ * @param {string} projectLocationCollectionEngineConversationName
1578
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1579
+ * @returns {string} A string representing the engine.
1580
+ */
1581
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1582
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
1583
+ }
1584
+ /**
1585
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
1586
+ *
1587
+ * @param {string} projectLocationCollectionEngineConversationName
1588
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1589
+ * @returns {string} A string representing the conversation.
1590
+ */
1591
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1592
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1593
+ }
1594
+ /**
1595
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1596
+ *
1597
+ * @param {string} project
1598
+ * @param {string} location
1599
+ * @param {string} collection
1600
+ * @param {string} engine
1601
+ * @param {string} serving_config
1602
+ * @returns {string} Resource name string.
1603
+ */
1604
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1605
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1606
+ project: project,
1607
+ location: location,
1608
+ collection: collection,
1609
+ engine: engine,
1610
+ serving_config: servingConfig,
1611
+ });
1612
+ }
1613
+ /**
1614
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1615
+ *
1616
+ * @param {string} projectLocationCollectionEngineServingConfigName
1617
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1618
+ * @returns {string} A string representing the project.
1619
+ */
1620
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1621
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1622
+ }
1623
+ /**
1624
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1625
+ *
1626
+ * @param {string} projectLocationCollectionEngineServingConfigName
1627
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1628
+ * @returns {string} A string representing the location.
1629
+ */
1630
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1631
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1632
+ }
1633
+ /**
1634
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1635
+ *
1636
+ * @param {string} projectLocationCollectionEngineServingConfigName
1637
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1638
+ * @returns {string} A string representing the collection.
1639
+ */
1640
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1641
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1642
+ }
1643
+ /**
1644
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1645
+ *
1646
+ * @param {string} projectLocationCollectionEngineServingConfigName
1647
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1648
+ * @returns {string} A string representing the engine.
1649
+ */
1650
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1651
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1652
+ }
1653
+ /**
1654
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1655
+ *
1656
+ * @param {string} projectLocationCollectionEngineServingConfigName
1657
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1658
+ * @returns {string} A string representing the serving_config.
1659
+ */
1660
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1661
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1662
+ }
1663
+ /**
1664
+ * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1665
+ *
1666
+ * @param {string} project
1667
+ * @param {string} location
1668
+ * @param {string} collection
1669
+ * @param {string} engine
1670
+ * @param {string} session
1671
+ * @returns {string} Resource name string.
1672
+ */
1673
+ projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
1674
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
1675
+ project: project,
1676
+ location: location,
1677
+ collection: collection,
1678
+ engine: engine,
1679
+ session: session,
1680
+ });
1681
+ }
1682
+ /**
1683
+ * Parse the project from ProjectLocationCollectionEngineSession resource.
1684
+ *
1685
+ * @param {string} projectLocationCollectionEngineSessionName
1686
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1687
+ * @returns {string} A string representing the project.
1688
+ */
1689
+ matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1690
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
1691
+ }
1692
+ /**
1693
+ * Parse the location from ProjectLocationCollectionEngineSession resource.
1694
+ *
1695
+ * @param {string} projectLocationCollectionEngineSessionName
1696
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1697
+ * @returns {string} A string representing the location.
1698
+ */
1699
+ matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1700
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
1701
+ }
1702
+ /**
1703
+ * Parse the collection from ProjectLocationCollectionEngineSession resource.
1704
+ *
1705
+ * @param {string} projectLocationCollectionEngineSessionName
1706
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1707
+ * @returns {string} A string representing the collection.
1708
+ */
1709
+ matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1710
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
1711
+ }
1712
+ /**
1713
+ * Parse the engine from ProjectLocationCollectionEngineSession resource.
1714
+ *
1715
+ * @param {string} projectLocationCollectionEngineSessionName
1716
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1717
+ * @returns {string} A string representing the engine.
1718
+ */
1719
+ matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1720
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
1721
+ }
1722
+ /**
1723
+ * Parse the session from ProjectLocationCollectionEngineSession resource.
1724
+ *
1725
+ * @param {string} projectLocationCollectionEngineSessionName
1726
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1727
+ * @returns {string} A string representing the session.
1728
+ */
1729
+ matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1730
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
1731
+ }
1732
+ /**
1733
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
1734
+ *
1735
+ * @param {string} project
1736
+ * @param {string} location
1737
+ * @param {string} collection
1738
+ * @param {string} engine
1739
+ * @param {string} session
1740
+ * @param {string} answer
1741
+ * @returns {string} Resource name string.
1742
+ */
1743
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
1744
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
1745
+ project: project,
1746
+ location: location,
1747
+ collection: collection,
1748
+ engine: engine,
1749
+ session: session,
1750
+ answer: answer,
1751
+ });
1752
+ }
1753
+ /**
1754
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
1755
+ *
1756
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1757
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1758
+ * @returns {string} A string representing the project.
1759
+ */
1760
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1761
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
1762
+ }
1763
+ /**
1764
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
1765
+ *
1766
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1767
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1768
+ * @returns {string} A string representing the location.
1769
+ */
1770
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1771
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
1772
+ }
1773
+ /**
1774
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
1775
+ *
1776
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1777
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1778
+ * @returns {string} A string representing the collection.
1779
+ */
1780
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1781
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
1782
+ }
1783
+ /**
1784
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
1785
+ *
1786
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1787
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1788
+ * @returns {string} A string representing the engine.
1789
+ */
1790
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1791
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
1792
+ }
1793
+ /**
1794
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
1795
+ *
1796
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1797
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1798
+ * @returns {string} A string representing the session.
1799
+ */
1800
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1801
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
1802
+ }
1803
+ /**
1804
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
1805
+ *
1806
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1807
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1808
+ * @returns {string} A string representing the answer.
1809
+ */
1810
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1811
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
1812
+ }
1813
+ /**
1814
+ * Return a fully-qualified projectLocationDataStore resource name string.
1815
+ *
1816
+ * @param {string} project
1817
+ * @param {string} location
1818
+ * @param {string} data_store
1819
+ * @returns {string} Resource name string.
1820
+ */
1821
+ projectLocationDataStorePath(project, location, dataStore) {
1822
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
1823
+ project: project,
1824
+ location: location,
1825
+ data_store: dataStore,
1826
+ });
1827
+ }
1828
+ /**
1829
+ * Parse the project from ProjectLocationDataStore resource.
1830
+ *
1831
+ * @param {string} projectLocationDataStoreName
1832
+ * A fully-qualified path representing project_location_data_store resource.
1833
+ * @returns {string} A string representing the project.
1834
+ */
1835
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1836
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
1837
+ }
1838
+ /**
1839
+ * Parse the location from ProjectLocationDataStore resource.
1840
+ *
1841
+ * @param {string} projectLocationDataStoreName
1842
+ * A fully-qualified path representing project_location_data_store resource.
1843
+ * @returns {string} A string representing the location.
1844
+ */
1845
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1846
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
1847
+ }
1848
+ /**
1849
+ * Parse the data_store from ProjectLocationDataStore resource.
1850
+ *
1851
+ * @param {string} projectLocationDataStoreName
1852
+ * A fully-qualified path representing project_location_data_store resource.
1853
+ * @returns {string} A string representing the data_store.
1854
+ */
1855
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1856
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
1857
+ }
1858
+ /**
1859
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
1860
+ *
1861
+ * @param {string} project
1862
+ * @param {string} location
1863
+ * @param {string} data_store
1864
+ * @param {string} branch
1865
+ * @param {string} document
1866
+ * @returns {string} Resource name string.
1867
+ */
1868
+ projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
1869
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
1870
+ project: project,
1871
+ location: location,
1872
+ data_store: dataStore,
1873
+ branch: branch,
1874
+ document: document,
1875
+ });
1876
+ }
1877
+ /**
1878
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
1879
+ *
1880
+ * @param {string} projectLocationDataStoreBranchDocumentName
1881
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1882
+ * @returns {string} A string representing the project.
1883
+ */
1884
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1885
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
1886
+ }
1887
+ /**
1888
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
1889
+ *
1890
+ * @param {string} projectLocationDataStoreBranchDocumentName
1891
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1892
+ * @returns {string} A string representing the location.
1893
+ */
1894
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1895
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
1896
+ }
1897
+ /**
1898
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
1899
+ *
1900
+ * @param {string} projectLocationDataStoreBranchDocumentName
1901
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1902
+ * @returns {string} A string representing the data_store.
1903
+ */
1904
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1905
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
1906
+ }
1907
+ /**
1908
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
1909
+ *
1910
+ * @param {string} projectLocationDataStoreBranchDocumentName
1911
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1912
+ * @returns {string} A string representing the branch.
1913
+ */
1914
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1915
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
1916
+ }
1917
+ /**
1918
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
1919
+ *
1920
+ * @param {string} projectLocationDataStoreBranchDocumentName
1921
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1922
+ * @returns {string} A string representing the document.
1923
+ */
1924
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1925
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1926
+ }
1927
+ /**
1928
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
1929
+ *
1930
+ * @param {string} project
1931
+ * @param {string} location
1932
+ * @param {string} data_store
1933
+ * @param {string} branch
1934
+ * @param {string} document
1935
+ * @param {string} chunk
1936
+ * @returns {string} Resource name string.
1937
+ */
1938
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
1939
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
1940
+ project: project,
1941
+ location: location,
1942
+ data_store: dataStore,
1943
+ branch: branch,
1944
+ document: document,
1945
+ chunk: chunk,
1946
+ });
1947
+ }
1948
+ /**
1949
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
1950
+ *
1951
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1952
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1953
+ * @returns {string} A string representing the project.
1954
+ */
1955
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1956
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
1957
+ }
1958
+ /**
1959
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
1960
+ *
1961
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1962
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1963
+ * @returns {string} A string representing the location.
1964
+ */
1965
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1966
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
1967
+ }
1968
+ /**
1969
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
1970
+ *
1971
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1972
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1973
+ * @returns {string} A string representing the data_store.
1974
+ */
1975
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1976
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
1977
+ }
1978
+ /**
1979
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
1980
+ *
1981
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1982
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1983
+ * @returns {string} A string representing the branch.
1984
+ */
1985
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1986
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
1987
+ }
1988
+ /**
1989
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
1990
+ *
1991
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1992
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1993
+ * @returns {string} A string representing the document.
1994
+ */
1995
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1996
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
1997
+ }
1998
+ /**
1999
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
2000
+ *
2001
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2002
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2003
+ * @returns {string} A string representing the chunk.
2004
+ */
2005
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2006
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
2007
+ }
2008
+ /**
2009
+ * Return a fully-qualified projectLocationDataStoreControl resource name string.
2010
+ *
2011
+ * @param {string} project
2012
+ * @param {string} location
2013
+ * @param {string} data_store
2014
+ * @param {string} control
2015
+ * @returns {string} Resource name string.
2016
+ */
2017
+ projectLocationDataStoreControlPath(project, location, dataStore, control) {
2018
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.render({
2019
+ project: project,
2020
+ location: location,
2021
+ data_store: dataStore,
2022
+ control: control,
2023
+ });
2024
+ }
2025
+ /**
2026
+ * Parse the project from ProjectLocationDataStoreControl resource.
2027
+ *
2028
+ * @param {string} projectLocationDataStoreControlName
2029
+ * A fully-qualified path representing project_location_data_store_control resource.
2030
+ * @returns {string} A string representing the project.
2031
+ */
2032
+ matchProjectFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2033
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).project;
2034
+ }
2035
+ /**
2036
+ * Parse the location from ProjectLocationDataStoreControl resource.
2037
+ *
2038
+ * @param {string} projectLocationDataStoreControlName
2039
+ * A fully-qualified path representing project_location_data_store_control resource.
2040
+ * @returns {string} A string representing the location.
2041
+ */
2042
+ matchLocationFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2043
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).location;
2044
+ }
2045
+ /**
2046
+ * Parse the data_store from ProjectLocationDataStoreControl resource.
2047
+ *
2048
+ * @param {string} projectLocationDataStoreControlName
2049
+ * A fully-qualified path representing project_location_data_store_control resource.
2050
+ * @returns {string} A string representing the data_store.
2051
+ */
2052
+ matchDataStoreFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2053
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).data_store;
2054
+ }
2055
+ /**
2056
+ * Parse the control from ProjectLocationDataStoreControl resource.
2057
+ *
2058
+ * @param {string} projectLocationDataStoreControlName
2059
+ * A fully-qualified path representing project_location_data_store_control resource.
2060
+ * @returns {string} A string representing the control.
2061
+ */
2062
+ matchControlFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2063
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).control;
2064
+ }
2065
+ /**
2066
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
2067
+ *
2068
+ * @param {string} project
2069
+ * @param {string} location
2070
+ * @param {string} data_store
2071
+ * @param {string} conversation
2072
+ * @returns {string} Resource name string.
2073
+ */
2074
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
2075
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
2076
+ project: project,
2077
+ location: location,
2078
+ data_store: dataStore,
2079
+ conversation: conversation,
2080
+ });
2081
+ }
2082
+ /**
2083
+ * Parse the project from ProjectLocationDataStoreConversation resource.
2084
+ *
2085
+ * @param {string} projectLocationDataStoreConversationName
2086
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2087
+ * @returns {string} A string representing the project.
2088
+ */
2089
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2090
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
2091
+ }
2092
+ /**
2093
+ * Parse the location from ProjectLocationDataStoreConversation resource.
2094
+ *
2095
+ * @param {string} projectLocationDataStoreConversationName
2096
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2097
+ * @returns {string} A string representing the location.
2098
+ */
2099
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2100
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
2101
+ }
2102
+ /**
2103
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
2104
+ *
2105
+ * @param {string} projectLocationDataStoreConversationName
2106
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2107
+ * @returns {string} A string representing the data_store.
2108
+ */
2109
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2110
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
2111
+ }
2112
+ /**
2113
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
2114
+ *
2115
+ * @param {string} projectLocationDataStoreConversationName
2116
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2117
+ * @returns {string} A string representing the conversation.
2118
+ */
2119
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2120
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
2121
+ }
2122
+ /**
2123
+ * Return a fully-qualified projectLocationDataStoreCustomTuningModel resource name string.
2124
+ *
2125
+ * @param {string} project
2126
+ * @param {string} location
2127
+ * @param {string} data_store
2128
+ * @param {string} custom_tuning_model
2129
+ * @returns {string} Resource name string.
2130
+ */
2131
+ projectLocationDataStoreCustomTuningModelPath(project, location, dataStore, customTuningModel) {
2132
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.render({
2133
+ project: project,
2134
+ location: location,
2135
+ data_store: dataStore,
2136
+ custom_tuning_model: customTuningModel,
2137
+ });
2138
+ }
2139
+ /**
2140
+ * Parse the project from ProjectLocationDataStoreCustomTuningModel resource.
2141
+ *
2142
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2143
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2144
+ * @returns {string} A string representing the project.
2145
+ */
2146
+ matchProjectFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2147
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).project;
2148
+ }
2149
+ /**
2150
+ * Parse the location from ProjectLocationDataStoreCustomTuningModel resource.
2151
+ *
2152
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2153
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2154
+ * @returns {string} A string representing the location.
2155
+ */
2156
+ matchLocationFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2157
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).location;
2158
+ }
2159
+ /**
2160
+ * Parse the data_store from ProjectLocationDataStoreCustomTuningModel resource.
2161
+ *
2162
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2163
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2164
+ * @returns {string} A string representing the data_store.
2165
+ */
2166
+ matchDataStoreFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2167
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).data_store;
2168
+ }
2169
+ /**
2170
+ * Parse the custom_tuning_model from ProjectLocationDataStoreCustomTuningModel resource.
2171
+ *
2172
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2173
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2174
+ * @returns {string} A string representing the custom_tuning_model.
2175
+ */
2176
+ matchCustomTuningModelFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2177
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).custom_tuning_model;
2178
+ }
2179
+ /**
2180
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
2181
+ *
2182
+ * @param {string} project
2183
+ * @param {string} location
2184
+ * @param {string} data_store
2185
+ * @returns {string} Resource name string.
2186
+ */
2187
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
2188
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
2189
+ project: project,
2190
+ location: location,
2191
+ data_store: dataStore,
2192
+ });
2193
+ }
2194
+ /**
2195
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
2196
+ *
2197
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2198
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2199
+ * @returns {string} A string representing the project.
2200
+ */
2201
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2202
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
2203
+ }
2204
+ /**
2205
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
2206
+ *
2207
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2208
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2209
+ * @returns {string} A string representing the location.
2210
+ */
2211
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2212
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
2213
+ }
2214
+ /**
2215
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
2216
+ *
2217
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2218
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2219
+ * @returns {string} A string representing the data_store.
2220
+ */
2221
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2222
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
2223
+ }
2224
+ /**
2225
+ * Return a fully-qualified projectLocationDataStoreSchema resource name string.
2226
+ *
2227
+ * @param {string} project
2228
+ * @param {string} location
2229
+ * @param {string} data_store
2230
+ * @param {string} schema
2231
+ * @returns {string} Resource name string.
2232
+ */
2233
+ projectLocationDataStoreSchemaPath(project, location, dataStore, schema) {
2234
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.render({
2235
+ project: project,
2236
+ location: location,
2237
+ data_store: dataStore,
2238
+ schema: schema,
2239
+ });
2240
+ }
2241
+ /**
2242
+ * Parse the project from ProjectLocationDataStoreSchema resource.
2243
+ *
2244
+ * @param {string} projectLocationDataStoreSchemaName
2245
+ * A fully-qualified path representing project_location_data_store_schema resource.
2246
+ * @returns {string} A string representing the project.
2247
+ */
2248
+ matchProjectFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2249
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).project;
2250
+ }
2251
+ /**
2252
+ * Parse the location from ProjectLocationDataStoreSchema resource.
2253
+ *
2254
+ * @param {string} projectLocationDataStoreSchemaName
2255
+ * A fully-qualified path representing project_location_data_store_schema resource.
2256
+ * @returns {string} A string representing the location.
2257
+ */
2258
+ matchLocationFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2259
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).location;
2260
+ }
2261
+ /**
2262
+ * Parse the data_store from ProjectLocationDataStoreSchema resource.
2263
+ *
2264
+ * @param {string} projectLocationDataStoreSchemaName
2265
+ * A fully-qualified path representing project_location_data_store_schema resource.
2266
+ * @returns {string} A string representing the data_store.
2267
+ */
2268
+ matchDataStoreFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2269
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).data_store;
2270
+ }
2271
+ /**
2272
+ * Parse the schema from ProjectLocationDataStoreSchema resource.
2273
+ *
2274
+ * @param {string} projectLocationDataStoreSchemaName
2275
+ * A fully-qualified path representing project_location_data_store_schema resource.
2276
+ * @returns {string} A string representing the schema.
2277
+ */
2278
+ matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2279
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
2280
+ }
2281
+ /**
2282
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
2283
+ *
2284
+ * @param {string} project
2285
+ * @param {string} location
2286
+ * @param {string} data_store
2287
+ * @param {string} serving_config
2288
+ * @returns {string} Resource name string.
2289
+ */
2290
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
2291
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
2292
+ project: project,
2293
+ location: location,
2294
+ data_store: dataStore,
2295
+ serving_config: servingConfig,
2296
+ });
2297
+ }
2298
+ /**
2299
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
2300
+ *
2301
+ * @param {string} projectLocationDataStoreServingConfigName
2302
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2303
+ * @returns {string} A string representing the project.
2304
+ */
2305
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2306
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
2307
+ }
2308
+ /**
2309
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
2310
+ *
2311
+ * @param {string} projectLocationDataStoreServingConfigName
2312
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2313
+ * @returns {string} A string representing the location.
2314
+ */
2315
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2316
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
2317
+ }
2318
+ /**
2319
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
2320
+ *
2321
+ * @param {string} projectLocationDataStoreServingConfigName
2322
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2323
+ * @returns {string} A string representing the data_store.
2324
+ */
2325
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2326
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
2327
+ }
2328
+ /**
2329
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
2330
+ *
2331
+ * @param {string} projectLocationDataStoreServingConfigName
2332
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2333
+ * @returns {string} A string representing the serving_config.
2334
+ */
2335
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2336
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2337
+ }
2338
+ /**
2339
+ * Return a fully-qualified projectLocationDataStoreSession resource name string.
2340
+ *
2341
+ * @param {string} project
2342
+ * @param {string} location
2343
+ * @param {string} data_store
2344
+ * @param {string} session
2345
+ * @returns {string} Resource name string.
2346
+ */
2347
+ projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2348
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2349
+ project: project,
2350
+ location: location,
2351
+ data_store: dataStore,
2352
+ session: session,
2353
+ });
2354
+ }
2355
+ /**
2356
+ * Parse the project from ProjectLocationDataStoreSession resource.
2357
+ *
2358
+ * @param {string} projectLocationDataStoreSessionName
2359
+ * A fully-qualified path representing project_location_data_store_session resource.
2360
+ * @returns {string} A string representing the project.
2361
+ */
2362
+ matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2363
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2364
+ }
2365
+ /**
2366
+ * Parse the location from ProjectLocationDataStoreSession resource.
2367
+ *
2368
+ * @param {string} projectLocationDataStoreSessionName
2369
+ * A fully-qualified path representing project_location_data_store_session resource.
2370
+ * @returns {string} A string representing the location.
2371
+ */
2372
+ matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2373
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2374
+ }
2375
+ /**
2376
+ * Parse the data_store from ProjectLocationDataStoreSession resource.
2377
+ *
2378
+ * @param {string} projectLocationDataStoreSessionName
2379
+ * A fully-qualified path representing project_location_data_store_session resource.
2380
+ * @returns {string} A string representing the data_store.
2381
+ */
2382
+ matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2383
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2384
+ }
2385
+ /**
2386
+ * Parse the session from ProjectLocationDataStoreSession resource.
2387
+ *
2388
+ * @param {string} projectLocationDataStoreSessionName
2389
+ * A fully-qualified path representing project_location_data_store_session resource.
2390
+ * @returns {string} A string representing the session.
2391
+ */
2392
+ matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2393
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2394
+ }
2395
+ /**
2396
+ * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2397
+ *
2398
+ * @param {string} project
2399
+ * @param {string} location
2400
+ * @param {string} data_store
2401
+ * @param {string} session
2402
+ * @param {string} answer
2403
+ * @returns {string} Resource name string.
2404
+ */
2405
+ projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
2406
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
2407
+ project: project,
2408
+ location: location,
2409
+ data_store: dataStore,
2410
+ session: session,
2411
+ answer: answer,
2412
+ });
2413
+ }
2414
+ /**
2415
+ * Parse the project from ProjectLocationDataStoreSessionAnswer resource.
2416
+ *
2417
+ * @param {string} projectLocationDataStoreSessionAnswerName
2418
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2419
+ * @returns {string} A string representing the project.
2420
+ */
2421
+ matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2422
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
2423
+ }
2424
+ /**
2425
+ * Parse the location from ProjectLocationDataStoreSessionAnswer resource.
2426
+ *
2427
+ * @param {string} projectLocationDataStoreSessionAnswerName
2428
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2429
+ * @returns {string} A string representing the location.
2430
+ */
2431
+ matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2432
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
2433
+ }
2434
+ /**
2435
+ * Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
2436
+ *
2437
+ * @param {string} projectLocationDataStoreSessionAnswerName
2438
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2439
+ * @returns {string} A string representing the data_store.
2440
+ */
2441
+ matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2442
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
2443
+ }
2444
+ /**
2445
+ * Parse the session from ProjectLocationDataStoreSessionAnswer resource.
2446
+ *
2447
+ * @param {string} projectLocationDataStoreSessionAnswerName
2448
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2449
+ * @returns {string} A string representing the session.
2450
+ */
2451
+ matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2452
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
2453
+ }
2454
+ /**
2455
+ * Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
2456
+ *
2457
+ * @param {string} projectLocationDataStoreSessionAnswerName
2458
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2459
+ * @returns {string} A string representing the answer.
2460
+ */
2461
+ matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2462
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2463
+ }
2464
+ /**
2465
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
2466
+ *
2467
+ * @param {string} project
2468
+ * @param {string} location
2469
+ * @param {string} data_store
2470
+ * @returns {string} Resource name string.
2471
+ */
2472
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
2473
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
2474
+ project: project,
2475
+ location: location,
2476
+ data_store: dataStore,
2477
+ });
2478
+ }
2479
+ /**
2480
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
2481
+ *
2482
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
2483
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
2484
+ * @returns {string} A string representing the project.
2485
+ */
2486
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2487
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
2488
+ }
2489
+ /**
2490
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
2491
+ *
2492
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
2493
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
2494
+ * @returns {string} A string representing the location.
2495
+ */
2496
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2497
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
2498
+ }
2499
+ /**
2500
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
2501
+ *
2502
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
2503
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
2504
+ * @returns {string} A string representing the data_store.
2505
+ */
2506
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2507
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
2508
+ }
2509
+ /**
2510
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
2511
+ *
2512
+ * @param {string} project
2513
+ * @param {string} location
2514
+ * @param {string} data_store
2515
+ * @param {string} sitemap
2516
+ * @returns {string} Resource name string.
2517
+ */
2518
+ projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
2519
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
2520
+ project: project,
2521
+ location: location,
2522
+ data_store: dataStore,
2523
+ sitemap: sitemap,
2524
+ });
2525
+ }
2526
+ /**
2527
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2528
+ *
2529
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2530
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2531
+ * @returns {string} A string representing the project.
2532
+ */
2533
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2534
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
2535
+ }
2536
+ /**
2537
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2538
+ *
2539
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2540
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2541
+ * @returns {string} A string representing the location.
2542
+ */
2543
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2544
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
2545
+ }
2546
+ /**
2547
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2548
+ *
2549
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2550
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2551
+ * @returns {string} A string representing the data_store.
2552
+ */
2553
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2554
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
2555
+ }
2556
+ /**
2557
+ * Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2558
+ *
2559
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2560
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2561
+ * @returns {string} A string representing the sitemap.
2562
+ */
2563
+ matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2564
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
2565
+ }
2566
+ /**
2567
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
2568
+ *
2569
+ * @param {string} project
2570
+ * @param {string} location
2571
+ * @param {string} data_store
2572
+ * @param {string} target_site
2573
+ * @returns {string} Resource name string.
2574
+ */
2575
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
2576
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
2577
+ project: project,
2578
+ location: location,
2579
+ data_store: dataStore,
2580
+ target_site: targetSite,
2581
+ });
2582
+ }
2583
+ /**
2584
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2585
+ *
2586
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2587
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2588
+ * @returns {string} A string representing the project.
2589
+ */
2590
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2591
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
2592
+ }
2593
+ /**
2594
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2595
+ *
2596
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2597
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2598
+ * @returns {string} A string representing the location.
2599
+ */
2600
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2601
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
2602
+ }
2603
+ /**
2604
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2605
+ *
2606
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2607
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2608
+ * @returns {string} A string representing the data_store.
2609
+ */
2610
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2611
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
2612
+ }
2613
+ /**
2614
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2615
+ *
2616
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2617
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2618
+ * @returns {string} A string representing the target_site.
2619
+ */
2620
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2621
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
2622
+ }
2623
+ /**
2624
+ * Terminate the gRPC channel and close the client.
2625
+ *
2626
+ * The client will no longer be usable and all future behavior is undefined.
2627
+ * @returns {Promise} A promise that resolves when the client is closed.
2628
+ */
2629
+ close() {
2630
+ if (this.servingConfigServiceStub && !this._terminated) {
2631
+ return this.servingConfigServiceStub.then(stub => {
2632
+ this._log.info('ending gRPC channel');
2633
+ this._terminated = true;
2634
+ stub.close();
2635
+ this.locationsClient.close().catch(err => { throw err; });
2636
+ });
2637
+ }
2638
+ return Promise.resolve();
2639
+ }
2640
+ }
2641
+ exports.ServingConfigServiceClient = ServingConfigServiceClient;
2642
+ //# sourceMappingURL=serving_config_service_client.js.map