Reference documentation and code samples for the Google Cloud Discovery Engine V1beta Client class CompleteQueryResponse.
Response message for CompletionService.CompleteQuery method.
Generated from protobuf message google.cloud.discoveryengine.v1beta.CompleteQueryResponse
Namespace
Google \ Cloud \ DiscoveryEngine \ V1betaMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ query_suggestions |
array<Google\Cloud\DiscoveryEngine\V1beta\CompleteQueryResponse\QuerySuggestion>
Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion. |
↳ tail_match_triggered |
bool
True if the returned suggestions are all tail suggestions. For tail matching to be triggered, include_tail_suggestions in the request must be true and there must be no suggestions that match the full query. |
getQuerySuggestions
Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setQuerySuggestions
Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\DiscoveryEngine\V1beta\CompleteQueryResponse\QuerySuggestion>
|
Returns | |
---|---|
Type | Description |
$this |
getTailMatchTriggered
True if the returned suggestions are all tail suggestions.
For tail matching to be triggered, include_tail_suggestions in the request must be true and there must be no suggestions that match the full query.
Returns | |
---|---|
Type | Description |
bool |
setTailMatchTriggered
True if the returned suggestions are all tail suggestions.
For tail matching to be triggered, include_tail_suggestions in the request must be true and there must be no suggestions that match the full query.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |