Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponse

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

Overview

Response message for WidgetService.WidgetCompleteQuery method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponse

Returns a new instance of GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponse.



4372
4373
4374
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4372

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

Instance Attribute Details

#u_tokenString

The token in response. Corresponds to the JSON property uToken

Returns:

  • (String)


4364
4365
4366
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4364

def u_token
  @u_token
end

#widget_query_suggestionsArray<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponseWidgetQuerySuggestion>

Results of the matched query suggestions in widget. The result list is ordered and the first result is a top suggestion. Corresponds to the JSON property widgetQuerySuggestions



4370
4371
4372
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4370

def widget_query_suggestions
  @widget_query_suggestions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4377
4378
4379
4380
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4377

def update!(**args)
  @u_token = args[:u_token] if args.key?(:u_token)
  @widget_query_suggestions = args[:widget_query_suggestions] if args.key?(:widget_query_suggestions)
end