# Google Cloud Video Stitcher V1 Client - Class MediaCdnKey (1.2.0)

1.2.0 (latest) 1.1.2 1.0.4 0.9.1 0.8.4 0.7.3 0.6.2 0.5.1 0.3.4 Reference documentation and code samples for the Google Cloud Video Stitcher V1 Client class MediaCdnKey.

Configuration for a Media CDN key.

Generated from protobuf message `google.cloud.video.stitcher.v1.MediaCdnKey`

## Namespace

Google \\ Cloud \\ Video \\ Stitcher \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ private_key` | `string` Input only. 64-byte ed25519 private key for this Media CDN key. |
| `↳ key_name` | `string` The keyset name of the Media CDN key. |
| `↳ token_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.MediaCdnKey.TokenConfig` Optional. If set, the URL will be signed using the Media CDN token. Otherwise, the URL would be signed using the standard Media CDN signature. |

### getPrivateKey

Input only. 64-byte ed25519 private key for this Media CDN key.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPrivateKey

Input only. 64-byte ed25519 private key for this Media CDN key.

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

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

### getKeyName

The keyset name of the Media CDN key.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setKeyName

The keyset name of the Media CDN key.

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

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

### getTokenConfig

Optional. If set, the URL will be signed using the Media CDN token.

Otherwise, the URL would be signed using the standard Media CDN signature.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.MediaCdnKey.TokenConfig|null` |   |

### hasTokenConfig

### clearTokenConfig

### setTokenConfig

Optional. If set, the URL will be signed using the Media CDN token.

Otherwise, the URL would be signed using the standard Media CDN signature.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.MediaCdnKey.TokenConfig` |

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