# Google Cloud Video Transcoder V1 Client - Class CreateJobTemplateRequest (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 CreateJobTemplateRequest.

Request message for `TranscoderService.CreateJobTemplate`.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent location to create this job template. Format: `projects/{project}/locations/{location}` |
| `↳ job_template` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.JobTemplate` Required. Parameters for creating job template. |
| `↳ job_template_id` | `string` Required. The ID to use for the job template, which will become the final component of the job template's resource name. This value should be 4-63 characters, and valid characters must match the regular expression `[a-zA-Z][a-zA-Z0-9_-]*`. |

### getParent

Required. The parent location to create this job template.

Format: `projects/{project}/locations/{location}`

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

### setParent

Required. The parent location to create this job template.

Format: `projects/{project}/locations/{location}`

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

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

### getJobTemplate

Required. Parameters for creating job template.

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

### hasJobTemplate

### clearJobTemplate

### setJobTemplate

Required. Parameters for creating job template.

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

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

### getJobTemplateId

Required. The ID to use for the job template, which will become the final
component of the job template's resource name.

This value should be 4-63 characters, and valid characters must match the
regular expression `[a-zA-Z][a-zA-Z0-9_-]*`.

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

### setJobTemplateId

Required. The ID to use for the job template, which will become the final
component of the job template's resource name.

This value should be 4-63 characters, and valid characters must match the
regular expression `[a-zA-Z][a-zA-Z0-9_-]*`.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent location to create this job template. Format: `projects/{project}/locations/{location}` Please see TranscoderServiceClient::locationName() for help formatting this field. |
| `jobTemplate` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.JobTemplate` Required. Parameters for creating job template. |
| `jobTemplateId` | `string` Required. The ID to use for the job template, which will become the final component of the job template's resource name. This value should be 4-63 characters, and valid characters must match the regular expression `[a-zA-Z][a-zA-Z0-9_-]*`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.CreateJobTemplateRequest` |   |