google-cloud-discovery_engine-v1 2.6.0 → 2.6.2
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/v1/assistant_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/cmek_config_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/cmek_config_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/completion_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/control_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +25 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/data_store_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/document_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/engine_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/engine_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/project_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/project_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/rank_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/schema_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/schema_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/session_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/session_service/paths.rb +25 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/user_event_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/user_event_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/user_license_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/user_license_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/session_pb.rb +3 -1
- data/proto_docs/google/cloud/discoveryengine/v1/session.rb +12 -0
- metadata +1 -1
|
@@ -469,8 +469,6 @@ module Google
|
|
|
469
469
|
# @return [::String,nil]
|
|
470
470
|
# @!attribute [rw] credentials
|
|
471
471
|
# Credentials to send with calls. You may provide any of the following types:
|
|
472
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
473
|
-
# * (`Hash`) A service account key as a Hash
|
|
474
472
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
475
473
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
476
474
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -479,7 +477,26 @@ module Google
|
|
|
479
477
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
480
478
|
# * (`nil`) indicating no credentials
|
|
481
479
|
#
|
|
482
|
-
# Warning:
|
|
480
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
481
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
482
|
+
# Google APIs can compromise the security of your systems and data.
|
|
483
|
+
#
|
|
484
|
+
# @example
|
|
485
|
+
#
|
|
486
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
487
|
+
# # on the appropriate credentials class for your environment.
|
|
488
|
+
#
|
|
489
|
+
# require "googleauth"
|
|
490
|
+
#
|
|
491
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
492
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
493
|
+
# )
|
|
494
|
+
#
|
|
495
|
+
# client = ::Google::Cloud::DiscoveryEngine::V1::UserLicenseService::Client.new do |config|
|
|
496
|
+
# config.credentials = credentials
|
|
497
|
+
# end
|
|
498
|
+
#
|
|
499
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
483
500
|
# external source for authentication to Google Cloud, you must validate it before
|
|
484
501
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
485
502
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -642,8 +642,6 @@ module Google
|
|
|
642
642
|
# @return [::String,nil]
|
|
643
643
|
# @!attribute [rw] credentials
|
|
644
644
|
# Credentials to send with calls. You may provide any of the following types:
|
|
645
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
646
|
-
# * (`Hash`) A service account key as a Hash
|
|
647
645
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
648
646
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
649
647
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -652,7 +650,26 @@ module Google
|
|
|
652
650
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
653
651
|
# * (`nil`) indicating no credentials
|
|
654
652
|
#
|
|
655
|
-
# Warning:
|
|
653
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
654
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
655
|
+
# Google APIs can compromise the security of your systems and data.
|
|
656
|
+
#
|
|
657
|
+
# @example
|
|
658
|
+
#
|
|
659
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
660
|
+
# # on the appropriate credentials class for your environment.
|
|
661
|
+
#
|
|
662
|
+
# require "googleauth"
|
|
663
|
+
#
|
|
664
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
665
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
666
|
+
# )
|
|
667
|
+
#
|
|
668
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
|
669
|
+
# config.credentials = credentials
|
|
670
|
+
# end
|
|
671
|
+
#
|
|
672
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
656
673
|
# external source for authentication to Google Cloud, you must validate it before
|
|
657
674
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
658
675
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -7,10 +7,11 @@ require 'google/protobuf'
|
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/api/resource_pb'
|
|
9
9
|
require 'google/cloud/discoveryengine/v1/answer_pb'
|
|
10
|
+
require 'google/cloud/discoveryengine/v1/assist_answer_pb'
|
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
|
11
12
|
|
|
12
13
|
|
|
13
|
-
descriptor_data = "\n-google/cloud/discoveryengine/v1/session.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/discoveryengine/v1/answer.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
|
14
|
+
descriptor_data = "\n-google/cloud/discoveryengine/v1/session.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/discoveryengine/v1/answer.proto\x1a\x33google/cloud/discoveryengine/v1/assist_answer.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa9\t\n\x07Session\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12=\n\x05state\x18\x02 \x01(\x0e\x32..google.cloud.discoveryengine.v1.Session.State\x12\x16\n\x0euser_pseudo_id\x18\x03 \x01(\t\x12<\n\x05turns\x18\x04 \x03(\x0b\x32-.google.cloud.discoveryengine.v1.Session.Turn\x12\x13\n\x06labels\x18\t \x03(\tB\x03\xe0\x41\x01\x12\x33\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x16\n\tis_pinned\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xab\x03\n\x04Turn\x12:\n\x05query\x18\x01 \x01(\x0b\x32&.google.cloud.discoveryengine.v1.QueryB\x03\xe0\x41\x01\x12=\n\x06\x61nswer\x18\x02 \x01(\tB-\xe0\x41\x01\xfa\x41\'\n%discoveryengine.googleapis.com/Answer\x12\x45\n\x0f\x64\x65tailed_answer\x18\x07 \x01(\x0b\x32\'.google.cloud.discoveryengine.v1.AnswerB\x03\xe0\x41\x03\x12R\n\x16\x64\x65tailed_assist_answer\x18\x08 \x01(\x0b\x32-.google.cloud.discoveryengine.v1.AssistAnswerB\x03\xe0\x41\x03\x12Y\n\x0cquery_config\x18\x10 \x03(\x0b\x32>.google.cloud.discoveryengine.v1.Session.Turn.QueryConfigEntryB\x03\xe0\x41\x01\x1a\x32\n\x10QueryConfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"/\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01:\xe6\x02\xea\x41\xe2\x02\n&discoveryengine.googleapis.com/Session\x12Rprojects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}\x12kprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}\x12\x64projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}*\x08sessions2\x07session\"9\n\x05Query\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x12\x15\n\x08query_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x42\t\n\x07\x63ontentB\xff\x01\n#com.google.cloud.discoveryengine.v1B\x0cSessionProtoP\x01ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02\x1fGoogle.Cloud.DiscoveryEngine.V1\xca\x02\x1fGoogle\\Cloud\\DiscoveryEngine\\V1\xea\x02\"Google::Cloud::DiscoveryEngine::V1b\x06proto3"
|
|
14
15
|
|
|
15
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
16
17
|
|
|
@@ -27,6 +28,7 @@ rescue TypeError
|
|
|
27
28
|
imports = [
|
|
28
29
|
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
29
30
|
["google.cloud.discoveryengine.v1.Answer", "google/cloud/discoveryengine/v1/answer.proto"],
|
|
31
|
+
["google.cloud.discoveryengine.v1.AssistAnswer", "google/cloud/discoveryengine/v1/assist_answer.proto"],
|
|
30
32
|
]
|
|
31
33
|
imports.each do |type_name, expected_filename|
|
|
32
34
|
import_file = pool.lookup(type_name).file_descriptor
|
|
@@ -41,6 +41,10 @@ module Google
|
|
|
41
41
|
# @!attribute [rw] turns
|
|
42
42
|
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::Session::Turn>]
|
|
43
43
|
# Turns.
|
|
44
|
+
# @!attribute [rw] labels
|
|
45
|
+
# @return [::Array<::String>]
|
|
46
|
+
# Optional. The labels for the session.
|
|
47
|
+
# Can be set as filter in ListSessionsRequest.
|
|
44
48
|
# @!attribute [r] start_time
|
|
45
49
|
# @return [::Google::Protobuf::Timestamp]
|
|
46
50
|
# Output only. The time the session started.
|
|
@@ -75,6 +79,14 @@ module Google
|
|
|
75
79
|
# {::Google::Cloud::DiscoveryEngine::V1::GetSessionRequest#include_answer_details GetSessionRequest.include_answer_details}
|
|
76
80
|
# is set to true, this field will be populated when getting answer query
|
|
77
81
|
# session.
|
|
82
|
+
# @!attribute [r] detailed_assist_answer
|
|
83
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::AssistAnswer]
|
|
84
|
+
# Output only. In
|
|
85
|
+
# {::Google::Cloud::DiscoveryEngine::V1::ConversationalSearchService::Client#get_session ConversationalSearchService.GetSession}
|
|
86
|
+
# API, if
|
|
87
|
+
# {::Google::Cloud::DiscoveryEngine::V1::GetSessionRequest#include_answer_details GetSessionRequest.include_answer_details}
|
|
88
|
+
# is set to true, this field will be populated when getting assistant
|
|
89
|
+
# session.
|
|
78
90
|
# @!attribute [rw] query_config
|
|
79
91
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
80
92
|
# Optional. Represents metadata related to the query config, for example
|