google-cloud-discovery_engine-v1 2.0.0 → 2.1.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 (109) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +2 -2
  3. data/lib/google/cloud/discovery_engine/v1/completion_service/operations.rb +2 -2
  4. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +1 -1
  5. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +1 -1
  6. data/lib/google/cloud/discovery_engine/v1/control_service/client.rb +2 -2
  7. data/lib/google/cloud/discovery_engine/v1/control_service/rest/client.rb +1 -1
  8. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +188 -6
  9. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +182 -5
  10. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb +72 -0
  11. data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +2 -2
  12. data/lib/google/cloud/discovery_engine/v1/data_store_service/operations.rb +2 -2
  13. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +1 -1
  14. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +1 -1
  15. data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +10 -4
  16. data/lib/google/cloud/discovery_engine/v1/document_service/operations.rb +2 -2
  17. data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +9 -3
  18. data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +1 -1
  19. data/lib/google/cloud/discovery_engine/v1/engine_service/client.rb +2 -2
  20. data/lib/google/cloud/discovery_engine/v1/engine_service/operations.rb +2 -2
  21. data/lib/google/cloud/discovery_engine/v1/engine_service/rest/client.rb +1 -1
  22. data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +1 -1
  23. data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/client.rb +3 -5
  24. data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/client.rb +2 -4
  25. data/lib/google/cloud/discovery_engine/v1/project_service/client.rb +2 -2
  26. data/lib/google/cloud/discovery_engine/v1/project_service/operations.rb +2 -2
  27. data/lib/google/cloud/discovery_engine/v1/project_service/rest/client.rb +1 -1
  28. data/lib/google/cloud/discovery_engine/v1/project_service/rest/operations.rb +1 -1
  29. data/lib/google/cloud/discovery_engine/v1/rank_service/client.rb +3 -3
  30. data/lib/google/cloud/discovery_engine/v1/rank_service/rest/client.rb +2 -2
  31. data/lib/google/cloud/discovery_engine/v1/recommendation_service/client.rb +5 -5
  32. data/lib/google/cloud/discovery_engine/v1/recommendation_service/rest/client.rb +4 -4
  33. data/lib/google/cloud/discovery_engine/v1/rest.rb +1 -0
  34. data/lib/google/cloud/discovery_engine/v1/schema_service/client.rb +2 -2
  35. data/lib/google/cloud/discovery_engine/v1/schema_service/operations.rb +2 -2
  36. data/lib/google/cloud/discovery_engine/v1/schema_service/rest/client.rb +1 -1
  37. data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +1 -1
  38. data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +46 -14
  39. data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +45 -13
  40. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/client.rb +2 -2
  41. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/operations.rb +2 -2
  42. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/client.rb +1 -1
  43. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/operations.rb +1 -1
  44. data/lib/google/cloud/discovery_engine/v1/serving_config_service/client.rb +484 -0
  45. data/lib/google/cloud/discovery_engine/v1/serving_config_service/credentials.rb +47 -0
  46. data/lib/google/cloud/discovery_engine/v1/serving_config_service/paths.rb +101 -0
  47. data/lib/google/cloud/discovery_engine/v1/serving_config_service/rest/client.rb +451 -0
  48. data/lib/google/cloud/discovery_engine/v1/serving_config_service/rest/service_stub.rb +159 -0
  49. data/lib/google/cloud/discovery_engine/v1/serving_config_service/rest.rb +53 -0
  50. data/lib/google/cloud/discovery_engine/v1/serving_config_service.rb +56 -0
  51. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/client.rb +318 -5
  52. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/operations.rb +2 -2
  53. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/paths.rb +49 -0
  54. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/client.rb +296 -4
  55. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +1 -1
  56. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/service_stub.rb +206 -0
  57. data/lib/google/cloud/discovery_engine/v1/user_event_service/client.rb +23 -11
  58. data/lib/google/cloud/discovery_engine/v1/user_event_service/operations.rb +2 -2
  59. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/client.rb +22 -10
  60. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +1 -1
  61. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/service_stub.rb +8 -0
  62. data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
  63. data/lib/google/cloud/discovery_engine/v1.rb +1 -0
  64. data/lib/google/cloud/discoveryengine/v1/answer_pb.rb +4 -1
  65. data/lib/google/cloud/discoveryengine/v1/common_pb.rb +4 -1
  66. data/lib/google/cloud/discoveryengine/v1/control_pb.rb +7 -1
  67. data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +12 -1
  68. data/lib/google/cloud/discoveryengine/v1/conversational_search_service_services_pb.rb +8 -0
  69. data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +2 -1
  70. data/lib/google/cloud/discoveryengine/v1/document_pb.rb +1 -1
  71. data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +1 -1
  72. data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_pb.rb +6 -1
  73. data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +1 -1
  74. data/lib/google/cloud/discoveryengine/v1/safety_pb.rb +47 -0
  75. data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +5 -1
  76. data/lib/google/cloud/discoveryengine/v1/serving_config_pb.rb +52 -0
  77. data/lib/google/cloud/discoveryengine/v1/serving_config_service_pb.rb +51 -0
  78. data/lib/google/cloud/discoveryengine/v1/serving_config_service_services_pb.rb +48 -0
  79. data/lib/google/cloud/discoveryengine/v1/session_pb.rb +3 -1
  80. data/lib/google/cloud/discoveryengine/v1/site_search_engine_pb.rb +2 -1
  81. data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_pb.rb +10 -1
  82. data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_services_pb.rb +7 -0
  83. data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +1 -1
  84. data/lib/google/cloud/discoveryengine/v1/user_event_service_pb.rb +1 -1
  85. data/proto_docs/google/api/client.rb +6 -0
  86. data/proto_docs/google/cloud/discoveryengine/v1/answer.rb +53 -2
  87. data/proto_docs/google/cloud/discoveryengine/v1/chunk.rb +2 -1
  88. data/proto_docs/google/cloud/discoveryengine/v1/common.rb +40 -0
  89. data/proto_docs/google/cloud/discoveryengine/v1/control.rb +122 -7
  90. data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +159 -2
  91. data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +25 -4
  92. data/proto_docs/google/cloud/discoveryengine/v1/document.rb +7 -2
  93. data/proto_docs/google/cloud/discoveryengine/v1/document_service.rb +1 -1
  94. data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +16 -3
  95. data/proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb +90 -12
  96. data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +19 -1
  97. data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +9 -5
  98. data/proto_docs/google/cloud/discoveryengine/v1/rank_service.rb +3 -1
  99. data/proto_docs/google/cloud/discoveryengine/v1/recommendation_service.rb +3 -3
  100. data/proto_docs/google/cloud/discoveryengine/v1/safety.rb +108 -0
  101. data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +109 -8
  102. data/proto_docs/google/cloud/discoveryengine/v1/serving_config.rb +261 -0
  103. data/proto_docs/google/cloud/discoveryengine/v1/serving_config_service.rb +44 -0
  104. data/proto_docs/google/cloud/discoveryengine/v1/session.rb +18 -0
  105. data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine.rb +19 -2
  106. data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine_service.rb +146 -4
  107. data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +34 -0
  108. data/proto_docs/google/cloud/discoveryengine/v1/user_event_service.rb +12 -4
  109. metadata +17 -3
@@ -217,7 +217,7 @@ module Google
217
217
  # @param options [::Gapic::CallOptions, ::Hash]
218
218
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
219
219
  #
220
- # @overload search(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, one_box_page_size: nil, data_store_specs: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, language_code: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil, search_as_you_type_spec: nil, session: nil, session_spec: nil)
220
+ # @overload search(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, one_box_page_size: nil, data_store_specs: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, language_code: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil, search_as_you_type_spec: nil, display_spec: nil, session: nil, session_spec: nil, relevance_threshold: nil, relevance_score_spec: nil)
221
221
  # Pass arguments to `search` via keyword arguments. Note that at
222
222
  # least one keyword argument is required. To specify no parameters, or to keep all
223
223
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -272,10 +272,13 @@ module Google
272
272
  # This applies to each OneBox type individually.
273
273
  # Default number is 10.
274
274
  # @param data_store_specs [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchRequest::DataStoreSpec, ::Hash>]
275
- # Specs defining dataStores to filter on in a search call and configurations
276
- # for those dataStores. This is only considered for engines with multiple
277
- # dataStores use case. For single dataStore within an engine, they should
278
- # use the specs at the top level.
275
+ # Specifications that define the specific
276
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}s to be searched,
277
+ # along with configurations for those data stores. This is only considered
278
+ # for {::Google::Cloud::DiscoveryEngine::V1::Engine Engine}s with multiple data
279
+ # stores. For engines with a single data store, the specs directly under
280
+ # {::Google::Cloud::DiscoveryEngine::V1::SearchRequest SearchRequest} should be
281
+ # used.
279
282
  # @param filter [::String]
280
283
  # The filter syntax consists of an expression language for constructing a
281
284
  # predicate from one or more fields of the documents being filtered. Filter
@@ -320,7 +323,7 @@ module Google
320
323
  # If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
321
324
  # @param user_info [::Google::Cloud::DiscoveryEngine::V1::UserInfo, ::Hash]
322
325
  # Information about the end user.
323
- # Highly recommended for analytics.
326
+ # Highly recommended for analytics and personalization.
324
327
  # {::Google::Cloud::DiscoveryEngine::V1::UserInfo#user_agent UserInfo.user_agent}
325
328
  # is used to deduce `device_type` for analytics.
326
329
  # @param language_code [::String]
@@ -402,6 +405,9 @@ module Google
402
405
  # Search as you type configuration. Only supported for the
403
406
  # {::Google::Cloud::DiscoveryEngine::V1::IndustryVertical::MEDIA IndustryVertical.MEDIA}
404
407
  # vertical.
408
+ # @param display_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::DisplaySpec, ::Hash]
409
+ # Optional. Config for display feature, like match highlighting on search
410
+ # results.
405
411
  # @param session [::String]
406
412
  # The session resource name. Optional.
407
413
  #
@@ -433,6 +439,16 @@ module Google
433
439
  # Session specification.
434
440
  #
435
441
  # Can be used only when `session` is set.
442
+ # @param relevance_threshold [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::RelevanceThreshold]
443
+ # The relevance threshold of the search results.
444
+ #
445
+ # Default to Google defined threshold, leveraging a balance of
446
+ # precision and recall to deliver both highly accurate results and
447
+ # comprehensive coverage of relevant information.
448
+ #
449
+ # This feature is not supported for healthcare search.
450
+ # @param relevance_score_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::RelevanceScoreSpec, ::Hash]
451
+ # Optional. The specification for returning the relevance score.
436
452
  #
437
453
  # @yield [response, operation] Access the result along with the RPC operation
438
454
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult>]
@@ -529,7 +545,7 @@ module Google
529
545
  # @param options [::Gapic::CallOptions, ::Hash]
530
546
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
531
547
  #
532
- # @overload search_lite(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, one_box_page_size: nil, data_store_specs: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, language_code: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil, search_as_you_type_spec: nil, session: nil, session_spec: nil)
548
+ # @overload search_lite(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, one_box_page_size: nil, data_store_specs: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, language_code: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil, search_as_you_type_spec: nil, display_spec: nil, session: nil, session_spec: nil, relevance_threshold: nil, relevance_score_spec: nil)
533
549
  # Pass arguments to `search_lite` via keyword arguments. Note that at
534
550
  # least one keyword argument is required. To specify no parameters, or to keep all
535
551
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -584,10 +600,13 @@ module Google
584
600
  # This applies to each OneBox type individually.
585
601
  # Default number is 10.
586
602
  # @param data_store_specs [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchRequest::DataStoreSpec, ::Hash>]
587
- # Specs defining dataStores to filter on in a search call and configurations
588
- # for those dataStores. This is only considered for engines with multiple
589
- # dataStores use case. For single dataStore within an engine, they should
590
- # use the specs at the top level.
603
+ # Specifications that define the specific
604
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}s to be searched,
605
+ # along with configurations for those data stores. This is only considered
606
+ # for {::Google::Cloud::DiscoveryEngine::V1::Engine Engine}s with multiple data
607
+ # stores. For engines with a single data store, the specs directly under
608
+ # {::Google::Cloud::DiscoveryEngine::V1::SearchRequest SearchRequest} should be
609
+ # used.
591
610
  # @param filter [::String]
592
611
  # The filter syntax consists of an expression language for constructing a
593
612
  # predicate from one or more fields of the documents being filtered. Filter
@@ -632,7 +651,7 @@ module Google
632
651
  # If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
633
652
  # @param user_info [::Google::Cloud::DiscoveryEngine::V1::UserInfo, ::Hash]
634
653
  # Information about the end user.
635
- # Highly recommended for analytics.
654
+ # Highly recommended for analytics and personalization.
636
655
  # {::Google::Cloud::DiscoveryEngine::V1::UserInfo#user_agent UserInfo.user_agent}
637
656
  # is used to deduce `device_type` for analytics.
638
657
  # @param language_code [::String]
@@ -714,6 +733,9 @@ module Google
714
733
  # Search as you type configuration. Only supported for the
715
734
  # {::Google::Cloud::DiscoveryEngine::V1::IndustryVertical::MEDIA IndustryVertical.MEDIA}
716
735
  # vertical.
736
+ # @param display_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::DisplaySpec, ::Hash]
737
+ # Optional. Config for display feature, like match highlighting on search
738
+ # results.
717
739
  # @param session [::String]
718
740
  # The session resource name. Optional.
719
741
  #
@@ -745,6 +767,16 @@ module Google
745
767
  # Session specification.
746
768
  #
747
769
  # Can be used only when `session` is set.
770
+ # @param relevance_threshold [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::RelevanceThreshold]
771
+ # The relevance threshold of the search results.
772
+ #
773
+ # Default to Google defined threshold, leveraging a balance of
774
+ # precision and recall to deliver both highly accurate results and
775
+ # comprehensive coverage of relevant information.
776
+ #
777
+ # This feature is not supported for healthcare search.
778
+ # @param relevance_score_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::RelevanceScoreSpec, ::Hash]
779
+ # Optional. The specification for returning the relevance score.
748
780
  #
749
781
  # @yield [response, operation] Access the result along with the RPC operation
750
782
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult>]
@@ -921,8 +953,8 @@ module Google
921
953
 
922
954
  config_attr :endpoint, nil, ::String, nil
923
955
  config_attr :credentials, nil do |value|
924
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
925
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
956
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
957
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
926
958
  allowed.any? { |klass| klass === value }
927
959
  end
928
960
  config_attr :scope, nil, ::String, ::Array, nil
@@ -210,7 +210,7 @@ module Google
210
210
  # @param options [::Gapic::CallOptions, ::Hash]
211
211
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
212
212
  #
213
- # @overload search(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, one_box_page_size: nil, data_store_specs: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, language_code: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil, search_as_you_type_spec: nil, session: nil, session_spec: nil)
213
+ # @overload search(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, one_box_page_size: nil, data_store_specs: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, language_code: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil, search_as_you_type_spec: nil, display_spec: nil, session: nil, session_spec: nil, relevance_threshold: nil, relevance_score_spec: nil)
214
214
  # Pass arguments to `search` via keyword arguments. Note that at
215
215
  # least one keyword argument is required. To specify no parameters, or to keep all
216
216
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -265,10 +265,13 @@ module Google
265
265
  # This applies to each OneBox type individually.
266
266
  # Default number is 10.
267
267
  # @param data_store_specs [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchRequest::DataStoreSpec, ::Hash>]
268
- # Specs defining dataStores to filter on in a search call and configurations
269
- # for those dataStores. This is only considered for engines with multiple
270
- # dataStores use case. For single dataStore within an engine, they should
271
- # use the specs at the top level.
268
+ # Specifications that define the specific
269
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}s to be searched,
270
+ # along with configurations for those data stores. This is only considered
271
+ # for {::Google::Cloud::DiscoveryEngine::V1::Engine Engine}s with multiple data
272
+ # stores. For engines with a single data store, the specs directly under
273
+ # {::Google::Cloud::DiscoveryEngine::V1::SearchRequest SearchRequest} should be
274
+ # used.
272
275
  # @param filter [::String]
273
276
  # The filter syntax consists of an expression language for constructing a
274
277
  # predicate from one or more fields of the documents being filtered. Filter
@@ -313,7 +316,7 @@ module Google
313
316
  # If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
314
317
  # @param user_info [::Google::Cloud::DiscoveryEngine::V1::UserInfo, ::Hash]
315
318
  # Information about the end user.
316
- # Highly recommended for analytics.
319
+ # Highly recommended for analytics and personalization.
317
320
  # {::Google::Cloud::DiscoveryEngine::V1::UserInfo#user_agent UserInfo.user_agent}
318
321
  # is used to deduce `device_type` for analytics.
319
322
  # @param language_code [::String]
@@ -395,6 +398,9 @@ module Google
395
398
  # Search as you type configuration. Only supported for the
396
399
  # {::Google::Cloud::DiscoveryEngine::V1::IndustryVertical::MEDIA IndustryVertical.MEDIA}
397
400
  # vertical.
401
+ # @param display_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::DisplaySpec, ::Hash]
402
+ # Optional. Config for display feature, like match highlighting on search
403
+ # results.
398
404
  # @param session [::String]
399
405
  # The session resource name. Optional.
400
406
  #
@@ -426,6 +432,16 @@ module Google
426
432
  # Session specification.
427
433
  #
428
434
  # Can be used only when `session` is set.
435
+ # @param relevance_threshold [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::RelevanceThreshold]
436
+ # The relevance threshold of the search results.
437
+ #
438
+ # Default to Google defined threshold, leveraging a balance of
439
+ # precision and recall to deliver both highly accurate results and
440
+ # comprehensive coverage of relevant information.
441
+ #
442
+ # This feature is not supported for healthcare search.
443
+ # @param relevance_score_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::RelevanceScoreSpec, ::Hash]
444
+ # Optional. The specification for returning the relevance score.
429
445
  # @yield [result, operation] Access the result along with the TransportOperation object
430
446
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult>]
431
447
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -515,7 +531,7 @@ module Google
515
531
  # @param options [::Gapic::CallOptions, ::Hash]
516
532
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
517
533
  #
518
- # @overload search_lite(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, one_box_page_size: nil, data_store_specs: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, language_code: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil, search_as_you_type_spec: nil, session: nil, session_spec: nil)
534
+ # @overload search_lite(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, one_box_page_size: nil, data_store_specs: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, language_code: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil, search_as_you_type_spec: nil, display_spec: nil, session: nil, session_spec: nil, relevance_threshold: nil, relevance_score_spec: nil)
519
535
  # Pass arguments to `search_lite` via keyword arguments. Note that at
520
536
  # least one keyword argument is required. To specify no parameters, or to keep all
521
537
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -570,10 +586,13 @@ module Google
570
586
  # This applies to each OneBox type individually.
571
587
  # Default number is 10.
572
588
  # @param data_store_specs [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchRequest::DataStoreSpec, ::Hash>]
573
- # Specs defining dataStores to filter on in a search call and configurations
574
- # for those dataStores. This is only considered for engines with multiple
575
- # dataStores use case. For single dataStore within an engine, they should
576
- # use the specs at the top level.
589
+ # Specifications that define the specific
590
+ # {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}s to be searched,
591
+ # along with configurations for those data stores. This is only considered
592
+ # for {::Google::Cloud::DiscoveryEngine::V1::Engine Engine}s with multiple data
593
+ # stores. For engines with a single data store, the specs directly under
594
+ # {::Google::Cloud::DiscoveryEngine::V1::SearchRequest SearchRequest} should be
595
+ # used.
577
596
  # @param filter [::String]
578
597
  # The filter syntax consists of an expression language for constructing a
579
598
  # predicate from one or more fields of the documents being filtered. Filter
@@ -618,7 +637,7 @@ module Google
618
637
  # If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
619
638
  # @param user_info [::Google::Cloud::DiscoveryEngine::V1::UserInfo, ::Hash]
620
639
  # Information about the end user.
621
- # Highly recommended for analytics.
640
+ # Highly recommended for analytics and personalization.
622
641
  # {::Google::Cloud::DiscoveryEngine::V1::UserInfo#user_agent UserInfo.user_agent}
623
642
  # is used to deduce `device_type` for analytics.
624
643
  # @param language_code [::String]
@@ -700,6 +719,9 @@ module Google
700
719
  # Search as you type configuration. Only supported for the
701
720
  # {::Google::Cloud::DiscoveryEngine::V1::IndustryVertical::MEDIA IndustryVertical.MEDIA}
702
721
  # vertical.
722
+ # @param display_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::DisplaySpec, ::Hash]
723
+ # Optional. Config for display feature, like match highlighting on search
724
+ # results.
703
725
  # @param session [::String]
704
726
  # The session resource name. Optional.
705
727
  #
@@ -731,6 +753,16 @@ module Google
731
753
  # Session specification.
732
754
  #
733
755
  # Can be used only when `session` is set.
756
+ # @param relevance_threshold [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::RelevanceThreshold]
757
+ # The relevance threshold of the search results.
758
+ #
759
+ # Default to Google defined threshold, leveraging a balance of
760
+ # precision and recall to deliver both highly accurate results and
761
+ # comprehensive coverage of relevant information.
762
+ #
763
+ # This feature is not supported for healthcare search.
764
+ # @param relevance_score_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::RelevanceScoreSpec, ::Hash]
765
+ # Optional. The specification for returning the relevance score.
734
766
  # @yield [result, operation] Access the result along with the TransportOperation object
735
767
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult>]
736
768
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -891,7 +923,7 @@ module Google
891
923
 
892
924
  config_attr :endpoint, nil, ::String, nil
893
925
  config_attr :credentials, nil do |value|
894
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
926
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
895
927
  allowed.any? { |klass| klass === value }
896
928
  end
897
929
  config_attr :scope, nil, ::String, ::Array, nil
@@ -513,8 +513,8 @@ module Google
513
513
 
514
514
  config_attr :endpoint, nil, ::String, nil
515
515
  config_attr :credentials, nil do |value|
516
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
517
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
516
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
517
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
518
518
  allowed.any? { |klass| klass === value }
519
519
  end
520
520
  config_attr :scope, nil, ::String, ::Array, nil
@@ -701,8 +701,8 @@ module Google
701
701
 
702
702
  config_attr :endpoint, nil, ::String, nil
703
703
  config_attr :credentials, nil do |value|
704
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
705
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
704
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
705
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
706
706
  allowed.any? { |klass| klass === value }
707
707
  end
708
708
  config_attr :scope, nil, ::String, ::Array, nil
@@ -483,7 +483,7 @@ module Google
483
483
 
484
484
  config_attr :endpoint, nil, ::String, nil
485
485
  config_attr :credentials, nil do |value|
486
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
486
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
487
487
  allowed.any? { |klass| klass === value }
488
488
  end
489
489
  config_attr :scope, nil, ::String, ::Array, nil
@@ -556,7 +556,7 @@ module Google
556
556
 
557
557
  config_attr :endpoint, nil, ::String, nil
558
558
  config_attr :credentials, nil do |value|
559
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
559
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
560
560
  allowed.any? { |klass| klass === value }
561
561
  end
562
562
  config_attr :scope, nil, ::String, ::Array, nil