Google Cloud Retail V2 Client - Class ProductAttributeValue (2.3.0)

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

Product attribute which structured by an attribute name and value. This structure is used in conversational search filters and answers. For example, if we have name=color and value=red , this means that the color is red .

Generated from protobuf message google.cloud.retail.v2.ProductAttributeValue

Namespace

Google \ Cloud \ Retail \ V2

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ name
string

The attribute name.

↳ value
string

The attribute value.

getName

The attribute name.

Returns
Type
Description
string

setName

The attribute name.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getValue

The attribute value.

Returns
Type
Description
string

setValue

The attribute value.

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: