Google Cloud Retail V2 Client - Class AttributeResult (2.5.3)

Reference documentation and code samples for the Google Cloud Retail V2 Client class AttributeResult.

Resource that represents attribute results.

Generated from protobuf message google.cloud.retail.v2.CompleteQueryResponse.AttributeResult

Namespace

Google \ Cloud \ Retail \ V2 \ CompleteQueryResponse

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ suggestions string[]

The list of suggestions for the attribute.

getSuggestions

The list of suggestions for the attribute.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setSuggestions

The list of suggestions for the attribute.

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