Google Cloud Discovery Engine V1beta Client - Class CompleteQueryResponse (0.4.0)

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 \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
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.

getQuerySuggestions

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

Returns
TypeDescription
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
NameDescription
var array<Google\Cloud\DiscoveryEngine\V1beta\CompleteQueryResponse\QuerySuggestion>
Returns
TypeDescription
$this