@google-cloud/discoveryengine 1.9.0 → 1.11.0

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