Reference documentation and code samples for the Google Cloud Channel V1 Client class PriceTier.
Defines price at resource tier level.
For example, an offer with following definition :
- Tier 1: Provide 25% discount for all seats between 1 and 25.
- Tier 2: Provide 10% discount for all seats between 26 and 100.
- Tier 3: Provide flat 15% discount for all seats above 100. Each of these tiers is represented as a PriceTier.
Generated from protobuf message google.cloud.channel.v1.PriceTier
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ first_resource
int
First resource for which the tier price applies.
↳ last_resource
int
Last resource for which the tier price applies.
↳ price
getFirstResource
First resource for which the tier price applies.
Generated from protobuf field int32 first_resource = 1;
int
setFirstResource
First resource for which the tier price applies.
Generated from protobuf field int32 first_resource = 1;
var
int
$this
getLastResource
Last resource for which the tier price applies.
Generated from protobuf field int32 last_resource = 2;
int
setLastResource
Last resource for which the tier price applies.
Generated from protobuf field int32 last_resource = 2;
var
int
$this
getPrice
Price of the tier.
Generated from protobuf field .google.cloud.channel.v1.Price price = 3;
hasPrice
clearPrice
setPrice
Price of the tier.
Generated from protobuf field .google.cloud.channel.v1.Price price = 3;
$this