@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.
|
@@ -73,7 +73,7 @@ class DataStoreServiceClient {
|
|
73
73
|
* ```
|
74
74
|
*/
|
75
75
|
constructor(opts, gaxInstance) {
|
76
|
-
var _a, _b;
|
76
|
+
var _a, _b, _c, _d;
|
77
77
|
this._terminated = false;
|
78
78
|
this.descriptors = {
|
79
79
|
page: {},
|
@@ -83,16 +83,24 @@ class DataStoreServiceClient {
|
|
83
83
|
};
|
84
84
|
// Ensure that options include all the required fields.
|
85
85
|
const staticMembers = this.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 DataStoreServiceClient {
|
|
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,19 +147,27 @@ class DataStoreServiceClient {
|
|
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
|
collectionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}'),
|
143
152
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
144
153
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
145
154
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
155
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
146
156
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
157
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
147
158
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
159
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
148
160
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
149
161
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
150
162
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
163
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
151
164
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
152
165
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
166
|
+
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
153
167
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
168
|
+
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
154
169
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
170
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
155
171
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
156
172
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
157
173
|
};
|
@@ -307,6 +323,8 @@ class DataStoreServiceClient {
|
|
307
323
|
'listDataStores',
|
308
324
|
'deleteDataStore',
|
309
325
|
'updateDataStore',
|
326
|
+
'getDocumentProcessingConfig',
|
327
|
+
'updateDocumentProcessingConfig',
|
310
328
|
];
|
311
329
|
for (const methodName of dataStoreServiceStubMethods) {
|
312
330
|
const callPromise = this.dataStoreServiceStub.then(stub => (...args) => {
|
@@ -328,19 +346,38 @@ class DataStoreServiceClient {
|
|
328
346
|
}
|
329
347
|
/**
|
330
348
|
* The DNS address for this API service.
|
349
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
331
350
|
* @returns {string} The DNS address for this service.
|
332
351
|
*/
|
333
352
|
static get servicePath() {
|
353
|
+
if (typeof process !== undefined &&
|
354
|
+
typeof process.emitWarning === 'function') {
|
355
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
356
|
+
}
|
334
357
|
return 'discoveryengine.googleapis.com';
|
335
358
|
}
|
336
359
|
/**
|
337
|
-
* The DNS address for this API service - same as servicePath
|
338
|
-
*
|
360
|
+
* The DNS address for this API service - same as servicePath.
|
361
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
339
362
|
* @returns {string} The DNS address for this service.
|
340
363
|
*/
|
341
364
|
static get apiEndpoint() {
|
365
|
+
if (typeof process !== undefined &&
|
366
|
+
typeof process.emitWarning === 'function') {
|
367
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
368
|
+
}
|
342
369
|
return 'discoveryengine.googleapis.com';
|
343
370
|
}
|
371
|
+
/**
|
372
|
+
* The DNS address for this API service.
|
373
|
+
* @returns {string} The DNS address for this service.
|
374
|
+
*/
|
375
|
+
get apiEndpoint() {
|
376
|
+
return this._servicePath;
|
377
|
+
}
|
378
|
+
get universeDomain() {
|
379
|
+
return this._universeDomain;
|
380
|
+
}
|
344
381
|
/**
|
345
382
|
* The port for this API service.
|
346
383
|
* @returns {number} The default port for this service.
|
@@ -409,6 +446,48 @@ class DataStoreServiceClient {
|
|
409
446
|
this.initialize();
|
410
447
|
return this.innerApiCalls.updateDataStore(request, options, callback);
|
411
448
|
}
|
449
|
+
getDocumentProcessingConfig(request, optionsOrCallback, callback) {
|
450
|
+
var _a;
|
451
|
+
request = request || {};
|
452
|
+
let options;
|
453
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
454
|
+
callback = optionsOrCallback;
|
455
|
+
options = {};
|
456
|
+
}
|
457
|
+
else {
|
458
|
+
options = optionsOrCallback;
|
459
|
+
}
|
460
|
+
options = options || {};
|
461
|
+
options.otherArgs = options.otherArgs || {};
|
462
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
463
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
464
|
+
this._gaxModule.routingHeader.fromParams({
|
465
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
466
|
+
});
|
467
|
+
this.initialize();
|
468
|
+
return this.innerApiCalls.getDocumentProcessingConfig(request, options, callback);
|
469
|
+
}
|
470
|
+
updateDocumentProcessingConfig(request, optionsOrCallback, callback) {
|
471
|
+
var _a;
|
472
|
+
request = request || {};
|
473
|
+
let options;
|
474
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
475
|
+
callback = optionsOrCallback;
|
476
|
+
options = {};
|
477
|
+
}
|
478
|
+
else {
|
479
|
+
options = optionsOrCallback;
|
480
|
+
}
|
481
|
+
options = options || {};
|
482
|
+
options.otherArgs = options.otherArgs || {};
|
483
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
484
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
485
|
+
this._gaxModule.routingHeader.fromParams({
|
486
|
+
'document_processing_config.name': (_a = request.documentProcessingConfig.name) !== null && _a !== void 0 ? _a : '',
|
487
|
+
});
|
488
|
+
this.initialize();
|
489
|
+
return this.innerApiCalls.updateDocumentProcessingConfig(request, options, callback);
|
490
|
+
}
|
412
491
|
createDataStore(request, optionsOrCallback, callback) {
|
413
492
|
var _a;
|
414
493
|
request = request || {};
|
@@ -514,7 +593,8 @@ class DataStoreServiceClient {
|
|
514
593
|
* Required. The parent branch resource name, such as
|
515
594
|
* `projects/{project}/locations/{location}/collections/{collection_id}`.
|
516
595
|
*
|
517
|
-
* If the caller does not have permission to list
|
596
|
+
* If the caller does not have permission to list
|
597
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.DataStore|DataStore}s under this
|
518
598
|
* location, regardless of whether or not this data store exists, a
|
519
599
|
* PERMISSION_DENIED error is returned.
|
520
600
|
* @param {number} request.pageSize
|
@@ -574,7 +654,8 @@ class DataStoreServiceClient {
|
|
574
654
|
* Required. The parent branch resource name, such as
|
575
655
|
* `projects/{project}/locations/{location}/collections/{collection_id}`.
|
576
656
|
*
|
577
|
-
* If the caller does not have permission to list
|
657
|
+
* If the caller does not have permission to list
|
658
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.DataStore|DataStore}s under this
|
578
659
|
* location, regardless of whether or not this data store exists, a
|
579
660
|
* PERMISSION_DENIED error is returned.
|
580
661
|
* @param {number} request.pageSize
|
@@ -811,6 +892,41 @@ class DataStoreServiceClient {
|
|
811
892
|
// --------------------
|
812
893
|
// -- Path templates --
|
813
894
|
// --------------------
|
895
|
+
/**
|
896
|
+
* Return a fully-qualified aclConfig resource name string.
|
897
|
+
*
|
898
|
+
* @param {string} project
|
899
|
+
* @param {string} location
|
900
|
+
* @returns {string} Resource name string.
|
901
|
+
*/
|
902
|
+
aclConfigPath(project, location) {
|
903
|
+
return this.pathTemplates.aclConfigPathTemplate.render({
|
904
|
+
project: project,
|
905
|
+
location: location,
|
906
|
+
});
|
907
|
+
}
|
908
|
+
/**
|
909
|
+
* Parse the project from AclConfig resource.
|
910
|
+
*
|
911
|
+
* @param {string} aclConfigName
|
912
|
+
* A fully-qualified path representing AclConfig resource.
|
913
|
+
* @returns {string} A string representing the project.
|
914
|
+
*/
|
915
|
+
matchProjectFromAclConfigName(aclConfigName) {
|
916
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
917
|
+
.project;
|
918
|
+
}
|
919
|
+
/**
|
920
|
+
* Parse the location from AclConfig resource.
|
921
|
+
*
|
922
|
+
* @param {string} aclConfigName
|
923
|
+
* A fully-qualified path representing AclConfig resource.
|
924
|
+
* @returns {string} A string representing the location.
|
925
|
+
*/
|
926
|
+
matchLocationFromAclConfigName(aclConfigName) {
|
927
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
928
|
+
.location;
|
929
|
+
}
|
814
930
|
/**
|
815
931
|
* Return a fully-qualified collection resource name string.
|
816
932
|
*
|
@@ -1054,6 +1170,99 @@ class DataStoreServiceClient {
|
|
1054
1170
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
1055
1171
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
1056
1172
|
}
|
1173
|
+
/**
|
1174
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
1175
|
+
*
|
1176
|
+
* @param {string} project
|
1177
|
+
* @param {string} location
|
1178
|
+
* @param {string} collection
|
1179
|
+
* @param {string} data_store
|
1180
|
+
* @param {string} branch
|
1181
|
+
* @param {string} document
|
1182
|
+
* @param {string} chunk
|
1183
|
+
* @returns {string} Resource name string.
|
1184
|
+
*/
|
1185
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
1186
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
1187
|
+
project: project,
|
1188
|
+
location: location,
|
1189
|
+
collection: collection,
|
1190
|
+
data_store: dataStore,
|
1191
|
+
branch: branch,
|
1192
|
+
document: document,
|
1193
|
+
chunk: chunk,
|
1194
|
+
});
|
1195
|
+
}
|
1196
|
+
/**
|
1197
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1198
|
+
*
|
1199
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1200
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1201
|
+
* @returns {string} A string representing the project.
|
1202
|
+
*/
|
1203
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1204
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
1205
|
+
}
|
1206
|
+
/**
|
1207
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1208
|
+
*
|
1209
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1210
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1211
|
+
* @returns {string} A string representing the location.
|
1212
|
+
*/
|
1213
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1214
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
1215
|
+
}
|
1216
|
+
/**
|
1217
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1218
|
+
*
|
1219
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1220
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1221
|
+
* @returns {string} A string representing the collection.
|
1222
|
+
*/
|
1223
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1224
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
1225
|
+
}
|
1226
|
+
/**
|
1227
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1228
|
+
*
|
1229
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1230
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1231
|
+
* @returns {string} A string representing the data_store.
|
1232
|
+
*/
|
1233
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1234
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
1235
|
+
}
|
1236
|
+
/**
|
1237
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1238
|
+
*
|
1239
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1240
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1241
|
+
* @returns {string} A string representing the branch.
|
1242
|
+
*/
|
1243
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1244
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
1245
|
+
}
|
1246
|
+
/**
|
1247
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1248
|
+
*
|
1249
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1250
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1251
|
+
* @returns {string} A string representing the document.
|
1252
|
+
*/
|
1253
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1254
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
1255
|
+
}
|
1256
|
+
/**
|
1257
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1258
|
+
*
|
1259
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1260
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1261
|
+
* @returns {string} A string representing the chunk.
|
1262
|
+
*/
|
1263
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1264
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
1265
|
+
}
|
1057
1266
|
/**
|
1058
1267
|
* Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
|
1059
1268
|
*
|
@@ -1123,6 +1332,63 @@ class DataStoreServiceClient {
|
|
1123
1332
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
1124
1333
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
1125
1334
|
}
|
1335
|
+
/**
|
1336
|
+
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
1337
|
+
*
|
1338
|
+
* @param {string} project
|
1339
|
+
* @param {string} location
|
1340
|
+
* @param {string} collection
|
1341
|
+
* @param {string} data_store
|
1342
|
+
* @returns {string} Resource name string.
|
1343
|
+
*/
|
1344
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
|
1345
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
|
1346
|
+
project: project,
|
1347
|
+
location: location,
|
1348
|
+
collection: collection,
|
1349
|
+
data_store: dataStore,
|
1350
|
+
});
|
1351
|
+
}
|
1352
|
+
/**
|
1353
|
+
* Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1354
|
+
*
|
1355
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1356
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1357
|
+
* @returns {string} A string representing the project.
|
1358
|
+
*/
|
1359
|
+
matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1360
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
|
1361
|
+
}
|
1362
|
+
/**
|
1363
|
+
* Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1364
|
+
*
|
1365
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1366
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1367
|
+
* @returns {string} A string representing the location.
|
1368
|
+
*/
|
1369
|
+
matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1370
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
|
1371
|
+
}
|
1372
|
+
/**
|
1373
|
+
* Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1374
|
+
*
|
1375
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1376
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1377
|
+
* @returns {string} A string representing the collection.
|
1378
|
+
*/
|
1379
|
+
matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1380
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
|
1381
|
+
}
|
1382
|
+
/**
|
1383
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1384
|
+
*
|
1385
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1386
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1387
|
+
* @returns {string} A string representing the data_store.
|
1388
|
+
*/
|
1389
|
+
matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1390
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
|
1391
|
+
}
|
1126
1392
|
/**
|
1127
1393
|
* Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
|
1128
1394
|
*
|
@@ -1192,6 +1458,75 @@ class DataStoreServiceClient {
|
|
1192
1458
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1193
1459
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1194
1460
|
}
|
1461
|
+
/**
|
1462
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1463
|
+
*
|
1464
|
+
* @param {string} project
|
1465
|
+
* @param {string} location
|
1466
|
+
* @param {string} collection
|
1467
|
+
* @param {string} data_store
|
1468
|
+
* @param {string} serving_config
|
1469
|
+
* @returns {string} Resource name string.
|
1470
|
+
*/
|
1471
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1472
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1473
|
+
project: project,
|
1474
|
+
location: location,
|
1475
|
+
collection: collection,
|
1476
|
+
data_store: dataStore,
|
1477
|
+
serving_config: servingConfig,
|
1478
|
+
});
|
1479
|
+
}
|
1480
|
+
/**
|
1481
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1482
|
+
*
|
1483
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1484
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1485
|
+
* @returns {string} A string representing the project.
|
1486
|
+
*/
|
1487
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1488
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1489
|
+
}
|
1490
|
+
/**
|
1491
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1492
|
+
*
|
1493
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1494
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1495
|
+
* @returns {string} A string representing the location.
|
1496
|
+
*/
|
1497
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1498
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1499
|
+
}
|
1500
|
+
/**
|
1501
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1502
|
+
*
|
1503
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1504
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1505
|
+
* @returns {string} A string representing the collection.
|
1506
|
+
*/
|
1507
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1508
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1509
|
+
}
|
1510
|
+
/**
|
1511
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1512
|
+
*
|
1513
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1514
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1515
|
+
* @returns {string} A string representing the data_store.
|
1516
|
+
*/
|
1517
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1518
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1519
|
+
}
|
1520
|
+
/**
|
1521
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1522
|
+
*
|
1523
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1524
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1525
|
+
* @returns {string} A string representing the serving_config.
|
1526
|
+
*/
|
1527
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1528
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1529
|
+
}
|
1195
1530
|
/**
|
1196
1531
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
1197
1532
|
*
|
@@ -1387,6 +1722,75 @@ class DataStoreServiceClient {
|
|
1387
1722
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1388
1723
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1389
1724
|
}
|
1725
|
+
/**
|
1726
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
1727
|
+
*
|
1728
|
+
* @param {string} project
|
1729
|
+
* @param {string} location
|
1730
|
+
* @param {string} collection
|
1731
|
+
* @param {string} engine
|
1732
|
+
* @param {string} serving_config
|
1733
|
+
* @returns {string} Resource name string.
|
1734
|
+
*/
|
1735
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
1736
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
1737
|
+
project: project,
|
1738
|
+
location: location,
|
1739
|
+
collection: collection,
|
1740
|
+
engine: engine,
|
1741
|
+
serving_config: servingConfig,
|
1742
|
+
});
|
1743
|
+
}
|
1744
|
+
/**
|
1745
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
1746
|
+
*
|
1747
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1748
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1749
|
+
* @returns {string} A string representing the project.
|
1750
|
+
*/
|
1751
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1752
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
1753
|
+
}
|
1754
|
+
/**
|
1755
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
1756
|
+
*
|
1757
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1758
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1759
|
+
* @returns {string} A string representing the location.
|
1760
|
+
*/
|
1761
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1762
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
1763
|
+
}
|
1764
|
+
/**
|
1765
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
1766
|
+
*
|
1767
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1768
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1769
|
+
* @returns {string} A string representing the collection.
|
1770
|
+
*/
|
1771
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1772
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
1773
|
+
}
|
1774
|
+
/**
|
1775
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
1776
|
+
*
|
1777
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1778
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1779
|
+
* @returns {string} A string representing the engine.
|
1780
|
+
*/
|
1781
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1782
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
1783
|
+
}
|
1784
|
+
/**
|
1785
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
1786
|
+
*
|
1787
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1788
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1789
|
+
* @returns {string} A string representing the serving_config.
|
1790
|
+
*/
|
1791
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1792
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1793
|
+
}
|
1390
1794
|
/**
|
1391
1795
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
1392
1796
|
*
|
@@ -1501,6 +1905,87 @@ class DataStoreServiceClient {
|
|
1501
1905
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
1502
1906
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
1503
1907
|
}
|
1908
|
+
/**
|
1909
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
1910
|
+
*
|
1911
|
+
* @param {string} project
|
1912
|
+
* @param {string} location
|
1913
|
+
* @param {string} data_store
|
1914
|
+
* @param {string} branch
|
1915
|
+
* @param {string} document
|
1916
|
+
* @param {string} chunk
|
1917
|
+
* @returns {string} Resource name string.
|
1918
|
+
*/
|
1919
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
1920
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
1921
|
+
project: project,
|
1922
|
+
location: location,
|
1923
|
+
data_store: dataStore,
|
1924
|
+
branch: branch,
|
1925
|
+
document: document,
|
1926
|
+
chunk: chunk,
|
1927
|
+
});
|
1928
|
+
}
|
1929
|
+
/**
|
1930
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1931
|
+
*
|
1932
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1933
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1934
|
+
* @returns {string} A string representing the project.
|
1935
|
+
*/
|
1936
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1937
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
1938
|
+
}
|
1939
|
+
/**
|
1940
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1941
|
+
*
|
1942
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1943
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1944
|
+
* @returns {string} A string representing the location.
|
1945
|
+
*/
|
1946
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1947
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
1948
|
+
}
|
1949
|
+
/**
|
1950
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1951
|
+
*
|
1952
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1953
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1954
|
+
* @returns {string} A string representing the data_store.
|
1955
|
+
*/
|
1956
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1957
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
1958
|
+
}
|
1959
|
+
/**
|
1960
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1961
|
+
*
|
1962
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1963
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1964
|
+
* @returns {string} A string representing the branch.
|
1965
|
+
*/
|
1966
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1967
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
1968
|
+
}
|
1969
|
+
/**
|
1970
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1971
|
+
*
|
1972
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1973
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1974
|
+
* @returns {string} A string representing the document.
|
1975
|
+
*/
|
1976
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1977
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
1978
|
+
}
|
1979
|
+
/**
|
1980
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1981
|
+
*
|
1982
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1983
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1984
|
+
* @returns {string} A string representing the chunk.
|
1985
|
+
*/
|
1986
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1987
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
1988
|
+
}
|
1504
1989
|
/**
|
1505
1990
|
* Return a fully-qualified projectLocationDataStoreConversation resource name string.
|
1506
1991
|
*
|
@@ -1558,6 +2043,51 @@ class DataStoreServiceClient {
|
|
1558
2043
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
1559
2044
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
1560
2045
|
}
|
2046
|
+
/**
|
2047
|
+
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
2048
|
+
*
|
2049
|
+
* @param {string} project
|
2050
|
+
* @param {string} location
|
2051
|
+
* @param {string} data_store
|
2052
|
+
* @returns {string} Resource name string.
|
2053
|
+
*/
|
2054
|
+
projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
|
2055
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
|
2056
|
+
project: project,
|
2057
|
+
location: location,
|
2058
|
+
data_store: dataStore,
|
2059
|
+
});
|
2060
|
+
}
|
2061
|
+
/**
|
2062
|
+
* Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
2063
|
+
*
|
2064
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
2065
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
2066
|
+
* @returns {string} A string representing the project.
|
2067
|
+
*/
|
2068
|
+
matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
2069
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
|
2070
|
+
}
|
2071
|
+
/**
|
2072
|
+
* Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
2073
|
+
*
|
2074
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
2075
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
2076
|
+
* @returns {string} A string representing the location.
|
2077
|
+
*/
|
2078
|
+
matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
2079
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
|
2080
|
+
}
|
2081
|
+
/**
|
2082
|
+
* Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
2083
|
+
*
|
2084
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
2085
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
2086
|
+
* @returns {string} A string representing the data_store.
|
2087
|
+
*/
|
2088
|
+
matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
2089
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
|
2090
|
+
}
|
1561
2091
|
/**
|
1562
2092
|
* Return a fully-qualified projectLocationDataStoreSchema resource name string.
|
1563
2093
|
*
|
@@ -1615,6 +2145,63 @@ class DataStoreServiceClient {
|
|
1615
2145
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
1616
2146
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
1617
2147
|
}
|
2148
|
+
/**
|
2149
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2150
|
+
*
|
2151
|
+
* @param {string} project
|
2152
|
+
* @param {string} location
|
2153
|
+
* @param {string} data_store
|
2154
|
+
* @param {string} serving_config
|
2155
|
+
* @returns {string} Resource name string.
|
2156
|
+
*/
|
2157
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2158
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2159
|
+
project: project,
|
2160
|
+
location: location,
|
2161
|
+
data_store: dataStore,
|
2162
|
+
serving_config: servingConfig,
|
2163
|
+
});
|
2164
|
+
}
|
2165
|
+
/**
|
2166
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2167
|
+
*
|
2168
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2169
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2170
|
+
* @returns {string} A string representing the project.
|
2171
|
+
*/
|
2172
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2173
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2174
|
+
}
|
2175
|
+
/**
|
2176
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2177
|
+
*
|
2178
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2179
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2180
|
+
* @returns {string} A string representing the location.
|
2181
|
+
*/
|
2182
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2183
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2184
|
+
}
|
2185
|
+
/**
|
2186
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2187
|
+
*
|
2188
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2189
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2190
|
+
* @returns {string} A string representing the data_store.
|
2191
|
+
*/
|
2192
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2193
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
2194
|
+
}
|
2195
|
+
/**
|
2196
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
2197
|
+
*
|
2198
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2199
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2200
|
+
* @returns {string} A string representing the serving_config.
|
2201
|
+
*/
|
2202
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2203
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2204
|
+
}
|
1618
2205
|
/**
|
1619
2206
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
1620
2207
|
*
|