Reference documentation and code samples for the Google Cloud Channel V1 Client class TrialSettings.
Settings for trial offers.
Generated from protobuf message google.cloud.channel.v1.TrialSettings
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ trial |
bool
Determines if the entitlement is in a trial or not: * |
↳ end_time |
Google\Protobuf\Timestamp
Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter. |
getTrial
Determines if the entitlement is in a trial or not:
true
- The entitlement is in trial.false
- The entitlement is not in trial.
Generated from protobuf field bool trial = 1;
Returns | |
---|---|
Type | Description |
bool |
setTrial
Determines if the entitlement is in a trial or not:
true
- The entitlement is in trial.false
- The entitlement is not in trial.
Generated from protobuf field bool trial = 1;
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getEndTime
Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasEndTime
clearEndTime
setEndTime
Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |