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

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta \ SearchResponse \ GuidedSearchResult

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ attribute_key string

Attribute key used to refine the results. For example, "movie_type".

↳ attribute_value string

Attribute value used to refine the results. For example, "drama".

getAttributeKey

Attribute key used to refine the results. For example, "movie_type".

Returns
Type Description
string

setAttributeKey

Attribute key used to refine the results. For example, "movie_type".

Parameter
Name Description
var string
Returns
Type Description
$this

getAttributeValue

Attribute value used to refine the results. For example, "drama".

Returns
Type Description
string

setAttributeValue

Attribute value used to refine the results. For example, "drama".

Parameter
Name Description
var string
Returns
Type Description
$this