@google-cloud/discoveryengine 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +15 -0
- 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 +106 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +137 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +97 -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 +102 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +127 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +70 -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 +376 -21
- package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +66 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +115 -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 +221 -30
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +27 -20
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +271 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +148 -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/conversational_search_service.proto +5 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +22 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +9 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +94 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +19 -4
- package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +151 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +4 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +6 -5
- package/build/protos/protos.d.ts +18160 -8292
- package/build/protos/protos.js +50325 -25400
- package/build/protos/protos.json +4864 -2447
- package/build/src/v1/completion_service_client.js +10 -7
- package/build/src/v1/conversational_search_service_client.js +10 -7
- package/build/src/v1/data_store_service_client.js +10 -7
- package/build/src/v1/document_service_client.js +10 -7
- package/build/src/v1/engine_service_client.js +10 -7
- package/build/src/v1/schema_service_client.js +10 -7
- package/build/src/v1/search_service_client.js +10 -7
- package/build/src/v1/site_search_engine_service_client.js +10 -7
- package/build/src/v1/user_event_service_client.js +10 -7
- package/build/src/v1alpha/acl_config_service_client.d.ts +1233 -0
- package/build/src/v1alpha/acl_config_service_client.js +1768 -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 +1889 -0
- package/build/src/v1alpha/chunk_service_client_config.json +34 -0
- package/build/src/v1alpha/completion_service_client.d.ts +588 -3
- package/build/src/v1alpha/completion_service_client.js +844 -9
- package/build/src/v1alpha/completion_service_client_config.json +10 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +233 -1
- package/build/src/v1alpha/conversational_search_service_client.js +326 -7
- package/build/src/v1alpha/data_store_service_client.d.ts +451 -3
- package/build/src/v1alpha/data_store_service_client.js +575 -9
- package/build/src/v1alpha/data_store_service_client_config.json +8 -0
- package/build/src/v1alpha/document_service_client.d.ts +462 -21
- package/build/src/v1alpha/document_service_client.js +549 -7
- package/build/src/v1alpha/document_service_client_config.json +5 -0
- package/build/src/v1alpha/engine_service_client.d.ts +375 -2
- package/build/src/v1alpha/engine_service_client.js +527 -7
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +1367 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +2034 -0
- package/build/src/v1alpha/estimate_billing_service_client_config.json +30 -0
- package/build/src/v1alpha/index.d.ts +5 -0
- package/build/src/v1alpha/index.js +11 -1
- package/build/src/v1alpha/rank_service_client.d.ts +1254 -0
- package/build/src/v1alpha/rank_service_client.js +1796 -0
- package/build/src/v1alpha/rank_service_client_config.json +30 -0
- package/build/src/v1alpha/recommendation_service_client.d.ts +231 -1
- package/build/src/v1alpha/recommendation_service_client.js +326 -7
- package/build/src/v1alpha/schema_service_client.d.ts +372 -0
- package/build/src/v1alpha/schema_service_client.js +527 -7
- package/build/src/v1alpha/search_service_client.d.ts +288 -30
- package/build/src/v1alpha/search_service_client.js +366 -27
- package/build/src/v1alpha/search_tuning_service_client.d.ts +373 -1
- package/build/src/v1alpha/search_tuning_service_client.js +527 -7
- package/build/src/v1alpha/serving_config_service_client.d.ts +1370 -0
- package/build/src/v1alpha/serving_config_service_client.js +1939 -0
- package/build/src/v1alpha/serving_config_service_client_config.json +38 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +372 -0
- package/build/src/v1alpha/site_search_engine_service_client.js +527 -7
- package/build/src/v1alpha/user_event_service_client.d.ts +372 -0
- package/build/src/v1alpha/user_event_service_client.js +527 -7
- package/build/src/v1beta/completion_service_client.d.ts +75 -0
- package/build/src/v1beta/completion_service_client.js +114 -7
- package/build/src/v1beta/conversational_search_service_client.d.ts +79 -0
- package/build/src/v1beta/conversational_search_service_client.js +114 -7
- package/build/src/v1beta/data_store_service_client.d.ts +75 -0
- package/build/src/v1beta/data_store_service_client.js +114 -7
- package/build/src/v1beta/document_service_client.d.ts +75 -0
- package/build/src/v1beta/document_service_client.js +114 -7
- package/build/src/v1beta/engine_service_client.d.ts +75 -0
- package/build/src/v1beta/engine_service_client.js +114 -7
- package/build/src/v1beta/index.d.ts +1 -0
- package/build/src/v1beta/index.js +3 -1
- package/build/src/v1beta/recommendation_service_client.d.ts +75 -0
- package/build/src/v1beta/recommendation_service_client.js +114 -7
- package/build/src/v1beta/schema_service_client.d.ts +75 -0
- package/build/src/v1beta/schema_service_client.js +114 -7
- package/build/src/v1beta/search_service_client.d.ts +81 -0
- package/build/src/v1beta/search_service_client.js +118 -7
- package/build/src/v1beta/search_tuning_service_client.d.ts +1196 -0
- package/build/src/v1beta/search_tuning_service_client.js +1784 -0
- package/build/src/v1beta/search_tuning_service_client_config.json +30 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +123 -8
- package/build/src/v1beta/serving_config_service_client.js +176 -12
- package/build/src/v1beta/site_search_engine_service_client.d.ts +75 -0
- package/build/src/v1beta/site_search_engine_service_client.js +114 -7
- package/build/src/v1beta/user_event_service_client.d.ts +75 -0
- package/build/src/v1beta/user_event_service_client.js +114 -7
- package/package.json +3 -3
@@ -74,7 +74,7 @@ class DocumentServiceClient {
|
|
74
74
|
* ```
|
75
75
|
*/
|
76
76
|
constructor(opts, gaxInstance) {
|
77
|
-
var _a, _b, _c, _d;
|
77
|
+
var _a, _b, _c, _d, _e;
|
78
78
|
this._terminated = false;
|
79
79
|
this.descriptors = {
|
80
80
|
page: {},
|
@@ -89,14 +89,17 @@ class DocumentServiceClient {
|
|
89
89
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
90
90
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
91
91
|
}
|
92
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
93
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
94
|
+
: undefined;
|
92
95
|
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';
|
96
|
+
(_c = (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
|
94
97
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
95
98
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
96
99
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
97
100
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
98
|
-
const clientConfig = (
|
99
|
-
const fallback = (
|
101
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
102
|
+
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
100
103
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
101
104
|
// Request numeric enum values if REST transport is used.
|
102
105
|
opts.numericEnums = true;
|
@@ -127,7 +130,7 @@ class DocumentServiceClient {
|
|
127
130
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
128
131
|
// Determine the client header string.
|
129
132
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
130
|
-
if (typeof process
|
133
|
+
if (typeof process === 'object' && 'versions' in process) {
|
131
134
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
132
135
|
}
|
133
136
|
else {
|
@@ -148,20 +151,28 @@ class DocumentServiceClient {
|
|
148
151
|
// identifiers to uniquely identify resources within the API.
|
149
152
|
// Create useful helper objects for these.
|
150
153
|
this.pathTemplates = {
|
154
|
+
aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
|
151
155
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
152
156
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
153
157
|
projectLocationCollectionDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}'),
|
154
158
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
159
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
155
160
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
161
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
156
162
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
163
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
157
164
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
158
165
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
159
166
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
167
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
160
168
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
161
169
|
projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
|
162
170
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
171
|
+
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
163
172
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
173
|
+
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
164
174
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
175
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
165
176
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
166
177
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
167
178
|
};
|
@@ -219,6 +230,9 @@ class DocumentServiceClient {
|
|
219
230
|
{
|
220
231
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
221
232
|
},
|
233
|
+
{
|
234
|
+
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
235
|
+
},
|
222
236
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
223
237
|
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
224
238
|
],
|
@@ -319,6 +333,7 @@ class DocumentServiceClient {
|
|
319
333
|
'deleteDocument',
|
320
334
|
'importDocuments',
|
321
335
|
'purgeDocuments',
|
336
|
+
'getProcessedDocument',
|
322
337
|
];
|
323
338
|
for (const methodName of documentServiceStubMethods) {
|
324
339
|
const callPromise = this.documentServiceStub.then(stub => (...args) => {
|
@@ -344,7 +359,7 @@ class DocumentServiceClient {
|
|
344
359
|
* @returns {string} The DNS address for this service.
|
345
360
|
*/
|
346
361
|
static get servicePath() {
|
347
|
-
if (typeof process
|
362
|
+
if (typeof process === 'object' &&
|
348
363
|
typeof process.emitWarning === 'function') {
|
349
364
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
350
365
|
}
|
@@ -356,7 +371,7 @@ class DocumentServiceClient {
|
|
356
371
|
* @returns {string} The DNS address for this service.
|
357
372
|
*/
|
358
373
|
static get apiEndpoint() {
|
359
|
-
if (typeof process
|
374
|
+
if (typeof process === 'object' &&
|
360
375
|
typeof process.emitWarning === 'function') {
|
361
376
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
362
377
|
}
|
@@ -482,6 +497,27 @@ class DocumentServiceClient {
|
|
482
497
|
this.initialize();
|
483
498
|
return this.innerApiCalls.deleteDocument(request, options, callback);
|
484
499
|
}
|
500
|
+
getProcessedDocument(request, optionsOrCallback, callback) {
|
501
|
+
var _a;
|
502
|
+
request = request || {};
|
503
|
+
let options;
|
504
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
505
|
+
callback = optionsOrCallback;
|
506
|
+
options = {};
|
507
|
+
}
|
508
|
+
else {
|
509
|
+
options = optionsOrCallback;
|
510
|
+
}
|
511
|
+
options = options || {};
|
512
|
+
options.otherArgs = options.otherArgs || {};
|
513
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
514
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
515
|
+
this._gaxModule.routingHeader.fromParams({
|
516
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
517
|
+
});
|
518
|
+
this.initialize();
|
519
|
+
return this.innerApiCalls.getProcessedDocument(request, options, callback);
|
520
|
+
}
|
485
521
|
importDocuments(request, optionsOrCallback, callback) {
|
486
522
|
var _a;
|
487
523
|
request = request || {};
|
@@ -884,6 +920,41 @@ class DocumentServiceClient {
|
|
884
920
|
// --------------------
|
885
921
|
// -- Path templates --
|
886
922
|
// --------------------
|
923
|
+
/**
|
924
|
+
* Return a fully-qualified aclConfig resource name string.
|
925
|
+
*
|
926
|
+
* @param {string} project
|
927
|
+
* @param {string} location
|
928
|
+
* @returns {string} Resource name string.
|
929
|
+
*/
|
930
|
+
aclConfigPath(project, location) {
|
931
|
+
return this.pathTemplates.aclConfigPathTemplate.render({
|
932
|
+
project: project,
|
933
|
+
location: location,
|
934
|
+
});
|
935
|
+
}
|
936
|
+
/**
|
937
|
+
* Parse the project from AclConfig resource.
|
938
|
+
*
|
939
|
+
* @param {string} aclConfigName
|
940
|
+
* A fully-qualified path representing AclConfig resource.
|
941
|
+
* @returns {string} A string representing the project.
|
942
|
+
*/
|
943
|
+
matchProjectFromAclConfigName(aclConfigName) {
|
944
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
945
|
+
.project;
|
946
|
+
}
|
947
|
+
/**
|
948
|
+
* Parse the location from AclConfig resource.
|
949
|
+
*
|
950
|
+
* @param {string} aclConfigName
|
951
|
+
* A fully-qualified path representing AclConfig resource.
|
952
|
+
* @returns {string} A string representing the location.
|
953
|
+
*/
|
954
|
+
matchLocationFromAclConfigName(aclConfigName) {
|
955
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
956
|
+
.location;
|
957
|
+
}
|
887
958
|
/**
|
888
959
|
* Return a fully-qualified engine resource name string.
|
889
960
|
*
|
@@ -1148,6 +1219,99 @@ class DocumentServiceClient {
|
|
1148
1219
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
1149
1220
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
1150
1221
|
}
|
1222
|
+
/**
|
1223
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
1224
|
+
*
|
1225
|
+
* @param {string} project
|
1226
|
+
* @param {string} location
|
1227
|
+
* @param {string} collection
|
1228
|
+
* @param {string} data_store
|
1229
|
+
* @param {string} branch
|
1230
|
+
* @param {string} document
|
1231
|
+
* @param {string} chunk
|
1232
|
+
* @returns {string} Resource name string.
|
1233
|
+
*/
|
1234
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
1235
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
1236
|
+
project: project,
|
1237
|
+
location: location,
|
1238
|
+
collection: collection,
|
1239
|
+
data_store: dataStore,
|
1240
|
+
branch: branch,
|
1241
|
+
document: document,
|
1242
|
+
chunk: chunk,
|
1243
|
+
});
|
1244
|
+
}
|
1245
|
+
/**
|
1246
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1247
|
+
*
|
1248
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1249
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1250
|
+
* @returns {string} A string representing the project.
|
1251
|
+
*/
|
1252
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1253
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
1254
|
+
}
|
1255
|
+
/**
|
1256
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1257
|
+
*
|
1258
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1259
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1260
|
+
* @returns {string} A string representing the location.
|
1261
|
+
*/
|
1262
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1263
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
1264
|
+
}
|
1265
|
+
/**
|
1266
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1267
|
+
*
|
1268
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1269
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1270
|
+
* @returns {string} A string representing the collection.
|
1271
|
+
*/
|
1272
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1273
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
1274
|
+
}
|
1275
|
+
/**
|
1276
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1277
|
+
*
|
1278
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1279
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1280
|
+
* @returns {string} A string representing the data_store.
|
1281
|
+
*/
|
1282
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1283
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
1284
|
+
}
|
1285
|
+
/**
|
1286
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1287
|
+
*
|
1288
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1289
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1290
|
+
* @returns {string} A string representing the branch.
|
1291
|
+
*/
|
1292
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1293
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
1294
|
+
}
|
1295
|
+
/**
|
1296
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1297
|
+
*
|
1298
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1299
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1300
|
+
* @returns {string} A string representing the document.
|
1301
|
+
*/
|
1302
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1303
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
1304
|
+
}
|
1305
|
+
/**
|
1306
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1307
|
+
*
|
1308
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1309
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1310
|
+
* @returns {string} A string representing the chunk.
|
1311
|
+
*/
|
1312
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1313
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
1314
|
+
}
|
1151
1315
|
/**
|
1152
1316
|
* Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
|
1153
1317
|
*
|
@@ -1217,6 +1381,63 @@ class DocumentServiceClient {
|
|
1217
1381
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
1218
1382
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
1219
1383
|
}
|
1384
|
+
/**
|
1385
|
+
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
1386
|
+
*
|
1387
|
+
* @param {string} project
|
1388
|
+
* @param {string} location
|
1389
|
+
* @param {string} collection
|
1390
|
+
* @param {string} data_store
|
1391
|
+
* @returns {string} Resource name string.
|
1392
|
+
*/
|
1393
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
|
1394
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
|
1395
|
+
project: project,
|
1396
|
+
location: location,
|
1397
|
+
collection: collection,
|
1398
|
+
data_store: dataStore,
|
1399
|
+
});
|
1400
|
+
}
|
1401
|
+
/**
|
1402
|
+
* Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1403
|
+
*
|
1404
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1405
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1406
|
+
* @returns {string} A string representing the project.
|
1407
|
+
*/
|
1408
|
+
matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1409
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
|
1410
|
+
}
|
1411
|
+
/**
|
1412
|
+
* Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1413
|
+
*
|
1414
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1415
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1416
|
+
* @returns {string} A string representing the location.
|
1417
|
+
*/
|
1418
|
+
matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1419
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
|
1420
|
+
}
|
1421
|
+
/**
|
1422
|
+
* Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1423
|
+
*
|
1424
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1425
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1426
|
+
* @returns {string} A string representing the collection.
|
1427
|
+
*/
|
1428
|
+
matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1429
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
|
1430
|
+
}
|
1431
|
+
/**
|
1432
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1433
|
+
*
|
1434
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1435
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1436
|
+
* @returns {string} A string representing the data_store.
|
1437
|
+
*/
|
1438
|
+
matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1439
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
|
1440
|
+
}
|
1220
1441
|
/**
|
1221
1442
|
* Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
|
1222
1443
|
*
|
@@ -1286,6 +1507,75 @@ class DocumentServiceClient {
|
|
1286
1507
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1287
1508
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1288
1509
|
}
|
1510
|
+
/**
|
1511
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1512
|
+
*
|
1513
|
+
* @param {string} project
|
1514
|
+
* @param {string} location
|
1515
|
+
* @param {string} collection
|
1516
|
+
* @param {string} data_store
|
1517
|
+
* @param {string} serving_config
|
1518
|
+
* @returns {string} Resource name string.
|
1519
|
+
*/
|
1520
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1521
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1522
|
+
project: project,
|
1523
|
+
location: location,
|
1524
|
+
collection: collection,
|
1525
|
+
data_store: dataStore,
|
1526
|
+
serving_config: servingConfig,
|
1527
|
+
});
|
1528
|
+
}
|
1529
|
+
/**
|
1530
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1531
|
+
*
|
1532
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1533
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1534
|
+
* @returns {string} A string representing the project.
|
1535
|
+
*/
|
1536
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1537
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1538
|
+
}
|
1539
|
+
/**
|
1540
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1541
|
+
*
|
1542
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1543
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1544
|
+
* @returns {string} A string representing the location.
|
1545
|
+
*/
|
1546
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1547
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1548
|
+
}
|
1549
|
+
/**
|
1550
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1551
|
+
*
|
1552
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1553
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1554
|
+
* @returns {string} A string representing the collection.
|
1555
|
+
*/
|
1556
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1557
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1558
|
+
}
|
1559
|
+
/**
|
1560
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1561
|
+
*
|
1562
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1563
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1564
|
+
* @returns {string} A string representing the data_store.
|
1565
|
+
*/
|
1566
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1567
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1568
|
+
}
|
1569
|
+
/**
|
1570
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1571
|
+
*
|
1572
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1573
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1574
|
+
* @returns {string} A string representing the serving_config.
|
1575
|
+
*/
|
1576
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1577
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1578
|
+
}
|
1289
1579
|
/**
|
1290
1580
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
1291
1581
|
*
|
@@ -1481,6 +1771,75 @@ class DocumentServiceClient {
|
|
1481
1771
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1482
1772
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1483
1773
|
}
|
1774
|
+
/**
|
1775
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
1776
|
+
*
|
1777
|
+
* @param {string} project
|
1778
|
+
* @param {string} location
|
1779
|
+
* @param {string} collection
|
1780
|
+
* @param {string} engine
|
1781
|
+
* @param {string} serving_config
|
1782
|
+
* @returns {string} Resource name string.
|
1783
|
+
*/
|
1784
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
1785
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
1786
|
+
project: project,
|
1787
|
+
location: location,
|
1788
|
+
collection: collection,
|
1789
|
+
engine: engine,
|
1790
|
+
serving_config: servingConfig,
|
1791
|
+
});
|
1792
|
+
}
|
1793
|
+
/**
|
1794
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
1795
|
+
*
|
1796
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1797
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1798
|
+
* @returns {string} A string representing the project.
|
1799
|
+
*/
|
1800
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1801
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
1802
|
+
}
|
1803
|
+
/**
|
1804
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
1805
|
+
*
|
1806
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1807
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1808
|
+
* @returns {string} A string representing the location.
|
1809
|
+
*/
|
1810
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1811
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
1812
|
+
}
|
1813
|
+
/**
|
1814
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
1815
|
+
*
|
1816
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1817
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1818
|
+
* @returns {string} A string representing the collection.
|
1819
|
+
*/
|
1820
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1821
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
1822
|
+
}
|
1823
|
+
/**
|
1824
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
1825
|
+
*
|
1826
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1827
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1828
|
+
* @returns {string} A string representing the engine.
|
1829
|
+
*/
|
1830
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1831
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
1832
|
+
}
|
1833
|
+
/**
|
1834
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
1835
|
+
*
|
1836
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1837
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1838
|
+
* @returns {string} A string representing the serving_config.
|
1839
|
+
*/
|
1840
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1841
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1842
|
+
}
|
1484
1843
|
/**
|
1485
1844
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
1486
1845
|
*
|
@@ -1652,6 +2011,87 @@ class DocumentServiceClient {
|
|
1652
2011
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
1653
2012
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
1654
2013
|
}
|
2014
|
+
/**
|
2015
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
2016
|
+
*
|
2017
|
+
* @param {string} project
|
2018
|
+
* @param {string} location
|
2019
|
+
* @param {string} data_store
|
2020
|
+
* @param {string} branch
|
2021
|
+
* @param {string} document
|
2022
|
+
* @param {string} chunk
|
2023
|
+
* @returns {string} Resource name string.
|
2024
|
+
*/
|
2025
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
2026
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
2027
|
+
project: project,
|
2028
|
+
location: location,
|
2029
|
+
data_store: dataStore,
|
2030
|
+
branch: branch,
|
2031
|
+
document: document,
|
2032
|
+
chunk: chunk,
|
2033
|
+
});
|
2034
|
+
}
|
2035
|
+
/**
|
2036
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2037
|
+
*
|
2038
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2039
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2040
|
+
* @returns {string} A string representing the project.
|
2041
|
+
*/
|
2042
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2043
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
2044
|
+
}
|
2045
|
+
/**
|
2046
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2047
|
+
*
|
2048
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2049
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2050
|
+
* @returns {string} A string representing the location.
|
2051
|
+
*/
|
2052
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2053
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
2054
|
+
}
|
2055
|
+
/**
|
2056
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2057
|
+
*
|
2058
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2059
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2060
|
+
* @returns {string} A string representing the data_store.
|
2061
|
+
*/
|
2062
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2063
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
2064
|
+
}
|
2065
|
+
/**
|
2066
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2067
|
+
*
|
2068
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2069
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2070
|
+
* @returns {string} A string representing the branch.
|
2071
|
+
*/
|
2072
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2073
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
2074
|
+
}
|
2075
|
+
/**
|
2076
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2077
|
+
*
|
2078
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2079
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2080
|
+
* @returns {string} A string representing the document.
|
2081
|
+
*/
|
2082
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2083
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
2084
|
+
}
|
2085
|
+
/**
|
2086
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2087
|
+
*
|
2088
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2089
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2090
|
+
* @returns {string} A string representing the chunk.
|
2091
|
+
*/
|
2092
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2093
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
2094
|
+
}
|
1655
2095
|
/**
|
1656
2096
|
* Return a fully-qualified projectLocationDataStoreConversation resource name string.
|
1657
2097
|
*
|
@@ -1709,6 +2149,51 @@ class DocumentServiceClient {
|
|
1709
2149
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
1710
2150
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
1711
2151
|
}
|
2152
|
+
/**
|
2153
|
+
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
2154
|
+
*
|
2155
|
+
* @param {string} project
|
2156
|
+
* @param {string} location
|
2157
|
+
* @param {string} data_store
|
2158
|
+
* @returns {string} Resource name string.
|
2159
|
+
*/
|
2160
|
+
projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
|
2161
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
|
2162
|
+
project: project,
|
2163
|
+
location: location,
|
2164
|
+
data_store: dataStore,
|
2165
|
+
});
|
2166
|
+
}
|
2167
|
+
/**
|
2168
|
+
* Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
2169
|
+
*
|
2170
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
2171
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
2172
|
+
* @returns {string} A string representing the project.
|
2173
|
+
*/
|
2174
|
+
matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
2175
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
|
2176
|
+
}
|
2177
|
+
/**
|
2178
|
+
* Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
2179
|
+
*
|
2180
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
2181
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
2182
|
+
* @returns {string} A string representing the location.
|
2183
|
+
*/
|
2184
|
+
matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
2185
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
|
2186
|
+
}
|
2187
|
+
/**
|
2188
|
+
* Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
2189
|
+
*
|
2190
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
2191
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
2192
|
+
* @returns {string} A string representing the data_store.
|
2193
|
+
*/
|
2194
|
+
matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
2195
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
|
2196
|
+
}
|
1712
2197
|
/**
|
1713
2198
|
* Return a fully-qualified projectLocationDataStoreSchema resource name string.
|
1714
2199
|
*
|
@@ -1766,6 +2251,63 @@ class DocumentServiceClient {
|
|
1766
2251
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
1767
2252
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
1768
2253
|
}
|
2254
|
+
/**
|
2255
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2256
|
+
*
|
2257
|
+
* @param {string} project
|
2258
|
+
* @param {string} location
|
2259
|
+
* @param {string} data_store
|
2260
|
+
* @param {string} serving_config
|
2261
|
+
* @returns {string} Resource name string.
|
2262
|
+
*/
|
2263
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2264
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2265
|
+
project: project,
|
2266
|
+
location: location,
|
2267
|
+
data_store: dataStore,
|
2268
|
+
serving_config: servingConfig,
|
2269
|
+
});
|
2270
|
+
}
|
2271
|
+
/**
|
2272
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2273
|
+
*
|
2274
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2275
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2276
|
+
* @returns {string} A string representing the project.
|
2277
|
+
*/
|
2278
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2279
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2280
|
+
}
|
2281
|
+
/**
|
2282
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2283
|
+
*
|
2284
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2285
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2286
|
+
* @returns {string} A string representing the location.
|
2287
|
+
*/
|
2288
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2289
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2290
|
+
}
|
2291
|
+
/**
|
2292
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2293
|
+
*
|
2294
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2295
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2296
|
+
* @returns {string} A string representing the data_store.
|
2297
|
+
*/
|
2298
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2299
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
2300
|
+
}
|
2301
|
+
/**
|
2302
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
2303
|
+
*
|
2304
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2305
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2306
|
+
* @returns {string} A string representing the serving_config.
|
2307
|
+
*/
|
2308
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2309
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2310
|
+
}
|
1769
2311
|
/**
|
1770
2312
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
1771
2313
|
*
|