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