@google-cloud/discoveryengine 1.10.0 → 1.11.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.
Files changed (119) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +30 -0
  3. package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation.proto +232 -0
  4. package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation_service.proto +252 -0
  5. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +83 -0
  6. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query.proto +86 -0
  7. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_service.proto +264 -0
  8. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set.proto +64 -0
  9. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto +258 -0
  10. package/build/protos/google/cloud/discoveryengine/v1beta/chunk.proto +119 -0
  11. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +0 -5
  12. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +10 -2
  13. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
  14. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +37 -2
  15. package/build/protos/google/cloud/discoveryengine/v1beta/evaluation.proto +231 -0
  16. package/build/protos/google/cloud/discoveryengine/v1beta/evaluation_service.proto +252 -0
  17. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +83 -0
  18. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query.proto +86 -0
  19. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_service.proto +264 -0
  20. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set.proto +64 -0
  21. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto +256 -0
  22. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +67 -8
  23. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +11 -5
  24. package/build/protos/protos.d.ts +28997 -20222
  25. package/build/protos/protos.js +74749 -54453
  26. package/build/protos/protos.json +6933 -4764
  27. package/build/src/v1alpha/acl_config_service_client.d.ts +108 -0
  28. package/build/src/v1alpha/acl_config_service_client.js +157 -0
  29. package/build/src/v1alpha/chunk_service_client.d.ts +108 -0
  30. package/build/src/v1alpha/chunk_service_client.js +157 -0
  31. package/build/src/v1alpha/completion_service_client.d.ts +108 -0
  32. package/build/src/v1alpha/completion_service_client.js +157 -0
  33. package/build/src/v1alpha/control_service_client.d.ts +108 -0
  34. package/build/src/v1alpha/control_service_client.js +157 -0
  35. package/build/src/v1alpha/conversational_search_service_client.d.ts +108 -0
  36. package/build/src/v1alpha/conversational_search_service_client.js +157 -0
  37. package/build/src/v1alpha/data_store_service_client.d.ts +108 -0
  38. package/build/src/v1alpha/data_store_service_client.js +157 -0
  39. package/build/src/v1alpha/document_service_client.d.ts +108 -0
  40. package/build/src/v1alpha/document_service_client.js +157 -0
  41. package/build/src/v1alpha/engine_service_client.d.ts +108 -0
  42. package/build/src/v1alpha/engine_service_client.js +157 -0
  43. package/build/src/v1alpha/estimate_billing_service_client.d.ts +108 -0
  44. package/build/src/v1alpha/estimate_billing_service_client.js +157 -0
  45. package/build/src/v1alpha/evaluation_service_client.d.ts +2349 -0
  46. package/build/src/v1alpha/evaluation_service_client.js +3288 -0
  47. package/build/src/v1alpha/evaluation_service_client_config.json +58 -0
  48. package/build/src/v1alpha/grounded_generation_service_client.d.ts +108 -0
  49. package/build/src/v1alpha/grounded_generation_service_client.js +157 -0
  50. package/build/src/v1alpha/index.d.ts +3 -0
  51. package/build/src/v1alpha/index.js +7 -1
  52. package/build/src/v1alpha/project_service_client.d.ts +108 -0
  53. package/build/src/v1alpha/project_service_client.js +157 -0
  54. package/build/src/v1alpha/rank_service_client.d.ts +108 -0
  55. package/build/src/v1alpha/rank_service_client.js +157 -0
  56. package/build/src/v1alpha/recommendation_service_client.d.ts +108 -0
  57. package/build/src/v1alpha/recommendation_service_client.js +157 -0
  58. package/build/src/v1alpha/sample_query_service_client.d.ts +2317 -0
  59. package/build/src/v1alpha/sample_query_service_client.js +3186 -0
  60. package/build/src/v1alpha/sample_query_service_client_config.json +68 -0
  61. package/build/src/v1alpha/sample_query_set_service_client.d.ts +2176 -0
  62. package/build/src/v1alpha/sample_query_set_service_client.js +2931 -0
  63. package/build/src/v1alpha/sample_query_set_service_client_config.json +63 -0
  64. package/build/src/v1alpha/schema_service_client.d.ts +108 -0
  65. package/build/src/v1alpha/schema_service_client.js +157 -0
  66. package/build/src/v1alpha/search_service_client.d.ts +108 -0
  67. package/build/src/v1alpha/search_service_client.js +157 -0
  68. package/build/src/v1alpha/search_tuning_service_client.d.ts +108 -0
  69. package/build/src/v1alpha/search_tuning_service_client.js +157 -0
  70. package/build/src/v1alpha/serving_config_service_client.d.ts +108 -0
  71. package/build/src/v1alpha/serving_config_service_client.js +157 -0
  72. package/build/src/v1alpha/site_search_engine_service_client.d.ts +108 -0
  73. package/build/src/v1alpha/site_search_engine_service_client.js +157 -0
  74. package/build/src/v1alpha/user_event_service_client.d.ts +108 -0
  75. package/build/src/v1alpha/user_event_service_client.js +157 -0
  76. package/build/src/v1beta/completion_service_client.d.ts +237 -0
  77. package/build/src/v1beta/completion_service_client.js +339 -0
  78. package/build/src/v1beta/control_service_client.d.ts +237 -0
  79. package/build/src/v1beta/control_service_client.js +333 -0
  80. package/build/src/v1beta/conversational_search_service_client.d.ts +237 -0
  81. package/build/src/v1beta/conversational_search_service_client.js +333 -0
  82. package/build/src/v1beta/data_store_service_client.d.ts +237 -0
  83. package/build/src/v1beta/data_store_service_client.js +339 -0
  84. package/build/src/v1beta/document_service_client.d.ts +237 -0
  85. package/build/src/v1beta/document_service_client.js +339 -0
  86. package/build/src/v1beta/engine_service_client.d.ts +237 -0
  87. package/build/src/v1beta/engine_service_client.js +339 -0
  88. package/build/src/v1beta/evaluation_service_client.d.ts +2325 -0
  89. package/build/src/v1beta/evaluation_service_client.js +3252 -0
  90. package/build/src/v1beta/evaluation_service_client_config.json +58 -0
  91. package/build/src/v1beta/grounded_generation_service_client.d.ts +237 -0
  92. package/build/src/v1beta/grounded_generation_service_client.js +333 -0
  93. package/build/src/v1beta/index.d.ts +3 -0
  94. package/build/src/v1beta/index.js +7 -1
  95. package/build/src/v1beta/project_service_client.d.ts +237 -0
  96. package/build/src/v1beta/project_service_client.js +339 -0
  97. package/build/src/v1beta/rank_service_client.d.ts +237 -0
  98. package/build/src/v1beta/rank_service_client.js +333 -0
  99. package/build/src/v1beta/recommendation_service_client.d.ts +237 -0
  100. package/build/src/v1beta/recommendation_service_client.js +333 -0
  101. package/build/src/v1beta/sample_query_service_client.d.ts +2293 -0
  102. package/build/src/v1beta/sample_query_service_client.js +3150 -0
  103. package/build/src/v1beta/sample_query_service_client_config.json +68 -0
  104. package/build/src/v1beta/sample_query_set_service_client.d.ts +2150 -0
  105. package/build/src/v1beta/sample_query_set_service_client.js +2895 -0
  106. package/build/src/v1beta/sample_query_set_service_client_config.json +63 -0
  107. package/build/src/v1beta/schema_service_client.d.ts +237 -0
  108. package/build/src/v1beta/schema_service_client.js +339 -0
  109. package/build/src/v1beta/search_service_client.d.ts +267 -12
  110. package/build/src/v1beta/search_service_client.js +353 -8
  111. package/build/src/v1beta/search_tuning_service_client.d.ts +237 -0
  112. package/build/src/v1beta/search_tuning_service_client.js +339 -0
  113. package/build/src/v1beta/serving_config_service_client.d.ts +237 -0
  114. package/build/src/v1beta/serving_config_service_client.js +333 -0
  115. package/build/src/v1beta/site_search_engine_service_client.d.ts +237 -0
  116. package/build/src/v1beta/site_search_engine_service_client.js +339 -0
  117. package/build/src/v1beta/user_event_service_client.d.ts +237 -0
  118. package/build/src/v1beta/user_event_service_client.js +339 -0
  119. package/package.json +1 -1
@@ -357,6 +357,39 @@ export declare class ServingConfigServiceClient {
357
357
  * @returns {string} A string representing the engine.
358
358
  */
359
359
  matchEngineFromEngineName(engineName: string): string | number;
360
+ /**
361
+ * Return a fully-qualified evaluation resource name string.
362
+ *
363
+ * @param {string} project
364
+ * @param {string} location
365
+ * @param {string} evaluation
366
+ * @returns {string} Resource name string.
367
+ */
368
+ evaluationPath(project: string, location: string, evaluation: string): string;
369
+ /**
370
+ * Parse the project from Evaluation resource.
371
+ *
372
+ * @param {string} evaluationName
373
+ * A fully-qualified path representing Evaluation resource.
374
+ * @returns {string} A string representing the project.
375
+ */
376
+ matchProjectFromEvaluationName(evaluationName: string): string | number;
377
+ /**
378
+ * Parse the location from Evaluation resource.
379
+ *
380
+ * @param {string} evaluationName
381
+ * A fully-qualified path representing Evaluation resource.
382
+ * @returns {string} A string representing the location.
383
+ */
384
+ matchLocationFromEvaluationName(evaluationName: string): string | number;
385
+ /**
386
+ * Parse the evaluation from Evaluation resource.
387
+ *
388
+ * @param {string} evaluationName
389
+ * A fully-qualified path representing Evaluation resource.
390
+ * @returns {string} A string representing the evaluation.
391
+ */
392
+ matchEvaluationFromEvaluationName(evaluationName: string): string | number;
360
393
  /**
361
394
  * Return a fully-qualified location resource name string.
362
395
  *
@@ -498,6 +531,75 @@ export declare class ServingConfigServiceClient {
498
531
  * @returns {string} A string representing the document.
499
532
  */
500
533
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
534
+ /**
535
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
536
+ *
537
+ * @param {string} project
538
+ * @param {string} location
539
+ * @param {string} collection
540
+ * @param {string} data_store
541
+ * @param {string} branch
542
+ * @param {string} document
543
+ * @param {string} chunk
544
+ * @returns {string} Resource name string.
545
+ */
546
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project: string, location: string, collection: string, dataStore: string, branch: string, document: string, chunk: string): string;
547
+ /**
548
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
549
+ *
550
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
551
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
552
+ * @returns {string} A string representing the project.
553
+ */
554
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
555
+ /**
556
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
557
+ *
558
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
559
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
560
+ * @returns {string} A string representing the location.
561
+ */
562
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
563
+ /**
564
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
565
+ *
566
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
567
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
568
+ * @returns {string} A string representing the collection.
569
+ */
570
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
571
+ /**
572
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
573
+ *
574
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
575
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
576
+ * @returns {string} A string representing the data_store.
577
+ */
578
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
579
+ /**
580
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
581
+ *
582
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
583
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
584
+ * @returns {string} A string representing the branch.
585
+ */
586
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
587
+ /**
588
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
589
+ *
590
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
591
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
592
+ * @returns {string} A string representing the document.
593
+ */
594
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
595
+ /**
596
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
597
+ *
598
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
599
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
600
+ * @returns {string} A string representing the chunk.
601
+ */
602
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
501
603
  /**
502
604
  * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
503
605
  *
@@ -1347,6 +1449,66 @@ export declare class ServingConfigServiceClient {
1347
1449
  * @returns {string} A string representing the document.
1348
1450
  */
1349
1451
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
1452
+ /**
1453
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
1454
+ *
1455
+ * @param {string} project
1456
+ * @param {string} location
1457
+ * @param {string} data_store
1458
+ * @param {string} branch
1459
+ * @param {string} document
1460
+ * @param {string} chunk
1461
+ * @returns {string} Resource name string.
1462
+ */
1463
+ projectLocationDataStoreBranchDocumentChunkPath(project: string, location: string, dataStore: string, branch: string, document: string, chunk: string): string;
1464
+ /**
1465
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
1466
+ *
1467
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1468
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1469
+ * @returns {string} A string representing the project.
1470
+ */
1471
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1472
+ /**
1473
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
1474
+ *
1475
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1476
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1477
+ * @returns {string} A string representing the location.
1478
+ */
1479
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1480
+ /**
1481
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
1482
+ *
1483
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1484
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1485
+ * @returns {string} A string representing the data_store.
1486
+ */
1487
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1488
+ /**
1489
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
1490
+ *
1491
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1492
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1493
+ * @returns {string} A string representing the branch.
1494
+ */
1495
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1496
+ /**
1497
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
1498
+ *
1499
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1500
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1501
+ * @returns {string} A string representing the document.
1502
+ */
1503
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1504
+ /**
1505
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
1506
+ *
1507
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1508
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1509
+ * @returns {string} A string representing the chunk.
1510
+ */
1511
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1350
1512
  /**
1351
1513
  * Return a fully-qualified projectLocationDataStoreControl resource name string.
1352
1514
  *
@@ -1758,6 +1920,81 @@ export declare class ServingConfigServiceClient {
1758
1920
  * @returns {string} A string representing the target_site.
1759
1921
  */
1760
1922
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
1923
+ /**
1924
+ * Return a fully-qualified sampleQuery resource name string.
1925
+ *
1926
+ * @param {string} project
1927
+ * @param {string} location
1928
+ * @param {string} sample_query_set
1929
+ * @param {string} sample_query
1930
+ * @returns {string} Resource name string.
1931
+ */
1932
+ sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
1933
+ /**
1934
+ * Parse the project from SampleQuery resource.
1935
+ *
1936
+ * @param {string} sampleQueryName
1937
+ * A fully-qualified path representing SampleQuery resource.
1938
+ * @returns {string} A string representing the project.
1939
+ */
1940
+ matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
1941
+ /**
1942
+ * Parse the location from SampleQuery resource.
1943
+ *
1944
+ * @param {string} sampleQueryName
1945
+ * A fully-qualified path representing SampleQuery resource.
1946
+ * @returns {string} A string representing the location.
1947
+ */
1948
+ matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
1949
+ /**
1950
+ * Parse the sample_query_set from SampleQuery resource.
1951
+ *
1952
+ * @param {string} sampleQueryName
1953
+ * A fully-qualified path representing SampleQuery resource.
1954
+ * @returns {string} A string representing the sample_query_set.
1955
+ */
1956
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
1957
+ /**
1958
+ * Parse the sample_query from SampleQuery resource.
1959
+ *
1960
+ * @param {string} sampleQueryName
1961
+ * A fully-qualified path representing SampleQuery resource.
1962
+ * @returns {string} A string representing the sample_query.
1963
+ */
1964
+ matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
1965
+ /**
1966
+ * Return a fully-qualified sampleQuerySet resource name string.
1967
+ *
1968
+ * @param {string} project
1969
+ * @param {string} location
1970
+ * @param {string} sample_query_set
1971
+ * @returns {string} Resource name string.
1972
+ */
1973
+ sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
1974
+ /**
1975
+ * Parse the project from SampleQuerySet resource.
1976
+ *
1977
+ * @param {string} sampleQuerySetName
1978
+ * A fully-qualified path representing SampleQuerySet resource.
1979
+ * @returns {string} A string representing the project.
1980
+ */
1981
+ matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
1982
+ /**
1983
+ * Parse the location from SampleQuerySet resource.
1984
+ *
1985
+ * @param {string} sampleQuerySetName
1986
+ * A fully-qualified path representing SampleQuerySet resource.
1987
+ * @returns {string} A string representing the location.
1988
+ */
1989
+ matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
1990
+ /**
1991
+ * Parse the sample_query_set from SampleQuerySet resource.
1992
+ *
1993
+ * @param {string} sampleQuerySetName
1994
+ * A fully-qualified path representing SampleQuerySet resource.
1995
+ * @returns {string} A string representing the sample_query_set.
1996
+ */
1997
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
1761
1998
  /**
1762
1999
  * Terminate the gRPC channel and close the client.
1763
2000
  *
@@ -151,10 +151,12 @@ class ServingConfigServiceClient {
151
151
  // Create useful helper objects for these.
152
152
  this.pathTemplates = {
153
153
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
154
+ evaluationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/evaluations/{evaluation}'),
154
155
  locationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}'),
155
156
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
156
157
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
157
158
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
159
+ projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
158
160
  projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
159
161
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
160
162
  projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
@@ -172,6 +174,7 @@ class ServingConfigServiceClient {
172
174
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
173
175
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
174
176
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
177
+ projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
175
178
  projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
176
179
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
177
180
  projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
@@ -182,6 +185,8 @@ class ServingConfigServiceClient {
182
185
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
183
186
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
184
187
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
188
+ sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
189
+ sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
185
190
  };
186
191
  // Some of the methods on this service return "paged" results,
187
192
  // (e.g. 50 results at a time, with tokens to get subsequent
@@ -565,6 +570,54 @@ class ServingConfigServiceClient {
565
570
  matchEngineFromEngineName(engineName) {
566
571
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
567
572
  }
573
+ /**
574
+ * Return a fully-qualified evaluation resource name string.
575
+ *
576
+ * @param {string} project
577
+ * @param {string} location
578
+ * @param {string} evaluation
579
+ * @returns {string} Resource name string.
580
+ */
581
+ evaluationPath(project, location, evaluation) {
582
+ return this.pathTemplates.evaluationPathTemplate.render({
583
+ project: project,
584
+ location: location,
585
+ evaluation: evaluation,
586
+ });
587
+ }
588
+ /**
589
+ * Parse the project from Evaluation resource.
590
+ *
591
+ * @param {string} evaluationName
592
+ * A fully-qualified path representing Evaluation resource.
593
+ * @returns {string} A string representing the project.
594
+ */
595
+ matchProjectFromEvaluationName(evaluationName) {
596
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
597
+ .project;
598
+ }
599
+ /**
600
+ * Parse the location from Evaluation resource.
601
+ *
602
+ * @param {string} evaluationName
603
+ * A fully-qualified path representing Evaluation resource.
604
+ * @returns {string} A string representing the location.
605
+ */
606
+ matchLocationFromEvaluationName(evaluationName) {
607
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
608
+ .location;
609
+ }
610
+ /**
611
+ * Parse the evaluation from Evaluation resource.
612
+ *
613
+ * @param {string} evaluationName
614
+ * A fully-qualified path representing Evaluation resource.
615
+ * @returns {string} A string representing the evaluation.
616
+ */
617
+ matchEvaluationFromEvaluationName(evaluationName) {
618
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
619
+ .evaluation;
620
+ }
568
621
  /**
569
622
  * Return a fully-qualified location resource name string.
570
623
  *
@@ -757,6 +810,99 @@ class ServingConfigServiceClient {
757
810
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
758
811
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
759
812
  }
813
+ /**
814
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
815
+ *
816
+ * @param {string} project
817
+ * @param {string} location
818
+ * @param {string} collection
819
+ * @param {string} data_store
820
+ * @param {string} branch
821
+ * @param {string} document
822
+ * @param {string} chunk
823
+ * @returns {string} Resource name string.
824
+ */
825
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
826
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
827
+ project: project,
828
+ location: location,
829
+ collection: collection,
830
+ data_store: dataStore,
831
+ branch: branch,
832
+ document: document,
833
+ chunk: chunk,
834
+ });
835
+ }
836
+ /**
837
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
838
+ *
839
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
840
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
841
+ * @returns {string} A string representing the project.
842
+ */
843
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
844
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
845
+ }
846
+ /**
847
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
848
+ *
849
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
850
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
851
+ * @returns {string} A string representing the location.
852
+ */
853
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
854
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
855
+ }
856
+ /**
857
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
858
+ *
859
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
860
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
861
+ * @returns {string} A string representing the collection.
862
+ */
863
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
864
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
865
+ }
866
+ /**
867
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
868
+ *
869
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
870
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
871
+ * @returns {string} A string representing the data_store.
872
+ */
873
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
874
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
875
+ }
876
+ /**
877
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
878
+ *
879
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
880
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
881
+ * @returns {string} A string representing the branch.
882
+ */
883
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
884
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
885
+ }
886
+ /**
887
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
888
+ *
889
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
890
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
891
+ * @returns {string} A string representing the document.
892
+ */
893
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
894
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
895
+ }
896
+ /**
897
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
898
+ *
899
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
900
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
901
+ * @returns {string} A string representing the chunk.
902
+ */
903
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
904
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
905
+ }
760
906
  /**
761
907
  * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
762
908
  *
@@ -1906,6 +2052,87 @@ class ServingConfigServiceClient {
1906
2052
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1907
2053
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1908
2054
  }
2055
+ /**
2056
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
2057
+ *
2058
+ * @param {string} project
2059
+ * @param {string} location
2060
+ * @param {string} data_store
2061
+ * @param {string} branch
2062
+ * @param {string} document
2063
+ * @param {string} chunk
2064
+ * @returns {string} Resource name string.
2065
+ */
2066
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
2067
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
2068
+ project: project,
2069
+ location: location,
2070
+ data_store: dataStore,
2071
+ branch: branch,
2072
+ document: document,
2073
+ chunk: chunk,
2074
+ });
2075
+ }
2076
+ /**
2077
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
2078
+ *
2079
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2080
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2081
+ * @returns {string} A string representing the project.
2082
+ */
2083
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2084
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
2085
+ }
2086
+ /**
2087
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
2088
+ *
2089
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2090
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2091
+ * @returns {string} A string representing the location.
2092
+ */
2093
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2094
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
2095
+ }
2096
+ /**
2097
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
2098
+ *
2099
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2100
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2101
+ * @returns {string} A string representing the data_store.
2102
+ */
2103
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2104
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
2105
+ }
2106
+ /**
2107
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
2108
+ *
2109
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2110
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2111
+ * @returns {string} A string representing the branch.
2112
+ */
2113
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2114
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
2115
+ }
2116
+ /**
2117
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
2118
+ *
2119
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2120
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2121
+ * @returns {string} A string representing the document.
2122
+ */
2123
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2124
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
2125
+ }
2126
+ /**
2127
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
2128
+ *
2129
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2130
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2131
+ * @returns {string} A string representing the chunk.
2132
+ */
2133
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2134
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
2135
+ }
1909
2136
  /**
1910
2137
  * Return a fully-qualified projectLocationDataStoreControl resource name string.
1911
2138
  *
@@ -2464,6 +2691,112 @@ class ServingConfigServiceClient {
2464
2691
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2465
2692
  return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
2466
2693
  }
2694
+ /**
2695
+ * Return a fully-qualified sampleQuery resource name string.
2696
+ *
2697
+ * @param {string} project
2698
+ * @param {string} location
2699
+ * @param {string} sample_query_set
2700
+ * @param {string} sample_query
2701
+ * @returns {string} Resource name string.
2702
+ */
2703
+ sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
2704
+ return this.pathTemplates.sampleQueryPathTemplate.render({
2705
+ project: project,
2706
+ location: location,
2707
+ sample_query_set: sampleQuerySet,
2708
+ sample_query: sampleQuery,
2709
+ });
2710
+ }
2711
+ /**
2712
+ * Parse the project from SampleQuery resource.
2713
+ *
2714
+ * @param {string} sampleQueryName
2715
+ * A fully-qualified path representing SampleQuery resource.
2716
+ * @returns {string} A string representing the project.
2717
+ */
2718
+ matchProjectFromSampleQueryName(sampleQueryName) {
2719
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2720
+ .project;
2721
+ }
2722
+ /**
2723
+ * Parse the location from SampleQuery resource.
2724
+ *
2725
+ * @param {string} sampleQueryName
2726
+ * A fully-qualified path representing SampleQuery resource.
2727
+ * @returns {string} A string representing the location.
2728
+ */
2729
+ matchLocationFromSampleQueryName(sampleQueryName) {
2730
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2731
+ .location;
2732
+ }
2733
+ /**
2734
+ * Parse the sample_query_set from SampleQuery resource.
2735
+ *
2736
+ * @param {string} sampleQueryName
2737
+ * A fully-qualified path representing SampleQuery resource.
2738
+ * @returns {string} A string representing the sample_query_set.
2739
+ */
2740
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
2741
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2742
+ .sample_query_set;
2743
+ }
2744
+ /**
2745
+ * Parse the sample_query from SampleQuery resource.
2746
+ *
2747
+ * @param {string} sampleQueryName
2748
+ * A fully-qualified path representing SampleQuery resource.
2749
+ * @returns {string} A string representing the sample_query.
2750
+ */
2751
+ matchSampleQueryFromSampleQueryName(sampleQueryName) {
2752
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2753
+ .sample_query;
2754
+ }
2755
+ /**
2756
+ * Return a fully-qualified sampleQuerySet resource name string.
2757
+ *
2758
+ * @param {string} project
2759
+ * @param {string} location
2760
+ * @param {string} sample_query_set
2761
+ * @returns {string} Resource name string.
2762
+ */
2763
+ sampleQuerySetPath(project, location, sampleQuerySet) {
2764
+ return this.pathTemplates.sampleQuerySetPathTemplate.render({
2765
+ project: project,
2766
+ location: location,
2767
+ sample_query_set: sampleQuerySet,
2768
+ });
2769
+ }
2770
+ /**
2771
+ * Parse the project from SampleQuerySet resource.
2772
+ *
2773
+ * @param {string} sampleQuerySetName
2774
+ * A fully-qualified path representing SampleQuerySet resource.
2775
+ * @returns {string} A string representing the project.
2776
+ */
2777
+ matchProjectFromSampleQuerySetName(sampleQuerySetName) {
2778
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
2779
+ }
2780
+ /**
2781
+ * Parse the location from SampleQuerySet resource.
2782
+ *
2783
+ * @param {string} sampleQuerySetName
2784
+ * A fully-qualified path representing SampleQuerySet resource.
2785
+ * @returns {string} A string representing the location.
2786
+ */
2787
+ matchLocationFromSampleQuerySetName(sampleQuerySetName) {
2788
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
2789
+ }
2790
+ /**
2791
+ * Parse the sample_query_set from SampleQuerySet resource.
2792
+ *
2793
+ * @param {string} sampleQuerySetName
2794
+ * A fully-qualified path representing SampleQuerySet resource.
2795
+ * @returns {string} A string representing the sample_query_set.
2796
+ */
2797
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
2798
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
2799
+ }
2467
2800
  /**
2468
2801
  * Terminate the gRPC channel and close the client.
2469
2802
  *