Google Cloud Channel V1 Client - Class PricePhase (1.6.0)

Reference documentation and code samples for the Google Cloud Channel V1 Client class PricePhase.

Specifies the price by the duration of months.

For example, a 20% discount for the first six months, then a 10% discount starting on the seventh month.

Generated from protobuf message google.cloud.channel.v1.PricePhase

Namespace

Google \ Cloud \ Channel \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ period_type int

Defines the phase period type.

↳ first_period int

Defines first period for the phase.

↳ last_period int

Defines first period for the phase.

↳ price Google\Cloud\Channel\V1\Price

Price of the phase. Present if there are no price tiers.

↳ price_tiers array<Google\Cloud\Channel\V1\PriceTier>

Price by the resource tiers.

getPeriodType

Defines the phase period type.

Returns
TypeDescription
int

setPeriodType

Defines the phase period type.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getFirstPeriod

Defines first period for the phase.

Returns
TypeDescription
int

setFirstPeriod

Defines first period for the phase.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getLastPeriod

Defines first period for the phase.

Returns
TypeDescription
int

setLastPeriod

Defines first period for the phase.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPrice

Price of the phase. Present if there are no price tiers.

Returns
TypeDescription
Google\Cloud\Channel\V1\Price|null

hasPrice

clearPrice

setPrice

Price of the phase. Present if there are no price tiers.

Parameter
NameDescription
var Google\Cloud\Channel\V1\Price
Returns
TypeDescription
$this

getPriceTiers

Price by the resource tiers.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPriceTiers

Price by the resource tiers.

Parameter
NameDescription
var array<Google\Cloud\Channel\V1\PriceTier>
Returns
TypeDescription
$this