Google Cloud Channel V1 Client - Class PriceByResource (1.3.0)

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
NameDescription
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

Returns
TypeDescription
int

setResourceType

Resource Type. Example: SEAT

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPrice

Price of the Offer. Present if there are no price phases.

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

hasPrice

clearPrice

setPrice

Price of the Offer. Present if there are no price phases.

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

getPricePhases

Specifies the price by time range.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPricePhases

Specifies the price by time range.

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