@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
@@ -150,9 +150,11 @@ class SchemaServiceClient {
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
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
157
+ projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
156
158
  projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
157
159
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
158
160
  projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
@@ -170,6 +172,7 @@ class SchemaServiceClient {
170
172
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
171
173
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
172
174
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
175
+ projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
173
176
  projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
174
177
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
175
178
  projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
@@ -180,6 +183,8 @@ class SchemaServiceClient {
180
183
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
181
184
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
182
185
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
186
+ sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
187
+ sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
183
188
  };
184
189
  // Some of the methods on this service return "paged" results,
185
190
  // (e.g. 50 results at a time, with tokens to get subsequent
@@ -246,7 +251,13 @@ class SchemaServiceClient {
246
251
  {
247
252
  get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}',
248
253
  },
254
+ {
255
+ get: '/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}',
256
+ },
249
257
  { get: '/v1beta/{name=projects/*/locations/*/operations/*}' },
258
+ {
259
+ get: '/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
260
+ },
250
261
  { get: '/v1beta/{name=projects/*/operations/*}' },
251
262
  ],
252
263
  },
@@ -926,6 +937,54 @@ class SchemaServiceClient {
926
937
  matchEngineFromEngineName(engineName) {
927
938
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
928
939
  }
940
+ /**
941
+ * Return a fully-qualified evaluation resource name string.
942
+ *
943
+ * @param {string} project
944
+ * @param {string} location
945
+ * @param {string} evaluation
946
+ * @returns {string} Resource name string.
947
+ */
948
+ evaluationPath(project, location, evaluation) {
949
+ return this.pathTemplates.evaluationPathTemplate.render({
950
+ project: project,
951
+ location: location,
952
+ evaluation: evaluation,
953
+ });
954
+ }
955
+ /**
956
+ * Parse the project from Evaluation resource.
957
+ *
958
+ * @param {string} evaluationName
959
+ * A fully-qualified path representing Evaluation resource.
960
+ * @returns {string} A string representing the project.
961
+ */
962
+ matchProjectFromEvaluationName(evaluationName) {
963
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
964
+ .project;
965
+ }
966
+ /**
967
+ * Parse the location from Evaluation resource.
968
+ *
969
+ * @param {string} evaluationName
970
+ * A fully-qualified path representing Evaluation resource.
971
+ * @returns {string} A string representing the location.
972
+ */
973
+ matchLocationFromEvaluationName(evaluationName) {
974
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
975
+ .location;
976
+ }
977
+ /**
978
+ * Parse the evaluation from Evaluation resource.
979
+ *
980
+ * @param {string} evaluationName
981
+ * A fully-qualified path representing Evaluation resource.
982
+ * @returns {string} A string representing the evaluation.
983
+ */
984
+ matchEvaluationFromEvaluationName(evaluationName) {
985
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
986
+ .evaluation;
987
+ }
929
988
  /**
930
989
  * Return a fully-qualified project resource name string.
931
990
  *
@@ -1085,6 +1144,99 @@ class SchemaServiceClient {
1085
1144
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1086
1145
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
1087
1146
  }
1147
+ /**
1148
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
1149
+ *
1150
+ * @param {string} project
1151
+ * @param {string} location
1152
+ * @param {string} collection
1153
+ * @param {string} data_store
1154
+ * @param {string} branch
1155
+ * @param {string} document
1156
+ * @param {string} chunk
1157
+ * @returns {string} Resource name string.
1158
+ */
1159
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
1160
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
1161
+ project: project,
1162
+ location: location,
1163
+ collection: collection,
1164
+ data_store: dataStore,
1165
+ branch: branch,
1166
+ document: document,
1167
+ chunk: chunk,
1168
+ });
1169
+ }
1170
+ /**
1171
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1172
+ *
1173
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1174
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1175
+ * @returns {string} A string representing the project.
1176
+ */
1177
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1178
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
1179
+ }
1180
+ /**
1181
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1182
+ *
1183
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1184
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1185
+ * @returns {string} A string representing the location.
1186
+ */
1187
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1188
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
1189
+ }
1190
+ /**
1191
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1192
+ *
1193
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1194
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1195
+ * @returns {string} A string representing the collection.
1196
+ */
1197
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1198
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
1199
+ }
1200
+ /**
1201
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1202
+ *
1203
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1204
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1205
+ * @returns {string} A string representing the data_store.
1206
+ */
1207
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1208
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
1209
+ }
1210
+ /**
1211
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1212
+ *
1213
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1214
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1215
+ * @returns {string} A string representing the branch.
1216
+ */
1217
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1218
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
1219
+ }
1220
+ /**
1221
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1222
+ *
1223
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1224
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1225
+ * @returns {string} A string representing the document.
1226
+ */
1227
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1228
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
1229
+ }
1230
+ /**
1231
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1232
+ *
1233
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1234
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1235
+ * @returns {string} A string representing the chunk.
1236
+ */
1237
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1238
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
1239
+ }
1088
1240
  /**
1089
1241
  * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
1090
1242
  *
@@ -2234,6 +2386,87 @@ class SchemaServiceClient {
2234
2386
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2235
2387
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
2236
2388
  }
2389
+ /**
2390
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
2391
+ *
2392
+ * @param {string} project
2393
+ * @param {string} location
2394
+ * @param {string} data_store
2395
+ * @param {string} branch
2396
+ * @param {string} document
2397
+ * @param {string} chunk
2398
+ * @returns {string} Resource name string.
2399
+ */
2400
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
2401
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
2402
+ project: project,
2403
+ location: location,
2404
+ data_store: dataStore,
2405
+ branch: branch,
2406
+ document: document,
2407
+ chunk: chunk,
2408
+ });
2409
+ }
2410
+ /**
2411
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
2412
+ *
2413
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2414
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2415
+ * @returns {string} A string representing the project.
2416
+ */
2417
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2418
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
2419
+ }
2420
+ /**
2421
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
2422
+ *
2423
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2424
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2425
+ * @returns {string} A string representing the location.
2426
+ */
2427
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2428
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
2429
+ }
2430
+ /**
2431
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
2432
+ *
2433
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2434
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2435
+ * @returns {string} A string representing the data_store.
2436
+ */
2437
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2438
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
2439
+ }
2440
+ /**
2441
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
2442
+ *
2443
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2444
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2445
+ * @returns {string} A string representing the branch.
2446
+ */
2447
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2448
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
2449
+ }
2450
+ /**
2451
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
2452
+ *
2453
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2454
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2455
+ * @returns {string} A string representing the document.
2456
+ */
2457
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2458
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
2459
+ }
2460
+ /**
2461
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
2462
+ *
2463
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2464
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2465
+ * @returns {string} A string representing the chunk.
2466
+ */
2467
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2468
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
2469
+ }
2237
2470
  /**
2238
2471
  * Return a fully-qualified projectLocationDataStoreControl resource name string.
2239
2472
  *
@@ -2792,6 +3025,112 @@ class SchemaServiceClient {
2792
3025
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2793
3026
  return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
2794
3027
  }
3028
+ /**
3029
+ * Return a fully-qualified sampleQuery resource name string.
3030
+ *
3031
+ * @param {string} project
3032
+ * @param {string} location
3033
+ * @param {string} sample_query_set
3034
+ * @param {string} sample_query
3035
+ * @returns {string} Resource name string.
3036
+ */
3037
+ sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
3038
+ return this.pathTemplates.sampleQueryPathTemplate.render({
3039
+ project: project,
3040
+ location: location,
3041
+ sample_query_set: sampleQuerySet,
3042
+ sample_query: sampleQuery,
3043
+ });
3044
+ }
3045
+ /**
3046
+ * Parse the project from SampleQuery resource.
3047
+ *
3048
+ * @param {string} sampleQueryName
3049
+ * A fully-qualified path representing SampleQuery resource.
3050
+ * @returns {string} A string representing the project.
3051
+ */
3052
+ matchProjectFromSampleQueryName(sampleQueryName) {
3053
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3054
+ .project;
3055
+ }
3056
+ /**
3057
+ * Parse the location from SampleQuery resource.
3058
+ *
3059
+ * @param {string} sampleQueryName
3060
+ * A fully-qualified path representing SampleQuery resource.
3061
+ * @returns {string} A string representing the location.
3062
+ */
3063
+ matchLocationFromSampleQueryName(sampleQueryName) {
3064
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3065
+ .location;
3066
+ }
3067
+ /**
3068
+ * Parse the sample_query_set from SampleQuery resource.
3069
+ *
3070
+ * @param {string} sampleQueryName
3071
+ * A fully-qualified path representing SampleQuery resource.
3072
+ * @returns {string} A string representing the sample_query_set.
3073
+ */
3074
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
3075
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3076
+ .sample_query_set;
3077
+ }
3078
+ /**
3079
+ * Parse the sample_query from SampleQuery resource.
3080
+ *
3081
+ * @param {string} sampleQueryName
3082
+ * A fully-qualified path representing SampleQuery resource.
3083
+ * @returns {string} A string representing the sample_query.
3084
+ */
3085
+ matchSampleQueryFromSampleQueryName(sampleQueryName) {
3086
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3087
+ .sample_query;
3088
+ }
3089
+ /**
3090
+ * Return a fully-qualified sampleQuerySet resource name string.
3091
+ *
3092
+ * @param {string} project
3093
+ * @param {string} location
3094
+ * @param {string} sample_query_set
3095
+ * @returns {string} Resource name string.
3096
+ */
3097
+ sampleQuerySetPath(project, location, sampleQuerySet) {
3098
+ return this.pathTemplates.sampleQuerySetPathTemplate.render({
3099
+ project: project,
3100
+ location: location,
3101
+ sample_query_set: sampleQuerySet,
3102
+ });
3103
+ }
3104
+ /**
3105
+ * Parse the project from SampleQuerySet resource.
3106
+ *
3107
+ * @param {string} sampleQuerySetName
3108
+ * A fully-qualified path representing SampleQuerySet resource.
3109
+ * @returns {string} A string representing the project.
3110
+ */
3111
+ matchProjectFromSampleQuerySetName(sampleQuerySetName) {
3112
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
3113
+ }
3114
+ /**
3115
+ * Parse the location from SampleQuerySet resource.
3116
+ *
3117
+ * @param {string} sampleQuerySetName
3118
+ * A fully-qualified path representing SampleQuerySet resource.
3119
+ * @returns {string} A string representing the location.
3120
+ */
3121
+ matchLocationFromSampleQuerySetName(sampleQuerySetName) {
3122
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
3123
+ }
3124
+ /**
3125
+ * Parse the sample_query_set from SampleQuerySet resource.
3126
+ *
3127
+ * @param {string} sampleQuerySetName
3128
+ * A fully-qualified path representing SampleQuerySet resource.
3129
+ * @returns {string} A string representing the sample_query_set.
3130
+ */
3131
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
3132
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
3133
+ }
2795
3134
  /**
2796
3135
  * Terminate the gRPC channel and close the client.
2797
3136
  *