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\Pubsub;
|
---|
19 |
|
---|
20 | class Subscription extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var int
|
---|
24 | */
|
---|
25 | public $ackDeadlineSeconds;
|
---|
26 | protected $analyticsHubSubscriptionInfoType = AnalyticsHubSubscriptionInfo::class;
|
---|
27 | protected $analyticsHubSubscriptionInfoDataType = '';
|
---|
28 | protected $bigqueryConfigType = BigQueryConfig::class;
|
---|
29 | protected $bigqueryConfigDataType = '';
|
---|
30 | protected $cloudStorageConfigType = CloudStorageConfig::class;
|
---|
31 | protected $cloudStorageConfigDataType = '';
|
---|
32 | protected $deadLetterPolicyType = DeadLetterPolicy::class;
|
---|
33 | protected $deadLetterPolicyDataType = '';
|
---|
34 | /**
|
---|
35 | * @var bool
|
---|
36 | */
|
---|
37 | public $detached;
|
---|
38 | /**
|
---|
39 | * @var bool
|
---|
40 | */
|
---|
41 | public $enableExactlyOnceDelivery;
|
---|
42 | /**
|
---|
43 | * @var bool
|
---|
44 | */
|
---|
45 | public $enableMessageOrdering;
|
---|
46 | protected $expirationPolicyType = ExpirationPolicy::class;
|
---|
47 | protected $expirationPolicyDataType = '';
|
---|
48 | /**
|
---|
49 | * @var string
|
---|
50 | */
|
---|
51 | public $filter;
|
---|
52 | /**
|
---|
53 | * @var string[]
|
---|
54 | */
|
---|
55 | public $labels;
|
---|
56 | /**
|
---|
57 | * @var string
|
---|
58 | */
|
---|
59 | public $messageRetentionDuration;
|
---|
60 | /**
|
---|
61 | * @var string
|
---|
62 | */
|
---|
63 | public $name;
|
---|
64 | protected $pushConfigType = PushConfig::class;
|
---|
65 | protected $pushConfigDataType = '';
|
---|
66 | /**
|
---|
67 | * @var bool
|
---|
68 | */
|
---|
69 | public $retainAckedMessages;
|
---|
70 | protected $retryPolicyType = RetryPolicy::class;
|
---|
71 | protected $retryPolicyDataType = '';
|
---|
72 | /**
|
---|
73 | * @var string
|
---|
74 | */
|
---|
75 | public $state;
|
---|
76 | /**
|
---|
77 | * @var string
|
---|
78 | */
|
---|
79 | public $topic;
|
---|
80 | /**
|
---|
81 | * @var string
|
---|
82 | */
|
---|
83 | public $topicMessageRetentionDuration;
|
---|
84 |
|
---|
85 | /**
|
---|
86 | * @param int
|
---|
87 | */
|
---|
88 | public function setAckDeadlineSeconds($ackDeadlineSeconds)
|
---|
89 | {
|
---|
90 | $this->ackDeadlineSeconds = $ackDeadlineSeconds;
|
---|
91 | }
|
---|
92 | /**
|
---|
93 | * @return int
|
---|
94 | */
|
---|
95 | public function getAckDeadlineSeconds()
|
---|
96 | {
|
---|
97 | return $this->ackDeadlineSeconds;
|
---|
98 | }
|
---|
99 | /**
|
---|
100 | * @param AnalyticsHubSubscriptionInfo
|
---|
101 | */
|
---|
102 | public function setAnalyticsHubSubscriptionInfo(AnalyticsHubSubscriptionInfo $analyticsHubSubscriptionInfo)
|
---|
103 | {
|
---|
104 | $this->analyticsHubSubscriptionInfo = $analyticsHubSubscriptionInfo;
|
---|
105 | }
|
---|
106 | /**
|
---|
107 | * @return AnalyticsHubSubscriptionInfo
|
---|
108 | */
|
---|
109 | public function getAnalyticsHubSubscriptionInfo()
|
---|
110 | {
|
---|
111 | return $this->analyticsHubSubscriptionInfo;
|
---|
112 | }
|
---|
113 | /**
|
---|
114 | * @param BigQueryConfig
|
---|
115 | */
|
---|
116 | public function setBigqueryConfig(BigQueryConfig $bigqueryConfig)
|
---|
117 | {
|
---|
118 | $this->bigqueryConfig = $bigqueryConfig;
|
---|
119 | }
|
---|
120 | /**
|
---|
121 | * @return BigQueryConfig
|
---|
122 | */
|
---|
123 | public function getBigqueryConfig()
|
---|
124 | {
|
---|
125 | return $this->bigqueryConfig;
|
---|
126 | }
|
---|
127 | /**
|
---|
128 | * @param CloudStorageConfig
|
---|
129 | */
|
---|
130 | public function setCloudStorageConfig(CloudStorageConfig $cloudStorageConfig)
|
---|
131 | {
|
---|
132 | $this->cloudStorageConfig = $cloudStorageConfig;
|
---|
133 | }
|
---|
134 | /**
|
---|
135 | * @return CloudStorageConfig
|
---|
136 | */
|
---|
137 | public function getCloudStorageConfig()
|
---|
138 | {
|
---|
139 | return $this->cloudStorageConfig;
|
---|
140 | }
|
---|
141 | /**
|
---|
142 | * @param DeadLetterPolicy
|
---|
143 | */
|
---|
144 | public function setDeadLetterPolicy(DeadLetterPolicy $deadLetterPolicy)
|
---|
145 | {
|
---|
146 | $this->deadLetterPolicy = $deadLetterPolicy;
|
---|
147 | }
|
---|
148 | /**
|
---|
149 | * @return DeadLetterPolicy
|
---|
150 | */
|
---|
151 | public function getDeadLetterPolicy()
|
---|
152 | {
|
---|
153 | return $this->deadLetterPolicy;
|
---|
154 | }
|
---|
155 | /**
|
---|
156 | * @param bool
|
---|
157 | */
|
---|
158 | public function setDetached($detached)
|
---|
159 | {
|
---|
160 | $this->detached = $detached;
|
---|
161 | }
|
---|
162 | /**
|
---|
163 | * @return bool
|
---|
164 | */
|
---|
165 | public function getDetached()
|
---|
166 | {
|
---|
167 | return $this->detached;
|
---|
168 | }
|
---|
169 | /**
|
---|
170 | * @param bool
|
---|
171 | */
|
---|
172 | public function setEnableExactlyOnceDelivery($enableExactlyOnceDelivery)
|
---|
173 | {
|
---|
174 | $this->enableExactlyOnceDelivery = $enableExactlyOnceDelivery;
|
---|
175 | }
|
---|
176 | /**
|
---|
177 | * @return bool
|
---|
178 | */
|
---|
179 | public function getEnableExactlyOnceDelivery()
|
---|
180 | {
|
---|
181 | return $this->enableExactlyOnceDelivery;
|
---|
182 | }
|
---|
183 | /**
|
---|
184 | * @param bool
|
---|
185 | */
|
---|
186 | public function setEnableMessageOrdering($enableMessageOrdering)
|
---|
187 | {
|
---|
188 | $this->enableMessageOrdering = $enableMessageOrdering;
|
---|
189 | }
|
---|
190 | /**
|
---|
191 | * @return bool
|
---|
192 | */
|
---|
193 | public function getEnableMessageOrdering()
|
---|
194 | {
|
---|
195 | return $this->enableMessageOrdering;
|
---|
196 | }
|
---|
197 | /**
|
---|
198 | * @param ExpirationPolicy
|
---|
199 | */
|
---|
200 | public function setExpirationPolicy(ExpirationPolicy $expirationPolicy)
|
---|
201 | {
|
---|
202 | $this->expirationPolicy = $expirationPolicy;
|
---|
203 | }
|
---|
204 | /**
|
---|
205 | * @return ExpirationPolicy
|
---|
206 | */
|
---|
207 | public function getExpirationPolicy()
|
---|
208 | {
|
---|
209 | return $this->expirationPolicy;
|
---|
210 | }
|
---|
211 | /**
|
---|
212 | * @param string
|
---|
213 | */
|
---|
214 | public function setFilter($filter)
|
---|
215 | {
|
---|
216 | $this->filter = $filter;
|
---|
217 | }
|
---|
218 | /**
|
---|
219 | * @return string
|
---|
220 | */
|
---|
221 | public function getFilter()
|
---|
222 | {
|
---|
223 | return $this->filter;
|
---|
224 | }
|
---|
225 | /**
|
---|
226 | * @param string[]
|
---|
227 | */
|
---|
228 | public function setLabels($labels)
|
---|
229 | {
|
---|
230 | $this->labels = $labels;
|
---|
231 | }
|
---|
232 | /**
|
---|
233 | * @return string[]
|
---|
234 | */
|
---|
235 | public function getLabels()
|
---|
236 | {
|
---|
237 | return $this->labels;
|
---|
238 | }
|
---|
239 | /**
|
---|
240 | * @param string
|
---|
241 | */
|
---|
242 | public function setMessageRetentionDuration($messageRetentionDuration)
|
---|
243 | {
|
---|
244 | $this->messageRetentionDuration = $messageRetentionDuration;
|
---|
245 | }
|
---|
246 | /**
|
---|
247 | * @return string
|
---|
248 | */
|
---|
249 | public function getMessageRetentionDuration()
|
---|
250 | {
|
---|
251 | return $this->messageRetentionDuration;
|
---|
252 | }
|
---|
253 | /**
|
---|
254 | * @param string
|
---|
255 | */
|
---|
256 | public function setName($name)
|
---|
257 | {
|
---|
258 | $this->name = $name;
|
---|
259 | }
|
---|
260 | /**
|
---|
261 | * @return string
|
---|
262 | */
|
---|
263 | public function getName()
|
---|
264 | {
|
---|
265 | return $this->name;
|
---|
266 | }
|
---|
267 | /**
|
---|
268 | * @param PushConfig
|
---|
269 | */
|
---|
270 | public function setPushConfig(PushConfig $pushConfig)
|
---|
271 | {
|
---|
272 | $this->pushConfig = $pushConfig;
|
---|
273 | }
|
---|
274 | /**
|
---|
275 | * @return PushConfig
|
---|
276 | */
|
---|
277 | public function getPushConfig()
|
---|
278 | {
|
---|
279 | return $this->pushConfig;
|
---|
280 | }
|
---|
281 | /**
|
---|
282 | * @param bool
|
---|
283 | */
|
---|
284 | public function setRetainAckedMessages($retainAckedMessages)
|
---|
285 | {
|
---|
286 | $this->retainAckedMessages = $retainAckedMessages;
|
---|
287 | }
|
---|
288 | /**
|
---|
289 | * @return bool
|
---|
290 | */
|
---|
291 | public function getRetainAckedMessages()
|
---|
292 | {
|
---|
293 | return $this->retainAckedMessages;
|
---|
294 | }
|
---|
295 | /**
|
---|
296 | * @param RetryPolicy
|
---|
297 | */
|
---|
298 | public function setRetryPolicy(RetryPolicy $retryPolicy)
|
---|
299 | {
|
---|
300 | $this->retryPolicy = $retryPolicy;
|
---|
301 | }
|
---|
302 | /**
|
---|
303 | * @return RetryPolicy
|
---|
304 | */
|
---|
305 | public function getRetryPolicy()
|
---|
306 | {
|
---|
307 | return $this->retryPolicy;
|
---|
308 | }
|
---|
309 | /**
|
---|
310 | * @param string
|
---|
311 | */
|
---|
312 | public function setState($state)
|
---|
313 | {
|
---|
314 | $this->state = $state;
|
---|
315 | }
|
---|
316 | /**
|
---|
317 | * @return string
|
---|
318 | */
|
---|
319 | public function getState()
|
---|
320 | {
|
---|
321 | return $this->state;
|
---|
322 | }
|
---|
323 | /**
|
---|
324 | * @param string
|
---|
325 | */
|
---|
326 | public function setTopic($topic)
|
---|
327 | {
|
---|
328 | $this->topic = $topic;
|
---|
329 | }
|
---|
330 | /**
|
---|
331 | * @return string
|
---|
332 | */
|
---|
333 | public function getTopic()
|
---|
334 | {
|
---|
335 | return $this->topic;
|
---|
336 | }
|
---|
337 | /**
|
---|
338 | * @param string
|
---|
339 | */
|
---|
340 | public function setTopicMessageRetentionDuration($topicMessageRetentionDuration)
|
---|
341 | {
|
---|
342 | $this->topicMessageRetentionDuration = $topicMessageRetentionDuration;
|
---|
343 | }
|
---|
344 | /**
|
---|
345 | * @return string
|
---|
346 | */
|
---|
347 | public function getTopicMessageRetentionDuration()
|
---|
348 | {
|
---|
349 | return $this->topicMessageRetentionDuration;
|
---|
350 | }
|
---|
351 | }
|
---|
352 |
|
---|
353 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
354 | class_alias(Subscription::class, 'Google_Service_Pubsub_Subscription');
|
---|