Google Cloud Channel V1 Client - Class Period (1.0.1)

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.

Generated from protobuf field int32 duration = 1;

Returns
TypeDescription
int

setDuration

Total duration of Period Type defined.

Generated from protobuf field int32 duration = 1;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPeriodType

Period Type.

Generated from protobuf field .google.cloud.channel.v1.PeriodType period_type = 2;

Returns
TypeDescription
int

setPeriodType

Period Type.

Generated from protobuf field .google.cloud.channel.v1.PeriodType period_type = 2;

Parameter
NameDescription
var int
Returns
TypeDescription
$this