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 CloudStorageConfig extends \Google\Model
|
---|
21 | {
|
---|
22 | protected $avroConfigType = AvroConfig::class;
|
---|
23 | protected $avroConfigDataType = '';
|
---|
24 | /**
|
---|
25 | * @var string
|
---|
26 | */
|
---|
27 | public $bucket;
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $filenameDatetimeFormat;
|
---|
32 | /**
|
---|
33 | * @var string
|
---|
34 | */
|
---|
35 | public $filenamePrefix;
|
---|
36 | /**
|
---|
37 | * @var string
|
---|
38 | */
|
---|
39 | public $filenameSuffix;
|
---|
40 | /**
|
---|
41 | * @var string
|
---|
42 | */
|
---|
43 | public $maxBytes;
|
---|
44 | /**
|
---|
45 | * @var string
|
---|
46 | */
|
---|
47 | public $maxDuration;
|
---|
48 | /**
|
---|
49 | * @var string
|
---|
50 | */
|
---|
51 | public $maxMessages;
|
---|
52 | /**
|
---|
53 | * @var string
|
---|
54 | */
|
---|
55 | public $serviceAccountEmail;
|
---|
56 | /**
|
---|
57 | * @var string
|
---|
58 | */
|
---|
59 | public $state;
|
---|
60 | protected $textConfigType = TextConfig::class;
|
---|
61 | protected $textConfigDataType = '';
|
---|
62 |
|
---|
63 | /**
|
---|
64 | * @param AvroConfig
|
---|
65 | */
|
---|
66 | public function setAvroConfig(AvroConfig $avroConfig)
|
---|
67 | {
|
---|
68 | $this->avroConfig = $avroConfig;
|
---|
69 | }
|
---|
70 | /**
|
---|
71 | * @return AvroConfig
|
---|
72 | */
|
---|
73 | public function getAvroConfig()
|
---|
74 | {
|
---|
75 | return $this->avroConfig;
|
---|
76 | }
|
---|
77 | /**
|
---|
78 | * @param string
|
---|
79 | */
|
---|
80 | public function setBucket($bucket)
|
---|
81 | {
|
---|
82 | $this->bucket = $bucket;
|
---|
83 | }
|
---|
84 | /**
|
---|
85 | * @return string
|
---|
86 | */
|
---|
87 | public function getBucket()
|
---|
88 | {
|
---|
89 | return $this->bucket;
|
---|
90 | }
|
---|
91 | /**
|
---|
92 | * @param string
|
---|
93 | */
|
---|
94 | public function setFilenameDatetimeFormat($filenameDatetimeFormat)
|
---|
95 | {
|
---|
96 | $this->filenameDatetimeFormat = $filenameDatetimeFormat;
|
---|
97 | }
|
---|
98 | /**
|
---|
99 | * @return string
|
---|
100 | */
|
---|
101 | public function getFilenameDatetimeFormat()
|
---|
102 | {
|
---|
103 | return $this->filenameDatetimeFormat;
|
---|
104 | }
|
---|
105 | /**
|
---|
106 | * @param string
|
---|
107 | */
|
---|
108 | public function setFilenamePrefix($filenamePrefix)
|
---|
109 | {
|
---|
110 | $this->filenamePrefix = $filenamePrefix;
|
---|
111 | }
|
---|
112 | /**
|
---|
113 | * @return string
|
---|
114 | */
|
---|
115 | public function getFilenamePrefix()
|
---|
116 | {
|
---|
117 | return $this->filenamePrefix;
|
---|
118 | }
|
---|
119 | /**
|
---|
120 | * @param string
|
---|
121 | */
|
---|
122 | public function setFilenameSuffix($filenameSuffix)
|
---|
123 | {
|
---|
124 | $this->filenameSuffix = $filenameSuffix;
|
---|
125 | }
|
---|
126 | /**
|
---|
127 | * @return string
|
---|
128 | */
|
---|
129 | public function getFilenameSuffix()
|
---|
130 | {
|
---|
131 | return $this->filenameSuffix;
|
---|
132 | }
|
---|
133 | /**
|
---|
134 | * @param string
|
---|
135 | */
|
---|
136 | public function setMaxBytes($maxBytes)
|
---|
137 | {
|
---|
138 | $this->maxBytes = $maxBytes;
|
---|
139 | }
|
---|
140 | /**
|
---|
141 | * @return string
|
---|
142 | */
|
---|
143 | public function getMaxBytes()
|
---|
144 | {
|
---|
145 | return $this->maxBytes;
|
---|
146 | }
|
---|
147 | /**
|
---|
148 | * @param string
|
---|
149 | */
|
---|
150 | public function setMaxDuration($maxDuration)
|
---|
151 | {
|
---|
152 | $this->maxDuration = $maxDuration;
|
---|
153 | }
|
---|
154 | /**
|
---|
155 | * @return string
|
---|
156 | */
|
---|
157 | public function getMaxDuration()
|
---|
158 | {
|
---|
159 | return $this->maxDuration;
|
---|
160 | }
|
---|
161 | /**
|
---|
162 | * @param string
|
---|
163 | */
|
---|
164 | public function setMaxMessages($maxMessages)
|
---|
165 | {
|
---|
166 | $this->maxMessages = $maxMessages;
|
---|
167 | }
|
---|
168 | /**
|
---|
169 | * @return string
|
---|
170 | */
|
---|
171 | public function getMaxMessages()
|
---|
172 | {
|
---|
173 | return $this->maxMessages;
|
---|
174 | }
|
---|
175 | /**
|
---|
176 | * @param string
|
---|
177 | */
|
---|
178 | public function setServiceAccountEmail($serviceAccountEmail)
|
---|
179 | {
|
---|
180 | $this->serviceAccountEmail = $serviceAccountEmail;
|
---|
181 | }
|
---|
182 | /**
|
---|
183 | * @return string
|
---|
184 | */
|
---|
185 | public function getServiceAccountEmail()
|
---|
186 | {
|
---|
187 | return $this->serviceAccountEmail;
|
---|
188 | }
|
---|
189 | /**
|
---|
190 | * @param string
|
---|
191 | */
|
---|
192 | public function setState($state)
|
---|
193 | {
|
---|
194 | $this->state = $state;
|
---|
195 | }
|
---|
196 | /**
|
---|
197 | * @return string
|
---|
198 | */
|
---|
199 | public function getState()
|
---|
200 | {
|
---|
201 | return $this->state;
|
---|
202 | }
|
---|
203 | /**
|
---|
204 | * @param TextConfig
|
---|
205 | */
|
---|
206 | public function setTextConfig(TextConfig $textConfig)
|
---|
207 | {
|
---|
208 | $this->textConfig = $textConfig;
|
---|
209 | }
|
---|
210 | /**
|
---|
211 | * @return TextConfig
|
---|
212 | */
|
---|
213 | public function getTextConfig()
|
---|
214 | {
|
---|
215 | return $this->textConfig;
|
---|
216 | }
|
---|
217 | }
|
---|
218 |
|
---|
219 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
220 | class_alias(CloudStorageConfig::class, 'Google_Service_Pubsub_CloudStorageConfig');
|
---|