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 |
|
---|
18 | namespace Google\Service\Bigquery;
|
---|
19 |
|
---|
20 | class Job extends \Google\Model
|
---|
21 | {
|
---|
22 | protected $internal_gapi_mappings = [
|
---|
23 | "principalSubject" => "principal_subject",
|
---|
24 | "userEmail" => "user_email",
|
---|
25 | ];
|
---|
26 | protected $configurationType = JobConfiguration::class;
|
---|
27 | protected $configurationDataType = '';
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $etag;
|
---|
32 | /**
|
---|
33 | * @var string
|
---|
34 | */
|
---|
35 | public $id;
|
---|
36 | protected $jobCreationReasonType = JobCreationReason::class;
|
---|
37 | protected $jobCreationReasonDataType = '';
|
---|
38 | protected $jobReferenceType = JobReference::class;
|
---|
39 | protected $jobReferenceDataType = '';
|
---|
40 | /**
|
---|
41 | * @var string
|
---|
42 | */
|
---|
43 | public $kind;
|
---|
44 | /**
|
---|
45 | * @var string
|
---|
46 | */
|
---|
47 | public $principalSubject;
|
---|
48 | /**
|
---|
49 | * @var string
|
---|
50 | */
|
---|
51 | public $selfLink;
|
---|
52 | protected $statisticsType = JobStatistics::class;
|
---|
53 | protected $statisticsDataType = '';
|
---|
54 | protected $statusType = JobStatus::class;
|
---|
55 | protected $statusDataType = '';
|
---|
56 | /**
|
---|
57 | * @var string
|
---|
58 | */
|
---|
59 | public $userEmail;
|
---|
60 |
|
---|
61 | /**
|
---|
62 | * @param JobConfiguration
|
---|
63 | */
|
---|
64 | public function setConfiguration(JobConfiguration $configuration)
|
---|
65 | {
|
---|
66 | $this->configuration = $configuration;
|
---|
67 | }
|
---|
68 | /**
|
---|
69 | * @return JobConfiguration
|
---|
70 | */
|
---|
71 | public function getConfiguration()
|
---|
72 | {
|
---|
73 | return $this->configuration;
|
---|
74 | }
|
---|
75 | /**
|
---|
76 | * @param string
|
---|
77 | */
|
---|
78 | public function setEtag($etag)
|
---|
79 | {
|
---|
80 | $this->etag = $etag;
|
---|
81 | }
|
---|
82 | /**
|
---|
83 | * @return string
|
---|
84 | */
|
---|
85 | public function getEtag()
|
---|
86 | {
|
---|
87 | return $this->etag;
|
---|
88 | }
|
---|
89 | /**
|
---|
90 | * @param string
|
---|
91 | */
|
---|
92 | public function setId($id)
|
---|
93 | {
|
---|
94 | $this->id = $id;
|
---|
95 | }
|
---|
96 | /**
|
---|
97 | * @return string
|
---|
98 | */
|
---|
99 | public function getId()
|
---|
100 | {
|
---|
101 | return $this->id;
|
---|
102 | }
|
---|
103 | /**
|
---|
104 | * @param JobCreationReason
|
---|
105 | */
|
---|
106 | public function setJobCreationReason(JobCreationReason $jobCreationReason)
|
---|
107 | {
|
---|
108 | $this->jobCreationReason = $jobCreationReason;
|
---|
109 | }
|
---|
110 | /**
|
---|
111 | * @return JobCreationReason
|
---|
112 | */
|
---|
113 | public function getJobCreationReason()
|
---|
114 | {
|
---|
115 | return $this->jobCreationReason;
|
---|
116 | }
|
---|
117 | /**
|
---|
118 | * @param JobReference
|
---|
119 | */
|
---|
120 | public function setJobReference(JobReference $jobReference)
|
---|
121 | {
|
---|
122 | $this->jobReference = $jobReference;
|
---|
123 | }
|
---|
124 | /**
|
---|
125 | * @return JobReference
|
---|
126 | */
|
---|
127 | public function getJobReference()
|
---|
128 | {
|
---|
129 | return $this->jobReference;
|
---|
130 | }
|
---|
131 | /**
|
---|
132 | * @param string
|
---|
133 | */
|
---|
134 | public function setKind($kind)
|
---|
135 | {
|
---|
136 | $this->kind = $kind;
|
---|
137 | }
|
---|
138 | /**
|
---|
139 | * @return string
|
---|
140 | */
|
---|
141 | public function getKind()
|
---|
142 | {
|
---|
143 | return $this->kind;
|
---|
144 | }
|
---|
145 | /**
|
---|
146 | * @param string
|
---|
147 | */
|
---|
148 | public function setPrincipalSubject($principalSubject)
|
---|
149 | {
|
---|
150 | $this->principalSubject = $principalSubject;
|
---|
151 | }
|
---|
152 | /**
|
---|
153 | * @return string
|
---|
154 | */
|
---|
155 | public function getPrincipalSubject()
|
---|
156 | {
|
---|
157 | return $this->principalSubject;
|
---|
158 | }
|
---|
159 | /**
|
---|
160 | * @param string
|
---|
161 | */
|
---|
162 | public function setSelfLink($selfLink)
|
---|
163 | {
|
---|
164 | $this->selfLink = $selfLink;
|
---|
165 | }
|
---|
166 | /**
|
---|
167 | * @return string
|
---|
168 | */
|
---|
169 | public function getSelfLink()
|
---|
170 | {
|
---|
171 | return $this->selfLink;
|
---|
172 | }
|
---|
173 | /**
|
---|
174 | * @param JobStatistics
|
---|
175 | */
|
---|
176 | public function setStatistics(JobStatistics $statistics)
|
---|
177 | {
|
---|
178 | $this->statistics = $statistics;
|
---|
179 | }
|
---|
180 | /**
|
---|
181 | * @return JobStatistics
|
---|
182 | */
|
---|
183 | public function getStatistics()
|
---|
184 | {
|
---|
185 | return $this->statistics;
|
---|
186 | }
|
---|
187 | /**
|
---|
188 | * @param JobStatus
|
---|
189 | */
|
---|
190 | public function setStatus(JobStatus $status)
|
---|
191 | {
|
---|
192 | $this->status = $status;
|
---|
193 | }
|
---|
194 | /**
|
---|
195 | * @return JobStatus
|
---|
196 | */
|
---|
197 | public function getStatus()
|
---|
198 | {
|
---|
199 | return $this->status;
|
---|
200 | }
|
---|
201 | /**
|
---|
202 | * @param string
|
---|
203 | */
|
---|
204 | public function setUserEmail($userEmail)
|
---|
205 | {
|
---|
206 | $this->userEmail = $userEmail;
|
---|
207 | }
|
---|
208 | /**
|
---|
209 | * @return string
|
---|
210 | */
|
---|
211 | public function getUserEmail()
|
---|
212 | {
|
---|
213 | return $this->userEmail;
|
---|
214 | }
|
---|
215 | }
|
---|
216 |
|
---|
217 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
218 | class_alias(Job::class, 'Google_Service_Bigquery_Job');
|
---|