@google-cloud/discoveryengine 1.10.0 → 1.12.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 +20 -0
- package/README.md +33 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation.proto +232 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation_service.proto +252 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +83 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query.proto +86 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_service.proto +264 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto +258 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +14 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/chunk.proto +119 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +0 -5
- package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +31 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +29 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +7 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +23 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +10 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +37 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/evaluation.proto +231 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/evaluation_service.proto +252 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +191 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +111 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query.proto +86 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_service.proto +264 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto +256 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +370 -8
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +11 -5
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +24 -0
- package/build/protos/protos.d.ts +32735 -21073
- package/build/protos/protos.js +80768 -53241
- package/build/protos/protos.json +5309 -2481
- package/build/src/v1alpha/acl_config_service_client.d.ts +108 -0
- package/build/src/v1alpha/acl_config_service_client.js +157 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +108 -0
- package/build/src/v1alpha/chunk_service_client.js +157 -0
- package/build/src/v1alpha/completion_service_client.d.ts +108 -0
- package/build/src/v1alpha/completion_service_client.js +157 -0
- package/build/src/v1alpha/control_service_client.d.ts +108 -0
- package/build/src/v1alpha/control_service_client.js +157 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +108 -0
- package/build/src/v1alpha/conversational_search_service_client.js +157 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +108 -0
- package/build/src/v1alpha/data_store_service_client.js +157 -0
- package/build/src/v1alpha/document_service_client.d.ts +108 -0
- package/build/src/v1alpha/document_service_client.js +157 -0
- package/build/src/v1alpha/engine_service_client.d.ts +108 -0
- package/build/src/v1alpha/engine_service_client.js +157 -0
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +108 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +157 -0
- package/build/src/v1alpha/evaluation_service_client.d.ts +2349 -0
- package/build/src/v1alpha/evaluation_service_client.js +3288 -0
- package/build/src/v1alpha/evaluation_service_client_config.json +58 -0
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +108 -0
- package/build/src/v1alpha/grounded_generation_service_client.js +157 -0
- package/build/src/v1alpha/index.d.ts +3 -0
- package/build/src/v1alpha/index.js +7 -1
- package/build/src/v1alpha/project_service_client.d.ts +108 -0
- package/build/src/v1alpha/project_service_client.js +157 -0
- package/build/src/v1alpha/rank_service_client.d.ts +108 -0
- package/build/src/v1alpha/rank_service_client.js +157 -0
- package/build/src/v1alpha/recommendation_service_client.d.ts +108 -0
- package/build/src/v1alpha/recommendation_service_client.js +157 -0
- package/build/src/v1alpha/sample_query_service_client.d.ts +2317 -0
- package/build/src/v1alpha/sample_query_service_client.js +3186 -0
- package/build/src/v1alpha/sample_query_service_client_config.json +68 -0
- package/build/src/v1alpha/sample_query_set_service_client.d.ts +2176 -0
- package/build/src/v1alpha/sample_query_set_service_client.js +2931 -0
- package/build/src/v1alpha/sample_query_set_service_client_config.json +63 -0
- package/build/src/v1alpha/schema_service_client.d.ts +108 -0
- package/build/src/v1alpha/schema_service_client.js +157 -0
- package/build/src/v1alpha/search_service_client.d.ts +108 -0
- package/build/src/v1alpha/search_service_client.js +157 -0
- package/build/src/v1alpha/search_tuning_service_client.d.ts +108 -0
- package/build/src/v1alpha/search_tuning_service_client.js +157 -0
- package/build/src/v1alpha/serving_config_service_client.d.ts +108 -0
- package/build/src/v1alpha/serving_config_service_client.js +157 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +108 -0
- package/build/src/v1alpha/site_search_engine_service_client.js +157 -0
- package/build/src/v1alpha/user_event_service_client.d.ts +108 -0
- package/build/src/v1alpha/user_event_service_client.js +157 -0
- package/build/src/v1beta/completion_service_client.d.ts +328 -0
- package/build/src/v1beta/completion_service_client.js +423 -0
- package/build/src/v1beta/completion_service_client_config.json +10 -0
- package/build/src/v1beta/control_service_client.d.ts +237 -0
- package/build/src/v1beta/control_service_client.js +333 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +255 -0
- package/build/src/v1beta/conversational_search_service_client.js +333 -0
- package/build/src/v1beta/data_store_service_client.d.ts +246 -0
- package/build/src/v1beta/data_store_service_client.js +339 -0
- package/build/src/v1beta/document_service_client.d.ts +239 -0
- package/build/src/v1beta/document_service_client.js +339 -0
- package/build/src/v1beta/engine_service_client.d.ts +237 -0
- package/build/src/v1beta/engine_service_client.js +339 -0
- package/build/src/v1beta/evaluation_service_client.d.ts +2325 -0
- package/build/src/v1beta/evaluation_service_client.js +3252 -0
- package/build/src/v1beta/evaluation_service_client_config.json +58 -0
- package/build/src/v1beta/grounded_generation_service_client.d.ts +237 -0
- package/build/src/v1beta/grounded_generation_service_client.js +333 -0
- package/build/src/v1beta/index.d.ts +3 -0
- package/build/src/v1beta/index.js +7 -1
- package/build/src/v1beta/project_service_client.d.ts +237 -0
- package/build/src/v1beta/project_service_client.js +339 -0
- package/build/src/v1beta/rank_service_client.d.ts +237 -0
- package/build/src/v1beta/rank_service_client.js +333 -0
- package/build/src/v1beta/recommendation_service_client.d.ts +237 -0
- package/build/src/v1beta/recommendation_service_client.js +333 -0
- package/build/src/v1beta/sample_query_service_client.d.ts +2293 -0
- package/build/src/v1beta/sample_query_service_client.js +3150 -0
- package/build/src/v1beta/sample_query_service_client_config.json +68 -0
- package/build/src/v1beta/sample_query_set_service_client.d.ts +2150 -0
- package/build/src/v1beta/sample_query_set_service_client.js +2895 -0
- package/build/src/v1beta/sample_query_set_service_client_config.json +63 -0
- package/build/src/v1beta/schema_service_client.d.ts +237 -0
- package/build/src/v1beta/schema_service_client.js +339 -0
- package/build/src/v1beta/search_service_client.d.ts +414 -12
- package/build/src/v1beta/search_service_client.js +451 -8
- package/build/src/v1beta/search_tuning_service_client.d.ts +237 -0
- package/build/src/v1beta/search_tuning_service_client.js +339 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +237 -0
- package/build/src/v1beta/serving_config_service_client.js +333 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +237 -0
- package/build/src/v1beta/site_search_engine_service_client.js +339 -0
- package/build/src/v1beta/user_event_service_client.d.ts +312 -0
- package/build/src/v1beta/user_event_service_client.js +381 -0
- package/build/src/v1beta/user_event_service_client_config.json +5 -0
- package/package.json +1 -1
@@ -150,9 +150,11 @@ class UserEventServiceClient {
|
|
150
150
|
// Create useful helper objects for these.
|
151
151
|
this.pathTemplates = {
|
152
152
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
153
|
+
evaluationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/evaluations/{evaluation}'),
|
153
154
|
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
|
154
155
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
155
156
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
157
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
156
158
|
projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
|
157
159
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
158
160
|
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
@@ -170,6 +172,7 @@ class UserEventServiceClient {
|
|
170
172
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
171
173
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
172
174
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
175
|
+
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
173
176
|
projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
|
174
177
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
175
178
|
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
@@ -180,6 +183,8 @@ class UserEventServiceClient {
|
|
180
183
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
181
184
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
182
185
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
186
|
+
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
187
|
+
sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
|
183
188
|
};
|
184
189
|
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
185
190
|
// This API contains "long-running operations", which return a
|
@@ -240,7 +245,13 @@ class UserEventServiceClient {
|
|
240
245
|
{
|
241
246
|
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
242
247
|
},
|
248
|
+
{
|
249
|
+
get: '/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
250
|
+
},
|
243
251
|
{ get: '/v1beta/{name=projects/*/locations/*/operations/*}' },
|
252
|
+
{
|
253
|
+
get: '/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
254
|
+
},
|
244
255
|
{ get: '/v1beta/{name=projects/*/operations/*}' },
|
245
256
|
],
|
246
257
|
},
|
@@ -290,9 +301,12 @@ class UserEventServiceClient {
|
|
290
301
|
this.operationsClient = this._gaxModule
|
291
302
|
.lro(lroOptions)
|
292
303
|
.operationsClient(opts);
|
304
|
+
const purgeUserEventsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse');
|
305
|
+
const purgeUserEventsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata');
|
293
306
|
const importUserEventsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse');
|
294
307
|
const importUserEventsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata');
|
295
308
|
this.descriptors.longrunning = {
|
309
|
+
purgeUserEvents: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeUserEventsResponse.decode.bind(purgeUserEventsResponse), purgeUserEventsMetadata.decode.bind(purgeUserEventsMetadata)),
|
296
310
|
importUserEvents: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importUserEventsResponse.decode.bind(importUserEventsResponse), importUserEventsMetadata.decode.bind(importUserEventsMetadata)),
|
297
311
|
};
|
298
312
|
// Put together the default options sent with requests.
|
@@ -332,6 +346,7 @@ class UserEventServiceClient {
|
|
332
346
|
const userEventServiceStubMethods = [
|
333
347
|
'writeUserEvent',
|
334
348
|
'collectUserEvent',
|
349
|
+
'purgeUserEvents',
|
335
350
|
'importUserEvents',
|
336
351
|
];
|
337
352
|
for (const methodName of userEventServiceStubMethods) {
|
@@ -452,6 +467,44 @@ class UserEventServiceClient {
|
|
452
467
|
this.initialize();
|
453
468
|
return this.innerApiCalls.collectUserEvent(request, options, callback);
|
454
469
|
}
|
470
|
+
purgeUserEvents(request, optionsOrCallback, callback) {
|
471
|
+
var _a;
|
472
|
+
request = request || {};
|
473
|
+
let options;
|
474
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
475
|
+
callback = optionsOrCallback;
|
476
|
+
options = {};
|
477
|
+
}
|
478
|
+
else {
|
479
|
+
options = optionsOrCallback;
|
480
|
+
}
|
481
|
+
options = options || {};
|
482
|
+
options.otherArgs = options.otherArgs || {};
|
483
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
484
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
485
|
+
this._gaxModule.routingHeader.fromParams({
|
486
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
487
|
+
});
|
488
|
+
this.initialize();
|
489
|
+
return this.innerApiCalls.purgeUserEvents(request, options, callback);
|
490
|
+
}
|
491
|
+
/**
|
492
|
+
* Check the status of the long running operation returned by `purgeUserEvents()`.
|
493
|
+
* @param {String} name
|
494
|
+
* The operation name that will be passed.
|
495
|
+
* @returns {Promise} - The promise which resolves to an object.
|
496
|
+
* The decoded operation object has result and metadata field to get information from.
|
497
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
498
|
+
* for more details and examples.
|
499
|
+
* @example <caption>include:samples/generated/v1beta/user_event_service.purge_user_events.js</caption>
|
500
|
+
* region_tag:discoveryengine_v1beta_generated_UserEventService_PurgeUserEvents_async
|
501
|
+
*/
|
502
|
+
async checkPurgeUserEventsProgress(name) {
|
503
|
+
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
504
|
+
const [operation] = await this.operationsClient.getOperation(request);
|
505
|
+
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.purgeUserEvents, this._gaxModule.createDefaultBackoffSettings());
|
506
|
+
return decodeOperation;
|
507
|
+
}
|
455
508
|
importUserEvents(request, optionsOrCallback, callback) {
|
456
509
|
var _a;
|
457
510
|
request = request || {};
|
@@ -733,6 +786,54 @@ class UserEventServiceClient {
|
|
733
786
|
matchEngineFromEngineName(engineName) {
|
734
787
|
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
735
788
|
}
|
789
|
+
/**
|
790
|
+
* Return a fully-qualified evaluation resource name string.
|
791
|
+
*
|
792
|
+
* @param {string} project
|
793
|
+
* @param {string} location
|
794
|
+
* @param {string} evaluation
|
795
|
+
* @returns {string} Resource name string.
|
796
|
+
*/
|
797
|
+
evaluationPath(project, location, evaluation) {
|
798
|
+
return this.pathTemplates.evaluationPathTemplate.render({
|
799
|
+
project: project,
|
800
|
+
location: location,
|
801
|
+
evaluation: evaluation,
|
802
|
+
});
|
803
|
+
}
|
804
|
+
/**
|
805
|
+
* Parse the project from Evaluation resource.
|
806
|
+
*
|
807
|
+
* @param {string} evaluationName
|
808
|
+
* A fully-qualified path representing Evaluation resource.
|
809
|
+
* @returns {string} A string representing the project.
|
810
|
+
*/
|
811
|
+
matchProjectFromEvaluationName(evaluationName) {
|
812
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
813
|
+
.project;
|
814
|
+
}
|
815
|
+
/**
|
816
|
+
* Parse the location from Evaluation resource.
|
817
|
+
*
|
818
|
+
* @param {string} evaluationName
|
819
|
+
* A fully-qualified path representing Evaluation resource.
|
820
|
+
* @returns {string} A string representing the location.
|
821
|
+
*/
|
822
|
+
matchLocationFromEvaluationName(evaluationName) {
|
823
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
824
|
+
.location;
|
825
|
+
}
|
826
|
+
/**
|
827
|
+
* Parse the evaluation from Evaluation resource.
|
828
|
+
*
|
829
|
+
* @param {string} evaluationName
|
830
|
+
* A fully-qualified path representing Evaluation resource.
|
831
|
+
* @returns {string} A string representing the evaluation.
|
832
|
+
*/
|
833
|
+
matchEvaluationFromEvaluationName(evaluationName) {
|
834
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
835
|
+
.evaluation;
|
836
|
+
}
|
736
837
|
/**
|
737
838
|
* Return a fully-qualified project resource name string.
|
738
839
|
*
|
@@ -892,6 +993,99 @@ class UserEventServiceClient {
|
|
892
993
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
893
994
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
894
995
|
}
|
996
|
+
/**
|
997
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
998
|
+
*
|
999
|
+
* @param {string} project
|
1000
|
+
* @param {string} location
|
1001
|
+
* @param {string} collection
|
1002
|
+
* @param {string} data_store
|
1003
|
+
* @param {string} branch
|
1004
|
+
* @param {string} document
|
1005
|
+
* @param {string} chunk
|
1006
|
+
* @returns {string} Resource name string.
|
1007
|
+
*/
|
1008
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
1009
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
1010
|
+
project: project,
|
1011
|
+
location: location,
|
1012
|
+
collection: collection,
|
1013
|
+
data_store: dataStore,
|
1014
|
+
branch: branch,
|
1015
|
+
document: document,
|
1016
|
+
chunk: chunk,
|
1017
|
+
});
|
1018
|
+
}
|
1019
|
+
/**
|
1020
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1021
|
+
*
|
1022
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1023
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1024
|
+
* @returns {string} A string representing the project.
|
1025
|
+
*/
|
1026
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1027
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
1028
|
+
}
|
1029
|
+
/**
|
1030
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1031
|
+
*
|
1032
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1033
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1034
|
+
* @returns {string} A string representing the location.
|
1035
|
+
*/
|
1036
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1037
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
1038
|
+
}
|
1039
|
+
/**
|
1040
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1041
|
+
*
|
1042
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1043
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1044
|
+
* @returns {string} A string representing the collection.
|
1045
|
+
*/
|
1046
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1047
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
1048
|
+
}
|
1049
|
+
/**
|
1050
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1051
|
+
*
|
1052
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1053
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1054
|
+
* @returns {string} A string representing the data_store.
|
1055
|
+
*/
|
1056
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1057
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
1058
|
+
}
|
1059
|
+
/**
|
1060
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1061
|
+
*
|
1062
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1063
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1064
|
+
* @returns {string} A string representing the branch.
|
1065
|
+
*/
|
1066
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1067
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
1068
|
+
}
|
1069
|
+
/**
|
1070
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1071
|
+
*
|
1072
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1073
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1074
|
+
* @returns {string} A string representing the document.
|
1075
|
+
*/
|
1076
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1077
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
1078
|
+
}
|
1079
|
+
/**
|
1080
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1081
|
+
*
|
1082
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1083
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1084
|
+
* @returns {string} A string representing the chunk.
|
1085
|
+
*/
|
1086
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1087
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
1088
|
+
}
|
895
1089
|
/**
|
896
1090
|
* Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
|
897
1091
|
*
|
@@ -2041,6 +2235,87 @@ class UserEventServiceClient {
|
|
2041
2235
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
2042
2236
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
2043
2237
|
}
|
2238
|
+
/**
|
2239
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
2240
|
+
*
|
2241
|
+
* @param {string} project
|
2242
|
+
* @param {string} location
|
2243
|
+
* @param {string} data_store
|
2244
|
+
* @param {string} branch
|
2245
|
+
* @param {string} document
|
2246
|
+
* @param {string} chunk
|
2247
|
+
* @returns {string} Resource name string.
|
2248
|
+
*/
|
2249
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
2250
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
2251
|
+
project: project,
|
2252
|
+
location: location,
|
2253
|
+
data_store: dataStore,
|
2254
|
+
branch: branch,
|
2255
|
+
document: document,
|
2256
|
+
chunk: chunk,
|
2257
|
+
});
|
2258
|
+
}
|
2259
|
+
/**
|
2260
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2261
|
+
*
|
2262
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2263
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2264
|
+
* @returns {string} A string representing the project.
|
2265
|
+
*/
|
2266
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2267
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
2268
|
+
}
|
2269
|
+
/**
|
2270
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2271
|
+
*
|
2272
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2273
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2274
|
+
* @returns {string} A string representing the location.
|
2275
|
+
*/
|
2276
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2277
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
2278
|
+
}
|
2279
|
+
/**
|
2280
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2281
|
+
*
|
2282
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2283
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2284
|
+
* @returns {string} A string representing the data_store.
|
2285
|
+
*/
|
2286
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2287
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
2288
|
+
}
|
2289
|
+
/**
|
2290
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2291
|
+
*
|
2292
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2293
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2294
|
+
* @returns {string} A string representing the branch.
|
2295
|
+
*/
|
2296
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2297
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
2298
|
+
}
|
2299
|
+
/**
|
2300
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2301
|
+
*
|
2302
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2303
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2304
|
+
* @returns {string} A string representing the document.
|
2305
|
+
*/
|
2306
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2307
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
2308
|
+
}
|
2309
|
+
/**
|
2310
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2311
|
+
*
|
2312
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2313
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2314
|
+
* @returns {string} A string representing the chunk.
|
2315
|
+
*/
|
2316
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2317
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
2318
|
+
}
|
2044
2319
|
/**
|
2045
2320
|
* Return a fully-qualified projectLocationDataStoreControl resource name string.
|
2046
2321
|
*
|
@@ -2599,6 +2874,112 @@ class UserEventServiceClient {
|
|
2599
2874
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
2600
2875
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
2601
2876
|
}
|
2877
|
+
/**
|
2878
|
+
* Return a fully-qualified sampleQuery resource name string.
|
2879
|
+
*
|
2880
|
+
* @param {string} project
|
2881
|
+
* @param {string} location
|
2882
|
+
* @param {string} sample_query_set
|
2883
|
+
* @param {string} sample_query
|
2884
|
+
* @returns {string} Resource name string.
|
2885
|
+
*/
|
2886
|
+
sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
|
2887
|
+
return this.pathTemplates.sampleQueryPathTemplate.render({
|
2888
|
+
project: project,
|
2889
|
+
location: location,
|
2890
|
+
sample_query_set: sampleQuerySet,
|
2891
|
+
sample_query: sampleQuery,
|
2892
|
+
});
|
2893
|
+
}
|
2894
|
+
/**
|
2895
|
+
* Parse the project from SampleQuery resource.
|
2896
|
+
*
|
2897
|
+
* @param {string} sampleQueryName
|
2898
|
+
* A fully-qualified path representing SampleQuery resource.
|
2899
|
+
* @returns {string} A string representing the project.
|
2900
|
+
*/
|
2901
|
+
matchProjectFromSampleQueryName(sampleQueryName) {
|
2902
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2903
|
+
.project;
|
2904
|
+
}
|
2905
|
+
/**
|
2906
|
+
* Parse the location from SampleQuery resource.
|
2907
|
+
*
|
2908
|
+
* @param {string} sampleQueryName
|
2909
|
+
* A fully-qualified path representing SampleQuery resource.
|
2910
|
+
* @returns {string} A string representing the location.
|
2911
|
+
*/
|
2912
|
+
matchLocationFromSampleQueryName(sampleQueryName) {
|
2913
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2914
|
+
.location;
|
2915
|
+
}
|
2916
|
+
/**
|
2917
|
+
* Parse the sample_query_set from SampleQuery resource.
|
2918
|
+
*
|
2919
|
+
* @param {string} sampleQueryName
|
2920
|
+
* A fully-qualified path representing SampleQuery resource.
|
2921
|
+
* @returns {string} A string representing the sample_query_set.
|
2922
|
+
*/
|
2923
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
2924
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2925
|
+
.sample_query_set;
|
2926
|
+
}
|
2927
|
+
/**
|
2928
|
+
* Parse the sample_query from SampleQuery resource.
|
2929
|
+
*
|
2930
|
+
* @param {string} sampleQueryName
|
2931
|
+
* A fully-qualified path representing SampleQuery resource.
|
2932
|
+
* @returns {string} A string representing the sample_query.
|
2933
|
+
*/
|
2934
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
2935
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2936
|
+
.sample_query;
|
2937
|
+
}
|
2938
|
+
/**
|
2939
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
2940
|
+
*
|
2941
|
+
* @param {string} project
|
2942
|
+
* @param {string} location
|
2943
|
+
* @param {string} sample_query_set
|
2944
|
+
* @returns {string} Resource name string.
|
2945
|
+
*/
|
2946
|
+
sampleQuerySetPath(project, location, sampleQuerySet) {
|
2947
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.render({
|
2948
|
+
project: project,
|
2949
|
+
location: location,
|
2950
|
+
sample_query_set: sampleQuerySet,
|
2951
|
+
});
|
2952
|
+
}
|
2953
|
+
/**
|
2954
|
+
* Parse the project from SampleQuerySet resource.
|
2955
|
+
*
|
2956
|
+
* @param {string} sampleQuerySetName
|
2957
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2958
|
+
* @returns {string} A string representing the project.
|
2959
|
+
*/
|
2960
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName) {
|
2961
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
|
2962
|
+
}
|
2963
|
+
/**
|
2964
|
+
* Parse the location from SampleQuerySet resource.
|
2965
|
+
*
|
2966
|
+
* @param {string} sampleQuerySetName
|
2967
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2968
|
+
* @returns {string} A string representing the location.
|
2969
|
+
*/
|
2970
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName) {
|
2971
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
|
2972
|
+
}
|
2973
|
+
/**
|
2974
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
2975
|
+
*
|
2976
|
+
* @param {string} sampleQuerySetName
|
2977
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2978
|
+
* @returns {string} A string representing the sample_query_set.
|
2979
|
+
*/
|
2980
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
|
2981
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
|
2982
|
+
}
|
2602
2983
|
/**
|
2603
2984
|
* Terminate the gRPC channel and close the client.
|
2604
2985
|
*
|
@@ -51,6 +51,11 @@
|
|
51
51
|
"retry_codes_name": "unavailable",
|
52
52
|
"retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
|
53
53
|
},
|
54
|
+
"PurgeUserEvents": {
|
55
|
+
"timeout_millis": 30000,
|
56
|
+
"retry_codes_name": "unavailable",
|
57
|
+
"retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
|
58
|
+
},
|
54
59
|
"ImportUserEvents": {
|
55
60
|
"timeout_millis": 300000,
|
56
61
|
"retry_codes_name": "unavailable",
|