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\CloudMachineLearningEngine;
19
20class GoogleCloudMlV1TrainingInput extends \Google\Collection
21{
22  protected $collection_key = 'packageUris';
23  /**
24   * @var string[]
25   */
26  public $args;
27  /**
28   * @var bool
29   */
30  public $enableWebAccess;
31  protected $encryptionConfigType = GoogleCloudMlV1EncryptionConfig::class;
32  protected $encryptionConfigDataType = '';
33  protected $evaluatorConfigType = GoogleCloudMlV1ReplicaConfig::class;
34  protected $evaluatorConfigDataType = '';
35  /**
36   * @var string
37   */
38  public $evaluatorCount;
39  /**
40   * @var string
41   */
42  public $evaluatorType;
43  protected $hyperparametersType = GoogleCloudMlV1HyperparameterSpec::class;
44  protected $hyperparametersDataType = '';
45  /**
46   * @var string
47   */
48  public $jobDir;
49  protected $masterConfigType = GoogleCloudMlV1ReplicaConfig::class;
50  protected $masterConfigDataType = '';
51  /**
52   * @var string
53   */
54  public $masterType;
55  /**
56   * @var string
57   */
58  public $network;
59  /**
60   * @var string[]
61   */
62  public $packageUris;
63  protected $parameterServerConfigType = GoogleCloudMlV1ReplicaConfig::class;
64  protected $parameterServerConfigDataType = '';
65  /**
66   * @var string
67   */
68  public $parameterServerCount;
69  /**
70   * @var string
71   */
72  public $parameterServerType;
73  /**
74   * @var string
75   */
76  public $pythonModule;
77  /**
78   * @var string
79   */
80  public $pythonVersion;
81  /**
82   * @var string
83   */
84  public $region;
85  /**
86   * @var string
87   */
88  public $runtimeVersion;
89  /**
90   * @var string
91   */
92  public $scaleTier;
93  protected $schedulingType = GoogleCloudMlV1Scheduling::class;
94  protected $schedulingDataType = '';
95  /**
96   * @var string
97   */
98  public $serviceAccount;
99  /**
100   * @var bool
101   */
102  public $useChiefInTfConfig;
103  protected $workerConfigType = GoogleCloudMlV1ReplicaConfig::class;
104  protected $workerConfigDataType = '';
105  /**
106   * @var string
107   */
108  public $workerCount;
109  /**
110   * @var string
111   */
112  public $workerType;
113
114  /**
115   * @param string[]
116   */
117  public function setArgs($args)
118  {
119    $this->args = $args;
120  }
121  /**
122   * @return string[]
123   */
124  public function getArgs()
125  {
126    return $this->args;
127  }
128  /**
129   * @param bool
130   */
131  public function setEnableWebAccess($enableWebAccess)
132  {
133    $this->enableWebAccess = $enableWebAccess;
134  }
135  /**
136   * @return bool
137   */
138  public function getEnableWebAccess()
139  {
140    return $this->enableWebAccess;
141  }
142  /**
143   * @param GoogleCloudMlV1EncryptionConfig
144   */
145  public function setEncryptionConfig(GoogleCloudMlV1EncryptionConfig $encryptionConfig)
146  {
147    $this->encryptionConfig = $encryptionConfig;
148  }
149  /**
150   * @return GoogleCloudMlV1EncryptionConfig
151   */
152  public function getEncryptionConfig()
153  {
154    return $this->encryptionConfig;
155  }
156  /**
157   * @param GoogleCloudMlV1ReplicaConfig
158   */
159  public function setEvaluatorConfig(GoogleCloudMlV1ReplicaConfig $evaluatorConfig)
160  {
161    $this->evaluatorConfig = $evaluatorConfig;
162  }
163  /**
164   * @return GoogleCloudMlV1ReplicaConfig
165   */
166  public function getEvaluatorConfig()
167  {
168    return $this->evaluatorConfig;
169  }
170  /**
171   * @param string
172   */
173  public function setEvaluatorCount($evaluatorCount)
174  {
175    $this->evaluatorCount = $evaluatorCount;
176  }
177  /**
178   * @return string
179   */
180  public function getEvaluatorCount()
181  {
182    return $this->evaluatorCount;
183  }
184  /**
185   * @param string
186   */
187  public function setEvaluatorType($evaluatorType)
188  {
189    $this->evaluatorType = $evaluatorType;
190  }
191  /**
192   * @return string
193   */
194  public function getEvaluatorType()
195  {
196    return $this->evaluatorType;
197  }
198  /**
199   * @param GoogleCloudMlV1HyperparameterSpec
200   */
201  public function setHyperparameters(GoogleCloudMlV1HyperparameterSpec $hyperparameters)
202  {
203    $this->hyperparameters = $hyperparameters;
204  }
205  /**
206   * @return GoogleCloudMlV1HyperparameterSpec
207   */
208  public function getHyperparameters()
209  {
210    return $this->hyperparameters;
211  }
212  /**
213   * @param string
214   */
215  public function setJobDir($jobDir)
216  {
217    $this->jobDir = $jobDir;
218  }
219  /**
220   * @return string
221   */
222  public function getJobDir()
223  {
224    return $this->jobDir;
225  }
226  /**
227   * @param GoogleCloudMlV1ReplicaConfig
228   */
229  public function setMasterConfig(GoogleCloudMlV1ReplicaConfig $masterConfig)
230  {
231    $this->masterConfig = $masterConfig;
232  }
233  /**
234   * @return GoogleCloudMlV1ReplicaConfig
235   */
236  public function getMasterConfig()
237  {
238    return $this->masterConfig;
239  }
240  /**
241   * @param string
242   */
243  public function setMasterType($masterType)
244  {
245    $this->masterType = $masterType;
246  }
247  /**
248   * @return string
249   */
250  public function getMasterType()
251  {
252    return $this->masterType;
253  }
254  /**
255   * @param string
256   */
257  public function setNetwork($network)
258  {
259    $this->network = $network;
260  }
261  /**
262   * @return string
263   */
264  public function getNetwork()
265  {
266    return $this->network;
267  }
268  /**
269   * @param string[]
270   */
271  public function setPackageUris($packageUris)
272  {
273    $this->packageUris = $packageUris;
274  }
275  /**
276   * @return string[]
277   */
278  public function getPackageUris()
279  {
280    return $this->packageUris;
281  }
282  /**
283   * @param GoogleCloudMlV1ReplicaConfig
284   */
285  public function setParameterServerConfig(GoogleCloudMlV1ReplicaConfig $parameterServerConfig)
286  {
287    $this->parameterServerConfig = $parameterServerConfig;
288  }
289  /**
290   * @return GoogleCloudMlV1ReplicaConfig
291   */
292  public function getParameterServerConfig()
293  {
294    return $this->parameterServerConfig;
295  }
296  /**
297   * @param string
298   */
299  public function setParameterServerCount($parameterServerCount)
300  {
301    $this->parameterServerCount = $parameterServerCount;
302  }
303  /**
304   * @return string
305   */
306  public function getParameterServerCount()
307  {
308    return $this->parameterServerCount;
309  }
310  /**
311   * @param string
312   */
313  public function setParameterServerType($parameterServerType)
314  {
315    $this->parameterServerType = $parameterServerType;
316  }
317  /**
318   * @return string
319   */
320  public function getParameterServerType()
321  {
322    return $this->parameterServerType;
323  }
324  /**
325   * @param string
326   */
327  public function setPythonModule($pythonModule)
328  {
329    $this->pythonModule = $pythonModule;
330  }
331  /**
332   * @return string
333   */
334  public function getPythonModule()
335  {
336    return $this->pythonModule;
337  }
338  /**
339   * @param string
340   */
341  public function setPythonVersion($pythonVersion)
342  {
343    $this->pythonVersion = $pythonVersion;
344  }
345  /**
346   * @return string
347   */
348  public function getPythonVersion()
349  {
350    return $this->pythonVersion;
351  }
352  /**
353   * @param string
354   */
355  public function setRegion($region)
356  {
357    $this->region = $region;
358  }
359  /**
360   * @return string
361   */
362  public function getRegion()
363  {
364    return $this->region;
365  }
366  /**
367   * @param string
368   */
369  public function setRuntimeVersion($runtimeVersion)
370  {
371    $this->runtimeVersion = $runtimeVersion;
372  }
373  /**
374   * @return string
375   */
376  public function getRuntimeVersion()
377  {
378    return $this->runtimeVersion;
379  }
380  /**
381   * @param string
382   */
383  public function setScaleTier($scaleTier)
384  {
385    $this->scaleTier = $scaleTier;
386  }
387  /**
388   * @return string
389   */
390  public function getScaleTier()
391  {
392    return $this->scaleTier;
393  }
394  /**
395   * @param GoogleCloudMlV1Scheduling
396   */
397  public function setScheduling(GoogleCloudMlV1Scheduling $scheduling)
398  {
399    $this->scheduling = $scheduling;
400  }
401  /**
402   * @return GoogleCloudMlV1Scheduling
403   */
404  public function getScheduling()
405  {
406    return $this->scheduling;
407  }
408  /**
409   * @param string
410   */
411  public function setServiceAccount($serviceAccount)
412  {
413    $this->serviceAccount = $serviceAccount;
414  }
415  /**
416   * @return string
417   */
418  public function getServiceAccount()
419  {
420    return $this->serviceAccount;
421  }
422  /**
423   * @param bool
424   */
425  public function setUseChiefInTfConfig($useChiefInTfConfig)
426  {
427    $this->useChiefInTfConfig = $useChiefInTfConfig;
428  }
429  /**
430   * @return bool
431   */
432  public function getUseChiefInTfConfig()
433  {
434    return $this->useChiefInTfConfig;
435  }
436  /**
437   * @param GoogleCloudMlV1ReplicaConfig
438   */
439  public function setWorkerConfig(GoogleCloudMlV1ReplicaConfig $workerConfig)
440  {
441    $this->workerConfig = $workerConfig;
442  }
443  /**
444   * @return GoogleCloudMlV1ReplicaConfig
445   */
446  public function getWorkerConfig()
447  {
448    return $this->workerConfig;
449  }
450  /**
451   * @param string
452   */
453  public function setWorkerCount($workerCount)
454  {
455    $this->workerCount = $workerCount;
456  }
457  /**
458   * @return string
459   */
460  public function getWorkerCount()
461  {
462    return $this->workerCount;
463  }
464  /**
465   * @param string
466   */
467  public function setWorkerType($workerType)
468  {
469    $this->workerType = $workerType;
470  }
471  /**
472   * @return string
473   */
474  public function getWorkerType()
475  {
476    return $this->workerType;
477  }
478}
479
480// Adding a class alias for backwards compatibility with the previous class name.
481class_alias(GoogleCloudMlV1TrainingInput::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1TrainingInput');
482