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\Gmail; 19 20class FilterCriteria extends \Google\Model 21{ 22 /** 23 * @var bool 24 */ 25 public $excludeChats; 26 /** 27 * @var string 28 */ 29 public $from; 30 /** 31 * @var bool 32 */ 33 public $hasAttachment; 34 /** 35 * @var string 36 */ 37 public $negatedQuery; 38 /** 39 * @var string 40 */ 41 public $query; 42 /** 43 * @var int 44 */ 45 public $size; 46 /** 47 * @var string 48 */ 49 public $sizeComparison; 50 /** 51 * @var string 52 */ 53 public $subject; 54 /** 55 * @var string 56 */ 57 public $to; 58 59 /** 60 * @param bool 61 */ 62 public function setExcludeChats($excludeChats) 63 { 64 $this->excludeChats = $excludeChats; 65 } 66 /** 67 * @return bool 68 */ 69 public function getExcludeChats() 70 { 71 return $this->excludeChats; 72 } 73 /** 74 * @param string 75 */ 76 public function setFrom($from) 77 { 78 $this->from = $from; 79 } 80 /** 81 * @return string 82 */ 83 public function getFrom() 84 { 85 return $this->from; 86 } 87 /** 88 * @param bool 89 */ 90 public function setHasAttachment($hasAttachment) 91 { 92 $this->hasAttachment = $hasAttachment; 93 } 94 /** 95 * @return bool 96 */ 97 public function getHasAttachment() 98 { 99 return $this->hasAttachment; 100 } 101 /** 102 * @param string 103 */ 104 public function setNegatedQuery($negatedQuery) 105 { 106 $this->negatedQuery = $negatedQuery; 107 } 108 /** 109 * @return string 110 */ 111 public function getNegatedQuery() 112 { 113 return $this->negatedQuery; 114 } 115 /** 116 * @param string 117 */ 118 public function setQuery($query) 119 { 120 $this->query = $query; 121 } 122 /** 123 * @return string 124 */ 125 public function getQuery() 126 { 127 return $this->query; 128 } 129 /** 130 * @param int 131 */ 132 public function setSize($size) 133 { 134 $this->size = $size; 135 } 136 /** 137 * @return int 138 */ 139 public function getSize() 140 { 141 return $this->size; 142 } 143 /** 144 * @param string 145 */ 146 public function setSizeComparison($sizeComparison) 147 { 148 $this->sizeComparison = $sizeComparison; 149 } 150 /** 151 * @return string 152 */ 153 public function getSizeComparison() 154 { 155 return $this->sizeComparison; 156 } 157 /** 158 * @param string 159 */ 160 public function setSubject($subject) 161 { 162 $this->subject = $subject; 163 } 164 /** 165 * @return string 166 */ 167 public function getSubject() 168 { 169 return $this->subject; 170 } 171 /** 172 * @param string 173 */ 174 public function setTo($to) 175 { 176 $this->to = $to; 177 } 178 /** 179 * @return string 180 */ 181 public function getTo() 182 { 183 return $this->to; 184 } 185} 186 187// Adding a class alias for backwards compatibility with the previous class name. 188class_alias(FilterCriteria::class, 'Google_Service_Gmail_FilterCriteria'); 189