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\Dataproc;
19 
20 class WorkflowMetadata extends \Google\Model
21 {
22   /**
23    * @var string
24    */
25   public $clusterName;
26   /**
27    * @var string
28    */
29   public $clusterUuid;
30   protected $createClusterType = ClusterOperation::class;
31   protected $createClusterDataType = '';
32   /**
33    * @var string
34    */
35   public $dagEndTime;
36   /**
37    * @var string
38    */
39   public $dagStartTime;
40   /**
41    * @var string
42    */
43   public $dagTimeout;
44   protected $deleteClusterType = ClusterOperation::class;
45   protected $deleteClusterDataType = '';
46   /**
47    * @var string
48    */
49   public $endTime;
50   protected $graphType = WorkflowGraph::class;
51   protected $graphDataType = '';
52   /**
53    * @var string[]
54    */
55   public $parameters;
56   /**
57    * @var string
58    */
59   public $startTime;
60   /**
61    * @var string
62    */
63   public $state;
64   /**
65    * @var string
66    */
67   public $template;
68   /**
69    * @var int
70    */
71   public $version;
72 
73   /**
74    * @param string
75    */
76   public function setClusterName($clusterName)
77   {
78     $this->clusterName = $clusterName;
79   }
80   /**
81    * @return string
82    */
83   public function getClusterName()
84   {
85     return $this->clusterName;
86   }
87   /**
88    * @param string
89    */
90   public function setClusterUuid($clusterUuid)
91   {
92     $this->clusterUuid = $clusterUuid;
93   }
94   /**
95    * @return string
96    */
97   public function getClusterUuid()
98   {
99     return $this->clusterUuid;
100   }
101   /**
102    * @param ClusterOperation
103    */
104   public function setCreateCluster(ClusterOperation $createCluster)
105   {
106     $this->createCluster = $createCluster;
107   }
108   /**
109    * @return ClusterOperation
110    */
111   public function getCreateCluster()
112   {
113     return $this->createCluster;
114   }
115   /**
116    * @param string
117    */
118   public function setDagEndTime($dagEndTime)
119   {
120     $this->dagEndTime = $dagEndTime;
121   }
122   /**
123    * @return string
124    */
125   public function getDagEndTime()
126   {
127     return $this->dagEndTime;
128   }
129   /**
130    * @param string
131    */
132   public function setDagStartTime($dagStartTime)
133   {
134     $this->dagStartTime = $dagStartTime;
135   }
136   /**
137    * @return string
138    */
139   public function getDagStartTime()
140   {
141     return $this->dagStartTime;
142   }
143   /**
144    * @param string
145    */
146   public function setDagTimeout($dagTimeout)
147   {
148     $this->dagTimeout = $dagTimeout;
149   }
150   /**
151    * @return string
152    */
153   public function getDagTimeout()
154   {
155     return $this->dagTimeout;
156   }
157   /**
158    * @param ClusterOperation
159    */
160   public function setDeleteCluster(ClusterOperation $deleteCluster)
161   {
162     $this->deleteCluster = $deleteCluster;
163   }
164   /**
165    * @return ClusterOperation
166    */
167   public function getDeleteCluster()
168   {
169     return $this->deleteCluster;
170   }
171   /**
172    * @param string
173    */
174   public function setEndTime($endTime)
175   {
176     $this->endTime = $endTime;
177   }
178   /**
179    * @return string
180    */
181   public function getEndTime()
182   {
183     return $this->endTime;
184   }
185   /**
186    * @param WorkflowGraph
187    */
188   public function setGraph(WorkflowGraph $graph)
189   {
190     $this->graph = $graph;
191   }
192   /**
193    * @return WorkflowGraph
194    */
195   public function getGraph()
196   {
197     return $this->graph;
198   }
199   /**
200    * @param string[]
201    */
202   public function setParameters($parameters)
203   {
204     $this->parameters = $parameters;
205   }
206   /**
207    * @return string[]
208    */
209   public function getParameters()
210   {
211     return $this->parameters;
212   }
213   /**
214    * @param string
215    */
216   public function setStartTime($startTime)
217   {
218     $this->startTime = $startTime;
219   }
220   /**
221    * @return string
222    */
223   public function getStartTime()
224   {
225     return $this->startTime;
226   }
227   /**
228    * @param string
229    */
230   public function setState($state)
231   {
232     $this->state = $state;
233   }
234   /**
235    * @return string
236    */
237   public function getState()
238   {
239     return $this->state;
240   }
241   /**
242    * @param string
243    */
244   public function setTemplate($template)
245   {
246     $this->template = $template;
247   }
248   /**
249    * @return string
250    */
251   public function getTemplate()
252   {
253     return $this->template;
254   }
255   /**
256    * @param int
257    */
258   public function setVersion($version)
259   {
260     $this->version = $version;
261   }
262   /**
263    * @return int
264    */
265   public function getVersion()
266   {
267     return $this->version;
268   }
269 }
270 
271 // Adding a class alias for backwards compatibility with the previous class name.
272 class_alias(WorkflowMetadata::class, 'Google_Service_Dataproc_WorkflowMetadata');
273