@google-cloud/discoveryengine 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +30 -0
  3. package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation.proto +232 -0
  4. package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation_service.proto +252 -0
  5. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +83 -0
  6. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query.proto +86 -0
  7. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_service.proto +264 -0
  8. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set.proto +64 -0
  9. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto +258 -0
  10. package/build/protos/google/cloud/discoveryengine/v1beta/chunk.proto +119 -0
  11. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +0 -5
  12. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +10 -2
  13. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
  14. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +37 -2
  15. package/build/protos/google/cloud/discoveryengine/v1beta/evaluation.proto +231 -0
  16. package/build/protos/google/cloud/discoveryengine/v1beta/evaluation_service.proto +252 -0
  17. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +83 -0
  18. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query.proto +86 -0
  19. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_service.proto +264 -0
  20. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set.proto +64 -0
  21. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto +256 -0
  22. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +67 -8
  23. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +11 -5
  24. package/build/protos/protos.d.ts +28997 -20222
  25. package/build/protos/protos.js +74749 -54453
  26. package/build/protos/protos.json +6933 -4764
  27. package/build/src/v1alpha/acl_config_service_client.d.ts +108 -0
  28. package/build/src/v1alpha/acl_config_service_client.js +157 -0
  29. package/build/src/v1alpha/chunk_service_client.d.ts +108 -0
  30. package/build/src/v1alpha/chunk_service_client.js +157 -0
  31. package/build/src/v1alpha/completion_service_client.d.ts +108 -0
  32. package/build/src/v1alpha/completion_service_client.js +157 -0
  33. package/build/src/v1alpha/control_service_client.d.ts +108 -0
  34. package/build/src/v1alpha/control_service_client.js +157 -0
  35. package/build/src/v1alpha/conversational_search_service_client.d.ts +108 -0
  36. package/build/src/v1alpha/conversational_search_service_client.js +157 -0
  37. package/build/src/v1alpha/data_store_service_client.d.ts +108 -0
  38. package/build/src/v1alpha/data_store_service_client.js +157 -0
  39. package/build/src/v1alpha/document_service_client.d.ts +108 -0
  40. package/build/src/v1alpha/document_service_client.js +157 -0
  41. package/build/src/v1alpha/engine_service_client.d.ts +108 -0
  42. package/build/src/v1alpha/engine_service_client.js +157 -0
  43. package/build/src/v1alpha/estimate_billing_service_client.d.ts +108 -0
  44. package/build/src/v1alpha/estimate_billing_service_client.js +157 -0
  45. package/build/src/v1alpha/evaluation_service_client.d.ts +2349 -0
  46. package/build/src/v1alpha/evaluation_service_client.js +3288 -0
  47. package/build/src/v1alpha/evaluation_service_client_config.json +58 -0
  48. package/build/src/v1alpha/grounded_generation_service_client.d.ts +108 -0
  49. package/build/src/v1alpha/grounded_generation_service_client.js +157 -0
  50. package/build/src/v1alpha/index.d.ts +3 -0
  51. package/build/src/v1alpha/index.js +7 -1
  52. package/build/src/v1alpha/project_service_client.d.ts +108 -0
  53. package/build/src/v1alpha/project_service_client.js +157 -0
  54. package/build/src/v1alpha/rank_service_client.d.ts +108 -0
  55. package/build/src/v1alpha/rank_service_client.js +157 -0
  56. package/build/src/v1alpha/recommendation_service_client.d.ts +108 -0
  57. package/build/src/v1alpha/recommendation_service_client.js +157 -0
  58. package/build/src/v1alpha/sample_query_service_client.d.ts +2317 -0
  59. package/build/src/v1alpha/sample_query_service_client.js +3186 -0
  60. package/build/src/v1alpha/sample_query_service_client_config.json +68 -0
  61. package/build/src/v1alpha/sample_query_set_service_client.d.ts +2176 -0
  62. package/build/src/v1alpha/sample_query_set_service_client.js +2931 -0
  63. package/build/src/v1alpha/sample_query_set_service_client_config.json +63 -0
  64. package/build/src/v1alpha/schema_service_client.d.ts +108 -0
  65. package/build/src/v1alpha/schema_service_client.js +157 -0
  66. package/build/src/v1alpha/search_service_client.d.ts +108 -0
  67. package/build/src/v1alpha/search_service_client.js +157 -0
  68. package/build/src/v1alpha/search_tuning_service_client.d.ts +108 -0
  69. package/build/src/v1alpha/search_tuning_service_client.js +157 -0
  70. package/build/src/v1alpha/serving_config_service_client.d.ts +108 -0
  71. package/build/src/v1alpha/serving_config_service_client.js +157 -0
  72. package/build/src/v1alpha/site_search_engine_service_client.d.ts +108 -0
  73. package/build/src/v1alpha/site_search_engine_service_client.js +157 -0
  74. package/build/src/v1alpha/user_event_service_client.d.ts +108 -0
  75. package/build/src/v1alpha/user_event_service_client.js +157 -0
  76. package/build/src/v1beta/completion_service_client.d.ts +237 -0
  77. package/build/src/v1beta/completion_service_client.js +339 -0
  78. package/build/src/v1beta/control_service_client.d.ts +237 -0
  79. package/build/src/v1beta/control_service_client.js +333 -0
  80. package/build/src/v1beta/conversational_search_service_client.d.ts +237 -0
  81. package/build/src/v1beta/conversational_search_service_client.js +333 -0
  82. package/build/src/v1beta/data_store_service_client.d.ts +237 -0
  83. package/build/src/v1beta/data_store_service_client.js +339 -0
  84. package/build/src/v1beta/document_service_client.d.ts +237 -0
  85. package/build/src/v1beta/document_service_client.js +339 -0
  86. package/build/src/v1beta/engine_service_client.d.ts +237 -0
  87. package/build/src/v1beta/engine_service_client.js +339 -0
  88. package/build/src/v1beta/evaluation_service_client.d.ts +2325 -0
  89. package/build/src/v1beta/evaluation_service_client.js +3252 -0
  90. package/build/src/v1beta/evaluation_service_client_config.json +58 -0
  91. package/build/src/v1beta/grounded_generation_service_client.d.ts +237 -0
  92. package/build/src/v1beta/grounded_generation_service_client.js +333 -0
  93. package/build/src/v1beta/index.d.ts +3 -0
  94. package/build/src/v1beta/index.js +7 -1
  95. package/build/src/v1beta/project_service_client.d.ts +237 -0
  96. package/build/src/v1beta/project_service_client.js +339 -0
  97. package/build/src/v1beta/rank_service_client.d.ts +237 -0
  98. package/build/src/v1beta/rank_service_client.js +333 -0
  99. package/build/src/v1beta/recommendation_service_client.d.ts +237 -0
  100. package/build/src/v1beta/recommendation_service_client.js +333 -0
  101. package/build/src/v1beta/sample_query_service_client.d.ts +2293 -0
  102. package/build/src/v1beta/sample_query_service_client.js +3150 -0
  103. package/build/src/v1beta/sample_query_service_client_config.json +68 -0
  104. package/build/src/v1beta/sample_query_set_service_client.d.ts +2150 -0
  105. package/build/src/v1beta/sample_query_set_service_client.js +2895 -0
  106. package/build/src/v1beta/sample_query_set_service_client_config.json +63 -0
  107. package/build/src/v1beta/schema_service_client.d.ts +237 -0
  108. package/build/src/v1beta/schema_service_client.js +339 -0
  109. package/build/src/v1beta/search_service_client.d.ts +267 -12
  110. package/build/src/v1beta/search_service_client.js +353 -8
  111. package/build/src/v1beta/search_tuning_service_client.d.ts +237 -0
  112. package/build/src/v1beta/search_tuning_service_client.js +339 -0
  113. package/build/src/v1beta/serving_config_service_client.d.ts +237 -0
  114. package/build/src/v1beta/serving_config_service_client.js +333 -0
  115. package/build/src/v1beta/site_search_engine_service_client.d.ts +237 -0
  116. package/build/src/v1beta/site_search_engine_service_client.js +339 -0
  117. package/build/src/v1beta/user_event_service_client.d.ts +237 -0
  118. package/build/src/v1beta/user_event_service_client.js +339 -0
  119. package/package.json +1 -1
@@ -150,10 +150,12 @@ class SearchServiceClient {
150
150
  // Create useful helper objects for these.
151
151
  this.pathTemplates = {
152
152
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
153
+ evaluationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/evaluations/{evaluation}'),
153
154
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
154
155
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
155
156
  projectLocationCollectionDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}'),
156
157
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
158
+ projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
157
159
  projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
158
160
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
159
161
  projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
@@ -172,6 +174,7 @@ class SearchServiceClient {
172
174
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
173
175
  projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
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 SearchServiceClient {
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
@@ -483,20 +488,26 @@ class SearchServiceClient {
483
488
  * documents. This overrides
484
489
  * {@link protos.google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression|ServingConfig.ranking_expression}.
485
490
  * The ranking expression is a single function or multiple functions that are
486
- * joint by "+".
491
+ * joined by "+".
492
+ *
487
493
  * * ranking_expression = function, { " + ", function };
494
+ *
488
495
  * Supported functions:
496
+ *
489
497
  * * double * relevance_score
490
498
  * * double * dotProduct(embedding_field_path)
499
+ *
491
500
  * Function variables:
492
- * `relevance_score`: pre-defined keywords, used for measure relevance
501
+ *
502
+ * * `relevance_score`: pre-defined keywords, used for measure relevance
493
503
  * between query and document.
494
- * `embedding_field_path`: the document embedding field
504
+ * * `embedding_field_path`: the document embedding field
495
505
  * used with query embedding vector.
496
- * `dotProduct`: embedding function between embedding_field_path and query
506
+ * * `dotProduct`: embedding function between embedding_field_path and query
497
507
  * embedding vector.
498
508
  *
499
509
  * Example ranking expression:
510
+ *
500
511
  * If document has an embedding field doc_embedding, the ranking expression
501
512
  * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
502
513
  * @param {boolean} request.safeSearch
@@ -710,20 +721,26 @@ class SearchServiceClient {
710
721
  * documents. This overrides
711
722
  * {@link protos.google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression|ServingConfig.ranking_expression}.
712
723
  * The ranking expression is a single function or multiple functions that are
713
- * joint by "+".
724
+ * joined by "+".
725
+ *
714
726
  * * ranking_expression = function, { " + ", function };
727
+ *
715
728
  * Supported functions:
729
+ *
716
730
  * * double * relevance_score
717
731
  * * double * dotProduct(embedding_field_path)
732
+ *
718
733
  * Function variables:
719
- * `relevance_score`: pre-defined keywords, used for measure relevance
734
+ *
735
+ * * `relevance_score`: pre-defined keywords, used for measure relevance
720
736
  * between query and document.
721
- * `embedding_field_path`: the document embedding field
737
+ * * `embedding_field_path`: the document embedding field
722
738
  * used with query embedding vector.
723
- * `dotProduct`: embedding function between embedding_field_path and query
739
+ * * `dotProduct`: embedding function between embedding_field_path and query
724
740
  * embedding vector.
725
741
  *
726
742
  * Example ranking expression:
743
+ *
727
744
  * If document has an embedding field doc_embedding, the ranking expression
728
745
  * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
729
746
  * @param {boolean} request.safeSearch
@@ -889,6 +906,54 @@ class SearchServiceClient {
889
906
  matchEngineFromEngineName(engineName) {
890
907
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
891
908
  }
909
+ /**
910
+ * Return a fully-qualified evaluation resource name string.
911
+ *
912
+ * @param {string} project
913
+ * @param {string} location
914
+ * @param {string} evaluation
915
+ * @returns {string} Resource name string.
916
+ */
917
+ evaluationPath(project, location, evaluation) {
918
+ return this.pathTemplates.evaluationPathTemplate.render({
919
+ project: project,
920
+ location: location,
921
+ evaluation: evaluation,
922
+ });
923
+ }
924
+ /**
925
+ * Parse the project from Evaluation resource.
926
+ *
927
+ * @param {string} evaluationName
928
+ * A fully-qualified path representing Evaluation resource.
929
+ * @returns {string} A string representing the project.
930
+ */
931
+ matchProjectFromEvaluationName(evaluationName) {
932
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
933
+ .project;
934
+ }
935
+ /**
936
+ * Parse the location from Evaluation resource.
937
+ *
938
+ * @param {string} evaluationName
939
+ * A fully-qualified path representing Evaluation resource.
940
+ * @returns {string} A string representing the location.
941
+ */
942
+ matchLocationFromEvaluationName(evaluationName) {
943
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
944
+ .location;
945
+ }
946
+ /**
947
+ * Parse the evaluation from Evaluation resource.
948
+ *
949
+ * @param {string} evaluationName
950
+ * A fully-qualified path representing Evaluation resource.
951
+ * @returns {string} A string representing the evaluation.
952
+ */
953
+ matchEvaluationFromEvaluationName(evaluationName) {
954
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
955
+ .evaluation;
956
+ }
892
957
  /**
893
958
  * Return a fully-qualified project resource name string.
894
959
  *
@@ -1117,6 +1182,99 @@ class SearchServiceClient {
1117
1182
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1118
1183
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
1119
1184
  }
1185
+ /**
1186
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
1187
+ *
1188
+ * @param {string} project
1189
+ * @param {string} location
1190
+ * @param {string} collection
1191
+ * @param {string} data_store
1192
+ * @param {string} branch
1193
+ * @param {string} document
1194
+ * @param {string} chunk
1195
+ * @returns {string} Resource name string.
1196
+ */
1197
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
1198
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
1199
+ project: project,
1200
+ location: location,
1201
+ collection: collection,
1202
+ data_store: dataStore,
1203
+ branch: branch,
1204
+ document: document,
1205
+ chunk: chunk,
1206
+ });
1207
+ }
1208
+ /**
1209
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1210
+ *
1211
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1212
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1213
+ * @returns {string} A string representing the project.
1214
+ */
1215
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1216
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
1217
+ }
1218
+ /**
1219
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1220
+ *
1221
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1222
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1223
+ * @returns {string} A string representing the location.
1224
+ */
1225
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1226
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
1227
+ }
1228
+ /**
1229
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1230
+ *
1231
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1232
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1233
+ * @returns {string} A string representing the collection.
1234
+ */
1235
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1236
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
1237
+ }
1238
+ /**
1239
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1240
+ *
1241
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1242
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1243
+ * @returns {string} A string representing the data_store.
1244
+ */
1245
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1246
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
1247
+ }
1248
+ /**
1249
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1250
+ *
1251
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1252
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1253
+ * @returns {string} A string representing the branch.
1254
+ */
1255
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1256
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
1257
+ }
1258
+ /**
1259
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1260
+ *
1261
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1262
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1263
+ * @returns {string} A string representing the document.
1264
+ */
1265
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1266
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
1267
+ }
1268
+ /**
1269
+ * Parse the chunk 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 chunk.
1274
+ */
1275
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1276
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
1277
+ }
1120
1278
  /**
1121
1279
  * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
1122
1280
  *
@@ -2323,6 +2481,87 @@ class SearchServiceClient {
2323
2481
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2324
2482
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
2325
2483
  }
2484
+ /**
2485
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
2486
+ *
2487
+ * @param {string} project
2488
+ * @param {string} location
2489
+ * @param {string} data_store
2490
+ * @param {string} branch
2491
+ * @param {string} document
2492
+ * @param {string} chunk
2493
+ * @returns {string} Resource name string.
2494
+ */
2495
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
2496
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
2497
+ project: project,
2498
+ location: location,
2499
+ data_store: dataStore,
2500
+ branch: branch,
2501
+ document: document,
2502
+ chunk: chunk,
2503
+ });
2504
+ }
2505
+ /**
2506
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
2507
+ *
2508
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2509
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2510
+ * @returns {string} A string representing the project.
2511
+ */
2512
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2513
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
2514
+ }
2515
+ /**
2516
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
2517
+ *
2518
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2519
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2520
+ * @returns {string} A string representing the location.
2521
+ */
2522
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2523
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
2524
+ }
2525
+ /**
2526
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
2527
+ *
2528
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2529
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2530
+ * @returns {string} A string representing the data_store.
2531
+ */
2532
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2533
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
2534
+ }
2535
+ /**
2536
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
2537
+ *
2538
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2539
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2540
+ * @returns {string} A string representing the branch.
2541
+ */
2542
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2543
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
2544
+ }
2545
+ /**
2546
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
2547
+ *
2548
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2549
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2550
+ * @returns {string} A string representing the document.
2551
+ */
2552
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2553
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
2554
+ }
2555
+ /**
2556
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
2557
+ *
2558
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2559
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2560
+ * @returns {string} A string representing the chunk.
2561
+ */
2562
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2563
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
2564
+ }
2326
2565
  /**
2327
2566
  * Return a fully-qualified projectLocationDataStoreControl resource name string.
2328
2567
  *
@@ -2881,6 +3120,112 @@ class SearchServiceClient {
2881
3120
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2882
3121
  return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
2883
3122
  }
3123
+ /**
3124
+ * Return a fully-qualified sampleQuery resource name string.
3125
+ *
3126
+ * @param {string} project
3127
+ * @param {string} location
3128
+ * @param {string} sample_query_set
3129
+ * @param {string} sample_query
3130
+ * @returns {string} Resource name string.
3131
+ */
3132
+ sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
3133
+ return this.pathTemplates.sampleQueryPathTemplate.render({
3134
+ project: project,
3135
+ location: location,
3136
+ sample_query_set: sampleQuerySet,
3137
+ sample_query: sampleQuery,
3138
+ });
3139
+ }
3140
+ /**
3141
+ * Parse the project from SampleQuery resource.
3142
+ *
3143
+ * @param {string} sampleQueryName
3144
+ * A fully-qualified path representing SampleQuery resource.
3145
+ * @returns {string} A string representing the project.
3146
+ */
3147
+ matchProjectFromSampleQueryName(sampleQueryName) {
3148
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3149
+ .project;
3150
+ }
3151
+ /**
3152
+ * Parse the location from SampleQuery resource.
3153
+ *
3154
+ * @param {string} sampleQueryName
3155
+ * A fully-qualified path representing SampleQuery resource.
3156
+ * @returns {string} A string representing the location.
3157
+ */
3158
+ matchLocationFromSampleQueryName(sampleQueryName) {
3159
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3160
+ .location;
3161
+ }
3162
+ /**
3163
+ * Parse the sample_query_set from SampleQuery resource.
3164
+ *
3165
+ * @param {string} sampleQueryName
3166
+ * A fully-qualified path representing SampleQuery resource.
3167
+ * @returns {string} A string representing the sample_query_set.
3168
+ */
3169
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
3170
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3171
+ .sample_query_set;
3172
+ }
3173
+ /**
3174
+ * Parse the sample_query from SampleQuery resource.
3175
+ *
3176
+ * @param {string} sampleQueryName
3177
+ * A fully-qualified path representing SampleQuery resource.
3178
+ * @returns {string} A string representing the sample_query.
3179
+ */
3180
+ matchSampleQueryFromSampleQueryName(sampleQueryName) {
3181
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3182
+ .sample_query;
3183
+ }
3184
+ /**
3185
+ * Return a fully-qualified sampleQuerySet resource name string.
3186
+ *
3187
+ * @param {string} project
3188
+ * @param {string} location
3189
+ * @param {string} sample_query_set
3190
+ * @returns {string} Resource name string.
3191
+ */
3192
+ sampleQuerySetPath(project, location, sampleQuerySet) {
3193
+ return this.pathTemplates.sampleQuerySetPathTemplate.render({
3194
+ project: project,
3195
+ location: location,
3196
+ sample_query_set: sampleQuerySet,
3197
+ });
3198
+ }
3199
+ /**
3200
+ * Parse the project from SampleQuerySet resource.
3201
+ *
3202
+ * @param {string} sampleQuerySetName
3203
+ * A fully-qualified path representing SampleQuerySet resource.
3204
+ * @returns {string} A string representing the project.
3205
+ */
3206
+ matchProjectFromSampleQuerySetName(sampleQuerySetName) {
3207
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
3208
+ }
3209
+ /**
3210
+ * Parse the location from SampleQuerySet resource.
3211
+ *
3212
+ * @param {string} sampleQuerySetName
3213
+ * A fully-qualified path representing SampleQuerySet resource.
3214
+ * @returns {string} A string representing the location.
3215
+ */
3216
+ matchLocationFromSampleQuerySetName(sampleQuerySetName) {
3217
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
3218
+ }
3219
+ /**
3220
+ * Parse the sample_query_set from SampleQuerySet resource.
3221
+ *
3222
+ * @param {string} sampleQuerySetName
3223
+ * A fully-qualified path representing SampleQuerySet resource.
3224
+ * @returns {string} A string representing the sample_query_set.
3225
+ */
3226
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
3227
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
3228
+ }
2884
3229
  /**
2885
3230
  * Terminate the gRPC channel and close the client.
2886
3231
  *