# Google Cloud Video Live Stream V1 Client - Class Pad (1.4.0)

1.4.0 (latest) 1.3.2 1.2.1 1.1.3 1.0.0 0.7.5 0.6.2 0.5.0 0.4.2 0.3.2 0.2.6 Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class Pad.

Pad filter configuration for the input video. The padded input video
is scaled after padding with black to match the output resolution.

Generated from protobuf message `google.cloud.video.livestream.v1.PreprocessingConfig.Pad`

## Namespace

Google \\ Cloud \\ Video \\ LiveStream \\ V1 \\ PreprocessingConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ top_pixels` | `int` The number of pixels to add to the top. The default is 0. |
| `↳ bottom_pixels` | `int` The number of pixels to add to the bottom. The default is 0. |
| `↳ left_pixels` | `int` The number of pixels to add to the left. The default is 0. |
| `↳ right_pixels` | `int` The number of pixels to add to the right. The default is 0. |

### getTopPixels

The number of pixels to add to the top. The default is 0.

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

### setTopPixels

The number of pixels to add to the top. The default is 0.

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

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

### getBottomPixels

The number of pixels to add to the bottom. The default is 0.

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

### setBottomPixels

The number of pixels to add to the bottom. The default is 0.

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

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

### getLeftPixels

The number of pixels to add to the left. The default is 0.

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

### setLeftPixels

The number of pixels to add to the left. The default is 0.

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

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

### getRightPixels

The number of pixels to add to the right. The default is 0.

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

### setRightPixels

The number of pixels to add to the right. The default is 0.

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

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