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