@google-cloud/discoveryengine 1.4.0 → 1.5.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 (121) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +15 -0
  3. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +49 -0
  4. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +79 -0
  5. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +106 -0
  6. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +137 -0
  7. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +97 -4
  8. package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +52 -0
  9. package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +44 -2
  10. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +6 -1
  11. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +44 -0
  12. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +80 -1
  13. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +102 -0
  14. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +127 -0
  15. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +70 -0
  16. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +13 -8
  17. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +3 -2
  18. package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +130 -0
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +376 -21
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +66 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +115 -0
  22. package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +3 -1
  23. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +3 -0
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +221 -30
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +27 -20
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +271 -0
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +148 -0
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +9 -3
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +7 -4
  30. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +4 -3
  31. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +5 -0
  32. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +22 -0
  33. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +9 -0
  34. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +94 -0
  35. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +3 -0
  36. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +19 -4
  37. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +151 -0
  38. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +4 -3
  39. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +6 -5
  40. package/build/protos/protos.d.ts +18160 -8292
  41. package/build/protos/protos.js +50325 -25400
  42. package/build/protos/protos.json +4864 -2447
  43. package/build/src/v1/completion_service_client.js +10 -7
  44. package/build/src/v1/conversational_search_service_client.js +10 -7
  45. package/build/src/v1/data_store_service_client.js +10 -7
  46. package/build/src/v1/document_service_client.js +10 -7
  47. package/build/src/v1/engine_service_client.js +10 -7
  48. package/build/src/v1/schema_service_client.js +10 -7
  49. package/build/src/v1/search_service_client.js +10 -7
  50. package/build/src/v1/site_search_engine_service_client.js +10 -7
  51. package/build/src/v1/user_event_service_client.js +10 -7
  52. package/build/src/v1alpha/acl_config_service_client.d.ts +1233 -0
  53. package/build/src/v1alpha/acl_config_service_client.js +1768 -0
  54. package/build/src/v1alpha/acl_config_service_client_config.json +34 -0
  55. package/build/src/v1alpha/chunk_service_client.d.ts +1350 -0
  56. package/build/src/v1alpha/chunk_service_client.js +1889 -0
  57. package/build/src/v1alpha/chunk_service_client_config.json +34 -0
  58. package/build/src/v1alpha/completion_service_client.d.ts +588 -3
  59. package/build/src/v1alpha/completion_service_client.js +844 -9
  60. package/build/src/v1alpha/completion_service_client_config.json +10 -0
  61. package/build/src/v1alpha/conversational_search_service_client.d.ts +233 -1
  62. package/build/src/v1alpha/conversational_search_service_client.js +326 -7
  63. package/build/src/v1alpha/data_store_service_client.d.ts +451 -3
  64. package/build/src/v1alpha/data_store_service_client.js +575 -9
  65. package/build/src/v1alpha/data_store_service_client_config.json +8 -0
  66. package/build/src/v1alpha/document_service_client.d.ts +462 -21
  67. package/build/src/v1alpha/document_service_client.js +549 -7
  68. package/build/src/v1alpha/document_service_client_config.json +5 -0
  69. package/build/src/v1alpha/engine_service_client.d.ts +375 -2
  70. package/build/src/v1alpha/engine_service_client.js +527 -7
  71. package/build/src/v1alpha/estimate_billing_service_client.d.ts +1367 -0
  72. package/build/src/v1alpha/estimate_billing_service_client.js +2034 -0
  73. package/build/src/v1alpha/estimate_billing_service_client_config.json +30 -0
  74. package/build/src/v1alpha/index.d.ts +5 -0
  75. package/build/src/v1alpha/index.js +11 -1
  76. package/build/src/v1alpha/rank_service_client.d.ts +1254 -0
  77. package/build/src/v1alpha/rank_service_client.js +1796 -0
  78. package/build/src/v1alpha/rank_service_client_config.json +30 -0
  79. package/build/src/v1alpha/recommendation_service_client.d.ts +231 -1
  80. package/build/src/v1alpha/recommendation_service_client.js +326 -7
  81. package/build/src/v1alpha/schema_service_client.d.ts +372 -0
  82. package/build/src/v1alpha/schema_service_client.js +527 -7
  83. package/build/src/v1alpha/search_service_client.d.ts +288 -30
  84. package/build/src/v1alpha/search_service_client.js +366 -27
  85. package/build/src/v1alpha/search_tuning_service_client.d.ts +373 -1
  86. package/build/src/v1alpha/search_tuning_service_client.js +527 -7
  87. package/build/src/v1alpha/serving_config_service_client.d.ts +1370 -0
  88. package/build/src/v1alpha/serving_config_service_client.js +1939 -0
  89. package/build/src/v1alpha/serving_config_service_client_config.json +38 -0
  90. package/build/src/v1alpha/site_search_engine_service_client.d.ts +372 -0
  91. package/build/src/v1alpha/site_search_engine_service_client.js +527 -7
  92. package/build/src/v1alpha/user_event_service_client.d.ts +372 -0
  93. package/build/src/v1alpha/user_event_service_client.js +527 -7
  94. package/build/src/v1beta/completion_service_client.d.ts +75 -0
  95. package/build/src/v1beta/completion_service_client.js +114 -7
  96. package/build/src/v1beta/conversational_search_service_client.d.ts +79 -0
  97. package/build/src/v1beta/conversational_search_service_client.js +114 -7
  98. package/build/src/v1beta/data_store_service_client.d.ts +75 -0
  99. package/build/src/v1beta/data_store_service_client.js +114 -7
  100. package/build/src/v1beta/document_service_client.d.ts +75 -0
  101. package/build/src/v1beta/document_service_client.js +114 -7
  102. package/build/src/v1beta/engine_service_client.d.ts +75 -0
  103. package/build/src/v1beta/engine_service_client.js +114 -7
  104. package/build/src/v1beta/index.d.ts +1 -0
  105. package/build/src/v1beta/index.js +3 -1
  106. package/build/src/v1beta/recommendation_service_client.d.ts +75 -0
  107. package/build/src/v1beta/recommendation_service_client.js +114 -7
  108. package/build/src/v1beta/schema_service_client.d.ts +75 -0
  109. package/build/src/v1beta/schema_service_client.js +114 -7
  110. package/build/src/v1beta/search_service_client.d.ts +81 -0
  111. package/build/src/v1beta/search_service_client.js +118 -7
  112. package/build/src/v1beta/search_tuning_service_client.d.ts +1196 -0
  113. package/build/src/v1beta/search_tuning_service_client.js +1784 -0
  114. package/build/src/v1beta/search_tuning_service_client_config.json +30 -0
  115. package/build/src/v1beta/serving_config_service_client.d.ts +123 -8
  116. package/build/src/v1beta/serving_config_service_client.js +176 -12
  117. package/build/src/v1beta/site_search_engine_service_client.d.ts +75 -0
  118. package/build/src/v1beta/site_search_engine_service_client.js +114 -7
  119. package/build/src/v1beta/user_event_service_client.d.ts +75 -0
  120. package/build/src/v1beta/user_event_service_client.js +114 -7
  121. package/package.json +3 -3
@@ -0,0 +1,1796 @@
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.RankServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ /**
23
+ * Client JSON configuration object, loaded from
24
+ * `src/v1alpha/rank_service_client_config.json`.
25
+ * This file defines retry strategy and timeouts for all API methods in this library.
26
+ */
27
+ const gapicConfig = require("./rank_service_client_config.json");
28
+ const version = require('../../../package.json').version;
29
+ /**
30
+ * Service for ranking text records.
31
+ * @class
32
+ * @memberof v1alpha
33
+ */
34
+ class RankServiceClient {
35
+ /**
36
+ * Construct an instance of RankServiceClient.
37
+ *
38
+ * @param {object} [options] - The configuration object.
39
+ * The options accepted by the constructor are described in detail
40
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
41
+ * The common options are:
42
+ * @param {object} [options.credentials] - Credentials object.
43
+ * @param {string} [options.credentials.client_email]
44
+ * @param {string} [options.credentials.private_key]
45
+ * @param {string} [options.email] - Account email address. Required when
46
+ * using a .pem or .p12 keyFilename.
47
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
48
+ * .p12 key downloaded from the Google Developers Console. If you provide
49
+ * a path to a JSON file, the projectId option below is not necessary.
50
+ * NOTE: .pem and .p12 require you to specify options.email as well.
51
+ * @param {number} [options.port] - The port on which to connect to
52
+ * the remote host.
53
+ * @param {string} [options.projectId] - The project ID from the Google
54
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
55
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
56
+ * app is running in an environment which supports
57
+ * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
58
+ * your project ID will be detected automatically.
59
+ * @param {string} [options.apiEndpoint] - The domain name of the
60
+ * API remote host.
61
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
62
+ * Follows the structure of {@link gapicConfig}.
63
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
64
+ * For more information, please check the
65
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
66
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
67
+ * need to avoid loading the default gRPC version and want to use the fallback
68
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
69
+ * ```
70
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
71
+ * const client = new RankServiceClient({fallback: true}, gax);
72
+ * ```
73
+ */
74
+ constructor(opts, gaxInstance) {
75
+ var _a, _b, _c, _d, _e;
76
+ this._terminated = false;
77
+ this.descriptors = {
78
+ page: {},
79
+ stream: {},
80
+ longrunning: {},
81
+ batching: {},
82
+ };
83
+ // Ensure that options include all the required fields.
84
+ const staticMembers = this.constructor;
85
+ if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
86
+ (opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
87
+ (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
88
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
89
+ }
90
+ const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
91
+ ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
92
+ : undefined;
93
+ this._universeDomain =
94
+ (_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';
95
+ this._servicePath = 'discoveryengine.' + this._universeDomain;
96
+ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
97
+ this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
98
+ const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
99
+ const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
100
+ 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');
101
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
102
+ // Request numeric enum values if REST transport is used.
103
+ opts.numericEnums = true;
104
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
105
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
106
+ opts['scopes'] = staticMembers.scopes;
107
+ }
108
+ // Load google-gax module synchronously if needed
109
+ if (!gaxInstance) {
110
+ gaxInstance = require('google-gax');
111
+ }
112
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
113
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
114
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
115
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
116
+ // Save options to use in initialize() method.
117
+ this._opts = opts;
118
+ // Save the auth object to the client, for use by other methods.
119
+ this.auth = this._gaxGrpc.auth;
120
+ // Set useJWTAccessWithScope on the auth object.
121
+ this.auth.useJWTAccessWithScope = true;
122
+ // Set defaultServicePath on the auth object.
123
+ this.auth.defaultServicePath = this._servicePath;
124
+ // Set the default scopes in auth client if needed.
125
+ if (servicePath === this._servicePath) {
126
+ this.auth.defaultScopes = staticMembers.scopes;
127
+ }
128
+ this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
129
+ // Determine the client header string.
130
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
131
+ if (typeof process === 'object' && 'versions' in process) {
132
+ clientHeader.push(`gl-node/${process.versions.node}`);
133
+ }
134
+ else {
135
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
136
+ }
137
+ if (!opts.fallback) {
138
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
139
+ }
140
+ else {
141
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
142
+ }
143
+ if (opts.libName && opts.libVersion) {
144
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
145
+ }
146
+ // Load the applicable protos.
147
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
148
+ // This API contains "path templates"; forward-slash-separated
149
+ // identifiers to uniquely identify resources within the API.
150
+ // Create useful helper objects for these.
151
+ this.pathTemplates = {
152
+ aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
153
+ enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
154
+ projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
155
+ projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
156
+ projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
157
+ projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
158
+ projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
159
+ projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
160
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
161
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
162
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
163
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
164
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
165
+ projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
166
+ projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
167
+ projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
168
+ projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
169
+ projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
170
+ projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
171
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
172
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
173
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
174
+ rankingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/rankingConfigs/{ranking_config}'),
175
+ };
176
+ // Put together the default options sent with requests.
177
+ this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.RankService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
178
+ // Set up a dictionary of "inner API calls"; the core implementation
179
+ // of calling the API is handled in `google-gax`, with this code
180
+ // merely providing the destination and request information.
181
+ this.innerApiCalls = {};
182
+ // Add a warn function to the client constructor so it can be easily tested.
183
+ this.warn = this._gaxModule.warn;
184
+ }
185
+ /**
186
+ * Initialize the client.
187
+ * Performs asynchronous operations (such as authentication) and prepares the client.
188
+ * This function will be called automatically when any class method is called for the
189
+ * first time, but if you need to initialize it before calling an actual method,
190
+ * feel free to call initialize() directly.
191
+ *
192
+ * You can await on this method if you want to make sure the client is initialized.
193
+ *
194
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
195
+ */
196
+ initialize() {
197
+ // If the client stub promise is already initialized, return immediately.
198
+ if (this.rankServiceStub) {
199
+ return this.rankServiceStub;
200
+ }
201
+ // Put together the "service stub" for
202
+ // google.cloud.discoveryengine.v1alpha.RankService.
203
+ this.rankServiceStub = this._gaxGrpc.createStub(this._opts.fallback
204
+ ? this._protos.lookupService('google.cloud.discoveryengine.v1alpha.RankService')
205
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
206
+ this._protos.google.cloud.discoveryengine.v1alpha
207
+ .RankService, this._opts, this._providedCustomServicePath);
208
+ // Iterate over each of the methods that the service provides
209
+ // and create an API call method for each.
210
+ const rankServiceStubMethods = ['rank'];
211
+ for (const methodName of rankServiceStubMethods) {
212
+ const callPromise = this.rankServiceStub.then(stub => (...args) => {
213
+ if (this._terminated) {
214
+ return Promise.reject('The client has already been closed.');
215
+ }
216
+ const func = stub[methodName];
217
+ return func.apply(stub, args);
218
+ }, (err) => () => {
219
+ throw err;
220
+ });
221
+ const descriptor = undefined;
222
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
223
+ this.innerApiCalls[methodName] = apiCall;
224
+ }
225
+ return this.rankServiceStub;
226
+ }
227
+ /**
228
+ * The DNS address for this API service.
229
+ * @deprecated Use the apiEndpoint method of the client instance.
230
+ * @returns {string} The DNS address for this service.
231
+ */
232
+ static get servicePath() {
233
+ if (typeof process === 'object' &&
234
+ typeof process.emitWarning === 'function') {
235
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
236
+ }
237
+ return 'discoveryengine.googleapis.com';
238
+ }
239
+ /**
240
+ * The DNS address for this API service - same as servicePath.
241
+ * @deprecated Use the apiEndpoint method of the client instance.
242
+ * @returns {string} The DNS address for this service.
243
+ */
244
+ static get apiEndpoint() {
245
+ if (typeof process === 'object' &&
246
+ typeof process.emitWarning === 'function') {
247
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
248
+ }
249
+ return 'discoveryengine.googleapis.com';
250
+ }
251
+ /**
252
+ * The DNS address for this API service.
253
+ * @returns {string} The DNS address for this service.
254
+ */
255
+ get apiEndpoint() {
256
+ return this._servicePath;
257
+ }
258
+ get universeDomain() {
259
+ return this._universeDomain;
260
+ }
261
+ /**
262
+ * The port for this API service.
263
+ * @returns {number} The default port for this service.
264
+ */
265
+ static get port() {
266
+ return 443;
267
+ }
268
+ /**
269
+ * The scopes needed to make gRPC calls for every method defined
270
+ * in this service.
271
+ * @returns {string[]} List of default scopes.
272
+ */
273
+ static get scopes() {
274
+ return ['https://www.googleapis.com/auth/cloud-platform'];
275
+ }
276
+ /**
277
+ * Return the project ID used by this class.
278
+ * @returns {Promise} A promise that resolves to string containing the project ID.
279
+ */
280
+ getProjectId(callback) {
281
+ if (callback) {
282
+ this.auth.getProjectId(callback);
283
+ return;
284
+ }
285
+ return this.auth.getProjectId();
286
+ }
287
+ rank(request, optionsOrCallback, callback) {
288
+ var _a;
289
+ request = request || {};
290
+ let options;
291
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
292
+ callback = optionsOrCallback;
293
+ options = {};
294
+ }
295
+ else {
296
+ options = optionsOrCallback;
297
+ }
298
+ options = options || {};
299
+ options.otherArgs = options.otherArgs || {};
300
+ options.otherArgs.headers = options.otherArgs.headers || {};
301
+ options.otherArgs.headers['x-goog-request-params'] =
302
+ this._gaxModule.routingHeader.fromParams({
303
+ ranking_config: (_a = request.rankingConfig) !== null && _a !== void 0 ? _a : '',
304
+ });
305
+ this.initialize();
306
+ return this.innerApiCalls.rank(request, options, callback);
307
+ }
308
+ /**
309
+ * Gets information about a location.
310
+ *
311
+ * @param {Object} request
312
+ * The request object that will be sent.
313
+ * @param {string} request.name
314
+ * Resource name for the location.
315
+ * @param {object} [options]
316
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
317
+ * @returns {Promise} - The promise which resolves to an array.
318
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
319
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
320
+ * for more details and examples.
321
+ * @example
322
+ * ```
323
+ * const [response] = await client.getLocation(request);
324
+ * ```
325
+ */
326
+ getLocation(request, options, callback) {
327
+ return this.locationsClient.getLocation(request, options, callback);
328
+ }
329
+ /**
330
+ * Lists information about the supported locations for this service. Returns an iterable object.
331
+ *
332
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
333
+ * @param {Object} request
334
+ * The request object that will be sent.
335
+ * @param {string} request.name
336
+ * The resource that owns the locations collection, if applicable.
337
+ * @param {string} request.filter
338
+ * The standard list filter.
339
+ * @param {number} request.pageSize
340
+ * The standard list page size.
341
+ * @param {string} request.pageToken
342
+ * The standard list page token.
343
+ * @param {object} [options]
344
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
345
+ * @returns {Object}
346
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
347
+ * When you iterate the returned iterable, each element will be an object representing
348
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
349
+ * so you can stop the iteration when you don't need more results.
350
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
351
+ * for more details and examples.
352
+ * @example
353
+ * ```
354
+ * const iterable = client.listLocationsAsync(request);
355
+ * for await (const response of iterable) {
356
+ * // process response
357
+ * }
358
+ * ```
359
+ */
360
+ listLocationsAsync(request, options) {
361
+ return this.locationsClient.listLocationsAsync(request, options);
362
+ }
363
+ // --------------------
364
+ // -- Path templates --
365
+ // --------------------
366
+ /**
367
+ * Return a fully-qualified aclConfig resource name string.
368
+ *
369
+ * @param {string} project
370
+ * @param {string} location
371
+ * @returns {string} Resource name string.
372
+ */
373
+ aclConfigPath(project, location) {
374
+ return this.pathTemplates.aclConfigPathTemplate.render({
375
+ project: project,
376
+ location: location,
377
+ });
378
+ }
379
+ /**
380
+ * Parse the project from AclConfig resource.
381
+ *
382
+ * @param {string} aclConfigName
383
+ * A fully-qualified path representing AclConfig resource.
384
+ * @returns {string} A string representing the project.
385
+ */
386
+ matchProjectFromAclConfigName(aclConfigName) {
387
+ return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
388
+ .project;
389
+ }
390
+ /**
391
+ * Parse the location from AclConfig resource.
392
+ *
393
+ * @param {string} aclConfigName
394
+ * A fully-qualified path representing AclConfig resource.
395
+ * @returns {string} A string representing the location.
396
+ */
397
+ matchLocationFromAclConfigName(aclConfigName) {
398
+ return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
399
+ .location;
400
+ }
401
+ /**
402
+ * Return a fully-qualified engine resource name string.
403
+ *
404
+ * @param {string} project
405
+ * @param {string} location
406
+ * @param {string} collection
407
+ * @param {string} engine
408
+ * @returns {string} Resource name string.
409
+ */
410
+ enginePath(project, location, collection, engine) {
411
+ return this.pathTemplates.enginePathTemplate.render({
412
+ project: project,
413
+ location: location,
414
+ collection: collection,
415
+ engine: engine,
416
+ });
417
+ }
418
+ /**
419
+ * Parse the project from Engine resource.
420
+ *
421
+ * @param {string} engineName
422
+ * A fully-qualified path representing Engine resource.
423
+ * @returns {string} A string representing the project.
424
+ */
425
+ matchProjectFromEngineName(engineName) {
426
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
427
+ }
428
+ /**
429
+ * Parse the location from Engine resource.
430
+ *
431
+ * @param {string} engineName
432
+ * A fully-qualified path representing Engine resource.
433
+ * @returns {string} A string representing the location.
434
+ */
435
+ matchLocationFromEngineName(engineName) {
436
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
437
+ }
438
+ /**
439
+ * Parse the collection from Engine resource.
440
+ *
441
+ * @param {string} engineName
442
+ * A fully-qualified path representing Engine resource.
443
+ * @returns {string} A string representing the collection.
444
+ */
445
+ matchCollectionFromEngineName(engineName) {
446
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
447
+ }
448
+ /**
449
+ * Parse the engine from Engine resource.
450
+ *
451
+ * @param {string} engineName
452
+ * A fully-qualified path representing Engine resource.
453
+ * @returns {string} A string representing the engine.
454
+ */
455
+ matchEngineFromEngineName(engineName) {
456
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
457
+ }
458
+ /**
459
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
460
+ *
461
+ * @param {string} project
462
+ * @param {string} location
463
+ * @param {string} collection
464
+ * @param {string} data_store
465
+ * @returns {string} Resource name string.
466
+ */
467
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
468
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
469
+ project: project,
470
+ location: location,
471
+ collection: collection,
472
+ data_store: dataStore,
473
+ });
474
+ }
475
+ /**
476
+ * Parse the project from ProjectLocationCollectionDataStore resource.
477
+ *
478
+ * @param {string} projectLocationCollectionDataStoreName
479
+ * A fully-qualified path representing project_location_collection_data_store resource.
480
+ * @returns {string} A string representing the project.
481
+ */
482
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
483
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
484
+ }
485
+ /**
486
+ * Parse the location from ProjectLocationCollectionDataStore resource.
487
+ *
488
+ * @param {string} projectLocationCollectionDataStoreName
489
+ * A fully-qualified path representing project_location_collection_data_store resource.
490
+ * @returns {string} A string representing the location.
491
+ */
492
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
493
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
494
+ }
495
+ /**
496
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
497
+ *
498
+ * @param {string} projectLocationCollectionDataStoreName
499
+ * A fully-qualified path representing project_location_collection_data_store resource.
500
+ * @returns {string} A string representing the collection.
501
+ */
502
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
503
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
504
+ }
505
+ /**
506
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
507
+ *
508
+ * @param {string} projectLocationCollectionDataStoreName
509
+ * A fully-qualified path representing project_location_collection_data_store resource.
510
+ * @returns {string} A string representing the data_store.
511
+ */
512
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
513
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
514
+ }
515
+ /**
516
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
517
+ *
518
+ * @param {string} project
519
+ * @param {string} location
520
+ * @param {string} collection
521
+ * @param {string} data_store
522
+ * @param {string} branch
523
+ * @param {string} document
524
+ * @returns {string} Resource name string.
525
+ */
526
+ projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
527
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
528
+ project: project,
529
+ location: location,
530
+ collection: collection,
531
+ data_store: dataStore,
532
+ branch: branch,
533
+ document: document,
534
+ });
535
+ }
536
+ /**
537
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
538
+ *
539
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
540
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
541
+ * @returns {string} A string representing the project.
542
+ */
543
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
544
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
545
+ }
546
+ /**
547
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
548
+ *
549
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
550
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
551
+ * @returns {string} A string representing the location.
552
+ */
553
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
554
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
555
+ }
556
+ /**
557
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
558
+ *
559
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
560
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
561
+ * @returns {string} A string representing the collection.
562
+ */
563
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
564
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
565
+ }
566
+ /**
567
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
568
+ *
569
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
570
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
571
+ * @returns {string} A string representing the data_store.
572
+ */
573
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
574
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
575
+ }
576
+ /**
577
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
578
+ *
579
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
580
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
581
+ * @returns {string} A string representing the branch.
582
+ */
583
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
584
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
585
+ }
586
+ /**
587
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
588
+ *
589
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
590
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
591
+ * @returns {string} A string representing the document.
592
+ */
593
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
594
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
595
+ }
596
+ /**
597
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
598
+ *
599
+ * @param {string} project
600
+ * @param {string} location
601
+ * @param {string} collection
602
+ * @param {string} data_store
603
+ * @param {string} branch
604
+ * @param {string} document
605
+ * @param {string} chunk
606
+ * @returns {string} Resource name string.
607
+ */
608
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
609
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
610
+ project: project,
611
+ location: location,
612
+ collection: collection,
613
+ data_store: dataStore,
614
+ branch: branch,
615
+ document: document,
616
+ chunk: chunk,
617
+ });
618
+ }
619
+ /**
620
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
621
+ *
622
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
623
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
624
+ * @returns {string} A string representing the project.
625
+ */
626
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
627
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
628
+ }
629
+ /**
630
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
631
+ *
632
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
633
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
634
+ * @returns {string} A string representing the location.
635
+ */
636
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
637
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
638
+ }
639
+ /**
640
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
641
+ *
642
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
643
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
644
+ * @returns {string} A string representing the collection.
645
+ */
646
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
647
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
648
+ }
649
+ /**
650
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
651
+ *
652
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
653
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
654
+ * @returns {string} A string representing the data_store.
655
+ */
656
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
657
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
658
+ }
659
+ /**
660
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
661
+ *
662
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
663
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
664
+ * @returns {string} A string representing the branch.
665
+ */
666
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
667
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
668
+ }
669
+ /**
670
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
671
+ *
672
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
673
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
674
+ * @returns {string} A string representing the document.
675
+ */
676
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
677
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
678
+ }
679
+ /**
680
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
681
+ *
682
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
683
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
684
+ * @returns {string} A string representing the chunk.
685
+ */
686
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
687
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
688
+ }
689
+ /**
690
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
691
+ *
692
+ * @param {string} project
693
+ * @param {string} location
694
+ * @param {string} collection
695
+ * @param {string} data_store
696
+ * @param {string} conversation
697
+ * @returns {string} Resource name string.
698
+ */
699
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
700
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
701
+ project: project,
702
+ location: location,
703
+ collection: collection,
704
+ data_store: dataStore,
705
+ conversation: conversation,
706
+ });
707
+ }
708
+ /**
709
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
710
+ *
711
+ * @param {string} projectLocationCollectionDataStoreConversationName
712
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
713
+ * @returns {string} A string representing the project.
714
+ */
715
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
716
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
717
+ }
718
+ /**
719
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
720
+ *
721
+ * @param {string} projectLocationCollectionDataStoreConversationName
722
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
723
+ * @returns {string} A string representing the location.
724
+ */
725
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
726
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
727
+ }
728
+ /**
729
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
730
+ *
731
+ * @param {string} projectLocationCollectionDataStoreConversationName
732
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
733
+ * @returns {string} A string representing the collection.
734
+ */
735
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
736
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
737
+ }
738
+ /**
739
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
740
+ *
741
+ * @param {string} projectLocationCollectionDataStoreConversationName
742
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
743
+ * @returns {string} A string representing the data_store.
744
+ */
745
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
746
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
747
+ }
748
+ /**
749
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
750
+ *
751
+ * @param {string} projectLocationCollectionDataStoreConversationName
752
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
753
+ * @returns {string} A string representing the conversation.
754
+ */
755
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
756
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
757
+ }
758
+ /**
759
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
760
+ *
761
+ * @param {string} project
762
+ * @param {string} location
763
+ * @param {string} collection
764
+ * @param {string} data_store
765
+ * @returns {string} Resource name string.
766
+ */
767
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
768
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
769
+ project: project,
770
+ location: location,
771
+ collection: collection,
772
+ data_store: dataStore,
773
+ });
774
+ }
775
+ /**
776
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
777
+ *
778
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
779
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
780
+ * @returns {string} A string representing the project.
781
+ */
782
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
783
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
784
+ }
785
+ /**
786
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
787
+ *
788
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
789
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
790
+ * @returns {string} A string representing the location.
791
+ */
792
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
793
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
794
+ }
795
+ /**
796
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
797
+ *
798
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
799
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
800
+ * @returns {string} A string representing the collection.
801
+ */
802
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
803
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
804
+ }
805
+ /**
806
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
807
+ *
808
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
809
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
810
+ * @returns {string} A string representing the data_store.
811
+ */
812
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
813
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
814
+ }
815
+ /**
816
+ * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
817
+ *
818
+ * @param {string} project
819
+ * @param {string} location
820
+ * @param {string} collection
821
+ * @param {string} data_store
822
+ * @param {string} schema
823
+ * @returns {string} Resource name string.
824
+ */
825
+ projectLocationCollectionDataStoreSchemaPath(project, location, collection, dataStore, schema) {
826
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.render({
827
+ project: project,
828
+ location: location,
829
+ collection: collection,
830
+ data_store: dataStore,
831
+ schema: schema,
832
+ });
833
+ }
834
+ /**
835
+ * Parse the project from ProjectLocationCollectionDataStoreSchema resource.
836
+ *
837
+ * @param {string} projectLocationCollectionDataStoreSchemaName
838
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
839
+ * @returns {string} A string representing the project.
840
+ */
841
+ matchProjectFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
842
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).project;
843
+ }
844
+ /**
845
+ * Parse the location from ProjectLocationCollectionDataStoreSchema resource.
846
+ *
847
+ * @param {string} projectLocationCollectionDataStoreSchemaName
848
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
849
+ * @returns {string} A string representing the location.
850
+ */
851
+ matchLocationFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
852
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).location;
853
+ }
854
+ /**
855
+ * Parse the collection from ProjectLocationCollectionDataStoreSchema resource.
856
+ *
857
+ * @param {string} projectLocationCollectionDataStoreSchemaName
858
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
859
+ * @returns {string} A string representing the collection.
860
+ */
861
+ matchCollectionFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
862
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).collection;
863
+ }
864
+ /**
865
+ * Parse the data_store from ProjectLocationCollectionDataStoreSchema resource.
866
+ *
867
+ * @param {string} projectLocationCollectionDataStoreSchemaName
868
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
869
+ * @returns {string} A string representing the data_store.
870
+ */
871
+ matchDataStoreFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
872
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).data_store;
873
+ }
874
+ /**
875
+ * Parse the schema from ProjectLocationCollectionDataStoreSchema resource.
876
+ *
877
+ * @param {string} projectLocationCollectionDataStoreSchemaName
878
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
879
+ * @returns {string} A string representing the schema.
880
+ */
881
+ matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
882
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
883
+ }
884
+ /**
885
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
886
+ *
887
+ * @param {string} project
888
+ * @param {string} location
889
+ * @param {string} collection
890
+ * @param {string} data_store
891
+ * @param {string} serving_config
892
+ * @returns {string} Resource name string.
893
+ */
894
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
895
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
896
+ project: project,
897
+ location: location,
898
+ collection: collection,
899
+ data_store: dataStore,
900
+ serving_config: servingConfig,
901
+ });
902
+ }
903
+ /**
904
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
905
+ *
906
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
907
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
908
+ * @returns {string} A string representing the project.
909
+ */
910
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
911
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
912
+ }
913
+ /**
914
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
915
+ *
916
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
917
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
918
+ * @returns {string} A string representing the location.
919
+ */
920
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
921
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
922
+ }
923
+ /**
924
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
925
+ *
926
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
927
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
928
+ * @returns {string} A string representing the collection.
929
+ */
930
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
931
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
932
+ }
933
+ /**
934
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
935
+ *
936
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
937
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
938
+ * @returns {string} A string representing the data_store.
939
+ */
940
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
941
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
942
+ }
943
+ /**
944
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
945
+ *
946
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
947
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
948
+ * @returns {string} A string representing the serving_config.
949
+ */
950
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
951
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
952
+ }
953
+ /**
954
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
955
+ *
956
+ * @param {string} project
957
+ * @param {string} location
958
+ * @param {string} collection
959
+ * @param {string} data_store
960
+ * @returns {string} Resource name string.
961
+ */
962
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
963
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
964
+ project: project,
965
+ location: location,
966
+ collection: collection,
967
+ data_store: dataStore,
968
+ });
969
+ }
970
+ /**
971
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
972
+ *
973
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
974
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
975
+ * @returns {string} A string representing the project.
976
+ */
977
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
978
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
979
+ }
980
+ /**
981
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
982
+ *
983
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
984
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
985
+ * @returns {string} A string representing the location.
986
+ */
987
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
988
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
989
+ }
990
+ /**
991
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
992
+ *
993
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
994
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
995
+ * @returns {string} A string representing the collection.
996
+ */
997
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
998
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
999
+ }
1000
+ /**
1001
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1002
+ *
1003
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1004
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1005
+ * @returns {string} A string representing the data_store.
1006
+ */
1007
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1008
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1009
+ }
1010
+ /**
1011
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1012
+ *
1013
+ * @param {string} project
1014
+ * @param {string} location
1015
+ * @param {string} collection
1016
+ * @param {string} data_store
1017
+ * @param {string} target_site
1018
+ * @returns {string} Resource name string.
1019
+ */
1020
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
1021
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1022
+ project: project,
1023
+ location: location,
1024
+ collection: collection,
1025
+ data_store: dataStore,
1026
+ target_site: targetSite,
1027
+ });
1028
+ }
1029
+ /**
1030
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1031
+ *
1032
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1033
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1034
+ * @returns {string} A string representing the project.
1035
+ */
1036
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1037
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
1038
+ }
1039
+ /**
1040
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1041
+ *
1042
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1043
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1044
+ * @returns {string} A string representing the location.
1045
+ */
1046
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1047
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
1048
+ }
1049
+ /**
1050
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1051
+ *
1052
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1053
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1054
+ * @returns {string} A string representing the collection.
1055
+ */
1056
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1057
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
1058
+ }
1059
+ /**
1060
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1061
+ *
1062
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1063
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1064
+ * @returns {string} A string representing the data_store.
1065
+ */
1066
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1067
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
1068
+ }
1069
+ /**
1070
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1071
+ *
1072
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1073
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1074
+ * @returns {string} A string representing the target_site.
1075
+ */
1076
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1077
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1078
+ }
1079
+ /**
1080
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1081
+ *
1082
+ * @param {string} project
1083
+ * @param {string} location
1084
+ * @param {string} collection
1085
+ * @param {string} engine
1086
+ * @param {string} conversation
1087
+ * @returns {string} Resource name string.
1088
+ */
1089
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
1090
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
1091
+ project: project,
1092
+ location: location,
1093
+ collection: collection,
1094
+ engine: engine,
1095
+ conversation: conversation,
1096
+ });
1097
+ }
1098
+ /**
1099
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
1100
+ *
1101
+ * @param {string} projectLocationCollectionEngineConversationName
1102
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1103
+ * @returns {string} A string representing the project.
1104
+ */
1105
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1106
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
1107
+ }
1108
+ /**
1109
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
1110
+ *
1111
+ * @param {string} projectLocationCollectionEngineConversationName
1112
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1113
+ * @returns {string} A string representing the location.
1114
+ */
1115
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1116
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
1117
+ }
1118
+ /**
1119
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
1120
+ *
1121
+ * @param {string} projectLocationCollectionEngineConversationName
1122
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1123
+ * @returns {string} A string representing the collection.
1124
+ */
1125
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1126
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
1127
+ }
1128
+ /**
1129
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
1130
+ *
1131
+ * @param {string} projectLocationCollectionEngineConversationName
1132
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1133
+ * @returns {string} A string representing the engine.
1134
+ */
1135
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1136
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
1137
+ }
1138
+ /**
1139
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
1140
+ *
1141
+ * @param {string} projectLocationCollectionEngineConversationName
1142
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1143
+ * @returns {string} A string representing the conversation.
1144
+ */
1145
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1146
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1147
+ }
1148
+ /**
1149
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1150
+ *
1151
+ * @param {string} project
1152
+ * @param {string} location
1153
+ * @param {string} collection
1154
+ * @param {string} engine
1155
+ * @param {string} serving_config
1156
+ * @returns {string} Resource name string.
1157
+ */
1158
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1159
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1160
+ project: project,
1161
+ location: location,
1162
+ collection: collection,
1163
+ engine: engine,
1164
+ serving_config: servingConfig,
1165
+ });
1166
+ }
1167
+ /**
1168
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1169
+ *
1170
+ * @param {string} projectLocationCollectionEngineServingConfigName
1171
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1172
+ * @returns {string} A string representing the project.
1173
+ */
1174
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1175
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1176
+ }
1177
+ /**
1178
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1179
+ *
1180
+ * @param {string} projectLocationCollectionEngineServingConfigName
1181
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1182
+ * @returns {string} A string representing the location.
1183
+ */
1184
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1185
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1186
+ }
1187
+ /**
1188
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1189
+ *
1190
+ * @param {string} projectLocationCollectionEngineServingConfigName
1191
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1192
+ * @returns {string} A string representing the collection.
1193
+ */
1194
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1195
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1196
+ }
1197
+ /**
1198
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1199
+ *
1200
+ * @param {string} projectLocationCollectionEngineServingConfigName
1201
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1202
+ * @returns {string} A string representing the engine.
1203
+ */
1204
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1205
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1206
+ }
1207
+ /**
1208
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1209
+ *
1210
+ * @param {string} projectLocationCollectionEngineServingConfigName
1211
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1212
+ * @returns {string} A string representing the serving_config.
1213
+ */
1214
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1215
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1216
+ }
1217
+ /**
1218
+ * Return a fully-qualified projectLocationDataStore resource name string.
1219
+ *
1220
+ * @param {string} project
1221
+ * @param {string} location
1222
+ * @param {string} data_store
1223
+ * @returns {string} Resource name string.
1224
+ */
1225
+ projectLocationDataStorePath(project, location, dataStore) {
1226
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
1227
+ project: project,
1228
+ location: location,
1229
+ data_store: dataStore,
1230
+ });
1231
+ }
1232
+ /**
1233
+ * Parse the project from ProjectLocationDataStore resource.
1234
+ *
1235
+ * @param {string} projectLocationDataStoreName
1236
+ * A fully-qualified path representing project_location_data_store resource.
1237
+ * @returns {string} A string representing the project.
1238
+ */
1239
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1240
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
1241
+ }
1242
+ /**
1243
+ * Parse the location from ProjectLocationDataStore resource.
1244
+ *
1245
+ * @param {string} projectLocationDataStoreName
1246
+ * A fully-qualified path representing project_location_data_store resource.
1247
+ * @returns {string} A string representing the location.
1248
+ */
1249
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1250
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
1251
+ }
1252
+ /**
1253
+ * Parse the data_store from ProjectLocationDataStore resource.
1254
+ *
1255
+ * @param {string} projectLocationDataStoreName
1256
+ * A fully-qualified path representing project_location_data_store resource.
1257
+ * @returns {string} A string representing the data_store.
1258
+ */
1259
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1260
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
1261
+ }
1262
+ /**
1263
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
1264
+ *
1265
+ * @param {string} project
1266
+ * @param {string} location
1267
+ * @param {string} data_store
1268
+ * @param {string} branch
1269
+ * @param {string} document
1270
+ * @returns {string} Resource name string.
1271
+ */
1272
+ projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
1273
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
1274
+ project: project,
1275
+ location: location,
1276
+ data_store: dataStore,
1277
+ branch: branch,
1278
+ document: document,
1279
+ });
1280
+ }
1281
+ /**
1282
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
1283
+ *
1284
+ * @param {string} projectLocationDataStoreBranchDocumentName
1285
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1286
+ * @returns {string} A string representing the project.
1287
+ */
1288
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1289
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
1290
+ }
1291
+ /**
1292
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
1293
+ *
1294
+ * @param {string} projectLocationDataStoreBranchDocumentName
1295
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1296
+ * @returns {string} A string representing the location.
1297
+ */
1298
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1299
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
1300
+ }
1301
+ /**
1302
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
1303
+ *
1304
+ * @param {string} projectLocationDataStoreBranchDocumentName
1305
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1306
+ * @returns {string} A string representing the data_store.
1307
+ */
1308
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1309
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
1310
+ }
1311
+ /**
1312
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
1313
+ *
1314
+ * @param {string} projectLocationDataStoreBranchDocumentName
1315
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1316
+ * @returns {string} A string representing the branch.
1317
+ */
1318
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1319
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
1320
+ }
1321
+ /**
1322
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
1323
+ *
1324
+ * @param {string} projectLocationDataStoreBranchDocumentName
1325
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1326
+ * @returns {string} A string representing the document.
1327
+ */
1328
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1329
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1330
+ }
1331
+ /**
1332
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
1333
+ *
1334
+ * @param {string} project
1335
+ * @param {string} location
1336
+ * @param {string} data_store
1337
+ * @param {string} branch
1338
+ * @param {string} document
1339
+ * @param {string} chunk
1340
+ * @returns {string} Resource name string.
1341
+ */
1342
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
1343
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
1344
+ project: project,
1345
+ location: location,
1346
+ data_store: dataStore,
1347
+ branch: branch,
1348
+ document: document,
1349
+ chunk: chunk,
1350
+ });
1351
+ }
1352
+ /**
1353
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
1354
+ *
1355
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1356
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1357
+ * @returns {string} A string representing the project.
1358
+ */
1359
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1360
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
1361
+ }
1362
+ /**
1363
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
1364
+ *
1365
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1366
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1367
+ * @returns {string} A string representing the location.
1368
+ */
1369
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1370
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
1371
+ }
1372
+ /**
1373
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
1374
+ *
1375
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1376
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1377
+ * @returns {string} A string representing the data_store.
1378
+ */
1379
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1380
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
1381
+ }
1382
+ /**
1383
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
1384
+ *
1385
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1386
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1387
+ * @returns {string} A string representing the branch.
1388
+ */
1389
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1390
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
1391
+ }
1392
+ /**
1393
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
1394
+ *
1395
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1396
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1397
+ * @returns {string} A string representing the document.
1398
+ */
1399
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1400
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
1401
+ }
1402
+ /**
1403
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
1404
+ *
1405
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1406
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1407
+ * @returns {string} A string representing the chunk.
1408
+ */
1409
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1410
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
1411
+ }
1412
+ /**
1413
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
1414
+ *
1415
+ * @param {string} project
1416
+ * @param {string} location
1417
+ * @param {string} data_store
1418
+ * @param {string} conversation
1419
+ * @returns {string} Resource name string.
1420
+ */
1421
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
1422
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
1423
+ project: project,
1424
+ location: location,
1425
+ data_store: dataStore,
1426
+ conversation: conversation,
1427
+ });
1428
+ }
1429
+ /**
1430
+ * Parse the project from ProjectLocationDataStoreConversation resource.
1431
+ *
1432
+ * @param {string} projectLocationDataStoreConversationName
1433
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1434
+ * @returns {string} A string representing the project.
1435
+ */
1436
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1437
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
1438
+ }
1439
+ /**
1440
+ * Parse the location from ProjectLocationDataStoreConversation resource.
1441
+ *
1442
+ * @param {string} projectLocationDataStoreConversationName
1443
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1444
+ * @returns {string} A string representing the location.
1445
+ */
1446
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1447
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
1448
+ }
1449
+ /**
1450
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
1451
+ *
1452
+ * @param {string} projectLocationDataStoreConversationName
1453
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1454
+ * @returns {string} A string representing the data_store.
1455
+ */
1456
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1457
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
1458
+ }
1459
+ /**
1460
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
1461
+ *
1462
+ * @param {string} projectLocationDataStoreConversationName
1463
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1464
+ * @returns {string} A string representing the conversation.
1465
+ */
1466
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1467
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1468
+ }
1469
+ /**
1470
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
1471
+ *
1472
+ * @param {string} project
1473
+ * @param {string} location
1474
+ * @param {string} data_store
1475
+ * @returns {string} Resource name string.
1476
+ */
1477
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
1478
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
1479
+ project: project,
1480
+ location: location,
1481
+ data_store: dataStore,
1482
+ });
1483
+ }
1484
+ /**
1485
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
1486
+ *
1487
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1488
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1489
+ * @returns {string} A string representing the project.
1490
+ */
1491
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1492
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
1493
+ }
1494
+ /**
1495
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
1496
+ *
1497
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1498
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1499
+ * @returns {string} A string representing the location.
1500
+ */
1501
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1502
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
1503
+ }
1504
+ /**
1505
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
1506
+ *
1507
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1508
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1509
+ * @returns {string} A string representing the data_store.
1510
+ */
1511
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1512
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
1513
+ }
1514
+ /**
1515
+ * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1516
+ *
1517
+ * @param {string} project
1518
+ * @param {string} location
1519
+ * @param {string} data_store
1520
+ * @param {string} schema
1521
+ * @returns {string} Resource name string.
1522
+ */
1523
+ projectLocationDataStoreSchemaPath(project, location, dataStore, schema) {
1524
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.render({
1525
+ project: project,
1526
+ location: location,
1527
+ data_store: dataStore,
1528
+ schema: schema,
1529
+ });
1530
+ }
1531
+ /**
1532
+ * Parse the project from ProjectLocationDataStoreSchema resource.
1533
+ *
1534
+ * @param {string} projectLocationDataStoreSchemaName
1535
+ * A fully-qualified path representing project_location_data_store_schema resource.
1536
+ * @returns {string} A string representing the project.
1537
+ */
1538
+ matchProjectFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1539
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).project;
1540
+ }
1541
+ /**
1542
+ * Parse the location from ProjectLocationDataStoreSchema resource.
1543
+ *
1544
+ * @param {string} projectLocationDataStoreSchemaName
1545
+ * A fully-qualified path representing project_location_data_store_schema resource.
1546
+ * @returns {string} A string representing the location.
1547
+ */
1548
+ matchLocationFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1549
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).location;
1550
+ }
1551
+ /**
1552
+ * Parse the data_store from ProjectLocationDataStoreSchema resource.
1553
+ *
1554
+ * @param {string} projectLocationDataStoreSchemaName
1555
+ * A fully-qualified path representing project_location_data_store_schema resource.
1556
+ * @returns {string} A string representing the data_store.
1557
+ */
1558
+ matchDataStoreFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1559
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).data_store;
1560
+ }
1561
+ /**
1562
+ * Parse the schema from ProjectLocationDataStoreSchema resource.
1563
+ *
1564
+ * @param {string} projectLocationDataStoreSchemaName
1565
+ * A fully-qualified path representing project_location_data_store_schema resource.
1566
+ * @returns {string} A string representing the schema.
1567
+ */
1568
+ matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1569
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
1570
+ }
1571
+ /**
1572
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
1573
+ *
1574
+ * @param {string} project
1575
+ * @param {string} location
1576
+ * @param {string} data_store
1577
+ * @param {string} serving_config
1578
+ * @returns {string} Resource name string.
1579
+ */
1580
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
1581
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
1582
+ project: project,
1583
+ location: location,
1584
+ data_store: dataStore,
1585
+ serving_config: servingConfig,
1586
+ });
1587
+ }
1588
+ /**
1589
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
1590
+ *
1591
+ * @param {string} projectLocationDataStoreServingConfigName
1592
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1593
+ * @returns {string} A string representing the project.
1594
+ */
1595
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1596
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
1597
+ }
1598
+ /**
1599
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
1600
+ *
1601
+ * @param {string} projectLocationDataStoreServingConfigName
1602
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1603
+ * @returns {string} A string representing the location.
1604
+ */
1605
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1606
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
1607
+ }
1608
+ /**
1609
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
1610
+ *
1611
+ * @param {string} projectLocationDataStoreServingConfigName
1612
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1613
+ * @returns {string} A string representing the data_store.
1614
+ */
1615
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1616
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
1617
+ }
1618
+ /**
1619
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
1620
+ *
1621
+ * @param {string} projectLocationDataStoreServingConfigName
1622
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1623
+ * @returns {string} A string representing the serving_config.
1624
+ */
1625
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1626
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1627
+ }
1628
+ /**
1629
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1630
+ *
1631
+ * @param {string} project
1632
+ * @param {string} location
1633
+ * @param {string} data_store
1634
+ * @returns {string} Resource name string.
1635
+ */
1636
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
1637
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
1638
+ project: project,
1639
+ location: location,
1640
+ data_store: dataStore,
1641
+ });
1642
+ }
1643
+ /**
1644
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
1645
+ *
1646
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1647
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1648
+ * @returns {string} A string representing the project.
1649
+ */
1650
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1651
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
1652
+ }
1653
+ /**
1654
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
1655
+ *
1656
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1657
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1658
+ * @returns {string} A string representing the location.
1659
+ */
1660
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1661
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
1662
+ }
1663
+ /**
1664
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
1665
+ *
1666
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1667
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1668
+ * @returns {string} A string representing the data_store.
1669
+ */
1670
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1671
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
1672
+ }
1673
+ /**
1674
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
1675
+ *
1676
+ * @param {string} project
1677
+ * @param {string} location
1678
+ * @param {string} data_store
1679
+ * @param {string} target_site
1680
+ * @returns {string} Resource name string.
1681
+ */
1682
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
1683
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1684
+ project: project,
1685
+ location: location,
1686
+ data_store: dataStore,
1687
+ target_site: targetSite,
1688
+ });
1689
+ }
1690
+ /**
1691
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1692
+ *
1693
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1694
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1695
+ * @returns {string} A string representing the project.
1696
+ */
1697
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1698
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
1699
+ }
1700
+ /**
1701
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1702
+ *
1703
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1704
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1705
+ * @returns {string} A string representing the location.
1706
+ */
1707
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1708
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
1709
+ }
1710
+ /**
1711
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1712
+ *
1713
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1714
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1715
+ * @returns {string} A string representing the data_store.
1716
+ */
1717
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1718
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
1719
+ }
1720
+ /**
1721
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1722
+ *
1723
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1724
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1725
+ * @returns {string} A string representing the target_site.
1726
+ */
1727
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1728
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
1729
+ }
1730
+ /**
1731
+ * Return a fully-qualified rankingConfig resource name string.
1732
+ *
1733
+ * @param {string} project
1734
+ * @param {string} location
1735
+ * @param {string} ranking_config
1736
+ * @returns {string} Resource name string.
1737
+ */
1738
+ rankingConfigPath(project, location, rankingConfig) {
1739
+ return this.pathTemplates.rankingConfigPathTemplate.render({
1740
+ project: project,
1741
+ location: location,
1742
+ ranking_config: rankingConfig,
1743
+ });
1744
+ }
1745
+ /**
1746
+ * Parse the project from RankingConfig resource.
1747
+ *
1748
+ * @param {string} rankingConfigName
1749
+ * A fully-qualified path representing RankingConfig resource.
1750
+ * @returns {string} A string representing the project.
1751
+ */
1752
+ matchProjectFromRankingConfigName(rankingConfigName) {
1753
+ return this.pathTemplates.rankingConfigPathTemplate.match(rankingConfigName)
1754
+ .project;
1755
+ }
1756
+ /**
1757
+ * Parse the location from RankingConfig resource.
1758
+ *
1759
+ * @param {string} rankingConfigName
1760
+ * A fully-qualified path representing RankingConfig resource.
1761
+ * @returns {string} A string representing the location.
1762
+ */
1763
+ matchLocationFromRankingConfigName(rankingConfigName) {
1764
+ return this.pathTemplates.rankingConfigPathTemplate.match(rankingConfigName)
1765
+ .location;
1766
+ }
1767
+ /**
1768
+ * Parse the ranking_config from RankingConfig resource.
1769
+ *
1770
+ * @param {string} rankingConfigName
1771
+ * A fully-qualified path representing RankingConfig resource.
1772
+ * @returns {string} A string representing the ranking_config.
1773
+ */
1774
+ matchRankingConfigFromRankingConfigName(rankingConfigName) {
1775
+ return this.pathTemplates.rankingConfigPathTemplate.match(rankingConfigName)
1776
+ .ranking_config;
1777
+ }
1778
+ /**
1779
+ * Terminate the gRPC channel and close the client.
1780
+ *
1781
+ * The client will no longer be usable and all future behavior is undefined.
1782
+ * @returns {Promise} A promise that resolves when the client is closed.
1783
+ */
1784
+ close() {
1785
+ if (this.rankServiceStub && !this._terminated) {
1786
+ return this.rankServiceStub.then(stub => {
1787
+ this._terminated = true;
1788
+ stub.close();
1789
+ this.locationsClient.close();
1790
+ });
1791
+ }
1792
+ return Promise.resolve();
1793
+ }
1794
+ }
1795
+ exports.RankServiceClient = RankServiceClient;
1796
+ //# sourceMappingURL=rank_service_client.js.map