google-cloud-discovery_engine-v1 2.3.0 → 2.4.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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +4 -4
  4. data/lib/google/cloud/discovery_engine/v1/assistant_service/client.rb +509 -0
  5. data/lib/google/cloud/discovery_engine/v1/assistant_service/credentials.rb +47 -0
  6. data/lib/google/cloud/discovery_engine/v1/assistant_service/paths.rb +169 -0
  7. data/lib/google/cloud/discovery_engine/v1/assistant_service/rest/client.rb +478 -0
  8. data/lib/google/cloud/discovery_engine/v1/assistant_service/rest/service_stub.rb +137 -0
  9. data/lib/google/cloud/discovery_engine/v1/assistant_service/rest.rb +52 -0
  10. data/lib/google/cloud/discovery_engine/v1/assistant_service.rb +55 -0
  11. data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +5 -5
  12. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +5 -5
  13. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +16 -4
  14. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +16 -4
  15. data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +2 -2
  16. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +2 -2
  17. data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +11 -11
  18. data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +11 -11
  19. data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/client.rb +2 -2
  20. data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/rest/client.rb +2 -2
  21. data/lib/google/cloud/discovery_engine/v1/rest.rb +4 -2
  22. data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +16 -28
  23. data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +16 -28
  24. data/lib/google/cloud/discovery_engine/v1/session_service/client.rb +920 -0
  25. data/lib/google/cloud/discovery_engine/v1/session_service/credentials.rb +47 -0
  26. data/lib/google/cloud/discovery_engine/v1/session_service/paths.rb +330 -0
  27. data/lib/google/cloud/discovery_engine/v1/session_service/rest/client.rb +859 -0
  28. data/lib/google/cloud/discovery_engine/v1/session_service/rest/service_stub.rb +462 -0
  29. data/lib/google/cloud/discovery_engine/v1/session_service/rest.rb +52 -0
  30. data/lib/google/cloud/discovery_engine/v1/session_service.rb +55 -0
  31. data/lib/google/cloud/discovery_engine/v1/user_event_service/client.rb +3 -3
  32. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/client.rb +3 -3
  33. data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
  34. data/lib/google/cloud/discovery_engine/v1.rb +5 -3
  35. data/lib/google/cloud/discoveryengine/v1/assist_answer_pb.rb +59 -0
  36. data/lib/google/cloud/discoveryengine/v1/assistant_pb.rb +45 -0
  37. data/lib/google/cloud/discoveryengine/v1/assistant_service_pb.rb +62 -0
  38. data/lib/google/cloud/discoveryengine/v1/assistant_service_services_pb.rb +45 -0
  39. data/lib/google/cloud/discoveryengine/v1/session_pb.rb +1 -1
  40. data/lib/google/cloud/discoveryengine/v1/session_service_pb.rb +49 -0
  41. data/lib/google/cloud/discoveryengine/v1/session_service_services_pb.rb +64 -0
  42. data/proto_docs/google/cloud/discoveryengine/v1/assist_answer.rb +278 -0
  43. data/proto_docs/google/cloud/discoveryengine/v1/assistant.rb +39 -0
  44. data/proto_docs/google/cloud/discoveryengine/v1/assistant_service.rb +207 -0
  45. data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +15 -3
  46. data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +8 -14
  47. data/proto_docs/google/cloud/discoveryengine/v1/session.rb +20 -4
  48. metadata +24 -1
@@ -228,13 +228,13 @@ module Google
228
228
  # Resource name of the CmekConfig to use for protecting this Identity
229
229
  # Mapping Store.
230
230
  #
231
- # Note: The following fields are mutually exclusive: `cmek_config_name`, `disable_cmek`. If a field in that set is populated, all other fields in the set will automatically be cleared.
231
+ # Note: The following parameters are mutually exclusive: `cmek_config_name`, `disable_cmek`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
232
232
  # @param disable_cmek [::Boolean]
233
233
  # Identity Mapping Store without CMEK protections. If a default CmekConfig
234
234
  # is set for the project, setting this field will override the default
235
235
  # CmekConfig as well.
236
236
  #
237
- # Note: The following fields are mutually exclusive: `disable_cmek`, `cmek_config_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.
237
+ # Note: The following parameters are mutually exclusive: `disable_cmek`, `cmek_config_name`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
238
238
  # @param parent [::String]
239
239
  # Required. The parent collection resource name, such as
240
240
  # `projects/{project}/locations/{location}`.
@@ -16,10 +16,11 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
+ require "google/cloud/discovery_engine/v1/search_service/rest"
20
+ require "google/cloud/discovery_engine/v1/assistant_service/rest"
19
21
  require "google/cloud/discovery_engine/v1/cmek_config_service/rest"
20
22
  require "google/cloud/discovery_engine/v1/completion_service/rest"
21
23
  require "google/cloud/discovery_engine/v1/control_service/rest"
22
- require "google/cloud/discovery_engine/v1/search_service/rest"
23
24
  require "google/cloud/discovery_engine/v1/conversational_search_service/rest"
24
25
  require "google/cloud/discovery_engine/v1/data_store_service/rest"
25
26
  require "google/cloud/discovery_engine/v1/document_service/rest"
@@ -32,6 +33,7 @@ require "google/cloud/discovery_engine/v1/recommendation_service/rest"
32
33
  require "google/cloud/discovery_engine/v1/schema_service/rest"
33
34
  require "google/cloud/discovery_engine/v1/search_tuning_service/rest"
34
35
  require "google/cloud/discovery_engine/v1/serving_config_service/rest"
36
+ require "google/cloud/discovery_engine/v1/session_service/rest"
35
37
  require "google/cloud/discovery_engine/v1/site_search_engine_service/rest"
36
38
  require "google/cloud/discovery_engine/v1/user_event_service/rest"
37
39
  require "google/cloud/discovery_engine/v1/user_license_service/rest"
@@ -46,7 +48,7 @@ module Google
46
48
  # @example
47
49
  #
48
50
  # require "google/cloud/discovery_engine/v1/rest"
49
- # client = ::Google::Cloud::DiscoveryEngine::V1::CmekConfigService::Rest::Client.new
51
+ # client = ::Google::Cloud::DiscoveryEngine::V1::SearchService::Rest::Client.new
50
52
  #
51
53
  module V1
52
54
  end
@@ -415,22 +415,16 @@ module Google
415
415
  # between /search API calls and /answer API calls.
416
416
  #
417
417
  # Example #1 (multi-turn /search API calls):
418
- # 1. Call /search API with the auto-session mode (see below).
419
- # 2. Call /search API with the session ID generated in the first call.
420
- # Here, the previous search query gets considered in query
421
- # standing. I.e., if the first query is "How did Alphabet do in 2022?"
422
- # and the current query is "How about 2023?", the current query will
423
- # be interpreted as "How did Alphabet do in 2023?".
418
+ # Call /search API with the session ID generated in the first call.
419
+ # Here, the previous search query gets considered in query
420
+ # standing. I.e., if the first query is "How did Alphabet do in 2022?"
421
+ # and the current query is "How about 2023?", the current query will
422
+ # be interpreted as "How did Alphabet do in 2023?".
424
423
  #
425
424
  # Example #2 (coordination between /search API calls and /answer API calls):
426
- # 1. Call /search API with the auto-session mode (see below).
427
- # 2. Call /answer API with the session ID generated in the first call.
428
- # Here, the answer generation happens in the context of the search
429
- # results from the first search call.
430
- #
431
- # Auto-session mode: when `projects/.../sessions/-` is used, a new session
432
- # gets automatically created. Otherwise, users can use the create-session API
433
- # to create a session manually.
425
+ # Call /answer API with the session ID generated in the first call.
426
+ # Here, the answer generation happens in the context of the search
427
+ # results from the first search call.
434
428
  #
435
429
  # Multi-turn Search feature is currently at private GA stage. Please use
436
430
  # v1alpha or v1beta version instead before we launch this feature to public
@@ -743,22 +737,16 @@ module Google
743
737
  # between /search API calls and /answer API calls.
744
738
  #
745
739
  # Example #1 (multi-turn /search API calls):
746
- # 1. Call /search API with the auto-session mode (see below).
747
- # 2. Call /search API with the session ID generated in the first call.
748
- # Here, the previous search query gets considered in query
749
- # standing. I.e., if the first query is "How did Alphabet do in 2022?"
750
- # and the current query is "How about 2023?", the current query will
751
- # be interpreted as "How did Alphabet do in 2023?".
740
+ # Call /search API with the session ID generated in the first call.
741
+ # Here, the previous search query gets considered in query
742
+ # standing. I.e., if the first query is "How did Alphabet do in 2022?"
743
+ # and the current query is "How about 2023?", the current query will
744
+ # be interpreted as "How did Alphabet do in 2023?".
752
745
  #
753
746
  # Example #2 (coordination between /search API calls and /answer API calls):
754
- # 1. Call /search API with the auto-session mode (see below).
755
- # 2. Call /answer API with the session ID generated in the first call.
756
- # Here, the answer generation happens in the context of the search
757
- # results from the first search call.
758
- #
759
- # Auto-session mode: when `projects/.../sessions/-` is used, a new session
760
- # gets automatically created. Otherwise, users can use the create-session API
761
- # to create a session manually.
747
+ # Call /answer API with the session ID generated in the first call.
748
+ # Here, the answer generation happens in the context of the search
749
+ # results from the first search call.
762
750
  #
763
751
  # Multi-turn Search feature is currently at private GA stage. Please use
764
752
  # v1alpha or v1beta version instead before we launch this feature to public
@@ -408,22 +408,16 @@ module Google
408
408
  # between /search API calls and /answer API calls.
409
409
  #
410
410
  # Example #1 (multi-turn /search API calls):
411
- # 1. Call /search API with the auto-session mode (see below).
412
- # 2. Call /search API with the session ID generated in the first call.
413
- # Here, the previous search query gets considered in query
414
- # standing. I.e., if the first query is "How did Alphabet do in 2022?"
415
- # and the current query is "How about 2023?", the current query will
416
- # be interpreted as "How did Alphabet do in 2023?".
411
+ # Call /search API with the session ID generated in the first call.
412
+ # Here, the previous search query gets considered in query
413
+ # standing. I.e., if the first query is "How did Alphabet do in 2022?"
414
+ # and the current query is "How about 2023?", the current query will
415
+ # be interpreted as "How did Alphabet do in 2023?".
417
416
  #
418
417
  # Example #2 (coordination between /search API calls and /answer API calls):
419
- # 1. Call /search API with the auto-session mode (see below).
420
- # 2. Call /answer API with the session ID generated in the first call.
421
- # Here, the answer generation happens in the context of the search
422
- # results from the first search call.
423
- #
424
- # Auto-session mode: when `projects/.../sessions/-` is used, a new session
425
- # gets automatically created. Otherwise, users can use the create-session API
426
- # to create a session manually.
418
+ # Call /answer API with the session ID generated in the first call.
419
+ # Here, the answer generation happens in the context of the search
420
+ # results from the first search call.
427
421
  #
428
422
  # Multi-turn Search feature is currently at private GA stage. Please use
429
423
  # v1alpha or v1beta version instead before we launch this feature to public
@@ -729,22 +723,16 @@ module Google
729
723
  # between /search API calls and /answer API calls.
730
724
  #
731
725
  # Example #1 (multi-turn /search API calls):
732
- # 1. Call /search API with the auto-session mode (see below).
733
- # 2. Call /search API with the session ID generated in the first call.
734
- # Here, the previous search query gets considered in query
735
- # standing. I.e., if the first query is "How did Alphabet do in 2022?"
736
- # and the current query is "How about 2023?", the current query will
737
- # be interpreted as "How did Alphabet do in 2023?".
726
+ # Call /search API with the session ID generated in the first call.
727
+ # Here, the previous search query gets considered in query
728
+ # standing. I.e., if the first query is "How did Alphabet do in 2022?"
729
+ # and the current query is "How about 2023?", the current query will
730
+ # be interpreted as "How did Alphabet do in 2023?".
738
731
  #
739
732
  # Example #2 (coordination between /search API calls and /answer API calls):
740
- # 1. Call /search API with the auto-session mode (see below).
741
- # 2. Call /answer API with the session ID generated in the first call.
742
- # Here, the answer generation happens in the context of the search
743
- # results from the first search call.
744
- #
745
- # Auto-session mode: when `projects/.../sessions/-` is used, a new session
746
- # gets automatically created. Otherwise, users can use the create-session API
747
- # to create a session manually.
733
+ # Call /answer API with the session ID generated in the first call.
734
+ # Here, the answer generation happens in the context of the search
735
+ # results from the first search call.
748
736
  #
749
737
  # Multi-turn Search feature is currently at private GA stage. Please use
750
738
  # v1alpha or v1beta version instead before we launch this feature to public