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 |
|
---|
18 | namespace Google\Service\HangoutsChat;
|
---|
19 |
|
---|
20 | class Message extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'emojiReactionSummaries';
|
---|
23 | protected $accessoryWidgetsType = AccessoryWidget::class;
|
---|
24 | protected $accessoryWidgetsDataType = 'array';
|
---|
25 | protected $actionResponseType = ActionResponse::class;
|
---|
26 | protected $actionResponseDataType = '';
|
---|
27 | protected $annotationsType = Annotation::class;
|
---|
28 | protected $annotationsDataType = 'array';
|
---|
29 | /**
|
---|
30 | * @var string
|
---|
31 | */
|
---|
32 | public $argumentText;
|
---|
33 | protected $attachedGifsType = AttachedGif::class;
|
---|
34 | protected $attachedGifsDataType = 'array';
|
---|
35 | protected $attachmentType = Attachment::class;
|
---|
36 | protected $attachmentDataType = 'array';
|
---|
37 | protected $cardsType = Card::class;
|
---|
38 | protected $cardsDataType = 'array';
|
---|
39 | protected $cardsV2Type = CardWithId::class;
|
---|
40 | protected $cardsV2DataType = 'array';
|
---|
41 | /**
|
---|
42 | * @var string
|
---|
43 | */
|
---|
44 | public $clientAssignedMessageId;
|
---|
45 | /**
|
---|
46 | * @var string
|
---|
47 | */
|
---|
48 | public $createTime;
|
---|
49 | /**
|
---|
50 | * @var string
|
---|
51 | */
|
---|
52 | public $deleteTime;
|
---|
53 | protected $deletionMetadataType = DeletionMetadata::class;
|
---|
54 | protected $deletionMetadataDataType = '';
|
---|
55 | protected $emojiReactionSummariesType = EmojiReactionSummary::class;
|
---|
56 | protected $emojiReactionSummariesDataType = 'array';
|
---|
57 | /**
|
---|
58 | * @var string
|
---|
59 | */
|
---|
60 | public $fallbackText;
|
---|
61 | /**
|
---|
62 | * @var string
|
---|
63 | */
|
---|
64 | public $formattedText;
|
---|
65 | /**
|
---|
66 | * @var string
|
---|
67 | */
|
---|
68 | public $lastUpdateTime;
|
---|
69 | protected $matchedUrlType = MatchedUrl::class;
|
---|
70 | protected $matchedUrlDataType = '';
|
---|
71 | /**
|
---|
72 | * @var string
|
---|
73 | */
|
---|
74 | public $name;
|
---|
75 | protected $privateMessageViewerType = User::class;
|
---|
76 | protected $privateMessageViewerDataType = '';
|
---|
77 | protected $quotedMessageMetadataType = QuotedMessageMetadata::class;
|
---|
78 | protected $quotedMessageMetadataDataType = '';
|
---|
79 | protected $senderType = User::class;
|
---|
80 | protected $senderDataType = '';
|
---|
81 | protected $slashCommandType = SlashCommand::class;
|
---|
82 | protected $slashCommandDataType = '';
|
---|
83 | protected $spaceType = Space::class;
|
---|
84 | protected $spaceDataType = '';
|
---|
85 | /**
|
---|
86 | * @var string
|
---|
87 | */
|
---|
88 | public $text;
|
---|
89 | protected $threadType = Thread::class;
|
---|
90 | protected $threadDataType = '';
|
---|
91 | /**
|
---|
92 | * @var bool
|
---|
93 | */
|
---|
94 | public $threadReply;
|
---|
95 |
|
---|
96 | /**
|
---|
97 | * @param AccessoryWidget[]
|
---|
98 | */
|
---|
99 | public function setAccessoryWidgets($accessoryWidgets)
|
---|
100 | {
|
---|
101 | $this->accessoryWidgets = $accessoryWidgets;
|
---|
102 | }
|
---|
103 | /**
|
---|
104 | * @return AccessoryWidget[]
|
---|
105 | */
|
---|
106 | public function getAccessoryWidgets()
|
---|
107 | {
|
---|
108 | return $this->accessoryWidgets;
|
---|
109 | }
|
---|
110 | /**
|
---|
111 | * @param ActionResponse
|
---|
112 | */
|
---|
113 | public function setActionResponse(ActionResponse $actionResponse)
|
---|
114 | {
|
---|
115 | $this->actionResponse = $actionResponse;
|
---|
116 | }
|
---|
117 | /**
|
---|
118 | * @return ActionResponse
|
---|
119 | */
|
---|
120 | public function getActionResponse()
|
---|
121 | {
|
---|
122 | return $this->actionResponse;
|
---|
123 | }
|
---|
124 | /**
|
---|
125 | * @param Annotation[]
|
---|
126 | */
|
---|
127 | public function setAnnotations($annotations)
|
---|
128 | {
|
---|
129 | $this->annotations = $annotations;
|
---|
130 | }
|
---|
131 | /**
|
---|
132 | * @return Annotation[]
|
---|
133 | */
|
---|
134 | public function getAnnotations()
|
---|
135 | {
|
---|
136 | return $this->annotations;
|
---|
137 | }
|
---|
138 | /**
|
---|
139 | * @param string
|
---|
140 | */
|
---|
141 | public function setArgumentText($argumentText)
|
---|
142 | {
|
---|
143 | $this->argumentText = $argumentText;
|
---|
144 | }
|
---|
145 | /**
|
---|
146 | * @return string
|
---|
147 | */
|
---|
148 | public function getArgumentText()
|
---|
149 | {
|
---|
150 | return $this->argumentText;
|
---|
151 | }
|
---|
152 | /**
|
---|
153 | * @param AttachedGif[]
|
---|
154 | */
|
---|
155 | public function setAttachedGifs($attachedGifs)
|
---|
156 | {
|
---|
157 | $this->attachedGifs = $attachedGifs;
|
---|
158 | }
|
---|
159 | /**
|
---|
160 | * @return AttachedGif[]
|
---|
161 | */
|
---|
162 | public function getAttachedGifs()
|
---|
163 | {
|
---|
164 | return $this->attachedGifs;
|
---|
165 | }
|
---|
166 | /**
|
---|
167 | * @param Attachment[]
|
---|
168 | */
|
---|
169 | public function setAttachment($attachment)
|
---|
170 | {
|
---|
171 | $this->attachment = $attachment;
|
---|
172 | }
|
---|
173 | /**
|
---|
174 | * @return Attachment[]
|
---|
175 | */
|
---|
176 | public function getAttachment()
|
---|
177 | {
|
---|
178 | return $this->attachment;
|
---|
179 | }
|
---|
180 | /**
|
---|
181 | * @param Card[]
|
---|
182 | */
|
---|
183 | public function setCards($cards)
|
---|
184 | {
|
---|
185 | $this->cards = $cards;
|
---|
186 | }
|
---|
187 | /**
|
---|
188 | * @return Card[]
|
---|
189 | */
|
---|
190 | public function getCards()
|
---|
191 | {
|
---|
192 | return $this->cards;
|
---|
193 | }
|
---|
194 | /**
|
---|
195 | * @param CardWithId[]
|
---|
196 | */
|
---|
197 | public function setCardsV2($cardsV2)
|
---|
198 | {
|
---|
199 | $this->cardsV2 = $cardsV2;
|
---|
200 | }
|
---|
201 | /**
|
---|
202 | * @return CardWithId[]
|
---|
203 | */
|
---|
204 | public function getCardsV2()
|
---|
205 | {
|
---|
206 | return $this->cardsV2;
|
---|
207 | }
|
---|
208 | /**
|
---|
209 | * @param string
|
---|
210 | */
|
---|
211 | public function setClientAssignedMessageId($clientAssignedMessageId)
|
---|
212 | {
|
---|
213 | $this->clientAssignedMessageId = $clientAssignedMessageId;
|
---|
214 | }
|
---|
215 | /**
|
---|
216 | * @return string
|
---|
217 | */
|
---|
218 | public function getClientAssignedMessageId()
|
---|
219 | {
|
---|
220 | return $this->clientAssignedMessageId;
|
---|
221 | }
|
---|
222 | /**
|
---|
223 | * @param string
|
---|
224 | */
|
---|
225 | public function setCreateTime($createTime)
|
---|
226 | {
|
---|
227 | $this->createTime = $createTime;
|
---|
228 | }
|
---|
229 | /**
|
---|
230 | * @return string
|
---|
231 | */
|
---|
232 | public function getCreateTime()
|
---|
233 | {
|
---|
234 | return $this->createTime;
|
---|
235 | }
|
---|
236 | /**
|
---|
237 | * @param string
|
---|
238 | */
|
---|
239 | public function setDeleteTime($deleteTime)
|
---|
240 | {
|
---|
241 | $this->deleteTime = $deleteTime;
|
---|
242 | }
|
---|
243 | /**
|
---|
244 | * @return string
|
---|
245 | */
|
---|
246 | public function getDeleteTime()
|
---|
247 | {
|
---|
248 | return $this->deleteTime;
|
---|
249 | }
|
---|
250 | /**
|
---|
251 | * @param DeletionMetadata
|
---|
252 | */
|
---|
253 | public function setDeletionMetadata(DeletionMetadata $deletionMetadata)
|
---|
254 | {
|
---|
255 | $this->deletionMetadata = $deletionMetadata;
|
---|
256 | }
|
---|
257 | /**
|
---|
258 | * @return DeletionMetadata
|
---|
259 | */
|
---|
260 | public function getDeletionMetadata()
|
---|
261 | {
|
---|
262 | return $this->deletionMetadata;
|
---|
263 | }
|
---|
264 | /**
|
---|
265 | * @param EmojiReactionSummary[]
|
---|
266 | */
|
---|
267 | public function setEmojiReactionSummaries($emojiReactionSummaries)
|
---|
268 | {
|
---|
269 | $this->emojiReactionSummaries = $emojiReactionSummaries;
|
---|
270 | }
|
---|
271 | /**
|
---|
272 | * @return EmojiReactionSummary[]
|
---|
273 | */
|
---|
274 | public function getEmojiReactionSummaries()
|
---|
275 | {
|
---|
276 | return $this->emojiReactionSummaries;
|
---|
277 | }
|
---|
278 | /**
|
---|
279 | * @param string
|
---|
280 | */
|
---|
281 | public function setFallbackText($fallbackText)
|
---|
282 | {
|
---|
283 | $this->fallbackText = $fallbackText;
|
---|
284 | }
|
---|
285 | /**
|
---|
286 | * @return string
|
---|
287 | */
|
---|
288 | public function getFallbackText()
|
---|
289 | {
|
---|
290 | return $this->fallbackText;
|
---|
291 | }
|
---|
292 | /**
|
---|
293 | * @param string
|
---|
294 | */
|
---|
295 | public function setFormattedText($formattedText)
|
---|
296 | {
|
---|
297 | $this->formattedText = $formattedText;
|
---|
298 | }
|
---|
299 | /**
|
---|
300 | * @return string
|
---|
301 | */
|
---|
302 | public function getFormattedText()
|
---|
303 | {
|
---|
304 | return $this->formattedText;
|
---|
305 | }
|
---|
306 | /**
|
---|
307 | * @param string
|
---|
308 | */
|
---|
309 | public function setLastUpdateTime($lastUpdateTime)
|
---|
310 | {
|
---|
311 | $this->lastUpdateTime = $lastUpdateTime;
|
---|
312 | }
|
---|
313 | /**
|
---|
314 | * @return string
|
---|
315 | */
|
---|
316 | public function getLastUpdateTime()
|
---|
317 | {
|
---|
318 | return $this->lastUpdateTime;
|
---|
319 | }
|
---|
320 | /**
|
---|
321 | * @param MatchedUrl
|
---|
322 | */
|
---|
323 | public function setMatchedUrl(MatchedUrl $matchedUrl)
|
---|
324 | {
|
---|
325 | $this->matchedUrl = $matchedUrl;
|
---|
326 | }
|
---|
327 | /**
|
---|
328 | * @return MatchedUrl
|
---|
329 | */
|
---|
330 | public function getMatchedUrl()
|
---|
331 | {
|
---|
332 | return $this->matchedUrl;
|
---|
333 | }
|
---|
334 | /**
|
---|
335 | * @param string
|
---|
336 | */
|
---|
337 | public function setName($name)
|
---|
338 | {
|
---|
339 | $this->name = $name;
|
---|
340 | }
|
---|
341 | /**
|
---|
342 | * @return string
|
---|
343 | */
|
---|
344 | public function getName()
|
---|
345 | {
|
---|
346 | return $this->name;
|
---|
347 | }
|
---|
348 | /**
|
---|
349 | * @param User
|
---|
350 | */
|
---|
351 | public function setPrivateMessageViewer(User $privateMessageViewer)
|
---|
352 | {
|
---|
353 | $this->privateMessageViewer = $privateMessageViewer;
|
---|
354 | }
|
---|
355 | /**
|
---|
356 | * @return User
|
---|
357 | */
|
---|
358 | public function getPrivateMessageViewer()
|
---|
359 | {
|
---|
360 | return $this->privateMessageViewer;
|
---|
361 | }
|
---|
362 | /**
|
---|
363 | * @param QuotedMessageMetadata
|
---|
364 | */
|
---|
365 | public function setQuotedMessageMetadata(QuotedMessageMetadata $quotedMessageMetadata)
|
---|
366 | {
|
---|
367 | $this->quotedMessageMetadata = $quotedMessageMetadata;
|
---|
368 | }
|
---|
369 | /**
|
---|
370 | * @return QuotedMessageMetadata
|
---|
371 | */
|
---|
372 | public function getQuotedMessageMetadata()
|
---|
373 | {
|
---|
374 | return $this->quotedMessageMetadata;
|
---|
375 | }
|
---|
376 | /**
|
---|
377 | * @param User
|
---|
378 | */
|
---|
379 | public function setSender(User $sender)
|
---|
380 | {
|
---|
381 | $this->sender = $sender;
|
---|
382 | }
|
---|
383 | /**
|
---|
384 | * @return User
|
---|
385 | */
|
---|
386 | public function getSender()
|
---|
387 | {
|
---|
388 | return $this->sender;
|
---|
389 | }
|
---|
390 | /**
|
---|
391 | * @param SlashCommand
|
---|
392 | */
|
---|
393 | public function setSlashCommand(SlashCommand $slashCommand)
|
---|
394 | {
|
---|
395 | $this->slashCommand = $slashCommand;
|
---|
396 | }
|
---|
397 | /**
|
---|
398 | * @return SlashCommand
|
---|
399 | */
|
---|
400 | public function getSlashCommand()
|
---|
401 | {
|
---|
402 | return $this->slashCommand;
|
---|
403 | }
|
---|
404 | /**
|
---|
405 | * @param Space
|
---|
406 | */
|
---|
407 | public function setSpace(Space $space)
|
---|
408 | {
|
---|
409 | $this->space = $space;
|
---|
410 | }
|
---|
411 | /**
|
---|
412 | * @return Space
|
---|
413 | */
|
---|
414 | public function getSpace()
|
---|
415 | {
|
---|
416 | return $this->space;
|
---|
417 | }
|
---|
418 | /**
|
---|
419 | * @param string
|
---|
420 | */
|
---|
421 | public function setText($text)
|
---|
422 | {
|
---|
423 | $this->text = $text;
|
---|
424 | }
|
---|
425 | /**
|
---|
426 | * @return string
|
---|
427 | */
|
---|
428 | public function getText()
|
---|
429 | {
|
---|
430 | return $this->text;
|
---|
431 | }
|
---|
432 | /**
|
---|
433 | * @param Thread
|
---|
434 | */
|
---|
435 | public function setThread(Thread $thread)
|
---|
436 | {
|
---|
437 | $this->thread = $thread;
|
---|
438 | }
|
---|
439 | /**
|
---|
440 | * @return Thread
|
---|
441 | */
|
---|
442 | public function getThread()
|
---|
443 | {
|
---|
444 | return $this->thread;
|
---|
445 | }
|
---|
446 | /**
|
---|
447 | * @param bool
|
---|
448 | */
|
---|
449 | public function setThreadReply($threadReply)
|
---|
450 | {
|
---|
451 | $this->threadReply = $threadReply;
|
---|
452 | }
|
---|
453 | /**
|
---|
454 | * @return bool
|
---|
455 | */
|
---|
456 | public function getThreadReply()
|
---|
457 | {
|
---|
458 | return $this->threadReply;
|
---|
459 | }
|
---|
460 | }
|
---|
461 |
|
---|
462 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
463 | class_alias(Message::class, 'Google_Service_HangoutsChat_Message');
|
---|