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 18class Google_Service_FirebaseCloudMessaging_Message extends Google_Model 19{ 20 protected $androidType = 'Google_Service_FirebaseCloudMessaging_AndroidConfig'; 21 protected $androidDataType = ''; 22 protected $apnsType = 'Google_Service_FirebaseCloudMessaging_ApnsConfig'; 23 protected $apnsDataType = ''; 24 public $condition; 25 public $data; 26 public $name; 27 protected $notificationType = 'Google_Service_FirebaseCloudMessaging_Notification'; 28 protected $notificationDataType = ''; 29 public $token; 30 public $topic; 31 protected $webpushType = 'Google_Service_FirebaseCloudMessaging_WebpushConfig'; 32 protected $webpushDataType = ''; 33 34 /** 35 * @param Google_Service_FirebaseCloudMessaging_AndroidConfig 36 */ 37 public function setAndroid(Google_Service_FirebaseCloudMessaging_AndroidConfig $android) 38 { 39 $this->android = $android; 40 } 41 /** 42 * @return Google_Service_FirebaseCloudMessaging_AndroidConfig 43 */ 44 public function getAndroid() 45 { 46 return $this->android; 47 } 48 /** 49 * @param Google_Service_FirebaseCloudMessaging_ApnsConfig 50 */ 51 public function setApns(Google_Service_FirebaseCloudMessaging_ApnsConfig $apns) 52 { 53 $this->apns = $apns; 54 } 55 /** 56 * @return Google_Service_FirebaseCloudMessaging_ApnsConfig 57 */ 58 public function getApns() 59 { 60 return $this->apns; 61 } 62 public function setCondition($condition) 63 { 64 $this->condition = $condition; 65 } 66 public function getCondition() 67 { 68 return $this->condition; 69 } 70 public function setData($data) 71 { 72 $this->data = $data; 73 } 74 public function getData() 75 { 76 return $this->data; 77 } 78 public function setName($name) 79 { 80 $this->name = $name; 81 } 82 public function getName() 83 { 84 return $this->name; 85 } 86 /** 87 * @param Google_Service_FirebaseCloudMessaging_Notification 88 */ 89 public function setNotification(Google_Service_FirebaseCloudMessaging_Notification $notification) 90 { 91 $this->notification = $notification; 92 } 93 /** 94 * @return Google_Service_FirebaseCloudMessaging_Notification 95 */ 96 public function getNotification() 97 { 98 return $this->notification; 99 } 100 public function setToken($token) 101 { 102 $this->token = $token; 103 } 104 public function getToken() 105 { 106 return $this->token; 107 } 108 public function setTopic($topic) 109 { 110 $this->topic = $topic; 111 } 112 public function getTopic() 113 { 114 return $this->topic; 115 } 116 /** 117 * @param Google_Service_FirebaseCloudMessaging_WebpushConfig 118 */ 119 public function setWebpush(Google_Service_FirebaseCloudMessaging_WebpushConfig $webpush) 120 { 121 $this->webpush = $webpush; 122 } 123 /** 124 * @return Google_Service_FirebaseCloudMessaging_WebpushConfig 125 */ 126 public function getWebpush() 127 { 128 return $this->webpush; 129 } 130} 131