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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ selected_suggestion |
string
End user selected CompleteQueryResponse.QuerySuggestion.suggestion. |
↳ selected_position |
int
End user selected CompleteQueryResponse.QuerySuggestion.suggestion position, starting from 0. |
getSelectedSuggestion
End user selected CompleteQueryResponse.QuerySuggestion.suggestion.
Returns | |
---|---|
Type | Description |
string |
setSelectedSuggestion
End user selected CompleteQueryResponse.QuerySuggestion.suggestion.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSelectedPosition
End user selected CompleteQueryResponse.QuerySuggestion.suggestion position, starting from 0.
Returns | |
---|---|
Type | Description |
int |
setSelectedPosition
End user selected CompleteQueryResponse.QuerySuggestion.suggestion position, starting from 0.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |