Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CompleteQueryResponse
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CompleteQueryResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Response message for CompletionService.CompleteQuery method.
Instance Attribute Summary collapse
-
#query_suggestions ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion>
Results of the matched query suggestions.
-
#tail_match_triggered ⇒ Boolean
(also: #tail_match_triggered?)
True if the returned suggestions are all tail suggestions.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1CompleteQueryResponse
constructor
A new instance of GoogleCloudDiscoveryengineV1CompleteQueryResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1CompleteQueryResponse
Returns a new instance of GoogleCloudDiscoveryengineV1CompleteQueryResponse.
2516 2517 2518 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2516 def initialize(**args) update!(**args) end |
Instance Attribute Details
#query_suggestions ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion>
Results of the matched query suggestions. The result list is ordered and the
first result is a top suggestion.
Corresponds to the JSON property querySuggestions
2506 2507 2508 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2506 def query_suggestions @query_suggestions end |
#tail_match_triggered ⇒ Boolean Also known as: tail_match_triggered?
True if the returned suggestions are all tail suggestions. For tail matching
to be triggered, include_tail_suggestions in the request must be true and
there must be no suggestions that match the full query.
Corresponds to the JSON property tailMatchTriggered
2513 2514 2515 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2513 def tail_match_triggered @tail_match_triggered end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2521 2522 2523 2524 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2521 def update!(**args) @query_suggestions = args[:query_suggestions] if args.key?(:query_suggestions) @tail_match_triggered = args[:tail_match_triggered] if args.key?(:tail_match_triggered) end |