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
18namespace Google\Service\HangoutsChat;
19
20class Message extends \Google\Collection
21{
22  protected $collection_key = 'cards';
23  protected $actionResponseType = ActionResponse::class;
24  protected $actionResponseDataType = '';
25  protected $annotationsType = Annotation::class;
26  protected $annotationsDataType = 'array';
27  /**
28   * @var string
29   */
30  public $argumentText;
31  protected $attachmentType = Attachment::class;
32  protected $attachmentDataType = 'array';
33  protected $cardsType = Card::class;
34  protected $cardsDataType = 'array';
35  /**
36   * @var string
37   */
38  public $createTime;
39  /**
40   * @var string
41   */
42  public $fallbackText;
43  /**
44   * @var string
45   */
46  public $lastUpdateTime;
47  protected $matchedUrlType = MatchedUrl::class;
48  protected $matchedUrlDataType = '';
49  /**
50   * @var string
51   */
52  public $name;
53  protected $senderType = User::class;
54  protected $senderDataType = '';
55  protected $slashCommandType = SlashCommand::class;
56  protected $slashCommandDataType = '';
57  protected $spaceType = Space::class;
58  protected $spaceDataType = '';
59  /**
60   * @var string
61   */
62  public $text;
63  protected $threadType = Thread::class;
64  protected $threadDataType = '';
65
66  /**
67   * @param ActionResponse
68   */
69  public function setActionResponse(ActionResponse $actionResponse)
70  {
71    $this->actionResponse = $actionResponse;
72  }
73  /**
74   * @return ActionResponse
75   */
76  public function getActionResponse()
77  {
78    return $this->actionResponse;
79  }
80  /**
81   * @param Annotation[]
82   */
83  public function setAnnotations($annotations)
84  {
85    $this->annotations = $annotations;
86  }
87  /**
88   * @return Annotation[]
89   */
90  public function getAnnotations()
91  {
92    return $this->annotations;
93  }
94  /**
95   * @param string
96   */
97  public function setArgumentText($argumentText)
98  {
99    $this->argumentText = $argumentText;
100  }
101  /**
102   * @return string
103   */
104  public function getArgumentText()
105  {
106    return $this->argumentText;
107  }
108  /**
109   * @param Attachment[]
110   */
111  public function setAttachment($attachment)
112  {
113    $this->attachment = $attachment;
114  }
115  /**
116   * @return Attachment[]
117   */
118  public function getAttachment()
119  {
120    return $this->attachment;
121  }
122  /**
123   * @param Card[]
124   */
125  public function setCards($cards)
126  {
127    $this->cards = $cards;
128  }
129  /**
130   * @return Card[]
131   */
132  public function getCards()
133  {
134    return $this->cards;
135  }
136  /**
137   * @param string
138   */
139  public function setCreateTime($createTime)
140  {
141    $this->createTime = $createTime;
142  }
143  /**
144   * @return string
145   */
146  public function getCreateTime()
147  {
148    return $this->createTime;
149  }
150  /**
151   * @param string
152   */
153  public function setFallbackText($fallbackText)
154  {
155    $this->fallbackText = $fallbackText;
156  }
157  /**
158   * @return string
159   */
160  public function getFallbackText()
161  {
162    return $this->fallbackText;
163  }
164  /**
165   * @param string
166   */
167  public function setLastUpdateTime($lastUpdateTime)
168  {
169    $this->lastUpdateTime = $lastUpdateTime;
170  }
171  /**
172   * @return string
173   */
174  public function getLastUpdateTime()
175  {
176    return $this->lastUpdateTime;
177  }
178  /**
179   * @param MatchedUrl
180   */
181  public function setMatchedUrl(MatchedUrl $matchedUrl)
182  {
183    $this->matchedUrl = $matchedUrl;
184  }
185  /**
186   * @return MatchedUrl
187   */
188  public function getMatchedUrl()
189  {
190    return $this->matchedUrl;
191  }
192  /**
193   * @param string
194   */
195  public function setName($name)
196  {
197    $this->name = $name;
198  }
199  /**
200   * @return string
201   */
202  public function getName()
203  {
204    return $this->name;
205  }
206  /**
207   * @param User
208   */
209  public function setSender(User $sender)
210  {
211    $this->sender = $sender;
212  }
213  /**
214   * @return User
215   */
216  public function getSender()
217  {
218    return $this->sender;
219  }
220  /**
221   * @param SlashCommand
222   */
223  public function setSlashCommand(SlashCommand $slashCommand)
224  {
225    $this->slashCommand = $slashCommand;
226  }
227  /**
228   * @return SlashCommand
229   */
230  public function getSlashCommand()
231  {
232    return $this->slashCommand;
233  }
234  /**
235   * @param Space
236   */
237  public function setSpace(Space $space)
238  {
239    $this->space = $space;
240  }
241  /**
242   * @return Space
243   */
244  public function getSpace()
245  {
246    return $this->space;
247  }
248  /**
249   * @param string
250   */
251  public function setText($text)
252  {
253    $this->text = $text;
254  }
255  /**
256   * @return string
257   */
258  public function getText()
259  {
260    return $this->text;
261  }
262  /**
263   * @param Thread
264   */
265  public function setThread(Thread $thread)
266  {
267    $this->thread = $thread;
268  }
269  /**
270   * @return Thread
271   */
272  public function getThread()
273  {
274    return $this->thread;
275  }
276}
277
278// Adding a class alias for backwards compatibility with the previous class name.
279class_alias(Message::class, 'Google_Service_HangoutsChat_Message');
280