@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.
|
@@ -74,7 +74,7 @@ class DocumentServiceClient {
|
|
74
74
|
* ```
|
75
75
|
*/
|
76
76
|
constructor(opts, gaxInstance) {
|
77
|
-
var _a, _b;
|
77
|
+
var _a, _b, _c, _d;
|
78
78
|
this._terminated = false;
|
79
79
|
this.descriptors = {
|
80
80
|
page: {},
|
@@ -84,16 +84,24 @@ class DocumentServiceClient {
|
|
84
84
|
};
|
85
85
|
// Ensure that options include all the required fields.
|
86
86
|
const staticMembers = this.constructor;
|
87
|
-
|
87
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
|
88
|
+
(opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
|
89
|
+
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
90
|
+
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
91
|
+
}
|
92
|
+
this._universeDomain =
|
93
|
+
(_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';
|
94
|
+
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
95
|
+
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
88
96
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
89
97
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
90
|
-
const clientConfig = (
|
91
|
-
const fallback = (
|
98
|
+
const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
|
99
|
+
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');
|
92
100
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
93
101
|
// Request numeric enum values if REST transport is used.
|
94
102
|
opts.numericEnums = true;
|
95
103
|
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
|
96
|
-
if (servicePath !==
|
104
|
+
if (servicePath !== this._servicePath && !('scopes' in opts)) {
|
97
105
|
opts['scopes'] = staticMembers.scopes;
|
98
106
|
}
|
99
107
|
// Load google-gax module synchronously if needed
|
@@ -111,9 +119,9 @@ class DocumentServiceClient {
|
|
111
119
|
// Set useJWTAccessWithScope on the auth object.
|
112
120
|
this.auth.useJWTAccessWithScope = true;
|
113
121
|
// Set defaultServicePath on the auth object.
|
114
|
-
this.auth.defaultServicePath =
|
122
|
+
this.auth.defaultServicePath = this._servicePath;
|
115
123
|
// Set the default scopes in auth client if needed.
|
116
|
-
if (servicePath ===
|
124
|
+
if (servicePath === this._servicePath) {
|
117
125
|
this.auth.defaultScopes = staticMembers.scopes;
|
118
126
|
}
|
119
127
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
@@ -140,20 +148,28 @@ class DocumentServiceClient {
|
|
140
148
|
// identifiers to uniquely identify resources within the API.
|
141
149
|
// Create useful helper objects for these.
|
142
150
|
this.pathTemplates = {
|
151
|
+
aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
|
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
|
projectLocationCollectionDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}'),
|
146
155
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
156
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
147
157
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
158
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
148
159
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
160
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
149
161
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
150
162
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
151
163
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
164
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
152
165
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
153
166
|
projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
|
154
167
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
168
|
+
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
155
169
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
170
|
+
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
156
171
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
172
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
157
173
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
158
174
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
159
175
|
};
|
@@ -332,19 +348,38 @@ class DocumentServiceClient {
|
|
332
348
|
}
|
333
349
|
/**
|
334
350
|
* The DNS address for this API service.
|
351
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
335
352
|
* @returns {string} The DNS address for this service.
|
336
353
|
*/
|
337
354
|
static get servicePath() {
|
355
|
+
if (typeof process !== undefined &&
|
356
|
+
typeof process.emitWarning === 'function') {
|
357
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
358
|
+
}
|
338
359
|
return 'discoveryengine.googleapis.com';
|
339
360
|
}
|
340
361
|
/**
|
341
|
-
* The DNS address for this API service - same as servicePath
|
342
|
-
*
|
362
|
+
* The DNS address for this API service - same as servicePath.
|
363
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
343
364
|
* @returns {string} The DNS address for this service.
|
344
365
|
*/
|
345
366
|
static get apiEndpoint() {
|
367
|
+
if (typeof process !== undefined &&
|
368
|
+
typeof process.emitWarning === 'function') {
|
369
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
370
|
+
}
|
346
371
|
return 'discoveryengine.googleapis.com';
|
347
372
|
}
|
373
|
+
/**
|
374
|
+
* The DNS address for this API service.
|
375
|
+
* @returns {string} The DNS address for this service.
|
376
|
+
*/
|
377
|
+
get apiEndpoint() {
|
378
|
+
return this._servicePath;
|
379
|
+
}
|
380
|
+
get universeDomain() {
|
381
|
+
return this._universeDomain;
|
382
|
+
}
|
348
383
|
/**
|
349
384
|
* The port for this API service.
|
350
385
|
* @returns {number} The default port for this service.
|
@@ -857,6 +892,41 @@ class DocumentServiceClient {
|
|
857
892
|
// --------------------
|
858
893
|
// -- Path templates --
|
859
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
|
+
}
|
860
930
|
/**
|
861
931
|
* Return a fully-qualified engine resource name string.
|
862
932
|
*
|
@@ -1121,6 +1191,99 @@ class DocumentServiceClient {
|
|
1121
1191
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
1122
1192
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
1123
1193
|
}
|
1194
|
+
/**
|
1195
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
1196
|
+
*
|
1197
|
+
* @param {string} project
|
1198
|
+
* @param {string} location
|
1199
|
+
* @param {string} collection
|
1200
|
+
* @param {string} data_store
|
1201
|
+
* @param {string} branch
|
1202
|
+
* @param {string} document
|
1203
|
+
* @param {string} chunk
|
1204
|
+
* @returns {string} Resource name string.
|
1205
|
+
*/
|
1206
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
1207
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
1208
|
+
project: project,
|
1209
|
+
location: location,
|
1210
|
+
collection: collection,
|
1211
|
+
data_store: dataStore,
|
1212
|
+
branch: branch,
|
1213
|
+
document: document,
|
1214
|
+
chunk: chunk,
|
1215
|
+
});
|
1216
|
+
}
|
1217
|
+
/**
|
1218
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1219
|
+
*
|
1220
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1221
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1222
|
+
* @returns {string} A string representing the project.
|
1223
|
+
*/
|
1224
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1225
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
1226
|
+
}
|
1227
|
+
/**
|
1228
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1229
|
+
*
|
1230
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1231
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1232
|
+
* @returns {string} A string representing the location.
|
1233
|
+
*/
|
1234
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1235
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
1236
|
+
}
|
1237
|
+
/**
|
1238
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1239
|
+
*
|
1240
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1241
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1242
|
+
* @returns {string} A string representing the collection.
|
1243
|
+
*/
|
1244
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1245
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
1246
|
+
}
|
1247
|
+
/**
|
1248
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1249
|
+
*
|
1250
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1251
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1252
|
+
* @returns {string} A string representing the data_store.
|
1253
|
+
*/
|
1254
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1255
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
1256
|
+
}
|
1257
|
+
/**
|
1258
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1259
|
+
*
|
1260
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1261
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1262
|
+
* @returns {string} A string representing the branch.
|
1263
|
+
*/
|
1264
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1265
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
1266
|
+
}
|
1267
|
+
/**
|
1268
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1269
|
+
*
|
1270
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1271
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1272
|
+
* @returns {string} A string representing the document.
|
1273
|
+
*/
|
1274
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1275
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
1276
|
+
}
|
1277
|
+
/**
|
1278
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1279
|
+
*
|
1280
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1281
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1282
|
+
* @returns {string} A string representing the chunk.
|
1283
|
+
*/
|
1284
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1285
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
1286
|
+
}
|
1124
1287
|
/**
|
1125
1288
|
* Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
|
1126
1289
|
*
|
@@ -1190,6 +1353,63 @@ class DocumentServiceClient {
|
|
1190
1353
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
1191
1354
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
1192
1355
|
}
|
1356
|
+
/**
|
1357
|
+
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
1358
|
+
*
|
1359
|
+
* @param {string} project
|
1360
|
+
* @param {string} location
|
1361
|
+
* @param {string} collection
|
1362
|
+
* @param {string} data_store
|
1363
|
+
* @returns {string} Resource name string.
|
1364
|
+
*/
|
1365
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
|
1366
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
|
1367
|
+
project: project,
|
1368
|
+
location: location,
|
1369
|
+
collection: collection,
|
1370
|
+
data_store: dataStore,
|
1371
|
+
});
|
1372
|
+
}
|
1373
|
+
/**
|
1374
|
+
* Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1375
|
+
*
|
1376
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1377
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1378
|
+
* @returns {string} A string representing the project.
|
1379
|
+
*/
|
1380
|
+
matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1381
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
|
1382
|
+
}
|
1383
|
+
/**
|
1384
|
+
* Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1385
|
+
*
|
1386
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1387
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1388
|
+
* @returns {string} A string representing the location.
|
1389
|
+
*/
|
1390
|
+
matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1391
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
|
1392
|
+
}
|
1393
|
+
/**
|
1394
|
+
* Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1395
|
+
*
|
1396
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1397
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1398
|
+
* @returns {string} A string representing the collection.
|
1399
|
+
*/
|
1400
|
+
matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1401
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
|
1402
|
+
}
|
1403
|
+
/**
|
1404
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1405
|
+
*
|
1406
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1407
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1408
|
+
* @returns {string} A string representing the data_store.
|
1409
|
+
*/
|
1410
|
+
matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1411
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
|
1412
|
+
}
|
1193
1413
|
/**
|
1194
1414
|
* Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
|
1195
1415
|
*
|
@@ -1259,6 +1479,75 @@ class DocumentServiceClient {
|
|
1259
1479
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1260
1480
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1261
1481
|
}
|
1482
|
+
/**
|
1483
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1484
|
+
*
|
1485
|
+
* @param {string} project
|
1486
|
+
* @param {string} location
|
1487
|
+
* @param {string} collection
|
1488
|
+
* @param {string} data_store
|
1489
|
+
* @param {string} serving_config
|
1490
|
+
* @returns {string} Resource name string.
|
1491
|
+
*/
|
1492
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1493
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1494
|
+
project: project,
|
1495
|
+
location: location,
|
1496
|
+
collection: collection,
|
1497
|
+
data_store: dataStore,
|
1498
|
+
serving_config: servingConfig,
|
1499
|
+
});
|
1500
|
+
}
|
1501
|
+
/**
|
1502
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1503
|
+
*
|
1504
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1505
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1506
|
+
* @returns {string} A string representing the project.
|
1507
|
+
*/
|
1508
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1509
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1510
|
+
}
|
1511
|
+
/**
|
1512
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1513
|
+
*
|
1514
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1515
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1516
|
+
* @returns {string} A string representing the location.
|
1517
|
+
*/
|
1518
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1519
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1520
|
+
}
|
1521
|
+
/**
|
1522
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1523
|
+
*
|
1524
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1525
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1526
|
+
* @returns {string} A string representing the collection.
|
1527
|
+
*/
|
1528
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1529
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1530
|
+
}
|
1531
|
+
/**
|
1532
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1533
|
+
*
|
1534
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1535
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1536
|
+
* @returns {string} A string representing the data_store.
|
1537
|
+
*/
|
1538
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1539
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1540
|
+
}
|
1541
|
+
/**
|
1542
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1543
|
+
*
|
1544
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1545
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1546
|
+
* @returns {string} A string representing the serving_config.
|
1547
|
+
*/
|
1548
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1549
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1550
|
+
}
|
1262
1551
|
/**
|
1263
1552
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
1264
1553
|
*
|
@@ -1454,6 +1743,75 @@ class DocumentServiceClient {
|
|
1454
1743
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1455
1744
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1456
1745
|
}
|
1746
|
+
/**
|
1747
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
1748
|
+
*
|
1749
|
+
* @param {string} project
|
1750
|
+
* @param {string} location
|
1751
|
+
* @param {string} collection
|
1752
|
+
* @param {string} engine
|
1753
|
+
* @param {string} serving_config
|
1754
|
+
* @returns {string} Resource name string.
|
1755
|
+
*/
|
1756
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
1757
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
1758
|
+
project: project,
|
1759
|
+
location: location,
|
1760
|
+
collection: collection,
|
1761
|
+
engine: engine,
|
1762
|
+
serving_config: servingConfig,
|
1763
|
+
});
|
1764
|
+
}
|
1765
|
+
/**
|
1766
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
1767
|
+
*
|
1768
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1769
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1770
|
+
* @returns {string} A string representing the project.
|
1771
|
+
*/
|
1772
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1773
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
1774
|
+
}
|
1775
|
+
/**
|
1776
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
1777
|
+
*
|
1778
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1779
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1780
|
+
* @returns {string} A string representing the location.
|
1781
|
+
*/
|
1782
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1783
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
1784
|
+
}
|
1785
|
+
/**
|
1786
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
1787
|
+
*
|
1788
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1789
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1790
|
+
* @returns {string} A string representing the collection.
|
1791
|
+
*/
|
1792
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1793
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
1794
|
+
}
|
1795
|
+
/**
|
1796
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
1797
|
+
*
|
1798
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1799
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1800
|
+
* @returns {string} A string representing the engine.
|
1801
|
+
*/
|
1802
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1803
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
1804
|
+
}
|
1805
|
+
/**
|
1806
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
1807
|
+
*
|
1808
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1809
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1810
|
+
* @returns {string} A string representing the serving_config.
|
1811
|
+
*/
|
1812
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1813
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1814
|
+
}
|
1457
1815
|
/**
|
1458
1816
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
1459
1817
|
*
|
@@ -1625,6 +1983,87 @@ class DocumentServiceClient {
|
|
1625
1983
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
1626
1984
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
1627
1985
|
}
|
1986
|
+
/**
|
1987
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
1988
|
+
*
|
1989
|
+
* @param {string} project
|
1990
|
+
* @param {string} location
|
1991
|
+
* @param {string} data_store
|
1992
|
+
* @param {string} branch
|
1993
|
+
* @param {string} document
|
1994
|
+
* @param {string} chunk
|
1995
|
+
* @returns {string} Resource name string.
|
1996
|
+
*/
|
1997
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
1998
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
1999
|
+
project: project,
|
2000
|
+
location: location,
|
2001
|
+
data_store: dataStore,
|
2002
|
+
branch: branch,
|
2003
|
+
document: document,
|
2004
|
+
chunk: chunk,
|
2005
|
+
});
|
2006
|
+
}
|
2007
|
+
/**
|
2008
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2009
|
+
*
|
2010
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2011
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2012
|
+
* @returns {string} A string representing the project.
|
2013
|
+
*/
|
2014
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2015
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
2016
|
+
}
|
2017
|
+
/**
|
2018
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2019
|
+
*
|
2020
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2021
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2022
|
+
* @returns {string} A string representing the location.
|
2023
|
+
*/
|
2024
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2025
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
2026
|
+
}
|
2027
|
+
/**
|
2028
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2029
|
+
*
|
2030
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2031
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2032
|
+
* @returns {string} A string representing the data_store.
|
2033
|
+
*/
|
2034
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2035
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
2036
|
+
}
|
2037
|
+
/**
|
2038
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2039
|
+
*
|
2040
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2041
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2042
|
+
* @returns {string} A string representing the branch.
|
2043
|
+
*/
|
2044
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2045
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
2046
|
+
}
|
2047
|
+
/**
|
2048
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2049
|
+
*
|
2050
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2051
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2052
|
+
* @returns {string} A string representing the document.
|
2053
|
+
*/
|
2054
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2055
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
2056
|
+
}
|
2057
|
+
/**
|
2058
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2059
|
+
*
|
2060
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2061
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2062
|
+
* @returns {string} A string representing the chunk.
|
2063
|
+
*/
|
2064
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2065
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
2066
|
+
}
|
1628
2067
|
/**
|
1629
2068
|
* Return a fully-qualified projectLocationDataStoreConversation resource name string.
|
1630
2069
|
*
|
@@ -1682,6 +2121,51 @@ class DocumentServiceClient {
|
|
1682
2121
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
1683
2122
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
1684
2123
|
}
|
2124
|
+
/**
|
2125
|
+
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
2126
|
+
*
|
2127
|
+
* @param {string} project
|
2128
|
+
* @param {string} location
|
2129
|
+
* @param {string} data_store
|
2130
|
+
* @returns {string} Resource name string.
|
2131
|
+
*/
|
2132
|
+
projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
|
2133
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
|
2134
|
+
project: project,
|
2135
|
+
location: location,
|
2136
|
+
data_store: dataStore,
|
2137
|
+
});
|
2138
|
+
}
|
2139
|
+
/**
|
2140
|
+
* Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
2141
|
+
*
|
2142
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
2143
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
2144
|
+
* @returns {string} A string representing the project.
|
2145
|
+
*/
|
2146
|
+
matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
2147
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
|
2148
|
+
}
|
2149
|
+
/**
|
2150
|
+
* Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
2151
|
+
*
|
2152
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
2153
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
2154
|
+
* @returns {string} A string representing the location.
|
2155
|
+
*/
|
2156
|
+
matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
2157
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
|
2158
|
+
}
|
2159
|
+
/**
|
2160
|
+
* Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
2161
|
+
*
|
2162
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
2163
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
2164
|
+
* @returns {string} A string representing the data_store.
|
2165
|
+
*/
|
2166
|
+
matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
2167
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
|
2168
|
+
}
|
1685
2169
|
/**
|
1686
2170
|
* Return a fully-qualified projectLocationDataStoreSchema resource name string.
|
1687
2171
|
*
|
@@ -1739,6 +2223,63 @@ class DocumentServiceClient {
|
|
1739
2223
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
1740
2224
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
1741
2225
|
}
|
2226
|
+
/**
|
2227
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2228
|
+
*
|
2229
|
+
* @param {string} project
|
2230
|
+
* @param {string} location
|
2231
|
+
* @param {string} data_store
|
2232
|
+
* @param {string} serving_config
|
2233
|
+
* @returns {string} Resource name string.
|
2234
|
+
*/
|
2235
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2236
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2237
|
+
project: project,
|
2238
|
+
location: location,
|
2239
|
+
data_store: dataStore,
|
2240
|
+
serving_config: servingConfig,
|
2241
|
+
});
|
2242
|
+
}
|
2243
|
+
/**
|
2244
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2245
|
+
*
|
2246
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2247
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2248
|
+
* @returns {string} A string representing the project.
|
2249
|
+
*/
|
2250
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2251
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2252
|
+
}
|
2253
|
+
/**
|
2254
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2255
|
+
*
|
2256
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2257
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2258
|
+
* @returns {string} A string representing the location.
|
2259
|
+
*/
|
2260
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2261
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2262
|
+
}
|
2263
|
+
/**
|
2264
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2265
|
+
*
|
2266
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2267
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2268
|
+
* @returns {string} A string representing the data_store.
|
2269
|
+
*/
|
2270
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2271
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
2272
|
+
}
|
2273
|
+
/**
|
2274
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
2275
|
+
*
|
2276
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2277
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2278
|
+
* @returns {string} A string representing the serving_config.
|
2279
|
+
*/
|
2280
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2281
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2282
|
+
}
|
1742
2283
|
/**
|
1743
2284
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
1744
2285
|
*
|