Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult

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

Overview

Recent search of this user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult

Returns a new instance of GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult.



2127
2128
2129
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2127

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

Instance Attribute Details

#recent_searchString

The recent search query. Corresponds to the JSON property recentSearch

Returns:

  • (String)


2125
2126
2127
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2125

def recent_search
  @recent_search
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2132
2133
2134
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2132

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