Google Cloud Channel V1 Client - Class Period (1.4.0)

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

Represents period in days/months/years.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ duration int

Total duration of Period Type defined.

↳ period_type int

Period Type.

getDuration

Total duration of Period Type defined.

Returns
TypeDescription
int

setDuration

Total duration of Period Type defined.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPeriodType

Period Type.

Returns
TypeDescription
int

setPeriodType

Period Type.

Parameter
NameDescription
var int
Returns
TypeDescription
$this