# Google Cloud Channel V1 Client - Class TrialSettings (2.4.1)

2.4.1 (latest) 2.4.0 2.3.1 2.2.1 2.1.4 2.0.0 1.9.5 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 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** ||
|---|---|
| **Name** | **Description** |
| `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` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example [Epoch converter](https://www.epochconverter.com). |

### 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** ||
|---|---|
| **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.

| **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](https://www.epochconverter.com).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/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](https://www.epochconverter.com).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |