KeyValue.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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\HangoutsChat;
  18. class KeyValue extends \Google\Model
  19. {
  20. /**
  21. * @var string
  22. */
  23. public $bottomLabel;
  24. protected $buttonType = Button::class;
  25. protected $buttonDataType = '';
  26. /**
  27. * @var string
  28. */
  29. public $content;
  30. /**
  31. * @var bool
  32. */
  33. public $contentMultiline;
  34. /**
  35. * @var string
  36. */
  37. public $icon;
  38. /**
  39. * @var string
  40. */
  41. public $iconUrl;
  42. protected $onClickType = OnClick::class;
  43. protected $onClickDataType = '';
  44. /**
  45. * @var string
  46. */
  47. public $topLabel;
  48. /**
  49. * @param string
  50. */
  51. public function setBottomLabel($bottomLabel)
  52. {
  53. $this->bottomLabel = $bottomLabel;
  54. }
  55. /**
  56. * @return string
  57. */
  58. public function getBottomLabel()
  59. {
  60. return $this->bottomLabel;
  61. }
  62. /**
  63. * @param Button
  64. */
  65. public function setButton(Button $button)
  66. {
  67. $this->button = $button;
  68. }
  69. /**
  70. * @return Button
  71. */
  72. public function getButton()
  73. {
  74. return $this->button;
  75. }
  76. /**
  77. * @param string
  78. */
  79. public function setContent($content)
  80. {
  81. $this->content = $content;
  82. }
  83. /**
  84. * @return string
  85. */
  86. public function getContent()
  87. {
  88. return $this->content;
  89. }
  90. /**
  91. * @param bool
  92. */
  93. public function setContentMultiline($contentMultiline)
  94. {
  95. $this->contentMultiline = $contentMultiline;
  96. }
  97. /**
  98. * @return bool
  99. */
  100. public function getContentMultiline()
  101. {
  102. return $this->contentMultiline;
  103. }
  104. /**
  105. * @param string
  106. */
  107. public function setIcon($icon)
  108. {
  109. $this->icon = $icon;
  110. }
  111. /**
  112. * @return string
  113. */
  114. public function getIcon()
  115. {
  116. return $this->icon;
  117. }
  118. /**
  119. * @param string
  120. */
  121. public function setIconUrl($iconUrl)
  122. {
  123. $this->iconUrl = $iconUrl;
  124. }
  125. /**
  126. * @return string
  127. */
  128. public function getIconUrl()
  129. {
  130. return $this->iconUrl;
  131. }
  132. /**
  133. * @param OnClick
  134. */
  135. public function setOnClick(OnClick $onClick)
  136. {
  137. $this->onClick = $onClick;
  138. }
  139. /**
  140. * @return OnClick
  141. */
  142. public function getOnClick()
  143. {
  144. return $this->onClick;
  145. }
  146. /**
  147. * @param string
  148. */
  149. public function setTopLabel($topLabel)
  150. {
  151. $this->topLabel = $topLabel;
  152. }
  153. /**
  154. * @return string
  155. */
  156. public function getTopLabel()
  157. {
  158. return $this->topLabel;
  159. }
  160. }
  161. // Adding a class alias for backwards compatibility with the previous class name.
  162. class_alias(KeyValue::class, 'Google_Service_HangoutsChat_KeyValue');