@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 CompletionServiceClient {
|
|
|
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 CompletionServiceClient {
|
|
|
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 CompletionServiceClient {
|
|
|
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,21 +146,135 @@ class CompletionServiceClient {
|
|
|
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
|
};
|
|
172
|
+
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
173
|
+
// This API contains "long-running operations", which return a
|
|
174
|
+
// an Operation object that allows for tracking of the operation,
|
|
175
|
+
// rather than holding a request open.
|
|
176
|
+
const lroOptions = {
|
|
177
|
+
auth: this.auth,
|
|
178
|
+
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
|
|
179
|
+
};
|
|
180
|
+
if (opts.fallback) {
|
|
181
|
+
lroOptions.protoJson = protoFilesRoot;
|
|
182
|
+
lroOptions.httpRules = [
|
|
183
|
+
{
|
|
184
|
+
selector: 'google.longrunning.Operations.GetOperation',
|
|
185
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
|
186
|
+
additional_bindings: [
|
|
187
|
+
{
|
|
188
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/operations/*}',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
|
219
|
+
},
|
|
220
|
+
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
|
221
|
+
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
|
222
|
+
],
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
selector: 'google.longrunning.Operations.ListOperations',
|
|
226
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
|
227
|
+
additional_bindings: [
|
|
228
|
+
{
|
|
229
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*}/operations',
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations',
|
|
260
|
+
},
|
|
261
|
+
{ get: '/v1alpha/{name=projects/*/locations/*}/operations' },
|
|
262
|
+
{ get: '/v1alpha/{name=projects/*}/operations' },
|
|
263
|
+
],
|
|
264
|
+
},
|
|
265
|
+
];
|
|
266
|
+
}
|
|
267
|
+
this.operationsClient = this._gaxModule
|
|
268
|
+
.lro(lroOptions)
|
|
269
|
+
.operationsClient(opts);
|
|
270
|
+
const importSuggestionDenyListEntriesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse');
|
|
271
|
+
const importSuggestionDenyListEntriesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata');
|
|
272
|
+
const purgeSuggestionDenyListEntriesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse');
|
|
273
|
+
const purgeSuggestionDenyListEntriesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata');
|
|
274
|
+
this.descriptors.longrunning = {
|
|
275
|
+
importSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importSuggestionDenyListEntriesResponse.decode.bind(importSuggestionDenyListEntriesResponse), importSuggestionDenyListEntriesMetadata.decode.bind(importSuggestionDenyListEntriesMetadata)),
|
|
276
|
+
purgeSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeSuggestionDenyListEntriesResponse.decode.bind(purgeSuggestionDenyListEntriesResponse), purgeSuggestionDenyListEntriesMetadata.decode.bind(purgeSuggestionDenyListEntriesMetadata)),
|
|
277
|
+
};
|
|
156
278
|
// Put together the default options sent with requests.
|
|
157
279
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.CompletionService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
158
280
|
// Set up a dictionary of "inner API calls"; the core implementation
|
|
@@ -187,7 +309,11 @@ class CompletionServiceClient {
|
|
|
187
309
|
.CompletionService, this._opts, this._providedCustomServicePath);
|
|
188
310
|
// Iterate over each of the methods that the service provides
|
|
189
311
|
// and create an API call method for each.
|
|
190
|
-
const completionServiceStubMethods = [
|
|
312
|
+
const completionServiceStubMethods = [
|
|
313
|
+
'completeQuery',
|
|
314
|
+
'importSuggestionDenyListEntries',
|
|
315
|
+
'purgeSuggestionDenyListEntries',
|
|
316
|
+
];
|
|
191
317
|
for (const methodName of completionServiceStubMethods) {
|
|
192
318
|
const callPromise = this.completionServiceStub.then(stub => (...args) => {
|
|
193
319
|
if (this._terminated) {
|
|
@@ -198,7 +324,7 @@ class CompletionServiceClient {
|
|
|
198
324
|
}, (err) => () => {
|
|
199
325
|
throw err;
|
|
200
326
|
});
|
|
201
|
-
const descriptor = undefined;
|
|
327
|
+
const descriptor = this.descriptors.longrunning[methodName] || undefined;
|
|
202
328
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
|
203
329
|
this.innerApiCalls[methodName] = apiCall;
|
|
204
330
|
}
|
|
@@ -206,19 +332,38 @@ class CompletionServiceClient {
|
|
|
206
332
|
}
|
|
207
333
|
/**
|
|
208
334
|
* The DNS address for this API service.
|
|
335
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
209
336
|
* @returns {string} The DNS address for this service.
|
|
210
337
|
*/
|
|
211
338
|
static get servicePath() {
|
|
339
|
+
if (typeof process !== undefined &&
|
|
340
|
+
typeof process.emitWarning === 'function') {
|
|
341
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
342
|
+
}
|
|
212
343
|
return 'discoveryengine.googleapis.com';
|
|
213
344
|
}
|
|
214
345
|
/**
|
|
215
|
-
* The DNS address for this API service - same as servicePath
|
|
216
|
-
*
|
|
346
|
+
* The DNS address for this API service - same as servicePath.
|
|
347
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
217
348
|
* @returns {string} The DNS address for this service.
|
|
218
349
|
*/
|
|
219
350
|
static get apiEndpoint() {
|
|
351
|
+
if (typeof process !== undefined &&
|
|
352
|
+
typeof process.emitWarning === 'function') {
|
|
353
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
354
|
+
}
|
|
220
355
|
return 'discoveryengine.googleapis.com';
|
|
221
356
|
}
|
|
357
|
+
/**
|
|
358
|
+
* The DNS address for this API service.
|
|
359
|
+
* @returns {string} The DNS address for this service.
|
|
360
|
+
*/
|
|
361
|
+
get apiEndpoint() {
|
|
362
|
+
return this._servicePath;
|
|
363
|
+
}
|
|
364
|
+
get universeDomain() {
|
|
365
|
+
return this._universeDomain;
|
|
366
|
+
}
|
|
222
367
|
/**
|
|
223
368
|
* The port for this API service.
|
|
224
369
|
* @returns {number} The default port for this service.
|
|
@@ -266,6 +411,82 @@ class CompletionServiceClient {
|
|
|
266
411
|
this.initialize();
|
|
267
412
|
return this.innerApiCalls.completeQuery(request, options, callback);
|
|
268
413
|
}
|
|
414
|
+
importSuggestionDenyListEntries(request, optionsOrCallback, callback) {
|
|
415
|
+
var _a;
|
|
416
|
+
request = request || {};
|
|
417
|
+
let options;
|
|
418
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
419
|
+
callback = optionsOrCallback;
|
|
420
|
+
options = {};
|
|
421
|
+
}
|
|
422
|
+
else {
|
|
423
|
+
options = optionsOrCallback;
|
|
424
|
+
}
|
|
425
|
+
options = options || {};
|
|
426
|
+
options.otherArgs = options.otherArgs || {};
|
|
427
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
428
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
429
|
+
this._gaxModule.routingHeader.fromParams({
|
|
430
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
431
|
+
});
|
|
432
|
+
this.initialize();
|
|
433
|
+
return this.innerApiCalls.importSuggestionDenyListEntries(request, options, callback);
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Check the status of the long running operation returned by `importSuggestionDenyListEntries()`.
|
|
437
|
+
* @param {String} name
|
|
438
|
+
* The operation name that will be passed.
|
|
439
|
+
* @returns {Promise} - The promise which resolves to an object.
|
|
440
|
+
* The decoded operation object has result and metadata field to get information from.
|
|
441
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
442
|
+
* for more details and examples.
|
|
443
|
+
* @example <caption>include:samples/generated/v1alpha/completion_service.import_suggestion_deny_list_entries.js</caption>
|
|
444
|
+
* region_tag:discoveryengine_v1alpha_generated_CompletionService_ImportSuggestionDenyListEntries_async
|
|
445
|
+
*/
|
|
446
|
+
async checkImportSuggestionDenyListEntriesProgress(name) {
|
|
447
|
+
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
448
|
+
const [operation] = await this.operationsClient.getOperation(request);
|
|
449
|
+
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.importSuggestionDenyListEntries, this._gaxModule.createDefaultBackoffSettings());
|
|
450
|
+
return decodeOperation;
|
|
451
|
+
}
|
|
452
|
+
purgeSuggestionDenyListEntries(request, optionsOrCallback, callback) {
|
|
453
|
+
var _a;
|
|
454
|
+
request = request || {};
|
|
455
|
+
let options;
|
|
456
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
457
|
+
callback = optionsOrCallback;
|
|
458
|
+
options = {};
|
|
459
|
+
}
|
|
460
|
+
else {
|
|
461
|
+
options = optionsOrCallback;
|
|
462
|
+
}
|
|
463
|
+
options = options || {};
|
|
464
|
+
options.otherArgs = options.otherArgs || {};
|
|
465
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
466
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
467
|
+
this._gaxModule.routingHeader.fromParams({
|
|
468
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
469
|
+
});
|
|
470
|
+
this.initialize();
|
|
471
|
+
return this.innerApiCalls.purgeSuggestionDenyListEntries(request, options, callback);
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Check the status of the long running operation returned by `purgeSuggestionDenyListEntries()`.
|
|
475
|
+
* @param {String} name
|
|
476
|
+
* The operation name that will be passed.
|
|
477
|
+
* @returns {Promise} - The promise which resolves to an object.
|
|
478
|
+
* The decoded operation object has result and metadata field to get information from.
|
|
479
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
480
|
+
* for more details and examples.
|
|
481
|
+
* @example <caption>include:samples/generated/v1alpha/completion_service.purge_suggestion_deny_list_entries.js</caption>
|
|
482
|
+
* region_tag:discoveryengine_v1alpha_generated_CompletionService_PurgeSuggestionDenyListEntries_async
|
|
483
|
+
*/
|
|
484
|
+
async checkPurgeSuggestionDenyListEntriesProgress(name) {
|
|
485
|
+
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
486
|
+
const [operation] = await this.operationsClient.getOperation(request);
|
|
487
|
+
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.purgeSuggestionDenyListEntries, this._gaxModule.createDefaultBackoffSettings());
|
|
488
|
+
return decodeOperation;
|
|
489
|
+
}
|
|
269
490
|
/**
|
|
270
491
|
* Gets information about a location.
|
|
271
492
|
*
|
|
@@ -321,9 +542,172 @@ class CompletionServiceClient {
|
|
|
321
542
|
listLocationsAsync(request, options) {
|
|
322
543
|
return this.locationsClient.listLocationsAsync(request, options);
|
|
323
544
|
}
|
|
545
|
+
/**
|
|
546
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
|
547
|
+
* method to poll the operation result at intervals as recommended by the API
|
|
548
|
+
* service.
|
|
549
|
+
*
|
|
550
|
+
* @param {Object} request - The request object that will be sent.
|
|
551
|
+
* @param {string} request.name - The name of the operation resource.
|
|
552
|
+
* @param {Object=} options
|
|
553
|
+
* Optional parameters. You can override the default settings for this call,
|
|
554
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
555
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
|
556
|
+
* for the details.
|
|
557
|
+
* @param {function(?Error, ?Object)=} callback
|
|
558
|
+
* The function which will be called with the result of the API call.
|
|
559
|
+
*
|
|
560
|
+
* The second parameter to the callback is an object representing
|
|
561
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
|
562
|
+
* @return {Promise} - The promise which resolves to an array.
|
|
563
|
+
* The first element of the array is an object representing
|
|
564
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
|
565
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
|
566
|
+
*
|
|
567
|
+
* @example
|
|
568
|
+
* ```
|
|
569
|
+
* const client = longrunning.operationsClient();
|
|
570
|
+
* const name = '';
|
|
571
|
+
* const [response] = await client.getOperation({name});
|
|
572
|
+
* // doThingsWith(response)
|
|
573
|
+
* ```
|
|
574
|
+
*/
|
|
575
|
+
getOperation(request, options, callback) {
|
|
576
|
+
return this.operationsClient.getOperation(request, options, callback);
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* Lists operations that match the specified filter in the request. If the
|
|
580
|
+
* server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
|
|
581
|
+
*
|
|
582
|
+
* For-await-of syntax is used with the iterable to recursively get response element on-demand.
|
|
583
|
+
*
|
|
584
|
+
* @param {Object} request - The request object that will be sent.
|
|
585
|
+
* @param {string} request.name - The name of the operation collection.
|
|
586
|
+
* @param {string} request.filter - The standard list filter.
|
|
587
|
+
* @param {number=} request.pageSize -
|
|
588
|
+
* The maximum number of resources contained in the underlying API
|
|
589
|
+
* response. If page streaming is performed per-resource, this
|
|
590
|
+
* parameter does not affect the return value. If page streaming is
|
|
591
|
+
* performed per-page, this determines the maximum number of
|
|
592
|
+
* resources in a page.
|
|
593
|
+
* @param {Object=} options
|
|
594
|
+
* Optional parameters. You can override the default settings for this call,
|
|
595
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
596
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
|
|
597
|
+
* details.
|
|
598
|
+
* @returns {Object}
|
|
599
|
+
* An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
|
|
600
|
+
*
|
|
601
|
+
* @example
|
|
602
|
+
* ```
|
|
603
|
+
* const client = longrunning.operationsClient();
|
|
604
|
+
* for await (const response of client.listOperationsAsync(request));
|
|
605
|
+
* // doThingsWith(response)
|
|
606
|
+
* ```
|
|
607
|
+
*/
|
|
608
|
+
listOperationsAsync(request, options) {
|
|
609
|
+
return this.operationsClient.listOperationsAsync(request, options);
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Starts asynchronous cancellation on a long-running operation. The server
|
|
613
|
+
* makes a best effort to cancel the operation, but success is not
|
|
614
|
+
* guaranteed. If the server doesn't support this method, it returns
|
|
615
|
+
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
|
616
|
+
* {@link Operations.GetOperation} or
|
|
617
|
+
* other methods to check whether the cancellation succeeded or whether the
|
|
618
|
+
* operation completed despite cancellation. On successful cancellation,
|
|
619
|
+
* the operation is not deleted; instead, it becomes an operation with
|
|
620
|
+
* an {@link Operation.error} value with a {@link google.rpc.Status.code} of
|
|
621
|
+
* 1, corresponding to `Code.CANCELLED`.
|
|
622
|
+
*
|
|
623
|
+
* @param {Object} request - The request object that will be sent.
|
|
624
|
+
* @param {string} request.name - The name of the operation resource to be cancelled.
|
|
625
|
+
* @param {Object=} options
|
|
626
|
+
* Optional parameters. You can override the default settings for this call,
|
|
627
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
628
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
|
|
629
|
+
* details.
|
|
630
|
+
* @param {function(?Error)=} callback
|
|
631
|
+
* The function which will be called with the result of the API call.
|
|
632
|
+
* @return {Promise} - The promise which resolves when API call finishes.
|
|
633
|
+
* The promise has a method named "cancel" which cancels the ongoing API
|
|
634
|
+
* call.
|
|
635
|
+
*
|
|
636
|
+
* @example
|
|
637
|
+
* ```
|
|
638
|
+
* const client = longrunning.operationsClient();
|
|
639
|
+
* await client.cancelOperation({name: ''});
|
|
640
|
+
* ```
|
|
641
|
+
*/
|
|
642
|
+
cancelOperation(request, options, callback) {
|
|
643
|
+
return this.operationsClient.cancelOperation(request, options, callback);
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* Deletes a long-running operation. This method indicates that the client is
|
|
647
|
+
* no longer interested in the operation result. It does not cancel the
|
|
648
|
+
* operation. If the server doesn't support this method, it returns
|
|
649
|
+
* `google.rpc.Code.UNIMPLEMENTED`.
|
|
650
|
+
*
|
|
651
|
+
* @param {Object} request - The request object that will be sent.
|
|
652
|
+
* @param {string} request.name - The name of the operation resource to be deleted.
|
|
653
|
+
* @param {Object=} options
|
|
654
|
+
* Optional parameters. You can override the default settings for this call,
|
|
655
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
656
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
|
657
|
+
* for the details.
|
|
658
|
+
* @param {function(?Error)=} callback
|
|
659
|
+
* The function which will be called with the result of the API call.
|
|
660
|
+
* @return {Promise} - The promise which resolves when API call finishes.
|
|
661
|
+
* The promise has a method named "cancel" which cancels the ongoing API
|
|
662
|
+
* call.
|
|
663
|
+
*
|
|
664
|
+
* @example
|
|
665
|
+
* ```
|
|
666
|
+
* const client = longrunning.operationsClient();
|
|
667
|
+
* await client.deleteOperation({name: ''});
|
|
668
|
+
* ```
|
|
669
|
+
*/
|
|
670
|
+
deleteOperation(request, options, callback) {
|
|
671
|
+
return this.operationsClient.deleteOperation(request, options, callback);
|
|
672
|
+
}
|
|
324
673
|
// --------------------
|
|
325
674
|
// -- Path templates --
|
|
326
675
|
// --------------------
|
|
676
|
+
/**
|
|
677
|
+
* Return a fully-qualified aclConfig resource name string.
|
|
678
|
+
*
|
|
679
|
+
* @param {string} project
|
|
680
|
+
* @param {string} location
|
|
681
|
+
* @returns {string} Resource name string.
|
|
682
|
+
*/
|
|
683
|
+
aclConfigPath(project, location) {
|
|
684
|
+
return this.pathTemplates.aclConfigPathTemplate.render({
|
|
685
|
+
project: project,
|
|
686
|
+
location: location,
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* Parse the project from AclConfig resource.
|
|
691
|
+
*
|
|
692
|
+
* @param {string} aclConfigName
|
|
693
|
+
* A fully-qualified path representing AclConfig resource.
|
|
694
|
+
* @returns {string} A string representing the project.
|
|
695
|
+
*/
|
|
696
|
+
matchProjectFromAclConfigName(aclConfigName) {
|
|
697
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
|
698
|
+
.project;
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Parse the location from AclConfig resource.
|
|
702
|
+
*
|
|
703
|
+
* @param {string} aclConfigName
|
|
704
|
+
* A fully-qualified path representing AclConfig resource.
|
|
705
|
+
* @returns {string} A string representing the location.
|
|
706
|
+
*/
|
|
707
|
+
matchLocationFromAclConfigName(aclConfigName) {
|
|
708
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
|
709
|
+
.location;
|
|
710
|
+
}
|
|
327
711
|
/**
|
|
328
712
|
* Return a fully-qualified engine resource name string.
|
|
329
713
|
*
|
|
@@ -519,6 +903,99 @@ class CompletionServiceClient {
|
|
|
519
903
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
|
520
904
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
|
521
905
|
}
|
|
906
|
+
/**
|
|
907
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
|
908
|
+
*
|
|
909
|
+
* @param {string} project
|
|
910
|
+
* @param {string} location
|
|
911
|
+
* @param {string} collection
|
|
912
|
+
* @param {string} data_store
|
|
913
|
+
* @param {string} branch
|
|
914
|
+
* @param {string} document
|
|
915
|
+
* @param {string} chunk
|
|
916
|
+
* @returns {string} Resource name string.
|
|
917
|
+
*/
|
|
918
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
|
919
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
|
920
|
+
project: project,
|
|
921
|
+
location: location,
|
|
922
|
+
collection: collection,
|
|
923
|
+
data_store: dataStore,
|
|
924
|
+
branch: branch,
|
|
925
|
+
document: document,
|
|
926
|
+
chunk: chunk,
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
/**
|
|
930
|
+
* Parse the project 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 project.
|
|
935
|
+
*/
|
|
936
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
937
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
941
|
+
*
|
|
942
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
943
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
944
|
+
* @returns {string} A string representing the location.
|
|
945
|
+
*/
|
|
946
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
947
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
|
948
|
+
}
|
|
949
|
+
/**
|
|
950
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
951
|
+
*
|
|
952
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
953
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
954
|
+
* @returns {string} A string representing the collection.
|
|
955
|
+
*/
|
|
956
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
957
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
961
|
+
*
|
|
962
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
963
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
964
|
+
* @returns {string} A string representing the data_store.
|
|
965
|
+
*/
|
|
966
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
967
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
971
|
+
*
|
|
972
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
973
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
974
|
+
* @returns {string} A string representing the branch.
|
|
975
|
+
*/
|
|
976
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
977
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
|
978
|
+
}
|
|
979
|
+
/**
|
|
980
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
981
|
+
*
|
|
982
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
983
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
984
|
+
* @returns {string} A string representing the document.
|
|
985
|
+
*/
|
|
986
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
987
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
|
991
|
+
*
|
|
992
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
|
993
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
|
994
|
+
* @returns {string} A string representing the chunk.
|
|
995
|
+
*/
|
|
996
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
|
997
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
|
998
|
+
}
|
|
522
999
|
/**
|
|
523
1000
|
* Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
|
|
524
1001
|
*
|
|
@@ -588,6 +1065,63 @@ class CompletionServiceClient {
|
|
|
588
1065
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
|
589
1066
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
|
590
1067
|
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
|
1070
|
+
*
|
|
1071
|
+
* @param {string} project
|
|
1072
|
+
* @param {string} location
|
|
1073
|
+
* @param {string} collection
|
|
1074
|
+
* @param {string} data_store
|
|
1075
|
+
* @returns {string} Resource name string.
|
|
1076
|
+
*/
|
|
1077
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
|
|
1078
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
|
|
1079
|
+
project: project,
|
|
1080
|
+
location: location,
|
|
1081
|
+
collection: collection,
|
|
1082
|
+
data_store: dataStore,
|
|
1083
|
+
});
|
|
1084
|
+
}
|
|
1085
|
+
/**
|
|
1086
|
+
* Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1087
|
+
*
|
|
1088
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1089
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1090
|
+
* @returns {string} A string representing the project.
|
|
1091
|
+
*/
|
|
1092
|
+
matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1093
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
|
|
1094
|
+
}
|
|
1095
|
+
/**
|
|
1096
|
+
* Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1097
|
+
*
|
|
1098
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1099
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1100
|
+
* @returns {string} A string representing the location.
|
|
1101
|
+
*/
|
|
1102
|
+
matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1103
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
|
|
1104
|
+
}
|
|
1105
|
+
/**
|
|
1106
|
+
* Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1107
|
+
*
|
|
1108
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1109
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1110
|
+
* @returns {string} A string representing the collection.
|
|
1111
|
+
*/
|
|
1112
|
+
matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1113
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
|
|
1114
|
+
}
|
|
1115
|
+
/**
|
|
1116
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1117
|
+
*
|
|
1118
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1119
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1120
|
+
* @returns {string} A string representing the data_store.
|
|
1121
|
+
*/
|
|
1122
|
+
matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1123
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
|
|
1124
|
+
}
|
|
591
1125
|
/**
|
|
592
1126
|
* Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
|
|
593
1127
|
*
|
|
@@ -657,6 +1191,75 @@ class CompletionServiceClient {
|
|
|
657
1191
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
|
658
1192
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
|
659
1193
|
}
|
|
1194
|
+
/**
|
|
1195
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
|
1196
|
+
*
|
|
1197
|
+
* @param {string} project
|
|
1198
|
+
* @param {string} location
|
|
1199
|
+
* @param {string} collection
|
|
1200
|
+
* @param {string} data_store
|
|
1201
|
+
* @param {string} serving_config
|
|
1202
|
+
* @returns {string} Resource name string.
|
|
1203
|
+
*/
|
|
1204
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
|
1205
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
|
1206
|
+
project: project,
|
|
1207
|
+
location: location,
|
|
1208
|
+
collection: collection,
|
|
1209
|
+
data_store: dataStore,
|
|
1210
|
+
serving_config: servingConfig,
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
/**
|
|
1214
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1215
|
+
*
|
|
1216
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1217
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1218
|
+
* @returns {string} A string representing the project.
|
|
1219
|
+
*/
|
|
1220
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1221
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
|
1222
|
+
}
|
|
1223
|
+
/**
|
|
1224
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1225
|
+
*
|
|
1226
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1227
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1228
|
+
* @returns {string} A string representing the location.
|
|
1229
|
+
*/
|
|
1230
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1231
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
|
1232
|
+
}
|
|
1233
|
+
/**
|
|
1234
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1235
|
+
*
|
|
1236
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1237
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1238
|
+
* @returns {string} A string representing the collection.
|
|
1239
|
+
*/
|
|
1240
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1241
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
|
1242
|
+
}
|
|
1243
|
+
/**
|
|
1244
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1245
|
+
*
|
|
1246
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1247
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1248
|
+
* @returns {string} A string representing the data_store.
|
|
1249
|
+
*/
|
|
1250
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1251
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1255
|
+
*
|
|
1256
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1257
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1258
|
+
* @returns {string} A string representing the serving_config.
|
|
1259
|
+
*/
|
|
1260
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1261
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
|
1262
|
+
}
|
|
660
1263
|
/**
|
|
661
1264
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
|
662
1265
|
*
|
|
@@ -852,6 +1455,75 @@ class CompletionServiceClient {
|
|
|
852
1455
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
|
853
1456
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
|
854
1457
|
}
|
|
1458
|
+
/**
|
|
1459
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
|
1460
|
+
*
|
|
1461
|
+
* @param {string} project
|
|
1462
|
+
* @param {string} location
|
|
1463
|
+
* @param {string} collection
|
|
1464
|
+
* @param {string} engine
|
|
1465
|
+
* @param {string} serving_config
|
|
1466
|
+
* @returns {string} Resource name string.
|
|
1467
|
+
*/
|
|
1468
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
|
1469
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
|
1470
|
+
project: project,
|
|
1471
|
+
location: location,
|
|
1472
|
+
collection: collection,
|
|
1473
|
+
engine: engine,
|
|
1474
|
+
serving_config: servingConfig,
|
|
1475
|
+
});
|
|
1476
|
+
}
|
|
1477
|
+
/**
|
|
1478
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
|
1479
|
+
*
|
|
1480
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1481
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1482
|
+
* @returns {string} A string representing the project.
|
|
1483
|
+
*/
|
|
1484
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1485
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
|
1486
|
+
}
|
|
1487
|
+
/**
|
|
1488
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
|
1489
|
+
*
|
|
1490
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1491
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1492
|
+
* @returns {string} A string representing the location.
|
|
1493
|
+
*/
|
|
1494
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1495
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
|
1496
|
+
}
|
|
1497
|
+
/**
|
|
1498
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
|
1499
|
+
*
|
|
1500
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1501
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1502
|
+
* @returns {string} A string representing the collection.
|
|
1503
|
+
*/
|
|
1504
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1505
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
|
1506
|
+
}
|
|
1507
|
+
/**
|
|
1508
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
|
1509
|
+
*
|
|
1510
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1511
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1512
|
+
* @returns {string} A string representing the engine.
|
|
1513
|
+
*/
|
|
1514
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1515
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
|
1516
|
+
}
|
|
1517
|
+
/**
|
|
1518
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
|
1519
|
+
*
|
|
1520
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1521
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1522
|
+
* @returns {string} A string representing the serving_config.
|
|
1523
|
+
*/
|
|
1524
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1525
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
|
1526
|
+
}
|
|
855
1527
|
/**
|
|
856
1528
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
|
857
1529
|
*
|
|
@@ -966,6 +1638,87 @@ class CompletionServiceClient {
|
|
|
966
1638
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
|
967
1639
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
|
968
1640
|
}
|
|
1641
|
+
/**
|
|
1642
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
|
1643
|
+
*
|
|
1644
|
+
* @param {string} project
|
|
1645
|
+
* @param {string} location
|
|
1646
|
+
* @param {string} data_store
|
|
1647
|
+
* @param {string} branch
|
|
1648
|
+
* @param {string} document
|
|
1649
|
+
* @param {string} chunk
|
|
1650
|
+
* @returns {string} Resource name string.
|
|
1651
|
+
*/
|
|
1652
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
|
1653
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
|
1654
|
+
project: project,
|
|
1655
|
+
location: location,
|
|
1656
|
+
data_store: dataStore,
|
|
1657
|
+
branch: branch,
|
|
1658
|
+
document: document,
|
|
1659
|
+
chunk: chunk,
|
|
1660
|
+
});
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1664
|
+
*
|
|
1665
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1666
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1667
|
+
* @returns {string} A string representing the project.
|
|
1668
|
+
*/
|
|
1669
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1670
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1674
|
+
*
|
|
1675
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1676
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1677
|
+
* @returns {string} A string representing the location.
|
|
1678
|
+
*/
|
|
1679
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1680
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
|
1681
|
+
}
|
|
1682
|
+
/**
|
|
1683
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1684
|
+
*
|
|
1685
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1686
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1687
|
+
* @returns {string} A string representing the data_store.
|
|
1688
|
+
*/
|
|
1689
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1690
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
|
1691
|
+
}
|
|
1692
|
+
/**
|
|
1693
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1694
|
+
*
|
|
1695
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1696
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1697
|
+
* @returns {string} A string representing the branch.
|
|
1698
|
+
*/
|
|
1699
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1700
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
|
1701
|
+
}
|
|
1702
|
+
/**
|
|
1703
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1704
|
+
*
|
|
1705
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1706
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1707
|
+
* @returns {string} A string representing the document.
|
|
1708
|
+
*/
|
|
1709
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1710
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
|
1711
|
+
}
|
|
1712
|
+
/**
|
|
1713
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
|
1714
|
+
*
|
|
1715
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
|
1716
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
|
1717
|
+
* @returns {string} A string representing the chunk.
|
|
1718
|
+
*/
|
|
1719
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
|
1720
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
|
1721
|
+
}
|
|
969
1722
|
/**
|
|
970
1723
|
* Return a fully-qualified projectLocationDataStoreConversation resource name string.
|
|
971
1724
|
*
|
|
@@ -1023,6 +1776,51 @@ class CompletionServiceClient {
|
|
|
1023
1776
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
|
1024
1777
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
|
1025
1778
|
}
|
|
1779
|
+
/**
|
|
1780
|
+
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
|
1781
|
+
*
|
|
1782
|
+
* @param {string} project
|
|
1783
|
+
* @param {string} location
|
|
1784
|
+
* @param {string} data_store
|
|
1785
|
+
* @returns {string} Resource name string.
|
|
1786
|
+
*/
|
|
1787
|
+
projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
|
|
1788
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
|
|
1789
|
+
project: project,
|
|
1790
|
+
location: location,
|
|
1791
|
+
data_store: dataStore,
|
|
1792
|
+
});
|
|
1793
|
+
}
|
|
1794
|
+
/**
|
|
1795
|
+
* Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
|
1796
|
+
*
|
|
1797
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
|
1798
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
|
1799
|
+
* @returns {string} A string representing the project.
|
|
1800
|
+
*/
|
|
1801
|
+
matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
|
1802
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
|
|
1803
|
+
}
|
|
1804
|
+
/**
|
|
1805
|
+
* Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
|
1806
|
+
*
|
|
1807
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
|
1808
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
|
1809
|
+
* @returns {string} A string representing the location.
|
|
1810
|
+
*/
|
|
1811
|
+
matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
|
1812
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
|
|
1813
|
+
}
|
|
1814
|
+
/**
|
|
1815
|
+
* Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
|
1816
|
+
*
|
|
1817
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
|
1818
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
|
1819
|
+
* @returns {string} A string representing the data_store.
|
|
1820
|
+
*/
|
|
1821
|
+
matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
|
1822
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
|
|
1823
|
+
}
|
|
1026
1824
|
/**
|
|
1027
1825
|
* Return a fully-qualified projectLocationDataStoreSchema resource name string.
|
|
1028
1826
|
*
|
|
@@ -1080,6 +1878,63 @@ class CompletionServiceClient {
|
|
|
1080
1878
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
|
1081
1879
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
|
1082
1880
|
}
|
|
1881
|
+
/**
|
|
1882
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
|
1883
|
+
*
|
|
1884
|
+
* @param {string} project
|
|
1885
|
+
* @param {string} location
|
|
1886
|
+
* @param {string} data_store
|
|
1887
|
+
* @param {string} serving_config
|
|
1888
|
+
* @returns {string} Resource name string.
|
|
1889
|
+
*/
|
|
1890
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
|
1891
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
|
1892
|
+
project: project,
|
|
1893
|
+
location: location,
|
|
1894
|
+
data_store: dataStore,
|
|
1895
|
+
serving_config: servingConfig,
|
|
1896
|
+
});
|
|
1897
|
+
}
|
|
1898
|
+
/**
|
|
1899
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
|
1900
|
+
*
|
|
1901
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
1902
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
1903
|
+
* @returns {string} A string representing the project.
|
|
1904
|
+
*/
|
|
1905
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
1906
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
|
1907
|
+
}
|
|
1908
|
+
/**
|
|
1909
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
|
1910
|
+
*
|
|
1911
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
1912
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
1913
|
+
* @returns {string} A string representing the location.
|
|
1914
|
+
*/
|
|
1915
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
1916
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
|
1917
|
+
}
|
|
1918
|
+
/**
|
|
1919
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
|
1920
|
+
*
|
|
1921
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
1922
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
1923
|
+
* @returns {string} A string representing the data_store.
|
|
1924
|
+
*/
|
|
1925
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
1926
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
|
1927
|
+
}
|
|
1928
|
+
/**
|
|
1929
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
|
1930
|
+
*
|
|
1931
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
1932
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
1933
|
+
* @returns {string} A string representing the serving_config.
|
|
1934
|
+
*/
|
|
1935
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
1936
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
|
1937
|
+
}
|
|
1083
1938
|
/**
|
|
1084
1939
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
|
1085
1940
|
*
|
|
@@ -1194,6 +2049,7 @@ class CompletionServiceClient {
|
|
|
1194
2049
|
this._terminated = true;
|
|
1195
2050
|
stub.close();
|
|
1196
2051
|
this.locationsClient.close();
|
|
2052
|
+
this.operationsClient.close();
|
|
1197
2053
|
});
|
|
1198
2054
|
}
|
|
1199
2055
|
return Promise.resolve();
|