Google Cloud Retail V2 Client - Class PriceRange (1.0.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.

Generated from protobuf field .google.cloud.retail.v2.Interval price = 1;

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.

Generated from protobuf field .google.cloud.retail.v2.Interval price = 1;

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.

Generated from protobuf field .google.cloud.retail.v2.Interval original_price = 2;

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.

Generated from protobuf field .google.cloud.retail.v2.Interval original_price = 2;

Parameter
NameDescription
var Google\Cloud\Retail\V2\Interval
Returns
TypeDescription
$this