google-cloud-discovery_engine-v1 1.0.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/client.rb +6 -6
- data/lib/google/cloud/discovery_engine/v1/control_service/rest/client.rb +6 -6
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +15 -12
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +15 -12
- data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +109 -1
- data/lib/google/cloud/discovery_engine/v1/document_service/paths.rb +25 -0
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +102 -1
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/service_stub.rb +66 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/client.rb +219 -3
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/paths.rb +85 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/client.rb +126 -3
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/service_stub.rb +60 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/client.rb +2 -1
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/rest/client.rb +2 -1
- data/lib/google/cloud/discovery_engine/v1/rest.rb +1 -0
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +11 -4
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +11 -4
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/client.rb +571 -0
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/operations.rb +809 -0
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/paths.rb +78 -0
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/client.rb +531 -0
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/operations.rb +1128 -0
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/service_stub.rb +188 -0
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/client.rb +5 -1
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/client.rb +5 -1
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/client.rb +139 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/client.rb +132 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/service_stub.rb +68 -0
- data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1.rb +1 -0
- data/lib/google/cloud/discoveryengine/v1/answer_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/common_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/custom_tuning_model_pb.rb +48 -0
- data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1/data_store_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/document_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1/document_service_pb.rb +11 -1
- data/lib/google/cloud/discoveryengine/v1/document_service_services_pb.rb +4 -0
- data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_pb.rb +23 -1
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_services_pb.rb +4 -0
- data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/purge_config_pb.rb +8 -1
- data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1/search_tuning_service_pb.rb +61 -0
- data/lib/google/cloud/discoveryengine/v1/search_tuning_service_services_pb.rb +47 -0
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_services_pb.rb +5 -0
- data/proto_docs/google/cloud/discoveryengine/v1/answer.rb +62 -7
- data/proto_docs/google/cloud/discoveryengine/v1/control.rb +6 -4
- data/proto_docs/google/cloud/discoveryengine/v1/control_service.rb +6 -6
- data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +68 -24
- data/proto_docs/google/cloud/discoveryengine/v1/custom_tuning_model.rb +99 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +88 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store_service.rb +10 -0
- data/proto_docs/google/cloud/discoveryengine/v1/document.rb +22 -0
- data/proto_docs/google/cloud/discoveryengine/v1/document_processing_config.rb +9 -5
- data/proto_docs/google/cloud/discoveryengine/v1/document_service.rb +120 -0
- data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +5 -1
- data/proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb +385 -1
- data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +13 -7
- data/proto_docs/google/cloud/discoveryengine/v1/project.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +115 -0
- data/proto_docs/google/cloud/discoveryengine/v1/rank_service.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1/recommendation_service.rb +2 -1
- data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +156 -16
- data/proto_docs/google/cloud/discoveryengine/v1/search_tuning_service.rb +172 -0
- data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine_service.rb +5 -0
- data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +5 -1
- metadata +17 -3
@@ -21,6 +21,389 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module DiscoveryEngine
|
23
23
|
module V1
|
24
|
+
# Base structured datatype containing multi-part content of a message.
|
25
|
+
# @!attribute [rw] role
|
26
|
+
# @return [::String]
|
27
|
+
# Producer of the content. Must be either `user` or `model`.
|
28
|
+
#
|
29
|
+
# Intended to be used for multi-turn conversations. Otherwise, it can be left
|
30
|
+
# unset.
|
31
|
+
# @!attribute [rw] parts
|
32
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent::Part>]
|
33
|
+
# Ordered `Parts` that constitute a single message.
|
34
|
+
class GroundedGenerationContent
|
35
|
+
include ::Google::Protobuf::MessageExts
|
36
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
37
|
+
|
38
|
+
# Single part of content.
|
39
|
+
# @!attribute [rw] text
|
40
|
+
# @return [::String]
|
41
|
+
# Inline text.
|
42
|
+
class Part
|
43
|
+
include ::Google::Protobuf::MessageExts
|
44
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# Top-level message sent by the client for the `GenerateGroundedContent`
|
49
|
+
# method.
|
50
|
+
# @!attribute [rw] location
|
51
|
+
# @return [::String]
|
52
|
+
# Required. Location resource.
|
53
|
+
#
|
54
|
+
# Format: `projects/{project}/locations/{location}`.
|
55
|
+
# @!attribute [rw] system_instruction
|
56
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent]
|
57
|
+
# Content of the system instruction for the current API.
|
58
|
+
#
|
59
|
+
# These instructions will take priority over any other prompt instructions
|
60
|
+
# if the selected model is supporting them.
|
61
|
+
# @!attribute [rw] contents
|
62
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent>]
|
63
|
+
# Content of the current conversation with the model.
|
64
|
+
#
|
65
|
+
# For single-turn queries, this is a single instance. For multi-turn queries,
|
66
|
+
# this is a repeated field that contains conversation history + latest
|
67
|
+
# request.
|
68
|
+
#
|
69
|
+
# Only a single-turn query is supported currently.
|
70
|
+
# @!attribute [rw] generation_spec
|
71
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GenerationSpec]
|
72
|
+
# Content generation specification.
|
73
|
+
# @!attribute [rw] grounding_spec
|
74
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GroundingSpec]
|
75
|
+
# Grounding specification.
|
76
|
+
# @!attribute [rw] user_labels
|
77
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
78
|
+
# The user labels applied to a resource must meet the following requirements:
|
79
|
+
#
|
80
|
+
# * Each resource can have multiple labels, up to a maximum of 64.
|
81
|
+
# * Each label must be a key-value pair.
|
82
|
+
# * Keys have a minimum length of 1 character and a maximum length of 63
|
83
|
+
# characters and cannot be empty. Values can be empty and have a maximum
|
84
|
+
# length of 63 characters.
|
85
|
+
# * Keys and values can contain only lowercase letters, numeric characters,
|
86
|
+
# underscores, and dashes. All characters must use UTF-8 encoding, and
|
87
|
+
# international characters are allowed.
|
88
|
+
# * The key portion of a label must be unique. However, you can use the same
|
89
|
+
# key with multiple resources.
|
90
|
+
# * Keys must start with a lowercase letter or international character.
|
91
|
+
#
|
92
|
+
# See [Google Cloud
|
93
|
+
# Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
|
94
|
+
# for more details.
|
95
|
+
class GenerateGroundedContentRequest
|
96
|
+
include ::Google::Protobuf::MessageExts
|
97
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
98
|
+
|
99
|
+
# Content generation specification.
|
100
|
+
# @!attribute [rw] model_id
|
101
|
+
# @return [::String]
|
102
|
+
# Specifies which Vertex model id to use for generation.
|
103
|
+
# @!attribute [rw] language_code
|
104
|
+
# @return [::String]
|
105
|
+
# Language code for content. Use language tags defined by
|
106
|
+
# [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
|
107
|
+
# @!attribute [rw] temperature
|
108
|
+
# @return [::Float]
|
109
|
+
# If specified, custom value for the temperature will be used.
|
110
|
+
# @!attribute [rw] top_p
|
111
|
+
# @return [::Float]
|
112
|
+
# If specified, custom value for nucleus sampling will be used.
|
113
|
+
# @!attribute [rw] top_k
|
114
|
+
# @return [::Integer]
|
115
|
+
# If specified, custom value for top-k sampling will be used.
|
116
|
+
# @!attribute [rw] frequency_penalty
|
117
|
+
# @return [::Float]
|
118
|
+
# If specified, custom value for frequency penalty will be used.
|
119
|
+
# @!attribute [rw] presence_penalty
|
120
|
+
# @return [::Float]
|
121
|
+
# If specified, custom value for presence penalty will be used.
|
122
|
+
# @!attribute [rw] max_output_tokens
|
123
|
+
# @return [::Integer]
|
124
|
+
# If specified, custom value for max output tokens will be used.
|
125
|
+
class GenerationSpec
|
126
|
+
include ::Google::Protobuf::MessageExts
|
127
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
128
|
+
end
|
129
|
+
|
130
|
+
# Describes the options to customize dynamic retrieval.
|
131
|
+
# @!attribute [rw] predictor
|
132
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::DynamicRetrievalConfiguration::DynamicRetrievalPredictor]
|
133
|
+
# Specification for the predictor for dynamic retrieval.
|
134
|
+
class DynamicRetrievalConfiguration
|
135
|
+
include ::Google::Protobuf::MessageExts
|
136
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
137
|
+
|
138
|
+
# Describes the predictor settings for dynamic retrieval.
|
139
|
+
# @!attribute [rw] version
|
140
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::DynamicRetrievalConfiguration::DynamicRetrievalPredictor::Version]
|
141
|
+
# The version of the predictor to be used in dynamic retrieval.
|
142
|
+
# @!attribute [rw] threshold
|
143
|
+
# @return [::Float]
|
144
|
+
# The value of the threshold. If the predictor will predict a
|
145
|
+
# value smaller than this, it would suppress grounding in the source.
|
146
|
+
class DynamicRetrievalPredictor
|
147
|
+
include ::Google::Protobuf::MessageExts
|
148
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
149
|
+
|
150
|
+
# The version of the predictor to be used in dynamic retrieval.
|
151
|
+
module Version
|
152
|
+
# Automatically choose the best version of the retrieval predictor.
|
153
|
+
VERSION_UNSPECIFIED = 0
|
154
|
+
|
155
|
+
# The V1 model which is evaluating each source independently.
|
156
|
+
V1_INDEPENDENT = 1
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# Grounding source.
|
162
|
+
# @!attribute [rw] inline_source
|
163
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GroundingSource::InlineSource]
|
164
|
+
# If set, grounding is performed with inline content.
|
165
|
+
# @!attribute [rw] search_source
|
166
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GroundingSource::SearchSource]
|
167
|
+
# If set, grounding is performed with Vertex AI Search.
|
168
|
+
# @!attribute [rw] google_search_source
|
169
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GroundingSource::GoogleSearchSource]
|
170
|
+
# If set, grounding is performed with Google Search.
|
171
|
+
class GroundingSource
|
172
|
+
include ::Google::Protobuf::MessageExts
|
173
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
174
|
+
|
175
|
+
# Message to be used for grounding based on inline content.
|
176
|
+
# @!attribute [rw] grounding_facts
|
177
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::GroundingFact>]
|
178
|
+
# List of facts to be used for grounding.
|
179
|
+
# @!attribute [rw] attributes
|
180
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
181
|
+
# Attributes associated with the content.
|
182
|
+
#
|
183
|
+
# Common attributes include `source` (indicating where the content was
|
184
|
+
# sourced from) and `author` (indicating the author of the content).
|
185
|
+
class InlineSource
|
186
|
+
include ::Google::Protobuf::MessageExts
|
187
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
188
|
+
|
189
|
+
# @!attribute [rw] key
|
190
|
+
# @return [::String]
|
191
|
+
# @!attribute [rw] value
|
192
|
+
# @return [::String]
|
193
|
+
class AttributesEntry
|
194
|
+
include ::Google::Protobuf::MessageExts
|
195
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
# Message to be used for grounding with Vertex AI Search.
|
200
|
+
# @!attribute [rw] serving_config
|
201
|
+
# @return [::String]
|
202
|
+
# The resource name of the Engine to use.
|
203
|
+
#
|
204
|
+
# Format:
|
205
|
+
# `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
|
206
|
+
# @!attribute [rw] max_result_count
|
207
|
+
# @return [::Integer]
|
208
|
+
# Number of search results to return.
|
209
|
+
#
|
210
|
+
# The default value is 10. The maximumm allowed value is 10.
|
211
|
+
# @!attribute [rw] filter
|
212
|
+
# @return [::String]
|
213
|
+
# Filter expression to be applied to the search.
|
214
|
+
#
|
215
|
+
# The syntax is the same as
|
216
|
+
# {::Google::Cloud::DiscoveryEngine::V1::SearchRequest#filter SearchRequest.filter}.
|
217
|
+
# @!attribute [rw] safe_search
|
218
|
+
# @return [::Boolean]
|
219
|
+
# If set, safe search is enabled in Vertex AI Search requests.
|
220
|
+
class SearchSource
|
221
|
+
include ::Google::Protobuf::MessageExts
|
222
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
223
|
+
end
|
224
|
+
|
225
|
+
# Google Search config parameters.
|
226
|
+
# @!attribute [rw] dynamic_retrieval_config
|
227
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::DynamicRetrievalConfiguration]
|
228
|
+
# Optional. Specifies the dynamic retrieval configuration for the given
|
229
|
+
# source.
|
230
|
+
class GoogleSearchSource
|
231
|
+
include ::Google::Protobuf::MessageExts
|
232
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# Grounding specification.
|
237
|
+
# @!attribute [rw] grounding_sources
|
238
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GroundingSource>]
|
239
|
+
# Grounding sources.
|
240
|
+
class GroundingSpec
|
241
|
+
include ::Google::Protobuf::MessageExts
|
242
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
243
|
+
end
|
244
|
+
|
245
|
+
# @!attribute [rw] key
|
246
|
+
# @return [::String]
|
247
|
+
# @!attribute [rw] value
|
248
|
+
# @return [::String]
|
249
|
+
class UserLabelsEntry
|
250
|
+
include ::Google::Protobuf::MessageExts
|
251
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] candidates
|
256
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse::Candidate>]
|
257
|
+
# Generated candidates.
|
258
|
+
class GenerateGroundedContentResponse
|
259
|
+
include ::Google::Protobuf::MessageExts
|
260
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
261
|
+
|
262
|
+
# A response candidate generated from the model.
|
263
|
+
# @!attribute [rw] index
|
264
|
+
# @return [::Integer]
|
265
|
+
# Index of the candidate.
|
266
|
+
# @!attribute [rw] content
|
267
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent]
|
268
|
+
# Content of the candidate.
|
269
|
+
# @!attribute [rw] grounding_score
|
270
|
+
# @return [::Float]
|
271
|
+
# The overall grounding score for the candidate, in the range of [0, 1].
|
272
|
+
# @!attribute [rw] grounding_metadata
|
273
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse::Candidate::GroundingMetadata]
|
274
|
+
# Grounding metadata for the generated content.
|
275
|
+
class Candidate
|
276
|
+
include ::Google::Protobuf::MessageExts
|
277
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
278
|
+
|
279
|
+
# Citation for the generated content.
|
280
|
+
# @!attribute [rw] retrieval_metadata
|
281
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse::Candidate::GroundingMetadata::RetrievalMetadata>]
|
282
|
+
# Retrieval metadata to provide an understanding in the
|
283
|
+
# retrieval steps performed by the model. There can be multiple such
|
284
|
+
# messages which can correspond to different parts of the retrieval. This
|
285
|
+
# is a mechanism used to ensure transparency to our users.
|
286
|
+
# @!attribute [rw] support_chunks
|
287
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::FactChunk>]
|
288
|
+
# List of chunks to be attributed across all claims in the candidate.
|
289
|
+
# These are derived from the grounding sources supplied in the request.
|
290
|
+
# @!attribute [rw] web_search_queries
|
291
|
+
# @return [::Array<::String>]
|
292
|
+
# Web search queries for the following-up web search.
|
293
|
+
# @!attribute [rw] search_entry_point
|
294
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse::Candidate::GroundingMetadata::SearchEntryPoint]
|
295
|
+
# Google search entry for the following-up web searches.
|
296
|
+
# @!attribute [rw] grounding_support
|
297
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse::Candidate::GroundingMetadata::GroundingSupport>]
|
298
|
+
# GroundingSupport across all claims in the answer candidate.
|
299
|
+
# An support to a fact indicates that the claim is supported by
|
300
|
+
# the fact.
|
301
|
+
class GroundingMetadata
|
302
|
+
include ::Google::Protobuf::MessageExts
|
303
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
304
|
+
|
305
|
+
# Describes the metadata associated with a retrieval step.
|
306
|
+
# @!attribute [rw] source
|
307
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse::Candidate::GroundingMetadata::RetrievalMetadata::Source]
|
308
|
+
# Describes the source to which the metadata is referring to.
|
309
|
+
# @!attribute [rw] dynamic_retrieval_metadata
|
310
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse::Candidate::GroundingMetadata::DynamicRetrievalMetadata]
|
311
|
+
# Metadata for dynamic retrieval.
|
312
|
+
class RetrievalMetadata
|
313
|
+
include ::Google::Protobuf::MessageExts
|
314
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
315
|
+
|
316
|
+
# Describes the source to which the metadata is associated to.
|
317
|
+
module Source
|
318
|
+
# Unspecified source.
|
319
|
+
SOURCE_UNSPECIFIED = 0
|
320
|
+
|
321
|
+
# Vertex AI search.
|
322
|
+
VERTEX_AI_SEARCH = 1
|
323
|
+
|
324
|
+
# Google Search.
|
325
|
+
GOOGLE_SEARCH = 3
|
326
|
+
|
327
|
+
# User inline provided content.
|
328
|
+
INLINE_CONTENT = 2
|
329
|
+
|
330
|
+
# Google Maps.
|
331
|
+
GOOGLE_MAPS = 4
|
332
|
+
end
|
333
|
+
end
|
334
|
+
|
335
|
+
# Describes the metadata about dynamic retrieval.
|
336
|
+
# @!attribute [rw] predictor_metadata
|
337
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse::Candidate::GroundingMetadata::DynamicRetrievalPredictorMetadata]
|
338
|
+
# Metadata for the dynamic retrieval predictor.
|
339
|
+
class DynamicRetrievalMetadata
|
340
|
+
include ::Google::Protobuf::MessageExts
|
341
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
342
|
+
end
|
343
|
+
|
344
|
+
# Describes the metadata about the dynamic retrieval predictor.
|
345
|
+
# @!attribute [rw] version
|
346
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse::Candidate::GroundingMetadata::DynamicRetrievalPredictorMetadata::Version]
|
347
|
+
# The version of the predictor which was used in dynamic retrieval.
|
348
|
+
# @!attribute [rw] prediction
|
349
|
+
# @return [::Float]
|
350
|
+
# The value of the predictor. This should be between [0, 1] where
|
351
|
+
# a value of 0 means that the query would not benefit from grounding,
|
352
|
+
# while a value of 1.0 means that the query would benefit the most.
|
353
|
+
# In between values allow to differentiate between different usefulness
|
354
|
+
# scores for grounding.
|
355
|
+
class DynamicRetrievalPredictorMetadata
|
356
|
+
include ::Google::Protobuf::MessageExts
|
357
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
358
|
+
|
359
|
+
# The version of the predictor which was used in dynamic retrieval.
|
360
|
+
module Version
|
361
|
+
# Unspecified version, should never be used.
|
362
|
+
VERSION_UNSPECIFIED = 0
|
363
|
+
|
364
|
+
# The V1 model which is evaluating each source independently.
|
365
|
+
V1_INDEPENDENT = 1
|
366
|
+
end
|
367
|
+
end
|
368
|
+
|
369
|
+
# Google search entry point.
|
370
|
+
# @!attribute [rw] rendered_content
|
371
|
+
# @return [::String]
|
372
|
+
# Web content snippet that can be embedded in a web page or an app
|
373
|
+
# webview.
|
374
|
+
# @!attribute [rw] sdk_blob
|
375
|
+
# @return [::String]
|
376
|
+
# Base64 encoded JSON representing array of <search term, search url>
|
377
|
+
# tuple.
|
378
|
+
class SearchEntryPoint
|
379
|
+
include ::Google::Protobuf::MessageExts
|
380
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
381
|
+
end
|
382
|
+
|
383
|
+
# Grounding info for a claim in the candidate and its support.
|
384
|
+
# @!attribute [rw] claim_text
|
385
|
+
# @return [::String]
|
386
|
+
# Text for the claim in the candidate. Always provided when a
|
387
|
+
# support is found.
|
388
|
+
# @!attribute [rw] support_chunk_indices
|
389
|
+
# @return [::Array<::Integer>]
|
390
|
+
# A list of indices (into 'support_chunks') specifying the
|
391
|
+
# citations associated with the claim. For instance [1,3,4] means
|
392
|
+
# that support_chunks[1], support_chunks[3],
|
393
|
+
# support_chunks[4] are the chunks attributed to the claim.
|
394
|
+
# @!attribute [rw] support_score
|
395
|
+
# @return [::Float]
|
396
|
+
# A score in the range of [0, 1] describing how grounded is a specific
|
397
|
+
# claim in the support chunks indicated.
|
398
|
+
# Higher value means that the claim is better supported by the chunks.
|
399
|
+
class GroundingSupport
|
400
|
+
include ::Google::Protobuf::MessageExts
|
401
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
402
|
+
end
|
403
|
+
end
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
24
407
|
# Specification for the grounding check.
|
25
408
|
# @!attribute [rw] citation_threshold
|
26
409
|
# @return [::Float]
|
@@ -130,8 +513,9 @@ module Google
|
|
130
513
|
# field will be set to false. In that case, no grounding check was done for
|
131
514
|
# the claim and therefore
|
132
515
|
# {::Google::Cloud::DiscoveryEngine::V1::CheckGroundingResponse::Claim#citation_indices citation_indices},
|
516
|
+
# [anti_citation_indices][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.anti_citation_indices],
|
133
517
|
# and
|
134
|
-
# [
|
518
|
+
# [score][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.score]
|
135
519
|
# should not be returned.
|
136
520
|
class Claim
|
137
521
|
include ::Google::Protobuf::MessageExts
|
@@ -68,7 +68,7 @@ module Google
|
|
68
68
|
# BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
|
69
69
|
# @!attribute [rw] project_id
|
70
70
|
# @return [::String]
|
71
|
-
# The project ID
|
71
|
+
# The project ID or the project number that contains the BigQuery source. Has
|
72
72
|
# a length limit of 128 characters. If not specified, inherits the project
|
73
73
|
# ID from the parent request.
|
74
74
|
# @!attribute [rw] dataset_id
|
@@ -113,7 +113,7 @@ module Google
|
|
113
113
|
# The Spanner source for importing data
|
114
114
|
# @!attribute [rw] project_id
|
115
115
|
# @return [::String]
|
116
|
-
# The project ID that the Spanner source
|
116
|
+
# The project ID that contains the Spanner source. Has a length limit of 128
|
117
117
|
# characters. If not specified, inherits the project ID from the parent
|
118
118
|
# request.
|
119
119
|
# @!attribute [rw] instance_id
|
@@ -268,7 +268,7 @@ module Google
|
|
268
268
|
# The Cloud Bigtable source for importing data.
|
269
269
|
# @!attribute [rw] project_id
|
270
270
|
# @return [::String]
|
271
|
-
# The project ID that the Bigtable source
|
271
|
+
# The project ID that contains the Bigtable source. Has a length limit of 128
|
272
272
|
# characters. If not specified, inherits the project ID from the parent
|
273
273
|
# request.
|
274
274
|
# @!attribute [rw] instance_id
|
@@ -297,6 +297,12 @@ module Google
|
|
297
297
|
# Intermediate Cloud Storage directory used for the import with a length
|
298
298
|
# limit of 2,000 characters. Can be specified if one wants to have the
|
299
299
|
# FhirStore export to a specific Cloud Storage directory.
|
300
|
+
# @!attribute [rw] resource_types
|
301
|
+
# @return [::Array<::String>]
|
302
|
+
# The FHIR resource types to import. The resource types should be a subset of
|
303
|
+
# all [supported FHIR resource
|
304
|
+
# types](https://cloud.google.com/generative-ai-app-builder/docs/fhir-schema-reference#resource-level-specification).
|
305
|
+
# Default to all supported FHIR resource types if empty.
|
300
306
|
class FhirStoreSource
|
301
307
|
include ::Google::Protobuf::MessageExts
|
302
308
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -305,8 +311,8 @@ module Google
|
|
305
311
|
# Cloud SQL source import data from.
|
306
312
|
# @!attribute [rw] project_id
|
307
313
|
# @return [::String]
|
308
|
-
# The project ID that the Cloud SQL source
|
309
|
-
# characters. If not specified, inherits the project ID from the parent
|
314
|
+
# The project ID that contains the Cloud SQL source. Has a length limit of
|
315
|
+
# 128 characters. If not specified, inherits the project ID from the parent
|
310
316
|
# request.
|
311
317
|
# @!attribute [rw] instance_id
|
312
318
|
# @return [::String]
|
@@ -341,8 +347,8 @@ module Google
|
|
341
347
|
# AlloyDB source import data from.
|
342
348
|
# @!attribute [rw] project_id
|
343
349
|
# @return [::String]
|
344
|
-
# The project ID that the AlloyDB source
|
345
|
-
#
|
350
|
+
# The project ID that contains the AlloyDB source.
|
351
|
+
# Has a length limit of 128 characters. If not specified, inherits the
|
346
352
|
# project ID from the parent request.
|
347
353
|
# @!attribute [rw] location_id
|
348
354
|
# @return [::String]
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @!attribute [r] name
|
26
26
|
# @return [::String]
|
27
27
|
# Output only. Full resource name of the project, for example
|
28
|
-
# `projects/{
|
28
|
+
# `projects/{project}`.
|
29
29
|
# Note that when making requests, project number and project id are both
|
30
30
|
# acceptable, but the server will always respond in project number.
|
31
31
|
# @!attribute [r] create_time
|
@@ -21,9 +21,107 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module DiscoveryEngine
|
23
23
|
module V1
|
24
|
+
# Request message for PurgeUserEvents method.
|
25
|
+
# @!attribute [rw] parent
|
26
|
+
# @return [::String]
|
27
|
+
# Required. The resource name of the catalog under which the events are
|
28
|
+
# created. The format is
|
29
|
+
# `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`.
|
30
|
+
# @!attribute [rw] filter
|
31
|
+
# @return [::String]
|
32
|
+
# Required. The filter string to specify the events to be deleted with a
|
33
|
+
# length limit of 5,000 characters. The eligible fields for filtering are:
|
34
|
+
#
|
35
|
+
# * `eventType`: Double quoted
|
36
|
+
# {::Google::Cloud::DiscoveryEngine::V1::UserEvent#event_type UserEvent.event_type}
|
37
|
+
# string.
|
38
|
+
# * `eventTime`: in ISO 8601 "zulu" format.
|
39
|
+
# * `userPseudoId`: Double quoted string. Specifying this will delete all
|
40
|
+
# events associated with a visitor.
|
41
|
+
# * `userId`: Double quoted string. Specifying this will delete all events
|
42
|
+
# associated with a user.
|
43
|
+
#
|
44
|
+
# Examples:
|
45
|
+
#
|
46
|
+
# * Deleting all events in a time range:
|
47
|
+
# `eventTime > "2012-04-23T18:25:43.511Z"
|
48
|
+
# eventTime < "2012-04-23T18:30:43.511Z"`
|
49
|
+
# * Deleting specific eventType:
|
50
|
+
# `eventType = "search"`
|
51
|
+
# * Deleting all events for a specific visitor:
|
52
|
+
# `userPseudoId = "visitor1024"`
|
53
|
+
# * Deleting all events inside a DataStore:
|
54
|
+
# `*`
|
55
|
+
#
|
56
|
+
# The filtering fields are assumed to have an implicit AND.
|
57
|
+
# @!attribute [rw] force
|
58
|
+
# @return [::Boolean]
|
59
|
+
# The `force` field is currently not supported. Purge user event requests
|
60
|
+
# will permanently delete all purgeable events. Once the development is
|
61
|
+
# complete:
|
62
|
+
# If `force` is set to false, the method will return the expected
|
63
|
+
# purge count without deleting any user events. This field will default to
|
64
|
+
# false if not included in the request.
|
65
|
+
class PurgeUserEventsRequest
|
66
|
+
include ::Google::Protobuf::MessageExts
|
67
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
68
|
+
end
|
69
|
+
|
70
|
+
# Response of the PurgeUserEventsRequest. If the long running operation is
|
71
|
+
# successfully done, then this message is returned by the
|
72
|
+
# google.longrunning.Operations.response field.
|
73
|
+
# @!attribute [rw] purge_count
|
74
|
+
# @return [::Integer]
|
75
|
+
# The total count of events purged as a result of the operation.
|
76
|
+
class PurgeUserEventsResponse
|
77
|
+
include ::Google::Protobuf::MessageExts
|
78
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
79
|
+
end
|
80
|
+
|
81
|
+
# Metadata related to the progress of the PurgeUserEvents operation.
|
82
|
+
# This will be returned by the google.longrunning.Operation.metadata field.
|
83
|
+
# @!attribute [rw] create_time
|
84
|
+
# @return [::Google::Protobuf::Timestamp]
|
85
|
+
# Operation create time.
|
86
|
+
# @!attribute [rw] update_time
|
87
|
+
# @return [::Google::Protobuf::Timestamp]
|
88
|
+
# Operation last update time. If the operation is done, this is also the
|
89
|
+
# finish time.
|
90
|
+
# @!attribute [rw] success_count
|
91
|
+
# @return [::Integer]
|
92
|
+
# Count of entries that were deleted successfully.
|
93
|
+
# @!attribute [rw] failure_count
|
94
|
+
# @return [::Integer]
|
95
|
+
# Count of entries that encountered errors while processing.
|
96
|
+
class PurgeUserEventsMetadata
|
97
|
+
include ::Google::Protobuf::MessageExts
|
98
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
99
|
+
end
|
100
|
+
|
101
|
+
# Configuration of destination for Purge related errors.
|
102
|
+
# @!attribute [rw] gcs_prefix
|
103
|
+
# @return [::String]
|
104
|
+
# Cloud Storage prefix for purge errors. This must be an empty,
|
105
|
+
# existing Cloud Storage directory. Purge errors are written to
|
106
|
+
# sharded files in this directory, one per line, as a JSON-encoded
|
107
|
+
# `google.rpc.Status` message.
|
108
|
+
class PurgeErrorConfig
|
109
|
+
include ::Google::Protobuf::MessageExts
|
110
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
111
|
+
end
|
112
|
+
|
24
113
|
# Request message for
|
25
114
|
# {::Google::Cloud::DiscoveryEngine::V1::DocumentService::Client#purge_documents DocumentService.PurgeDocuments}
|
26
115
|
# method.
|
116
|
+
# @!attribute [rw] gcs_source
|
117
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::GcsSource]
|
118
|
+
# Cloud Storage location for the input content.
|
119
|
+
# Supported `data_schema`:
|
120
|
+
# * `document_id`: One valid
|
121
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Document#id Document.id} per line.
|
122
|
+
# @!attribute [rw] inline_source
|
123
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::PurgeDocumentsRequest::InlineSource]
|
124
|
+
# Inline source for the input content for purge.
|
27
125
|
# @!attribute [rw] parent
|
28
126
|
# @return [::String]
|
29
127
|
# Required. The parent resource name, such as
|
@@ -33,6 +131,9 @@ module Google
|
|
33
131
|
# Required. Filter matching documents to purge. Only currently supported
|
34
132
|
# value is
|
35
133
|
# `*` (all items).
|
134
|
+
# @!attribute [rw] error_config
|
135
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::PurgeErrorConfig]
|
136
|
+
# The desired location of errors incurred during the purge.
|
36
137
|
# @!attribute [rw] force
|
37
138
|
# @return [::Boolean]
|
38
139
|
# Actually performs the purge. If `force` is set to false, return the
|
@@ -40,6 +141,20 @@ module Google
|
|
40
141
|
class PurgeDocumentsRequest
|
41
142
|
include ::Google::Protobuf::MessageExts
|
42
143
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
144
|
+
|
145
|
+
# The inline source for the input config for
|
146
|
+
# {::Google::Cloud::DiscoveryEngine::V1::DocumentService::Client#purge_documents DocumentService.PurgeDocuments}
|
147
|
+
# method.
|
148
|
+
# @!attribute [rw] documents
|
149
|
+
# @return [::Array<::String>]
|
150
|
+
# Required. A list of full resource name of documents to purge. In the
|
151
|
+
# format
|
152
|
+
# `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`.
|
153
|
+
# Recommended max of 100 items.
|
154
|
+
class InlineSource
|
155
|
+
include ::Google::Protobuf::MessageExts
|
156
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
157
|
+
end
|
43
158
|
end
|
44
159
|
|
45
160
|
# Response message for
|
@@ -53,7 +53,7 @@ module Google
|
|
53
53
|
# @!attribute [rw] ranking_config
|
54
54
|
# @return [::String]
|
55
55
|
# Required. The resource name of the rank service config, such as
|
56
|
-
# `projects/{project_num}/locations/{
|
56
|
+
# `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`.
|
57
57
|
# @!attribute [rw] model
|
58
58
|
# @return [::String]
|
59
59
|
# The identifier of the model to use. It is one of:
|
@@ -24,7 +24,8 @@ module Google
|
|
24
24
|
# Request message for Recommend method.
|
25
25
|
# @!attribute [rw] serving_config
|
26
26
|
# @return [::String]
|
27
|
-
# Required. Full resource name of a
|
27
|
+
# Required. Full resource name of a
|
28
|
+
# [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]:
|
28
29
|
# `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or
|
29
30
|
# `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
|
30
31
|
#
|