@google-cloud/discoveryengine 1.9.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 (160) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +32 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +13 -0
  4. package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +119 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/common.proto +0 -5
  6. package/build/protos/google/cloud/discoveryengine/v1/completion.proto +31 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +38 -0
  8. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +35 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
  10. package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +37 -2
  11. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +108 -0
  12. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
  13. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +200 -4
  14. package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +3 -0
  15. package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation.proto +232 -0
  16. package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation_service.proto +252 -0
  17. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +83 -0
  18. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query.proto +86 -0
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_service.proto +264 -0
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set.proto +64 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto +258 -0
  22. package/build/protos/google/cloud/discoveryengine/v1beta/chunk.proto +119 -0
  23. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +0 -5
  24. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +10 -2
  25. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
  26. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +37 -2
  27. package/build/protos/google/cloud/discoveryengine/v1beta/evaluation.proto +231 -0
  28. package/build/protos/google/cloud/discoveryengine/v1beta/evaluation_service.proto +252 -0
  29. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +83 -0
  30. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query.proto +86 -0
  31. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_service.proto +264 -0
  32. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set.proto +64 -0
  33. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto +256 -0
  34. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +67 -8
  35. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +11 -5
  36. package/build/protos/protos.d.ts +31310 -20211
  37. package/build/protos/protos.js +86710 -60571
  38. package/build/protos/protos.json +7720 -5011
  39. package/build/src/v1/completion_service_client.d.ts +220 -0
  40. package/build/src/v1/completion_service_client.js +260 -0
  41. package/build/src/v1/completion_service_client_config.json +10 -0
  42. package/build/src/v1/control_service_client.d.ts +129 -1
  43. package/build/src/v1/control_service_client.js +176 -0
  44. package/build/src/v1/conversational_search_service_client.d.ts +147 -1
  45. package/build/src/v1/conversational_search_service_client.js +176 -0
  46. package/build/src/v1/data_store_service_client.d.ts +129 -1
  47. package/build/src/v1/data_store_service_client.js +176 -0
  48. package/build/src/v1/document_service_client.d.ts +131 -1
  49. package/build/src/v1/document_service_client.js +176 -0
  50. package/build/src/v1/engine_service_client.d.ts +129 -1
  51. package/build/src/v1/engine_service_client.js +176 -0
  52. package/build/src/v1/grounded_generation_service_client.d.ts +129 -0
  53. package/build/src/v1/grounded_generation_service_client.js +176 -0
  54. package/build/src/v1/project_service_client.d.ts +129 -0
  55. package/build/src/v1/project_service_client.js +176 -0
  56. package/build/src/v1/rank_service_client.d.ts +129 -0
  57. package/build/src/v1/rank_service_client.js +176 -0
  58. package/build/src/v1/recommendation_service_client.d.ts +129 -0
  59. package/build/src/v1/recommendation_service_client.js +176 -0
  60. package/build/src/v1/schema_service_client.d.ts +129 -1
  61. package/build/src/v1/schema_service_client.js +176 -0
  62. package/build/src/v1/search_service_client.d.ts +252 -1
  63. package/build/src/v1/search_service_client.js +258 -0
  64. package/build/src/v1/site_search_engine_service_client.d.ts +129 -1
  65. package/build/src/v1/site_search_engine_service_client.js +176 -0
  66. package/build/src/v1/user_event_service_client.d.ts +129 -0
  67. package/build/src/v1/user_event_service_client.js +176 -0
  68. package/build/src/v1alpha/acl_config_service_client.d.ts +108 -0
  69. package/build/src/v1alpha/acl_config_service_client.js +157 -0
  70. package/build/src/v1alpha/chunk_service_client.d.ts +108 -1
  71. package/build/src/v1alpha/chunk_service_client.js +157 -0
  72. package/build/src/v1alpha/completion_service_client.d.ts +108 -0
  73. package/build/src/v1alpha/completion_service_client.js +157 -0
  74. package/build/src/v1alpha/control_service_client.d.ts +108 -1
  75. package/build/src/v1alpha/control_service_client.js +157 -0
  76. package/build/src/v1alpha/conversational_search_service_client.d.ts +108 -1
  77. package/build/src/v1alpha/conversational_search_service_client.js +157 -0
  78. package/build/src/v1alpha/data_store_service_client.d.ts +108 -1
  79. package/build/src/v1alpha/data_store_service_client.js +157 -0
  80. package/build/src/v1alpha/document_service_client.d.ts +108 -1
  81. package/build/src/v1alpha/document_service_client.js +157 -0
  82. package/build/src/v1alpha/engine_service_client.d.ts +108 -1
  83. package/build/src/v1alpha/engine_service_client.js +157 -0
  84. package/build/src/v1alpha/estimate_billing_service_client.d.ts +108 -0
  85. package/build/src/v1alpha/estimate_billing_service_client.js +157 -0
  86. package/build/src/v1alpha/evaluation_service_client.d.ts +2349 -0
  87. package/build/src/v1alpha/evaluation_service_client.js +3288 -0
  88. package/build/src/v1alpha/evaluation_service_client_config.json +58 -0
  89. package/build/src/v1alpha/grounded_generation_service_client.d.ts +108 -0
  90. package/build/src/v1alpha/grounded_generation_service_client.js +157 -0
  91. package/build/src/v1alpha/index.d.ts +3 -0
  92. package/build/src/v1alpha/index.js +7 -1
  93. package/build/src/v1alpha/project_service_client.d.ts +108 -0
  94. package/build/src/v1alpha/project_service_client.js +157 -0
  95. package/build/src/v1alpha/rank_service_client.d.ts +108 -0
  96. package/build/src/v1alpha/rank_service_client.js +157 -0
  97. package/build/src/v1alpha/recommendation_service_client.d.ts +108 -0
  98. package/build/src/v1alpha/recommendation_service_client.js +157 -0
  99. package/build/src/v1alpha/sample_query_service_client.d.ts +2317 -0
  100. package/build/src/v1alpha/sample_query_service_client.js +3186 -0
  101. package/build/src/v1alpha/sample_query_service_client_config.json +68 -0
  102. package/build/src/v1alpha/sample_query_set_service_client.d.ts +2176 -0
  103. package/build/src/v1alpha/sample_query_set_service_client.js +2931 -0
  104. package/build/src/v1alpha/sample_query_set_service_client_config.json +63 -0
  105. package/build/src/v1alpha/schema_service_client.d.ts +108 -1
  106. package/build/src/v1alpha/schema_service_client.js +157 -0
  107. package/build/src/v1alpha/search_service_client.d.ts +108 -1
  108. package/build/src/v1alpha/search_service_client.js +157 -0
  109. package/build/src/v1alpha/search_tuning_service_client.d.ts +108 -0
  110. package/build/src/v1alpha/search_tuning_service_client.js +157 -0
  111. package/build/src/v1alpha/serving_config_service_client.d.ts +108 -1
  112. package/build/src/v1alpha/serving_config_service_client.js +157 -0
  113. package/build/src/v1alpha/site_search_engine_service_client.d.ts +108 -1
  114. package/build/src/v1alpha/site_search_engine_service_client.js +157 -0
  115. package/build/src/v1alpha/user_event_service_client.d.ts +108 -0
  116. package/build/src/v1alpha/user_event_service_client.js +157 -0
  117. package/build/src/v1beta/completion_service_client.d.ts +237 -0
  118. package/build/src/v1beta/completion_service_client.js +339 -0
  119. package/build/src/v1beta/control_service_client.d.ts +237 -1
  120. package/build/src/v1beta/control_service_client.js +333 -0
  121. package/build/src/v1beta/conversational_search_service_client.d.ts +237 -1
  122. package/build/src/v1beta/conversational_search_service_client.js +333 -0
  123. package/build/src/v1beta/data_store_service_client.d.ts +237 -1
  124. package/build/src/v1beta/data_store_service_client.js +339 -0
  125. package/build/src/v1beta/document_service_client.d.ts +237 -1
  126. package/build/src/v1beta/document_service_client.js +339 -0
  127. package/build/src/v1beta/engine_service_client.d.ts +237 -1
  128. package/build/src/v1beta/engine_service_client.js +339 -0
  129. package/build/src/v1beta/evaluation_service_client.d.ts +2325 -0
  130. package/build/src/v1beta/evaluation_service_client.js +3252 -0
  131. package/build/src/v1beta/evaluation_service_client_config.json +58 -0
  132. package/build/src/v1beta/grounded_generation_service_client.d.ts +237 -0
  133. package/build/src/v1beta/grounded_generation_service_client.js +333 -0
  134. package/build/src/v1beta/index.d.ts +3 -0
  135. package/build/src/v1beta/index.js +7 -1
  136. package/build/src/v1beta/project_service_client.d.ts +237 -0
  137. package/build/src/v1beta/project_service_client.js +339 -0
  138. package/build/src/v1beta/rank_service_client.d.ts +237 -0
  139. package/build/src/v1beta/rank_service_client.js +333 -0
  140. package/build/src/v1beta/recommendation_service_client.d.ts +237 -0
  141. package/build/src/v1beta/recommendation_service_client.js +333 -0
  142. package/build/src/v1beta/sample_query_service_client.d.ts +2293 -0
  143. package/build/src/v1beta/sample_query_service_client.js +3150 -0
  144. package/build/src/v1beta/sample_query_service_client_config.json +68 -0
  145. package/build/src/v1beta/sample_query_set_service_client.d.ts +2150 -0
  146. package/build/src/v1beta/sample_query_set_service_client.js +2895 -0
  147. package/build/src/v1beta/sample_query_set_service_client_config.json +63 -0
  148. package/build/src/v1beta/schema_service_client.d.ts +237 -1
  149. package/build/src/v1beta/schema_service_client.js +339 -0
  150. package/build/src/v1beta/search_service_client.d.ts +267 -13
  151. package/build/src/v1beta/search_service_client.js +353 -8
  152. package/build/src/v1beta/search_tuning_service_client.d.ts +237 -0
  153. package/build/src/v1beta/search_tuning_service_client.js +339 -0
  154. package/build/src/v1beta/serving_config_service_client.d.ts +237 -1
  155. package/build/src/v1beta/serving_config_service_client.js +333 -0
  156. package/build/src/v1beta/site_search_engine_service_client.d.ts +237 -1
  157. package/build/src/v1beta/site_search_engine_service_client.js +339 -0
  158. package/build/src/v1beta/user_event_service_client.d.ts +237 -0
  159. package/build/src/v1beta/user_event_service_client.js +339 -0
  160. package/package.json +1 -1
@@ -153,6 +153,7 @@ class EngineServiceClient {
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 EngineServiceClient {
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
@@ -1068,6 +1071,54 @@ class EngineServiceClient {
1068
1071
  matchEngineFromEngineName(engineName) {
1069
1072
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
1070
1073
  }
1074
+ /**
1075
+ * Return a fully-qualified evaluation resource name string.
1076
+ *
1077
+ * @param {string} project
1078
+ * @param {string} location
1079
+ * @param {string} evaluation
1080
+ * @returns {string} Resource name string.
1081
+ */
1082
+ evaluationPath(project, location, evaluation) {
1083
+ return this.pathTemplates.evaluationPathTemplate.render({
1084
+ project: project,
1085
+ location: location,
1086
+ evaluation: evaluation,
1087
+ });
1088
+ }
1089
+ /**
1090
+ * Parse the project from Evaluation resource.
1091
+ *
1092
+ * @param {string} evaluationName
1093
+ * A fully-qualified path representing Evaluation resource.
1094
+ * @returns {string} A string representing the project.
1095
+ */
1096
+ matchProjectFromEvaluationName(evaluationName) {
1097
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1098
+ .project;
1099
+ }
1100
+ /**
1101
+ * Parse the location from Evaluation resource.
1102
+ *
1103
+ * @param {string} evaluationName
1104
+ * A fully-qualified path representing Evaluation resource.
1105
+ * @returns {string} A string representing the location.
1106
+ */
1107
+ matchLocationFromEvaluationName(evaluationName) {
1108
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1109
+ .location;
1110
+ }
1111
+ /**
1112
+ * Parse the evaluation from Evaluation resource.
1113
+ *
1114
+ * @param {string} evaluationName
1115
+ * A fully-qualified path representing Evaluation resource.
1116
+ * @returns {string} A string representing the evaluation.
1117
+ */
1118
+ matchEvaluationFromEvaluationName(evaluationName) {
1119
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1120
+ .evaluation;
1121
+ }
1071
1122
  /**
1072
1123
  * Return a fully-qualified project resource name string.
1073
1124
  *
@@ -3108,6 +3159,112 @@ class EngineServiceClient {
3108
3159
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
3109
3160
  return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
3110
3161
  }
3162
+ /**
3163
+ * Return a fully-qualified sampleQuery resource name string.
3164
+ *
3165
+ * @param {string} project
3166
+ * @param {string} location
3167
+ * @param {string} sample_query_set
3168
+ * @param {string} sample_query
3169
+ * @returns {string} Resource name string.
3170
+ */
3171
+ sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
3172
+ return this.pathTemplates.sampleQueryPathTemplate.render({
3173
+ project: project,
3174
+ location: location,
3175
+ sample_query_set: sampleQuerySet,
3176
+ sample_query: sampleQuery,
3177
+ });
3178
+ }
3179
+ /**
3180
+ * Parse the project from SampleQuery resource.
3181
+ *
3182
+ * @param {string} sampleQueryName
3183
+ * A fully-qualified path representing SampleQuery resource.
3184
+ * @returns {string} A string representing the project.
3185
+ */
3186
+ matchProjectFromSampleQueryName(sampleQueryName) {
3187
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3188
+ .project;
3189
+ }
3190
+ /**
3191
+ * Parse the location from SampleQuery resource.
3192
+ *
3193
+ * @param {string} sampleQueryName
3194
+ * A fully-qualified path representing SampleQuery resource.
3195
+ * @returns {string} A string representing the location.
3196
+ */
3197
+ matchLocationFromSampleQueryName(sampleQueryName) {
3198
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3199
+ .location;
3200
+ }
3201
+ /**
3202
+ * Parse the sample_query_set from SampleQuery resource.
3203
+ *
3204
+ * @param {string} sampleQueryName
3205
+ * A fully-qualified path representing SampleQuery resource.
3206
+ * @returns {string} A string representing the sample_query_set.
3207
+ */
3208
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
3209
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3210
+ .sample_query_set;
3211
+ }
3212
+ /**
3213
+ * Parse the sample_query from SampleQuery resource.
3214
+ *
3215
+ * @param {string} sampleQueryName
3216
+ * A fully-qualified path representing SampleQuery resource.
3217
+ * @returns {string} A string representing the sample_query.
3218
+ */
3219
+ matchSampleQueryFromSampleQueryName(sampleQueryName) {
3220
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3221
+ .sample_query;
3222
+ }
3223
+ /**
3224
+ * Return a fully-qualified sampleQuerySet resource name string.
3225
+ *
3226
+ * @param {string} project
3227
+ * @param {string} location
3228
+ * @param {string} sample_query_set
3229
+ * @returns {string} Resource name string.
3230
+ */
3231
+ sampleQuerySetPath(project, location, sampleQuerySet) {
3232
+ return this.pathTemplates.sampleQuerySetPathTemplate.render({
3233
+ project: project,
3234
+ location: location,
3235
+ sample_query_set: sampleQuerySet,
3236
+ });
3237
+ }
3238
+ /**
3239
+ * Parse the project from SampleQuerySet resource.
3240
+ *
3241
+ * @param {string} sampleQuerySetName
3242
+ * A fully-qualified path representing SampleQuerySet resource.
3243
+ * @returns {string} A string representing the project.
3244
+ */
3245
+ matchProjectFromSampleQuerySetName(sampleQuerySetName) {
3246
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
3247
+ }
3248
+ /**
3249
+ * Parse the location from SampleQuerySet resource.
3250
+ *
3251
+ * @param {string} sampleQuerySetName
3252
+ * A fully-qualified path representing SampleQuerySet resource.
3253
+ * @returns {string} A string representing the location.
3254
+ */
3255
+ matchLocationFromSampleQuerySetName(sampleQuerySetName) {
3256
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
3257
+ }
3258
+ /**
3259
+ * Parse the sample_query_set from SampleQuerySet resource.
3260
+ *
3261
+ * @param {string} sampleQuerySetName
3262
+ * A fully-qualified path representing SampleQuerySet resource.
3263
+ * @returns {string} A string representing the sample_query_set.
3264
+ */
3265
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
3266
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
3267
+ }
3111
3268
  /**
3112
3269
  * Terminate the gRPC channel and close the client.
3113
3270
  *
@@ -394,6 +394,39 @@ export declare class EstimateBillingServiceClient {
394
394
  * @returns {string} A string representing the engine.
395
395
  */
396
396
  matchEngineFromEngineName(engineName: string): string | number;
397
+ /**
398
+ * Return a fully-qualified evaluation resource name string.
399
+ *
400
+ * @param {string} project
401
+ * @param {string} location
402
+ * @param {string} evaluation
403
+ * @returns {string} Resource name string.
404
+ */
405
+ evaluationPath(project: string, location: string, evaluation: string): string;
406
+ /**
407
+ * Parse the project from Evaluation resource.
408
+ *
409
+ * @param {string} evaluationName
410
+ * A fully-qualified path representing Evaluation resource.
411
+ * @returns {string} A string representing the project.
412
+ */
413
+ matchProjectFromEvaluationName(evaluationName: string): string | number;
414
+ /**
415
+ * Parse the location from Evaluation resource.
416
+ *
417
+ * @param {string} evaluationName
418
+ * A fully-qualified path representing Evaluation resource.
419
+ * @returns {string} A string representing the location.
420
+ */
421
+ matchLocationFromEvaluationName(evaluationName: string): string | number;
422
+ /**
423
+ * Parse the evaluation from Evaluation resource.
424
+ *
425
+ * @param {string} evaluationName
426
+ * A fully-qualified path representing Evaluation resource.
427
+ * @returns {string} A string representing the evaluation.
428
+ */
429
+ matchEvaluationFromEvaluationName(evaluationName: string): string | number;
397
430
  /**
398
431
  * Return a fully-qualified location resource name string.
399
432
  *
@@ -1924,6 +1957,81 @@ export declare class EstimateBillingServiceClient {
1924
1957
  * @returns {string} A string representing the target_site.
1925
1958
  */
1926
1959
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
1960
+ /**
1961
+ * Return a fully-qualified sampleQuery resource name string.
1962
+ *
1963
+ * @param {string} project
1964
+ * @param {string} location
1965
+ * @param {string} sample_query_set
1966
+ * @param {string} sample_query
1967
+ * @returns {string} Resource name string.
1968
+ */
1969
+ sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
1970
+ /**
1971
+ * Parse the project from SampleQuery resource.
1972
+ *
1973
+ * @param {string} sampleQueryName
1974
+ * A fully-qualified path representing SampleQuery resource.
1975
+ * @returns {string} A string representing the project.
1976
+ */
1977
+ matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
1978
+ /**
1979
+ * Parse the location from SampleQuery resource.
1980
+ *
1981
+ * @param {string} sampleQueryName
1982
+ * A fully-qualified path representing SampleQuery resource.
1983
+ * @returns {string} A string representing the location.
1984
+ */
1985
+ matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
1986
+ /**
1987
+ * Parse the sample_query_set from SampleQuery resource.
1988
+ *
1989
+ * @param {string} sampleQueryName
1990
+ * A fully-qualified path representing SampleQuery resource.
1991
+ * @returns {string} A string representing the sample_query_set.
1992
+ */
1993
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
1994
+ /**
1995
+ * Parse the sample_query from SampleQuery resource.
1996
+ *
1997
+ * @param {string} sampleQueryName
1998
+ * A fully-qualified path representing SampleQuery resource.
1999
+ * @returns {string} A string representing the sample_query.
2000
+ */
2001
+ matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
2002
+ /**
2003
+ * Return a fully-qualified sampleQuerySet resource name string.
2004
+ *
2005
+ * @param {string} project
2006
+ * @param {string} location
2007
+ * @param {string} sample_query_set
2008
+ * @returns {string} Resource name string.
2009
+ */
2010
+ sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
2011
+ /**
2012
+ * Parse the project from SampleQuerySet resource.
2013
+ *
2014
+ * @param {string} sampleQuerySetName
2015
+ * A fully-qualified path representing SampleQuerySet resource.
2016
+ * @returns {string} A string representing the project.
2017
+ */
2018
+ matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
2019
+ /**
2020
+ * Parse the location from SampleQuerySet resource.
2021
+ *
2022
+ * @param {string} sampleQuerySetName
2023
+ * A fully-qualified path representing SampleQuerySet resource.
2024
+ * @returns {string} A string representing the location.
2025
+ */
2026
+ matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
2027
+ /**
2028
+ * Parse the sample_query_set from SampleQuerySet resource.
2029
+ *
2030
+ * @param {string} sampleQuerySetName
2031
+ * A fully-qualified path representing SampleQuerySet resource.
2032
+ * @returns {string} A string representing the sample_query_set.
2033
+ */
2034
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
1927
2035
  /**
1928
2036
  * Terminate the gRPC channel and close the client.
1929
2037
  *
@@ -152,6 +152,7 @@ class EstimateBillingServiceClient {
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
  locationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}'),
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}'),
@@ -185,6 +186,8 @@ class EstimateBillingServiceClient {
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
  const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
190
193
  // This API contains "long-running operations", which return a
@@ -733,6 +736,54 @@ class EstimateBillingServiceClient {
733
736
  matchEngineFromEngineName(engineName) {
734
737
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
735
738
  }
739
+ /**
740
+ * Return a fully-qualified evaluation resource name string.
741
+ *
742
+ * @param {string} project
743
+ * @param {string} location
744
+ * @param {string} evaluation
745
+ * @returns {string} Resource name string.
746
+ */
747
+ evaluationPath(project, location, evaluation) {
748
+ return this.pathTemplates.evaluationPathTemplate.render({
749
+ project: project,
750
+ location: location,
751
+ evaluation: evaluation,
752
+ });
753
+ }
754
+ /**
755
+ * Parse the project from Evaluation resource.
756
+ *
757
+ * @param {string} evaluationName
758
+ * A fully-qualified path representing Evaluation resource.
759
+ * @returns {string} A string representing the project.
760
+ */
761
+ matchProjectFromEvaluationName(evaluationName) {
762
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
763
+ .project;
764
+ }
765
+ /**
766
+ * Parse the location from Evaluation resource.
767
+ *
768
+ * @param {string} evaluationName
769
+ * A fully-qualified path representing Evaluation resource.
770
+ * @returns {string} A string representing the location.
771
+ */
772
+ matchLocationFromEvaluationName(evaluationName) {
773
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
774
+ .location;
775
+ }
776
+ /**
777
+ * Parse the evaluation from Evaluation resource.
778
+ *
779
+ * @param {string} evaluationName
780
+ * A fully-qualified path representing Evaluation resource.
781
+ * @returns {string} A string representing the evaluation.
782
+ */
783
+ matchEvaluationFromEvaluationName(evaluationName) {
784
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
785
+ .evaluation;
786
+ }
736
787
  /**
737
788
  * Return a fully-qualified location resource name string.
738
789
  *
@@ -2806,6 +2857,112 @@ class EstimateBillingServiceClient {
2806
2857
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2807
2858
  return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
2808
2859
  }
2860
+ /**
2861
+ * Return a fully-qualified sampleQuery resource name string.
2862
+ *
2863
+ * @param {string} project
2864
+ * @param {string} location
2865
+ * @param {string} sample_query_set
2866
+ * @param {string} sample_query
2867
+ * @returns {string} Resource name string.
2868
+ */
2869
+ sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
2870
+ return this.pathTemplates.sampleQueryPathTemplate.render({
2871
+ project: project,
2872
+ location: location,
2873
+ sample_query_set: sampleQuerySet,
2874
+ sample_query: sampleQuery,
2875
+ });
2876
+ }
2877
+ /**
2878
+ * Parse the project from SampleQuery resource.
2879
+ *
2880
+ * @param {string} sampleQueryName
2881
+ * A fully-qualified path representing SampleQuery resource.
2882
+ * @returns {string} A string representing the project.
2883
+ */
2884
+ matchProjectFromSampleQueryName(sampleQueryName) {
2885
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2886
+ .project;
2887
+ }
2888
+ /**
2889
+ * Parse the location from SampleQuery resource.
2890
+ *
2891
+ * @param {string} sampleQueryName
2892
+ * A fully-qualified path representing SampleQuery resource.
2893
+ * @returns {string} A string representing the location.
2894
+ */
2895
+ matchLocationFromSampleQueryName(sampleQueryName) {
2896
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2897
+ .location;
2898
+ }
2899
+ /**
2900
+ * Parse the sample_query_set from SampleQuery resource.
2901
+ *
2902
+ * @param {string} sampleQueryName
2903
+ * A fully-qualified path representing SampleQuery resource.
2904
+ * @returns {string} A string representing the sample_query_set.
2905
+ */
2906
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
2907
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2908
+ .sample_query_set;
2909
+ }
2910
+ /**
2911
+ * Parse the sample_query from SampleQuery resource.
2912
+ *
2913
+ * @param {string} sampleQueryName
2914
+ * A fully-qualified path representing SampleQuery resource.
2915
+ * @returns {string} A string representing the sample_query.
2916
+ */
2917
+ matchSampleQueryFromSampleQueryName(sampleQueryName) {
2918
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2919
+ .sample_query;
2920
+ }
2921
+ /**
2922
+ * Return a fully-qualified sampleQuerySet resource name string.
2923
+ *
2924
+ * @param {string} project
2925
+ * @param {string} location
2926
+ * @param {string} sample_query_set
2927
+ * @returns {string} Resource name string.
2928
+ */
2929
+ sampleQuerySetPath(project, location, sampleQuerySet) {
2930
+ return this.pathTemplates.sampleQuerySetPathTemplate.render({
2931
+ project: project,
2932
+ location: location,
2933
+ sample_query_set: sampleQuerySet,
2934
+ });
2935
+ }
2936
+ /**
2937
+ * Parse the project from SampleQuerySet resource.
2938
+ *
2939
+ * @param {string} sampleQuerySetName
2940
+ * A fully-qualified path representing SampleQuerySet resource.
2941
+ * @returns {string} A string representing the project.
2942
+ */
2943
+ matchProjectFromSampleQuerySetName(sampleQuerySetName) {
2944
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
2945
+ }
2946
+ /**
2947
+ * Parse the location from SampleQuerySet resource.
2948
+ *
2949
+ * @param {string} sampleQuerySetName
2950
+ * A fully-qualified path representing SampleQuerySet resource.
2951
+ * @returns {string} A string representing the location.
2952
+ */
2953
+ matchLocationFromSampleQuerySetName(sampleQuerySetName) {
2954
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
2955
+ }
2956
+ /**
2957
+ * Parse the sample_query_set from SampleQuerySet resource.
2958
+ *
2959
+ * @param {string} sampleQuerySetName
2960
+ * A fully-qualified path representing SampleQuerySet resource.
2961
+ * @returns {string} A string representing the sample_query_set.
2962
+ */
2963
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
2964
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
2965
+ }
2809
2966
  /**
2810
2967
  * Terminate the gRPC channel and close the client.
2811
2968
  *