@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
@@ -72,7 +72,7 @@ class SearchTuningServiceClient {
|
|
72
72
|
* ```
|
73
73
|
*/
|
74
74
|
constructor(opts, gaxInstance) {
|
75
|
-
var _a, _b, _c, _d;
|
75
|
+
var _a, _b, _c, _d, _e;
|
76
76
|
this._terminated = false;
|
77
77
|
this.descriptors = {
|
78
78
|
page: {},
|
@@ -87,14 +87,17 @@ class SearchTuningServiceClient {
|
|
87
87
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
88
88
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
89
89
|
}
|
90
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
91
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
92
|
+
: undefined;
|
90
93
|
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';
|
94
|
+
(_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';
|
92
95
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
93
96
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
94
97
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
95
98
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
96
|
-
const clientConfig = (
|
97
|
-
const fallback = (
|
99
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
100
|
+
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');
|
98
101
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
99
102
|
// Request numeric enum values if REST transport is used.
|
100
103
|
opts.numericEnums = true;
|
@@ -125,7 +128,7 @@ class SearchTuningServiceClient {
|
|
125
128
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
126
129
|
// Determine the client header string.
|
127
130
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
128
|
-
if (typeof process
|
131
|
+
if (typeof process === 'object' && 'versions' in process) {
|
129
132
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
130
133
|
}
|
131
134
|
else {
|
@@ -146,18 +149,26 @@ class SearchTuningServiceClient {
|
|
146
149
|
// identifiers to uniquely identify resources within the API.
|
147
150
|
// Create useful helper objects for these.
|
148
151
|
this.pathTemplates = {
|
152
|
+
aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
|
149
153
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
150
154
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
151
155
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
156
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
152
157
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
158
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
153
159
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
160
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
154
161
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
155
162
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
156
163
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
164
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
157
165
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
158
166
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
167
|
+
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
159
168
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
169
|
+
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
160
170
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
171
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
161
172
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
162
173
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
163
174
|
};
|
@@ -209,6 +220,9 @@ class SearchTuningServiceClient {
|
|
209
220
|
{
|
210
221
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
211
222
|
},
|
223
|
+
{
|
224
|
+
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
225
|
+
},
|
212
226
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
213
227
|
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
214
228
|
],
|
@@ -321,7 +335,7 @@ class SearchTuningServiceClient {
|
|
321
335
|
* @returns {string} The DNS address for this service.
|
322
336
|
*/
|
323
337
|
static get servicePath() {
|
324
|
-
if (typeof process
|
338
|
+
if (typeof process === 'object' &&
|
325
339
|
typeof process.emitWarning === 'function') {
|
326
340
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
327
341
|
}
|
@@ -333,7 +347,7 @@ class SearchTuningServiceClient {
|
|
333
347
|
* @returns {string} The DNS address for this service.
|
334
348
|
*/
|
335
349
|
static get apiEndpoint() {
|
336
|
-
if (typeof process
|
350
|
+
if (typeof process === 'object' &&
|
337
351
|
typeof process.emitWarning === 'function') {
|
338
352
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
339
353
|
}
|
@@ -599,6 +613,41 @@ class SearchTuningServiceClient {
|
|
599
613
|
// --------------------
|
600
614
|
// -- Path templates --
|
601
615
|
// --------------------
|
616
|
+
/**
|
617
|
+
* Return a fully-qualified aclConfig resource name string.
|
618
|
+
*
|
619
|
+
* @param {string} project
|
620
|
+
* @param {string} location
|
621
|
+
* @returns {string} Resource name string.
|
622
|
+
*/
|
623
|
+
aclConfigPath(project, location) {
|
624
|
+
return this.pathTemplates.aclConfigPathTemplate.render({
|
625
|
+
project: project,
|
626
|
+
location: location,
|
627
|
+
});
|
628
|
+
}
|
629
|
+
/**
|
630
|
+
* Parse the project from AclConfig resource.
|
631
|
+
*
|
632
|
+
* @param {string} aclConfigName
|
633
|
+
* A fully-qualified path representing AclConfig resource.
|
634
|
+
* @returns {string} A string representing the project.
|
635
|
+
*/
|
636
|
+
matchProjectFromAclConfigName(aclConfigName) {
|
637
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
638
|
+
.project;
|
639
|
+
}
|
640
|
+
/**
|
641
|
+
* Parse the location from AclConfig resource.
|
642
|
+
*
|
643
|
+
* @param {string} aclConfigName
|
644
|
+
* A fully-qualified path representing AclConfig resource.
|
645
|
+
* @returns {string} A string representing the location.
|
646
|
+
*/
|
647
|
+
matchLocationFromAclConfigName(aclConfigName) {
|
648
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
649
|
+
.location;
|
650
|
+
}
|
602
651
|
/**
|
603
652
|
* Return a fully-qualified engine resource name string.
|
604
653
|
*
|
@@ -794,6 +843,99 @@ class SearchTuningServiceClient {
|
|
794
843
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
795
844
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
796
845
|
}
|
846
|
+
/**
|
847
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
848
|
+
*
|
849
|
+
* @param {string} project
|
850
|
+
* @param {string} location
|
851
|
+
* @param {string} collection
|
852
|
+
* @param {string} data_store
|
853
|
+
* @param {string} branch
|
854
|
+
* @param {string} document
|
855
|
+
* @param {string} chunk
|
856
|
+
* @returns {string} Resource name string.
|
857
|
+
*/
|
858
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
859
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
860
|
+
project: project,
|
861
|
+
location: location,
|
862
|
+
collection: collection,
|
863
|
+
data_store: dataStore,
|
864
|
+
branch: branch,
|
865
|
+
document: document,
|
866
|
+
chunk: chunk,
|
867
|
+
});
|
868
|
+
}
|
869
|
+
/**
|
870
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
871
|
+
*
|
872
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
873
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
874
|
+
* @returns {string} A string representing the project.
|
875
|
+
*/
|
876
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
877
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
878
|
+
}
|
879
|
+
/**
|
880
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
881
|
+
*
|
882
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
883
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
884
|
+
* @returns {string} A string representing the location.
|
885
|
+
*/
|
886
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
887
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
888
|
+
}
|
889
|
+
/**
|
890
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
891
|
+
*
|
892
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
893
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
894
|
+
* @returns {string} A string representing the collection.
|
895
|
+
*/
|
896
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
897
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
898
|
+
}
|
899
|
+
/**
|
900
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
901
|
+
*
|
902
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
903
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
904
|
+
* @returns {string} A string representing the data_store.
|
905
|
+
*/
|
906
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
907
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
908
|
+
}
|
909
|
+
/**
|
910
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
911
|
+
*
|
912
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
913
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
914
|
+
* @returns {string} A string representing the branch.
|
915
|
+
*/
|
916
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
917
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
918
|
+
}
|
919
|
+
/**
|
920
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
921
|
+
*
|
922
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
923
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
924
|
+
* @returns {string} A string representing the document.
|
925
|
+
*/
|
926
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
927
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
928
|
+
}
|
929
|
+
/**
|
930
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
931
|
+
*
|
932
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
933
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
934
|
+
* @returns {string} A string representing the chunk.
|
935
|
+
*/
|
936
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
937
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
938
|
+
}
|
797
939
|
/**
|
798
940
|
* Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
|
799
941
|
*
|
@@ -863,6 +1005,63 @@ class SearchTuningServiceClient {
|
|
863
1005
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
864
1006
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
865
1007
|
}
|
1008
|
+
/**
|
1009
|
+
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
1010
|
+
*
|
1011
|
+
* @param {string} project
|
1012
|
+
* @param {string} location
|
1013
|
+
* @param {string} collection
|
1014
|
+
* @param {string} data_store
|
1015
|
+
* @returns {string} Resource name string.
|
1016
|
+
*/
|
1017
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
|
1018
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
|
1019
|
+
project: project,
|
1020
|
+
location: location,
|
1021
|
+
collection: collection,
|
1022
|
+
data_store: dataStore,
|
1023
|
+
});
|
1024
|
+
}
|
1025
|
+
/**
|
1026
|
+
* Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1027
|
+
*
|
1028
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1029
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1030
|
+
* @returns {string} A string representing the project.
|
1031
|
+
*/
|
1032
|
+
matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1033
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
|
1034
|
+
}
|
1035
|
+
/**
|
1036
|
+
* Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1037
|
+
*
|
1038
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1039
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1040
|
+
* @returns {string} A string representing the location.
|
1041
|
+
*/
|
1042
|
+
matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1043
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
|
1044
|
+
}
|
1045
|
+
/**
|
1046
|
+
* Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1047
|
+
*
|
1048
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1049
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1050
|
+
* @returns {string} A string representing the collection.
|
1051
|
+
*/
|
1052
|
+
matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1053
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
|
1054
|
+
}
|
1055
|
+
/**
|
1056
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1057
|
+
*
|
1058
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1059
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1060
|
+
* @returns {string} A string representing the data_store.
|
1061
|
+
*/
|
1062
|
+
matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1063
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
|
1064
|
+
}
|
866
1065
|
/**
|
867
1066
|
* Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
|
868
1067
|
*
|
@@ -932,6 +1131,75 @@ class SearchTuningServiceClient {
|
|
932
1131
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
933
1132
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
934
1133
|
}
|
1134
|
+
/**
|
1135
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1136
|
+
*
|
1137
|
+
* @param {string} project
|
1138
|
+
* @param {string} location
|
1139
|
+
* @param {string} collection
|
1140
|
+
* @param {string} data_store
|
1141
|
+
* @param {string} serving_config
|
1142
|
+
* @returns {string} Resource name string.
|
1143
|
+
*/
|
1144
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1145
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1146
|
+
project: project,
|
1147
|
+
location: location,
|
1148
|
+
collection: collection,
|
1149
|
+
data_store: dataStore,
|
1150
|
+
serving_config: servingConfig,
|
1151
|
+
});
|
1152
|
+
}
|
1153
|
+
/**
|
1154
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1155
|
+
*
|
1156
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1157
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1158
|
+
* @returns {string} A string representing the project.
|
1159
|
+
*/
|
1160
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1161
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1162
|
+
}
|
1163
|
+
/**
|
1164
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1165
|
+
*
|
1166
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1167
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1168
|
+
* @returns {string} A string representing the location.
|
1169
|
+
*/
|
1170
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1171
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1172
|
+
}
|
1173
|
+
/**
|
1174
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1175
|
+
*
|
1176
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1177
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1178
|
+
* @returns {string} A string representing the collection.
|
1179
|
+
*/
|
1180
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1181
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1182
|
+
}
|
1183
|
+
/**
|
1184
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1185
|
+
*
|
1186
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1187
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1188
|
+
* @returns {string} A string representing the data_store.
|
1189
|
+
*/
|
1190
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1191
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1192
|
+
}
|
1193
|
+
/**
|
1194
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1195
|
+
*
|
1196
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1197
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1198
|
+
* @returns {string} A string representing the serving_config.
|
1199
|
+
*/
|
1200
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1201
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1202
|
+
}
|
935
1203
|
/**
|
936
1204
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
937
1205
|
*
|
@@ -1127,6 +1395,75 @@ class SearchTuningServiceClient {
|
|
1127
1395
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1128
1396
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1129
1397
|
}
|
1398
|
+
/**
|
1399
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
1400
|
+
*
|
1401
|
+
* @param {string} project
|
1402
|
+
* @param {string} location
|
1403
|
+
* @param {string} collection
|
1404
|
+
* @param {string} engine
|
1405
|
+
* @param {string} serving_config
|
1406
|
+
* @returns {string} Resource name string.
|
1407
|
+
*/
|
1408
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
1409
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
1410
|
+
project: project,
|
1411
|
+
location: location,
|
1412
|
+
collection: collection,
|
1413
|
+
engine: engine,
|
1414
|
+
serving_config: servingConfig,
|
1415
|
+
});
|
1416
|
+
}
|
1417
|
+
/**
|
1418
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
1419
|
+
*
|
1420
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1421
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1422
|
+
* @returns {string} A string representing the project.
|
1423
|
+
*/
|
1424
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1425
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
1426
|
+
}
|
1427
|
+
/**
|
1428
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
1429
|
+
*
|
1430
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1431
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1432
|
+
* @returns {string} A string representing the location.
|
1433
|
+
*/
|
1434
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1435
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
1436
|
+
}
|
1437
|
+
/**
|
1438
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
1439
|
+
*
|
1440
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1441
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1442
|
+
* @returns {string} A string representing the collection.
|
1443
|
+
*/
|
1444
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1445
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
1446
|
+
}
|
1447
|
+
/**
|
1448
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
1449
|
+
*
|
1450
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1451
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1452
|
+
* @returns {string} A string representing the engine.
|
1453
|
+
*/
|
1454
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1455
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
1456
|
+
}
|
1457
|
+
/**
|
1458
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
1459
|
+
*
|
1460
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1461
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1462
|
+
* @returns {string} A string representing the serving_config.
|
1463
|
+
*/
|
1464
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1465
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1466
|
+
}
|
1130
1467
|
/**
|
1131
1468
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
1132
1469
|
*
|
@@ -1241,6 +1578,87 @@ class SearchTuningServiceClient {
|
|
1241
1578
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
1242
1579
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
1243
1580
|
}
|
1581
|
+
/**
|
1582
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
1583
|
+
*
|
1584
|
+
* @param {string} project
|
1585
|
+
* @param {string} location
|
1586
|
+
* @param {string} data_store
|
1587
|
+
* @param {string} branch
|
1588
|
+
* @param {string} document
|
1589
|
+
* @param {string} chunk
|
1590
|
+
* @returns {string} Resource name string.
|
1591
|
+
*/
|
1592
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
1593
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
1594
|
+
project: project,
|
1595
|
+
location: location,
|
1596
|
+
data_store: dataStore,
|
1597
|
+
branch: branch,
|
1598
|
+
document: document,
|
1599
|
+
chunk: chunk,
|
1600
|
+
});
|
1601
|
+
}
|
1602
|
+
/**
|
1603
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1604
|
+
*
|
1605
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1606
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1607
|
+
* @returns {string} A string representing the project.
|
1608
|
+
*/
|
1609
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1610
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
1611
|
+
}
|
1612
|
+
/**
|
1613
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1614
|
+
*
|
1615
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1616
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1617
|
+
* @returns {string} A string representing the location.
|
1618
|
+
*/
|
1619
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1620
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
1621
|
+
}
|
1622
|
+
/**
|
1623
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1624
|
+
*
|
1625
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1626
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1627
|
+
* @returns {string} A string representing the data_store.
|
1628
|
+
*/
|
1629
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1630
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
1631
|
+
}
|
1632
|
+
/**
|
1633
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1634
|
+
*
|
1635
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1636
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1637
|
+
* @returns {string} A string representing the branch.
|
1638
|
+
*/
|
1639
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1640
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
1641
|
+
}
|
1642
|
+
/**
|
1643
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1644
|
+
*
|
1645
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1646
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1647
|
+
* @returns {string} A string representing the document.
|
1648
|
+
*/
|
1649
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1650
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
1651
|
+
}
|
1652
|
+
/**
|
1653
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1654
|
+
*
|
1655
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1656
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1657
|
+
* @returns {string} A string representing the chunk.
|
1658
|
+
*/
|
1659
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1660
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
1661
|
+
}
|
1244
1662
|
/**
|
1245
1663
|
* Return a fully-qualified projectLocationDataStoreConversation resource name string.
|
1246
1664
|
*
|
@@ -1298,6 +1716,51 @@ class SearchTuningServiceClient {
|
|
1298
1716
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
1299
1717
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
1300
1718
|
}
|
1719
|
+
/**
|
1720
|
+
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
1721
|
+
*
|
1722
|
+
* @param {string} project
|
1723
|
+
* @param {string} location
|
1724
|
+
* @param {string} data_store
|
1725
|
+
* @returns {string} Resource name string.
|
1726
|
+
*/
|
1727
|
+
projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
|
1728
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
|
1729
|
+
project: project,
|
1730
|
+
location: location,
|
1731
|
+
data_store: dataStore,
|
1732
|
+
});
|
1733
|
+
}
|
1734
|
+
/**
|
1735
|
+
* Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
1736
|
+
*
|
1737
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
1738
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
1739
|
+
* @returns {string} A string representing the project.
|
1740
|
+
*/
|
1741
|
+
matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
1742
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
|
1743
|
+
}
|
1744
|
+
/**
|
1745
|
+
* Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
1746
|
+
*
|
1747
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
1748
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
1749
|
+
* @returns {string} A string representing the location.
|
1750
|
+
*/
|
1751
|
+
matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
1752
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
|
1753
|
+
}
|
1754
|
+
/**
|
1755
|
+
* Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
1756
|
+
*
|
1757
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
1758
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
1759
|
+
* @returns {string} A string representing the data_store.
|
1760
|
+
*/
|
1761
|
+
matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
1762
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
|
1763
|
+
}
|
1301
1764
|
/**
|
1302
1765
|
* Return a fully-qualified projectLocationDataStoreSchema resource name string.
|
1303
1766
|
*
|
@@ -1355,6 +1818,63 @@ class SearchTuningServiceClient {
|
|
1355
1818
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
1356
1819
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
1357
1820
|
}
|
1821
|
+
/**
|
1822
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
1823
|
+
*
|
1824
|
+
* @param {string} project
|
1825
|
+
* @param {string} location
|
1826
|
+
* @param {string} data_store
|
1827
|
+
* @param {string} serving_config
|
1828
|
+
* @returns {string} Resource name string.
|
1829
|
+
*/
|
1830
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
1831
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
1832
|
+
project: project,
|
1833
|
+
location: location,
|
1834
|
+
data_store: dataStore,
|
1835
|
+
serving_config: servingConfig,
|
1836
|
+
});
|
1837
|
+
}
|
1838
|
+
/**
|
1839
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
1840
|
+
*
|
1841
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
1842
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
1843
|
+
* @returns {string} A string representing the project.
|
1844
|
+
*/
|
1845
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1846
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
1847
|
+
}
|
1848
|
+
/**
|
1849
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
1850
|
+
*
|
1851
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
1852
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
1853
|
+
* @returns {string} A string representing the location.
|
1854
|
+
*/
|
1855
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1856
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
1857
|
+
}
|
1858
|
+
/**
|
1859
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
1860
|
+
*
|
1861
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
1862
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
1863
|
+
* @returns {string} A string representing the data_store.
|
1864
|
+
*/
|
1865
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1866
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
1867
|
+
}
|
1868
|
+
/**
|
1869
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
1870
|
+
*
|
1871
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
1872
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
1873
|
+
* @returns {string} A string representing the serving_config.
|
1874
|
+
*/
|
1875
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1876
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
1877
|
+
}
|
1358
1878
|
/**
|
1359
1879
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
1360
1880
|
*
|