google-cloud-discovery_engine-v1beta 0.20.1 → 0.21.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 (23) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +27 -7
  3. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +27 -7
  4. data/lib/google/cloud/discovery_engine/v1beta/rest.rb +1 -0
  5. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +16 -28
  6. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +16 -28
  7. data/lib/google/cloud/discovery_engine/v1beta/session_service/client.rb +920 -0
  8. data/lib/google/cloud/discovery_engine/v1beta/session_service/credentials.rb +47 -0
  9. data/lib/google/cloud/discovery_engine/v1beta/session_service/paths.rb +330 -0
  10. data/lib/google/cloud/discovery_engine/v1beta/session_service/rest/client.rb +859 -0
  11. data/lib/google/cloud/discovery_engine/v1beta/session_service/rest/service_stub.rb +462 -0
  12. data/lib/google/cloud/discovery_engine/v1beta/session_service/rest.rb +52 -0
  13. data/lib/google/cloud/discovery_engine/v1beta/session_service.rb +55 -0
  14. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  15. data/lib/google/cloud/discovery_engine/v1beta.rb +1 -0
  16. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +1 -1
  17. data/lib/google/cloud/discoveryengine/v1beta/session_pb.rb +3 -1
  18. data/lib/google/cloud/discoveryengine/v1beta/session_service_pb.rb +49 -0
  19. data/lib/google/cloud/discoveryengine/v1beta/session_service_services_pb.rb +64 -0
  20. data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +26 -5
  21. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +8 -14
  22. data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +38 -4
  23. metadata +10 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2110b6076063952f57281b6236885c6768e4c30c4449ce59696442fc19ccb74b
4
- data.tar.gz: 5d1177c31411721a942f882ffe161766d437a50199fe8014200e17fb9c69e359
3
+ metadata.gz: 225df45cd6bd848d2256f00fb2165e3be81bac5c084e28be3bb9688cb94eed82
4
+ data.tar.gz: 5527ba6246f256b79763414ae684f266f4f882dca319f33371bce5b269cbf20d
5
5
  SHA512:
6
- metadata.gz: 4aaf723159521cb49de8b0ed2f979bdcca4fae27b3783f006c2bf2c61829c1930597a7e244f48d60aa97066092abdc5ef655468b7ad4a5017ff16f6c0970e2b9
7
- data.tar.gz: 723b3782504a8d6d9c755ad1a683741b69d8616a37ce1108903b3a6dfec66192114c6fb7e9306b326ebe6f2965dcf4f4cdbdfa8b498276175b52e1cb9b134872
6
+ metadata.gz: f17a2e5602e3aff5c862f5595549b94e0ccb40d48157cd72efd63fbc6574d78a6cdeab2e859c58aa90b1d48d3c5d5daa1d2b808ba268fcd2329de6a1ee97dadd
7
+ data.tar.gz: 31aea61137e12ae88a0c64e6c0801025ffb7b13a4b992e06f690fcdd8e09078ea8b29aee7991360eda0d62bc5f389328c340bb196c858f37a580a97ef83e4b8d
@@ -1355,7 +1355,7 @@ module Google
1355
1355
  # @param options [::Gapic::CallOptions, ::Hash]
1356
1356
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1357
1357
  #
1358
- # @overload get_session(name: nil)
1358
+ # @overload get_session(name: nil, include_answer_details: nil)
1359
1359
  # Pass arguments to `get_session` via keyword arguments. Note that at
1360
1360
  # least one keyword argument is required. To specify no parameters, or to keep all
1361
1361
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1363,6 +1363,9 @@ module Google
1363
1363
  # @param name [::String]
1364
1364
  # Required. The resource name of the Session to get. Format:
1365
1365
  # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
1366
+ # @param include_answer_details [::Boolean]
1367
+ # Optional. If set to true, the full session including all answer details
1368
+ # will be returned.
1366
1369
  #
1367
1370
  # @yield [response, operation] Access the result along with the RPC operation
1368
1371
  # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::Session]
@@ -1457,22 +1460,39 @@ module Google
1457
1460
  # A page token, received from a previous `ListSessions` call.
1458
1461
  # Provide this to retrieve the subsequent page.
1459
1462
  # @param filter [::String]
1460
- # A filter to apply on the list results. The supported features are:
1461
- # user_pseudo_id, state.
1462
- #
1463
- # Example:
1463
+ # A comma-separated list of fields to filter by, in EBNF grammar.
1464
+ # The supported fields are:
1465
+ # * `user_pseudo_id`
1466
+ # * `state`
1467
+ # * `display_name`
1468
+ # * `starred`
1469
+ # * `is_pinned`
1470
+ # * `labels`
1471
+ # * `create_time`
1472
+ # * `update_time`
1473
+ #
1474
+ # Examples:
1464
1475
  # "user_pseudo_id = some_id"
1476
+ # "display_name = \"some_name\""
1477
+ # "starred = true"
1478
+ # "is_pinned=true AND (NOT labels:hidden)"
1479
+ # "create_time > \"1970-01-01T12:00:00Z\""
1465
1480
  # @param order_by [::String]
1466
1481
  # A comma-separated list of fields to order by, sorted in ascending order.
1467
1482
  # Use "desc" after a field name for descending.
1468
1483
  # Supported fields:
1484
+ #
1469
1485
  # * `update_time`
1470
1486
  # * `create_time`
1471
1487
  # * `session_name`
1488
+ # * `is_pinned`
1472
1489
  #
1473
1490
  # Example:
1474
- # "update_time desc"
1475
- # "create_time"
1491
+ #
1492
+ # * "update_time desc"
1493
+ # * "create_time"
1494
+ # * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
1495
+ # by update_time.
1476
1496
  #
1477
1497
  # @yield [response, operation] Access the result along with the RPC operation
1478
1498
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::Session>]
@@ -1271,7 +1271,7 @@ module Google
1271
1271
  # @param options [::Gapic::CallOptions, ::Hash]
1272
1272
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1273
1273
  #
1274
- # @overload get_session(name: nil)
1274
+ # @overload get_session(name: nil, include_answer_details: nil)
1275
1275
  # Pass arguments to `get_session` via keyword arguments. Note that at
1276
1276
  # least one keyword argument is required. To specify no parameters, or to keep all
1277
1277
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1279,6 +1279,9 @@ module Google
1279
1279
  # @param name [::String]
1280
1280
  # Required. The resource name of the Session to get. Format:
1281
1281
  # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
1282
+ # @param include_answer_details [::Boolean]
1283
+ # Optional. If set to true, the full session including all answer details
1284
+ # will be returned.
1282
1285
  # @yield [result, operation] Access the result along with the TransportOperation object
1283
1286
  # @yieldparam result [::Google::Cloud::DiscoveryEngine::V1beta::Session]
1284
1287
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1366,22 +1369,39 @@ module Google
1366
1369
  # A page token, received from a previous `ListSessions` call.
1367
1370
  # Provide this to retrieve the subsequent page.
1368
1371
  # @param filter [::String]
1369
- # A filter to apply on the list results. The supported features are:
1370
- # user_pseudo_id, state.
1371
- #
1372
- # Example:
1372
+ # A comma-separated list of fields to filter by, in EBNF grammar.
1373
+ # The supported fields are:
1374
+ # * `user_pseudo_id`
1375
+ # * `state`
1376
+ # * `display_name`
1377
+ # * `starred`
1378
+ # * `is_pinned`
1379
+ # * `labels`
1380
+ # * `create_time`
1381
+ # * `update_time`
1382
+ #
1383
+ # Examples:
1373
1384
  # "user_pseudo_id = some_id"
1385
+ # "display_name = \"some_name\""
1386
+ # "starred = true"
1387
+ # "is_pinned=true AND (NOT labels:hidden)"
1388
+ # "create_time > \"1970-01-01T12:00:00Z\""
1374
1389
  # @param order_by [::String]
1375
1390
  # A comma-separated list of fields to order by, sorted in ascending order.
1376
1391
  # Use "desc" after a field name for descending.
1377
1392
  # Supported fields:
1393
+ #
1378
1394
  # * `update_time`
1379
1395
  # * `create_time`
1380
1396
  # * `session_name`
1397
+ # * `is_pinned`
1381
1398
  #
1382
1399
  # Example:
1383
- # "update_time desc"
1384
- # "create_time"
1400
+ #
1401
+ # * "update_time desc"
1402
+ # * "create_time"
1403
+ # * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
1404
+ # by update_time.
1385
1405
  # @yield [result, operation] Access the result along with the TransportOperation object
1386
1406
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::Session>]
1387
1407
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -33,6 +33,7 @@ require "google/cloud/discovery_engine/v1beta/sample_query_set_service/rest"
33
33
  require "google/cloud/discovery_engine/v1beta/schema_service/rest"
34
34
  require "google/cloud/discovery_engine/v1beta/search_tuning_service/rest"
35
35
  require "google/cloud/discovery_engine/v1beta/serving_config_service/rest"
36
+ require "google/cloud/discovery_engine/v1beta/session_service/rest"
36
37
  require "google/cloud/discovery_engine/v1beta/site_search_engine_service/rest"
37
38
  require "google/cloud/discovery_engine/v1beta/user_event_service/rest"
38
39
  require "google/cloud/discovery_engine/v1beta/version"
@@ -455,22 +455,16 @@ module Google
455
455
  # between /search API calls and /answer API calls.
456
456
  #
457
457
  # Example #1 (multi-turn /search API calls):
458
- # 1. Call /search API with the auto-session mode (see below).
459
- # 2. Call /search API with the session ID generated in the first call.
460
- # Here, the previous search query gets considered in query
461
- # standing. I.e., if the first query is "How did Alphabet do in 2022?"
462
- # and the current query is "How about 2023?", the current query will
463
- # be interpreted as "How did Alphabet do in 2023?".
458
+ # Call /search API with the session ID generated in the first call.
459
+ # Here, the previous search query gets considered in query
460
+ # standing. I.e., if the first query is "How did Alphabet do in 2022?"
461
+ # and the current query is "How about 2023?", the current query will
462
+ # be interpreted as "How did Alphabet do in 2023?".
464
463
  #
465
464
  # Example #2 (coordination between /search API calls and /answer API calls):
466
- # 1. Call /search API with the auto-session mode (see below).
467
- # 2. Call /answer API with the session ID generated in the first call.
468
- # Here, the answer generation happens in the context of the search
469
- # results from the first search call.
470
- #
471
- # Auto-session mode: when `projects/.../sessions/-` is used, a new session
472
- # gets automatically created. Otherwise, users can use the create-session API
473
- # to create a session manually.
465
+ # Call /answer API with the session ID generated in the first call.
466
+ # Here, the answer generation happens in the context of the search
467
+ # results from the first search call.
474
468
  #
475
469
  # Multi-turn Search feature is currently at private GA stage. Please use
476
470
  # v1alpha or v1beta version instead before we launch this feature to public
@@ -830,22 +824,16 @@ module Google
830
824
  # between /search API calls and /answer API calls.
831
825
  #
832
826
  # Example #1 (multi-turn /search API calls):
833
- # 1. Call /search API with the auto-session mode (see below).
834
- # 2. Call /search API with the session ID generated in the first call.
835
- # Here, the previous search query gets considered in query
836
- # standing. I.e., if the first query is "How did Alphabet do in 2022?"
837
- # and the current query is "How about 2023?", the current query will
838
- # be interpreted as "How did Alphabet do in 2023?".
827
+ # Call /search API with the session ID generated in the first call.
828
+ # Here, the previous search query gets considered in query
829
+ # standing. I.e., if the first query is "How did Alphabet do in 2022?"
830
+ # and the current query is "How about 2023?", the current query will
831
+ # be interpreted as "How did Alphabet do in 2023?".
839
832
  #
840
833
  # Example #2 (coordination between /search API calls and /answer API calls):
841
- # 1. Call /search API with the auto-session mode (see below).
842
- # 2. Call /answer API with the session ID generated in the first call.
843
- # Here, the answer generation happens in the context of the search
844
- # results from the first search call.
845
- #
846
- # Auto-session mode: when `projects/.../sessions/-` is used, a new session
847
- # gets automatically created. Otherwise, users can use the create-session API
848
- # to create a session manually.
834
+ # Call /answer API with the session ID generated in the first call.
835
+ # Here, the answer generation happens in the context of the search
836
+ # results from the first search call.
849
837
  #
850
838
  # Multi-turn Search feature is currently at private GA stage. Please use
851
839
  # v1alpha or v1beta version instead before we launch this feature to public
@@ -448,22 +448,16 @@ module Google
448
448
  # between /search API calls and /answer API calls.
449
449
  #
450
450
  # Example #1 (multi-turn /search API calls):
451
- # 1. Call /search API with the auto-session mode (see below).
452
- # 2. Call /search API with the session ID generated in the first call.
453
- # Here, the previous search query gets considered in query
454
- # standing. I.e., if the first query is "How did Alphabet do in 2022?"
455
- # and the current query is "How about 2023?", the current query will
456
- # be interpreted as "How did Alphabet do in 2023?".
451
+ # Call /search API with the session ID generated in the first call.
452
+ # Here, the previous search query gets considered in query
453
+ # standing. I.e., if the first query is "How did Alphabet do in 2022?"
454
+ # and the current query is "How about 2023?", the current query will
455
+ # be interpreted as "How did Alphabet do in 2023?".
457
456
  #
458
457
  # Example #2 (coordination between /search API calls and /answer API calls):
459
- # 1. Call /search API with the auto-session mode (see below).
460
- # 2. Call /answer API with the session ID generated in the first call.
461
- # Here, the answer generation happens in the context of the search
462
- # results from the first search call.
463
- #
464
- # Auto-session mode: when `projects/.../sessions/-` is used, a new session
465
- # gets automatically created. Otherwise, users can use the create-session API
466
- # to create a session manually.
458
+ # Call /answer API with the session ID generated in the first call.
459
+ # Here, the answer generation happens in the context of the search
460
+ # results from the first search call.
467
461
  #
468
462
  # Multi-turn Search feature is currently at private GA stage. Please use
469
463
  # v1alpha or v1beta version instead before we launch this feature to public
@@ -816,22 +810,16 @@ module Google
816
810
  # between /search API calls and /answer API calls.
817
811
  #
818
812
  # Example #1 (multi-turn /search API calls):
819
- # 1. Call /search API with the auto-session mode (see below).
820
- # 2. Call /search API with the session ID generated in the first call.
821
- # Here, the previous search query gets considered in query
822
- # standing. I.e., if the first query is "How did Alphabet do in 2022?"
823
- # and the current query is "How about 2023?", the current query will
824
- # be interpreted as "How did Alphabet do in 2023?".
813
+ # Call /search API with the session ID generated in the first call.
814
+ # Here, the previous search query gets considered in query
815
+ # standing. I.e., if the first query is "How did Alphabet do in 2022?"
816
+ # and the current query is "How about 2023?", the current query will
817
+ # be interpreted as "How did Alphabet do in 2023?".
825
818
  #
826
819
  # Example #2 (coordination between /search API calls and /answer API calls):
827
- # 1. Call /search API with the auto-session mode (see below).
828
- # 2. Call /answer API with the session ID generated in the first call.
829
- # Here, the answer generation happens in the context of the search
830
- # results from the first search call.
831
- #
832
- # Auto-session mode: when `projects/.../sessions/-` is used, a new session
833
- # gets automatically created. Otherwise, users can use the create-session API
834
- # to create a session manually.
820
+ # Call /answer API with the session ID generated in the first call.
821
+ # Here, the answer generation happens in the context of the search
822
+ # results from the first search call.
835
823
  #
836
824
  # Multi-turn Search feature is currently at private GA stage. Please use
837
825
  # v1alpha or v1beta version instead before we launch this feature to public