Google Cloud Retail V2 Client - Class RecentSearchResult (1.0.1)

Reference documentation and code samples for the Google Cloud Retail V2 Client class RecentSearchResult.

Recent search of this user.

Generated from protobuf message google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ recent_search string

The recent search query.

getRecentSearch

The recent search query.

Generated from protobuf field string recent_search = 1;

Returns
TypeDescription
string

setRecentSearch

The recent search query.

Generated from protobuf field string recent_search = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this