[e3d4e0a] | 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\AnalyticsHub;
|
---|
| 19 |
|
---|
| 20 | class GooglePubsubV1Subscription 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 $topicMessageRetentionDuration;
|
---|
| 80 |
|
---|
| 81 | /**
|
---|
| 82 | * @param int
|
---|
| 83 | */
|
---|
| 84 | public function setAckDeadlineSeconds($ackDeadlineSeconds)
|
---|
| 85 | {
|
---|
| 86 | $this->ackDeadlineSeconds = $ackDeadlineSeconds;
|
---|
| 87 | }
|
---|
| 88 | /**
|
---|
| 89 | * @return int
|
---|
| 90 | */
|
---|
| 91 | public function getAckDeadlineSeconds()
|
---|
| 92 | {
|
---|
| 93 | return $this->ackDeadlineSeconds;
|
---|
| 94 | }
|
---|
| 95 | /**
|
---|
| 96 | * @param AnalyticsHubSubscriptionInfo
|
---|
| 97 | */
|
---|
| 98 | public function setAnalyticsHubSubscriptionInfo(AnalyticsHubSubscriptionInfo $analyticsHubSubscriptionInfo)
|
---|
| 99 | {
|
---|
| 100 | $this->analyticsHubSubscriptionInfo = $analyticsHubSubscriptionInfo;
|
---|
| 101 | }
|
---|
| 102 | /**
|
---|
| 103 | * @return AnalyticsHubSubscriptionInfo
|
---|
| 104 | */
|
---|
| 105 | public function getAnalyticsHubSubscriptionInfo()
|
---|
| 106 | {
|
---|
| 107 | return $this->analyticsHubSubscriptionInfo;
|
---|
| 108 | }
|
---|
| 109 | /**
|
---|
| 110 | * @param BigQueryConfig
|
---|
| 111 | */
|
---|
| 112 | public function setBigqueryConfig(BigQueryConfig $bigqueryConfig)
|
---|
| 113 | {
|
---|
| 114 | $this->bigqueryConfig = $bigqueryConfig;
|
---|
| 115 | }
|
---|
| 116 | /**
|
---|
| 117 | * @return BigQueryConfig
|
---|
| 118 | */
|
---|
| 119 | public function getBigqueryConfig()
|
---|
| 120 | {
|
---|
| 121 | return $this->bigqueryConfig;
|
---|
| 122 | }
|
---|
| 123 | /**
|
---|
| 124 | * @param CloudStorageConfig
|
---|
| 125 | */
|
---|
| 126 | public function setCloudStorageConfig(CloudStorageConfig $cloudStorageConfig)
|
---|
| 127 | {
|
---|
| 128 | $this->cloudStorageConfig = $cloudStorageConfig;
|
---|
| 129 | }
|
---|
| 130 | /**
|
---|
| 131 | * @return CloudStorageConfig
|
---|
| 132 | */
|
---|
| 133 | public function getCloudStorageConfig()
|
---|
| 134 | {
|
---|
| 135 | return $this->cloudStorageConfig;
|
---|
| 136 | }
|
---|
| 137 | /**
|
---|
| 138 | * @param DeadLetterPolicy
|
---|
| 139 | */
|
---|
| 140 | public function setDeadLetterPolicy(DeadLetterPolicy $deadLetterPolicy)
|
---|
| 141 | {
|
---|
| 142 | $this->deadLetterPolicy = $deadLetterPolicy;
|
---|
| 143 | }
|
---|
| 144 | /**
|
---|
| 145 | * @return DeadLetterPolicy
|
---|
| 146 | */
|
---|
| 147 | public function getDeadLetterPolicy()
|
---|
| 148 | {
|
---|
| 149 | return $this->deadLetterPolicy;
|
---|
| 150 | }
|
---|
| 151 | /**
|
---|
| 152 | * @param bool
|
---|
| 153 | */
|
---|
| 154 | public function setDetached($detached)
|
---|
| 155 | {
|
---|
| 156 | $this->detached = $detached;
|
---|
| 157 | }
|
---|
| 158 | /**
|
---|
| 159 | * @return bool
|
---|
| 160 | */
|
---|
| 161 | public function getDetached()
|
---|
| 162 | {
|
---|
| 163 | return $this->detached;
|
---|
| 164 | }
|
---|
| 165 | /**
|
---|
| 166 | * @param bool
|
---|
| 167 | */
|
---|
| 168 | public function setEnableExactlyOnceDelivery($enableExactlyOnceDelivery)
|
---|
| 169 | {
|
---|
| 170 | $this->enableExactlyOnceDelivery = $enableExactlyOnceDelivery;
|
---|
| 171 | }
|
---|
| 172 | /**
|
---|
| 173 | * @return bool
|
---|
| 174 | */
|
---|
| 175 | public function getEnableExactlyOnceDelivery()
|
---|
| 176 | {
|
---|
| 177 | return $this->enableExactlyOnceDelivery;
|
---|
| 178 | }
|
---|
| 179 | /**
|
---|
| 180 | * @param bool
|
---|
| 181 | */
|
---|
| 182 | public function setEnableMessageOrdering($enableMessageOrdering)
|
---|
| 183 | {
|
---|
| 184 | $this->enableMessageOrdering = $enableMessageOrdering;
|
---|
| 185 | }
|
---|
| 186 | /**
|
---|
| 187 | * @return bool
|
---|
| 188 | */
|
---|
| 189 | public function getEnableMessageOrdering()
|
---|
| 190 | {
|
---|
| 191 | return $this->enableMessageOrdering;
|
---|
| 192 | }
|
---|
| 193 | /**
|
---|
| 194 | * @param ExpirationPolicy
|
---|
| 195 | */
|
---|
| 196 | public function setExpirationPolicy(ExpirationPolicy $expirationPolicy)
|
---|
| 197 | {
|
---|
| 198 | $this->expirationPolicy = $expirationPolicy;
|
---|
| 199 | }
|
---|
| 200 | /**
|
---|
| 201 | * @return ExpirationPolicy
|
---|
| 202 | */
|
---|
| 203 | public function getExpirationPolicy()
|
---|
| 204 | {
|
---|
| 205 | return $this->expirationPolicy;
|
---|
| 206 | }
|
---|
| 207 | /**
|
---|
| 208 | * @param string
|
---|
| 209 | */
|
---|
| 210 | public function setFilter($filter)
|
---|
| 211 | {
|
---|
| 212 | $this->filter = $filter;
|
---|
| 213 | }
|
---|
| 214 | /**
|
---|
| 215 | * @return string
|
---|
| 216 | */
|
---|
| 217 | public function getFilter()
|
---|
| 218 | {
|
---|
| 219 | return $this->filter;
|
---|
| 220 | }
|
---|
| 221 | /**
|
---|
| 222 | * @param string[]
|
---|
| 223 | */
|
---|
| 224 | public function setLabels($labels)
|
---|
| 225 | {
|
---|
| 226 | $this->labels = $labels;
|
---|
| 227 | }
|
---|
| 228 | /**
|
---|
| 229 | * @return string[]
|
---|
| 230 | */
|
---|
| 231 | public function getLabels()
|
---|
| 232 | {
|
---|
| 233 | return $this->labels;
|
---|
| 234 | }
|
---|
| 235 | /**
|
---|
| 236 | * @param string
|
---|
| 237 | */
|
---|
| 238 | public function setMessageRetentionDuration($messageRetentionDuration)
|
---|
| 239 | {
|
---|
| 240 | $this->messageRetentionDuration = $messageRetentionDuration;
|
---|
| 241 | }
|
---|
| 242 | /**
|
---|
| 243 | * @return string
|
---|
| 244 | */
|
---|
| 245 | public function getMessageRetentionDuration()
|
---|
| 246 | {
|
---|
| 247 | return $this->messageRetentionDuration;
|
---|
| 248 | }
|
---|
| 249 | /**
|
---|
| 250 | * @param string
|
---|
| 251 | */
|
---|
| 252 | public function setName($name)
|
---|
| 253 | {
|
---|
| 254 | $this->name = $name;
|
---|
| 255 | }
|
---|
| 256 | /**
|
---|
| 257 | * @return string
|
---|
| 258 | */
|
---|
| 259 | public function getName()
|
---|
| 260 | {
|
---|
| 261 | return $this->name;
|
---|
| 262 | }
|
---|
| 263 | /**
|
---|
| 264 | * @param PushConfig
|
---|
| 265 | */
|
---|
| 266 | public function setPushConfig(PushConfig $pushConfig)
|
---|
| 267 | {
|
---|
| 268 | $this->pushConfig = $pushConfig;
|
---|
| 269 | }
|
---|
| 270 | /**
|
---|
| 271 | * @return PushConfig
|
---|
| 272 | */
|
---|
| 273 | public function getPushConfig()
|
---|
| 274 | {
|
---|
| 275 | return $this->pushConfig;
|
---|
| 276 | }
|
---|
| 277 | /**
|
---|
| 278 | * @param bool
|
---|
| 279 | */
|
---|
| 280 | public function setRetainAckedMessages($retainAckedMessages)
|
---|
| 281 | {
|
---|
| 282 | $this->retainAckedMessages = $retainAckedMessages;
|
---|
| 283 | }
|
---|
| 284 | /**
|
---|
| 285 | * @return bool
|
---|
| 286 | */
|
---|
| 287 | public function getRetainAckedMessages()
|
---|
| 288 | {
|
---|
| 289 | return $this->retainAckedMessages;
|
---|
| 290 | }
|
---|
| 291 | /**
|
---|
| 292 | * @param RetryPolicy
|
---|
| 293 | */
|
---|
| 294 | public function setRetryPolicy(RetryPolicy $retryPolicy)
|
---|
| 295 | {
|
---|
| 296 | $this->retryPolicy = $retryPolicy;
|
---|
| 297 | }
|
---|
| 298 | /**
|
---|
| 299 | * @return RetryPolicy
|
---|
| 300 | */
|
---|
| 301 | public function getRetryPolicy()
|
---|
| 302 | {
|
---|
| 303 | return $this->retryPolicy;
|
---|
| 304 | }
|
---|
| 305 | /**
|
---|
| 306 | * @param string
|
---|
| 307 | */
|
---|
| 308 | public function setState($state)
|
---|
| 309 | {
|
---|
| 310 | $this->state = $state;
|
---|
| 311 | }
|
---|
| 312 | /**
|
---|
| 313 | * @return string
|
---|
| 314 | */
|
---|
| 315 | public function getState()
|
---|
| 316 | {
|
---|
| 317 | return $this->state;
|
---|
| 318 | }
|
---|
| 319 | /**
|
---|
| 320 | * @param string
|
---|
| 321 | */
|
---|
| 322 | public function setTopicMessageRetentionDuration($topicMessageRetentionDuration)
|
---|
| 323 | {
|
---|
| 324 | $this->topicMessageRetentionDuration = $topicMessageRetentionDuration;
|
---|
| 325 | }
|
---|
| 326 | /**
|
---|
| 327 | * @return string
|
---|
| 328 | */
|
---|
| 329 | public function getTopicMessageRetentionDuration()
|
---|
| 330 | {
|
---|
| 331 | return $this->topicMessageRetentionDuration;
|
---|
| 332 | }
|
---|
| 333 | }
|
---|
| 334 |
|
---|
| 335 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 336 | class_alias(GooglePubsubV1Subscription::class, 'Google_Service_AnalyticsHub_GooglePubsubV1Subscription');
|
---|