GoogleAppsCardV1Button.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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 GoogleAppsCardV1Button extends \Google\Model
  19. {
  20. /**
  21. * @var string
  22. */
  23. public $altText;
  24. protected $colorType = Color::class;
  25. protected $colorDataType = '';
  26. /**
  27. * @var bool
  28. */
  29. public $disabled;
  30. protected $iconType = GoogleAppsCardV1Icon::class;
  31. protected $iconDataType = '';
  32. protected $onClickType = GoogleAppsCardV1OnClick::class;
  33. protected $onClickDataType = '';
  34. /**
  35. * @var string
  36. */
  37. public $text;
  38. /**
  39. * @param string
  40. */
  41. public function setAltText($altText)
  42. {
  43. $this->altText = $altText;
  44. }
  45. /**
  46. * @return string
  47. */
  48. public function getAltText()
  49. {
  50. return $this->altText;
  51. }
  52. /**
  53. * @param Color
  54. */
  55. public function setColor(Color $color)
  56. {
  57. $this->color = $color;
  58. }
  59. /**
  60. * @return Color
  61. */
  62. public function getColor()
  63. {
  64. return $this->color;
  65. }
  66. /**
  67. * @param bool
  68. */
  69. public function setDisabled($disabled)
  70. {
  71. $this->disabled = $disabled;
  72. }
  73. /**
  74. * @return bool
  75. */
  76. public function getDisabled()
  77. {
  78. return $this->disabled;
  79. }
  80. /**
  81. * @param GoogleAppsCardV1Icon
  82. */
  83. public function setIcon(GoogleAppsCardV1Icon $icon)
  84. {
  85. $this->icon = $icon;
  86. }
  87. /**
  88. * @return GoogleAppsCardV1Icon
  89. */
  90. public function getIcon()
  91. {
  92. return $this->icon;
  93. }
  94. /**
  95. * @param GoogleAppsCardV1OnClick
  96. */
  97. public function setOnClick(GoogleAppsCardV1OnClick $onClick)
  98. {
  99. $this->onClick = $onClick;
  100. }
  101. /**
  102. * @return GoogleAppsCardV1OnClick
  103. */
  104. public function getOnClick()
  105. {
  106. return $this->onClick;
  107. }
  108. /**
  109. * @param string
  110. */
  111. public function setText($text)
  112. {
  113. $this->text = $text;
  114. }
  115. /**
  116. * @return string
  117. */
  118. public function getText()
  119. {
  120. return $this->text;
  121. }
  122. }
  123. // Adding a class alias for backwards compatibility with the previous class name.
  124. class_alias(GoogleAppsCardV1Button::class, 'Google_Service_HangoutsChat_GoogleAppsCardV1Button');