# Cloud Video Intelligence V1 Client - Class VideoContext (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 VideoContext.

Video context and/or feature-specific parameters.

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

## Namespace

Google \\ Cloud \\ VideoIntelligence \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ segments` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.VideoSegment>` Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment. |
| `↳ label_detection_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.LabelDetectionConfig` Config for LABEL_DETECTION. |
| `↳ shot_change_detection_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.ShotChangeDetectionConfig` Config for SHOT_CHANGE_DETECTION. |
| `↳ explicit_content_detection_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.ExplicitContentDetectionConfig` Config for EXPLICIT_CONTENT_DETECTION. |
| `↳ face_detection_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.FaceDetectionConfig` Config for FACE_DETECTION. |
| `↳ speech_transcription_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.SpeechTranscriptionConfig` Config for SPEECH_TRANSCRIPTION. |
| `↳ text_detection_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.TextDetectionConfig` Config for TEXT_DETECTION. |
| `↳ person_detection_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.PersonDetectionConfig` Config for PERSON_DETECTION. |
| `↳ object_tracking_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.ObjectTrackingConfig` Config for OBJECT_TRACKING. |

### getSegments

Video segments to annotate. The segments may overlap and are not required
to be contiguous or span the whole video. If unspecified, each video is
treated as a single segment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.VideoSegment>` |   |

### setSegments

Video segments to annotate. The segments may overlap and are not required
to be contiguous or span the whole video. If unspecified, each video is
treated as a single segment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.VideoSegment>` |

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

### getLabelDetectionConfig

Config for LABEL_DETECTION.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.LabelDetectionConfig|null` |   |

### hasLabelDetectionConfig

### clearLabelDetectionConfig

### setLabelDetectionConfig

Config for LABEL_DETECTION.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.LabelDetectionConfig` |

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

### getShotChangeDetectionConfig

Config for SHOT_CHANGE_DETECTION.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.ShotChangeDetectionConfig|null` |   |

### hasShotChangeDetectionConfig

### clearShotChangeDetectionConfig

### setShotChangeDetectionConfig

Config for SHOT_CHANGE_DETECTION.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.ShotChangeDetectionConfig` |

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

### getExplicitContentDetectionConfig

Config for EXPLICIT_CONTENT_DETECTION.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.ExplicitContentDetectionConfig|null` |   |

### hasExplicitContentDetectionConfig

### clearExplicitContentDetectionConfig

### setExplicitContentDetectionConfig

Config for EXPLICIT_CONTENT_DETECTION.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.ExplicitContentDetectionConfig` |

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

### getFaceDetectionConfig

Config for FACE_DETECTION.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.FaceDetectionConfig|null` |   |

### hasFaceDetectionConfig

### clearFaceDetectionConfig

### setFaceDetectionConfig

Config for FACE_DETECTION.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.FaceDetectionConfig` |

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

### getSpeechTranscriptionConfig

Config for SPEECH_TRANSCRIPTION.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.SpeechTranscriptionConfig|null` |   |

### hasSpeechTranscriptionConfig

### clearSpeechTranscriptionConfig

### setSpeechTranscriptionConfig

Config for SPEECH_TRANSCRIPTION.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.SpeechTranscriptionConfig` |

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

### getTextDetectionConfig

Config for TEXT_DETECTION.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.TextDetectionConfig|null` |   |

### hasTextDetectionConfig

### clearTextDetectionConfig

### setTextDetectionConfig

Config for TEXT_DETECTION.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.TextDetectionConfig` |

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

### getPersonDetectionConfig

Config for PERSON_DETECTION.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.PersonDetectionConfig|null` |   |

### hasPersonDetectionConfig

### clearPersonDetectionConfig

### setPersonDetectionConfig

Config for PERSON_DETECTION.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.PersonDetectionConfig` |

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

### getObjectTrackingConfig

Config for OBJECT_TRACKING.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.ObjectTrackingConfig|null` |   |

### hasObjectTrackingConfig

### clearObjectTrackingConfig

### setObjectTrackingConfig

Config for OBJECT_TRACKING.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.ObjectTrackingConfig` |

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