# Cloud Video Intelligence V1 Client - Class ExplicitContentFrame (2.2.0)

2.2.0 (latest) 2.1.2 2.0.5 1.15.5 1.14.2 1.13.1 1.12.16 Reference documentation and code samples for the Cloud Video Intelligence V1 Client class ExplicitContentFrame.

Video frame level annotation results for explicit content.

Generated from protobuf message `google.cloud.videointelligence.v1.ExplicitContentFrame`

## Namespace

Google \\ Cloud \\ VideoIntelligence \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ time_offset` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. |
| `↳ pornography_likelihood` | `int` Likelihood of the pornography content.. |

### getTimeOffset

Time-offset, relative to the beginning of the video, corresponding to the
video frame for this location.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasTimeOffset

### clearTimeOffset

### setTimeOffset

Time-offset, relative to the beginning of the video, corresponding to the
video frame for this location.

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

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

### getPornographyLikelihood

Likelihood of the pornography content..

Generated from protobuf field `.google.cloud.videointelligence.v1.Likelihood pornography_likelihood = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPornographyLikelihood

Likelihood of the pornography content..

Generated from protobuf field `.google.cloud.videointelligence.v1.Likelihood pornography_likelihood = 2;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

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