google-cloud-discovery_engine-v1 2.6.0 → 2.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1fd29cb842dda450b53418b0023229f5393974a85e13edca51938b184430e32
4
- data.tar.gz: 7776402cf32f0154aa6280fad2584109b2234786651f8bbbe89f59e7010780ed
3
+ metadata.gz: a94bd80ab21530985f92aaf3a66161cb3665ea6ab507f99f88faa383a5130f16
4
+ data.tar.gz: f42f1f3cd56da3b59e06ff3dec591400d27d30c48824547508c22aa832e83bd0
5
5
  SHA512:
6
- metadata.gz: 05bd5a0c522cb2bb9d0886cc667a35d4d35ddfd5799d30b7638a5c0ed1e2694981bd68a62a41d02a21ba6b3fcd8a2914158df5a1a961671d9915e8ee5f073a79
7
- data.tar.gz: 774e026cc6eb5cfbca9681199229905ae6319cc481d48e496eeb240579f82c5b1d98adef9ae3dfe27993ec23ddaaac7de0719a9145bbdefcf3dc4c1b2cf871c6
6
+ metadata.gz: 51135d102a02235ddb90a880e8b2bb6f6b160e4de4b77a39fbddd6e6a02f8f0285130896cdd45b89deb84240fceac27ea7a865f17001cd4542e7e4b80cea6164
7
+ data.tar.gz: 1a413584a65d533e6e7e06d0f474979bd7f6d33cdd05469a37ae4d5994bd5848d23986051827a450e53f9f4cef79a4e1bacd81ba9b16b16e700bac135fe95940
@@ -98,6 +98,31 @@ module Google
98
98
  resource.call(**args)
99
99
  end
100
100
 
101
+ ##
102
+ # Create a fully-qualified AssistAnswer resource string.
103
+ #
104
+ # The resource will be in the following format:
105
+ #
106
+ # `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
107
+ #
108
+ # @param project [String]
109
+ # @param location [String]
110
+ # @param collection [String]
111
+ # @param engine [String]
112
+ # @param session [String]
113
+ # @param assist_answer [String]
114
+ #
115
+ # @return [::String]
116
+ def assist_answer_path project:, location:, collection:, engine:, session:, assist_answer:
117
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
118
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
119
+ raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
120
+ raise ::ArgumentError, "engine cannot contain /" if engine.to_s.include? "/"
121
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
122
+
123
+ "projects/#{project}/locations/#{location}/collections/#{collection}/engines/#{engine}/sessions/#{session}/assistAnswers/#{assist_answer}"
124
+ end
125
+
101
126
  ##
102
127
  # Create a fully-qualified Chunk resource string.
103
128
  #
@@ -98,6 +98,31 @@ module Google
98
98
  resource.call(**args)
99
99
  end
100
100
 
101
+ ##
102
+ # Create a fully-qualified AssistAnswer resource string.
103
+ #
104
+ # The resource will be in the following format:
105
+ #
106
+ # `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
107
+ #
108
+ # @param project [String]
109
+ # @param location [String]
110
+ # @param collection [String]
111
+ # @param engine [String]
112
+ # @param session [String]
113
+ # @param assist_answer [String]
114
+ #
115
+ # @return [::String]
116
+ def assist_answer_path project:, location:, collection:, engine:, session:, assist_answer:
117
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
118
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
119
+ raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
120
+ raise ::ArgumentError, "engine cannot contain /" if engine.to_s.include? "/"
121
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
122
+
123
+ "projects/#{project}/locations/#{location}/collections/#{collection}/engines/#{engine}/sessions/#{session}/assistAnswers/#{assist_answer}"
124
+ end
125
+
101
126
  ##
102
127
  # Create a fully-qualified Chunk resource string.
103
128
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DiscoveryEngine
23
23
  module V1
24
- VERSION = "2.6.0"
24
+ VERSION = "2.6.1"
25
25
  end
26
26
  end
27
27
  end
@@ -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\"\xc0\x08\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\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\xd7\x02\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\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
+ 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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-discovery_engine-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC