@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 CompletionServiceClient {
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 CompletionServiceClient {
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 CompletionServiceClient {
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
  const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
185
190
  // This API contains "long-running operations", which return a
@@ -240,7 +245,13 @@ class CompletionServiceClient {
240
245
  {
241
246
  get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}',
242
247
  },
248
+ {
249
+ get: '/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}',
250
+ },
243
251
  { get: '/v1beta/{name=projects/*/locations/*/operations/*}' },
252
+ {
253
+ get: '/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
254
+ },
244
255
  { get: '/v1beta/{name=projects/*/operations/*}' },
245
256
  ],
246
257
  },
@@ -294,9 +305,15 @@ class CompletionServiceClient {
294
305
  const importSuggestionDenyListEntriesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata');
295
306
  const purgeSuggestionDenyListEntriesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse');
296
307
  const purgeSuggestionDenyListEntriesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata');
308
+ const importCompletionSuggestionsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse');
309
+ const importCompletionSuggestionsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata');
310
+ const purgeCompletionSuggestionsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse');
311
+ const purgeCompletionSuggestionsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata');
297
312
  this.descriptors.longrunning = {
298
313
  importSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importSuggestionDenyListEntriesResponse.decode.bind(importSuggestionDenyListEntriesResponse), importSuggestionDenyListEntriesMetadata.decode.bind(importSuggestionDenyListEntriesMetadata)),
299
314
  purgeSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeSuggestionDenyListEntriesResponse.decode.bind(purgeSuggestionDenyListEntriesResponse), purgeSuggestionDenyListEntriesMetadata.decode.bind(purgeSuggestionDenyListEntriesMetadata)),
315
+ importCompletionSuggestions: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importCompletionSuggestionsResponse.decode.bind(importCompletionSuggestionsResponse), importCompletionSuggestionsMetadata.decode.bind(importCompletionSuggestionsMetadata)),
316
+ purgeCompletionSuggestions: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeCompletionSuggestionsResponse.decode.bind(purgeCompletionSuggestionsResponse), purgeCompletionSuggestionsMetadata.decode.bind(purgeCompletionSuggestionsMetadata)),
300
317
  };
301
318
  // Put together the default options sent with requests.
302
319
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1beta.CompletionService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -336,6 +353,8 @@ class CompletionServiceClient {
336
353
  'completeQuery',
337
354
  'importSuggestionDenyListEntries',
338
355
  'purgeSuggestionDenyListEntries',
356
+ 'importCompletionSuggestions',
357
+ 'purgeCompletionSuggestions',
339
358
  ];
340
359
  for (const methodName of completionServiceStubMethods) {
341
360
  const callPromise = this.completionServiceStub.then(stub => (...args) => {
@@ -510,6 +529,82 @@ class CompletionServiceClient {
510
529
  const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.purgeSuggestionDenyListEntries, this._gaxModule.createDefaultBackoffSettings());
511
530
  return decodeOperation;
512
531
  }
532
+ importCompletionSuggestions(request, optionsOrCallback, callback) {
533
+ var _a;
534
+ request = request || {};
535
+ let options;
536
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
537
+ callback = optionsOrCallback;
538
+ options = {};
539
+ }
540
+ else {
541
+ options = optionsOrCallback;
542
+ }
543
+ options = options || {};
544
+ options.otherArgs = options.otherArgs || {};
545
+ options.otherArgs.headers = options.otherArgs.headers || {};
546
+ options.otherArgs.headers['x-goog-request-params'] =
547
+ this._gaxModule.routingHeader.fromParams({
548
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
549
+ });
550
+ this.initialize();
551
+ return this.innerApiCalls.importCompletionSuggestions(request, options, callback);
552
+ }
553
+ /**
554
+ * Check the status of the long running operation returned by `importCompletionSuggestions()`.
555
+ * @param {String} name
556
+ * The operation name that will be passed.
557
+ * @returns {Promise} - The promise which resolves to an object.
558
+ * The decoded operation object has result and metadata field to get information from.
559
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
560
+ * for more details and examples.
561
+ * @example <caption>include:samples/generated/v1beta/completion_service.import_completion_suggestions.js</caption>
562
+ * region_tag:discoveryengine_v1beta_generated_CompletionService_ImportCompletionSuggestions_async
563
+ */
564
+ async checkImportCompletionSuggestionsProgress(name) {
565
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
566
+ const [operation] = await this.operationsClient.getOperation(request);
567
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.importCompletionSuggestions, this._gaxModule.createDefaultBackoffSettings());
568
+ return decodeOperation;
569
+ }
570
+ purgeCompletionSuggestions(request, optionsOrCallback, callback) {
571
+ var _a;
572
+ request = request || {};
573
+ let options;
574
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
575
+ callback = optionsOrCallback;
576
+ options = {};
577
+ }
578
+ else {
579
+ options = optionsOrCallback;
580
+ }
581
+ options = options || {};
582
+ options.otherArgs = options.otherArgs || {};
583
+ options.otherArgs.headers = options.otherArgs.headers || {};
584
+ options.otherArgs.headers['x-goog-request-params'] =
585
+ this._gaxModule.routingHeader.fromParams({
586
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
587
+ });
588
+ this.initialize();
589
+ return this.innerApiCalls.purgeCompletionSuggestions(request, options, callback);
590
+ }
591
+ /**
592
+ * Check the status of the long running operation returned by `purgeCompletionSuggestions()`.
593
+ * @param {String} name
594
+ * The operation name that will be passed.
595
+ * @returns {Promise} - The promise which resolves to an object.
596
+ * The decoded operation object has result and metadata field to get information from.
597
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
598
+ * for more details and examples.
599
+ * @example <caption>include:samples/generated/v1beta/completion_service.purge_completion_suggestions.js</caption>
600
+ * region_tag:discoveryengine_v1beta_generated_CompletionService_PurgeCompletionSuggestions_async
601
+ */
602
+ async checkPurgeCompletionSuggestionsProgress(name) {
603
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
604
+ const [operation] = await this.operationsClient.getOperation(request);
605
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.purgeCompletionSuggestions, this._gaxModule.createDefaultBackoffSettings());
606
+ return decodeOperation;
607
+ }
513
608
  /**
514
609
  * Gets information about a location.
515
610
  *
@@ -753,6 +848,54 @@ class CompletionServiceClient {
753
848
  matchEngineFromEngineName(engineName) {
754
849
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
755
850
  }
851
+ /**
852
+ * Return a fully-qualified evaluation resource name string.
853
+ *
854
+ * @param {string} project
855
+ * @param {string} location
856
+ * @param {string} evaluation
857
+ * @returns {string} Resource name string.
858
+ */
859
+ evaluationPath(project, location, evaluation) {
860
+ return this.pathTemplates.evaluationPathTemplate.render({
861
+ project: project,
862
+ location: location,
863
+ evaluation: evaluation,
864
+ });
865
+ }
866
+ /**
867
+ * Parse the project from Evaluation resource.
868
+ *
869
+ * @param {string} evaluationName
870
+ * A fully-qualified path representing Evaluation resource.
871
+ * @returns {string} A string representing the project.
872
+ */
873
+ matchProjectFromEvaluationName(evaluationName) {
874
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
875
+ .project;
876
+ }
877
+ /**
878
+ * Parse the location from Evaluation resource.
879
+ *
880
+ * @param {string} evaluationName
881
+ * A fully-qualified path representing Evaluation resource.
882
+ * @returns {string} A string representing the location.
883
+ */
884
+ matchLocationFromEvaluationName(evaluationName) {
885
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
886
+ .location;
887
+ }
888
+ /**
889
+ * Parse the evaluation from Evaluation resource.
890
+ *
891
+ * @param {string} evaluationName
892
+ * A fully-qualified path representing Evaluation resource.
893
+ * @returns {string} A string representing the evaluation.
894
+ */
895
+ matchEvaluationFromEvaluationName(evaluationName) {
896
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
897
+ .evaluation;
898
+ }
756
899
  /**
757
900
  * Return a fully-qualified project resource name string.
758
901
  *
@@ -912,6 +1055,99 @@ class CompletionServiceClient {
912
1055
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
913
1056
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
914
1057
  }
1058
+ /**
1059
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
1060
+ *
1061
+ * @param {string} project
1062
+ * @param {string} location
1063
+ * @param {string} collection
1064
+ * @param {string} data_store
1065
+ * @param {string} branch
1066
+ * @param {string} document
1067
+ * @param {string} chunk
1068
+ * @returns {string} Resource name string.
1069
+ */
1070
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
1071
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
1072
+ project: project,
1073
+ location: location,
1074
+ collection: collection,
1075
+ data_store: dataStore,
1076
+ branch: branch,
1077
+ document: document,
1078
+ chunk: chunk,
1079
+ });
1080
+ }
1081
+ /**
1082
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1083
+ *
1084
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1085
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1086
+ * @returns {string} A string representing the project.
1087
+ */
1088
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1089
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
1090
+ }
1091
+ /**
1092
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1093
+ *
1094
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1095
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1096
+ * @returns {string} A string representing the location.
1097
+ */
1098
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1099
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
1100
+ }
1101
+ /**
1102
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1103
+ *
1104
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1105
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1106
+ * @returns {string} A string representing the collection.
1107
+ */
1108
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1109
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
1110
+ }
1111
+ /**
1112
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1113
+ *
1114
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1115
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1116
+ * @returns {string} A string representing the data_store.
1117
+ */
1118
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1119
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
1120
+ }
1121
+ /**
1122
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1123
+ *
1124
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1125
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1126
+ * @returns {string} A string representing the branch.
1127
+ */
1128
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1129
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
1130
+ }
1131
+ /**
1132
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1133
+ *
1134
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1135
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1136
+ * @returns {string} A string representing the document.
1137
+ */
1138
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1139
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
1140
+ }
1141
+ /**
1142
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1143
+ *
1144
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1145
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1146
+ * @returns {string} A string representing the chunk.
1147
+ */
1148
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1149
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
1150
+ }
915
1151
  /**
916
1152
  * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
917
1153
  *
@@ -2061,6 +2297,87 @@ class CompletionServiceClient {
2061
2297
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2062
2298
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
2063
2299
  }
2300
+ /**
2301
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
2302
+ *
2303
+ * @param {string} project
2304
+ * @param {string} location
2305
+ * @param {string} data_store
2306
+ * @param {string} branch
2307
+ * @param {string} document
2308
+ * @param {string} chunk
2309
+ * @returns {string} Resource name string.
2310
+ */
2311
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
2312
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
2313
+ project: project,
2314
+ location: location,
2315
+ data_store: dataStore,
2316
+ branch: branch,
2317
+ document: document,
2318
+ chunk: chunk,
2319
+ });
2320
+ }
2321
+ /**
2322
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
2323
+ *
2324
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2325
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2326
+ * @returns {string} A string representing the project.
2327
+ */
2328
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2329
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
2330
+ }
2331
+ /**
2332
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
2333
+ *
2334
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2335
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2336
+ * @returns {string} A string representing the location.
2337
+ */
2338
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2339
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
2340
+ }
2341
+ /**
2342
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
2343
+ *
2344
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2345
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2346
+ * @returns {string} A string representing the data_store.
2347
+ */
2348
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2349
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
2350
+ }
2351
+ /**
2352
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
2353
+ *
2354
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2355
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2356
+ * @returns {string} A string representing the branch.
2357
+ */
2358
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2359
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
2360
+ }
2361
+ /**
2362
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
2363
+ *
2364
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2365
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2366
+ * @returns {string} A string representing the document.
2367
+ */
2368
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2369
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
2370
+ }
2371
+ /**
2372
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
2373
+ *
2374
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2375
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2376
+ * @returns {string} A string representing the chunk.
2377
+ */
2378
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2379
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
2380
+ }
2064
2381
  /**
2065
2382
  * Return a fully-qualified projectLocationDataStoreControl resource name string.
2066
2383
  *
@@ -2619,6 +2936,112 @@ class CompletionServiceClient {
2619
2936
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2620
2937
  return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
2621
2938
  }
2939
+ /**
2940
+ * Return a fully-qualified sampleQuery resource name string.
2941
+ *
2942
+ * @param {string} project
2943
+ * @param {string} location
2944
+ * @param {string} sample_query_set
2945
+ * @param {string} sample_query
2946
+ * @returns {string} Resource name string.
2947
+ */
2948
+ sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
2949
+ return this.pathTemplates.sampleQueryPathTemplate.render({
2950
+ project: project,
2951
+ location: location,
2952
+ sample_query_set: sampleQuerySet,
2953
+ sample_query: sampleQuery,
2954
+ });
2955
+ }
2956
+ /**
2957
+ * Parse the project from SampleQuery resource.
2958
+ *
2959
+ * @param {string} sampleQueryName
2960
+ * A fully-qualified path representing SampleQuery resource.
2961
+ * @returns {string} A string representing the project.
2962
+ */
2963
+ matchProjectFromSampleQueryName(sampleQueryName) {
2964
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2965
+ .project;
2966
+ }
2967
+ /**
2968
+ * Parse the location from SampleQuery resource.
2969
+ *
2970
+ * @param {string} sampleQueryName
2971
+ * A fully-qualified path representing SampleQuery resource.
2972
+ * @returns {string} A string representing the location.
2973
+ */
2974
+ matchLocationFromSampleQueryName(sampleQueryName) {
2975
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2976
+ .location;
2977
+ }
2978
+ /**
2979
+ * Parse the sample_query_set from SampleQuery resource.
2980
+ *
2981
+ * @param {string} sampleQueryName
2982
+ * A fully-qualified path representing SampleQuery resource.
2983
+ * @returns {string} A string representing the sample_query_set.
2984
+ */
2985
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
2986
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2987
+ .sample_query_set;
2988
+ }
2989
+ /**
2990
+ * Parse the sample_query from SampleQuery resource.
2991
+ *
2992
+ * @param {string} sampleQueryName
2993
+ * A fully-qualified path representing SampleQuery resource.
2994
+ * @returns {string} A string representing the sample_query.
2995
+ */
2996
+ matchSampleQueryFromSampleQueryName(sampleQueryName) {
2997
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2998
+ .sample_query;
2999
+ }
3000
+ /**
3001
+ * Return a fully-qualified sampleQuerySet resource name string.
3002
+ *
3003
+ * @param {string} project
3004
+ * @param {string} location
3005
+ * @param {string} sample_query_set
3006
+ * @returns {string} Resource name string.
3007
+ */
3008
+ sampleQuerySetPath(project, location, sampleQuerySet) {
3009
+ return this.pathTemplates.sampleQuerySetPathTemplate.render({
3010
+ project: project,
3011
+ location: location,
3012
+ sample_query_set: sampleQuerySet,
3013
+ });
3014
+ }
3015
+ /**
3016
+ * Parse the project from SampleQuerySet resource.
3017
+ *
3018
+ * @param {string} sampleQuerySetName
3019
+ * A fully-qualified path representing SampleQuerySet resource.
3020
+ * @returns {string} A string representing the project.
3021
+ */
3022
+ matchProjectFromSampleQuerySetName(sampleQuerySetName) {
3023
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
3024
+ }
3025
+ /**
3026
+ * Parse the location from SampleQuerySet resource.
3027
+ *
3028
+ * @param {string} sampleQuerySetName
3029
+ * A fully-qualified path representing SampleQuerySet resource.
3030
+ * @returns {string} A string representing the location.
3031
+ */
3032
+ matchLocationFromSampleQuerySetName(sampleQuerySetName) {
3033
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
3034
+ }
3035
+ /**
3036
+ * Parse the sample_query_set from SampleQuerySet resource.
3037
+ *
3038
+ * @param {string} sampleQuerySetName
3039
+ * A fully-qualified path representing SampleQuerySet resource.
3040
+ * @returns {string} A string representing the sample_query_set.
3041
+ */
3042
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
3043
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
3044
+ }
2622
3045
  /**
2623
3046
  * Terminate the gRPC channel and close the client.
2624
3047
  *
@@ -46,6 +46,16 @@
46
46
  "timeout_millis": 5000,
47
47
  "retry_codes_name": "unavailable",
48
48
  "retry_params_name": "319f27672a8be83550d842a373549dd84649a57e"
49
+ },
50
+ "ImportCompletionSuggestions": {
51
+ "timeout_millis": 5000,
52
+ "retry_codes_name": "unavailable",
53
+ "retry_params_name": "319f27672a8be83550d842a373549dd84649a57e"
54
+ },
55
+ "PurgeCompletionSuggestions": {
56
+ "timeout_millis": 5000,
57
+ "retry_codes_name": "unavailable",
58
+ "retry_params_name": "319f27672a8be83550d842a373549dd84649a57e"
49
59
  }
50
60
  }
51
61
  }