@google-cloud/discoveryengine 2.2.0 → 2.3.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/README.md +13 -0
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +17 -0
- package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1/cmek_config_service.proto +300 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +67 -0
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +1 -3
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +54 -2
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +14 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +95 -4
- package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +28 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +131 -6
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +8 -0
- package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +9 -0
- package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store.proto +84 -0
- package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto +375 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_license.proto +98 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_license_service.proto +191 -0
- package/build/protos/protos.d.ts +5387 -265
- package/build/protos/protos.js +77991 -63105
- package/build/protos/protos.json +1512 -91
- package/build/src/index.d.ts +10 -1
- package/build/src/index.js +8 -2
- package/build/src/v1/cmek_config_service_client.d.ts +2287 -0
- package/build/src/v1/cmek_config_service_client.js +3274 -0
- package/build/src/v1/cmek_config_service_client_config.json +42 -0
- package/build/src/v1/cmek_config_service_proto_list.json +44 -0
- package/build/src/v1/completion_service_client.d.ts +90 -0
- package/build/src/v1/completion_service_client.js +134 -2
- package/build/src/v1/completion_service_proto_list.json +6 -1
- package/build/src/v1/control_service_client.d.ts +90 -0
- package/build/src/v1/control_service_client.js +150 -0
- package/build/src/v1/control_service_proto_list.json +6 -1
- package/build/src/v1/conversational_search_service_client.d.ts +90 -0
- package/build/src/v1/conversational_search_service_client.js +192 -0
- package/build/src/v1/conversational_search_service_proto_list.json +6 -1
- package/build/src/v1/data_store_service_client.d.ts +96 -0
- package/build/src/v1/data_store_service_client.js +140 -2
- package/build/src/v1/data_store_service_proto_list.json +6 -1
- package/build/src/v1/document_service_client.d.ts +90 -0
- package/build/src/v1/document_service_client.js +158 -2
- package/build/src/v1/document_service_proto_list.json +6 -1
- package/build/src/v1/engine_service_client.d.ts +90 -0
- package/build/src/v1/engine_service_client.js +140 -2
- package/build/src/v1/engine_service_proto_list.json +6 -1
- package/build/src/v1/gapic_metadata.json +184 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +90 -0
- package/build/src/v1/grounded_generation_service_client.js +138 -0
- package/build/src/v1/grounded_generation_service_proto_list.json +6 -1
- package/build/src/v1/identity_mapping_store_service_client.d.ts +2470 -0
- package/build/src/v1/identity_mapping_store_service_client.js +3449 -0
- package/build/src/v1/identity_mapping_store_service_client_config.json +54 -0
- package/build/src/v1/identity_mapping_store_service_proto_list.json +44 -0
- package/build/src/v1/index.d.ts +3 -0
- package/build/src/v1/index.js +7 -1
- package/build/src/v1/project_service_client.d.ts +90 -0
- package/build/src/v1/project_service_client.js +128 -2
- package/build/src/v1/project_service_proto_list.json +6 -1
- package/build/src/v1/rank_service_client.d.ts +90 -0
- package/build/src/v1/rank_service_client.js +132 -0
- package/build/src/v1/rank_service_proto_list.json +6 -1
- package/build/src/v1/recommendation_service_client.d.ts +90 -0
- package/build/src/v1/recommendation_service_client.js +132 -0
- package/build/src/v1/recommendation_service_proto_list.json +6 -1
- package/build/src/v1/schema_service_client.d.ts +90 -0
- package/build/src/v1/schema_service_client.js +134 -2
- package/build/src/v1/schema_service_proto_list.json +6 -1
- package/build/src/v1/search_service_client.d.ts +90 -0
- package/build/src/v1/search_service_client.js +126 -0
- package/build/src/v1/search_service_proto_list.json +6 -1
- package/build/src/v1/search_tuning_service_client.d.ts +90 -0
- package/build/src/v1/search_tuning_service_client.js +134 -2
- package/build/src/v1/search_tuning_service_proto_list.json +6 -1
- package/build/src/v1/serving_config_service_client.d.ts +90 -0
- package/build/src/v1/serving_config_service_client.js +132 -0
- package/build/src/v1/serving_config_service_proto_list.json +6 -1
- package/build/src/v1/site_search_engine_service_client.d.ts +90 -0
- package/build/src/v1/site_search_engine_service_client.js +146 -2
- package/build/src/v1/site_search_engine_service_proto_list.json +6 -1
- package/build/src/v1/user_event_service_client.d.ts +90 -0
- package/build/src/v1/user_event_service_client.js +140 -2
- package/build/src/v1/user_event_service_proto_list.json +6 -1
- package/build/src/v1/user_license_service_client.d.ts +2256 -0
- package/build/src/v1/user_license_service_client.js +3194 -0
- package/build/src/v1/user_license_service_client_config.json +34 -0
- package/build/src/v1/user_license_service_proto_list.json +44 -0
- package/build/src/v1alpha/acl_config_service_client.js +12 -0
- package/build/src/v1alpha/chunk_service_client.js +6 -0
- package/build/src/v1alpha/completion_service_client.js +7 -1
- package/build/src/v1alpha/control_service_client.js +24 -0
- package/build/src/v1alpha/conversational_search_service_client.js +66 -0
- package/build/src/v1alpha/data_store_service_client.js +25 -1
- package/build/src/v1alpha/document_service_client.js +37 -1
- package/build/src/v1alpha/engine_service_client.js +25 -1
- package/build/src/v1alpha/estimate_billing_service_client.js +1 -1
- package/build/src/v1alpha/evaluation_service_client.js +7 -1
- package/build/src/v1alpha/grounded_generation_service_client.js +6 -0
- package/build/src/v1alpha/project_service_client.js +13 -1
- package/build/src/v1alpha/rank_service_client.js +6 -0
- package/build/src/v1alpha/recommendation_service_client.js +6 -0
- package/build/src/v1alpha/sample_query_service_client.js +25 -1
- package/build/src/v1alpha/sample_query_set_service_client.js +24 -0
- package/build/src/v1alpha/schema_service_client.js +7 -1
- package/build/src/v1alpha/search_tuning_service_client.js +7 -1
- package/build/src/v1alpha/serving_config_service_client.js +12 -0
- package/build/src/v1alpha/site_search_engine_service_client.js +19 -1
- package/build/src/v1alpha/user_event_service_client.js +13 -1
- package/build/src/v1beta/completion_service_client.js +13 -1
- package/build/src/v1beta/control_service_client.js +24 -0
- package/build/src/v1beta/conversational_search_service_client.js +66 -0
- package/build/src/v1beta/data_store_service_client.js +13 -1
- package/build/src/v1beta/document_service_client.js +31 -1
- package/build/src/v1beta/engine_service_client.js +25 -1
- package/build/src/v1beta/evaluation_service_client.js +7 -1
- package/build/src/v1beta/grounded_generation_service_client.js +12 -0
- package/build/src/v1beta/project_service_client.js +1 -1
- package/build/src/v1beta/rank_service_client.js +6 -0
- package/build/src/v1beta/recommendation_service_client.js +6 -0
- package/build/src/v1beta/sample_query_service_client.js +25 -1
- package/build/src/v1beta/sample_query_set_service_client.js +24 -0
- package/build/src/v1beta/schema_service_client.js +7 -1
- package/build/src/v1beta/search_tuning_service_client.js +7 -1
- package/build/src/v1beta/serving_config_service_client.js +12 -0
- package/build/src/v1beta/site_search_engine_service_client.js +19 -1
- package/build/src/v1beta/user_event_service_client.js +13 -1
- package/package.json +7 -7
- package/CHANGELOG.md +0 -274
@@ -5,6 +5,60 @@
|
|
5
5
|
"protoPackage": "google.cloud.discoveryengine.v1",
|
6
6
|
"libraryPackage": "@google-cloud/discoveryengine",
|
7
7
|
"services": {
|
8
|
+
"CmekConfigService": {
|
9
|
+
"clients": {
|
10
|
+
"grpc": {
|
11
|
+
"libraryClient": "CmekConfigServiceClient",
|
12
|
+
"rpcs": {
|
13
|
+
"GetCmekConfig": {
|
14
|
+
"methods": [
|
15
|
+
"getCmekConfig"
|
16
|
+
]
|
17
|
+
},
|
18
|
+
"ListCmekConfigs": {
|
19
|
+
"methods": [
|
20
|
+
"listCmekConfigs"
|
21
|
+
]
|
22
|
+
},
|
23
|
+
"UpdateCmekConfig": {
|
24
|
+
"methods": [
|
25
|
+
"updateCmekConfig"
|
26
|
+
]
|
27
|
+
},
|
28
|
+
"DeleteCmekConfig": {
|
29
|
+
"methods": [
|
30
|
+
"deleteCmekConfig"
|
31
|
+
]
|
32
|
+
}
|
33
|
+
}
|
34
|
+
},
|
35
|
+
"grpc-fallback": {
|
36
|
+
"libraryClient": "CmekConfigServiceClient",
|
37
|
+
"rpcs": {
|
38
|
+
"GetCmekConfig": {
|
39
|
+
"methods": [
|
40
|
+
"getCmekConfig"
|
41
|
+
]
|
42
|
+
},
|
43
|
+
"ListCmekConfigs": {
|
44
|
+
"methods": [
|
45
|
+
"listCmekConfigs"
|
46
|
+
]
|
47
|
+
},
|
48
|
+
"UpdateCmekConfig": {
|
49
|
+
"methods": [
|
50
|
+
"updateCmekConfig"
|
51
|
+
]
|
52
|
+
},
|
53
|
+
"DeleteCmekConfig": {
|
54
|
+
"methods": [
|
55
|
+
"deleteCmekConfig"
|
56
|
+
]
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
},
|
8
62
|
"CompletionService": {
|
9
63
|
"clients": {
|
10
64
|
"grpc": {
|
@@ -567,6 +621,98 @@
|
|
567
621
|
}
|
568
622
|
}
|
569
623
|
},
|
624
|
+
"IdentityMappingStoreService": {
|
625
|
+
"clients": {
|
626
|
+
"grpc": {
|
627
|
+
"libraryClient": "IdentityMappingStoreServiceClient",
|
628
|
+
"rpcs": {
|
629
|
+
"CreateIdentityMappingStore": {
|
630
|
+
"methods": [
|
631
|
+
"createIdentityMappingStore"
|
632
|
+
]
|
633
|
+
},
|
634
|
+
"GetIdentityMappingStore": {
|
635
|
+
"methods": [
|
636
|
+
"getIdentityMappingStore"
|
637
|
+
]
|
638
|
+
},
|
639
|
+
"DeleteIdentityMappingStore": {
|
640
|
+
"methods": [
|
641
|
+
"deleteIdentityMappingStore"
|
642
|
+
]
|
643
|
+
},
|
644
|
+
"ImportIdentityMappings": {
|
645
|
+
"methods": [
|
646
|
+
"importIdentityMappings"
|
647
|
+
]
|
648
|
+
},
|
649
|
+
"PurgeIdentityMappings": {
|
650
|
+
"methods": [
|
651
|
+
"purgeIdentityMappings"
|
652
|
+
]
|
653
|
+
},
|
654
|
+
"ListIdentityMappings": {
|
655
|
+
"methods": [
|
656
|
+
"listIdentityMappings",
|
657
|
+
"listIdentityMappingsStream",
|
658
|
+
"listIdentityMappingsAsync"
|
659
|
+
]
|
660
|
+
},
|
661
|
+
"ListIdentityMappingStores": {
|
662
|
+
"methods": [
|
663
|
+
"listIdentityMappingStores",
|
664
|
+
"listIdentityMappingStoresStream",
|
665
|
+
"listIdentityMappingStoresAsync"
|
666
|
+
]
|
667
|
+
}
|
668
|
+
}
|
669
|
+
},
|
670
|
+
"grpc-fallback": {
|
671
|
+
"libraryClient": "IdentityMappingStoreServiceClient",
|
672
|
+
"rpcs": {
|
673
|
+
"CreateIdentityMappingStore": {
|
674
|
+
"methods": [
|
675
|
+
"createIdentityMappingStore"
|
676
|
+
]
|
677
|
+
},
|
678
|
+
"GetIdentityMappingStore": {
|
679
|
+
"methods": [
|
680
|
+
"getIdentityMappingStore"
|
681
|
+
]
|
682
|
+
},
|
683
|
+
"DeleteIdentityMappingStore": {
|
684
|
+
"methods": [
|
685
|
+
"deleteIdentityMappingStore"
|
686
|
+
]
|
687
|
+
},
|
688
|
+
"ImportIdentityMappings": {
|
689
|
+
"methods": [
|
690
|
+
"importIdentityMappings"
|
691
|
+
]
|
692
|
+
},
|
693
|
+
"PurgeIdentityMappings": {
|
694
|
+
"methods": [
|
695
|
+
"purgeIdentityMappings"
|
696
|
+
]
|
697
|
+
},
|
698
|
+
"ListIdentityMappings": {
|
699
|
+
"methods": [
|
700
|
+
"listIdentityMappings",
|
701
|
+
"listIdentityMappingsStream",
|
702
|
+
"listIdentityMappingsAsync"
|
703
|
+
]
|
704
|
+
},
|
705
|
+
"ListIdentityMappingStores": {
|
706
|
+
"methods": [
|
707
|
+
"listIdentityMappingStores",
|
708
|
+
"listIdentityMappingStoresStream",
|
709
|
+
"listIdentityMappingStoresAsync"
|
710
|
+
]
|
711
|
+
}
|
712
|
+
}
|
713
|
+
}
|
714
|
+
}
|
715
|
+
},
|
570
716
|
"ProjectService": {
|
571
717
|
"clients": {
|
572
718
|
"grpc": {
|
@@ -1032,6 +1178,44 @@
|
|
1032
1178
|
}
|
1033
1179
|
}
|
1034
1180
|
}
|
1181
|
+
},
|
1182
|
+
"UserLicenseService": {
|
1183
|
+
"clients": {
|
1184
|
+
"grpc": {
|
1185
|
+
"libraryClient": "UserLicenseServiceClient",
|
1186
|
+
"rpcs": {
|
1187
|
+
"BatchUpdateUserLicenses": {
|
1188
|
+
"methods": [
|
1189
|
+
"batchUpdateUserLicenses"
|
1190
|
+
]
|
1191
|
+
},
|
1192
|
+
"ListUserLicenses": {
|
1193
|
+
"methods": [
|
1194
|
+
"listUserLicenses",
|
1195
|
+
"listUserLicensesStream",
|
1196
|
+
"listUserLicensesAsync"
|
1197
|
+
]
|
1198
|
+
}
|
1199
|
+
}
|
1200
|
+
},
|
1201
|
+
"grpc-fallback": {
|
1202
|
+
"libraryClient": "UserLicenseServiceClient",
|
1203
|
+
"rpcs": {
|
1204
|
+
"BatchUpdateUserLicenses": {
|
1205
|
+
"methods": [
|
1206
|
+
"batchUpdateUserLicenses"
|
1207
|
+
]
|
1208
|
+
},
|
1209
|
+
"ListUserLicenses": {
|
1210
|
+
"methods": [
|
1211
|
+
"listUserLicenses",
|
1212
|
+
"listUserLicensesStream",
|
1213
|
+
"listUserLicensesAsync"
|
1214
|
+
]
|
1215
|
+
}
|
1216
|
+
}
|
1217
|
+
}
|
1218
|
+
}
|
1035
1219
|
}
|
1036
1220
|
}
|
1037
1221
|
}
|
@@ -363,6 +363,39 @@ export declare class GroundedGenerationServiceClient {
|
|
363
363
|
* @returns {string} A string representing the grounding_config.
|
364
364
|
*/
|
365
365
|
matchGroundingConfigFromGroundingConfigName(groundingConfigName: string): string | number;
|
366
|
+
/**
|
367
|
+
* Return a fully-qualified identityMappingStore resource name string.
|
368
|
+
*
|
369
|
+
* @param {string} project
|
370
|
+
* @param {string} location
|
371
|
+
* @param {string} identity_mapping_store
|
372
|
+
* @returns {string} Resource name string.
|
373
|
+
*/
|
374
|
+
identityMappingStorePath(project: string, location: string, identityMappingStore: string): string;
|
375
|
+
/**
|
376
|
+
* Parse the project from IdentityMappingStore resource.
|
377
|
+
*
|
378
|
+
* @param {string} identityMappingStoreName
|
379
|
+
* A fully-qualified path representing IdentityMappingStore resource.
|
380
|
+
* @returns {string} A string representing the project.
|
381
|
+
*/
|
382
|
+
matchProjectFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
|
383
|
+
/**
|
384
|
+
* Parse the location from IdentityMappingStore resource.
|
385
|
+
*
|
386
|
+
* @param {string} identityMappingStoreName
|
387
|
+
* A fully-qualified path representing IdentityMappingStore resource.
|
388
|
+
* @returns {string} A string representing the location.
|
389
|
+
*/
|
390
|
+
matchLocationFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
|
391
|
+
/**
|
392
|
+
* Parse the identity_mapping_store from IdentityMappingStore resource.
|
393
|
+
*
|
394
|
+
* @param {string} identityMappingStoreName
|
395
|
+
* A fully-qualified path representing IdentityMappingStore resource.
|
396
|
+
* @returns {string} A string representing the identity_mapping_store.
|
397
|
+
*/
|
398
|
+
matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
|
366
399
|
/**
|
367
400
|
* Return a fully-qualified location resource name string.
|
368
401
|
*
|
@@ -402,6 +435,63 @@ export declare class GroundedGenerationServiceClient {
|
|
402
435
|
* @returns {string} A string representing the project.
|
403
436
|
*/
|
404
437
|
matchProjectFromProjectName(projectName: string): string | number;
|
438
|
+
/**
|
439
|
+
* Return a fully-qualified projectLocationCmekConfig resource name string.
|
440
|
+
*
|
441
|
+
* @param {string} project
|
442
|
+
* @param {string} location
|
443
|
+
* @returns {string} Resource name string.
|
444
|
+
*/
|
445
|
+
projectLocationCmekConfigPath(project: string, location: string): string;
|
446
|
+
/**
|
447
|
+
* Parse the project from ProjectLocationCmekConfig resource.
|
448
|
+
*
|
449
|
+
* @param {string} projectLocationCmekConfigName
|
450
|
+
* A fully-qualified path representing project_location_cmekConfig resource.
|
451
|
+
* @returns {string} A string representing the project.
|
452
|
+
*/
|
453
|
+
matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
|
454
|
+
/**
|
455
|
+
* Parse the location from ProjectLocationCmekConfig resource.
|
456
|
+
*
|
457
|
+
* @param {string} projectLocationCmekConfigName
|
458
|
+
* A fully-qualified path representing project_location_cmekConfig resource.
|
459
|
+
* @returns {string} A string representing the location.
|
460
|
+
*/
|
461
|
+
matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
|
462
|
+
/**
|
463
|
+
* Return a fully-qualified projectLocationCmekConfigs resource name string.
|
464
|
+
*
|
465
|
+
* @param {string} project
|
466
|
+
* @param {string} location
|
467
|
+
* @param {string} cmek_config
|
468
|
+
* @returns {string} Resource name string.
|
469
|
+
*/
|
470
|
+
projectLocationCmekConfigsPath(project: string, location: string, cmekConfig: string): string;
|
471
|
+
/**
|
472
|
+
* Parse the project from ProjectLocationCmekConfigs resource.
|
473
|
+
*
|
474
|
+
* @param {string} projectLocationCmekConfigsName
|
475
|
+
* A fully-qualified path representing project_location_cmekConfigs resource.
|
476
|
+
* @returns {string} A string representing the project.
|
477
|
+
*/
|
478
|
+
matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
|
479
|
+
/**
|
480
|
+
* Parse the location from ProjectLocationCmekConfigs resource.
|
481
|
+
*
|
482
|
+
* @param {string} projectLocationCmekConfigsName
|
483
|
+
* A fully-qualified path representing project_location_cmekConfigs resource.
|
484
|
+
* @returns {string} A string representing the location.
|
485
|
+
*/
|
486
|
+
matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
|
487
|
+
/**
|
488
|
+
* Parse the cmek_config from ProjectLocationCmekConfigs resource.
|
489
|
+
*
|
490
|
+
* @param {string} projectLocationCmekConfigsName
|
491
|
+
* A fully-qualified path representing project_location_cmekConfigs resource.
|
492
|
+
* @returns {string} A string representing the cmek_config.
|
493
|
+
*/
|
494
|
+
matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
|
405
495
|
/**
|
406
496
|
* Return a fully-qualified projectLocationCollectionDataStore resource name string.
|
407
497
|
*
|
@@ -165,8 +165,11 @@ class GroundedGenerationServiceClient {
|
|
165
165
|
this.pathTemplates = {
|
166
166
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
167
167
|
groundingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/groundingConfigs/{grounding_config}'),
|
168
|
+
identityMappingStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}'),
|
168
169
|
locationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}'),
|
169
170
|
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
|
171
|
+
projectLocationCmekConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfig'),
|
172
|
+
projectLocationCmekConfigsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfigs/{cmek_config}'),
|
170
173
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
171
174
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
172
175
|
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
@@ -352,6 +355,12 @@ class GroundedGenerationServiceClient {
|
|
352
355
|
?.then(([response, options, rawResponse]) => {
|
353
356
|
this._log.info('generateGroundedContent response %j', response);
|
354
357
|
return [response, options, rawResponse];
|
358
|
+
}).catch((error) => {
|
359
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
360
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
361
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
362
|
+
}
|
363
|
+
throw error;
|
355
364
|
});
|
356
365
|
}
|
357
366
|
checkGrounding(request, optionsOrCallback, callback) {
|
@@ -382,6 +391,12 @@ class GroundedGenerationServiceClient {
|
|
382
391
|
?.then(([response, options, rawResponse]) => {
|
383
392
|
this._log.info('checkGrounding response %j', response);
|
384
393
|
return [response, options, rawResponse];
|
394
|
+
}).catch((error) => {
|
395
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
396
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
397
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
398
|
+
}
|
399
|
+
throw error;
|
385
400
|
});
|
386
401
|
}
|
387
402
|
/**
|
@@ -563,6 +578,51 @@ class GroundedGenerationServiceClient {
|
|
563
578
|
matchGroundingConfigFromGroundingConfigName(groundingConfigName) {
|
564
579
|
return this.pathTemplates.groundingConfigPathTemplate.match(groundingConfigName).grounding_config;
|
565
580
|
}
|
581
|
+
/**
|
582
|
+
* Return a fully-qualified identityMappingStore resource name string.
|
583
|
+
*
|
584
|
+
* @param {string} project
|
585
|
+
* @param {string} location
|
586
|
+
* @param {string} identity_mapping_store
|
587
|
+
* @returns {string} Resource name string.
|
588
|
+
*/
|
589
|
+
identityMappingStorePath(project, location, identityMappingStore) {
|
590
|
+
return this.pathTemplates.identityMappingStorePathTemplate.render({
|
591
|
+
project: project,
|
592
|
+
location: location,
|
593
|
+
identity_mapping_store: identityMappingStore,
|
594
|
+
});
|
595
|
+
}
|
596
|
+
/**
|
597
|
+
* Parse the project from IdentityMappingStore resource.
|
598
|
+
*
|
599
|
+
* @param {string} identityMappingStoreName
|
600
|
+
* A fully-qualified path representing IdentityMappingStore resource.
|
601
|
+
* @returns {string} A string representing the project.
|
602
|
+
*/
|
603
|
+
matchProjectFromIdentityMappingStoreName(identityMappingStoreName) {
|
604
|
+
return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).project;
|
605
|
+
}
|
606
|
+
/**
|
607
|
+
* Parse the location from IdentityMappingStore resource.
|
608
|
+
*
|
609
|
+
* @param {string} identityMappingStoreName
|
610
|
+
* A fully-qualified path representing IdentityMappingStore resource.
|
611
|
+
* @returns {string} A string representing the location.
|
612
|
+
*/
|
613
|
+
matchLocationFromIdentityMappingStoreName(identityMappingStoreName) {
|
614
|
+
return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).location;
|
615
|
+
}
|
616
|
+
/**
|
617
|
+
* Parse the identity_mapping_store from IdentityMappingStore resource.
|
618
|
+
*
|
619
|
+
* @param {string} identityMappingStoreName
|
620
|
+
* A fully-qualified path representing IdentityMappingStore resource.
|
621
|
+
* @returns {string} A string representing the identity_mapping_store.
|
622
|
+
*/
|
623
|
+
matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName) {
|
624
|
+
return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).identity_mapping_store;
|
625
|
+
}
|
566
626
|
/**
|
567
627
|
* Return a fully-qualified location resource name string.
|
568
628
|
*
|
@@ -617,6 +677,84 @@ class GroundedGenerationServiceClient {
|
|
617
677
|
matchProjectFromProjectName(projectName) {
|
618
678
|
return this.pathTemplates.projectPathTemplate.match(projectName).project;
|
619
679
|
}
|
680
|
+
/**
|
681
|
+
* Return a fully-qualified projectLocationCmekConfig resource name string.
|
682
|
+
*
|
683
|
+
* @param {string} project
|
684
|
+
* @param {string} location
|
685
|
+
* @returns {string} Resource name string.
|
686
|
+
*/
|
687
|
+
projectLocationCmekConfigPath(project, location) {
|
688
|
+
return this.pathTemplates.projectLocationCmekConfigPathTemplate.render({
|
689
|
+
project: project,
|
690
|
+
location: location,
|
691
|
+
});
|
692
|
+
}
|
693
|
+
/**
|
694
|
+
* Parse the project from ProjectLocationCmekConfig resource.
|
695
|
+
*
|
696
|
+
* @param {string} projectLocationCmekConfigName
|
697
|
+
* A fully-qualified path representing project_location_cmekConfig resource.
|
698
|
+
* @returns {string} A string representing the project.
|
699
|
+
*/
|
700
|
+
matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
|
701
|
+
return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).project;
|
702
|
+
}
|
703
|
+
/**
|
704
|
+
* Parse the location from ProjectLocationCmekConfig resource.
|
705
|
+
*
|
706
|
+
* @param {string} projectLocationCmekConfigName
|
707
|
+
* A fully-qualified path representing project_location_cmekConfig resource.
|
708
|
+
* @returns {string} A string representing the location.
|
709
|
+
*/
|
710
|
+
matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
|
711
|
+
return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).location;
|
712
|
+
}
|
713
|
+
/**
|
714
|
+
* Return a fully-qualified projectLocationCmekConfigs resource name string.
|
715
|
+
*
|
716
|
+
* @param {string} project
|
717
|
+
* @param {string} location
|
718
|
+
* @param {string} cmek_config
|
719
|
+
* @returns {string} Resource name string.
|
720
|
+
*/
|
721
|
+
projectLocationCmekConfigsPath(project, location, cmekConfig) {
|
722
|
+
return this.pathTemplates.projectLocationCmekConfigsPathTemplate.render({
|
723
|
+
project: project,
|
724
|
+
location: location,
|
725
|
+
cmek_config: cmekConfig,
|
726
|
+
});
|
727
|
+
}
|
728
|
+
/**
|
729
|
+
* Parse the project from ProjectLocationCmekConfigs resource.
|
730
|
+
*
|
731
|
+
* @param {string} projectLocationCmekConfigsName
|
732
|
+
* A fully-qualified path representing project_location_cmekConfigs resource.
|
733
|
+
* @returns {string} A string representing the project.
|
734
|
+
*/
|
735
|
+
matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
|
736
|
+
return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).project;
|
737
|
+
}
|
738
|
+
/**
|
739
|
+
* Parse the location from ProjectLocationCmekConfigs resource.
|
740
|
+
*
|
741
|
+
* @param {string} projectLocationCmekConfigsName
|
742
|
+
* A fully-qualified path representing project_location_cmekConfigs resource.
|
743
|
+
* @returns {string} A string representing the location.
|
744
|
+
*/
|
745
|
+
matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
|
746
|
+
return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).location;
|
747
|
+
}
|
748
|
+
/**
|
749
|
+
* Parse the cmek_config from ProjectLocationCmekConfigs resource.
|
750
|
+
*
|
751
|
+
* @param {string} projectLocationCmekConfigsName
|
752
|
+
* A fully-qualified path representing project_location_cmekConfigs resource.
|
753
|
+
* @returns {string} A string representing the cmek_config.
|
754
|
+
*/
|
755
|
+
matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
|
756
|
+
return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).cmek_config;
|
757
|
+
}
|
620
758
|
/**
|
621
759
|
* Return a fully-qualified projectLocationCollectionDataStore resource name string.
|
622
760
|
*
|
@@ -1,6 +1,7 @@
|
|
1
1
|
[
|
2
2
|
"../../protos/google/cloud/discoveryengine/v1/answer.proto",
|
3
3
|
"../../protos/google/cloud/discoveryengine/v1/chunk.proto",
|
4
|
+
"../../protos/google/cloud/discoveryengine/v1/cmek_config_service.proto",
|
4
5
|
"../../protos/google/cloud/discoveryengine/v1/common.proto",
|
5
6
|
"../../protos/google/cloud/discoveryengine/v1/completion.proto",
|
6
7
|
"../../protos/google/cloud/discoveryengine/v1/completion_service.proto",
|
@@ -18,6 +19,8 @@
|
|
18
19
|
"../../protos/google/cloud/discoveryengine/v1/engine_service.proto",
|
19
20
|
"../../protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto",
|
20
21
|
"../../protos/google/cloud/discoveryengine/v1/grounding.proto",
|
22
|
+
"../../protos/google/cloud/discoveryengine/v1/identity_mapping_store.proto",
|
23
|
+
"../../protos/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto",
|
21
24
|
"../../protos/google/cloud/discoveryengine/v1/import_config.proto",
|
22
25
|
"../../protos/google/cloud/discoveryengine/v1/project.proto",
|
23
26
|
"../../protos/google/cloud/discoveryengine/v1/project_service.proto",
|
@@ -35,5 +38,7 @@
|
|
35
38
|
"../../protos/google/cloud/discoveryengine/v1/site_search_engine.proto",
|
36
39
|
"../../protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto",
|
37
40
|
"../../protos/google/cloud/discoveryengine/v1/user_event.proto",
|
38
|
-
"../../protos/google/cloud/discoveryengine/v1/user_event_service.proto"
|
41
|
+
"../../protos/google/cloud/discoveryengine/v1/user_event_service.proto",
|
42
|
+
"../../protos/google/cloud/discoveryengine/v1/user_license.proto",
|
43
|
+
"../../protos/google/cloud/discoveryengine/v1/user_license_service.proto"
|
39
44
|
]
|