@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.
Files changed (129) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +33 -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/answer.proto +14 -0
  11. package/build/protos/google/cloud/discoveryengine/v1beta/chunk.proto +119 -0
  12. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +0 -5
  13. package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +31 -0
  14. package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +38 -0
  15. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +29 -2
  16. package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +7 -1
  17. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +23 -0
  18. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +10 -0
  19. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
  20. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +37 -2
  21. package/build/protos/google/cloud/discoveryengine/v1beta/evaluation.proto +231 -0
  22. package/build/protos/google/cloud/discoveryengine/v1beta/evaluation_service.proto +252 -0
  23. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +191 -0
  24. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +111 -0
  25. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query.proto +86 -0
  26. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_service.proto +264 -0
  27. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set.proto +64 -0
  28. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto +256 -0
  29. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +370 -8
  30. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +11 -5
  31. package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +24 -0
  32. package/build/protos/protos.d.ts +32735 -21073
  33. package/build/protos/protos.js +80768 -53241
  34. package/build/protos/protos.json +5309 -2481
  35. package/build/src/v1alpha/acl_config_service_client.d.ts +108 -0
  36. package/build/src/v1alpha/acl_config_service_client.js +157 -0
  37. package/build/src/v1alpha/chunk_service_client.d.ts +108 -0
  38. package/build/src/v1alpha/chunk_service_client.js +157 -0
  39. package/build/src/v1alpha/completion_service_client.d.ts +108 -0
  40. package/build/src/v1alpha/completion_service_client.js +157 -0
  41. package/build/src/v1alpha/control_service_client.d.ts +108 -0
  42. package/build/src/v1alpha/control_service_client.js +157 -0
  43. package/build/src/v1alpha/conversational_search_service_client.d.ts +108 -0
  44. package/build/src/v1alpha/conversational_search_service_client.js +157 -0
  45. package/build/src/v1alpha/data_store_service_client.d.ts +108 -0
  46. package/build/src/v1alpha/data_store_service_client.js +157 -0
  47. package/build/src/v1alpha/document_service_client.d.ts +108 -0
  48. package/build/src/v1alpha/document_service_client.js +157 -0
  49. package/build/src/v1alpha/engine_service_client.d.ts +108 -0
  50. package/build/src/v1alpha/engine_service_client.js +157 -0
  51. package/build/src/v1alpha/estimate_billing_service_client.d.ts +108 -0
  52. package/build/src/v1alpha/estimate_billing_service_client.js +157 -0
  53. package/build/src/v1alpha/evaluation_service_client.d.ts +2349 -0
  54. package/build/src/v1alpha/evaluation_service_client.js +3288 -0
  55. package/build/src/v1alpha/evaluation_service_client_config.json +58 -0
  56. package/build/src/v1alpha/grounded_generation_service_client.d.ts +108 -0
  57. package/build/src/v1alpha/grounded_generation_service_client.js +157 -0
  58. package/build/src/v1alpha/index.d.ts +3 -0
  59. package/build/src/v1alpha/index.js +7 -1
  60. package/build/src/v1alpha/project_service_client.d.ts +108 -0
  61. package/build/src/v1alpha/project_service_client.js +157 -0
  62. package/build/src/v1alpha/rank_service_client.d.ts +108 -0
  63. package/build/src/v1alpha/rank_service_client.js +157 -0
  64. package/build/src/v1alpha/recommendation_service_client.d.ts +108 -0
  65. package/build/src/v1alpha/recommendation_service_client.js +157 -0
  66. package/build/src/v1alpha/sample_query_service_client.d.ts +2317 -0
  67. package/build/src/v1alpha/sample_query_service_client.js +3186 -0
  68. package/build/src/v1alpha/sample_query_service_client_config.json +68 -0
  69. package/build/src/v1alpha/sample_query_set_service_client.d.ts +2176 -0
  70. package/build/src/v1alpha/sample_query_set_service_client.js +2931 -0
  71. package/build/src/v1alpha/sample_query_set_service_client_config.json +63 -0
  72. package/build/src/v1alpha/schema_service_client.d.ts +108 -0
  73. package/build/src/v1alpha/schema_service_client.js +157 -0
  74. package/build/src/v1alpha/search_service_client.d.ts +108 -0
  75. package/build/src/v1alpha/search_service_client.js +157 -0
  76. package/build/src/v1alpha/search_tuning_service_client.d.ts +108 -0
  77. package/build/src/v1alpha/search_tuning_service_client.js +157 -0
  78. package/build/src/v1alpha/serving_config_service_client.d.ts +108 -0
  79. package/build/src/v1alpha/serving_config_service_client.js +157 -0
  80. package/build/src/v1alpha/site_search_engine_service_client.d.ts +108 -0
  81. package/build/src/v1alpha/site_search_engine_service_client.js +157 -0
  82. package/build/src/v1alpha/user_event_service_client.d.ts +108 -0
  83. package/build/src/v1alpha/user_event_service_client.js +157 -0
  84. package/build/src/v1beta/completion_service_client.d.ts +328 -0
  85. package/build/src/v1beta/completion_service_client.js +423 -0
  86. package/build/src/v1beta/completion_service_client_config.json +10 -0
  87. package/build/src/v1beta/control_service_client.d.ts +237 -0
  88. package/build/src/v1beta/control_service_client.js +333 -0
  89. package/build/src/v1beta/conversational_search_service_client.d.ts +255 -0
  90. package/build/src/v1beta/conversational_search_service_client.js +333 -0
  91. package/build/src/v1beta/data_store_service_client.d.ts +246 -0
  92. package/build/src/v1beta/data_store_service_client.js +339 -0
  93. package/build/src/v1beta/document_service_client.d.ts +239 -0
  94. package/build/src/v1beta/document_service_client.js +339 -0
  95. package/build/src/v1beta/engine_service_client.d.ts +237 -0
  96. package/build/src/v1beta/engine_service_client.js +339 -0
  97. package/build/src/v1beta/evaluation_service_client.d.ts +2325 -0
  98. package/build/src/v1beta/evaluation_service_client.js +3252 -0
  99. package/build/src/v1beta/evaluation_service_client_config.json +58 -0
  100. package/build/src/v1beta/grounded_generation_service_client.d.ts +237 -0
  101. package/build/src/v1beta/grounded_generation_service_client.js +333 -0
  102. package/build/src/v1beta/index.d.ts +3 -0
  103. package/build/src/v1beta/index.js +7 -1
  104. package/build/src/v1beta/project_service_client.d.ts +237 -0
  105. package/build/src/v1beta/project_service_client.js +339 -0
  106. package/build/src/v1beta/rank_service_client.d.ts +237 -0
  107. package/build/src/v1beta/rank_service_client.js +333 -0
  108. package/build/src/v1beta/recommendation_service_client.d.ts +237 -0
  109. package/build/src/v1beta/recommendation_service_client.js +333 -0
  110. package/build/src/v1beta/sample_query_service_client.d.ts +2293 -0
  111. package/build/src/v1beta/sample_query_service_client.js +3150 -0
  112. package/build/src/v1beta/sample_query_service_client_config.json +68 -0
  113. package/build/src/v1beta/sample_query_set_service_client.d.ts +2150 -0
  114. package/build/src/v1beta/sample_query_set_service_client.js +2895 -0
  115. package/build/src/v1beta/sample_query_set_service_client_config.json +63 -0
  116. package/build/src/v1beta/schema_service_client.d.ts +237 -0
  117. package/build/src/v1beta/schema_service_client.js +339 -0
  118. package/build/src/v1beta/search_service_client.d.ts +414 -12
  119. package/build/src/v1beta/search_service_client.js +451 -8
  120. package/build/src/v1beta/search_tuning_service_client.d.ts +237 -0
  121. package/build/src/v1beta/search_tuning_service_client.js +339 -0
  122. package/build/src/v1beta/serving_config_service_client.d.ts +237 -0
  123. package/build/src/v1beta/serving_config_service_client.js +333 -0
  124. package/build/src/v1beta/site_search_engine_service_client.d.ts +237 -0
  125. package/build/src/v1beta/site_search_engine_service_client.js +339 -0
  126. package/build/src/v1beta/user_event_service_client.d.ts +312 -0
  127. package/build/src/v1beta/user_event_service_client.js +381 -0
  128. package/build/src/v1beta/user_event_service_client_config.json +5 -0
  129. package/package.json +1 -1
@@ -911,6 +911,39 @@ export declare class ConversationalSearchServiceClient {
911
911
  * @returns {string} A string representing the engine.
912
912
  */
913
913
  matchEngineFromEngineName(engineName: string): string | number;
914
+ /**
915
+ * Return a fully-qualified evaluation resource name string.
916
+ *
917
+ * @param {string} project
918
+ * @param {string} location
919
+ * @param {string} evaluation
920
+ * @returns {string} Resource name string.
921
+ */
922
+ evaluationPath(project: string, location: string, evaluation: string): string;
923
+ /**
924
+ * Parse the project from Evaluation resource.
925
+ *
926
+ * @param {string} evaluationName
927
+ * A fully-qualified path representing Evaluation resource.
928
+ * @returns {string} A string representing the project.
929
+ */
930
+ matchProjectFromEvaluationName(evaluationName: string): string | number;
931
+ /**
932
+ * Parse the location from Evaluation resource.
933
+ *
934
+ * @param {string} evaluationName
935
+ * A fully-qualified path representing Evaluation resource.
936
+ * @returns {string} A string representing the location.
937
+ */
938
+ matchLocationFromEvaluationName(evaluationName: string): string | number;
939
+ /**
940
+ * Parse the evaluation from Evaluation resource.
941
+ *
942
+ * @param {string} evaluationName
943
+ * A fully-qualified path representing Evaluation resource.
944
+ * @returns {string} A string representing the evaluation.
945
+ */
946
+ matchEvaluationFromEvaluationName(evaluationName: string): string | number;
914
947
  /**
915
948
  * Return a fully-qualified project resource name string.
916
949
  *
@@ -2417,6 +2450,81 @@ export declare class ConversationalSearchServiceClient {
2417
2450
  * @returns {string} A string representing the target_site.
2418
2451
  */
2419
2452
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
2453
+ /**
2454
+ * Return a fully-qualified sampleQuery resource name string.
2455
+ *
2456
+ * @param {string} project
2457
+ * @param {string} location
2458
+ * @param {string} sample_query_set
2459
+ * @param {string} sample_query
2460
+ * @returns {string} Resource name string.
2461
+ */
2462
+ sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
2463
+ /**
2464
+ * Parse the project from SampleQuery resource.
2465
+ *
2466
+ * @param {string} sampleQueryName
2467
+ * A fully-qualified path representing SampleQuery resource.
2468
+ * @returns {string} A string representing the project.
2469
+ */
2470
+ matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
2471
+ /**
2472
+ * Parse the location from SampleQuery resource.
2473
+ *
2474
+ * @param {string} sampleQueryName
2475
+ * A fully-qualified path representing SampleQuery resource.
2476
+ * @returns {string} A string representing the location.
2477
+ */
2478
+ matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
2479
+ /**
2480
+ * Parse the sample_query_set from SampleQuery resource.
2481
+ *
2482
+ * @param {string} sampleQueryName
2483
+ * A fully-qualified path representing SampleQuery resource.
2484
+ * @returns {string} A string representing the sample_query_set.
2485
+ */
2486
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
2487
+ /**
2488
+ * Parse the sample_query from SampleQuery resource.
2489
+ *
2490
+ * @param {string} sampleQueryName
2491
+ * A fully-qualified path representing SampleQuery resource.
2492
+ * @returns {string} A string representing the sample_query.
2493
+ */
2494
+ matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
2495
+ /**
2496
+ * Return a fully-qualified sampleQuerySet resource name string.
2497
+ *
2498
+ * @param {string} project
2499
+ * @param {string} location
2500
+ * @param {string} sample_query_set
2501
+ * @returns {string} Resource name string.
2502
+ */
2503
+ sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
2504
+ /**
2505
+ * Parse the project from SampleQuerySet resource.
2506
+ *
2507
+ * @param {string} sampleQuerySetName
2508
+ * A fully-qualified path representing SampleQuerySet resource.
2509
+ * @returns {string} A string representing the project.
2510
+ */
2511
+ matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
2512
+ /**
2513
+ * Parse the location from SampleQuerySet resource.
2514
+ *
2515
+ * @param {string} sampleQuerySetName
2516
+ * A fully-qualified path representing SampleQuerySet resource.
2517
+ * @returns {string} A string representing the location.
2518
+ */
2519
+ matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
2520
+ /**
2521
+ * Parse the sample_query_set from SampleQuerySet resource.
2522
+ *
2523
+ * @param {string} sampleQuerySetName
2524
+ * A fully-qualified path representing SampleQuerySet resource.
2525
+ * @returns {string} A string representing the sample_query_set.
2526
+ */
2527
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
2420
2528
  /**
2421
2529
  * Terminate the gRPC channel and close the client.
2422
2530
  *
@@ -152,6 +152,7 @@ class ConversationalSearchServiceClient {
152
152
  this.pathTemplates = {
153
153
  aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
154
154
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
155
+ evaluationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/evaluations/{evaluation}'),
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}'),
@@ -184,6 +185,8 @@ class ConversationalSearchServiceClient {
184
185
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
185
186
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
186
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}'),
187
190
  };
188
191
  // Some of the methods on this service return "paged" results,
189
192
  // (e.g. 50 results at a time, with tokens to get subsequent
@@ -970,6 +973,54 @@ class ConversationalSearchServiceClient {
970
973
  matchEngineFromEngineName(engineName) {
971
974
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
972
975
  }
976
+ /**
977
+ * Return a fully-qualified evaluation resource name string.
978
+ *
979
+ * @param {string} project
980
+ * @param {string} location
981
+ * @param {string} evaluation
982
+ * @returns {string} Resource name string.
983
+ */
984
+ evaluationPath(project, location, evaluation) {
985
+ return this.pathTemplates.evaluationPathTemplate.render({
986
+ project: project,
987
+ location: location,
988
+ evaluation: evaluation,
989
+ });
990
+ }
991
+ /**
992
+ * Parse the project from Evaluation resource.
993
+ *
994
+ * @param {string} evaluationName
995
+ * A fully-qualified path representing Evaluation resource.
996
+ * @returns {string} A string representing the project.
997
+ */
998
+ matchProjectFromEvaluationName(evaluationName) {
999
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1000
+ .project;
1001
+ }
1002
+ /**
1003
+ * Parse the location from Evaluation resource.
1004
+ *
1005
+ * @param {string} evaluationName
1006
+ * A fully-qualified path representing Evaluation resource.
1007
+ * @returns {string} A string representing the location.
1008
+ */
1009
+ matchLocationFromEvaluationName(evaluationName) {
1010
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1011
+ .location;
1012
+ }
1013
+ /**
1014
+ * Parse the evaluation from Evaluation resource.
1015
+ *
1016
+ * @param {string} evaluationName
1017
+ * A fully-qualified path representing Evaluation resource.
1018
+ * @returns {string} A string representing the evaluation.
1019
+ */
1020
+ matchEvaluationFromEvaluationName(evaluationName) {
1021
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1022
+ .evaluation;
1023
+ }
973
1024
  /**
974
1025
  * Return a fully-qualified project resource name string.
975
1026
  *
@@ -3010,6 +3061,112 @@ class ConversationalSearchServiceClient {
3010
3061
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
3011
3062
  return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
3012
3063
  }
3064
+ /**
3065
+ * Return a fully-qualified sampleQuery resource name string.
3066
+ *
3067
+ * @param {string} project
3068
+ * @param {string} location
3069
+ * @param {string} sample_query_set
3070
+ * @param {string} sample_query
3071
+ * @returns {string} Resource name string.
3072
+ */
3073
+ sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
3074
+ return this.pathTemplates.sampleQueryPathTemplate.render({
3075
+ project: project,
3076
+ location: location,
3077
+ sample_query_set: sampleQuerySet,
3078
+ sample_query: sampleQuery,
3079
+ });
3080
+ }
3081
+ /**
3082
+ * Parse the project from SampleQuery resource.
3083
+ *
3084
+ * @param {string} sampleQueryName
3085
+ * A fully-qualified path representing SampleQuery resource.
3086
+ * @returns {string} A string representing the project.
3087
+ */
3088
+ matchProjectFromSampleQueryName(sampleQueryName) {
3089
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3090
+ .project;
3091
+ }
3092
+ /**
3093
+ * Parse the location from SampleQuery resource.
3094
+ *
3095
+ * @param {string} sampleQueryName
3096
+ * A fully-qualified path representing SampleQuery resource.
3097
+ * @returns {string} A string representing the location.
3098
+ */
3099
+ matchLocationFromSampleQueryName(sampleQueryName) {
3100
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3101
+ .location;
3102
+ }
3103
+ /**
3104
+ * Parse the sample_query_set from SampleQuery resource.
3105
+ *
3106
+ * @param {string} sampleQueryName
3107
+ * A fully-qualified path representing SampleQuery resource.
3108
+ * @returns {string} A string representing the sample_query_set.
3109
+ */
3110
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
3111
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3112
+ .sample_query_set;
3113
+ }
3114
+ /**
3115
+ * Parse the sample_query from SampleQuery resource.
3116
+ *
3117
+ * @param {string} sampleQueryName
3118
+ * A fully-qualified path representing SampleQuery resource.
3119
+ * @returns {string} A string representing the sample_query.
3120
+ */
3121
+ matchSampleQueryFromSampleQueryName(sampleQueryName) {
3122
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3123
+ .sample_query;
3124
+ }
3125
+ /**
3126
+ * Return a fully-qualified sampleQuerySet resource name string.
3127
+ *
3128
+ * @param {string} project
3129
+ * @param {string} location
3130
+ * @param {string} sample_query_set
3131
+ * @returns {string} Resource name string.
3132
+ */
3133
+ sampleQuerySetPath(project, location, sampleQuerySet) {
3134
+ return this.pathTemplates.sampleQuerySetPathTemplate.render({
3135
+ project: project,
3136
+ location: location,
3137
+ sample_query_set: sampleQuerySet,
3138
+ });
3139
+ }
3140
+ /**
3141
+ * Parse the project from SampleQuerySet resource.
3142
+ *
3143
+ * @param {string} sampleQuerySetName
3144
+ * A fully-qualified path representing SampleQuerySet resource.
3145
+ * @returns {string} A string representing the project.
3146
+ */
3147
+ matchProjectFromSampleQuerySetName(sampleQuerySetName) {
3148
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
3149
+ }
3150
+ /**
3151
+ * Parse the location from SampleQuerySet resource.
3152
+ *
3153
+ * @param {string} sampleQuerySetName
3154
+ * A fully-qualified path representing SampleQuerySet resource.
3155
+ * @returns {string} A string representing the location.
3156
+ */
3157
+ matchLocationFromSampleQuerySetName(sampleQuerySetName) {
3158
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
3159
+ }
3160
+ /**
3161
+ * Parse the sample_query_set from SampleQuerySet resource.
3162
+ *
3163
+ * @param {string} sampleQuerySetName
3164
+ * A fully-qualified path representing SampleQuerySet resource.
3165
+ * @returns {string} A string representing the sample_query_set.
3166
+ */
3167
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
3168
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
3169
+ }
3013
3170
  /**
3014
3171
  * Terminate the gRPC channel and close the client.
3015
3172
  *
@@ -786,6 +786,39 @@ export declare class DataStoreServiceClient {
786
786
  * @returns {string} A string representing the engine.
787
787
  */
788
788
  matchEngineFromEngineName(engineName: string): string | number;
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: string, location: string, evaluation: string): string;
798
+ /**
799
+ * Parse the project from Evaluation resource.
800
+ *
801
+ * @param {string} evaluationName
802
+ * A fully-qualified path representing Evaluation resource.
803
+ * @returns {string} A string representing the project.
804
+ */
805
+ matchProjectFromEvaluationName(evaluationName: string): string | number;
806
+ /**
807
+ * Parse the location from Evaluation resource.
808
+ *
809
+ * @param {string} evaluationName
810
+ * A fully-qualified path representing Evaluation resource.
811
+ * @returns {string} A string representing the location.
812
+ */
813
+ matchLocationFromEvaluationName(evaluationName: string): string | number;
814
+ /**
815
+ * Parse the evaluation from Evaluation resource.
816
+ *
817
+ * @param {string} evaluationName
818
+ * A fully-qualified path representing Evaluation resource.
819
+ * @returns {string} A string representing the evaluation.
820
+ */
821
+ matchEvaluationFromEvaluationName(evaluationName: string): string | number;
789
822
  /**
790
823
  * Return a fully-qualified project resource name string.
791
824
  *
@@ -2292,6 +2325,81 @@ export declare class DataStoreServiceClient {
2292
2325
  * @returns {string} A string representing the target_site.
2293
2326
  */
2294
2327
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
2328
+ /**
2329
+ * Return a fully-qualified sampleQuery resource name string.
2330
+ *
2331
+ * @param {string} project
2332
+ * @param {string} location
2333
+ * @param {string} sample_query_set
2334
+ * @param {string} sample_query
2335
+ * @returns {string} Resource name string.
2336
+ */
2337
+ sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
2338
+ /**
2339
+ * Parse the project from SampleQuery resource.
2340
+ *
2341
+ * @param {string} sampleQueryName
2342
+ * A fully-qualified path representing SampleQuery resource.
2343
+ * @returns {string} A string representing the project.
2344
+ */
2345
+ matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
2346
+ /**
2347
+ * Parse the location from SampleQuery resource.
2348
+ *
2349
+ * @param {string} sampleQueryName
2350
+ * A fully-qualified path representing SampleQuery resource.
2351
+ * @returns {string} A string representing the location.
2352
+ */
2353
+ matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
2354
+ /**
2355
+ * Parse the sample_query_set from SampleQuery resource.
2356
+ *
2357
+ * @param {string} sampleQueryName
2358
+ * A fully-qualified path representing SampleQuery resource.
2359
+ * @returns {string} A string representing the sample_query_set.
2360
+ */
2361
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
2362
+ /**
2363
+ * Parse the sample_query from SampleQuery resource.
2364
+ *
2365
+ * @param {string} sampleQueryName
2366
+ * A fully-qualified path representing SampleQuery resource.
2367
+ * @returns {string} A string representing the sample_query.
2368
+ */
2369
+ matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
2370
+ /**
2371
+ * Return a fully-qualified sampleQuerySet resource name string.
2372
+ *
2373
+ * @param {string} project
2374
+ * @param {string} location
2375
+ * @param {string} sample_query_set
2376
+ * @returns {string} Resource name string.
2377
+ */
2378
+ sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
2379
+ /**
2380
+ * Parse the project from SampleQuerySet resource.
2381
+ *
2382
+ * @param {string} sampleQuerySetName
2383
+ * A fully-qualified path representing SampleQuerySet resource.
2384
+ * @returns {string} A string representing the project.
2385
+ */
2386
+ matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
2387
+ /**
2388
+ * Parse the location from SampleQuerySet resource.
2389
+ *
2390
+ * @param {string} sampleQuerySetName
2391
+ * A fully-qualified path representing SampleQuerySet resource.
2392
+ * @returns {string} A string representing the location.
2393
+ */
2394
+ matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
2395
+ /**
2396
+ * Parse the sample_query_set from SampleQuerySet resource.
2397
+ *
2398
+ * @param {string} sampleQuerySetName
2399
+ * A fully-qualified path representing SampleQuerySet resource.
2400
+ * @returns {string} A string representing the sample_query_set.
2401
+ */
2402
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
2295
2403
  /**
2296
2404
  * Terminate the gRPC channel and close the client.
2297
2405
  *
@@ -153,6 +153,7 @@ class DataStoreServiceClient {
153
153
  aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
154
154
  collectionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}'),
155
155
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
156
+ evaluationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/evaluations/{evaluation}'),
156
157
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
157
158
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
158
159
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
@@ -185,6 +186,8 @@ class DataStoreServiceClient {
185
186
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
186
187
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
187
188
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
189
+ sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
190
+ sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
188
191
  };
189
192
  // Some of the methods on this service return "paged" results,
190
193
  // (e.g. 50 results at a time, with tokens to get subsequent
@@ -1064,6 +1067,54 @@ class DataStoreServiceClient {
1064
1067
  matchEngineFromEngineName(engineName) {
1065
1068
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
1066
1069
  }
1070
+ /**
1071
+ * Return a fully-qualified evaluation resource name string.
1072
+ *
1073
+ * @param {string} project
1074
+ * @param {string} location
1075
+ * @param {string} evaluation
1076
+ * @returns {string} Resource name string.
1077
+ */
1078
+ evaluationPath(project, location, evaluation) {
1079
+ return this.pathTemplates.evaluationPathTemplate.render({
1080
+ project: project,
1081
+ location: location,
1082
+ evaluation: evaluation,
1083
+ });
1084
+ }
1085
+ /**
1086
+ * Parse the project from Evaluation resource.
1087
+ *
1088
+ * @param {string} evaluationName
1089
+ * A fully-qualified path representing Evaluation resource.
1090
+ * @returns {string} A string representing the project.
1091
+ */
1092
+ matchProjectFromEvaluationName(evaluationName) {
1093
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1094
+ .project;
1095
+ }
1096
+ /**
1097
+ * Parse the location from Evaluation resource.
1098
+ *
1099
+ * @param {string} evaluationName
1100
+ * A fully-qualified path representing Evaluation resource.
1101
+ * @returns {string} A string representing the location.
1102
+ */
1103
+ matchLocationFromEvaluationName(evaluationName) {
1104
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1105
+ .location;
1106
+ }
1107
+ /**
1108
+ * Parse the evaluation from Evaluation resource.
1109
+ *
1110
+ * @param {string} evaluationName
1111
+ * A fully-qualified path representing Evaluation resource.
1112
+ * @returns {string} A string representing the evaluation.
1113
+ */
1114
+ matchEvaluationFromEvaluationName(evaluationName) {
1115
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1116
+ .evaluation;
1117
+ }
1067
1118
  /**
1068
1119
  * Return a fully-qualified project resource name string.
1069
1120
  *
@@ -3104,6 +3155,112 @@ class DataStoreServiceClient {
3104
3155
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
3105
3156
  return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
3106
3157
  }
3158
+ /**
3159
+ * Return a fully-qualified sampleQuery resource name string.
3160
+ *
3161
+ * @param {string} project
3162
+ * @param {string} location
3163
+ * @param {string} sample_query_set
3164
+ * @param {string} sample_query
3165
+ * @returns {string} Resource name string.
3166
+ */
3167
+ sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
3168
+ return this.pathTemplates.sampleQueryPathTemplate.render({
3169
+ project: project,
3170
+ location: location,
3171
+ sample_query_set: sampleQuerySet,
3172
+ sample_query: sampleQuery,
3173
+ });
3174
+ }
3175
+ /**
3176
+ * Parse the project from SampleQuery resource.
3177
+ *
3178
+ * @param {string} sampleQueryName
3179
+ * A fully-qualified path representing SampleQuery resource.
3180
+ * @returns {string} A string representing the project.
3181
+ */
3182
+ matchProjectFromSampleQueryName(sampleQueryName) {
3183
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3184
+ .project;
3185
+ }
3186
+ /**
3187
+ * Parse the location from SampleQuery resource.
3188
+ *
3189
+ * @param {string} sampleQueryName
3190
+ * A fully-qualified path representing SampleQuery resource.
3191
+ * @returns {string} A string representing the location.
3192
+ */
3193
+ matchLocationFromSampleQueryName(sampleQueryName) {
3194
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3195
+ .location;
3196
+ }
3197
+ /**
3198
+ * Parse the sample_query_set from SampleQuery resource.
3199
+ *
3200
+ * @param {string} sampleQueryName
3201
+ * A fully-qualified path representing SampleQuery resource.
3202
+ * @returns {string} A string representing the sample_query_set.
3203
+ */
3204
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
3205
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3206
+ .sample_query_set;
3207
+ }
3208
+ /**
3209
+ * Parse the sample_query from SampleQuery resource.
3210
+ *
3211
+ * @param {string} sampleQueryName
3212
+ * A fully-qualified path representing SampleQuery resource.
3213
+ * @returns {string} A string representing the sample_query.
3214
+ */
3215
+ matchSampleQueryFromSampleQueryName(sampleQueryName) {
3216
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3217
+ .sample_query;
3218
+ }
3219
+ /**
3220
+ * Return a fully-qualified sampleQuerySet resource name string.
3221
+ *
3222
+ * @param {string} project
3223
+ * @param {string} location
3224
+ * @param {string} sample_query_set
3225
+ * @returns {string} Resource name string.
3226
+ */
3227
+ sampleQuerySetPath(project, location, sampleQuerySet) {
3228
+ return this.pathTemplates.sampleQuerySetPathTemplate.render({
3229
+ project: project,
3230
+ location: location,
3231
+ sample_query_set: sampleQuerySet,
3232
+ });
3233
+ }
3234
+ /**
3235
+ * Parse the project from SampleQuerySet resource.
3236
+ *
3237
+ * @param {string} sampleQuerySetName
3238
+ * A fully-qualified path representing SampleQuerySet resource.
3239
+ * @returns {string} A string representing the project.
3240
+ */
3241
+ matchProjectFromSampleQuerySetName(sampleQuerySetName) {
3242
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
3243
+ }
3244
+ /**
3245
+ * Parse the location from SampleQuerySet resource.
3246
+ *
3247
+ * @param {string} sampleQuerySetName
3248
+ * A fully-qualified path representing SampleQuerySet resource.
3249
+ * @returns {string} A string representing the location.
3250
+ */
3251
+ matchLocationFromSampleQuerySetName(sampleQuerySetName) {
3252
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
3253
+ }
3254
+ /**
3255
+ * Parse the sample_query_set from SampleQuerySet resource.
3256
+ *
3257
+ * @param {string} sampleQuerySetName
3258
+ * A fully-qualified path representing SampleQuerySet resource.
3259
+ * @returns {string} A string representing the sample_query_set.
3260
+ */
3261
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
3262
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
3263
+ }
3107
3264
  /**
3108
3265
  * Terminate the gRPC channel and close the client.
3109
3266
  *