NativeSqlExecutionUiData.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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 NativeSqlExecutionUiData extends \Google\Collection
  19. {
  20. protected $collection_key = 'fallbackNodeToReason';
  21. /**
  22. * Optional. Description of the execution.
  23. *
  24. * @var string
  25. */
  26. public $description;
  27. /**
  28. * Required. Execution ID of the Native SQL Execution.
  29. *
  30. * @var string
  31. */
  32. public $executionId;
  33. /**
  34. * Optional. Description of the fallback.
  35. *
  36. * @var string
  37. */
  38. public $fallbackDescription;
  39. protected $fallbackNodeToReasonType = FallbackReason::class;
  40. protected $fallbackNodeToReasonDataType = 'array';
  41. /**
  42. * Optional. Number of nodes fallen back to Spark.
  43. *
  44. * @var int
  45. */
  46. public $numFallbackNodes;
  47. /**
  48. * Optional. Number of nodes in Native.
  49. *
  50. * @var int
  51. */
  52. public $numNativeNodes;
  53. /**
  54. * Optional. Description of the execution.
  55. *
  56. * @param string $description
  57. */
  58. public function setDescription($description)
  59. {
  60. $this->description = $description;
  61. }
  62. /**
  63. * @return string
  64. */
  65. public function getDescription()
  66. {
  67. return $this->description;
  68. }
  69. /**
  70. * Required. Execution ID of the Native SQL Execution.
  71. *
  72. * @param string $executionId
  73. */
  74. public function setExecutionId($executionId)
  75. {
  76. $this->executionId = $executionId;
  77. }
  78. /**
  79. * @return string
  80. */
  81. public function getExecutionId()
  82. {
  83. return $this->executionId;
  84. }
  85. /**
  86. * Optional. Description of the fallback.
  87. *
  88. * @param string $fallbackDescription
  89. */
  90. public function setFallbackDescription($fallbackDescription)
  91. {
  92. $this->fallbackDescription = $fallbackDescription;
  93. }
  94. /**
  95. * @return string
  96. */
  97. public function getFallbackDescription()
  98. {
  99. return $this->fallbackDescription;
  100. }
  101. /**
  102. * Optional. Fallback node to reason.
  103. *
  104. * @param FallbackReason[] $fallbackNodeToReason
  105. */
  106. public function setFallbackNodeToReason($fallbackNodeToReason)
  107. {
  108. $this->fallbackNodeToReason = $fallbackNodeToReason;
  109. }
  110. /**
  111. * @return FallbackReason[]
  112. */
  113. public function getFallbackNodeToReason()
  114. {
  115. return $this->fallbackNodeToReason;
  116. }
  117. /**
  118. * Optional. Number of nodes fallen back to Spark.
  119. *
  120. * @param int $numFallbackNodes
  121. */
  122. public function setNumFallbackNodes($numFallbackNodes)
  123. {
  124. $this->numFallbackNodes = $numFallbackNodes;
  125. }
  126. /**
  127. * @return int
  128. */
  129. public function getNumFallbackNodes()
  130. {
  131. return $this->numFallbackNodes;
  132. }
  133. /**
  134. * Optional. Number of nodes in Native.
  135. *
  136. * @param int $numNativeNodes
  137. */
  138. public function setNumNativeNodes($numNativeNodes)
  139. {
  140. $this->numNativeNodes = $numNativeNodes;
  141. }
  142. /**
  143. * @return int
  144. */
  145. public function getNumNativeNodes()
  146. {
  147. return $this->numNativeNodes;
  148. }
  149. }
  150. // Adding a class alias for backwards compatibility with the previous class name.
  151. class_alias(NativeSqlExecutionUiData::class, 'Google_Service_Dataproc_NativeSqlExecutionUiData');