Google Cloud Retail V2 Client - Class PriceRange (1.6.2)

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

The price range of all variant Product having the same Product.primary_product_id.

Generated from protobuf message google.cloud.retail.v2.PriceInfo.PriceRange

Namespace

Google \ Cloud \ Retail \ V2 \ PriceInfo

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ price Google\Cloud\Retail\V2\Interval

The inclusive Product.pricing_info.price interval of all variant Product having the same Product.primary_product_id.

↳ original_price Google\Cloud\Retail\V2\Interval

The inclusive Product.pricing_info.original_price internal of all variant Product having the same Product.primary_product_id.

getPrice

The inclusive Product.pricing_info.price interval of all variant Product having the same Product.primary_product_id.

Returns
Type Description
Google\Cloud\Retail\V2\Interval|null

hasPrice

clearPrice

setPrice

The inclusive Product.pricing_info.price interval of all variant Product having the same Product.primary_product_id.

Parameter
Name Description
var Google\Cloud\Retail\V2\Interval
Returns
Type Description
$this

getOriginalPrice

The inclusive Product.pricing_info.original_price internal of all variant Product having the same Product.primary_product_id.

Returns
Type Description
Google\Cloud\Retail\V2\Interval|null

hasOriginalPrice

clearOriginalPrice

setOriginalPrice

The inclusive Product.pricing_info.original_price internal of all variant Product having the same Product.primary_product_id.

Parameter
Name Description
var Google\Cloud\Retail\V2\Interval
Returns
Type Description
$this