google-cloud-discovery_engine-v1beta 0.10.0 → 0.11.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/conversational_search_service/client.rb +742 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/paths.rb +199 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +693 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +520 -0
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +48 -23
- data/lib/google/cloud/discovery_engine/v1beta/document_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +48 -23
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +296 -0
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +275 -0
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/service_stub.rb +180 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +449 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +416 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +459 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +426 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/rest.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +11 -6
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +11 -6
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta.rb +2 -0
- data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +67 -0
- data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +32 -1
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_services_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1beta/engine_service_pb.rb +6 -1
- data/lib/google/cloud/discoveryengine/v1beta/engine_service_services_pb.rb +12 -0
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +52 -0
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +46 -0
- data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +13 -1
- data/lib/google/cloud/discoveryengine/v1beta/rank_service_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1beta/rank_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/session_pb.rb +50 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +354 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +9 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +475 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +3 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +4 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/engine_service.rb +51 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +106 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +76 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +310 -24
- data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +99 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +154 -22
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_tuning_service.rb +16 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +85 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +1 -1
- metadata +28 -2
@@ -226,6 +226,481 @@ module Google
|
|
226
226
|
include ::Google::Protobuf::MessageExts
|
227
227
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
228
228
|
end
|
229
|
+
|
230
|
+
# Request message for
|
231
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client#answer_query ConversationalSearchService.AnswerQuery}
|
232
|
+
# method.
|
233
|
+
# @!attribute [rw] serving_config
|
234
|
+
# @return [::String]
|
235
|
+
# Required. The resource name of the Search serving config, such as
|
236
|
+
# `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
|
237
|
+
# or
|
238
|
+
# `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`.
|
239
|
+
# This field is used to identify the serving configuration name, set
|
240
|
+
# of models used to make the search.
|
241
|
+
# @!attribute [rw] query
|
242
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Query]
|
243
|
+
# Required. Current user query.
|
244
|
+
# @!attribute [rw] session
|
245
|
+
# @return [::String]
|
246
|
+
# The session resource name. Not required.
|
247
|
+
#
|
248
|
+
# When session field is not set, the API is in sessionless mode.
|
249
|
+
#
|
250
|
+
# We support auto session mode: users can use the wildcard symbol “-” as
|
251
|
+
# session id. A new id will be automatically generated and assigned.
|
252
|
+
# @!attribute [rw] safety_spec
|
253
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SafetySpec]
|
254
|
+
# Model specification.
|
255
|
+
# @!attribute [rw] related_questions_spec
|
256
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::RelatedQuestionsSpec]
|
257
|
+
# Related questions specification.
|
258
|
+
# @!attribute [rw] answer_generation_spec
|
259
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::AnswerGenerationSpec]
|
260
|
+
# Answer generation specification.
|
261
|
+
# @!attribute [rw] search_spec
|
262
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec]
|
263
|
+
# Search specification.
|
264
|
+
# @!attribute [rw] query_understanding_spec
|
265
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec]
|
266
|
+
# Query understanding specification.
|
267
|
+
# @!attribute [rw] asynchronous_mode
|
268
|
+
# @return [::Boolean]
|
269
|
+
# Asynchronous mode control.
|
270
|
+
#
|
271
|
+
# If enabled, the response will be returned with answer/session resource
|
272
|
+
# name without final answer. The API users need to do the polling to get
|
273
|
+
# the latest status of answer/session by calling
|
274
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client#get_answer ConversationalSearchService.GetAnswer}
|
275
|
+
# or
|
276
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client#get_session ConversationalSearchService.GetSession}
|
277
|
+
# method.
|
278
|
+
# @!attribute [rw] user_pseudo_id
|
279
|
+
# @return [::String]
|
280
|
+
# A unique identifier for tracking visitors. For example, this could be
|
281
|
+
# implemented with an HTTP cookie, which should be able to uniquely identify
|
282
|
+
# a visitor on a single device. This unique identifier should not change if
|
283
|
+
# the visitor logs in or out of the website.
|
284
|
+
#
|
285
|
+
# This field should NOT have a fixed value such as `unknown_visitor`.
|
286
|
+
#
|
287
|
+
# The field must be a UTF-8 encoded string with a length limit of 128
|
288
|
+
# characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
289
|
+
class AnswerQueryRequest
|
290
|
+
include ::Google::Protobuf::MessageExts
|
291
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
292
|
+
|
293
|
+
# Safety specification.
|
294
|
+
# @!attribute [rw] enable
|
295
|
+
# @return [::Boolean]
|
296
|
+
# Enable the safety filtering on the answer response. It is false by
|
297
|
+
# default.
|
298
|
+
class SafetySpec
|
299
|
+
include ::Google::Protobuf::MessageExts
|
300
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
301
|
+
end
|
302
|
+
|
303
|
+
# Related questions specification.
|
304
|
+
# @!attribute [rw] enable
|
305
|
+
# @return [::Boolean]
|
306
|
+
# Enable related questions feature if true.
|
307
|
+
class RelatedQuestionsSpec
|
308
|
+
include ::Google::Protobuf::MessageExts
|
309
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
310
|
+
end
|
311
|
+
|
312
|
+
# Answer generation specification.
|
313
|
+
# @!attribute [rw] model_spec
|
314
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::AnswerGenerationSpec::ModelSpec]
|
315
|
+
# Answer generation model specification.
|
316
|
+
# @!attribute [rw] prompt_spec
|
317
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::AnswerGenerationSpec::PromptSpec]
|
318
|
+
# Answer generation prompt specification.
|
319
|
+
# @!attribute [rw] include_citations
|
320
|
+
# @return [::Boolean]
|
321
|
+
# Specifies whether to include citation metadata in the answer. The default
|
322
|
+
# value is `false`.
|
323
|
+
# @!attribute [rw] answer_language_code
|
324
|
+
# @return [::String]
|
325
|
+
# Language code for Answer. Use language tags defined by
|
326
|
+
# [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
|
327
|
+
# Note: This is an experimental feature.
|
328
|
+
# @!attribute [rw] ignore_adversarial_query
|
329
|
+
# @return [::Boolean]
|
330
|
+
# Specifies whether to filter out adversarial queries. The default value
|
331
|
+
# is `false`.
|
332
|
+
#
|
333
|
+
# Google employs search-query classification to detect adversarial
|
334
|
+
# queries. No answer is returned if the search query is classified as an
|
335
|
+
# adversarial query. For example, a user might ask a question regarding
|
336
|
+
# negative comments about the company or submit a query designed to
|
337
|
+
# generate unsafe, policy-violating output. If this field is set to
|
338
|
+
# `true`, we skip generating answers for adversarial queries and return
|
339
|
+
# fallback messages instead.
|
340
|
+
# @!attribute [rw] ignore_non_answer_seeking_query
|
341
|
+
# @return [::Boolean]
|
342
|
+
# Specifies whether to filter out queries that are not answer-seeking.
|
343
|
+
# The default value is `false`.
|
344
|
+
#
|
345
|
+
# Google employs search-query classification to detect answer-seeking
|
346
|
+
# queries. No answer is returned if the search query is classified as a
|
347
|
+
# non-answer seeking query. If this field is set to `true`, we skip
|
348
|
+
# generating answers for non-answer seeking queries and return
|
349
|
+
# fallback messages instead.
|
350
|
+
class AnswerGenerationSpec
|
351
|
+
include ::Google::Protobuf::MessageExts
|
352
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
353
|
+
|
354
|
+
# Answer Generation Model specification.
|
355
|
+
# @!attribute [rw] model_version
|
356
|
+
# @return [::String]
|
357
|
+
# Model version. If not set, it will use the default stable model.
|
358
|
+
# Allowed values are: stable, preview.
|
359
|
+
class ModelSpec
|
360
|
+
include ::Google::Protobuf::MessageExts
|
361
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
362
|
+
end
|
363
|
+
|
364
|
+
# Answer generation prompt specification.
|
365
|
+
# @!attribute [rw] preamble
|
366
|
+
# @return [::String]
|
367
|
+
# Customized preamble.
|
368
|
+
class PromptSpec
|
369
|
+
include ::Google::Protobuf::MessageExts
|
370
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
371
|
+
end
|
372
|
+
end
|
373
|
+
|
374
|
+
# Search specification.
|
375
|
+
# @!attribute [rw] search_params
|
376
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec::SearchParams]
|
377
|
+
# Search parameters.
|
378
|
+
# @!attribute [rw] search_result_list
|
379
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec::SearchResultList]
|
380
|
+
# Search result list.
|
381
|
+
class SearchSpec
|
382
|
+
include ::Google::Protobuf::MessageExts
|
383
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
384
|
+
|
385
|
+
# Search parameters.
|
386
|
+
# @!attribute [rw] max_return_results
|
387
|
+
# @return [::Integer]
|
388
|
+
# Number of search results to return.
|
389
|
+
# The default value is 10.
|
390
|
+
# @!attribute [rw] filter
|
391
|
+
# @return [::String]
|
392
|
+
# The filter syntax consists of an expression language for constructing
|
393
|
+
# a predicate from one or more fields of the documents being filtered.
|
394
|
+
# Filter expression is case-sensitive. This will be used to filter
|
395
|
+
# search results which may affect the Answer response.
|
396
|
+
#
|
397
|
+
# If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
398
|
+
#
|
399
|
+
# Filtering in Vertex AI Search is done by mapping the LHS filter key
|
400
|
+
# to a key property defined in the Vertex AI Search backend -- this
|
401
|
+
# mapping is defined by the customer in their schema. For example a
|
402
|
+
# media customers might have a field 'name' in their schema. In this
|
403
|
+
# case the filter would look like this: filter --> name:'ANY("king
|
404
|
+
# kong")'
|
405
|
+
#
|
406
|
+
# For more information about filtering including syntax and filter
|
407
|
+
# operators, see
|
408
|
+
# [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
|
409
|
+
# @!attribute [rw] boost_spec
|
410
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::BoostSpec]
|
411
|
+
# Boost specification to boost certain documents in search results which
|
412
|
+
# may affect the answer query response. For more information on boosting,
|
413
|
+
# see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
|
414
|
+
# @!attribute [rw] order_by
|
415
|
+
# @return [::String]
|
416
|
+
# The order in which documents are returned. Documents can be ordered
|
417
|
+
# by a field in an
|
418
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} object. Leave
|
419
|
+
# it unset if ordered by relevance. `order_by` expression is
|
420
|
+
# case-sensitive. For more information on ordering, see
|
421
|
+
# [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
|
422
|
+
#
|
423
|
+
# If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
424
|
+
class SearchParams
|
425
|
+
include ::Google::Protobuf::MessageExts
|
426
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
427
|
+
end
|
428
|
+
|
429
|
+
# Search result list.
|
430
|
+
# @!attribute [rw] search_results
|
431
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult>]
|
432
|
+
# Search results.
|
433
|
+
class SearchResultList
|
434
|
+
include ::Google::Protobuf::MessageExts
|
435
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
436
|
+
|
437
|
+
# Search result.
|
438
|
+
# @!attribute [rw] unstructured_document_info
|
439
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo]
|
440
|
+
# Unstructured document information.
|
441
|
+
# @!attribute [rw] chunk_info
|
442
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::ChunkInfo]
|
443
|
+
# Chunk information.
|
444
|
+
class SearchResult
|
445
|
+
include ::Google::Protobuf::MessageExts
|
446
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
447
|
+
|
448
|
+
# Unstructured document information.
|
449
|
+
# @!attribute [rw] document
|
450
|
+
# @return [::String]
|
451
|
+
# Document resource name.
|
452
|
+
# @!attribute [rw] uri
|
453
|
+
# @return [::String]
|
454
|
+
# URI for the document.
|
455
|
+
# @!attribute [rw] title
|
456
|
+
# @return [::String]
|
457
|
+
# Title.
|
458
|
+
# @!attribute [rw] document_contexts
|
459
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::DocumentContext>]
|
460
|
+
# List of document contexts.
|
461
|
+
# @!attribute [rw] extractive_segments
|
462
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveSegment>]
|
463
|
+
# List of extractive segments.
|
464
|
+
# @!attribute [rw] extractive_answers
|
465
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec::SearchResultList::SearchResult::UnstructuredDocumentInfo::ExtractiveAnswer>]
|
466
|
+
# List of extractive answers.
|
467
|
+
class UnstructuredDocumentInfo
|
468
|
+
include ::Google::Protobuf::MessageExts
|
469
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
470
|
+
|
471
|
+
# Document context.
|
472
|
+
# @!attribute [rw] page_identifier
|
473
|
+
# @return [::String]
|
474
|
+
# Page identifier.
|
475
|
+
# @!attribute [rw] content
|
476
|
+
# @return [::String]
|
477
|
+
# Document content.
|
478
|
+
class DocumentContext
|
479
|
+
include ::Google::Protobuf::MessageExts
|
480
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
481
|
+
end
|
482
|
+
|
483
|
+
# Extractive segment.
|
484
|
+
# [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#extractive-segments)
|
485
|
+
# @!attribute [rw] page_identifier
|
486
|
+
# @return [::String]
|
487
|
+
# Page identifier.
|
488
|
+
# @!attribute [rw] content
|
489
|
+
# @return [::String]
|
490
|
+
# Extractive segment content.
|
491
|
+
class ExtractiveSegment
|
492
|
+
include ::Google::Protobuf::MessageExts
|
493
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
494
|
+
end
|
495
|
+
|
496
|
+
# Extractive answer.
|
497
|
+
# [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#get-answers)
|
498
|
+
# @!attribute [rw] page_identifier
|
499
|
+
# @return [::String]
|
500
|
+
# Page identifier.
|
501
|
+
# @!attribute [rw] content
|
502
|
+
# @return [::String]
|
503
|
+
# Extractive answer content.
|
504
|
+
class ExtractiveAnswer
|
505
|
+
include ::Google::Protobuf::MessageExts
|
506
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
507
|
+
end
|
508
|
+
end
|
509
|
+
|
510
|
+
# Chunk information.
|
511
|
+
# @!attribute [rw] chunk
|
512
|
+
# @return [::String]
|
513
|
+
# Chunk resource name.
|
514
|
+
# @!attribute [rw] content
|
515
|
+
# @return [::String]
|
516
|
+
# Chunk textual content.
|
517
|
+
class ChunkInfo
|
518
|
+
include ::Google::Protobuf::MessageExts
|
519
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
520
|
+
end
|
521
|
+
end
|
522
|
+
end
|
523
|
+
end
|
524
|
+
|
525
|
+
# Query understanding specification.
|
526
|
+
# @!attribute [rw] query_classification_spec
|
527
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec::QueryClassificationSpec]
|
528
|
+
# Query classification specification.
|
529
|
+
# @!attribute [rw] query_rephraser_spec
|
530
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec::QueryRephraserSpec]
|
531
|
+
# Query rephraser specification.
|
532
|
+
class QueryUnderstandingSpec
|
533
|
+
include ::Google::Protobuf::MessageExts
|
534
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
535
|
+
|
536
|
+
# Query classification specification.
|
537
|
+
# @!attribute [rw] types
|
538
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec::QueryClassificationSpec::Type>]
|
539
|
+
# Enabled query classification types.
|
540
|
+
class QueryClassificationSpec
|
541
|
+
include ::Google::Protobuf::MessageExts
|
542
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
543
|
+
|
544
|
+
# Query classification types.
|
545
|
+
module Type
|
546
|
+
# Unspecified query classification type.
|
547
|
+
TYPE_UNSPECIFIED = 0
|
548
|
+
|
549
|
+
# Adversarial query classification type.
|
550
|
+
ADVERSARIAL_QUERY = 1
|
551
|
+
|
552
|
+
# Non-answer-seeking query classification type.
|
553
|
+
NON_ANSWER_SEEKING_QUERY = 2
|
554
|
+
end
|
555
|
+
end
|
556
|
+
|
557
|
+
# Query rephraser specification.
|
558
|
+
# @!attribute [rw] disable
|
559
|
+
# @return [::Boolean]
|
560
|
+
# Disable query rephraser.
|
561
|
+
# @!attribute [rw] max_rephrase_steps
|
562
|
+
# @return [::Integer]
|
563
|
+
# Max rephrase steps.
|
564
|
+
# The max number is 10 steps.
|
565
|
+
# If not set or set to < 1, it will be set to 1 by default.
|
566
|
+
class QueryRephraserSpec
|
567
|
+
include ::Google::Protobuf::MessageExts
|
568
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
569
|
+
end
|
570
|
+
end
|
571
|
+
end
|
572
|
+
|
573
|
+
# Response message for
|
574
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client#answer_query ConversationalSearchService.AnswerQuery}
|
575
|
+
# method.
|
576
|
+
# @!attribute [rw] answer
|
577
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Answer]
|
578
|
+
# Answer resource object.
|
579
|
+
# If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
|
580
|
+
# use {::Google::Cloud::DiscoveryEngine::V1beta::Answer#name Answer.name} to fetch
|
581
|
+
# answer information using
|
582
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client#get_answer ConversationalSearchService.GetAnswer}
|
583
|
+
# API.
|
584
|
+
# @!attribute [rw] session
|
585
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Session]
|
586
|
+
# Session resource object.
|
587
|
+
# It will be only available when session field is set and valid in the
|
588
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest AnswerQueryRequest}
|
589
|
+
# request.
|
590
|
+
class AnswerQueryResponse
|
591
|
+
include ::Google::Protobuf::MessageExts
|
592
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
593
|
+
end
|
594
|
+
|
595
|
+
# Request for GetAnswer method.
|
596
|
+
# @!attribute [rw] name
|
597
|
+
# @return [::String]
|
598
|
+
# Required. The resource name of the Answer to get. Format:
|
599
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
|
600
|
+
class GetAnswerRequest
|
601
|
+
include ::Google::Protobuf::MessageExts
|
602
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
603
|
+
end
|
604
|
+
|
605
|
+
# Request for CreateSession method.
|
606
|
+
# @!attribute [rw] parent
|
607
|
+
# @return [::String]
|
608
|
+
# Required. Full resource name of parent data store. Format:
|
609
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
|
610
|
+
# @!attribute [rw] session
|
611
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Session]
|
612
|
+
# Required. The session to create.
|
613
|
+
class CreateSessionRequest
|
614
|
+
include ::Google::Protobuf::MessageExts
|
615
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
616
|
+
end
|
617
|
+
|
618
|
+
# Request for UpdateSession method.
|
619
|
+
# @!attribute [rw] session
|
620
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::Session]
|
621
|
+
# Required. The Session to update.
|
622
|
+
# @!attribute [rw] update_mask
|
623
|
+
# @return [::Google::Protobuf::FieldMask]
|
624
|
+
# Indicates which fields in the provided
|
625
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Session Session} to update. The
|
626
|
+
# following are NOT supported:
|
627
|
+
#
|
628
|
+
# * {::Google::Cloud::DiscoveryEngine::V1beta::Session#name Session.name}
|
629
|
+
#
|
630
|
+
# If not set or empty, all supported fields are updated.
|
631
|
+
class UpdateSessionRequest
|
632
|
+
include ::Google::Protobuf::MessageExts
|
633
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
634
|
+
end
|
635
|
+
|
636
|
+
# Request for DeleteSession method.
|
637
|
+
# @!attribute [rw] name
|
638
|
+
# @return [::String]
|
639
|
+
# Required. The resource name of the Session to delete. Format:
|
640
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
|
641
|
+
class DeleteSessionRequest
|
642
|
+
include ::Google::Protobuf::MessageExts
|
643
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
644
|
+
end
|
645
|
+
|
646
|
+
# Request for GetSession method.
|
647
|
+
# @!attribute [rw] name
|
648
|
+
# @return [::String]
|
649
|
+
# Required. The resource name of the Session to get. Format:
|
650
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
|
651
|
+
class GetSessionRequest
|
652
|
+
include ::Google::Protobuf::MessageExts
|
653
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
654
|
+
end
|
655
|
+
|
656
|
+
# Request for ListSessions method.
|
657
|
+
# @!attribute [rw] parent
|
658
|
+
# @return [::String]
|
659
|
+
# Required. The data store resource name. Format:
|
660
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
|
661
|
+
# @!attribute [rw] page_size
|
662
|
+
# @return [::Integer]
|
663
|
+
# Maximum number of results to return. If unspecified, defaults
|
664
|
+
# to 50. Max allowed value is 1000.
|
665
|
+
# @!attribute [rw] page_token
|
666
|
+
# @return [::String]
|
667
|
+
# A page token, received from a previous `ListSessions` call.
|
668
|
+
# Provide this to retrieve the subsequent page.
|
669
|
+
# @!attribute [rw] filter
|
670
|
+
# @return [::String]
|
671
|
+
# A filter to apply on the list results. The supported features are:
|
672
|
+
# user_pseudo_id, state.
|
673
|
+
#
|
674
|
+
# Example:
|
675
|
+
# "user_pseudo_id = some_id"
|
676
|
+
# @!attribute [rw] order_by
|
677
|
+
# @return [::String]
|
678
|
+
# A comma-separated list of fields to order by, sorted in ascending order.
|
679
|
+
# Use "desc" after a field name for descending.
|
680
|
+
# Supported fields:
|
681
|
+
# * `update_time`
|
682
|
+
# * `create_time`
|
683
|
+
# * `session_name`
|
684
|
+
#
|
685
|
+
# Example:
|
686
|
+
# "update_time desc"
|
687
|
+
# "create_time"
|
688
|
+
class ListSessionsRequest
|
689
|
+
include ::Google::Protobuf::MessageExts
|
690
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
691
|
+
end
|
692
|
+
|
693
|
+
# Response for ListSessions method.
|
694
|
+
# @!attribute [rw] sessions
|
695
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::Session>]
|
696
|
+
# All the Sessions for a given data store.
|
697
|
+
# @!attribute [rw] next_page_token
|
698
|
+
# @return [::String]
|
699
|
+
# Pagination token, if not returned indicates the last page.
|
700
|
+
class ListSessionsResponse
|
701
|
+
include ::Google::Protobuf::MessageExts
|
702
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
703
|
+
end
|
229
704
|
end
|
230
705
|
end
|
231
706
|
end
|
@@ -72,12 +72,10 @@ module Google
|
|
72
72
|
|
73
73
|
# The OCR parsing configurations for documents.
|
74
74
|
# @!attribute [rw] enhanced_document_elements
|
75
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
75
76
|
# @return [::Array<::String>]
|
76
|
-
#
|
77
|
-
# elements
|
78
|
-
#
|
79
|
-
# Supported values:
|
80
|
-
# * `table`: advanced table parsing model.
|
77
|
+
# [DEPRECATED] This field is deprecated. To use the additional enhanced
|
78
|
+
# document elements processing, please switch to `layout_parsing_config`.
|
81
79
|
# @!attribute [rw] use_native_text
|
82
80
|
# @return [::Boolean]
|
83
81
|
# If true, will use native text instead of OCR text on pages containing
|
@@ -152,6 +152,10 @@ module Google
|
|
152
152
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} is not found, a
|
153
153
|
# new {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} will be
|
154
154
|
# created.
|
155
|
+
# @!attribute [rw] update_mask
|
156
|
+
# @return [::Google::Protobuf::FieldMask]
|
157
|
+
# Indicates which fields in the provided imported 'document' to update. If
|
158
|
+
# not set, will by default update all fields.
|
155
159
|
class UpdateDocumentRequest
|
156
160
|
include ::Google::Protobuf::MessageExts
|
157
161
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -108,7 +108,7 @@ module Google
|
|
108
108
|
# The search feature tier of this engine.
|
109
109
|
#
|
110
110
|
# Different tiers might have different
|
111
|
-
# pricing. To learn more,
|
111
|
+
# pricing. To learn more, check the pricing documentation.
|
112
112
|
#
|
113
113
|
# Defaults to
|
114
114
|
# {::Google::Cloud::DiscoveryEngine::V1beta::SearchTier::SEARCH_TIER_STANDARD SearchTier.SEARCH_TIER_STANDARD}
|
@@ -147,7 +147,7 @@ module Google
|
|
147
147
|
# {::Google::Cloud::DiscoveryEngine::V1beta::EngineService::Client#get_engine EngineService.GetEngine}
|
148
148
|
# or
|
149
149
|
# {::Google::Cloud::DiscoveryEngine::V1beta::EngineService::Client#list_engines EngineService.ListEngines}
|
150
|
-
# API after engine creation.
|
150
|
+
# API after engine creation. Use
|
151
151
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Engine::ChatEngineMetadata#dialogflow_agent ChatEngineMetadata.dialogflow_agent}
|
152
152
|
# for actual agent association after Engine is created.
|
153
153
|
class ChatEngineConfig
|
@@ -173,6 +173,57 @@ module Google
|
|
173
173
|
include ::Google::Protobuf::MessageExts
|
174
174
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
175
175
|
end
|
176
|
+
|
177
|
+
# Request for pausing training of an engine.
|
178
|
+
# @!attribute [rw] name
|
179
|
+
# @return [::String]
|
180
|
+
# Required. The name of the engine to pause.
|
181
|
+
# Format:
|
182
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`
|
183
|
+
class PauseEngineRequest
|
184
|
+
include ::Google::Protobuf::MessageExts
|
185
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
186
|
+
end
|
187
|
+
|
188
|
+
# Request for resuming training of an engine.
|
189
|
+
# @!attribute [rw] name
|
190
|
+
# @return [::String]
|
191
|
+
# Required. The name of the engine to resume.
|
192
|
+
# Format:
|
193
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`
|
194
|
+
class ResumeEngineRequest
|
195
|
+
include ::Google::Protobuf::MessageExts
|
196
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
197
|
+
end
|
198
|
+
|
199
|
+
# Request to manually start a tuning process now (instead of waiting for
|
200
|
+
# the periodically scheduled tuning to happen).
|
201
|
+
# @!attribute [rw] name
|
202
|
+
# @return [::String]
|
203
|
+
# Required. The resource name of the engine to tune.
|
204
|
+
# Format:
|
205
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`
|
206
|
+
class TuneEngineRequest
|
207
|
+
include ::Google::Protobuf::MessageExts
|
208
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
209
|
+
end
|
210
|
+
|
211
|
+
# Metadata associated with a tune operation.
|
212
|
+
# @!attribute [rw] engine
|
213
|
+
# @return [::String]
|
214
|
+
# Required. The resource name of the engine that this tune applies to.
|
215
|
+
# Format:
|
216
|
+
# `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`
|
217
|
+
class TuneEngineMetadata
|
218
|
+
include ::Google::Protobuf::MessageExts
|
219
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
220
|
+
end
|
221
|
+
|
222
|
+
# Response associated with a tune operation.
|
223
|
+
class TuneEngineResponse
|
224
|
+
include ::Google::Protobuf::MessageExts
|
225
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
226
|
+
end
|
176
227
|
end
|
177
228
|
end
|
178
229
|
end
|