@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
@@ -152,9 +152,11 @@ class EngineServiceClient {
152
152
  this.pathTemplates = {
153
153
  collectionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}'),
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}'),
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 EngineServiceClient {
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 EngineServiceClient {
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
@@ -248,7 +253,13 @@ class EngineServiceClient {
248
253
  {
249
254
  get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}',
250
255
  },
256
+ {
257
+ get: '/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}',
258
+ },
251
259
  { get: '/v1beta/{name=projects/*/locations/*/operations/*}' },
260
+ {
261
+ get: '/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
262
+ },
252
263
  { get: '/v1beta/{name=projects/*/operations/*}' },
253
264
  ],
254
265
  },
@@ -1024,6 +1035,54 @@ class EngineServiceClient {
1024
1035
  matchEngineFromEngineName(engineName) {
1025
1036
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
1026
1037
  }
1038
+ /**
1039
+ * Return a fully-qualified evaluation resource name string.
1040
+ *
1041
+ * @param {string} project
1042
+ * @param {string} location
1043
+ * @param {string} evaluation
1044
+ * @returns {string} Resource name string.
1045
+ */
1046
+ evaluationPath(project, location, evaluation) {
1047
+ return this.pathTemplates.evaluationPathTemplate.render({
1048
+ project: project,
1049
+ location: location,
1050
+ evaluation: evaluation,
1051
+ });
1052
+ }
1053
+ /**
1054
+ * Parse the project from Evaluation resource.
1055
+ *
1056
+ * @param {string} evaluationName
1057
+ * A fully-qualified path representing Evaluation resource.
1058
+ * @returns {string} A string representing the project.
1059
+ */
1060
+ matchProjectFromEvaluationName(evaluationName) {
1061
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1062
+ .project;
1063
+ }
1064
+ /**
1065
+ * Parse the location from Evaluation resource.
1066
+ *
1067
+ * @param {string} evaluationName
1068
+ * A fully-qualified path representing Evaluation resource.
1069
+ * @returns {string} A string representing the location.
1070
+ */
1071
+ matchLocationFromEvaluationName(evaluationName) {
1072
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1073
+ .location;
1074
+ }
1075
+ /**
1076
+ * Parse the evaluation from Evaluation resource.
1077
+ *
1078
+ * @param {string} evaluationName
1079
+ * A fully-qualified path representing Evaluation resource.
1080
+ * @returns {string} A string representing the evaluation.
1081
+ */
1082
+ matchEvaluationFromEvaluationName(evaluationName) {
1083
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1084
+ .evaluation;
1085
+ }
1027
1086
  /**
1028
1087
  * Return a fully-qualified project resource name string.
1029
1088
  *
@@ -1183,6 +1242,99 @@ class EngineServiceClient {
1183
1242
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1184
1243
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
1185
1244
  }
1245
+ /**
1246
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
1247
+ *
1248
+ * @param {string} project
1249
+ * @param {string} location
1250
+ * @param {string} collection
1251
+ * @param {string} data_store
1252
+ * @param {string} branch
1253
+ * @param {string} document
1254
+ * @param {string} chunk
1255
+ * @returns {string} Resource name string.
1256
+ */
1257
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
1258
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
1259
+ project: project,
1260
+ location: location,
1261
+ collection: collection,
1262
+ data_store: dataStore,
1263
+ branch: branch,
1264
+ document: document,
1265
+ chunk: chunk,
1266
+ });
1267
+ }
1268
+ /**
1269
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1270
+ *
1271
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1272
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1273
+ * @returns {string} A string representing the project.
1274
+ */
1275
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1276
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
1277
+ }
1278
+ /**
1279
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1280
+ *
1281
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1282
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1283
+ * @returns {string} A string representing the location.
1284
+ */
1285
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1286
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
1287
+ }
1288
+ /**
1289
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1290
+ *
1291
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1292
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1293
+ * @returns {string} A string representing the collection.
1294
+ */
1295
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1296
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
1297
+ }
1298
+ /**
1299
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1300
+ *
1301
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1302
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1303
+ * @returns {string} A string representing the data_store.
1304
+ */
1305
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1306
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
1307
+ }
1308
+ /**
1309
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1310
+ *
1311
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1312
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1313
+ * @returns {string} A string representing the branch.
1314
+ */
1315
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1316
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
1317
+ }
1318
+ /**
1319
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1320
+ *
1321
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1322
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1323
+ * @returns {string} A string representing the document.
1324
+ */
1325
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1326
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
1327
+ }
1328
+ /**
1329
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1330
+ *
1331
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1332
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1333
+ * @returns {string} A string representing the chunk.
1334
+ */
1335
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1336
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
1337
+ }
1186
1338
  /**
1187
1339
  * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
1188
1340
  *
@@ -2332,6 +2484,87 @@ class EngineServiceClient {
2332
2484
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2333
2485
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
2334
2486
  }
2487
+ /**
2488
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
2489
+ *
2490
+ * @param {string} project
2491
+ * @param {string} location
2492
+ * @param {string} data_store
2493
+ * @param {string} branch
2494
+ * @param {string} document
2495
+ * @param {string} chunk
2496
+ * @returns {string} Resource name string.
2497
+ */
2498
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
2499
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
2500
+ project: project,
2501
+ location: location,
2502
+ data_store: dataStore,
2503
+ branch: branch,
2504
+ document: document,
2505
+ chunk: chunk,
2506
+ });
2507
+ }
2508
+ /**
2509
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
2510
+ *
2511
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2512
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2513
+ * @returns {string} A string representing the project.
2514
+ */
2515
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2516
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
2517
+ }
2518
+ /**
2519
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
2520
+ *
2521
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2522
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2523
+ * @returns {string} A string representing the location.
2524
+ */
2525
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2526
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
2527
+ }
2528
+ /**
2529
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
2530
+ *
2531
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2532
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2533
+ * @returns {string} A string representing the data_store.
2534
+ */
2535
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2536
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
2537
+ }
2538
+ /**
2539
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
2540
+ *
2541
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2542
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2543
+ * @returns {string} A string representing the branch.
2544
+ */
2545
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2546
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
2547
+ }
2548
+ /**
2549
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
2550
+ *
2551
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2552
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2553
+ * @returns {string} A string representing the document.
2554
+ */
2555
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2556
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
2557
+ }
2558
+ /**
2559
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
2560
+ *
2561
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2562
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2563
+ * @returns {string} A string representing the chunk.
2564
+ */
2565
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2566
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
2567
+ }
2335
2568
  /**
2336
2569
  * Return a fully-qualified projectLocationDataStoreControl resource name string.
2337
2570
  *
@@ -2890,6 +3123,112 @@ class EngineServiceClient {
2890
3123
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2891
3124
  return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
2892
3125
  }
3126
+ /**
3127
+ * Return a fully-qualified sampleQuery resource name string.
3128
+ *
3129
+ * @param {string} project
3130
+ * @param {string} location
3131
+ * @param {string} sample_query_set
3132
+ * @param {string} sample_query
3133
+ * @returns {string} Resource name string.
3134
+ */
3135
+ sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
3136
+ return this.pathTemplates.sampleQueryPathTemplate.render({
3137
+ project: project,
3138
+ location: location,
3139
+ sample_query_set: sampleQuerySet,
3140
+ sample_query: sampleQuery,
3141
+ });
3142
+ }
3143
+ /**
3144
+ * Parse the project from SampleQuery resource.
3145
+ *
3146
+ * @param {string} sampleQueryName
3147
+ * A fully-qualified path representing SampleQuery resource.
3148
+ * @returns {string} A string representing the project.
3149
+ */
3150
+ matchProjectFromSampleQueryName(sampleQueryName) {
3151
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3152
+ .project;
3153
+ }
3154
+ /**
3155
+ * Parse the location from SampleQuery resource.
3156
+ *
3157
+ * @param {string} sampleQueryName
3158
+ * A fully-qualified path representing SampleQuery resource.
3159
+ * @returns {string} A string representing the location.
3160
+ */
3161
+ matchLocationFromSampleQueryName(sampleQueryName) {
3162
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3163
+ .location;
3164
+ }
3165
+ /**
3166
+ * Parse the sample_query_set from SampleQuery resource.
3167
+ *
3168
+ * @param {string} sampleQueryName
3169
+ * A fully-qualified path representing SampleQuery resource.
3170
+ * @returns {string} A string representing the sample_query_set.
3171
+ */
3172
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
3173
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3174
+ .sample_query_set;
3175
+ }
3176
+ /**
3177
+ * Parse the sample_query from SampleQuery resource.
3178
+ *
3179
+ * @param {string} sampleQueryName
3180
+ * A fully-qualified path representing SampleQuery resource.
3181
+ * @returns {string} A string representing the sample_query.
3182
+ */
3183
+ matchSampleQueryFromSampleQueryName(sampleQueryName) {
3184
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3185
+ .sample_query;
3186
+ }
3187
+ /**
3188
+ * Return a fully-qualified sampleQuerySet resource name string.
3189
+ *
3190
+ * @param {string} project
3191
+ * @param {string} location
3192
+ * @param {string} sample_query_set
3193
+ * @returns {string} Resource name string.
3194
+ */
3195
+ sampleQuerySetPath(project, location, sampleQuerySet) {
3196
+ return this.pathTemplates.sampleQuerySetPathTemplate.render({
3197
+ project: project,
3198
+ location: location,
3199
+ sample_query_set: sampleQuerySet,
3200
+ });
3201
+ }
3202
+ /**
3203
+ * Parse the project from SampleQuerySet resource.
3204
+ *
3205
+ * @param {string} sampleQuerySetName
3206
+ * A fully-qualified path representing SampleQuerySet resource.
3207
+ * @returns {string} A string representing the project.
3208
+ */
3209
+ matchProjectFromSampleQuerySetName(sampleQuerySetName) {
3210
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
3211
+ }
3212
+ /**
3213
+ * Parse the location from SampleQuerySet resource.
3214
+ *
3215
+ * @param {string} sampleQuerySetName
3216
+ * A fully-qualified path representing SampleQuerySet resource.
3217
+ * @returns {string} A string representing the location.
3218
+ */
3219
+ matchLocationFromSampleQuerySetName(sampleQuerySetName) {
3220
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
3221
+ }
3222
+ /**
3223
+ * Parse the sample_query_set from SampleQuerySet resource.
3224
+ *
3225
+ * @param {string} sampleQuerySetName
3226
+ * A fully-qualified path representing SampleQuerySet resource.
3227
+ * @returns {string} A string representing the sample_query_set.
3228
+ */
3229
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
3230
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
3231
+ }
2893
3232
  /**
2894
3233
  * Terminate the gRPC channel and close the client.
2895
3234
  *