Reference documentation and code samples for the Google Cloud Channel V1 Client class PriceByResource.
Represents price by resource type.
Generated from protobuf message google.cloud.channel.v1.PriceByResource
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ resource_type |
int
Resource Type. Example: SEAT |
↳ price |
Google\Cloud\Channel\V1\Price
Price of the Offer. Present if there are no price phases. |
↳ price_phases |
array<Google\Cloud\Channel\V1\PricePhase>
Specifies the price by time range. |
getResourceType
Resource Type. Example: SEAT
Generated from protobuf field .google.cloud.channel.v1.ResourceType resource_type = 1;
Returns | |
---|---|
Type | Description |
int |
setResourceType
Resource Type. Example: SEAT
Generated from protobuf field .google.cloud.channel.v1.ResourceType resource_type = 1;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getPrice
Price of the Offer. Present if there are no price phases.
Generated from protobuf field .google.cloud.channel.v1.Price price = 2;
Returns | |
---|---|
Type | Description |
Google\Cloud\Channel\V1\Price|null |
hasPrice
clearPrice
setPrice
Price of the Offer. Present if there are no price phases.
Generated from protobuf field .google.cloud.channel.v1.Price price = 2;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Channel\V1\Price
|
Returns | |
---|---|
Type | Description |
$this |
getPricePhases
Specifies the price by time range.
Generated from protobuf field repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setPricePhases
Specifies the price by time range.
Generated from protobuf field repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Channel\V1\PricePhase>
|
Returns | |
---|---|
Type | Description |
$this |