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
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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.
Generated from protobuf field .google.cloud.channel.v1.PeriodType period_type = 1;
| Returns | |
|---|---|
| Type | Description |
int |
|
setPeriodType
Defines the phase period type.
Generated from protobuf field .google.cloud.channel.v1.PeriodType period_type = 1;
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFirstPeriod
Defines first period for the phase.
Generated from protobuf field int32 first_period = 2;
| Returns | |
|---|---|
| Type | Description |
int |
|
setFirstPeriod
Defines first period for the phase.
Generated from protobuf field int32 first_period = 2;
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLastPeriod
Defines first period for the phase.
Generated from protobuf field int32 last_period = 3;
| Returns | |
|---|---|
| Type | Description |
int |
|
setLastPeriod
Defines first period for the phase.
Generated from protobuf field int32 last_period = 3;
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPrice
Price of the phase. Present if there are no price tiers.
Generated from protobuf field .google.cloud.channel.v1.Price price = 4;
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\Channel\V1\Price|null |
|
hasPrice
clearPrice
setPrice
Price of the phase. Present if there are no price tiers.
Generated from protobuf field .google.cloud.channel.v1.Price price = 4;
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\Channel\V1\Price
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPriceTiers
Price by the resource tiers.
Generated from protobuf field repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setPriceTiers
Price by the resource tiers.
Generated from protobuf field repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\Channel\V1\PriceTier>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|