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
Namespace
Google \ Cloud \ Channel \ V1Methods
__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.
Returns | |
---|---|
Type | Description |
int |
setDuration
Total duration of Period Type defined.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getPeriodType
Period Type.
Returns | |
---|---|
Type | Description |
int |
setPeriodType
Period Type.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |