No Description

Message.php 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. class Google_Service_HangoutsChat_Message extends Google_Collection
  18. {
  19. protected $collection_key = 'cards';
  20. protected $actionResponseType = 'Google_Service_HangoutsChat_ActionResponse';
  21. protected $actionResponseDataType = '';
  22. protected $annotationsType = 'Google_Service_HangoutsChat_Annotation';
  23. protected $annotationsDataType = 'array';
  24. public $argumentText;
  25. protected $cardsType = 'Google_Service_HangoutsChat_Card';
  26. protected $cardsDataType = 'array';
  27. public $createTime;
  28. public $fallbackText;
  29. public $name;
  30. public $previewText;
  31. protected $senderType = 'Google_Service_HangoutsChat_User';
  32. protected $senderDataType = '';
  33. protected $spaceType = 'Google_Service_HangoutsChat_Space';
  34. protected $spaceDataType = '';
  35. public $text;
  36. protected $threadType = 'Google_Service_HangoutsChat_Thread';
  37. protected $threadDataType = '';
  38. /**
  39. * @param Google_Service_HangoutsChat_ActionResponse
  40. */
  41. public function setActionResponse(Google_Service_HangoutsChat_ActionResponse $actionResponse)
  42. {
  43. $this->actionResponse = $actionResponse;
  44. }
  45. /**
  46. * @return Google_Service_HangoutsChat_ActionResponse
  47. */
  48. public function getActionResponse()
  49. {
  50. return $this->actionResponse;
  51. }
  52. /**
  53. * @param Google_Service_HangoutsChat_Annotation
  54. */
  55. public function setAnnotations($annotations)
  56. {
  57. $this->annotations = $annotations;
  58. }
  59. /**
  60. * @return Google_Service_HangoutsChat_Annotation
  61. */
  62. public function getAnnotations()
  63. {
  64. return $this->annotations;
  65. }
  66. public function setArgumentText($argumentText)
  67. {
  68. $this->argumentText = $argumentText;
  69. }
  70. public function getArgumentText()
  71. {
  72. return $this->argumentText;
  73. }
  74. /**
  75. * @param Google_Service_HangoutsChat_Card
  76. */
  77. public function setCards($cards)
  78. {
  79. $this->cards = $cards;
  80. }
  81. /**
  82. * @return Google_Service_HangoutsChat_Card
  83. */
  84. public function getCards()
  85. {
  86. return $this->cards;
  87. }
  88. public function setCreateTime($createTime)
  89. {
  90. $this->createTime = $createTime;
  91. }
  92. public function getCreateTime()
  93. {
  94. return $this->createTime;
  95. }
  96. public function setFallbackText($fallbackText)
  97. {
  98. $this->fallbackText = $fallbackText;
  99. }
  100. public function getFallbackText()
  101. {
  102. return $this->fallbackText;
  103. }
  104. public function setName($name)
  105. {
  106. $this->name = $name;
  107. }
  108. public function getName()
  109. {
  110. return $this->name;
  111. }
  112. public function setPreviewText($previewText)
  113. {
  114. $this->previewText = $previewText;
  115. }
  116. public function getPreviewText()
  117. {
  118. return $this->previewText;
  119. }
  120. /**
  121. * @param Google_Service_HangoutsChat_User
  122. */
  123. public function setSender(Google_Service_HangoutsChat_User $sender)
  124. {
  125. $this->sender = $sender;
  126. }
  127. /**
  128. * @return Google_Service_HangoutsChat_User
  129. */
  130. public function getSender()
  131. {
  132. return $this->sender;
  133. }
  134. /**
  135. * @param Google_Service_HangoutsChat_Space
  136. */
  137. public function setSpace(Google_Service_HangoutsChat_Space $space)
  138. {
  139. $this->space = $space;
  140. }
  141. /**
  142. * @return Google_Service_HangoutsChat_Space
  143. */
  144. public function getSpace()
  145. {
  146. return $this->space;
  147. }
  148. public function setText($text)
  149. {
  150. $this->text = $text;
  151. }
  152. public function getText()
  153. {
  154. return $this->text;
  155. }
  156. /**
  157. * @param Google_Service_HangoutsChat_Thread
  158. */
  159. public function setThread(Google_Service_HangoutsChat_Thread $thread)
  160. {
  161. $this->thread = $thread;
  162. }
  163. /**
  164. * @return Google_Service_HangoutsChat_Thread
  165. */
  166. public function getThread()
  167. {
  168. return $this->thread;
  169. }
  170. }