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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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.
Generated from protobuf field string completion_attribution_token = 1;
Returns | |
---|---|
Type | Description |
string |
setCompletionAttributionToken
Completion attribution token in CompleteQueryResponse.attribution_token.
Generated from protobuf field string completion_attribution_token = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSelectedSuggestion
End user selected CompleteQueryResponse.CompletionResult.suggestion.
Generated from protobuf field string selected_suggestion = 2;
Returns | |
---|---|
Type | Description |
string |
setSelectedSuggestion
End user selected CompleteQueryResponse.CompletionResult.suggestion.
Generated from protobuf field string selected_suggestion = 2;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSelectedPosition
End user selected CompleteQueryResponse.CompletionResult.suggestion position, starting from 0.
Generated from protobuf field int32 selected_position = 3;
Returns | |
---|---|
Type | Description |
int |
setSelectedPosition
End user selected CompleteQueryResponse.CompletionResult.suggestion position, starting from 0.
Generated from protobuf field int32 selected_position = 3;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |