@google-cloud/discoveryengine 1.10.0 → 1.12.0

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