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
Name
Description
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
Type
Description
int

setDuration

Total duration of Period Type defined.

Generated from protobuf field int32 duration = 1;

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getPeriodType

Period Type.

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

Returns
Type
Description
int

setPeriodType

Period Type.

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

Parameter
Name
Description
var
int
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: