Google Cloud Discovery Engine V1beta Client - Class RefinementAttribute (0.2.0)

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

Useful attribute for search result refinements.

Generated from protobuf message google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ attribute_key string

Attribute key used to refine the results e.g. 'movie_type'.

↳ attribute_value string

Attribute value used to refine the results e.g. 'drama'.

getAttributeKey

Attribute key used to refine the results e.g. 'movie_type'.

Returns
TypeDescription
string

setAttributeKey

Attribute key used to refine the results e.g. 'movie_type'.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAttributeValue

Attribute value used to refine the results e.g. 'drama'.

Returns
TypeDescription
string

setAttributeValue

Attribute value used to refine the results e.g. 'drama'.

Parameter
NameDescription
var string
Returns
TypeDescription
$this