HadoopJob.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. namespace Google\Service\Dataproc;
  18. class HadoopJob extends \Google\Collection
  19. {
  20. protected $collection_key = 'jarFileUris';
  21. /**
  22. * @var string[]
  23. */
  24. public $archiveUris;
  25. /**
  26. * @var string[]
  27. */
  28. public $args;
  29. /**
  30. * @var string[]
  31. */
  32. public $fileUris;
  33. /**
  34. * @var string[]
  35. */
  36. public $jarFileUris;
  37. protected $loggingConfigType = LoggingConfig::class;
  38. protected $loggingConfigDataType = '';
  39. /**
  40. * @var string
  41. */
  42. public $mainClass;
  43. /**
  44. * @var string
  45. */
  46. public $mainJarFileUri;
  47. /**
  48. * @var string[]
  49. */
  50. public $properties;
  51. /**
  52. * @param string[]
  53. */
  54. public function setArchiveUris($archiveUris)
  55. {
  56. $this->archiveUris = $archiveUris;
  57. }
  58. /**
  59. * @return string[]
  60. */
  61. public function getArchiveUris()
  62. {
  63. return $this->archiveUris;
  64. }
  65. /**
  66. * @param string[]
  67. */
  68. public function setArgs($args)
  69. {
  70. $this->args = $args;
  71. }
  72. /**
  73. * @return string[]
  74. */
  75. public function getArgs()
  76. {
  77. return $this->args;
  78. }
  79. /**
  80. * @param string[]
  81. */
  82. public function setFileUris($fileUris)
  83. {
  84. $this->fileUris = $fileUris;
  85. }
  86. /**
  87. * @return string[]
  88. */
  89. public function getFileUris()
  90. {
  91. return $this->fileUris;
  92. }
  93. /**
  94. * @param string[]
  95. */
  96. public function setJarFileUris($jarFileUris)
  97. {
  98. $this->jarFileUris = $jarFileUris;
  99. }
  100. /**
  101. * @return string[]
  102. */
  103. public function getJarFileUris()
  104. {
  105. return $this->jarFileUris;
  106. }
  107. /**
  108. * @param LoggingConfig
  109. */
  110. public function setLoggingConfig(LoggingConfig $loggingConfig)
  111. {
  112. $this->loggingConfig = $loggingConfig;
  113. }
  114. /**
  115. * @return LoggingConfig
  116. */
  117. public function getLoggingConfig()
  118. {
  119. return $this->loggingConfig;
  120. }
  121. /**
  122. * @param string
  123. */
  124. public function setMainClass($mainClass)
  125. {
  126. $this->mainClass = $mainClass;
  127. }
  128. /**
  129. * @return string
  130. */
  131. public function getMainClass()
  132. {
  133. return $this->mainClass;
  134. }
  135. /**
  136. * @param string
  137. */
  138. public function setMainJarFileUri($mainJarFileUri)
  139. {
  140. $this->mainJarFileUri = $mainJarFileUri;
  141. }
  142. /**
  143. * @return string
  144. */
  145. public function getMainJarFileUri()
  146. {
  147. return $this->mainJarFileUri;
  148. }
  149. /**
  150. * @param string[]
  151. */
  152. public function setProperties($properties)
  153. {
  154. $this->properties = $properties;
  155. }
  156. /**
  157. * @return string[]
  158. */
  159. public function getProperties()
  160. {
  161. return $this->properties;
  162. }
  163. }
  164. // Adding a class alias for backwards compatibility with the previous class name.
  165. class_alias(HadoopJob::class, 'Google_Service_Dataproc_HadoopJob');