Google Shopping Merchant Products V1 Client - Class VariantOption (1.7.0)

Reference documentation and code samples for the Google Shopping Merchant Products V1 Client class VariantOption.

Additional product variants for the product.

Generated from protobuf message google.shopping.merchant.products.v1.ProductAttributes.VariantOption

Namespace

Google \ Shopping \ Merchant \ Products \ V1 \ ProductAttributes

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name of the variant. For example, "Color", "Memory", "Size", "Length"

↳ value string

Required. The value of the variant. For example, "Red", "128GB", "XL", "100cm"

getName

Required. The name of the variant. For example, "Color", "Memory", "Size", "Length"

Returns
Type Description
string

setName

Required. The name of the variant. For example, "Color", "Memory", "Size", "Length"

Parameter
Name Description
var string
Returns
Type Description
$this

getValue

Required. The value of the variant. For example, "Red", "128GB", "XL", "100cm"

Returns
Type Description
string

setValue

Required. The value of the variant. For example, "Red", "128GB", "XL", "100cm"

Parameter
Name Description
var string
Returns
Type Description
$this