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\CloudTasks;
19
20class Task extends \Google\Model
21{
22  protected $appEngineHttpRequestType = AppEngineHttpRequest::class;
23  protected $appEngineHttpRequestDataType = '';
24  /**
25   * @var string
26   */
27  public $createTime;
28  /**
29   * @var int
30   */
31  public $dispatchCount;
32  /**
33   * @var string
34   */
35  public $dispatchDeadline;
36  protected $firstAttemptType = Attempt::class;
37  protected $firstAttemptDataType = '';
38  protected $httpRequestType = HttpRequest::class;
39  protected $httpRequestDataType = '';
40  protected $lastAttemptType = Attempt::class;
41  protected $lastAttemptDataType = '';
42  /**
43   * @var string
44   */
45  public $name;
46  /**
47   * @var int
48   */
49  public $responseCount;
50  /**
51   * @var string
52   */
53  public $scheduleTime;
54  /**
55   * @var string
56   */
57  public $view;
58
59  /**
60   * @param AppEngineHttpRequest
61   */
62  public function setAppEngineHttpRequest(AppEngineHttpRequest $appEngineHttpRequest)
63  {
64    $this->appEngineHttpRequest = $appEngineHttpRequest;
65  }
66  /**
67   * @return AppEngineHttpRequest
68   */
69  public function getAppEngineHttpRequest()
70  {
71    return $this->appEngineHttpRequest;
72  }
73  /**
74   * @param string
75   */
76  public function setCreateTime($createTime)
77  {
78    $this->createTime = $createTime;
79  }
80  /**
81   * @return string
82   */
83  public function getCreateTime()
84  {
85    return $this->createTime;
86  }
87  /**
88   * @param int
89   */
90  public function setDispatchCount($dispatchCount)
91  {
92    $this->dispatchCount = $dispatchCount;
93  }
94  /**
95   * @return int
96   */
97  public function getDispatchCount()
98  {
99    return $this->dispatchCount;
100  }
101  /**
102   * @param string
103   */
104  public function setDispatchDeadline($dispatchDeadline)
105  {
106    $this->dispatchDeadline = $dispatchDeadline;
107  }
108  /**
109   * @return string
110   */
111  public function getDispatchDeadline()
112  {
113    return $this->dispatchDeadline;
114  }
115  /**
116   * @param Attempt
117   */
118  public function setFirstAttempt(Attempt $firstAttempt)
119  {
120    $this->firstAttempt = $firstAttempt;
121  }
122  /**
123   * @return Attempt
124   */
125  public function getFirstAttempt()
126  {
127    return $this->firstAttempt;
128  }
129  /**
130   * @param HttpRequest
131   */
132  public function setHttpRequest(HttpRequest $httpRequest)
133  {
134    $this->httpRequest = $httpRequest;
135  }
136  /**
137   * @return HttpRequest
138   */
139  public function getHttpRequest()
140  {
141    return $this->httpRequest;
142  }
143  /**
144   * @param Attempt
145   */
146  public function setLastAttempt(Attempt $lastAttempt)
147  {
148    $this->lastAttempt = $lastAttempt;
149  }
150  /**
151   * @return Attempt
152   */
153  public function getLastAttempt()
154  {
155    return $this->lastAttempt;
156  }
157  /**
158   * @param string
159   */
160  public function setName($name)
161  {
162    $this->name = $name;
163  }
164  /**
165   * @return string
166   */
167  public function getName()
168  {
169    return $this->name;
170  }
171  /**
172   * @param int
173   */
174  public function setResponseCount($responseCount)
175  {
176    $this->responseCount = $responseCount;
177  }
178  /**
179   * @return int
180   */
181  public function getResponseCount()
182  {
183    return $this->responseCount;
184  }
185  /**
186   * @param string
187   */
188  public function setScheduleTime($scheduleTime)
189  {
190    $this->scheduleTime = $scheduleTime;
191  }
192  /**
193   * @return string
194   */
195  public function getScheduleTime()
196  {
197    return $this->scheduleTime;
198  }
199  /**
200   * @param string
201   */
202  public function setView($view)
203  {
204    $this->view = $view;
205  }
206  /**
207   * @return string
208   */
209  public function getView()
210  {
211    return $this->view;
212  }
213}
214
215// Adding a class alias for backwards compatibility with the previous class name.
216class_alias(Task::class, 'Google_Service_CloudTasks_Task');
217