google-cloud-discovery_engine-v1beta 0.14.2 → 0.16.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/v1beta/completion_service/client.rb +155 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/paths.rb +62 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +148 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +76 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/client.rb +6 -6
- data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/client.rb +6 -6
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +18 -13
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +18 -13
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +109 -1
- data/lib/google/cloud/discovery_engine/v1beta/document_service/paths.rb +25 -0
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +102 -1
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/service_stub.rb +66 -0
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +3 -3
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +3 -3
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +218 -4
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/paths.rb +85 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +125 -4
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/service_stub.rb +60 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +410 -4
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +402 -4
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/service_stub.rb +76 -0
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +324 -1
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/paths.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +303 -1
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/service_stub.rb +193 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +18 -1
- data/lib/google/cloud/discoveryengine/v1beta/completion_service_services_pb.rb +2 -0
- data/lib/google/cloud/discoveryengine/v1beta/control_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1beta/custom_tuning_model_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/data_store_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +11 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_service_services_pb.rb +4 -0
- data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +24 -1
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_services_pb.rb +4 -0
- data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/purge_config_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +6 -1
- data/lib/google/cloud/discoveryengine/v1beta/search_service_services_pb.rb +14 -0
- data/lib/google/cloud/discoveryengine/v1beta/serving_config_pb.rb +2 -2
- data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_service_pb.rb +10 -1
- data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_service_services_pb.rb +7 -0
- data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +20 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +68 -8
- data/proto_docs/google/cloud/discoveryengine/v1beta/completion_service.rb +268 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/control.rb +10 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/control_service.rb +6 -6
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +98 -15
- data/proto_docs/google/cloud/discoveryengine/v1beta/custom_tuning_model.rb +11 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/data_store.rb +131 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +22 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +9 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +123 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +5 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/engine_service.rb +4 -4
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +398 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +10 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +13 -7
- data/proto_docs/google/cloud/discoveryengine/v1beta/project.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/purge_config.rb +39 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +175 -6
- data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +16 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config_service.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +17 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine_service.rb +147 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +13 -1
- metadata +3 -3
@@ -93,6 +93,9 @@ module Google
|
|
93
93
|
# @!attribute [rw] chunk_info
|
94
94
|
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Answer::Reference::ChunkInfo]
|
95
95
|
# Chunk information.
|
96
|
+
# @!attribute [rw] structured_document_info
|
97
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Answer::Reference::StructuredDocumentInfo]
|
98
|
+
# Structured document information.
|
96
99
|
class Reference
|
97
100
|
include ::Google::Protobuf::MessageExts
|
98
101
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -125,6 +128,13 @@ module Google
|
|
125
128
|
# @!attribute [rw] page_identifier
|
126
129
|
# @return [::String]
|
127
130
|
# Page identifier.
|
131
|
+
# @!attribute [rw] relevance_score
|
132
|
+
# @return [::Float]
|
133
|
+
# The relevance of the chunk for a given query. Values range from 0.0
|
134
|
+
# (completely irrelevant) to 1.0 (completely relevant).
|
135
|
+
# This value is for informational purpose only. It may change for
|
136
|
+
# the same query and chunk at any time due to a model retraining or
|
137
|
+
# change in implementation.
|
128
138
|
class ChunkContent
|
129
139
|
include ::Google::Protobuf::MessageExts
|
130
140
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -140,7 +150,11 @@ module Google
|
|
140
150
|
# Chunk textual content.
|
141
151
|
# @!attribute [rw] relevance_score
|
142
152
|
# @return [::Float]
|
143
|
-
#
|
153
|
+
# The relevance of the chunk for a given query. Values range from 0.0
|
154
|
+
# (completely irrelevant) to 1.0 (completely relevant).
|
155
|
+
# This value is for informational purpose only. It may change for
|
156
|
+
# the same query and chunk at any time due to a model retraining or
|
157
|
+
# change in implementation.
|
144
158
|
# @!attribute [rw] document_metadata
|
145
159
|
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Answer::Reference::ChunkInfo::DocumentMetadata]
|
146
160
|
# Document metadata.
|
@@ -170,6 +184,18 @@ module Google
|
|
170
184
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
171
185
|
end
|
172
186
|
end
|
187
|
+
|
188
|
+
# Structured search information.
|
189
|
+
# @!attribute [rw] document
|
190
|
+
# @return [::String]
|
191
|
+
# Document resource name.
|
192
|
+
# @!attribute [rw] struct_data
|
193
|
+
# @return [::Google::Protobuf::Struct]
|
194
|
+
# Structured search data.
|
195
|
+
class StructuredDocumentInfo
|
196
|
+
include ::Google::Protobuf::MessageExts
|
197
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
198
|
+
end
|
173
199
|
end
|
174
200
|
|
175
201
|
# Step information.
|
@@ -239,10 +265,8 @@ module Google
|
|
239
265
|
# @return [::Google::Protobuf::Struct]
|
240
266
|
# Data representation.
|
241
267
|
# The structured JSON data for the document.
|
242
|
-
# It's populated from the struct data from the Document
|
243
|
-
#
|
244
|
-
# search result
|
245
|
-
# .
|
268
|
+
# It's populated from the struct data from the Document, or the
|
269
|
+
# Chunk in search result.
|
246
270
|
class SearchResult
|
247
271
|
include ::Google::Protobuf::MessageExts
|
248
272
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -268,7 +292,11 @@ module Google
|
|
268
292
|
# Chunk textual content.
|
269
293
|
# @!attribute [rw] relevance_score
|
270
294
|
# @return [::Float]
|
271
|
-
#
|
295
|
+
# The relevance of the chunk for a given query. Values range from
|
296
|
+
# 0.0 (completely irrelevant) to 1.0 (completely relevant).
|
297
|
+
# This value is for informational purpose only. It may change for
|
298
|
+
# the same query and chunk at any time due to a model retraining or
|
299
|
+
# change in implementation.
|
272
300
|
class ChunkInfo
|
273
301
|
include ::Google::Protobuf::MessageExts
|
274
302
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -320,8 +348,14 @@ module Google
|
|
320
348
|
# Adversarial query classification type.
|
321
349
|
ADVERSARIAL_QUERY = 1
|
322
350
|
|
323
|
-
# Non-answer-seeking query classification type.
|
351
|
+
# Non-answer-seeking query classification type, for chit chat.
|
324
352
|
NON_ANSWER_SEEKING_QUERY = 2
|
353
|
+
|
354
|
+
# Jail-breaking query classification type.
|
355
|
+
JAIL_BREAKING_QUERY = 3
|
356
|
+
|
357
|
+
# Non-answer-seeking query classification type, for no clear intent.
|
358
|
+
NON_ANSWER_SEEKING_QUERY_V2 = 4
|
325
359
|
end
|
326
360
|
end
|
327
361
|
end
|
@@ -349,7 +383,9 @@ module Google
|
|
349
383
|
# The adversarial query ignored case.
|
350
384
|
ADVERSARIAL_QUERY_IGNORED = 1
|
351
385
|
|
352
|
-
# The non-answer seeking query ignored case
|
386
|
+
# The non-answer seeking query ignored case
|
387
|
+
#
|
388
|
+
# Google skips the answer if the query is chit chat.
|
353
389
|
NON_ANSWER_SEEKING_QUERY_IGNORED = 2
|
354
390
|
|
355
391
|
# The out-of-domain query ignored case.
|
@@ -368,6 +404,30 @@ module Google
|
|
368
404
|
# Google skips the answer if there is no relevant content in the
|
369
405
|
# retrieved search results.
|
370
406
|
NO_RELEVANT_CONTENT = 5
|
407
|
+
|
408
|
+
# The jail-breaking query ignored case.
|
409
|
+
#
|
410
|
+
# For example, "Reply in the tone of a competing company's CEO".
|
411
|
+
# Google skips the answer if the query is classified as a jail-breaking
|
412
|
+
# query.
|
413
|
+
JAIL_BREAKING_QUERY_IGNORED = 6
|
414
|
+
|
415
|
+
# The customer policy violation case.
|
416
|
+
#
|
417
|
+
# Google skips the summary if there is a customer policy violation
|
418
|
+
# detected. The policy is defined by the customer.
|
419
|
+
CUSTOMER_POLICY_VIOLATION = 7
|
420
|
+
|
421
|
+
# The non-answer seeking query ignored case.
|
422
|
+
#
|
423
|
+
# Google skips the answer if the query doesn't have clear intent.
|
424
|
+
NON_ANSWER_SEEKING_QUERY_IGNORED_V2 = 8
|
425
|
+
|
426
|
+
# The low-grounded answer case.
|
427
|
+
#
|
428
|
+
# Google skips the answer if a well grounded answer was unable to be
|
429
|
+
# generated.
|
430
|
+
LOW_GROUNDED_ANSWER = 9
|
371
431
|
end
|
372
432
|
end
|
373
433
|
end
|
@@ -111,6 +111,274 @@ module Google
|
|
111
111
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
112
112
|
end
|
113
113
|
end
|
114
|
+
|
115
|
+
# Request message for
|
116
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::CompletionService::Client#advanced_complete_query CompletionService.AdvancedCompleteQuery}
|
117
|
+
# method.
|
118
|
+
# .
|
119
|
+
# @!attribute [rw] completion_config
|
120
|
+
# @return [::String]
|
121
|
+
# Required. The completion_config of the parent dataStore or engine resource
|
122
|
+
# name for which the completion is performed, such as
|
123
|
+
# `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
|
124
|
+
# `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
|
125
|
+
# @!attribute [rw] query
|
126
|
+
# @return [::String]
|
127
|
+
# Required. The typeahead input used to fetch suggestions. Maximum length is
|
128
|
+
# 128 characters.
|
129
|
+
#
|
130
|
+
# The query can not be empty for most of the suggestion types. If it is
|
131
|
+
# empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
|
132
|
+
# suggestion_types contains only the type `RECENT_SEARCH`, the query can
|
133
|
+
# be an empty string. The is called "zero prefix" feature, which returns
|
134
|
+
# user's recently searched queries given the empty query.
|
135
|
+
# @!attribute [rw] query_model
|
136
|
+
# @return [::String]
|
137
|
+
# Specifies the autocomplete data model. This overrides any model specified
|
138
|
+
# in the Configuration > Autocomplete section of the Cloud console. Currently
|
139
|
+
# supported values:
|
140
|
+
#
|
141
|
+
# * `document` - Using suggestions generated from user-imported documents.
|
142
|
+
# * `search-history` - Using suggestions generated from the past history of
|
143
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::SearchService::Client#search SearchService.Search}
|
144
|
+
# API calls. Do not use it when there is no traffic for Search API.
|
145
|
+
# * `user-event` - Using suggestions generated from user-imported search
|
146
|
+
# events.
|
147
|
+
# * `document-completable` - Using suggestions taken directly from
|
148
|
+
# user-imported document fields marked as completable.
|
149
|
+
#
|
150
|
+
# Default values:
|
151
|
+
#
|
152
|
+
# * `document` is the default model for regular dataStores.
|
153
|
+
# * `search-history` is the default model for site search dataStores.
|
154
|
+
# @!attribute [rw] user_pseudo_id
|
155
|
+
# @return [::String]
|
156
|
+
# A unique identifier for tracking visitors. For example, this could be
|
157
|
+
# implemented with an HTTP cookie, which should be able to uniquely identify
|
158
|
+
# a visitor on a single device. This unique identifier should not change if
|
159
|
+
# the visitor logs in or out of the website.
|
160
|
+
#
|
161
|
+
# This field should NOT have a fixed value such as `unknown_visitor`.
|
162
|
+
#
|
163
|
+
# This should be the same identifier as
|
164
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::UserEvent#user_pseudo_id UserEvent.user_pseudo_id}
|
165
|
+
# and
|
166
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest#user_pseudo_id SearchRequest.user_pseudo_id}.
|
167
|
+
#
|
168
|
+
# The field must be a UTF-8 encoded string with a length limit of 128
|
169
|
+
# @!attribute [rw] user_info
|
170
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::UserInfo]
|
171
|
+
# Optional. Information about the end user.
|
172
|
+
#
|
173
|
+
# This should be the same identifier information as
|
174
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::UserEvent#user_info UserEvent.user_info}
|
175
|
+
# and
|
176
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest#user_info SearchRequest.user_info}.
|
177
|
+
# @!attribute [rw] include_tail_suggestions
|
178
|
+
# @return [::Boolean]
|
179
|
+
# Indicates if tail suggestions should be returned if there are no
|
180
|
+
# suggestions that match the full query. Even if set to true, if there are
|
181
|
+
# suggestions that match the full query, those are returned and no
|
182
|
+
# tail suggestions are returned.
|
183
|
+
# @!attribute [rw] boost_spec
|
184
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AdvancedCompleteQueryRequest::BoostSpec]
|
185
|
+
# Optional. Specification to boost suggestions matching the condition.
|
186
|
+
# @!attribute [rw] suggestion_types
|
187
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::AdvancedCompleteQueryRequest::SuggestionType>]
|
188
|
+
# Optional. Suggestion types to return. If empty or unspecified, query
|
189
|
+
# suggestions are returned. Only one suggestion type is supported at the
|
190
|
+
# moment.
|
191
|
+
class AdvancedCompleteQueryRequest
|
192
|
+
include ::Google::Protobuf::MessageExts
|
193
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
194
|
+
|
195
|
+
# Specification to boost suggestions based on the condtion of the suggestion.
|
196
|
+
# @!attribute [rw] condition_boost_specs
|
197
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::AdvancedCompleteQueryRequest::BoostSpec::ConditionBoostSpec>]
|
198
|
+
# Condition boost specifications. If a suggestion matches multiple
|
199
|
+
# conditions in the specifictions, boost values from these specifications
|
200
|
+
# are all applied and combined in a non-linear way. Maximum number of
|
201
|
+
# specifications is 20.
|
202
|
+
#
|
203
|
+
# Note: Currently only support language condition boost.
|
204
|
+
class BoostSpec
|
205
|
+
include ::Google::Protobuf::MessageExts
|
206
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
207
|
+
|
208
|
+
# Boost applies to suggestions which match a condition.
|
209
|
+
# @!attribute [rw] condition
|
210
|
+
# @return [::String]
|
211
|
+
# An expression which specifies a boost condition. The syntax is the same
|
212
|
+
# as [filter expression
|
213
|
+
# syntax](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax).
|
214
|
+
# Currently, the only supported condition is a list of BCP-47 lang codes.
|
215
|
+
#
|
216
|
+
# Example:
|
217
|
+
#
|
218
|
+
# * To boost suggestions in languages `en` or `fr`:
|
219
|
+
# `(lang_code: ANY("en", "fr"))`
|
220
|
+
# @!attribute [rw] boost
|
221
|
+
# @return [::Float]
|
222
|
+
# Strength of the boost, which should be in [-1, 1].
|
223
|
+
# Negative boost means demotion. Default is 0.0.
|
224
|
+
#
|
225
|
+
# Setting to 1.0 gives the suggestions a big promotion. However, it does
|
226
|
+
# not necessarily mean that the top result will be a boosted suggestion.
|
227
|
+
#
|
228
|
+
# Setting to -1.0 gives the suggestions a big demotion. However, other
|
229
|
+
# suggestions that are relevant might still be shown.
|
230
|
+
#
|
231
|
+
# Setting to 0.0 means no boost applied. The boosting condition is
|
232
|
+
# ignored.
|
233
|
+
class ConditionBoostSpec
|
234
|
+
include ::Google::Protobuf::MessageExts
|
235
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
# Suggestion type to return.
|
240
|
+
module SuggestionType
|
241
|
+
# Default value.
|
242
|
+
SUGGESTION_TYPE_UNSPECIFIED = 0
|
243
|
+
|
244
|
+
# Returns query suggestions.
|
245
|
+
QUERY = 1
|
246
|
+
|
247
|
+
# Returns people suggestions.
|
248
|
+
PEOPLE = 2
|
249
|
+
|
250
|
+
# Returns content suggestions.
|
251
|
+
CONTENT = 3
|
252
|
+
|
253
|
+
# Returns recent search suggestions.
|
254
|
+
RECENT_SEARCH = 4
|
255
|
+
|
256
|
+
# Returns Google Workspace suggestions.
|
257
|
+
GOOGLE_WORKSPACE = 5
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# Response message for
|
262
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::CompletionService::Client#advanced_complete_query CompletionService.AdvancedCompleteQuery}
|
263
|
+
# method.
|
264
|
+
# @!attribute [rw] query_suggestions
|
265
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::AdvancedCompleteQueryResponse::QuerySuggestion>]
|
266
|
+
# Results of the matched query suggestions. The result list is ordered and
|
267
|
+
# the first result is a top suggestion.
|
268
|
+
# @!attribute [rw] tail_match_triggered
|
269
|
+
# @return [::Boolean]
|
270
|
+
# True if the returned suggestions are all tail suggestions.
|
271
|
+
#
|
272
|
+
# For tail matching to be triggered, include_tail_suggestions in the request
|
273
|
+
# must be true and there must be no suggestions that match the full query.
|
274
|
+
# @!attribute [rw] people_suggestions
|
275
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::AdvancedCompleteQueryResponse::PersonSuggestion>]
|
276
|
+
# Results of the matched people suggestions. The result list is ordered and
|
277
|
+
# the first result is the top suggestion.
|
278
|
+
# @!attribute [rw] content_suggestions
|
279
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::AdvancedCompleteQueryResponse::ContentSuggestion>]
|
280
|
+
# Results of the matched content suggestions. The result list is ordered and
|
281
|
+
# the first result is the top suggestion.
|
282
|
+
# @!attribute [rw] recent_search_suggestions
|
283
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::AdvancedCompleteQueryResponse::RecentSearchSuggestion>]
|
284
|
+
# Results of the matched "recent search" suggestions. The result list is
|
285
|
+
# ordered and the first result is the top suggestion.
|
286
|
+
class AdvancedCompleteQueryResponse
|
287
|
+
include ::Google::Protobuf::MessageExts
|
288
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
289
|
+
|
290
|
+
# Suggestions as search queries.
|
291
|
+
# @!attribute [rw] suggestion
|
292
|
+
# @return [::String]
|
293
|
+
# The suggestion for the query.
|
294
|
+
# @!attribute [rw] completable_field_paths
|
295
|
+
# @return [::Array<::String>]
|
296
|
+
# The unique document field paths that serve as the source of this
|
297
|
+
# suggestion if it was generated from completable fields.
|
298
|
+
#
|
299
|
+
# This field is only populated for the document-completable model.
|
300
|
+
# @!attribute [rw] data_store
|
301
|
+
# @return [::Array<::String>]
|
302
|
+
# The name of the dataStore that this suggestion belongs to.
|
303
|
+
class QuerySuggestion
|
304
|
+
include ::Google::Protobuf::MessageExts
|
305
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
306
|
+
end
|
307
|
+
|
308
|
+
# Suggestions as people.
|
309
|
+
# @!attribute [rw] suggestion
|
310
|
+
# @return [::String]
|
311
|
+
# The suggestion for the query.
|
312
|
+
# @!attribute [rw] person_type
|
313
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AdvancedCompleteQueryResponse::PersonSuggestion::PersonType]
|
314
|
+
# The type of the person.
|
315
|
+
# @!attribute [rw] document
|
316
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Document]
|
317
|
+
# The document data snippet in the suggestion. Only a subset of fields is
|
318
|
+
# populated.
|
319
|
+
# @!attribute [rw] data_store
|
320
|
+
# @return [::String]
|
321
|
+
# The name of the dataStore that this suggestion belongs to.
|
322
|
+
class PersonSuggestion
|
323
|
+
include ::Google::Protobuf::MessageExts
|
324
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
325
|
+
|
326
|
+
# The type of the person based on the source.
|
327
|
+
module PersonType
|
328
|
+
# Default value.
|
329
|
+
PERSON_TYPE_UNSPECIFIED = 0
|
330
|
+
|
331
|
+
# The suggestion is from a GOOGLE_IDENTITY source.
|
332
|
+
CLOUD_IDENTITY = 1
|
333
|
+
|
334
|
+
# The suggestion is from a THIRD_PARTY_IDENTITY source.
|
335
|
+
THIRD_PARTY_IDENTITY = 2
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
# Suggestions as content.
|
340
|
+
# @!attribute [rw] suggestion
|
341
|
+
# @return [::String]
|
342
|
+
# The suggestion for the query.
|
343
|
+
# @!attribute [rw] content_type
|
344
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AdvancedCompleteQueryResponse::ContentSuggestion::ContentType]
|
345
|
+
# The type of the content suggestion.
|
346
|
+
# @!attribute [rw] document
|
347
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Document]
|
348
|
+
# The document data snippet in the suggestion. Only a subset of fields will
|
349
|
+
# be populated.
|
350
|
+
# @!attribute [rw] data_store
|
351
|
+
# @return [::String]
|
352
|
+
# The name of the dataStore that this suggestion belongs to.
|
353
|
+
class ContentSuggestion
|
354
|
+
include ::Google::Protobuf::MessageExts
|
355
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
356
|
+
|
357
|
+
# The type of the content returned for content suggestions.
|
358
|
+
module ContentType
|
359
|
+
# Default value.
|
360
|
+
CONTENT_TYPE_UNSPECIFIED = 0
|
361
|
+
|
362
|
+
# The suggestion is from a Google Workspace source.
|
363
|
+
GOOGLE_WORKSPACE = 1
|
364
|
+
|
365
|
+
# The suggestion is from a third party source.
|
366
|
+
THIRD_PARTY = 2
|
367
|
+
end
|
368
|
+
end
|
369
|
+
|
370
|
+
# Suggestions from recent search history.
|
371
|
+
# @!attribute [rw] suggestion
|
372
|
+
# @return [::String]
|
373
|
+
# The suggestion for the query.
|
374
|
+
# @!attribute [rw] recent_search_time
|
375
|
+
# @return [::Google::Protobuf::Timestamp]
|
376
|
+
# The time when this recent rearch happened.
|
377
|
+
class RecentSearchSuggestion
|
378
|
+
include ::Google::Protobuf::MessageExts
|
379
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
380
|
+
end
|
381
|
+
end
|
114
382
|
end
|
115
383
|
end
|
116
384
|
end
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::Condition::QueryTerm>]
|
27
27
|
# Search only
|
28
28
|
# A list of terms to match the query on.
|
29
|
+
# Cannot be set when
|
30
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Condition#query_regex Condition.query_regex}
|
31
|
+
# is set.
|
29
32
|
#
|
30
33
|
# Maximum of 10 query terms.
|
31
34
|
# @!attribute [rw] active_time_range
|
@@ -33,6 +36,12 @@ module Google
|
|
33
36
|
# Range of time(s) specifying when condition is active.
|
34
37
|
#
|
35
38
|
# Maximum of 10 time ranges.
|
39
|
+
# @!attribute [rw] query_regex
|
40
|
+
# @return [::String]
|
41
|
+
# Optional. Query regex to match the whole search query.
|
42
|
+
# Cannot be set when
|
43
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Condition#query_terms Condition.query_terms}
|
44
|
+
# is set. This is currently supporting promotion use case.
|
36
45
|
class Condition
|
37
46
|
include ::Google::Protobuf::MessageExts
|
38
47
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -102,7 +111,7 @@ module Google
|
|
102
111
|
# @!attribute [r] associated_serving_config_ids
|
103
112
|
# @return [::Array<::String>]
|
104
113
|
# Output only. List of all
|
105
|
-
# {::Google::Cloud::DiscoveryEngine::V1beta::ServingConfig ServingConfig}
|
114
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::ServingConfig ServingConfig} IDs this
|
106
115
|
# control is attached to. May take up to 10 minutes to update after changes.
|
107
116
|
# @!attribute [rw] solution_type
|
108
117
|
# @return [::Google::Cloud::DiscoveryEngine::V1beta::SolutionType]
|
@@ -25,9 +25,9 @@ module Google
|
|
25
25
|
# @!attribute [rw] parent
|
26
26
|
# @return [::String]
|
27
27
|
# Required. Full resource name of parent data store. Format:
|
28
|
-
# `projects/{
|
28
|
+
# `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
|
29
29
|
# or
|
30
|
-
# `projects/{
|
30
|
+
# `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
|
31
31
|
# @!attribute [rw] control
|
32
32
|
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Control]
|
33
33
|
# Required. The Control to create.
|
@@ -66,7 +66,7 @@ module Google
|
|
66
66
|
# @!attribute [rw] name
|
67
67
|
# @return [::String]
|
68
68
|
# Required. The resource name of the Control to delete. Format:
|
69
|
-
# `projects/{
|
69
|
+
# `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
|
70
70
|
class DeleteControlRequest
|
71
71
|
include ::Google::Protobuf::MessageExts
|
72
72
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -76,7 +76,7 @@ module Google
|
|
76
76
|
# @!attribute [rw] name
|
77
77
|
# @return [::String]
|
78
78
|
# Required. The resource name of the Control to get. Format:
|
79
|
-
# `projects/{
|
79
|
+
# `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}`
|
80
80
|
class GetControlRequest
|
81
81
|
include ::Google::Protobuf::MessageExts
|
82
82
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -86,9 +86,9 @@ module Google
|
|
86
86
|
# @!attribute [rw] parent
|
87
87
|
# @return [::String]
|
88
88
|
# Required. The data store resource name. Format:
|
89
|
-
# `projects/{
|
89
|
+
# `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
|
90
90
|
# or
|
91
|
-
# `projects/{
|
91
|
+
# `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
|
92
92
|
# @!attribute [rw] page_size
|
93
93
|
# @return [::Integer]
|
94
94
|
# Optional. Maximum number of results to return. If unspecified, defaults
|