@google-cloud/discoveryengine 1.3.1 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +64 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +54 -3
- package/build/protos/google/cloud/discoveryengine/v1/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +51 -4
- package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +40 -1
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +98 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +304 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +215 -0
- package/build/protos/google/cloud/discoveryengine/v1/engine_service.proto +242 -0
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +137 -4
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +170 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +691 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +3 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +49 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +79 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +72 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +137 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +77 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +44 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +6 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +44 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +80 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +83 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +127 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +13 -8
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +3 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +130 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +66 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +3 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +74 -13
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +24 -20
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +271 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +147 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +9 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +7 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +4 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +59 -8
- package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +51 -4
- package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +45 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +120 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +306 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +10 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +94 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +220 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +244 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +41 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +26 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +169 -15
- package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +151 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +265 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +148 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +170 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +695 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -3
- package/build/protos/protos.d.ts +48530 -23682
- package/build/protos/protos.js +122429 -63306
- package/build/protos/protos.json +13438 -7286
- package/build/src/index.d.ts +10 -1
- package/build/src/index.js +10 -1
- package/build/src/v1/completion_service_client.d.ts +489 -7
- package/build/src/v1/completion_service_client.js +715 -11
- package/build/src/v1/completion_service_client_config.json +10 -0
- package/build/src/v1/conversational_search_service_client.d.ts +341 -3
- package/build/src/v1/conversational_search_service_client.js +466 -9
- package/build/src/v1/data_store_service_client.d.ts +1286 -0
- package/build/src/v1/data_store_service_client.js +1768 -0
- package/build/src/v1/data_store_service_client_config.json +46 -0
- package/build/src/v1/document_service_client.d.ts +347 -2
- package/build/src/v1/document_service_client.js +506 -9
- package/build/src/v1/engine_service_client.d.ts +1211 -0
- package/build/src/v1/engine_service_client.js +1731 -0
- package/build/src/v1/engine_service_client_config.json +46 -0
- package/build/src/v1/index.d.ts +3 -0
- package/build/src/v1/index.js +7 -1
- package/build/src/v1/schema_service_client.d.ts +272 -2
- package/build/src/v1/schema_service_client.js +402 -9
- package/build/src/v1/search_service_client.d.ts +515 -11
- package/build/src/v1/search_service_client.js +648 -15
- package/build/src/v1/site_search_engine_service_client.d.ts +1564 -0
- package/build/src/v1/site_search_engine_service_client.js +2075 -0
- package/build/src/v1/site_search_engine_service_client_config.json +74 -0
- package/build/src/v1/user_event_service_client.d.ts +272 -2
- package/build/src/v1/user_event_service_client.js +402 -9
- package/build/src/v1alpha/acl_config_service_client.d.ts +1233 -0
- package/build/src/v1alpha/acl_config_service_client.js +1765 -0
- package/build/src/v1alpha/acl_config_service_client_config.json +34 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +1350 -0
- package/build/src/v1alpha/chunk_service_client.js +1886 -0
- package/build/src/v1alpha/chunk_service_client_config.json +34 -0
- package/build/src/v1alpha/completion_service_client.d.ts +599 -5
- package/build/src/v1alpha/completion_service_client.js +868 -12
- package/build/src/v1alpha/completion_service_client_config.json +10 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +244 -3
- package/build/src/v1alpha/conversational_search_service_client.js +353 -10
- package/build/src/v1alpha/data_store_service_client.d.ts +462 -5
- package/build/src/v1alpha/data_store_service_client.js +599 -12
- package/build/src/v1alpha/data_store_service_client_config.json +8 -0
- package/build/src/v1alpha/document_service_client.d.ts +393 -2
- package/build/src/v1alpha/document_service_client.js +551 -10
- package/build/src/v1alpha/engine_service_client.d.ts +386 -4
- package/build/src/v1alpha/engine_service_client.js +551 -10
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +1367 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +2028 -0
- package/build/src/v1alpha/estimate_billing_service_client_config.json +30 -0
- package/build/src/v1alpha/index.d.ts +4 -0
- package/build/src/v1alpha/index.js +10 -2
- package/build/src/v1alpha/recommendation_service_client.d.ts +242 -3
- package/build/src/v1alpha/recommendation_service_client.js +353 -10
- package/build/src/v1alpha/schema_service_client.d.ts +383 -2
- package/build/src/v1alpha/schema_service_client.js +551 -10
- package/build/src/v1alpha/search_service_client.d.ts +269 -17
- package/build/src/v1alpha/search_service_client.js +373 -20
- package/build/src/v1alpha/search_tuning_service_client.d.ts +384 -3
- package/build/src/v1alpha/search_tuning_service_client.js +551 -10
- package/build/src/v1alpha/serving_config_service_client.d.ts +1369 -0
- package/build/src/v1alpha/serving_config_service_client.js +1935 -0
- package/build/src/v1alpha/serving_config_service_client_config.json +38 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +383 -2
- package/build/src/v1alpha/site_search_engine_service_client.js +551 -10
- package/build/src/v1alpha/user_event_service_client.d.ts +383 -2
- package/build/src/v1alpha/user_event_service_client.js +551 -10
- package/build/src/v1beta/completion_service_client.d.ts +708 -7
- package/build/src/v1beta/completion_service_client.js +1015 -11
- package/build/src/v1beta/completion_service_client_config.json +10 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +420 -3
- package/build/src/v1beta/conversational_search_service_client.js +570 -9
- package/build/src/v1beta/data_store_service_client.d.ts +1508 -0
- package/build/src/v1beta/data_store_service_client.js +2070 -0
- package/build/src/v1beta/data_store_service_client_config.json +46 -0
- package/build/src/v1beta/document_service_client.d.ts +566 -2
- package/build/src/v1beta/document_service_client.js +810 -11
- package/build/src/v1beta/engine_service_client.d.ts +1432 -0
- package/build/src/v1beta/engine_service_client.js +2032 -0
- package/build/src/v1beta/engine_service_client_config.json +46 -0
- package/build/src/v1beta/index.d.ts +5 -0
- package/build/src/v1beta/index.js +11 -1
- package/build/src/v1beta/recommendation_service_client.d.ts +495 -5
- package/build/src/v1beta/recommendation_service_client.js +674 -9
- package/build/src/v1beta/schema_service_client.d.ts +491 -2
- package/build/src/v1beta/schema_service_client.js +706 -11
- package/build/src/v1beta/search_service_client.d.ts +620 -29
- package/build/src/v1beta/search_service_client.js +772 -27
- package/build/src/v1beta/search_tuning_service_client.d.ts +1196 -0
- package/build/src/v1beta/search_tuning_service_client.js +1781 -0
- package/build/src/v1beta/search_tuning_service_client_config.json +30 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +1217 -0
- package/build/src/v1beta/serving_config_service_client.js +1724 -0
- package/build/src/v1beta/serving_config_service_client_config.json +38 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +1787 -0
- package/build/src/v1beta/site_search_engine_service_client.js +2375 -0
- package/build/src/v1beta/site_search_engine_service_client_config.json +74 -0
- package/build/src/v1beta/user_event_service_client.d.ts +491 -2
- package/build/src/v1beta/user_event_service_client.js +706 -11
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright
|
|
2
|
+
// Copyright 2024 Google LLC
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -72,7 +72,7 @@ class SchemaServiceClient {
|
|
|
72
72
|
* ```
|
|
73
73
|
*/
|
|
74
74
|
constructor(opts, gaxInstance) {
|
|
75
|
-
var _a, _b;
|
|
75
|
+
var _a, _b, _c, _d;
|
|
76
76
|
this._terminated = false;
|
|
77
77
|
this.descriptors = {
|
|
78
78
|
page: {},
|
|
@@ -82,16 +82,24 @@ class SchemaServiceClient {
|
|
|
82
82
|
};
|
|
83
83
|
// Ensure that options include all the required fields.
|
|
84
84
|
const staticMembers = this.constructor;
|
|
85
|
-
|
|
85
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
|
|
86
|
+
(opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
|
|
87
|
+
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
|
88
|
+
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
89
|
+
}
|
|
90
|
+
this._universeDomain =
|
|
91
|
+
(_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';
|
|
92
|
+
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
|
93
|
+
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
|
86
94
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
|
87
95
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
|
88
|
-
const clientConfig = (
|
|
89
|
-
const fallback = (
|
|
96
|
+
const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
|
|
97
|
+
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');
|
|
90
98
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
91
99
|
// Request numeric enum values if REST transport is used.
|
|
92
100
|
opts.numericEnums = true;
|
|
93
101
|
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
|
|
94
|
-
if (servicePath !==
|
|
102
|
+
if (servicePath !== this._servicePath && !('scopes' in opts)) {
|
|
95
103
|
opts['scopes'] = staticMembers.scopes;
|
|
96
104
|
}
|
|
97
105
|
// Load google-gax module synchronously if needed
|
|
@@ -109,9 +117,9 @@ class SchemaServiceClient {
|
|
|
109
117
|
// Set useJWTAccessWithScope on the auth object.
|
|
110
118
|
this.auth.useJWTAccessWithScope = true;
|
|
111
119
|
// Set defaultServicePath on the auth object.
|
|
112
|
-
this.auth.defaultServicePath =
|
|
120
|
+
this.auth.defaultServicePath = this._servicePath;
|
|
113
121
|
// Set the default scopes in auth client if needed.
|
|
114
|
-
if (servicePath ===
|
|
122
|
+
if (servicePath === this._servicePath) {
|
|
115
123
|
this.auth.defaultScopes = staticMembers.scopes;
|
|
116
124
|
}
|
|
117
125
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
|
@@ -138,18 +146,26 @@ class SchemaServiceClient {
|
|
|
138
146
|
// identifiers to uniquely identify resources within the API.
|
|
139
147
|
// Create useful helper objects for these.
|
|
140
148
|
this.pathTemplates = {
|
|
149
|
+
aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
|
|
141
150
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
|
142
151
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
|
143
152
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
|
153
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
|
144
154
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
|
155
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
|
145
156
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
|
157
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
|
146
158
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
|
147
159
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
|
148
160
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
|
161
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
|
149
162
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
|
150
163
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
|
164
|
+
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
|
151
165
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
|
166
|
+
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
|
152
167
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
|
168
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
|
153
169
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
|
154
170
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
|
155
171
|
};
|
|
@@ -329,19 +345,38 @@ class SchemaServiceClient {
|
|
|
329
345
|
}
|
|
330
346
|
/**
|
|
331
347
|
* The DNS address for this API service.
|
|
348
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
332
349
|
* @returns {string} The DNS address for this service.
|
|
333
350
|
*/
|
|
334
351
|
static get servicePath() {
|
|
352
|
+
if (typeof process !== undefined &&
|
|
353
|
+
typeof process.emitWarning === 'function') {
|
|
354
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
355
|
+
}
|
|
335
356
|
return 'discoveryengine.googleapis.com';
|
|
336
357
|
}
|
|
337
358
|
/**
|
|
338
|
-
* The DNS address for this API service - same as servicePath
|
|
339
|
-
*
|
|
359
|
+
* The DNS address for this API service - same as servicePath.
|
|
360
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
340
361
|
* @returns {string} The DNS address for this service.
|
|
341
362
|
*/
|
|
342
363
|
static get apiEndpoint() {
|
|
364
|
+
if (typeof process !== undefined &&
|
|
365
|
+
typeof process.emitWarning === 'function') {
|
|
366
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
367
|
+
}
|
|
343
368
|
return 'discoveryengine.googleapis.com';
|
|
344
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* The DNS address for this API service.
|
|
372
|
+
* @returns {string} The DNS address for this service.
|
|
373
|
+
*/
|
|
374
|
+
get apiEndpoint() {
|
|
375
|
+
return this._servicePath;
|
|
376
|
+
}
|
|
377
|
+
get universeDomain() {
|
|
378
|
+
return this._universeDomain;
|
|
379
|
+
}
|
|
345
380
|
/**
|
|
346
381
|
* The port for this API service.
|
|
347
382
|
* @returns {number} The default port for this service.
|
|
@@ -813,6 +848,41 @@ class SchemaServiceClient {
|
|
|
813
848
|
// --------------------
|
|
814
849
|
// -- Path templates --
|
|
815
850
|
// --------------------
|
|
851
|
+
/**
|
|
852
|
+
* Return a fully-qualified aclConfig resource name string.
|
|
853
|
+
*
|
|
854
|
+
* @param {string} project
|
|
855
|
+
* @param {string} location
|
|
856
|
+
* @returns {string} Resource name string.
|
|
857
|
+
*/
|
|
858
|
+
aclConfigPath(project, location) {
|
|
859
|
+
return this.pathTemplates.aclConfigPathTemplate.render({
|
|
860
|
+
project: project,
|
|
861
|
+
location: location,
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
* Parse the project from AclConfig resource.
|
|
866
|
+
*
|
|
867
|
+
* @param {string} aclConfigName
|
|
868
|
+
* A fully-qualified path representing AclConfig resource.
|
|
869
|
+
* @returns {string} A string representing the project.
|
|
870
|
+
*/
|
|
871
|
+
matchProjectFromAclConfigName(aclConfigName) {
|
|
872
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
|
873
|
+
.project;
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* Parse the location from AclConfig resource.
|
|
877
|
+
*
|
|
878
|
+
* @param {string} aclConfigName
|
|
879
|
+
* A fully-qualified path representing AclConfig resource.
|
|
880
|
+
* @returns {string} A string representing the location.
|
|
881
|
+
*/
|
|
882
|
+
matchLocationFromAclConfigName(aclConfigName) {
|
|
883
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
|
884
|
+
.location;
|
|
885
|
+
}
|
|
816
886
|
/**
|
|
817
887
|
* Return a fully-qualified engine resource name string.
|
|
818
888
|
*
|
|
@@ -1008,6 +1078,99 @@ class SchemaServiceClient {
|
|
|
1008
1078
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
|
1009
1079
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
|
1010
1080
|
}
|
|
1081
|
+
/**
|
|
1082
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
|
1083
|
+
*
|
|
1084
|
+
* @param {string} project
|
|
1085
|
+
* @param {string} location
|
|
1086
|
+
* @param {string} collection
|
|
1087
|
+
* @param {string} data_store
|
|
1088
|
+
* @param {string} branch
|
|
1089
|
+
* @param {string} document
|
|
1090
|
+
* @param {string} chunk
|
|
1091
|
+
* @returns {string} Resource name string.
|
|
1092
|
+
*/
|
|
1093
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
|
1094
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
|
1095
|
+
project: project,
|
|
1096
|
+
location: location,
|
|
1097
|
+
collection: collection,
|
|
1098
|
+
data_store: dataStore,
|
|
1099
|
+
branch: branch,
|
|
1100
|
+
document: document,
|
|
1101
|
+
chunk: chunk,
|
|
1102
|
+
});
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
1106
|
+
*
|
|
1107
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
1108
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
1109
|
+
* @returns {string} A string representing the project.
|
|
1110
|
+
*/
|
|
1111
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
1112
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
|
1113
|
+
}
|
|
1114
|
+
/**
|
|
1115
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
1116
|
+
*
|
|
1117
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
1118
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
1119
|
+
* @returns {string} A string representing the location.
|
|
1120
|
+
*/
|
|
1121
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
1122
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
1126
|
+
*
|
|
1127
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
1128
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
1129
|
+
* @returns {string} A string representing the collection.
|
|
1130
|
+
*/
|
|
1131
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
1132
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
1136
|
+
*
|
|
1137
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
1138
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
1139
|
+
* @returns {string} A string representing the data_store.
|
|
1140
|
+
*/
|
|
1141
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
1142
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
1146
|
+
*
|
|
1147
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
1148
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
1149
|
+
* @returns {string} A string representing the branch.
|
|
1150
|
+
*/
|
|
1151
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
1152
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
|
1153
|
+
}
|
|
1154
|
+
/**
|
|
1155
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
1156
|
+
*
|
|
1157
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
1158
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
1159
|
+
* @returns {string} A string representing the document.
|
|
1160
|
+
*/
|
|
1161
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
1162
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
|
1163
|
+
}
|
|
1164
|
+
/**
|
|
1165
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
1166
|
+
*
|
|
1167
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
1168
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
1169
|
+
* @returns {string} A string representing the chunk.
|
|
1170
|
+
*/
|
|
1171
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
1172
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
|
1173
|
+
}
|
|
1011
1174
|
/**
|
|
1012
1175
|
* Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
|
|
1013
1176
|
*
|
|
@@ -1077,6 +1240,63 @@ class SchemaServiceClient {
|
|
|
1077
1240
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
|
1078
1241
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
|
1079
1242
|
}
|
|
1243
|
+
/**
|
|
1244
|
+
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
|
1245
|
+
*
|
|
1246
|
+
* @param {string} project
|
|
1247
|
+
* @param {string} location
|
|
1248
|
+
* @param {string} collection
|
|
1249
|
+
* @param {string} data_store
|
|
1250
|
+
* @returns {string} Resource name string.
|
|
1251
|
+
*/
|
|
1252
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
|
|
1253
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
|
|
1254
|
+
project: project,
|
|
1255
|
+
location: location,
|
|
1256
|
+
collection: collection,
|
|
1257
|
+
data_store: dataStore,
|
|
1258
|
+
});
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
* Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1262
|
+
*
|
|
1263
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1264
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1265
|
+
* @returns {string} A string representing the project.
|
|
1266
|
+
*/
|
|
1267
|
+
matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1268
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1272
|
+
*
|
|
1273
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1274
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1275
|
+
* @returns {string} A string representing the location.
|
|
1276
|
+
*/
|
|
1277
|
+
matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1278
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
|
|
1279
|
+
}
|
|
1280
|
+
/**
|
|
1281
|
+
* Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1282
|
+
*
|
|
1283
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1284
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1285
|
+
* @returns {string} A string representing the collection.
|
|
1286
|
+
*/
|
|
1287
|
+
matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1288
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
|
|
1289
|
+
}
|
|
1290
|
+
/**
|
|
1291
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1292
|
+
*
|
|
1293
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1294
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1295
|
+
* @returns {string} A string representing the data_store.
|
|
1296
|
+
*/
|
|
1297
|
+
matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1298
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
|
|
1299
|
+
}
|
|
1080
1300
|
/**
|
|
1081
1301
|
* Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
|
|
1082
1302
|
*
|
|
@@ -1146,6 +1366,75 @@ class SchemaServiceClient {
|
|
|
1146
1366
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
|
1147
1367
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
|
1148
1368
|
}
|
|
1369
|
+
/**
|
|
1370
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
|
1371
|
+
*
|
|
1372
|
+
* @param {string} project
|
|
1373
|
+
* @param {string} location
|
|
1374
|
+
* @param {string} collection
|
|
1375
|
+
* @param {string} data_store
|
|
1376
|
+
* @param {string} serving_config
|
|
1377
|
+
* @returns {string} Resource name string.
|
|
1378
|
+
*/
|
|
1379
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
|
1380
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
|
1381
|
+
project: project,
|
|
1382
|
+
location: location,
|
|
1383
|
+
collection: collection,
|
|
1384
|
+
data_store: dataStore,
|
|
1385
|
+
serving_config: servingConfig,
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1388
|
+
/**
|
|
1389
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1390
|
+
*
|
|
1391
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1392
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1393
|
+
* @returns {string} A string representing the project.
|
|
1394
|
+
*/
|
|
1395
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1396
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
|
1397
|
+
}
|
|
1398
|
+
/**
|
|
1399
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1400
|
+
*
|
|
1401
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1402
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1403
|
+
* @returns {string} A string representing the location.
|
|
1404
|
+
*/
|
|
1405
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1406
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1410
|
+
*
|
|
1411
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1412
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1413
|
+
* @returns {string} A string representing the collection.
|
|
1414
|
+
*/
|
|
1415
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1416
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1420
|
+
*
|
|
1421
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1422
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1423
|
+
* @returns {string} A string representing the data_store.
|
|
1424
|
+
*/
|
|
1425
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1426
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
|
1427
|
+
}
|
|
1428
|
+
/**
|
|
1429
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1430
|
+
*
|
|
1431
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1432
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1433
|
+
* @returns {string} A string representing the serving_config.
|
|
1434
|
+
*/
|
|
1435
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1436
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
|
1437
|
+
}
|
|
1149
1438
|
/**
|
|
1150
1439
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
|
1151
1440
|
*
|
|
@@ -1341,6 +1630,75 @@ class SchemaServiceClient {
|
|
|
1341
1630
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
|
1342
1631
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
|
1343
1632
|
}
|
|
1633
|
+
/**
|
|
1634
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
|
1635
|
+
*
|
|
1636
|
+
* @param {string} project
|
|
1637
|
+
* @param {string} location
|
|
1638
|
+
* @param {string} collection
|
|
1639
|
+
* @param {string} engine
|
|
1640
|
+
* @param {string} serving_config
|
|
1641
|
+
* @returns {string} Resource name string.
|
|
1642
|
+
*/
|
|
1643
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
|
1644
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
|
1645
|
+
project: project,
|
|
1646
|
+
location: location,
|
|
1647
|
+
collection: collection,
|
|
1648
|
+
engine: engine,
|
|
1649
|
+
serving_config: servingConfig,
|
|
1650
|
+
});
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
|
1654
|
+
*
|
|
1655
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1656
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1657
|
+
* @returns {string} A string representing the project.
|
|
1658
|
+
*/
|
|
1659
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1660
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
|
1664
|
+
*
|
|
1665
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1666
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1667
|
+
* @returns {string} A string representing the location.
|
|
1668
|
+
*/
|
|
1669
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1670
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
|
1674
|
+
*
|
|
1675
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1676
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1677
|
+
* @returns {string} A string representing the collection.
|
|
1678
|
+
*/
|
|
1679
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1680
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
|
1681
|
+
}
|
|
1682
|
+
/**
|
|
1683
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
|
1684
|
+
*
|
|
1685
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1686
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1687
|
+
* @returns {string} A string representing the engine.
|
|
1688
|
+
*/
|
|
1689
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1690
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
|
1691
|
+
}
|
|
1692
|
+
/**
|
|
1693
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
|
1694
|
+
*
|
|
1695
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1696
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1697
|
+
* @returns {string} A string representing the serving_config.
|
|
1698
|
+
*/
|
|
1699
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1700
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
|
1701
|
+
}
|
|
1344
1702
|
/**
|
|
1345
1703
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
|
1346
1704
|
*
|
|
@@ -1455,6 +1813,87 @@ class SchemaServiceClient {
|
|
|
1455
1813
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
|
1456
1814
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
|
1457
1815
|
}
|
|
1816
|
+
/**
|
|
1817
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
|
1818
|
+
*
|
|
1819
|
+
* @param {string} project
|
|
1820
|
+
* @param {string} location
|
|
1821
|
+
* @param {string} data_store
|
|
1822
|
+
* @param {string} branch
|
|
1823
|
+
* @param {string} document
|
|
1824
|
+
* @param {string} chunk
|
|
1825
|
+
* @returns {string} Resource name string.
|
|
1826
|
+
*/
|
|
1827
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
|
1828
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
|
1829
|
+
project: project,
|
|
1830
|
+
location: location,
|
|
1831
|
+
data_store: dataStore,
|
|
1832
|
+
branch: branch,
|
|
1833
|
+
document: document,
|
|
1834
|
+
chunk: chunk,
|
|
1835
|
+
});
|
|
1836
|
+
}
|
|
1837
|
+
/**
|
|
1838
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1839
|
+
*
|
|
1840
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1841
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1842
|
+
* @returns {string} A string representing the project.
|
|
1843
|
+
*/
|
|
1844
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1845
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1849
|
+
*
|
|
1850
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1851
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1852
|
+
* @returns {string} A string representing the location.
|
|
1853
|
+
*/
|
|
1854
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1855
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
|
1856
|
+
}
|
|
1857
|
+
/**
|
|
1858
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1859
|
+
*
|
|
1860
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1861
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1862
|
+
* @returns {string} A string representing the data_store.
|
|
1863
|
+
*/
|
|
1864
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1865
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
|
1866
|
+
}
|
|
1867
|
+
/**
|
|
1868
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1869
|
+
*
|
|
1870
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1871
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1872
|
+
* @returns {string} A string representing the branch.
|
|
1873
|
+
*/
|
|
1874
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1875
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
|
1876
|
+
}
|
|
1877
|
+
/**
|
|
1878
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1879
|
+
*
|
|
1880
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1881
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1882
|
+
* @returns {string} A string representing the document.
|
|
1883
|
+
*/
|
|
1884
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1885
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
|
1886
|
+
}
|
|
1887
|
+
/**
|
|
1888
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1889
|
+
*
|
|
1890
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1891
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1892
|
+
* @returns {string} A string representing the chunk.
|
|
1893
|
+
*/
|
|
1894
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1895
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
|
1896
|
+
}
|
|
1458
1897
|
/**
|
|
1459
1898
|
* Return a fully-qualified projectLocationDataStoreConversation resource name string.
|
|
1460
1899
|
*
|
|
@@ -1512,6 +1951,51 @@ class SchemaServiceClient {
|
|
|
1512
1951
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
|
1513
1952
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
|
1514
1953
|
}
|
|
1954
|
+
/**
|
|
1955
|
+
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
|
1956
|
+
*
|
|
1957
|
+
* @param {string} project
|
|
1958
|
+
* @param {string} location
|
|
1959
|
+
* @param {string} data_store
|
|
1960
|
+
* @returns {string} Resource name string.
|
|
1961
|
+
*/
|
|
1962
|
+
projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
|
|
1963
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
|
|
1964
|
+
project: project,
|
|
1965
|
+
location: location,
|
|
1966
|
+
data_store: dataStore,
|
|
1967
|
+
});
|
|
1968
|
+
}
|
|
1969
|
+
/**
|
|
1970
|
+
* Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
|
1971
|
+
*
|
|
1972
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
|
1973
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
|
1974
|
+
* @returns {string} A string representing the project.
|
|
1975
|
+
*/
|
|
1976
|
+
matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
|
1977
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
|
|
1978
|
+
}
|
|
1979
|
+
/**
|
|
1980
|
+
* Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
|
1981
|
+
*
|
|
1982
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
|
1983
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
|
1984
|
+
* @returns {string} A string representing the location.
|
|
1985
|
+
*/
|
|
1986
|
+
matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
|
1987
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
|
|
1988
|
+
}
|
|
1989
|
+
/**
|
|
1990
|
+
* Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
|
1991
|
+
*
|
|
1992
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
|
1993
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
|
1994
|
+
* @returns {string} A string representing the data_store.
|
|
1995
|
+
*/
|
|
1996
|
+
matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
|
1997
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
|
|
1998
|
+
}
|
|
1515
1999
|
/**
|
|
1516
2000
|
* Return a fully-qualified projectLocationDataStoreSchema resource name string.
|
|
1517
2001
|
*
|
|
@@ -1569,6 +2053,63 @@ class SchemaServiceClient {
|
|
|
1569
2053
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
|
1570
2054
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
|
1571
2055
|
}
|
|
2056
|
+
/**
|
|
2057
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
|
2058
|
+
*
|
|
2059
|
+
* @param {string} project
|
|
2060
|
+
* @param {string} location
|
|
2061
|
+
* @param {string} data_store
|
|
2062
|
+
* @param {string} serving_config
|
|
2063
|
+
* @returns {string} Resource name string.
|
|
2064
|
+
*/
|
|
2065
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
|
2066
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
|
2067
|
+
project: project,
|
|
2068
|
+
location: location,
|
|
2069
|
+
data_store: dataStore,
|
|
2070
|
+
serving_config: servingConfig,
|
|
2071
|
+
});
|
|
2072
|
+
}
|
|
2073
|
+
/**
|
|
2074
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
|
2075
|
+
*
|
|
2076
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
2077
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
2078
|
+
* @returns {string} A string representing the project.
|
|
2079
|
+
*/
|
|
2080
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
2081
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
|
2082
|
+
}
|
|
2083
|
+
/**
|
|
2084
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
|
2085
|
+
*
|
|
2086
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
2087
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
2088
|
+
* @returns {string} A string representing the location.
|
|
2089
|
+
*/
|
|
2090
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
2091
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
|
2092
|
+
}
|
|
2093
|
+
/**
|
|
2094
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
|
2095
|
+
*
|
|
2096
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
2097
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
2098
|
+
* @returns {string} A string representing the data_store.
|
|
2099
|
+
*/
|
|
2100
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
2101
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
|
2102
|
+
}
|
|
2103
|
+
/**
|
|
2104
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
|
2105
|
+
*
|
|
2106
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
2107
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
2108
|
+
* @returns {string} A string representing the serving_config.
|
|
2109
|
+
*/
|
|
2110
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
2111
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
|
2112
|
+
}
|
|
1572
2113
|
/**
|
|
1573
2114
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
|
1574
2115
|
*
|