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