Google Cloud Channel V1 Client - Class TrialSettings (1.8.2)

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

Namespace

Google \ Cloud \ Channel \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ trial bool

Determines if the entitlement is in a trial or not: * true - The entitlement is in trial. * false - The entitlement is not in trial.

↳ 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.

Returns
TypeDescription
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.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getEndTime

Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.

Returns
TypeDescription
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.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this