Google Cloud Discovery Engine V1beta Client - Class QuerySuggestion (0.11.1)

Reference documentation and code samples for the Google Cloud Discovery Engine V1beta Client class QuerySuggestion.

Suggestions as search queries.

Generated from protobuf message google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta \ CompleteQueryResponse

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ suggestion string

The suggestion for the query.

↳ completable_field_paths array

The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable model.

getSuggestion

The suggestion for the query.

Returns
Type Description
string

setSuggestion

The suggestion for the query.

Parameter
Name Description
var string
Returns
Type Description
$this

getCompletableFieldPaths

The unique document field paths that serve as the source of this suggestion if it was generated from completable fields.

This field is only populated for the document-completable model.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setCompletableFieldPaths

The unique document field paths that serve as the source of this suggestion if it was generated from completable fields.

This field is only populated for the document-completable model.

Parameter
Name Description
var string[]
Returns
Type Description
$this