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