@google-cloud/discoveryengine 1.3.1 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 EngineServiceClient {
|
|
|
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 EngineServiceClient {
|
|
|
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 EngineServiceClient {
|
|
|
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 EngineServiceClient {
|
|
|
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
|
};
|
|
@@ -334,19 +350,38 @@ class EngineServiceClient {
|
|
|
334
350
|
}
|
|
335
351
|
/**
|
|
336
352
|
* The DNS address for this API service.
|
|
353
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
337
354
|
* @returns {string} The DNS address for this service.
|
|
338
355
|
*/
|
|
339
356
|
static get servicePath() {
|
|
357
|
+
if (typeof process !== undefined &&
|
|
358
|
+
typeof process.emitWarning === 'function') {
|
|
359
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
360
|
+
}
|
|
340
361
|
return 'discoveryengine.googleapis.com';
|
|
341
362
|
}
|
|
342
363
|
/**
|
|
343
|
-
* The DNS address for this API service - same as servicePath
|
|
344
|
-
*
|
|
364
|
+
* The DNS address for this API service - same as servicePath.
|
|
365
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
345
366
|
* @returns {string} The DNS address for this service.
|
|
346
367
|
*/
|
|
347
368
|
static get apiEndpoint() {
|
|
369
|
+
if (typeof process !== undefined &&
|
|
370
|
+
typeof process.emitWarning === 'function') {
|
|
371
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
372
|
+
}
|
|
348
373
|
return 'discoveryengine.googleapis.com';
|
|
349
374
|
}
|
|
375
|
+
/**
|
|
376
|
+
* The DNS address for this API service.
|
|
377
|
+
* @returns {string} The DNS address for this service.
|
|
378
|
+
*/
|
|
379
|
+
get apiEndpoint() {
|
|
380
|
+
return this._servicePath;
|
|
381
|
+
}
|
|
382
|
+
get universeDomain() {
|
|
383
|
+
return this._universeDomain;
|
|
384
|
+
}
|
|
350
385
|
/**
|
|
351
386
|
* The port for this API service.
|
|
352
387
|
* @returns {number} The default port for this service.
|
|
@@ -861,6 +896,41 @@ class EngineServiceClient {
|
|
|
861
896
|
// --------------------
|
|
862
897
|
// -- Path templates --
|
|
863
898
|
// --------------------
|
|
899
|
+
/**
|
|
900
|
+
* Return a fully-qualified aclConfig resource name string.
|
|
901
|
+
*
|
|
902
|
+
* @param {string} project
|
|
903
|
+
* @param {string} location
|
|
904
|
+
* @returns {string} Resource name string.
|
|
905
|
+
*/
|
|
906
|
+
aclConfigPath(project, location) {
|
|
907
|
+
return this.pathTemplates.aclConfigPathTemplate.render({
|
|
908
|
+
project: project,
|
|
909
|
+
location: location,
|
|
910
|
+
});
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* Parse the project from AclConfig resource.
|
|
914
|
+
*
|
|
915
|
+
* @param {string} aclConfigName
|
|
916
|
+
* A fully-qualified path representing AclConfig resource.
|
|
917
|
+
* @returns {string} A string representing the project.
|
|
918
|
+
*/
|
|
919
|
+
matchProjectFromAclConfigName(aclConfigName) {
|
|
920
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
|
921
|
+
.project;
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* Parse the location from AclConfig resource.
|
|
925
|
+
*
|
|
926
|
+
* @param {string} aclConfigName
|
|
927
|
+
* A fully-qualified path representing AclConfig resource.
|
|
928
|
+
* @returns {string} A string representing the location.
|
|
929
|
+
*/
|
|
930
|
+
matchLocationFromAclConfigName(aclConfigName) {
|
|
931
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
|
932
|
+
.location;
|
|
933
|
+
}
|
|
864
934
|
/**
|
|
865
935
|
* Return a fully-qualified collection resource name string.
|
|
866
936
|
*
|
|
@@ -1104,6 +1174,99 @@ class EngineServiceClient {
|
|
|
1104
1174
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
|
1105
1175
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
|
1106
1176
|
}
|
|
1177
|
+
/**
|
|
1178
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
|
1179
|
+
*
|
|
1180
|
+
* @param {string} project
|
|
1181
|
+
* @param {string} location
|
|
1182
|
+
* @param {string} collection
|
|
1183
|
+
* @param {string} data_store
|
|
1184
|
+
* @param {string} branch
|
|
1185
|
+
* @param {string} document
|
|
1186
|
+
* @param {string} chunk
|
|
1187
|
+
* @returns {string} Resource name string.
|
|
1188
|
+
*/
|
|
1189
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
|
1190
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
|
1191
|
+
project: project,
|
|
1192
|
+
location: location,
|
|
1193
|
+
collection: collection,
|
|
1194
|
+
data_store: dataStore,
|
|
1195
|
+
branch: branch,
|
|
1196
|
+
document: document,
|
|
1197
|
+
chunk: chunk,
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
1202
|
+
*
|
|
1203
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
1204
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
1205
|
+
* @returns {string} A string representing the project.
|
|
1206
|
+
*/
|
|
1207
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
1208
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
|
1209
|
+
}
|
|
1210
|
+
/**
|
|
1211
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
1212
|
+
*
|
|
1213
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
1214
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
1215
|
+
* @returns {string} A string representing the location.
|
|
1216
|
+
*/
|
|
1217
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
1218
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
|
1219
|
+
}
|
|
1220
|
+
/**
|
|
1221
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
1222
|
+
*
|
|
1223
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
1224
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
1225
|
+
* @returns {string} A string representing the collection.
|
|
1226
|
+
*/
|
|
1227
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
1228
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
|
1229
|
+
}
|
|
1230
|
+
/**
|
|
1231
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
1232
|
+
*
|
|
1233
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
1234
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
1235
|
+
* @returns {string} A string representing the data_store.
|
|
1236
|
+
*/
|
|
1237
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
1238
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
|
1239
|
+
}
|
|
1240
|
+
/**
|
|
1241
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
1242
|
+
*
|
|
1243
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
1244
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
1245
|
+
* @returns {string} A string representing the branch.
|
|
1246
|
+
*/
|
|
1247
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
1248
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
1252
|
+
*
|
|
1253
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
1254
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
1255
|
+
* @returns {string} A string representing the document.
|
|
1256
|
+
*/
|
|
1257
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
1258
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
1262
|
+
*
|
|
1263
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
1264
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
1265
|
+
* @returns {string} A string representing the chunk.
|
|
1266
|
+
*/
|
|
1267
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
1268
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
|
1269
|
+
}
|
|
1107
1270
|
/**
|
|
1108
1271
|
* Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
|
|
1109
1272
|
*
|
|
@@ -1173,6 +1336,63 @@ class EngineServiceClient {
|
|
|
1173
1336
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
|
1174
1337
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
|
1175
1338
|
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
|
1341
|
+
*
|
|
1342
|
+
* @param {string} project
|
|
1343
|
+
* @param {string} location
|
|
1344
|
+
* @param {string} collection
|
|
1345
|
+
* @param {string} data_store
|
|
1346
|
+
* @returns {string} Resource name string.
|
|
1347
|
+
*/
|
|
1348
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
|
|
1349
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
|
|
1350
|
+
project: project,
|
|
1351
|
+
location: location,
|
|
1352
|
+
collection: collection,
|
|
1353
|
+
data_store: dataStore,
|
|
1354
|
+
});
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1358
|
+
*
|
|
1359
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1360
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1361
|
+
* @returns {string} A string representing the project.
|
|
1362
|
+
*/
|
|
1363
|
+
matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1364
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
|
|
1365
|
+
}
|
|
1366
|
+
/**
|
|
1367
|
+
* Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1368
|
+
*
|
|
1369
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1370
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1371
|
+
* @returns {string} A string representing the location.
|
|
1372
|
+
*/
|
|
1373
|
+
matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1374
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
* Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1378
|
+
*
|
|
1379
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1380
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1381
|
+
* @returns {string} A string representing the collection.
|
|
1382
|
+
*/
|
|
1383
|
+
matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1384
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
|
|
1385
|
+
}
|
|
1386
|
+
/**
|
|
1387
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1388
|
+
*
|
|
1389
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1390
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1391
|
+
* @returns {string} A string representing the data_store.
|
|
1392
|
+
*/
|
|
1393
|
+
matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1394
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
|
|
1395
|
+
}
|
|
1176
1396
|
/**
|
|
1177
1397
|
* Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
|
|
1178
1398
|
*
|
|
@@ -1242,6 +1462,75 @@ class EngineServiceClient {
|
|
|
1242
1462
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
|
1243
1463
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
|
1244
1464
|
}
|
|
1465
|
+
/**
|
|
1466
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
|
1467
|
+
*
|
|
1468
|
+
* @param {string} project
|
|
1469
|
+
* @param {string} location
|
|
1470
|
+
* @param {string} collection
|
|
1471
|
+
* @param {string} data_store
|
|
1472
|
+
* @param {string} serving_config
|
|
1473
|
+
* @returns {string} Resource name string.
|
|
1474
|
+
*/
|
|
1475
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
|
1476
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
|
1477
|
+
project: project,
|
|
1478
|
+
location: location,
|
|
1479
|
+
collection: collection,
|
|
1480
|
+
data_store: dataStore,
|
|
1481
|
+
serving_config: servingConfig,
|
|
1482
|
+
});
|
|
1483
|
+
}
|
|
1484
|
+
/**
|
|
1485
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1486
|
+
*
|
|
1487
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1488
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1489
|
+
* @returns {string} A string representing the project.
|
|
1490
|
+
*/
|
|
1491
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1492
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
|
1493
|
+
}
|
|
1494
|
+
/**
|
|
1495
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1496
|
+
*
|
|
1497
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1498
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1499
|
+
* @returns {string} A string representing the location.
|
|
1500
|
+
*/
|
|
1501
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1502
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
|
1503
|
+
}
|
|
1504
|
+
/**
|
|
1505
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1506
|
+
*
|
|
1507
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1508
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1509
|
+
* @returns {string} A string representing the collection.
|
|
1510
|
+
*/
|
|
1511
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1512
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
|
1513
|
+
}
|
|
1514
|
+
/**
|
|
1515
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1516
|
+
*
|
|
1517
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1518
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1519
|
+
* @returns {string} A string representing the data_store.
|
|
1520
|
+
*/
|
|
1521
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1522
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1526
|
+
*
|
|
1527
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1528
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1529
|
+
* @returns {string} A string representing the serving_config.
|
|
1530
|
+
*/
|
|
1531
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1532
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
|
1533
|
+
}
|
|
1245
1534
|
/**
|
|
1246
1535
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
|
1247
1536
|
*
|
|
@@ -1437,6 +1726,75 @@ class EngineServiceClient {
|
|
|
1437
1726
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
|
1438
1727
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
|
1439
1728
|
}
|
|
1729
|
+
/**
|
|
1730
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
|
1731
|
+
*
|
|
1732
|
+
* @param {string} project
|
|
1733
|
+
* @param {string} location
|
|
1734
|
+
* @param {string} collection
|
|
1735
|
+
* @param {string} engine
|
|
1736
|
+
* @param {string} serving_config
|
|
1737
|
+
* @returns {string} Resource name string.
|
|
1738
|
+
*/
|
|
1739
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
|
1740
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
|
1741
|
+
project: project,
|
|
1742
|
+
location: location,
|
|
1743
|
+
collection: collection,
|
|
1744
|
+
engine: engine,
|
|
1745
|
+
serving_config: servingConfig,
|
|
1746
|
+
});
|
|
1747
|
+
}
|
|
1748
|
+
/**
|
|
1749
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
|
1750
|
+
*
|
|
1751
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1752
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1753
|
+
* @returns {string} A string representing the project.
|
|
1754
|
+
*/
|
|
1755
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1756
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
|
1760
|
+
*
|
|
1761
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1762
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1763
|
+
* @returns {string} A string representing the location.
|
|
1764
|
+
*/
|
|
1765
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1766
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
|
1767
|
+
}
|
|
1768
|
+
/**
|
|
1769
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
|
1770
|
+
*
|
|
1771
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1772
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1773
|
+
* @returns {string} A string representing the collection.
|
|
1774
|
+
*/
|
|
1775
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1776
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
|
1777
|
+
}
|
|
1778
|
+
/**
|
|
1779
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
|
1780
|
+
*
|
|
1781
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1782
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1783
|
+
* @returns {string} A string representing the engine.
|
|
1784
|
+
*/
|
|
1785
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1786
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
|
1787
|
+
}
|
|
1788
|
+
/**
|
|
1789
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
|
1790
|
+
*
|
|
1791
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1792
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1793
|
+
* @returns {string} A string representing the serving_config.
|
|
1794
|
+
*/
|
|
1795
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1796
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
|
1797
|
+
}
|
|
1440
1798
|
/**
|
|
1441
1799
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
|
1442
1800
|
*
|
|
@@ -1551,6 +1909,87 @@ class EngineServiceClient {
|
|
|
1551
1909
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
|
1552
1910
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
|
1553
1911
|
}
|
|
1912
|
+
/**
|
|
1913
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
|
1914
|
+
*
|
|
1915
|
+
* @param {string} project
|
|
1916
|
+
* @param {string} location
|
|
1917
|
+
* @param {string} data_store
|
|
1918
|
+
* @param {string} branch
|
|
1919
|
+
* @param {string} document
|
|
1920
|
+
* @param {string} chunk
|
|
1921
|
+
* @returns {string} Resource name string.
|
|
1922
|
+
*/
|
|
1923
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
|
1924
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
|
1925
|
+
project: project,
|
|
1926
|
+
location: location,
|
|
1927
|
+
data_store: dataStore,
|
|
1928
|
+
branch: branch,
|
|
1929
|
+
document: document,
|
|
1930
|
+
chunk: chunk,
|
|
1931
|
+
});
|
|
1932
|
+
}
|
|
1933
|
+
/**
|
|
1934
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1935
|
+
*
|
|
1936
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1937
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1938
|
+
* @returns {string} A string representing the project.
|
|
1939
|
+
*/
|
|
1940
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1941
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
|
1942
|
+
}
|
|
1943
|
+
/**
|
|
1944
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1945
|
+
*
|
|
1946
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1947
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1948
|
+
* @returns {string} A string representing the location.
|
|
1949
|
+
*/
|
|
1950
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1951
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
|
1952
|
+
}
|
|
1953
|
+
/**
|
|
1954
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1955
|
+
*
|
|
1956
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1957
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1958
|
+
* @returns {string} A string representing the data_store.
|
|
1959
|
+
*/
|
|
1960
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1961
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
|
1962
|
+
}
|
|
1963
|
+
/**
|
|
1964
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1965
|
+
*
|
|
1966
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1967
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1968
|
+
* @returns {string} A string representing the branch.
|
|
1969
|
+
*/
|
|
1970
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1971
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
|
1972
|
+
}
|
|
1973
|
+
/**
|
|
1974
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1975
|
+
*
|
|
1976
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1977
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1978
|
+
* @returns {string} A string representing the document.
|
|
1979
|
+
*/
|
|
1980
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1981
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
|
1982
|
+
}
|
|
1983
|
+
/**
|
|
1984
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1985
|
+
*
|
|
1986
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1987
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1988
|
+
* @returns {string} A string representing the chunk.
|
|
1989
|
+
*/
|
|
1990
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1991
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
|
1992
|
+
}
|
|
1554
1993
|
/**
|
|
1555
1994
|
* Return a fully-qualified projectLocationDataStoreConversation resource name string.
|
|
1556
1995
|
*
|
|
@@ -1608,6 +2047,51 @@ class EngineServiceClient {
|
|
|
1608
2047
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
|
1609
2048
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
|
1610
2049
|
}
|
|
2050
|
+
/**
|
|
2051
|
+
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
|
2052
|
+
*
|
|
2053
|
+
* @param {string} project
|
|
2054
|
+
* @param {string} location
|
|
2055
|
+
* @param {string} data_store
|
|
2056
|
+
* @returns {string} Resource name string.
|
|
2057
|
+
*/
|
|
2058
|
+
projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
|
|
2059
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
|
|
2060
|
+
project: project,
|
|
2061
|
+
location: location,
|
|
2062
|
+
data_store: dataStore,
|
|
2063
|
+
});
|
|
2064
|
+
}
|
|
2065
|
+
/**
|
|
2066
|
+
* Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
|
2067
|
+
*
|
|
2068
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
|
2069
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
|
2070
|
+
* @returns {string} A string representing the project.
|
|
2071
|
+
*/
|
|
2072
|
+
matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
|
2073
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
|
2077
|
+
*
|
|
2078
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
|
2079
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
|
2080
|
+
* @returns {string} A string representing the location.
|
|
2081
|
+
*/
|
|
2082
|
+
matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
|
2083
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
|
|
2084
|
+
}
|
|
2085
|
+
/**
|
|
2086
|
+
* Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
|
2087
|
+
*
|
|
2088
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
|
2089
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
|
2090
|
+
* @returns {string} A string representing the data_store.
|
|
2091
|
+
*/
|
|
2092
|
+
matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
|
2093
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
|
|
2094
|
+
}
|
|
1611
2095
|
/**
|
|
1612
2096
|
* Return a fully-qualified projectLocationDataStoreSchema resource name string.
|
|
1613
2097
|
*
|
|
@@ -1665,6 +2149,63 @@ class EngineServiceClient {
|
|
|
1665
2149
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
|
1666
2150
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
|
1667
2151
|
}
|
|
2152
|
+
/**
|
|
2153
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
|
2154
|
+
*
|
|
2155
|
+
* @param {string} project
|
|
2156
|
+
* @param {string} location
|
|
2157
|
+
* @param {string} data_store
|
|
2158
|
+
* @param {string} serving_config
|
|
2159
|
+
* @returns {string} Resource name string.
|
|
2160
|
+
*/
|
|
2161
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
|
2162
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
|
2163
|
+
project: project,
|
|
2164
|
+
location: location,
|
|
2165
|
+
data_store: dataStore,
|
|
2166
|
+
serving_config: servingConfig,
|
|
2167
|
+
});
|
|
2168
|
+
}
|
|
2169
|
+
/**
|
|
2170
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
|
2171
|
+
*
|
|
2172
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
2173
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
2174
|
+
* @returns {string} A string representing the project.
|
|
2175
|
+
*/
|
|
2176
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
2177
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
|
2178
|
+
}
|
|
2179
|
+
/**
|
|
2180
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
|
2181
|
+
*
|
|
2182
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
2183
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
2184
|
+
* @returns {string} A string representing the location.
|
|
2185
|
+
*/
|
|
2186
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
2187
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
|
2188
|
+
}
|
|
2189
|
+
/**
|
|
2190
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
|
2191
|
+
*
|
|
2192
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
2193
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
2194
|
+
* @returns {string} A string representing the data_store.
|
|
2195
|
+
*/
|
|
2196
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
2197
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
|
2198
|
+
}
|
|
2199
|
+
/**
|
|
2200
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
|
2201
|
+
*
|
|
2202
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
2203
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
2204
|
+
* @returns {string} A string representing the serving_config.
|
|
2205
|
+
*/
|
|
2206
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
2207
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
|
2208
|
+
}
|
|
1668
2209
|
/**
|
|
1669
2210
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
|
1670
2211
|
*
|