Google Cloud Discovery Engine V1 Client - Class CompletionInfo (0.3.0)

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

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

Generated from protobuf message google.cloud.discoveryengine.v1.CompletionInfo

Namespace

Google \ Cloud \ DiscoveryEngine \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ selected_suggestion string

End user selected CompleteQueryResponse.CompletionResult.suggestion.

↳ selected_position int

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

getSelectedSuggestion

End user selected CompleteQueryResponse.CompletionResult.suggestion.

Returns
TypeDescription
string

setSelectedSuggestion

End user selected CompleteQueryResponse.CompletionResult.suggestion.

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