Google Cloud Retail V2 Client - Class PriceRange (1.1.1)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
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
NameDescription
var Google\Cloud\Retail\V2\Interval
Returns
TypeDescription
$this

getOriginalPrice

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

Returns
TypeDescription
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
NameDescription
var Google\Cloud\Retail\V2\Interval
Returns
TypeDescription
$this