@google-cloud/discoveryengine 1.3.1 → 1.4.1

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 (166) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +64 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/common.proto +54 -3
  4. package/build/protos/google/cloud/discoveryengine/v1/completion.proto +52 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +51 -4
  6. package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +3 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +40 -1
  8. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +98 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +304 -0
  10. package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
  11. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +215 -0
  12. package/build/protos/google/cloud/discoveryengine/v1/engine_service.proto +242 -0
  13. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +64 -0
  14. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
  15. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +137 -4
  16. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +170 -0
  17. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +691 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +3 -3
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +49 -0
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +79 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +72 -0
  22. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +137 -0
  23. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +77 -4
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +52 -0
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +44 -2
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +6 -1
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +44 -0
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +80 -1
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +83 -0
  30. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +127 -0
  31. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +6 -0
  32. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +13 -8
  33. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +3 -2
  34. package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +130 -0
  35. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +64 -0
  36. package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +66 -0
  37. package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +3 -1
  38. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +3 -0
  39. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +74 -13
  40. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +24 -20
  41. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +271 -0
  42. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +147 -0
  43. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +9 -3
  44. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +7 -4
  45. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +4 -3
  46. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +59 -8
  47. package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +52 -0
  48. package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +51 -4
  49. package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -0
  50. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +45 -1
  51. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +120 -0
  52. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +306 -0
  53. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +10 -1
  54. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +94 -0
  55. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +220 -0
  56. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +244 -0
  57. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +64 -0
  58. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +41 -0
  59. package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +26 -3
  60. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +169 -15
  61. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +151 -0
  62. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +265 -0
  63. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +148 -0
  64. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +170 -0
  65. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +695 -0
  66. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -3
  67. package/build/protos/protos.d.ts +48530 -23682
  68. package/build/protos/protos.js +122429 -63306
  69. package/build/protos/protos.json +13438 -7286
  70. package/build/src/index.d.ts +10 -1
  71. package/build/src/index.js +10 -1
  72. package/build/src/v1/completion_service_client.d.ts +489 -7
  73. package/build/src/v1/completion_service_client.js +715 -11
  74. package/build/src/v1/completion_service_client_config.json +10 -0
  75. package/build/src/v1/conversational_search_service_client.d.ts +341 -3
  76. package/build/src/v1/conversational_search_service_client.js +466 -9
  77. package/build/src/v1/data_store_service_client.d.ts +1286 -0
  78. package/build/src/v1/data_store_service_client.js +1768 -0
  79. package/build/src/v1/data_store_service_client_config.json +46 -0
  80. package/build/src/v1/document_service_client.d.ts +347 -2
  81. package/build/src/v1/document_service_client.js +506 -9
  82. package/build/src/v1/engine_service_client.d.ts +1211 -0
  83. package/build/src/v1/engine_service_client.js +1731 -0
  84. package/build/src/v1/engine_service_client_config.json +46 -0
  85. package/build/src/v1/index.d.ts +3 -0
  86. package/build/src/v1/index.js +7 -1
  87. package/build/src/v1/schema_service_client.d.ts +272 -2
  88. package/build/src/v1/schema_service_client.js +402 -9
  89. package/build/src/v1/search_service_client.d.ts +515 -11
  90. package/build/src/v1/search_service_client.js +648 -15
  91. package/build/src/v1/site_search_engine_service_client.d.ts +1564 -0
  92. package/build/src/v1/site_search_engine_service_client.js +2075 -0
  93. package/build/src/v1/site_search_engine_service_client_config.json +74 -0
  94. package/build/src/v1/user_event_service_client.d.ts +272 -2
  95. package/build/src/v1/user_event_service_client.js +402 -9
  96. package/build/src/v1alpha/acl_config_service_client.d.ts +1233 -0
  97. package/build/src/v1alpha/acl_config_service_client.js +1765 -0
  98. package/build/src/v1alpha/acl_config_service_client_config.json +34 -0
  99. package/build/src/v1alpha/chunk_service_client.d.ts +1350 -0
  100. package/build/src/v1alpha/chunk_service_client.js +1886 -0
  101. package/build/src/v1alpha/chunk_service_client_config.json +34 -0
  102. package/build/src/v1alpha/completion_service_client.d.ts +599 -5
  103. package/build/src/v1alpha/completion_service_client.js +868 -12
  104. package/build/src/v1alpha/completion_service_client_config.json +10 -0
  105. package/build/src/v1alpha/conversational_search_service_client.d.ts +244 -3
  106. package/build/src/v1alpha/conversational_search_service_client.js +353 -10
  107. package/build/src/v1alpha/data_store_service_client.d.ts +462 -5
  108. package/build/src/v1alpha/data_store_service_client.js +599 -12
  109. package/build/src/v1alpha/data_store_service_client_config.json +8 -0
  110. package/build/src/v1alpha/document_service_client.d.ts +393 -2
  111. package/build/src/v1alpha/document_service_client.js +551 -10
  112. package/build/src/v1alpha/engine_service_client.d.ts +386 -4
  113. package/build/src/v1alpha/engine_service_client.js +551 -10
  114. package/build/src/v1alpha/estimate_billing_service_client.d.ts +1367 -0
  115. package/build/src/v1alpha/estimate_billing_service_client.js +2028 -0
  116. package/build/src/v1alpha/estimate_billing_service_client_config.json +30 -0
  117. package/build/src/v1alpha/index.d.ts +4 -0
  118. package/build/src/v1alpha/index.js +10 -2
  119. package/build/src/v1alpha/recommendation_service_client.d.ts +242 -3
  120. package/build/src/v1alpha/recommendation_service_client.js +353 -10
  121. package/build/src/v1alpha/schema_service_client.d.ts +383 -2
  122. package/build/src/v1alpha/schema_service_client.js +551 -10
  123. package/build/src/v1alpha/search_service_client.d.ts +269 -17
  124. package/build/src/v1alpha/search_service_client.js +373 -20
  125. package/build/src/v1alpha/search_tuning_service_client.d.ts +384 -3
  126. package/build/src/v1alpha/search_tuning_service_client.js +551 -10
  127. package/build/src/v1alpha/serving_config_service_client.d.ts +1369 -0
  128. package/build/src/v1alpha/serving_config_service_client.js +1935 -0
  129. package/build/src/v1alpha/serving_config_service_client_config.json +38 -0
  130. package/build/src/v1alpha/site_search_engine_service_client.d.ts +383 -2
  131. package/build/src/v1alpha/site_search_engine_service_client.js +551 -10
  132. package/build/src/v1alpha/user_event_service_client.d.ts +383 -2
  133. package/build/src/v1alpha/user_event_service_client.js +551 -10
  134. package/build/src/v1beta/completion_service_client.d.ts +708 -7
  135. package/build/src/v1beta/completion_service_client.js +1015 -11
  136. package/build/src/v1beta/completion_service_client_config.json +10 -0
  137. package/build/src/v1beta/conversational_search_service_client.d.ts +420 -3
  138. package/build/src/v1beta/conversational_search_service_client.js +570 -9
  139. package/build/src/v1beta/data_store_service_client.d.ts +1508 -0
  140. package/build/src/v1beta/data_store_service_client.js +2070 -0
  141. package/build/src/v1beta/data_store_service_client_config.json +46 -0
  142. package/build/src/v1beta/document_service_client.d.ts +566 -2
  143. package/build/src/v1beta/document_service_client.js +810 -11
  144. package/build/src/v1beta/engine_service_client.d.ts +1432 -0
  145. package/build/src/v1beta/engine_service_client.js +2032 -0
  146. package/build/src/v1beta/engine_service_client_config.json +46 -0
  147. package/build/src/v1beta/index.d.ts +5 -0
  148. package/build/src/v1beta/index.js +11 -1
  149. package/build/src/v1beta/recommendation_service_client.d.ts +495 -5
  150. package/build/src/v1beta/recommendation_service_client.js +674 -9
  151. package/build/src/v1beta/schema_service_client.d.ts +491 -2
  152. package/build/src/v1beta/schema_service_client.js +706 -11
  153. package/build/src/v1beta/search_service_client.d.ts +620 -29
  154. package/build/src/v1beta/search_service_client.js +772 -27
  155. package/build/src/v1beta/search_tuning_service_client.d.ts +1196 -0
  156. package/build/src/v1beta/search_tuning_service_client.js +1781 -0
  157. package/build/src/v1beta/search_tuning_service_client_config.json +30 -0
  158. package/build/src/v1beta/serving_config_service_client.d.ts +1217 -0
  159. package/build/src/v1beta/serving_config_service_client.js +1724 -0
  160. package/build/src/v1beta/serving_config_service_client_config.json +38 -0
  161. package/build/src/v1beta/site_search_engine_service_client.d.ts +1787 -0
  162. package/build/src/v1beta/site_search_engine_service_client.js +2375 -0
  163. package/build/src/v1beta/site_search_engine_service_client_config.json +74 -0
  164. package/build/src/v1beta/user_event_service_client.d.ts +491 -2
  165. package/build/src/v1beta/user_event_service_client.js +706 -11
  166. package/package.json +3 -3
@@ -48,6 +48,10 @@ service SearchService {
48
48
  post: "/v1/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:search"
49
49
  body: "*"
50
50
  }
51
+ additional_bindings {
52
+ post: "/v1/{serving_config=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:search"
53
+ body: "*"
54
+ }
51
55
  };
52
56
  }
53
57
  }
@@ -317,6 +321,28 @@ message SearchRequest {
317
321
  // A specification for configuring a summary returned in a search
318
322
  // response.
319
323
  message SummarySpec {
324
+ // Specification of the prompt to use with the model.
325
+ message ModelPromptSpec {
326
+ // Text at the beginning of the prompt that instructs the assistant.
327
+ // Examples are available in the user guide.
328
+ string preamble = 1;
329
+ }
330
+
331
+ // Specification of the model.
332
+ message ModelSpec {
333
+ // The model version used to generate the summary.
334
+ //
335
+ // Supported values are:
336
+ //
337
+ // * `stable`: string. Default value when no value is specified. Uses a
338
+ // generally available, fine-tuned version of the text-bison@001
339
+ // model.
340
+ // * `preview`: string. (Public preview) Uses a fine-tuned version of
341
+ // the text-bison@002 model. This model works only for summaries in
342
+ // English.
343
+ string version = 1;
344
+ }
345
+
320
346
  // The number of top results to generate the summary from. If the number
321
347
  // of results returned is less than `summaryResultCount`, the summary is
322
348
  // generated from all of the results.
@@ -368,9 +394,18 @@ message SearchRequest {
368
394
  // fallback messages instead.
369
395
  bool ignore_non_summary_seeking_query = 4;
370
396
 
397
+ // If specified, the spec will be used to modify the prompt provided to
398
+ // the LLM.
399
+ ModelPromptSpec model_prompt_spec = 5;
400
+
371
401
  // Language code for Summary. Use language tags defined by
372
- // [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
402
+ // [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
403
+ // Note: This is an experimental feature.
373
404
  string language_code = 6;
405
+
406
+ // If specified, the spec will be used to modify the model specification
407
+ // provided to the LLM.
408
+ ModelSpec model_spec = 7;
374
409
  }
375
410
 
376
411
  // If `snippetSpec` is not specified, snippets are not included in the
@@ -383,6 +418,8 @@ message SearchRequest {
383
418
  }
384
419
 
385
420
  // Required. The resource name of the Search serving config, such as
421
+ // `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
422
+ // or
386
423
  // `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
387
424
  // This field is used to identify the serving configuration name, set
388
425
  // of models used to make the search.
@@ -440,12 +477,37 @@ message SearchRequest {
440
477
  // expression is case-sensitive.
441
478
  //
442
479
  // If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
480
+ //
481
+ // Filtering in Vertex AI Search is done by mapping the LHS filter key to a
482
+ // key property defined in the Vertex AI Search backend -- this mapping is
483
+ // defined by the customer in their schema. For example a media customer might
484
+ // have a field 'name' in their schema. In this case the filter would look
485
+ // like this: filter --> name:'ANY("king kong")'
486
+ //
487
+ // For more information about filtering including syntax and filter
488
+ // operators, see
489
+ // [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
443
490
  string filter = 7;
444
491
 
492
+ // The default filter that is applied when a user performs a search without
493
+ // checking any filters on the search page.
494
+ //
495
+ // The filter applied to every search request when quality improvement such as
496
+ // query expansion is needed. In the case a query does not have a sufficient
497
+ // amount of results this filter will be used to determine whether or not to
498
+ // enable the query expansion flow. The original filter will still be used for
499
+ // the query expanded search.
500
+ // This field is strongly recommended to achieve high search quality.
501
+ //
502
+ // For more information about filter syntax, see
503
+ // [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter].
504
+ string canonical_filter = 29;
505
+
445
506
  // The order in which documents are returned. Documents can be ordered by
446
507
  // a field in an [Document][google.cloud.discoveryengine.v1.Document] object.
447
508
  // Leave it unset if ordered by relevance. `order_by` expression is
448
- // case-sensitive.
509
+ // case-sensitive. For more information on ordering, see
510
+ // [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
449
511
  //
450
512
  // If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
451
513
  string order_by = 8;
@@ -463,6 +525,8 @@ message SearchRequest {
463
525
  repeated FacetSpec facet_specs = 9;
464
526
 
465
527
  // Boost specification to boost certain documents.
528
+ // For more information on boosting, see
529
+ // [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
466
530
  BoostSpec boost_spec = 10;
467
531
 
468
532
  // Additional search parameters.
@@ -471,9 +535,17 @@ message SearchRequest {
471
535
  //
472
536
  // * `user_country_code`: string. Default empty. If set to non-empty, results
473
537
  // are restricted or boosted based on the location provided.
538
+ // Example:
539
+ // user_country_code: "au"
540
+ //
541
+ // For available codes see [Country
542
+ // Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
543
+ //
474
544
  // * `search_type`: double. Default empty. Enables non-webpage searching
475
- // depending on the value. The only valid non-default value is 1,
476
- // which enables image searching.
545
+ // depending on the value. The only valid non-default value is 1,
546
+ // which enables image searching.
547
+ // Example:
548
+ // search_type: 1
477
549
  map<string, google.protobuf.Value> params = 11;
478
550
 
479
551
  // The query expansion specification that specifies the conditions under which
@@ -585,6 +657,64 @@ message SearchResponse {
585
657
  repeated float scores = 2;
586
658
  }
587
659
 
660
+ // Citation metadata.
661
+ message CitationMetadata {
662
+ // Citations for segments.
663
+ repeated Citation citations = 1;
664
+ }
665
+
666
+ // Citation info for a segment.
667
+ message Citation {
668
+ // Index indicates the start of the segment, measured in bytes/unicode.
669
+ int64 start_index = 1;
670
+
671
+ // End of the attributed segment, exclusive.
672
+ int64 end_index = 2;
673
+
674
+ // Citation sources for the attributed segment.
675
+ repeated CitationSource sources = 3;
676
+ }
677
+
678
+ // Citation source.
679
+ message CitationSource {
680
+ // Document reference index from SummaryWithMetadata.references.
681
+ // It is 0-indexed and the value will be zero if the reference_index is
682
+ // not set explicitly.
683
+ int64 reference_index = 4;
684
+ }
685
+
686
+ // Document reference.
687
+ message Reference {
688
+ // Title of the document.
689
+ string title = 1;
690
+
691
+ // Required.
692
+ // [Document.name][google.cloud.discoveryengine.v1.Document.name] of the
693
+ // document. Full resource name of the referenced document, in the format
694
+ // `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`.
695
+ string document = 2 [
696
+ (google.api.field_behavior) = REQUIRED,
697
+ (google.api.resource_reference) = {
698
+ type: "discoveryengine.googleapis.com/Document"
699
+ }
700
+ ];
701
+
702
+ // Cloud Storage or HTTP uri for the document.
703
+ string uri = 3;
704
+ }
705
+
706
+ // Summary with metadata information.
707
+ message SummaryWithMetadata {
708
+ // Summary text with no citation information.
709
+ string summary = 1;
710
+
711
+ // Citation metadata for given summary.
712
+ CitationMetadata citation_metadata = 2;
713
+
714
+ // Document References.
715
+ repeated Reference references = 3;
716
+ }
717
+
588
718
  // An Enum for summary-skipped reasons.
589
719
  enum SummarySkippedReason {
590
720
  // Default value. The summary skipped reason is not specified.
@@ -633,6 +763,9 @@ message SearchResponse {
633
763
  // A collection of Safety Attribute categories and their associated
634
764
  // confidence scores.
635
765
  SafetyAttributes safety_attributes = 3;
766
+
767
+ // Summary with metadata information.
768
+ SummaryWithMetadata summary_with_metadata = 4;
636
769
  }
637
770
 
638
771
  // Information describing query expansion including whether expansion has
@@ -0,0 +1,170 @@
1
+ // Copyright 2022 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.cloud.discoveryengine.v1;
18
+
19
+ import "google/api/field_behavior.proto";
20
+ import "google/api/resource.proto";
21
+ import "google/protobuf/timestamp.proto";
22
+
23
+ option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1";
24
+ option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb";
25
+ option java_multiple_files = true;
26
+ option java_outer_classname = "SiteSearchEngineProto";
27
+ option java_package = "com.google.cloud.discoveryengine.v1";
28
+ option objc_class_prefix = "DISCOVERYENGINE";
29
+ option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1";
30
+ option ruby_package = "Google::Cloud::DiscoveryEngine::V1";
31
+
32
+ // SiteSearchEngine captures DataStore level site search persisting
33
+ // configurations. It is a singleton value per data store.
34
+ message SiteSearchEngine {
35
+ option (google.api.resource) = {
36
+ type: "discoveryengine.googleapis.com/SiteSearchEngine"
37
+ pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine"
38
+ pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine"
39
+ };
40
+
41
+ // The fully qualified resource name of the site search engine.
42
+ // Format: `projects/*/locations/*/dataStores/*/siteSearchEngine`
43
+ string name = 1;
44
+ }
45
+
46
+ // A target site for the SiteSearchEngine.
47
+ message TargetSite {
48
+ option (google.api.resource) = {
49
+ type: "discoveryengine.googleapis.com/TargetSite"
50
+ pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}"
51
+ pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}"
52
+ };
53
+
54
+ // Site search indexing failure reasons.
55
+ message FailureReason {
56
+ // Failed due to insufficient quota.
57
+ message QuotaFailure {
58
+ // This number is an estimation on how much total quota this project needs
59
+ // to successfully complete indexing.
60
+ int64 total_required_quota = 1;
61
+ }
62
+
63
+ // Failure reason.
64
+ oneof failure {
65
+ // Failed due to insufficient quota.
66
+ QuotaFailure quota_failure = 1;
67
+ }
68
+ }
69
+
70
+ // Possible target site types.
71
+ enum Type {
72
+ // This value is unused. In this case, server behavior defaults to
73
+ // [Type.INCLUDE][google.cloud.discoveryengine.v1.TargetSite.Type.INCLUDE].
74
+ TYPE_UNSPECIFIED = 0;
75
+
76
+ // Include the target site.
77
+ INCLUDE = 1;
78
+
79
+ // Exclude the target site.
80
+ EXCLUDE = 2;
81
+ }
82
+
83
+ // Target site indexing status enumeration.
84
+ enum IndexingStatus {
85
+ // Defaults to SUCCEEDED.
86
+ INDEXING_STATUS_UNSPECIFIED = 0;
87
+
88
+ // The target site is in the update queue and will be picked up by indexing
89
+ // pipeline.
90
+ PENDING = 1;
91
+
92
+ // The target site fails to be indexed.
93
+ FAILED = 2;
94
+
95
+ // The target site has been indexed.
96
+ SUCCEEDED = 3;
97
+
98
+ // The previously indexed target site has been marked to be deleted. This is
99
+ // a transitioning state which will resulted in either:
100
+ // 1. target site deleted if unindexing is successful;
101
+ // 2. state reverts to SUCCEEDED if the unindexing fails.
102
+ DELETING = 4;
103
+ }
104
+
105
+ // Output only. The fully qualified resource name of the target site.
106
+ // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`
107
+ // The `target_site_id` is system-generated.
108
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
109
+
110
+ // Required. Input only. The user provided URI pattern from which the
111
+ // `generated_uri_pattern` is generated.
112
+ string provided_uri_pattern = 2 [
113
+ (google.api.field_behavior) = REQUIRED,
114
+ (google.api.field_behavior) = INPUT_ONLY
115
+ ];
116
+
117
+ // The type of the target site, e.g., whether the site is to be included or
118
+ // excluded.
119
+ Type type = 3;
120
+
121
+ // Input only. If set to false, a uri_pattern is generated to include all
122
+ // pages whose address contains the provided_uri_pattern. If set to true, an
123
+ // uri_pattern is generated to try to be an exact match of the
124
+ // provided_uri_pattern or just the specific page if the provided_uri_pattern
125
+ // is a specific one. provided_uri_pattern is always normalized to
126
+ // generate the URI pattern to be used by the search engine.
127
+ bool exact_match = 6 [(google.api.field_behavior) = INPUT_ONLY];
128
+
129
+ // Output only. This is system-generated based on the provided_uri_pattern.
130
+ string generated_uri_pattern = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
131
+
132
+ // Output only. Site ownership and validity verification status.
133
+ SiteVerificationInfo site_verification_info = 7
134
+ [(google.api.field_behavior) = OUTPUT_ONLY];
135
+
136
+ // Output only. Indexing status.
137
+ IndexingStatus indexing_status = 8
138
+ [(google.api.field_behavior) = OUTPUT_ONLY];
139
+
140
+ // Output only. The target site's last updated time.
141
+ google.protobuf.Timestamp update_time = 5
142
+ [(google.api.field_behavior) = OUTPUT_ONLY];
143
+
144
+ // Output only. Failure reason.
145
+ FailureReason failure_reason = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
146
+ }
147
+
148
+ // Verification information for target sites in advanced site search.
149
+ message SiteVerificationInfo {
150
+ // Site verification state.
151
+ enum SiteVerificationState {
152
+ // Defaults to VERIFIED.
153
+ SITE_VERIFICATION_STATE_UNSPECIFIED = 0;
154
+
155
+ // Site ownership verified.
156
+ VERIFIED = 1;
157
+
158
+ // Site ownership pending verification or verification failed.
159
+ UNVERIFIED = 2;
160
+
161
+ // Site exempt from verification, e.g., a public website that opens to all.
162
+ EXEMPTED = 3;
163
+ }
164
+
165
+ // Site verification state indicating the ownership and validity.
166
+ SiteVerificationState site_verification_state = 1;
167
+
168
+ // Latest site verification time.
169
+ google.protobuf.Timestamp verify_time = 2;
170
+ }