1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18namespace Google\Service\Transcoder; 19 20class Job extends \Google\Model 21{ 22 protected $configType = JobConfig::class; 23 protected $configDataType = ''; 24 /** 25 * @var string 26 */ 27 public $createTime; 28 /** 29 * @var string 30 */ 31 public $endTime; 32 protected $errorType = Status::class; 33 protected $errorDataType = ''; 34 /** 35 * @var string 36 */ 37 public $inputUri; 38 /** 39 * @var string 40 */ 41 public $name; 42 /** 43 * @var string 44 */ 45 public $outputUri; 46 /** 47 * @var string 48 */ 49 public $startTime; 50 /** 51 * @var string 52 */ 53 public $state; 54 /** 55 * @var string 56 */ 57 public $templateId; 58 /** 59 * @var int 60 */ 61 public $ttlAfterCompletionDays; 62 63 /** 64 * @param JobConfig 65 */ 66 public function setConfig(JobConfig $config) 67 { 68 $this->config = $config; 69 } 70 /** 71 * @return JobConfig 72 */ 73 public function getConfig() 74 { 75 return $this->config; 76 } 77 /** 78 * @param string 79 */ 80 public function setCreateTime($createTime) 81 { 82 $this->createTime = $createTime; 83 } 84 /** 85 * @return string 86 */ 87 public function getCreateTime() 88 { 89 return $this->createTime; 90 } 91 /** 92 * @param string 93 */ 94 public function setEndTime($endTime) 95 { 96 $this->endTime = $endTime; 97 } 98 /** 99 * @return string 100 */ 101 public function getEndTime() 102 { 103 return $this->endTime; 104 } 105 /** 106 * @param Status 107 */ 108 public function setError(Status $error) 109 { 110 $this->error = $error; 111 } 112 /** 113 * @return Status 114 */ 115 public function getError() 116 { 117 return $this->error; 118 } 119 /** 120 * @param string 121 */ 122 public function setInputUri($inputUri) 123 { 124 $this->inputUri = $inputUri; 125 } 126 /** 127 * @return string 128 */ 129 public function getInputUri() 130 { 131 return $this->inputUri; 132 } 133 /** 134 * @param string 135 */ 136 public function setName($name) 137 { 138 $this->name = $name; 139 } 140 /** 141 * @return string 142 */ 143 public function getName() 144 { 145 return $this->name; 146 } 147 /** 148 * @param string 149 */ 150 public function setOutputUri($outputUri) 151 { 152 $this->outputUri = $outputUri; 153 } 154 /** 155 * @return string 156 */ 157 public function getOutputUri() 158 { 159 return $this->outputUri; 160 } 161 /** 162 * @param string 163 */ 164 public function setStartTime($startTime) 165 { 166 $this->startTime = $startTime; 167 } 168 /** 169 * @return string 170 */ 171 public function getStartTime() 172 { 173 return $this->startTime; 174 } 175 /** 176 * @param string 177 */ 178 public function setState($state) 179 { 180 $this->state = $state; 181 } 182 /** 183 * @return string 184 */ 185 public function getState() 186 { 187 return $this->state; 188 } 189 /** 190 * @param string 191 */ 192 public function setTemplateId($templateId) 193 { 194 $this->templateId = $templateId; 195 } 196 /** 197 * @return string 198 */ 199 public function getTemplateId() 200 { 201 return $this->templateId; 202 } 203 /** 204 * @param int 205 */ 206 public function setTtlAfterCompletionDays($ttlAfterCompletionDays) 207 { 208 $this->ttlAfterCompletionDays = $ttlAfterCompletionDays; 209 } 210 /** 211 * @return int 212 */ 213 public function getTtlAfterCompletionDays() 214 { 215 return $this->ttlAfterCompletionDays; 216 } 217} 218 219// Adding a class alias for backwards compatibility with the previous class name. 220class_alias(Job::class, 'Google_Service_Transcoder_Job'); 221