@google-cloud/discoveryengine 1.3.1 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/README.md +64 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +54 -3
- package/build/protos/google/cloud/discoveryengine/v1/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +51 -4
- package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +40 -1
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +98 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +304 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +215 -0
- package/build/protos/google/cloud/discoveryengine/v1/engine_service.proto +242 -0
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +137 -4
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +170 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +691 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +3 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +49 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +79 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +72 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +137 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +77 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +44 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +6 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +44 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +80 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +83 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +127 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +13 -8
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +3 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +130 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +66 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +3 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +74 -13
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +24 -20
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +271 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +147 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +9 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +7 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +4 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +59 -8
- package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +51 -4
- package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +45 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +120 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +306 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +10 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +94 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +220 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +244 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +41 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +26 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +169 -15
- package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +151 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +265 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +148 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +170 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +695 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -3
- package/build/protos/protos.d.ts +48530 -23682
- package/build/protos/protos.js +122429 -63306
- package/build/protos/protos.json +13438 -7286
- package/build/src/index.d.ts +10 -1
- package/build/src/index.js +10 -1
- package/build/src/v1/completion_service_client.d.ts +489 -7
- package/build/src/v1/completion_service_client.js +715 -11
- package/build/src/v1/completion_service_client_config.json +10 -0
- package/build/src/v1/conversational_search_service_client.d.ts +341 -3
- package/build/src/v1/conversational_search_service_client.js +466 -9
- package/build/src/v1/data_store_service_client.d.ts +1286 -0
- package/build/src/v1/data_store_service_client.js +1768 -0
- package/build/src/v1/data_store_service_client_config.json +46 -0
- package/build/src/v1/document_service_client.d.ts +347 -2
- package/build/src/v1/document_service_client.js +506 -9
- package/build/src/v1/engine_service_client.d.ts +1211 -0
- package/build/src/v1/engine_service_client.js +1731 -0
- package/build/src/v1/engine_service_client_config.json +46 -0
- package/build/src/v1/index.d.ts +3 -0
- package/build/src/v1/index.js +7 -1
- package/build/src/v1/schema_service_client.d.ts +272 -2
- package/build/src/v1/schema_service_client.js +402 -9
- package/build/src/v1/search_service_client.d.ts +515 -11
- package/build/src/v1/search_service_client.js +648 -15
- package/build/src/v1/site_search_engine_service_client.d.ts +1564 -0
- package/build/src/v1/site_search_engine_service_client.js +2075 -0
- package/build/src/v1/site_search_engine_service_client_config.json +74 -0
- package/build/src/v1/user_event_service_client.d.ts +272 -2
- package/build/src/v1/user_event_service_client.js +402 -9
- package/build/src/v1alpha/acl_config_service_client.d.ts +1233 -0
- package/build/src/v1alpha/acl_config_service_client.js +1765 -0
- package/build/src/v1alpha/acl_config_service_client_config.json +34 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +1350 -0
- package/build/src/v1alpha/chunk_service_client.js +1886 -0
- package/build/src/v1alpha/chunk_service_client_config.json +34 -0
- package/build/src/v1alpha/completion_service_client.d.ts +599 -5
- package/build/src/v1alpha/completion_service_client.js +868 -12
- package/build/src/v1alpha/completion_service_client_config.json +10 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +244 -3
- package/build/src/v1alpha/conversational_search_service_client.js +353 -10
- package/build/src/v1alpha/data_store_service_client.d.ts +462 -5
- package/build/src/v1alpha/data_store_service_client.js +599 -12
- package/build/src/v1alpha/data_store_service_client_config.json +8 -0
- package/build/src/v1alpha/document_service_client.d.ts +393 -2
- package/build/src/v1alpha/document_service_client.js +551 -10
- package/build/src/v1alpha/engine_service_client.d.ts +386 -4
- package/build/src/v1alpha/engine_service_client.js +551 -10
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +1367 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +2028 -0
- package/build/src/v1alpha/estimate_billing_service_client_config.json +30 -0
- package/build/src/v1alpha/index.d.ts +4 -0
- package/build/src/v1alpha/index.js +10 -2
- package/build/src/v1alpha/recommendation_service_client.d.ts +242 -3
- package/build/src/v1alpha/recommendation_service_client.js +353 -10
- package/build/src/v1alpha/schema_service_client.d.ts +383 -2
- package/build/src/v1alpha/schema_service_client.js +551 -10
- package/build/src/v1alpha/search_service_client.d.ts +269 -17
- package/build/src/v1alpha/search_service_client.js +373 -20
- package/build/src/v1alpha/search_tuning_service_client.d.ts +384 -3
- package/build/src/v1alpha/search_tuning_service_client.js +551 -10
- package/build/src/v1alpha/serving_config_service_client.d.ts +1369 -0
- package/build/src/v1alpha/serving_config_service_client.js +1935 -0
- package/build/src/v1alpha/serving_config_service_client_config.json +38 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +383 -2
- package/build/src/v1alpha/site_search_engine_service_client.js +551 -10
- package/build/src/v1alpha/user_event_service_client.d.ts +383 -2
- package/build/src/v1alpha/user_event_service_client.js +551 -10
- package/build/src/v1beta/completion_service_client.d.ts +708 -7
- package/build/src/v1beta/completion_service_client.js +1015 -11
- package/build/src/v1beta/completion_service_client_config.json +10 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +420 -3
- package/build/src/v1beta/conversational_search_service_client.js +570 -9
- package/build/src/v1beta/data_store_service_client.d.ts +1508 -0
- package/build/src/v1beta/data_store_service_client.js +2070 -0
- package/build/src/v1beta/data_store_service_client_config.json +46 -0
- package/build/src/v1beta/document_service_client.d.ts +566 -2
- package/build/src/v1beta/document_service_client.js +810 -11
- package/build/src/v1beta/engine_service_client.d.ts +1432 -0
- package/build/src/v1beta/engine_service_client.js +2032 -0
- package/build/src/v1beta/engine_service_client_config.json +46 -0
- package/build/src/v1beta/index.d.ts +5 -0
- package/build/src/v1beta/index.js +11 -1
- package/build/src/v1beta/recommendation_service_client.d.ts +495 -5
- package/build/src/v1beta/recommendation_service_client.js +674 -9
- package/build/src/v1beta/schema_service_client.d.ts +491 -2
- package/build/src/v1beta/schema_service_client.js +706 -11
- package/build/src/v1beta/search_service_client.d.ts +620 -29
- package/build/src/v1beta/search_service_client.js +772 -27
- package/build/src/v1beta/search_tuning_service_client.d.ts +1196 -0
- package/build/src/v1beta/search_tuning_service_client.js +1781 -0
- package/build/src/v1beta/search_tuning_service_client_config.json +30 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +1217 -0
- package/build/src/v1beta/serving_config_service_client.js +1724 -0
- package/build/src/v1beta/serving_config_service_client_config.json +38 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +1787 -0
- package/build/src/v1beta/site_search_engine_service_client.js +2375 -0
- package/build/src/v1beta/site_search_engine_service_client_config.json +74 -0
- package/build/src/v1beta/user_event_service_client.d.ts +491 -2
- package/build/src/v1beta/user_event_service_client.js +706 -11
- package/package.json +3 -3
@@ -1,5 +1,5 @@
|
|
1
1
|
"use strict";
|
2
|
-
// Copyright
|
2
|
+
// Copyright 2024 Google LLC
|
3
3
|
//
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
5
5
|
// you may not use this file except in compliance with the License.
|
@@ -72,7 +72,7 @@ class RecommendationServiceClient {
|
|
72
72
|
* ```
|
73
73
|
*/
|
74
74
|
constructor(opts, gaxInstance) {
|
75
|
-
var _a, _b;
|
75
|
+
var _a, _b, _c, _d;
|
76
76
|
this._terminated = false;
|
77
77
|
this.descriptors = {
|
78
78
|
page: {},
|
@@ -83,16 +83,24 @@ class RecommendationServiceClient {
|
|
83
83
|
// Ensure that options include all the required fields.
|
84
84
|
const staticMembers = this
|
85
85
|
.constructor;
|
86
|
-
|
86
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
|
87
|
+
(opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
|
88
|
+
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
89
|
+
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
90
|
+
}
|
91
|
+
this._universeDomain =
|
92
|
+
(_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 : 'googleapis.com';
|
93
|
+
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
94
|
+
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
87
95
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
88
96
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
89
|
-
const clientConfig = (
|
90
|
-
const fallback = (
|
97
|
+
const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
|
98
|
+
const fallback = (_d = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _d !== void 0 ? _d : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
91
99
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
92
100
|
// Request numeric enum values if REST transport is used.
|
93
101
|
opts.numericEnums = true;
|
94
102
|
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
|
95
|
-
if (servicePath !==
|
103
|
+
if (servicePath !== this._servicePath && !('scopes' in opts)) {
|
96
104
|
opts['scopes'] = staticMembers.scopes;
|
97
105
|
}
|
98
106
|
// Load google-gax module synchronously if needed
|
@@ -110,9 +118,9 @@ class RecommendationServiceClient {
|
|
110
118
|
// Set useJWTAccessWithScope on the auth object.
|
111
119
|
this.auth.useJWTAccessWithScope = true;
|
112
120
|
// Set defaultServicePath on the auth object.
|
113
|
-
this.auth.defaultServicePath =
|
121
|
+
this.auth.defaultServicePath = this._servicePath;
|
114
122
|
// Set the default scopes in auth client if needed.
|
115
|
-
if (servicePath ===
|
123
|
+
if (servicePath === this._servicePath) {
|
116
124
|
this.auth.defaultScopes = staticMembers.scopes;
|
117
125
|
}
|
118
126
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
@@ -139,10 +147,13 @@ class RecommendationServiceClient {
|
|
139
147
|
// identifiers to uniquely identify resources within the API.
|
140
148
|
// Create useful helper objects for these.
|
141
149
|
this.pathTemplates = {
|
150
|
+
aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
|
142
151
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
143
152
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
144
153
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
154
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
145
155
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
156
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
146
157
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
147
158
|
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
148
159
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
@@ -151,7 +162,9 @@ class RecommendationServiceClient {
|
|
151
162
|
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
152
163
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
153
164
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
165
|
+
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
154
166
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
167
|
+
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
155
168
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
156
169
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
157
170
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
@@ -210,19 +223,38 @@ class RecommendationServiceClient {
|
|
210
223
|
}
|
211
224
|
/**
|
212
225
|
* The DNS address for this API service.
|
226
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
213
227
|
* @returns {string} The DNS address for this service.
|
214
228
|
*/
|
215
229
|
static get servicePath() {
|
230
|
+
if (typeof process !== undefined &&
|
231
|
+
typeof process.emitWarning === 'function') {
|
232
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
233
|
+
}
|
216
234
|
return 'discoveryengine.googleapis.com';
|
217
235
|
}
|
218
236
|
/**
|
219
|
-
* The DNS address for this API service - same as servicePath
|
220
|
-
*
|
237
|
+
* The DNS address for this API service - same as servicePath.
|
238
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
221
239
|
* @returns {string} The DNS address for this service.
|
222
240
|
*/
|
223
241
|
static get apiEndpoint() {
|
242
|
+
if (typeof process !== undefined &&
|
243
|
+
typeof process.emitWarning === 'function') {
|
244
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
245
|
+
}
|
224
246
|
return 'discoveryengine.googleapis.com';
|
225
247
|
}
|
248
|
+
/**
|
249
|
+
* The DNS address for this API service.
|
250
|
+
* @returns {string} The DNS address for this service.
|
251
|
+
*/
|
252
|
+
get apiEndpoint() {
|
253
|
+
return this._servicePath;
|
254
|
+
}
|
255
|
+
get universeDomain() {
|
256
|
+
return this._universeDomain;
|
257
|
+
}
|
226
258
|
/**
|
227
259
|
* The port for this API service.
|
228
260
|
* @returns {number} The default port for this service.
|
@@ -328,6 +360,41 @@ class RecommendationServiceClient {
|
|
328
360
|
// --------------------
|
329
361
|
// -- Path templates --
|
330
362
|
// --------------------
|
363
|
+
/**
|
364
|
+
* Return a fully-qualified aclConfig resource name string.
|
365
|
+
*
|
366
|
+
* @param {string} project
|
367
|
+
* @param {string} location
|
368
|
+
* @returns {string} Resource name string.
|
369
|
+
*/
|
370
|
+
aclConfigPath(project, location) {
|
371
|
+
return this.pathTemplates.aclConfigPathTemplate.render({
|
372
|
+
project: project,
|
373
|
+
location: location,
|
374
|
+
});
|
375
|
+
}
|
376
|
+
/**
|
377
|
+
* Parse the project from AclConfig resource.
|
378
|
+
*
|
379
|
+
* @param {string} aclConfigName
|
380
|
+
* A fully-qualified path representing AclConfig resource.
|
381
|
+
* @returns {string} A string representing the project.
|
382
|
+
*/
|
383
|
+
matchProjectFromAclConfigName(aclConfigName) {
|
384
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
385
|
+
.project;
|
386
|
+
}
|
387
|
+
/**
|
388
|
+
* Parse the location from AclConfig resource.
|
389
|
+
*
|
390
|
+
* @param {string} aclConfigName
|
391
|
+
* A fully-qualified path representing AclConfig resource.
|
392
|
+
* @returns {string} A string representing the location.
|
393
|
+
*/
|
394
|
+
matchLocationFromAclConfigName(aclConfigName) {
|
395
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
396
|
+
.location;
|
397
|
+
}
|
331
398
|
/**
|
332
399
|
* Return a fully-qualified engine resource name string.
|
333
400
|
*
|
@@ -523,6 +590,99 @@ class RecommendationServiceClient {
|
|
523
590
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
524
591
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
525
592
|
}
|
593
|
+
/**
|
594
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
595
|
+
*
|
596
|
+
* @param {string} project
|
597
|
+
* @param {string} location
|
598
|
+
* @param {string} collection
|
599
|
+
* @param {string} data_store
|
600
|
+
* @param {string} branch
|
601
|
+
* @param {string} document
|
602
|
+
* @param {string} chunk
|
603
|
+
* @returns {string} Resource name string.
|
604
|
+
*/
|
605
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
606
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
607
|
+
project: project,
|
608
|
+
location: location,
|
609
|
+
collection: collection,
|
610
|
+
data_store: dataStore,
|
611
|
+
branch: branch,
|
612
|
+
document: document,
|
613
|
+
chunk: chunk,
|
614
|
+
});
|
615
|
+
}
|
616
|
+
/**
|
617
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
618
|
+
*
|
619
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
620
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
621
|
+
* @returns {string} A string representing the project.
|
622
|
+
*/
|
623
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
624
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
625
|
+
}
|
626
|
+
/**
|
627
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
628
|
+
*
|
629
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
630
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
631
|
+
* @returns {string} A string representing the location.
|
632
|
+
*/
|
633
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
634
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
635
|
+
}
|
636
|
+
/**
|
637
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
638
|
+
*
|
639
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
640
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
641
|
+
* @returns {string} A string representing the collection.
|
642
|
+
*/
|
643
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
644
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
645
|
+
}
|
646
|
+
/**
|
647
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
648
|
+
*
|
649
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
650
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
651
|
+
* @returns {string} A string representing the data_store.
|
652
|
+
*/
|
653
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
654
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
655
|
+
}
|
656
|
+
/**
|
657
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
658
|
+
*
|
659
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
660
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
661
|
+
* @returns {string} A string representing the branch.
|
662
|
+
*/
|
663
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
664
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
665
|
+
}
|
666
|
+
/**
|
667
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
668
|
+
*
|
669
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
670
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
671
|
+
* @returns {string} A string representing the document.
|
672
|
+
*/
|
673
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
674
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
675
|
+
}
|
676
|
+
/**
|
677
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
678
|
+
*
|
679
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
680
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
681
|
+
* @returns {string} A string representing the chunk.
|
682
|
+
*/
|
683
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
684
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
685
|
+
}
|
526
686
|
/**
|
527
687
|
* Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
|
528
688
|
*
|
@@ -592,6 +752,63 @@ class RecommendationServiceClient {
|
|
592
752
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
593
753
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
594
754
|
}
|
755
|
+
/**
|
756
|
+
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
757
|
+
*
|
758
|
+
* @param {string} project
|
759
|
+
* @param {string} location
|
760
|
+
* @param {string} collection
|
761
|
+
* @param {string} data_store
|
762
|
+
* @returns {string} Resource name string.
|
763
|
+
*/
|
764
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
|
765
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
|
766
|
+
project: project,
|
767
|
+
location: location,
|
768
|
+
collection: collection,
|
769
|
+
data_store: dataStore,
|
770
|
+
});
|
771
|
+
}
|
772
|
+
/**
|
773
|
+
* Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
774
|
+
*
|
775
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
776
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
777
|
+
* @returns {string} A string representing the project.
|
778
|
+
*/
|
779
|
+
matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
780
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
|
781
|
+
}
|
782
|
+
/**
|
783
|
+
* Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
784
|
+
*
|
785
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
786
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
787
|
+
* @returns {string} A string representing the location.
|
788
|
+
*/
|
789
|
+
matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
790
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
|
791
|
+
}
|
792
|
+
/**
|
793
|
+
* Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
794
|
+
*
|
795
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
796
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
797
|
+
* @returns {string} A string representing the collection.
|
798
|
+
*/
|
799
|
+
matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
800
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
|
801
|
+
}
|
802
|
+
/**
|
803
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
804
|
+
*
|
805
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
806
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
807
|
+
* @returns {string} A string representing the data_store.
|
808
|
+
*/
|
809
|
+
matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
810
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
|
811
|
+
}
|
595
812
|
/**
|
596
813
|
* Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
|
597
814
|
*
|
@@ -1108,6 +1325,87 @@ class RecommendationServiceClient {
|
|
1108
1325
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
1109
1326
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
1110
1327
|
}
|
1328
|
+
/**
|
1329
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
1330
|
+
*
|
1331
|
+
* @param {string} project
|
1332
|
+
* @param {string} location
|
1333
|
+
* @param {string} data_store
|
1334
|
+
* @param {string} branch
|
1335
|
+
* @param {string} document
|
1336
|
+
* @param {string} chunk
|
1337
|
+
* @returns {string} Resource name string.
|
1338
|
+
*/
|
1339
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
1340
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
1341
|
+
project: project,
|
1342
|
+
location: location,
|
1343
|
+
data_store: dataStore,
|
1344
|
+
branch: branch,
|
1345
|
+
document: document,
|
1346
|
+
chunk: chunk,
|
1347
|
+
});
|
1348
|
+
}
|
1349
|
+
/**
|
1350
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1351
|
+
*
|
1352
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1353
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1354
|
+
* @returns {string} A string representing the project.
|
1355
|
+
*/
|
1356
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1357
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
1358
|
+
}
|
1359
|
+
/**
|
1360
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1361
|
+
*
|
1362
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1363
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1364
|
+
* @returns {string} A string representing the location.
|
1365
|
+
*/
|
1366
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1367
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
1368
|
+
}
|
1369
|
+
/**
|
1370
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1371
|
+
*
|
1372
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1373
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1374
|
+
* @returns {string} A string representing the data_store.
|
1375
|
+
*/
|
1376
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1377
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
1378
|
+
}
|
1379
|
+
/**
|
1380
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1381
|
+
*
|
1382
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1383
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1384
|
+
* @returns {string} A string representing the branch.
|
1385
|
+
*/
|
1386
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1387
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
1388
|
+
}
|
1389
|
+
/**
|
1390
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1391
|
+
*
|
1392
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1393
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1394
|
+
* @returns {string} A string representing the document.
|
1395
|
+
*/
|
1396
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1397
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
1398
|
+
}
|
1399
|
+
/**
|
1400
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1401
|
+
*
|
1402
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1403
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1404
|
+
* @returns {string} A string representing the chunk.
|
1405
|
+
*/
|
1406
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1407
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
1408
|
+
}
|
1111
1409
|
/**
|
1112
1410
|
* Return a fully-qualified projectLocationDataStoreConversation resource name string.
|
1113
1411
|
*
|
@@ -1165,6 +1463,51 @@ class RecommendationServiceClient {
|
|
1165
1463
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
1166
1464
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
1167
1465
|
}
|
1466
|
+
/**
|
1467
|
+
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
1468
|
+
*
|
1469
|
+
* @param {string} project
|
1470
|
+
* @param {string} location
|
1471
|
+
* @param {string} data_store
|
1472
|
+
* @returns {string} Resource name string.
|
1473
|
+
*/
|
1474
|
+
projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
|
1475
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
|
1476
|
+
project: project,
|
1477
|
+
location: location,
|
1478
|
+
data_store: dataStore,
|
1479
|
+
});
|
1480
|
+
}
|
1481
|
+
/**
|
1482
|
+
* Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
1483
|
+
*
|
1484
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
1485
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
1486
|
+
* @returns {string} A string representing the project.
|
1487
|
+
*/
|
1488
|
+
matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
1489
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
|
1490
|
+
}
|
1491
|
+
/**
|
1492
|
+
* Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
1493
|
+
*
|
1494
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
1495
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
1496
|
+
* @returns {string} A string representing the location.
|
1497
|
+
*/
|
1498
|
+
matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
1499
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
|
1500
|
+
}
|
1501
|
+
/**
|
1502
|
+
* Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
1503
|
+
*
|
1504
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
1505
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
1506
|
+
* @returns {string} A string representing the data_store.
|
1507
|
+
*/
|
1508
|
+
matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
1509
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
|
1510
|
+
}
|
1168
1511
|
/**
|
1169
1512
|
* Return a fully-qualified projectLocationDataStoreSchema resource name string.
|
1170
1513
|
*
|