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\PostmasterTools;
|
---|
19 |
|
---|
20 | class TrafficStats extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'spammyFeedbackLoops';
|
---|
23 | protected $deliveryErrorsType = DeliveryError::class;
|
---|
24 | protected $deliveryErrorsDataType = 'array';
|
---|
25 | public $dkimSuccessRatio;
|
---|
26 | public $dmarcSuccessRatio;
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $domainReputation;
|
---|
31 | public $inboundEncryptionRatio;
|
---|
32 | protected $ipReputationsType = IpReputation::class;
|
---|
33 | protected $ipReputationsDataType = 'array';
|
---|
34 | /**
|
---|
35 | * @var string
|
---|
36 | */
|
---|
37 | public $name;
|
---|
38 | public $outboundEncryptionRatio;
|
---|
39 | protected $spammyFeedbackLoopsType = FeedbackLoop::class;
|
---|
40 | protected $spammyFeedbackLoopsDataType = 'array';
|
---|
41 | public $spfSuccessRatio;
|
---|
42 | public $userReportedSpamRatio;
|
---|
43 | public $userReportedSpamRatioLowerBound;
|
---|
44 | public $userReportedSpamRatioUpperBound;
|
---|
45 |
|
---|
46 | /**
|
---|
47 | * @param DeliveryError[]
|
---|
48 | */
|
---|
49 | public function setDeliveryErrors($deliveryErrors)
|
---|
50 | {
|
---|
51 | $this->deliveryErrors = $deliveryErrors;
|
---|
52 | }
|
---|
53 | /**
|
---|
54 | * @return DeliveryError[]
|
---|
55 | */
|
---|
56 | public function getDeliveryErrors()
|
---|
57 | {
|
---|
58 | return $this->deliveryErrors;
|
---|
59 | }
|
---|
60 | public function setDkimSuccessRatio($dkimSuccessRatio)
|
---|
61 | {
|
---|
62 | $this->dkimSuccessRatio = $dkimSuccessRatio;
|
---|
63 | }
|
---|
64 | public function getDkimSuccessRatio()
|
---|
65 | {
|
---|
66 | return $this->dkimSuccessRatio;
|
---|
67 | }
|
---|
68 | public function setDmarcSuccessRatio($dmarcSuccessRatio)
|
---|
69 | {
|
---|
70 | $this->dmarcSuccessRatio = $dmarcSuccessRatio;
|
---|
71 | }
|
---|
72 | public function getDmarcSuccessRatio()
|
---|
73 | {
|
---|
74 | return $this->dmarcSuccessRatio;
|
---|
75 | }
|
---|
76 | /**
|
---|
77 | * @param string
|
---|
78 | */
|
---|
79 | public function setDomainReputation($domainReputation)
|
---|
80 | {
|
---|
81 | $this->domainReputation = $domainReputation;
|
---|
82 | }
|
---|
83 | /**
|
---|
84 | * @return string
|
---|
85 | */
|
---|
86 | public function getDomainReputation()
|
---|
87 | {
|
---|
88 | return $this->domainReputation;
|
---|
89 | }
|
---|
90 | public function setInboundEncryptionRatio($inboundEncryptionRatio)
|
---|
91 | {
|
---|
92 | $this->inboundEncryptionRatio = $inboundEncryptionRatio;
|
---|
93 | }
|
---|
94 | public function getInboundEncryptionRatio()
|
---|
95 | {
|
---|
96 | return $this->inboundEncryptionRatio;
|
---|
97 | }
|
---|
98 | /**
|
---|
99 | * @param IpReputation[]
|
---|
100 | */
|
---|
101 | public function setIpReputations($ipReputations)
|
---|
102 | {
|
---|
103 | $this->ipReputations = $ipReputations;
|
---|
104 | }
|
---|
105 | /**
|
---|
106 | * @return IpReputation[]
|
---|
107 | */
|
---|
108 | public function getIpReputations()
|
---|
109 | {
|
---|
110 | return $this->ipReputations;
|
---|
111 | }
|
---|
112 | /**
|
---|
113 | * @param string
|
---|
114 | */
|
---|
115 | public function setName($name)
|
---|
116 | {
|
---|
117 | $this->name = $name;
|
---|
118 | }
|
---|
119 | /**
|
---|
120 | * @return string
|
---|
121 | */
|
---|
122 | public function getName()
|
---|
123 | {
|
---|
124 | return $this->name;
|
---|
125 | }
|
---|
126 | public function setOutboundEncryptionRatio($outboundEncryptionRatio)
|
---|
127 | {
|
---|
128 | $this->outboundEncryptionRatio = $outboundEncryptionRatio;
|
---|
129 | }
|
---|
130 | public function getOutboundEncryptionRatio()
|
---|
131 | {
|
---|
132 | return $this->outboundEncryptionRatio;
|
---|
133 | }
|
---|
134 | /**
|
---|
135 | * @param FeedbackLoop[]
|
---|
136 | */
|
---|
137 | public function setSpammyFeedbackLoops($spammyFeedbackLoops)
|
---|
138 | {
|
---|
139 | $this->spammyFeedbackLoops = $spammyFeedbackLoops;
|
---|
140 | }
|
---|
141 | /**
|
---|
142 | * @return FeedbackLoop[]
|
---|
143 | */
|
---|
144 | public function getSpammyFeedbackLoops()
|
---|
145 | {
|
---|
146 | return $this->spammyFeedbackLoops;
|
---|
147 | }
|
---|
148 | public function setSpfSuccessRatio($spfSuccessRatio)
|
---|
149 | {
|
---|
150 | $this->spfSuccessRatio = $spfSuccessRatio;
|
---|
151 | }
|
---|
152 | public function getSpfSuccessRatio()
|
---|
153 | {
|
---|
154 | return $this->spfSuccessRatio;
|
---|
155 | }
|
---|
156 | public function setUserReportedSpamRatio($userReportedSpamRatio)
|
---|
157 | {
|
---|
158 | $this->userReportedSpamRatio = $userReportedSpamRatio;
|
---|
159 | }
|
---|
160 | public function getUserReportedSpamRatio()
|
---|
161 | {
|
---|
162 | return $this->userReportedSpamRatio;
|
---|
163 | }
|
---|
164 | public function setUserReportedSpamRatioLowerBound($userReportedSpamRatioLowerBound)
|
---|
165 | {
|
---|
166 | $this->userReportedSpamRatioLowerBound = $userReportedSpamRatioLowerBound;
|
---|
167 | }
|
---|
168 | public function getUserReportedSpamRatioLowerBound()
|
---|
169 | {
|
---|
170 | return $this->userReportedSpamRatioLowerBound;
|
---|
171 | }
|
---|
172 | public function setUserReportedSpamRatioUpperBound($userReportedSpamRatioUpperBound)
|
---|
173 | {
|
---|
174 | $this->userReportedSpamRatioUpperBound = $userReportedSpamRatioUpperBound;
|
---|
175 | }
|
---|
176 | public function getUserReportedSpamRatioUpperBound()
|
---|
177 | {
|
---|
178 | return $this->userReportedSpamRatioUpperBound;
|
---|
179 | }
|
---|
180 | }
|
---|
181 |
|
---|
182 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
183 | class_alias(TrafficStats::class, 'Google_Service_PostmasterTools_TrafficStats');
|
---|