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.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +27 -7
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +27 -7
- data/lib/google/cloud/discovery_engine/v1beta/rest.rb +1 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +16 -28
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +16 -28
- data/lib/google/cloud/discovery_engine/v1beta/session_service/client.rb +920 -0
- data/lib/google/cloud/discovery_engine/v1beta/session_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/session_service/paths.rb +330 -0
- data/lib/google/cloud/discovery_engine/v1beta/session_service/rest/client.rb +859 -0
- data/lib/google/cloud/discovery_engine/v1beta/session_service/rest/service_stub.rb +462 -0
- data/lib/google/cloud/discovery_engine/v1beta/session_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/session_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta.rb +1 -0
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/session_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1beta/session_service_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1beta/session_service_services_pb.rb +64 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +26 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +8 -14
- data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +38 -4
- metadata +10 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 225df45cd6bd848d2256f00fb2165e3be81bac5c084e28be3bb9688cb94eed82
|
4
|
+
data.tar.gz: 5527ba6246f256b79763414ae684f266f4f882dca319f33371bce5b269cbf20d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
1461
|
-
#
|
1462
|
-
#
|
1463
|
-
#
|
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
|
-
#
|
1475
|
-
# "
|
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
|
1370
|
-
#
|
1371
|
-
#
|
1372
|
-
#
|
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
|
-
#
|
1384
|
-
# "
|
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
|
-
#
|
459
|
-
#
|
460
|
-
#
|
461
|
-
#
|
462
|
-
#
|
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
|
-
#
|
467
|
-
#
|
468
|
-
#
|
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
|
-
#
|
834
|
-
#
|
835
|
-
#
|
836
|
-
#
|
837
|
-
#
|
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
|
-
#
|
842
|
-
#
|
843
|
-
#
|
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
|
-
#
|
452
|
-
#
|
453
|
-
#
|
454
|
-
#
|
455
|
-
#
|
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
|
-
#
|
460
|
-
#
|
461
|
-
#
|
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
|
-
#
|
820
|
-
#
|
821
|
-
#
|
822
|
-
#
|
823
|
-
#
|
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
|
-
#
|
828
|
-
#
|
829
|
-
#
|
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
|