Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCompleteQueryResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb

Overview

Response message for CompletionService.CompleteQuery method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaCompleteQueryResponse

Returns a new instance of GoogleCloudDiscoveryengineV1betaCompleteQueryResponse.



2493
2494
2495
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2493

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#query_suggestionsArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCompleteQueryResponseQuerySuggestion>

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



2483
2484
2485
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2483

def query_suggestions
  @query_suggestions
end

#tail_match_triggeredBoolean 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

Returns:

  • (Boolean)


2490
2491
2492
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2490

def tail_match_triggered
  @tail_match_triggered
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2498
2499
2500
2501
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2498

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