Google Cloud Discovery Engine V1 Client - Class RecentSearchSuggestion (1.17.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class RecentSearchSuggestion.

Suggestions from recent search history.

Generated from protobuf message google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ AdvancedCompleteQueryResponse

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ suggestion string

The suggestion for the query.

↳ recent_search_time Google\Protobuf\Timestamp

The time when this recent rearch happened.

↳ score float

The score of each suggestion. The score is in the range of [0, 1].

getSuggestion

The suggestion for the query.

Returns
Type Description
string

setSuggestion

The suggestion for the query.

Parameter
Name Description
var string
Returns
Type Description
$this

getRecentSearchTime

The time when this recent rearch happened.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasRecentSearchTime

clearRecentSearchTime

setRecentSearchTime

The time when this recent rearch happened.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getScore

The score of each suggestion. The score is in the range of [0, 1].

Returns
Type Description
float

setScore

The score of each suggestion. The score is in the range of [0, 1].

Parameter
Name Description
var float
Returns
Type Description
$this