Google Cloud Retail V2 Client - Class CompletionDetail (1.5.0)

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

Detailed completion information including completion attribution token and clicked completion info.

Generated from protobuf message google.cloud.retail.v2.CompletionDetail

Namespace

Google \ Cloud \ Retail \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ completion_attribution_token string

Completion attribution token in CompleteQueryResponse.attribution_token.

↳ selected_suggestion string

End user selected CompleteQueryResponse.CompletionResult.suggestion.

↳ selected_position int

End user selected CompleteQueryResponse.CompletionResult.suggestion position, starting from 0.

getCompletionAttributionToken

Completion attribution token in CompleteQueryResponse.attribution_token.

Returns
TypeDescription
string

setCompletionAttributionToken

Completion attribution token in CompleteQueryResponse.attribution_token.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSelectedSuggestion

Returns
TypeDescription
string

setSelectedSuggestion

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSelectedPosition

End user selected CompleteQueryResponse.CompletionResult.suggestion position, starting from 0.

Returns
TypeDescription
int

setSelectedPosition

End user selected CompleteQueryResponse.CompletionResult.suggestion position, starting from 0.

Parameter
NameDescription
var int
Returns
TypeDescription
$this