# Google Cloud Video Transcoder V1 Client - Class SegmentSettings (1.4.0)

1.4.0 (latest) 1.3.2 1.2.0 1.1.0 1.0.3 0.10.5 0.9.1 0.8.2 0.7.1 0.6.0 0.5.3 Reference documentation and code samples for the Google Cloud Video Transcoder V1 Client class SegmentSettings.

Segment settings for `ts`, `fmp4` and `vtt`.

Generated from protobuf message `google.cloud.video.transcoder.v1.SegmentSettings`

## Namespace

Google \\ Cloud \\ Video \\ Transcoder \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ segment_duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Duration of the segments in seconds. The default is `6.0s`. Note that `segmentDuration` must be greater than or equal to [`gopDuration`](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.SegmentSettings#videostream), and `segmentDuration` must be divisible by [`gopDuration`](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.SegmentSettings#videostream). |
| `↳ individual_segments` | `bool` Required. Create an individual segment file. The default is `false`. |

### getSegmentDuration

Duration of the segments in seconds. The default is `6.0s`. Note that
`segmentDuration` must be greater than or equal to
[`gopDuration`](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.SegmentSettings#videostream), and `segmentDuration` must be divisible by
[`gopDuration`](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.SegmentSettings#videostream).

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

### hasSegmentDuration

### clearSegmentDuration

### setSegmentDuration

Duration of the segments in seconds. The default is `6.0s`. Note that
`segmentDuration` must be greater than or equal to
[`gopDuration`](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.SegmentSettings#videostream), and `segmentDuration` must be divisible by
[`gopDuration`](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.SegmentSettings#videostream).

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

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

### getIndividualSegments

Required. Create an individual segment file. The default is `false`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setIndividualSegments

Required. Create an individual segment file. The default is `false`.

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

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