Merge lp:~ubuntuone-control-tower/ubuntu/lucid/ubuntuone-storage-protocol/trunk into lp:ubuntu/lucid/ubuntuone-storage-protocol
- Lucid (10.04)
- trunk
- Merge into lucid
Proposed by
dobey
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~ubuntuone-control-tower/ubuntu/lucid/ubuntuone-storage-protocol/trunk |
Merge into: | lp:ubuntu/lucid/ubuntuone-storage-protocol |
Diff against target: |
2775 lines (+430/-2164) 8 files modified
PKG-INFO (+1/-1) debian/changelog (+8/-0) debian/control (+1/-2) setup.py (+1/-1) tests/test_throttling.py (+314/-7) ubuntuone/storageprotocol/client.py (+105/-30) ubuntuone/storageprotocol/dircontent_pb2.py (+0/-105) ubuntuone/storageprotocol/protocol_pb2.py (+0/-2018) |
To merge this branch: | bzr merge lp:~ubuntuone-control-tower/ubuntu/lucid/ubuntuone-storage-protocol/trunk |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu branches | Pending | ||
Review via email: mp+20665@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
- 12. By James Westby
-
New upstream release.
- 13. By James Westby
-
Upload to lucid.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'PKG-INFO' | |||
2 | --- PKG-INFO 2010-02-17 23:23:52 +0000 | |||
3 | +++ PKG-INFO 2010-03-04 17:22:18 +0000 | |||
4 | @@ -1,6 +1,6 @@ | |||
5 | 1 | Metadata-Version: 1.0 | 1 | Metadata-Version: 1.0 |
6 | 2 | Name: ubuntuone-storage-protocol | 2 | Name: ubuntuone-storage-protocol |
8 | 3 | Version: 1.1.2 | 3 | Version: 1.1.3 |
9 | 4 | Summary: UNKNOWN | 4 | Summary: UNKNOWN |
10 | 5 | Home-page: UNKNOWN | 5 | Home-page: UNKNOWN |
11 | 6 | Author: UNKNOWN | 6 | Author: UNKNOWN |
12 | 7 | 7 | ||
13 | === modified file 'debian/changelog' | |||
14 | --- debian/changelog 2010-02-18 03:23:01 +0000 | |||
15 | +++ debian/changelog 2010-03-04 17:22:18 +0000 | |||
16 | @@ -1,3 +1,11 @@ | |||
17 | 1 | ubuntuone-storage-protocol (1.1.3-0ubuntu1) UNRELEASED; urgency=low | ||
18 | 2 | |||
19 | 3 | * New upstream release. | ||
20 | 4 | * Remove Vcs-Bzr and sync with ubuntu pkg branch | ||
21 | 5 | * Update homepage URL | ||
22 | 6 | |||
23 | 7 | -- Rodney Dawes <rodney.dawes@canonical.com> Thu, 04 Mar 2010 11:16:34 -0500 | ||
24 | 8 | |||
25 | 1 | ubuntuone-storage-protocol (1.1.2-0ubuntu1) lucid; urgency=low | 9 | ubuntuone-storage-protocol (1.1.2-0ubuntu1) lucid; urgency=low |
26 | 2 | 10 | ||
27 | 3 | * New upstream release. | 11 | * New upstream release. |
28 | 4 | 12 | ||
29 | === modified file 'debian/control' | |||
30 | --- debian/control 2009-12-07 17:00:00 +0000 | |||
31 | +++ debian/control 2010-03-04 17:22:18 +0000 | |||
32 | @@ -12,8 +12,7 @@ | |||
33 | 12 | python-twisted-core, | 12 | python-twisted-core, |
34 | 13 | python-oauth (>= 1.0~svn1092) | 13 | python-oauth (>= 1.0~svn1092) |
35 | 14 | Standards-Version: 3.8.3 | 14 | Standards-Version: 3.8.3 |
38 | 15 | Homepage: https://ubuntuone.com | 15 | Homepage: https://one.ubuntu.com |
37 | 16 | Vcs-Bzr: https://code.launchpad.net/~ubuntuone-control-tower/ubuntu/lucid/ubuntuone-storage-protocol/trunk | ||
39 | 17 | 16 | ||
40 | 18 | Package: python-ubuntuone-storageprotocol | 17 | Package: python-ubuntuone-storageprotocol |
41 | 19 | Architecture: all | 18 | Architecture: all |
42 | 20 | 19 | ||
43 | === modified file 'setup.py' | |||
44 | --- setup.py 2010-02-17 23:23:52 +0000 | |||
45 | +++ setup.py 2010-03-04 17:22:18 +0000 | |||
46 | @@ -119,7 +119,7 @@ | |||
47 | 119 | 119 | ||
48 | 120 | 120 | ||
49 | 121 | setup(name='ubuntuone-storage-protocol', | 121 | setup(name='ubuntuone-storage-protocol', |
51 | 122 | version='1.1.2', | 122 | version='1.1.3', |
52 | 123 | packages=['ubuntuone', | 123 | packages=['ubuntuone', |
53 | 124 | 'ubuntuone.storageprotocol'], | 124 | 'ubuntuone.storageprotocol'], |
54 | 125 | data_files=[('/etc/ssl/certs', | 125 | data_files=[('/etc/ssl/certs', |
55 | 126 | 126 | ||
56 | === modified file 'tests/test_throttling.py' | |||
57 | --- tests/test_throttling.py 2010-02-17 23:23:52 +0000 | |||
58 | +++ tests/test_throttling.py 2010-03-04 17:22:18 +0000 | |||
59 | @@ -25,6 +25,7 @@ | |||
60 | 25 | 25 | ||
61 | 26 | from ubuntuone.storageprotocol import client | 26 | from ubuntuone.storageprotocol import client |
62 | 27 | 27 | ||
63 | 28 | |||
64 | 28 | class FakeClient(object): | 29 | class FakeClient(object): |
65 | 29 | """Fake a Client class that is handy for tests.""" | 30 | """Fake a Client class that is handy for tests.""" |
66 | 30 | 31 | ||
67 | @@ -55,7 +56,7 @@ | |||
68 | 55 | self.client = FakeClient() | 56 | self.client = FakeClient() |
69 | 56 | self.factories = [] | 57 | self.factories = [] |
70 | 57 | self.clock = task.Clock() | 58 | self.clock = task.Clock() |
72 | 58 | # use task.Clock instead of the reactor for the callLater | 59 | # use our custom clock instead of the reactor for the callLater |
73 | 59 | self.old_callLater = client.ThrottlingStorageClientFactory.callLater | 60 | self.old_callLater = client.ThrottlingStorageClientFactory.callLater |
74 | 60 | client.ThrottlingStorageClientFactory.callLater = self.clock.callLater | 61 | client.ThrottlingStorageClientFactory.callLater = self.clock.callLater |
75 | 61 | 62 | ||
76 | @@ -64,22 +65,26 @@ | |||
77 | 64 | f.unregisterProtocol(None) | 65 | f.unregisterProtocol(None) |
78 | 65 | client.ThrottlingStorageClientFactory.callLater = self.old_callLater | 66 | client.ThrottlingStorageClientFactory.callLater = self.old_callLater |
79 | 66 | 67 | ||
81 | 67 | def create_factory(self, read_limit, write_limit): | 68 | def create_factory(self, enabled, read_limit, write_limit): |
82 | 68 | """Create a ThrottlingStorageClientFactory with the specified args.""" | 69 | """Create a ThrottlingStorageClientFactory with the specified args.""" |
84 | 69 | tscf = client.ThrottlingStorageClientFactory(read_limit, write_limit) | 70 | tscf = client.ThrottlingStorageClientFactory(enabled, read_limit, |
85 | 71 | write_limit) | ||
86 | 70 | tscf.client = self.client | 72 | tscf.client = self.client |
87 | 71 | self.factories.append(tscf) | 73 | self.factories.append(tscf) |
88 | 72 | return tscf | 74 | return tscf |
89 | 73 | 75 | ||
90 | 76 | def destroy_factory(self, factory): | ||
91 | 77 | """Turn off a factory and delete it form self.factories.""" | ||
92 | 78 | del self.factories[self.factories.index(factory)] | ||
93 | 79 | factory.unregisterProtocol(None) | ||
94 | 80 | |||
95 | 74 | 81 | ||
96 | 75 | class TestProducingState(BaseThrottlingTestCase): | 82 | class TestProducingState(BaseThrottlingTestCase): |
100 | 76 | """Test for filename validation and normalization.""" | 83 | """Tests for 'producing' state with different limit values.""" |
98 | 77 | |||
99 | 78 | timeout = 5 | ||
101 | 79 | 84 | ||
102 | 80 | def setUp(self): | 85 | def setUp(self): |
103 | 81 | BaseThrottlingTestCase.setUp(self) | 86 | BaseThrottlingTestCase.setUp(self) |
105 | 82 | self.tscf = self.create_factory(3, 3) | 87 | self.tscf = self.create_factory(True, 3, 3) |
106 | 83 | 88 | ||
107 | 84 | def test_under_write_limit(self): | 89 | def test_under_write_limit(self): |
108 | 85 | """Don't pas the write limit, no event.""" | 90 | """Don't pas the write limit, no event.""" |
109 | @@ -151,3 +156,305 @@ | |||
110 | 151 | self.clock.advance(2) | 156 | self.clock.advance(2) |
111 | 152 | self.assertEqual(self.client.events, ["thR", "unthR"]) | 157 | self.assertEqual(self.client.events, ["thR", "unthR"]) |
112 | 153 | 158 | ||
113 | 159 | |||
114 | 160 | class TestLimitValuesInitialization(BaseThrottlingTestCase): | ||
115 | 161 | """Test read/write limit values.""" | ||
116 | 162 | |||
117 | 163 | def _test_inactive_limits(self, read_limit, write_limit): | ||
118 | 164 | """Test read_limit and write_limit with throttling enabled.""" | ||
119 | 165 | def check(tscf): | ||
120 | 166 | """Check that there is no delayed calls nor events.""" | ||
121 | 167 | self.assertEquals(2, len(self.clock.getDelayedCalls())) | ||
122 | 168 | self.assertNotEquals(None, tscf.resetReadThisSecondID) | ||
123 | 169 | self.assertEquals(None, tscf.unthrottleReadsID) | ||
124 | 170 | self.assertNotEquals(None, tscf.resetWriteThisSecondID) | ||
125 | 171 | self.assertEquals(None, tscf.unthrottleWritesID) | ||
126 | 172 | self.assertEqual(self.client.events, []) | ||
127 | 173 | tscf = self.create_factory(True, read_limit, write_limit) | ||
128 | 174 | check(tscf) | ||
129 | 175 | self.clock.advance(1.1) | ||
130 | 176 | check(tscf) | ||
131 | 177 | |||
132 | 178 | def test_both_None(self): | ||
133 | 179 | """Test for both limits None.""" | ||
134 | 180 | self._test_inactive_limits(None, None) | ||
135 | 181 | |||
136 | 182 | def test_limits_0(self): | ||
137 | 183 | """Test for both limits 0.""" | ||
138 | 184 | self.assertRaises(ValueError, self._test_inactive_limits, 0, 0) | ||
139 | 185 | self.assertRaises(ValueError, self._test_inactive_limits, 1, 0) | ||
140 | 186 | self.assertRaises(ValueError, self._test_inactive_limits, 0, 1) | ||
141 | 187 | |||
142 | 188 | def test_both_negative(self): | ||
143 | 189 | """Test for both limits -1.""" | ||
144 | 190 | self.assertRaises(ValueError, self._test_inactive_limits, -1, -1) | ||
145 | 191 | |||
146 | 192 | def test_read_2_write_None(self): | ||
147 | 193 | """Test "off" writeLimit value and throttling enabled.""" | ||
148 | 194 | tscf = self.create_factory(True, 2, None) | ||
149 | 195 | # check that resetReadThisSecondID is running | ||
150 | 196 | self.assertEquals(2, len(self.clock.getDelayedCalls())) | ||
151 | 197 | self.assertNotEquals(None, tscf.resetReadThisSecondID) | ||
152 | 198 | self.assertEquals(None, tscf.unthrottleReadsID) | ||
153 | 199 | self.assertNotEquals(None, tscf.resetWriteThisSecondID) | ||
154 | 200 | self.assertEquals(None, tscf.unthrottleWritesID) | ||
155 | 201 | tscf.registerRead(4) | ||
156 | 202 | self.clock.advance(0.5) | ||
157 | 203 | self.assertEqual(self.client.events, ["thR"]) | ||
158 | 204 | self.assertNotEquals(None, tscf.resetReadThisSecondID) | ||
159 | 205 | self.assertNotEquals(None, tscf.unthrottleReadsID) | ||
160 | 206 | |||
161 | 207 | def test_read_None_write_2(self): | ||
162 | 208 | """Test "off" readLimit value and throttling enabled.""" | ||
163 | 209 | tscf = self.create_factory(True, None, 2) | ||
164 | 210 | # check that resetWriteThisSecondID is running | ||
165 | 211 | self.assertEquals(2, len(self.clock.getDelayedCalls())) | ||
166 | 212 | self.assertNotEquals(None, tscf.resetReadThisSecondID) | ||
167 | 213 | self.assertEquals(None, tscf.unthrottleReadsID) | ||
168 | 214 | self.assertNotEquals(None, tscf.resetWriteThisSecondID) | ||
169 | 215 | self.assertEquals(None, tscf.unthrottleWritesID) | ||
170 | 216 | tscf.registerWritten(4) | ||
171 | 217 | self.clock.advance(0.5) | ||
172 | 218 | self.assertEqual(self.client.events, ["thW"]) | ||
173 | 219 | self.assertNotEquals(None, tscf.resetWriteThisSecondID) | ||
174 | 220 | self.assertNotEquals(None, tscf.unthrottleWritesID) | ||
175 | 221 | |||
176 | 222 | def test_change_to_inavlid(self): | ||
177 | 223 | """Test setting invalid limit values after initialization.""" | ||
178 | 224 | # yes, this is a unittest, I need to access protected members | ||
179 | 225 | # pylint: disable-msg=W0212 | ||
180 | 226 | tscf = self.create_factory(True, 2, 2) | ||
181 | 227 | self.assertRaises(ValueError, tscf._set_read_limit, -1) | ||
182 | 228 | self.assertRaises(ValueError, tscf._set_write_limit, -1) | ||
183 | 229 | |||
184 | 230 | |||
185 | 231 | class TestResetLoops(BaseThrottlingTestCase): | ||
186 | 232 | """Test the read/writeThisSecond reset loops.""" | ||
187 | 233 | |||
188 | 234 | def test_read_this_second_loop(self): | ||
189 | 235 | """Test the reset loop for reads""" | ||
190 | 236 | tscf = self.create_factory(True, 4, 4) | ||
191 | 237 | tscf.registerRead(4) | ||
192 | 238 | self.assertEquals(4, tscf.readThisSecond) | ||
193 | 239 | self.clock.advance(1) | ||
194 | 240 | self.assertEquals(0, tscf.readThisSecond) | ||
195 | 241 | |||
196 | 242 | def test_write_this_second_loop(self): | ||
197 | 243 | """Test the reset loop for writes""" | ||
198 | 244 | tscf = self.create_factory(True, 4, 4) | ||
199 | 245 | tscf.registerWritten(4) | ||
200 | 246 | self.assertEquals(4, tscf.writtenThisSecond) | ||
201 | 247 | self.clock.advance(1) | ||
202 | 248 | self.assertEquals(0, tscf.writtenThisSecond) | ||
203 | 249 | |||
204 | 250 | |||
205 | 251 | class TestCheckBandwidth(BaseThrottlingTestCase): | ||
206 | 252 | """Test the check[Read|Write]Bandwidth methods.""" | ||
207 | 253 | |||
208 | 254 | def _test_with_limits(self, read, write): | ||
209 | 255 | """Test the check[Read|Wrte]Bandwidth using read and write limits.""" | ||
210 | 256 | tscf = self.create_factory(True, read, write) | ||
211 | 257 | tscf.registerRead(4) | ||
212 | 258 | tscf.registerWritten(4) | ||
213 | 259 | self.assertEquals(4, tscf.readThisSecond) | ||
214 | 260 | self.assertEquals(4, tscf.writtenThisSecond) | ||
215 | 261 | self.assertEquals(None, tscf.unthrottleReadsID) | ||
216 | 262 | self.assertEquals(None, tscf.unthrottleReadsID) | ||
217 | 263 | self.clock.advance(1) | ||
218 | 264 | self.assertEquals(None, tscf.unthrottleReadsID) | ||
219 | 265 | self.assertEquals(None, tscf.unthrottleWritesID) | ||
220 | 266 | self.assertEquals(0, tscf.readThisSecond) | ||
221 | 267 | self.assertEquals(0, tscf.writtenThisSecond) | ||
222 | 268 | |||
223 | 269 | def test_limits_0(self): | ||
224 | 270 | """Test the check[Read|Wrte]Bandwidth with both = 0.""" | ||
225 | 271 | self.assertRaises(ValueError, self._test_with_limits, 0, 0) | ||
226 | 272 | self.assertRaises(ValueError, self._test_with_limits, 1, 0) | ||
227 | 273 | self.assertRaises(ValueError, self._test_with_limits, 0, 1) | ||
228 | 274 | |||
229 | 275 | def test_limits_None(self): | ||
230 | 276 | """Test the check[Read|Wrte]Bandwidth with both = None.""" | ||
231 | 277 | self._test_with_limits(None, None) | ||
232 | 278 | |||
233 | 279 | def test_positive_limits(self): | ||
234 | 280 | """Test the check[Read|Wrte]Bandwidth with both > 0.""" | ||
235 | 281 | tscf = self.create_factory(True, 2, 2) | ||
236 | 282 | tscf.registerRead(4) | ||
237 | 283 | tscf.registerWritten(4) | ||
238 | 284 | self.assertEquals(4, tscf.readThisSecond) | ||
239 | 285 | self.assertEquals(4, tscf.writtenThisSecond) | ||
240 | 286 | self.assertNotEquals(None, tscf.unthrottleReadsID) | ||
241 | 287 | self.assertNotEquals(None, tscf.unthrottleReadsID) | ||
242 | 288 | self.clock.advance(.9) | ||
243 | 289 | self.assertNotEquals(None, tscf.unthrottleReadsID) | ||
244 | 290 | self.assertNotEquals(None, tscf.unthrottleReadsID) | ||
245 | 291 | self.clock.advance(.1) | ||
246 | 292 | self.assertEquals(0, tscf.readThisSecond) | ||
247 | 293 | self.assertEquals(0, tscf.writtenThisSecond) | ||
248 | 294 | self.assertEquals(None, tscf.unthrottleReadsID) | ||
249 | 295 | self.assertEquals(None, tscf.unthrottleWritesID) | ||
250 | 296 | |||
251 | 297 | |||
252 | 298 | class TestThrottlingLimits(BaseThrottlingTestCase): | ||
253 | 299 | """Test read/write limit behaviour and changes in runtime.""" | ||
254 | 300 | |||
255 | 301 | def test_limit_None_then_gt_0(self): | ||
256 | 302 | """Test both None and change it to > 0.""" | ||
257 | 303 | def check(tscf, events=None, delayed_calls=2): | ||
258 | 304 | """Check that there is no delayed calls nor events.""" | ||
259 | 305 | self.assertEquals(delayed_calls, len(self.clock.getDelayedCalls())) | ||
260 | 306 | self.assertEqual(self.client.events, events or []) | ||
261 | 307 | tscf = self.create_factory(True, None, None) | ||
262 | 308 | self.clock.advance(1.1) | ||
263 | 309 | check(tscf) | ||
264 | 310 | tscf.readLimit = 2 | ||
265 | 311 | tscf.writeLimit = 2 | ||
266 | 312 | tscf.registerRead(4) | ||
267 | 313 | tscf.registerWritten(4) | ||
268 | 314 | self.clock.advance(0.9) | ||
269 | 315 | expected_events = ['thR', 'thW'] | ||
270 | 316 | check(tscf, delayed_calls=4, events=expected_events) | ||
271 | 317 | self.clock.advance(1) | ||
272 | 318 | expected_events += ['unthR', 'unthW'] | ||
273 | 319 | check(tscf, events=expected_events) | ||
274 | 320 | self.clock.advance(1.1) | ||
275 | 321 | check(tscf, events=expected_events) | ||
276 | 322 | tscf.registerRead(4) | ||
277 | 323 | tscf.registerWritten(4) | ||
278 | 324 | expected_events += ['thR', 'thW'] | ||
279 | 325 | check(tscf, delayed_calls=4, events=expected_events) | ||
280 | 326 | self.clock.advance(.9) | ||
281 | 327 | check(tscf, delayed_calls=4, events=expected_events) | ||
282 | 328 | self.clock.advance(.1) | ||
283 | 329 | expected_events += ['unthR', 'unthW'] | ||
284 | 330 | check(tscf, delayed_calls=2, events=expected_events) | ||
285 | 331 | tscf.registerRead(1) | ||
286 | 332 | tscf.registerWritten(1) | ||
287 | 333 | check(tscf, delayed_calls=2, events=expected_events) | ||
288 | 334 | |||
289 | 335 | def test_read_2_write_None(self): | ||
290 | 336 | """Test readLimit > 0 and writeLimit = None""" | ||
291 | 337 | tscf = self.create_factory(True, 2, None) | ||
292 | 338 | # check that resetReadThisSecondID is running | ||
293 | 339 | self.assertEquals(2, len(self.clock.getDelayedCalls())) | ||
294 | 340 | tscf.registerRead(4) | ||
295 | 341 | self.clock.advance(0.9) | ||
296 | 342 | expected_events = ['thR'] | ||
297 | 343 | self.assertEqual(self.client.events, expected_events) | ||
298 | 344 | self.clock.advance(0.9) | ||
299 | 345 | expected_events += ['unthR'] | ||
300 | 346 | self.assertEqual(self.client.events, expected_events) | ||
301 | 347 | self.clock.advance(.1) | ||
302 | 348 | self.assertEqual(self.client.events, expected_events) | ||
303 | 349 | # single throttling | ||
304 | 350 | tscf.registerRead(2) | ||
305 | 351 | self.clock.advance(0.1) | ||
306 | 352 | expected_events += ['thR', 'unthR'] | ||
307 | 353 | self.assertEqual(self.client.events, expected_events) | ||
308 | 354 | |||
309 | 355 | def test_read_None_write_2(self): | ||
310 | 356 | """Test readLimit = None and writeLimit > 0""" | ||
311 | 357 | tscf = self.create_factory(True, None, 2) | ||
312 | 358 | # check that resetReadThisSecondID is running | ||
313 | 359 | self.assertEquals(2, len(self.clock.getDelayedCalls())) | ||
314 | 360 | tscf.registerWritten(4) | ||
315 | 361 | self.clock.advance(0.9) | ||
316 | 362 | expected_events = ['thW'] | ||
317 | 363 | self.assertEqual(self.client.events, expected_events) | ||
318 | 364 | self.clock.advance(0.9) | ||
319 | 365 | expected_events += ['unthW'] | ||
320 | 366 | self.assertEqual(self.client.events, expected_events) | ||
321 | 367 | self.clock.advance(.1) | ||
322 | 368 | self.assertEqual(self.client.events, expected_events) | ||
323 | 369 | # single throttling (trigger a callLater(0, ..) | ||
324 | 370 | tscf.registerWritten(2) | ||
325 | 371 | self.clock.advance(0.1) | ||
326 | 372 | expected_events += ['thW', 'unthW'] | ||
327 | 373 | self.assertEqual(self.client.events, expected_events) | ||
328 | 374 | |||
329 | 375 | def test_change_read_to_None(self): | ||
330 | 376 | """Test changing the read limit from > 0 to None.""" | ||
331 | 377 | tscf = self.create_factory(True, 2, None) | ||
332 | 378 | self.assertEquals(2, len(self.clock.getDelayedCalls())) | ||
333 | 379 | tscf.registerRead(4) | ||
334 | 380 | expected_events = ['thR'] | ||
335 | 381 | self.assertEqual(self.client.events, expected_events) | ||
336 | 382 | self.clock.advance(1.1) | ||
337 | 383 | expected_events += ['unthR'] | ||
338 | 384 | self.assertEqual(self.client.events, expected_events) | ||
339 | 385 | tscf.readLimit = None | ||
340 | 386 | self.clock.advance(1) | ||
341 | 387 | self.assertEqual(self.client.events, expected_events) | ||
342 | 388 | tscf.registerRead(4) | ||
343 | 389 | self.clock.advance(1.1) | ||
344 | 390 | # no new events, throttling reads is off | ||
345 | 391 | self.assertEqual(self.client.events, expected_events) | ||
346 | 392 | |||
347 | 393 | def test_change_write_to_None(self): | ||
348 | 394 | """Test changing the write limit from > 0 to None.""" | ||
349 | 395 | tscf = self.create_factory(True, None, 2) | ||
350 | 396 | self.assertEquals(2, len(self.clock.getDelayedCalls())) | ||
351 | 397 | tscf.registerWritten(4) | ||
352 | 398 | expected_events = ['thW'] | ||
353 | 399 | self.assertEqual(self.client.events, expected_events) | ||
354 | 400 | self.clock.advance(1.1) | ||
355 | 401 | expected_events += ['unthW'] | ||
356 | 402 | self.assertEqual(self.client.events, expected_events) | ||
357 | 403 | tscf.writeLimit = None | ||
358 | 404 | self.clock.advance(1) | ||
359 | 405 | self.assertEqual(self.client.events, expected_events) | ||
360 | 406 | tscf.registerWritten(4) | ||
361 | 407 | self.clock.advance(1.1) | ||
362 | 408 | # no new events, throttling reads is off | ||
363 | 409 | self.assertEqual(self.client.events, expected_events) | ||
364 | 410 | |||
365 | 411 | |||
366 | 412 | class TestEnablement(BaseThrottlingTestCase): | ||
367 | 413 | """Tests for en/disabling throttling.""" | ||
368 | 414 | |||
369 | 415 | def test_disabling(self): | ||
370 | 416 | """Tests that disabling throttling at runtime works as expected.""" | ||
371 | 417 | tscf = self.create_factory(True, 2, 2) | ||
372 | 418 | self.assertNotEquals(None, tscf.resetReadThisSecondID) | ||
373 | 419 | self.assertNotEquals(None, tscf.resetWriteThisSecondID) | ||
374 | 420 | tscf.registerRead(2) | ||
375 | 421 | tscf.registerWritten(2) | ||
376 | 422 | self.assertNotEquals(None, tscf.unthrottleReadsID) | ||
377 | 423 | self.assertNotEquals(None, tscf.unthrottleReadsID) | ||
378 | 424 | self.clock.advance(1.1) | ||
379 | 425 | self.assertEquals(None, tscf.unthrottleReadsID) | ||
380 | 426 | self.assertEquals(None, tscf.unthrottleWritesID) | ||
381 | 427 | tscf.disable_throttling() | ||
382 | 428 | self.assertFalse(tscf.throttling_enabled, | ||
383 | 429 | "Throttling should be disabled.") | ||
384 | 430 | for delayed in [tscf.unthrottleReadsID, tscf.resetReadThisSecondID, | ||
385 | 431 | tscf.unthrottleWritesID, tscf.resetWriteThisSecondID]: | ||
386 | 432 | cancelled = delayed is None or delayed.cancelled | ||
387 | 433 | self.assertTrue(cancelled) | ||
388 | 434 | |||
389 | 435 | def test_enabling(self): | ||
390 | 436 | """Tests that enabling throttling at runtime works as expected.""" | ||
391 | 437 | tscf = self.create_factory(False, 2, 2) | ||
392 | 438 | self.assertEquals(None, tscf.resetReadThisSecondID) | ||
393 | 439 | self.assertEquals(None, tscf.resetWriteThisSecondID) | ||
394 | 440 | tscf.registerRead(2) | ||
395 | 441 | tscf.registerWritten(2) | ||
396 | 442 | self.assertEquals(None, tscf.unthrottleReadsID) | ||
397 | 443 | self.assertEquals(None, tscf.unthrottleReadsID) | ||
398 | 444 | self.clock.advance(1) | ||
399 | 445 | self.assertEquals(None, tscf.unthrottleReadsID) | ||
400 | 446 | self.assertEquals(None, tscf.unthrottleWritesID) | ||
401 | 447 | self.assertEquals(None, tscf.resetReadThisSecondID) | ||
402 | 448 | self.assertEquals(None, tscf.resetWriteThisSecondID) | ||
403 | 449 | tscf.enable_throttling() | ||
404 | 450 | self.assertTrue(tscf.throttling_enabled, | ||
405 | 451 | "Throttling should be enabled.") | ||
406 | 452 | self.assertNotEquals(None, tscf.resetReadThisSecondID) | ||
407 | 453 | self.assertNotEquals(None, tscf.resetWriteThisSecondID) | ||
408 | 454 | tscf.registerRead(3) | ||
409 | 455 | tscf.registerWritten(3) | ||
410 | 456 | for delayed in [tscf.unthrottleReadsID, tscf.resetReadThisSecondID, | ||
411 | 457 | tscf.unthrottleWritesID, tscf.resetWriteThisSecondID]: | ||
412 | 458 | cancelled = delayed.cancelled | ||
413 | 459 | self.assertFalse(cancelled) | ||
414 | 460 | |||
415 | 154 | 461 | ||
416 | === modified file 'ubuntuone/storageprotocol/client.py' | |||
417 | --- ubuntuone/storageprotocol/client.py 2010-02-17 23:23:52 +0000 | |||
418 | +++ ubuntuone/storageprotocol/client.py 2010-03-04 17:22:18 +0000 | |||
419 | @@ -1410,16 +1410,22 @@ | |||
420 | 1410 | protocol = StorageClient | 1410 | protocol = StorageClient |
421 | 1411 | 1411 | ||
422 | 1412 | 1412 | ||
424 | 1413 | class ThrottlingStorageClientFactory(StorageClientFactory): | 1413 | class ThrottlingStorageClientFactory(StorageClientFactory, object): |
425 | 1414 | """The throttling version of StorageClientFactory.""" | 1414 | """The throttling version of StorageClientFactory.""" |
426 | 1415 | 1415 | ||
427 | 1416 | protocol = ThrottlingStorageClient | 1416 | protocol = ThrottlingStorageClient |
428 | 1417 | client = None | 1417 | client = None |
429 | 1418 | 1418 | ||
431 | 1419 | def __init__(self, read_limit=None, write_limit=None): | 1419 | def __init__(self, throttling_enabled=False, |
432 | 1420 | read_limit=None, write_limit=None): | ||
433 | 1420 | """Create the instance.""" | 1421 | """Create the instance.""" |
436 | 1421 | self.readLimit = read_limit # max bytes we should read per second | 1422 | self._readLimit = None # max bytes we should read per second |
437 | 1422 | self.writeLimit = write_limit # max bytes we should write per second | 1423 | self._writeLimit = None # max bytes we should write per second |
438 | 1424 | self._throttling_reads = False | ||
439 | 1425 | self._throttling_writes = False | ||
440 | 1426 | self._set_read_limit(read_limit) | ||
441 | 1427 | self._set_write_limit(write_limit) | ||
442 | 1428 | self.throttling_enabled = throttling_enabled | ||
443 | 1423 | self.readThisSecond = 0 | 1429 | self.readThisSecond = 0 |
444 | 1424 | self.writtenThisSecond = 0 | 1430 | self.writtenThisSecond = 0 |
445 | 1425 | self.unthrottleReadsID = None | 1431 | self.unthrottleReadsID = None |
446 | @@ -1427,15 +1433,46 @@ | |||
447 | 1427 | self.unthrottleWritesID = None | 1433 | self.unthrottleWritesID = None |
448 | 1428 | self.resetWriteThisSecondID = None | 1434 | self.resetWriteThisSecondID = None |
449 | 1429 | self.stopped = True | 1435 | self.stopped = True |
450 | 1436 | if self.throttling_enabled: | ||
451 | 1437 | self.enable_throttling() | ||
452 | 1438 | else: | ||
453 | 1439 | self.disable_throttling() | ||
454 | 1440 | |||
455 | 1441 | def valid_limit(self, limit): | ||
456 | 1442 | """Check if limit is a valid valid.""" | ||
457 | 1443 | return limit is None or limit > 0 | ||
458 | 1444 | |||
459 | 1445 | def _set_write_limit(self, limit): | ||
460 | 1446 | """Set writeLimit value. | ||
461 | 1447 | |||
462 | 1448 | Raise a ValueError if the value ins't valid. | ||
463 | 1449 | """ | ||
464 | 1450 | if not self.valid_limit(limit): | ||
465 | 1451 | raise ValueError('Write limit must be greater than 0.') | ||
466 | 1452 | self._writeLimit = limit | ||
467 | 1453 | |||
468 | 1454 | def _set_read_limit(self, limit): | ||
469 | 1455 | """Set readLimit value. | ||
470 | 1456 | |||
471 | 1457 | Raise a ValueError if the value ins't valid. | ||
472 | 1458 | """ | ||
473 | 1459 | if not self.valid_limit(limit): | ||
474 | 1460 | raise ValueError('Read limit must be greater than 0.') | ||
475 | 1461 | self._readLimit = limit | ||
476 | 1462 | # it's a property, pylint: disable-msg=W0212 | ||
477 | 1463 | readLimit = property(lambda self: self._readLimit, _set_read_limit) | ||
478 | 1464 | writeLimit = property(lambda self: self._writeLimit, _set_write_limit) | ||
479 | 1465 | # pylint: enable-msg=W0212 | ||
480 | 1430 | 1466 | ||
481 | 1431 | def callLater(self, period, func, *args, **kwargs): | 1467 | def callLater(self, period, func, *args, **kwargs): |
482 | 1432 | """Wrapper around L{reactor.callLater} for test purpose.""" | 1468 | """Wrapper around L{reactor.callLater} for test purpose.""" |
483 | 1433 | return reactor.callLater(period, func, *args, **kwargs) | 1469 | return reactor.callLater(period, func, *args, **kwargs) |
484 | 1434 | 1470 | ||
485 | 1435 | def maybeCallLater(self, id, period, func): | 1471 | def maybeCallLater(self, id, period, func): |
487 | 1436 | """Do a callLater only if we don't have a DelayedCall with the | 1472 | """Maybe run callLater(period, func). |
488 | 1473 | |||
489 | 1474 | Only if we don't have a DelayedCall with the | ||
490 | 1437 | specified id already running. | 1475 | specified id already running. |
491 | 1438 | |||
492 | 1439 | """ | 1476 | """ |
493 | 1440 | delayed_call = getattr(self, id) | 1477 | delayed_call = getattr(self, id) |
494 | 1441 | # check if we already have a DelayedCall running | 1478 | # check if we already have a DelayedCall running |
495 | @@ -1446,38 +1483,49 @@ | |||
496 | 1446 | 1483 | ||
497 | 1447 | def registerWritten(self, length): | 1484 | def registerWritten(self, length): |
498 | 1448 | """Called by protocol to tell us more bytes were written.""" | 1485 | """Called by protocol to tell us more bytes were written.""" |
501 | 1449 | self.writtenThisSecond += length | 1486 | if self.throttling_enabled: |
502 | 1450 | self.checkWriteBandwidth() | 1487 | self.writtenThisSecond += length |
503 | 1488 | self.checkWriteBandwidth() | ||
504 | 1451 | 1489 | ||
505 | 1452 | def registerRead(self, length): | 1490 | def registerRead(self, length): |
506 | 1453 | """Called by protocol to tell us more bytes were read.""" | 1491 | """Called by protocol to tell us more bytes were read.""" |
509 | 1454 | self.readThisSecond += length | 1492 | if self.throttling_enabled: |
510 | 1455 | self.checkReadBandwidth() | 1493 | self.readThisSecond += length |
511 | 1494 | self.checkReadBandwidth() | ||
512 | 1495 | |||
513 | 1496 | def _get_throttle_time(self, bytes, limit): | ||
514 | 1497 | """Calculate the throttle_time for bytes and limit.""" | ||
515 | 1498 | return (float(bytes) / limit) - 1.0 | ||
516 | 1456 | 1499 | ||
517 | 1457 | def checkReadBandwidth(self): | 1500 | def checkReadBandwidth(self): |
518 | 1458 | """Check if we've passed bandwidth limits.""" | 1501 | """Check if we've passed bandwidth limits.""" |
522 | 1459 | if self.readLimit is not None and \ | 1502 | limit_check = self.valid_limit(self.readLimit) and \ |
523 | 1460 | self.readThisSecond > self.readLimit and \ | 1503 | self.readLimit is not None and \ |
524 | 1461 | self.unthrottleReadsID is None: | 1504 | self.readThisSecond >= self.readLimit |
525 | 1505 | should_check = self.throttling_enabled and limit_check and \ | ||
526 | 1506 | self.unthrottleReadsID is None | ||
527 | 1507 | if should_check: | ||
528 | 1462 | self.throttleReads() | 1508 | self.throttleReads() |
530 | 1463 | throttle_time = (float(self.readThisSecond) / self.readLimit) - 1.0 | 1509 | throttle_time = self._get_throttle_time(self.readThisSecond, |
531 | 1510 | self.readLimit) | ||
532 | 1464 | log_debug("pause reads for: %s", str(throttle_time)) | 1511 | log_debug("pause reads for: %s", str(throttle_time)) |
536 | 1465 | self.unthrottleReadsID = self.maybeCallLater('unthrottleReadsID', | 1512 | self.unthrottleReadsID = self.maybeCallLater( |
537 | 1466 | throttle_time, | 1513 | 'unthrottleReadsID', throttle_time, self.unthrottleReads) |
535 | 1467 | self.unthrottleReads) | ||
538 | 1468 | 1514 | ||
539 | 1469 | def checkWriteBandwidth(self): | 1515 | def checkWriteBandwidth(self): |
540 | 1470 | """Check if we've passed bandwidth limits.""" | 1516 | """Check if we've passed bandwidth limits.""" |
544 | 1471 | if self.writeLimit is not None and \ | 1517 | limit_check = self.valid_limit(self.writeLimit) and \ |
545 | 1472 | self.writtenThisSecond > self.writeLimit and \ | 1518 | self.writeLimit is not None and \ |
546 | 1473 | self.unthrottleWritesID is None: | 1519 | self.writtenThisSecond >= self.writeLimit |
547 | 1520 | should_check = self.throttling_enabled and limit_check and \ | ||
548 | 1521 | self.unthrottleWritesID is None | ||
549 | 1522 | if should_check: | ||
550 | 1474 | self.throttleWrites() | 1523 | self.throttleWrites() |
553 | 1475 | throttle_time = (float(self.writtenThisSecond) / self.writeLimit) \ | 1524 | throttle_time = self._get_throttle_time(self.writtenThisSecond, |
554 | 1476 | - 1.0 | 1525 | self.writeLimit) |
555 | 1477 | log_debug("pause writes for: %s", str(throttle_time)) | 1526 | log_debug("pause writes for: %s", str(throttle_time)) |
559 | 1478 | self.unthrottleWritesID = self.maybeCallLater('unthrottleWritesID', | 1527 | self.unthrottleWritesID = self.maybeCallLater( |
560 | 1479 | throttle_time, | 1528 | 'unthrottleWritesID', throttle_time, self.unthrottleWrites) |
558 | 1480 | self.unthrottleWrites) | ||
561 | 1481 | 1529 | ||
562 | 1482 | def _resetReadThisSecond(self): | 1530 | def _resetReadThisSecond(self): |
563 | 1483 | """Reset the counter named with 'name' every 1 second.""" | 1531 | """Reset the counter named with 'name' every 1 second.""" |
564 | @@ -1495,31 +1543,33 @@ | |||
565 | 1495 | def throttleReads(self): | 1543 | def throttleReads(self): |
566 | 1496 | """Throttle reads on all protocols.""" | 1544 | """Throttle reads on all protocols.""" |
567 | 1497 | if self.client is not None: | 1545 | if self.client is not None: |
568 | 1546 | self._throttling_reads = True | ||
569 | 1498 | self.client.throttleReads() | 1547 | self.client.throttleReads() |
570 | 1499 | 1548 | ||
571 | 1500 | def unthrottleReads(self): | 1549 | def unthrottleReads(self): |
572 | 1501 | """Stop throttling reads on all protocols.""" | 1550 | """Stop throttling reads on all protocols.""" |
573 | 1502 | self.unthrottleReadsID = None | 1551 | self.unthrottleReadsID = None |
574 | 1503 | if self.client is not None: | 1552 | if self.client is not None: |
575 | 1553 | self._throttling_reads = False | ||
576 | 1504 | self.client.unthrottleReads() | 1554 | self.client.unthrottleReads() |
577 | 1505 | 1555 | ||
578 | 1506 | def throttleWrites(self): | 1556 | def throttleWrites(self): |
579 | 1507 | """Throttle writes on all protocols.""" | 1557 | """Throttle writes on all protocols.""" |
580 | 1508 | if self.client is not None: | 1558 | if self.client is not None: |
581 | 1559 | self._throttling_writes = True | ||
582 | 1509 | self.client.throttleWrites() | 1560 | self.client.throttleWrites() |
583 | 1510 | 1561 | ||
584 | 1511 | def unthrottleWrites(self): | 1562 | def unthrottleWrites(self): |
585 | 1512 | """Stop throttling writes on all protocols.""" | 1563 | """Stop throttling writes on all protocols.""" |
586 | 1513 | self.unthrottleWritesID = None | 1564 | self.unthrottleWritesID = None |
587 | 1514 | if self.client is not None: | 1565 | if self.client is not None: |
588 | 1566 | self._throttling_writes = False | ||
589 | 1515 | self.client.unthrottleWrites() | 1567 | self.client.unthrottleWrites() |
590 | 1516 | 1568 | ||
591 | 1517 | def buildProtocol(self, addr): | 1569 | def buildProtocol(self, addr): |
592 | 1518 | """Build the protocol and start the counters reset loops.""" | 1570 | """Build the protocol and start the counters reset loops.""" |
597 | 1519 | if self.readLimit is not None: | 1571 | if self.throttling_enabled: |
598 | 1520 | self._resetReadThisSecond() | 1572 | self.enable_throttling() |
595 | 1521 | if self.writeLimit is not None: | ||
596 | 1522 | self._resetWrittenThisSecond() | ||
599 | 1523 | self.stopped = False | 1573 | self.stopped = False |
600 | 1524 | return StorageClientFactory.buildProtocol(self, addr) | 1574 | return StorageClientFactory.buildProtocol(self, addr) |
601 | 1525 | 1575 | ||
602 | @@ -1529,7 +1579,6 @@ | |||
603 | 1529 | self.unthrottleWritesID, self.resetWriteThisSecondID]: | 1579 | self.unthrottleWritesID, self.resetWriteThisSecondID]: |
604 | 1530 | self._cancel_delayed_call(delayed) | 1580 | self._cancel_delayed_call(delayed) |
605 | 1531 | 1581 | ||
606 | 1532 | |||
607 | 1533 | def _cancel_delayed_call(self, delayed): | 1582 | def _cancel_delayed_call(self, delayed): |
608 | 1534 | """Safely cancel a DelayedCall.""" | 1583 | """Safely cancel a DelayedCall.""" |
609 | 1535 | if delayed is not None and not delayed.cancelled \ | 1584 | if delayed is not None and not delayed.cancelled \ |
610 | @@ -1540,6 +1589,32 @@ | |||
611 | 1540 | # ignore AlreadyCalledError | 1589 | # ignore AlreadyCalledError |
612 | 1541 | pass | 1590 | pass |
613 | 1542 | 1591 | ||
614 | 1592 | def enable_throttling(self): | ||
615 | 1593 | """Enable throttling and start the counter reset loops.""" | ||
616 | 1594 | # check if we need to start the reset loops | ||
617 | 1595 | if self.resetReadThisSecondID is None and \ | ||
618 | 1596 | self.valid_limit(self.readLimit): | ||
619 | 1597 | self._resetReadThisSecond() | ||
620 | 1598 | if self.resetWriteThisSecondID is None and \ | ||
621 | 1599 | self.valid_limit(self.writeLimit): | ||
622 | 1600 | self._resetWrittenThisSecond() | ||
623 | 1601 | self.throttling_enabled = True | ||
624 | 1602 | |||
625 | 1603 | def disable_throttling(self): | ||
626 | 1604 | """Disable throttling and cancel the counter reset loops.""" | ||
627 | 1605 | # unthrottle if there is an active unthrottle*ID | ||
628 | 1606 | self._cancel_delayed_call(self.unthrottleReadsID) | ||
629 | 1607 | self._cancel_delayed_call(self.unthrottleWritesID) | ||
630 | 1608 | # Stop the reset loops | ||
631 | 1609 | self._cancel_delayed_call(self.resetReadThisSecondID) | ||
632 | 1610 | self._cancel_delayed_call(self.resetWriteThisSecondID) | ||
633 | 1611 | # unthrottle read/writes | ||
634 | 1612 | if self._throttling_reads: | ||
635 | 1613 | self.unthrottleReads() | ||
636 | 1614 | if self._throttling_writes: | ||
637 | 1615 | self.unthrottleWrites() | ||
638 | 1616 | self.throttling_enabled = False | ||
639 | 1617 | |||
640 | 1543 | 1618 | ||
641 | 1544 | if __name__ == "__main__": | 1619 | if __name__ == "__main__": |
642 | 1545 | # these 3 lines show the different ways of connecting a client to the | 1620 | # these 3 lines show the different ways of connecting a client to the |
643 | 1546 | 1621 | ||
644 | === removed file 'ubuntuone/storageprotocol/dircontent_pb2.py' | |||
645 | --- ubuntuone/storageprotocol/dircontent_pb2.py 2010-02-17 23:23:52 +0000 | |||
646 | +++ ubuntuone/storageprotocol/dircontent_pb2.py 1970-01-01 00:00:00 +0000 | |||
647 | @@ -1,105 +0,0 @@ | |||
648 | 1 | # Generated by the protocol buffer compiler. DO NOT EDIT! | ||
649 | 2 | |||
650 | 3 | from google.protobuf import descriptor | ||
651 | 4 | from google.protobuf import message | ||
652 | 5 | from google.protobuf import reflection | ||
653 | 6 | from google.protobuf import service | ||
654 | 7 | from google.protobuf import service_reflection | ||
655 | 8 | from google.protobuf import descriptor_pb2 | ||
656 | 9 | _NODETYPE = descriptor.EnumDescriptor( | ||
657 | 10 | name='NodeType', | ||
658 | 11 | full_name='ubuntuone.storageprotocol.NodeType', | ||
659 | 12 | filename='NodeType', | ||
660 | 13 | values=[ | ||
661 | 14 | descriptor.EnumValueDescriptor( | ||
662 | 15 | name='DIRECTORY', index=0, number=0, | ||
663 | 16 | options=None, | ||
664 | 17 | type=None), | ||
665 | 18 | descriptor.EnumValueDescriptor( | ||
666 | 19 | name='FILE', index=1, number=1, | ||
667 | 20 | options=None, | ||
668 | 21 | type=None), | ||
669 | 22 | descriptor.EnumValueDescriptor( | ||
670 | 23 | name='SYMLINK', index=2, number=2, | ||
671 | 24 | options=None, | ||
672 | 25 | type=None), | ||
673 | 26 | ], | ||
674 | 27 | options=None, | ||
675 | 28 | ) | ||
676 | 29 | |||
677 | 30 | |||
678 | 31 | DIRECTORY = 0 | ||
679 | 32 | FILE = 1 | ||
680 | 33 | SYMLINK = 2 | ||
681 | 34 | |||
682 | 35 | |||
683 | 36 | |||
684 | 37 | _DIRECTORYENTRY = descriptor.Descriptor( | ||
685 | 38 | name='DirectoryEntry', | ||
686 | 39 | full_name='ubuntuone.storageprotocol.DirectoryEntry', | ||
687 | 40 | filename='ubuntuone/storageprotocol/dircontent.proto', | ||
688 | 41 | containing_type=None, | ||
689 | 42 | fields=[ | ||
690 | 43 | descriptor.FieldDescriptor( | ||
691 | 44 | name='name', full_name='ubuntuone.storageprotocol.DirectoryEntry.name', index=0, | ||
692 | 45 | number=1, type=9, cpp_type=9, label=1, | ||
693 | 46 | default_value=unicode("", "utf-8"), | ||
694 | 47 | message_type=None, enum_type=None, containing_type=None, | ||
695 | 48 | is_extension=False, extension_scope=None, | ||
696 | 49 | options=None), | ||
697 | 50 | descriptor.FieldDescriptor( | ||
698 | 51 | name='node', full_name='ubuntuone.storageprotocol.DirectoryEntry.node', index=1, | ||
699 | 52 | number=2, type=12, cpp_type=9, label=1, | ||
700 | 53 | default_value="", | ||
701 | 54 | message_type=None, enum_type=None, containing_type=None, | ||
702 | 55 | is_extension=False, extension_scope=None, | ||
703 | 56 | options=None), | ||
704 | 57 | descriptor.FieldDescriptor( | ||
705 | 58 | name='node_type', full_name='ubuntuone.storageprotocol.DirectoryEntry.node_type', index=2, | ||
706 | 59 | number=3, type=14, cpp_type=8, label=1, | ||
707 | 60 | default_value=0, | ||
708 | 61 | message_type=None, enum_type=None, containing_type=None, | ||
709 | 62 | is_extension=False, extension_scope=None, | ||
710 | 63 | options=None), | ||
711 | 64 | ], | ||
712 | 65 | extensions=[ | ||
713 | 66 | ], | ||
714 | 67 | nested_types=[], # TODO(robinson): Implement. | ||
715 | 68 | enum_types=[ | ||
716 | 69 | ], | ||
717 | 70 | options=None) | ||
718 | 71 | |||
719 | 72 | |||
720 | 73 | _DIRECTORYCONTENT = descriptor.Descriptor( | ||
721 | 74 | name='DirectoryContent', | ||
722 | 75 | full_name='ubuntuone.storageprotocol.DirectoryContent', | ||
723 | 76 | filename='ubuntuone/storageprotocol/dircontent.proto', | ||
724 | 77 | containing_type=None, | ||
725 | 78 | fields=[ | ||
726 | 79 | descriptor.FieldDescriptor( | ||
727 | 80 | name='entries', full_name='ubuntuone.storageprotocol.DirectoryContent.entries', index=0, | ||
728 | 81 | number=1, type=11, cpp_type=10, label=3, | ||
729 | 82 | default_value=[], | ||
730 | 83 | message_type=None, enum_type=None, containing_type=None, | ||
731 | 84 | is_extension=False, extension_scope=None, | ||
732 | 85 | options=None), | ||
733 | 86 | ], | ||
734 | 87 | extensions=[ | ||
735 | 88 | ], | ||
736 | 89 | nested_types=[], # TODO(robinson): Implement. | ||
737 | 90 | enum_types=[ | ||
738 | 91 | ], | ||
739 | 92 | options=None) | ||
740 | 93 | |||
741 | 94 | |||
742 | 95 | _DIRECTORYENTRY.fields_by_name['node_type'].enum_type = _NODETYPE | ||
743 | 96 | _DIRECTORYCONTENT.fields_by_name['entries'].message_type = _DIRECTORYENTRY | ||
744 | 97 | |||
745 | 98 | class DirectoryEntry(message.Message): | ||
746 | 99 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
747 | 100 | DESCRIPTOR = _DIRECTORYENTRY | ||
748 | 101 | |||
749 | 102 | class DirectoryContent(message.Message): | ||
750 | 103 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
751 | 104 | DESCRIPTOR = _DIRECTORYCONTENT | ||
752 | 105 | |||
753 | 106 | 0 | ||
754 | === removed file 'ubuntuone/storageprotocol/protocol_pb2.py' | |||
755 | --- ubuntuone/storageprotocol/protocol_pb2.py 2010-02-17 23:23:52 +0000 | |||
756 | +++ ubuntuone/storageprotocol/protocol_pb2.py 1970-01-01 00:00:00 +0000 | |||
757 | @@ -1,2018 +0,0 @@ | |||
758 | 1 | # Generated by the protocol buffer compiler. DO NOT EDIT! | ||
759 | 2 | |||
760 | 3 | from google.protobuf import descriptor | ||
761 | 4 | from google.protobuf import message | ||
762 | 5 | from google.protobuf import reflection | ||
763 | 6 | from google.protobuf import service | ||
764 | 7 | from google.protobuf import service_reflection | ||
765 | 8 | from google.protobuf import descriptor_pb2 | ||
766 | 9 | |||
767 | 10 | |||
768 | 11 | _MESSAGE_MESSAGETYPE = descriptor.EnumDescriptor( | ||
769 | 12 | name='MessageType', | ||
770 | 13 | full_name='ubuntuone.storageprotocol.Message.MessageType', | ||
771 | 14 | filename='MessageType', | ||
772 | 15 | values=[ | ||
773 | 16 | descriptor.EnumValueDescriptor( | ||
774 | 17 | name='NOOP', index=0, number=0, | ||
775 | 18 | options=None, | ||
776 | 19 | type=None), | ||
777 | 20 | descriptor.EnumValueDescriptor( | ||
778 | 21 | name='ERROR', index=1, number=1, | ||
779 | 22 | options=None, | ||
780 | 23 | type=None), | ||
781 | 24 | descriptor.EnumValueDescriptor( | ||
782 | 25 | name='OK', index=2, number=2, | ||
783 | 26 | options=None, | ||
784 | 27 | type=None), | ||
785 | 28 | descriptor.EnumValueDescriptor( | ||
786 | 29 | name='PING', index=3, number=3, | ||
787 | 30 | options=None, | ||
788 | 31 | type=None), | ||
789 | 32 | descriptor.EnumValueDescriptor( | ||
790 | 33 | name='PONG', index=4, number=4, | ||
791 | 34 | options=None, | ||
792 | 35 | type=None), | ||
793 | 36 | descriptor.EnumValueDescriptor( | ||
794 | 37 | name='PROTOCOL_VERSION', index=5, number=5, | ||
795 | 38 | options=None, | ||
796 | 39 | type=None), | ||
797 | 40 | descriptor.EnumValueDescriptor( | ||
798 | 41 | name='AUTH_REQUEST', index=6, number=6, | ||
799 | 42 | options=None, | ||
800 | 43 | type=None), | ||
801 | 44 | descriptor.EnumValueDescriptor( | ||
802 | 45 | name='AUTH_REQUEST_TOKEN', index=7, number=7, | ||
803 | 46 | options=None, | ||
804 | 47 | type=None), | ||
805 | 48 | descriptor.EnumValueDescriptor( | ||
806 | 49 | name='AUTH_REQUEST_TOKEN_READY', index=8, number=8, | ||
807 | 50 | options=None, | ||
808 | 51 | type=None), | ||
809 | 52 | descriptor.EnumValueDescriptor( | ||
810 | 53 | name='AUTH_AUTHENTICATED', index=9, number=9, | ||
811 | 54 | options=None, | ||
812 | 55 | type=None), | ||
813 | 56 | descriptor.EnumValueDescriptor( | ||
814 | 57 | name='ROOT', index=10, number=10, | ||
815 | 58 | options=None, | ||
816 | 59 | type=None), | ||
817 | 60 | descriptor.EnumValueDescriptor( | ||
818 | 61 | name='MAKE_DIR', index=11, number=11, | ||
819 | 62 | options=None, | ||
820 | 63 | type=None), | ||
821 | 64 | descriptor.EnumValueDescriptor( | ||
822 | 65 | name='MAKE_FILE', index=12, number=12, | ||
823 | 66 | options=None, | ||
824 | 67 | type=None), | ||
825 | 68 | descriptor.EnumValueDescriptor( | ||
826 | 69 | name='NEW_DIR', index=13, number=13, | ||
827 | 70 | options=None, | ||
828 | 71 | type=None), | ||
829 | 72 | descriptor.EnumValueDescriptor( | ||
830 | 73 | name='NEW_FILE', index=14, number=14, | ||
831 | 74 | options=None, | ||
832 | 75 | type=None), | ||
833 | 76 | descriptor.EnumValueDescriptor( | ||
834 | 77 | name='QUERY', index=15, number=15, | ||
835 | 78 | options=None, | ||
836 | 79 | type=None), | ||
837 | 80 | descriptor.EnumValueDescriptor( | ||
838 | 81 | name='NODE_STATE', index=16, number=16, | ||
839 | 82 | options=None, | ||
840 | 83 | type=None), | ||
841 | 84 | descriptor.EnumValueDescriptor( | ||
842 | 85 | name='QUERY_END', index=17, number=17, | ||
843 | 86 | options=None, | ||
844 | 87 | type=None), | ||
845 | 88 | descriptor.EnumValueDescriptor( | ||
846 | 89 | name='GET_CONTENT', index=18, number=18, | ||
847 | 90 | options=None, | ||
848 | 91 | type=None), | ||
849 | 92 | descriptor.EnumValueDescriptor( | ||
850 | 93 | name='PUT_CONTENT', index=19, number=19, | ||
851 | 94 | options=None, | ||
852 | 95 | type=None), | ||
853 | 96 | descriptor.EnumValueDescriptor( | ||
854 | 97 | name='BEGIN_CONTENT', index=20, number=20, | ||
855 | 98 | options=None, | ||
856 | 99 | type=None), | ||
857 | 100 | descriptor.EnumValueDescriptor( | ||
858 | 101 | name='BYTES', index=21, number=21, | ||
859 | 102 | options=None, | ||
860 | 103 | type=None), | ||
861 | 104 | descriptor.EnumValueDescriptor( | ||
862 | 105 | name='EOF', index=22, number=22, | ||
863 | 106 | options=None, | ||
864 | 107 | type=None), | ||
865 | 108 | descriptor.EnumValueDescriptor( | ||
866 | 109 | name='MOVE', index=23, number=23, | ||
867 | 110 | options=None, | ||
868 | 111 | type=None), | ||
869 | 112 | descriptor.EnumValueDescriptor( | ||
870 | 113 | name='UNLINK', index=24, number=24, | ||
871 | 114 | options=None, | ||
872 | 115 | type=None), | ||
873 | 116 | descriptor.EnumValueDescriptor( | ||
874 | 117 | name='CREATE_SHARE', index=25, number=25, | ||
875 | 118 | options=None, | ||
876 | 119 | type=None), | ||
877 | 120 | descriptor.EnumValueDescriptor( | ||
878 | 121 | name='LIST_SHARES', index=26, number=26, | ||
879 | 122 | options=None, | ||
880 | 123 | type=None), | ||
881 | 124 | descriptor.EnumValueDescriptor( | ||
882 | 125 | name='SHARES_INFO', index=27, number=27, | ||
883 | 126 | options=None, | ||
884 | 127 | type=None), | ||
885 | 128 | descriptor.EnumValueDescriptor( | ||
886 | 129 | name='SHARES_END', index=28, number=28, | ||
887 | 130 | options=None, | ||
888 | 131 | type=None), | ||
889 | 132 | descriptor.EnumValueDescriptor( | ||
890 | 133 | name='NOTIFY_SHARE', index=29, number=29, | ||
891 | 134 | options=None, | ||
892 | 135 | type=None), | ||
893 | 136 | descriptor.EnumValueDescriptor( | ||
894 | 137 | name='SHARE_ACCEPTED', index=30, number=30, | ||
895 | 138 | options=None, | ||
896 | 139 | type=None), | ||
897 | 140 | descriptor.EnumValueDescriptor( | ||
898 | 141 | name='SHARE_DELETED', index=31, number=31, | ||
899 | 142 | options=None, | ||
900 | 143 | type=None), | ||
901 | 144 | descriptor.EnumValueDescriptor( | ||
902 | 145 | name='SHARE_CREATED', index=32, number=34, | ||
903 | 146 | options=None, | ||
904 | 147 | type=None), | ||
905 | 148 | descriptor.EnumValueDescriptor( | ||
906 | 149 | name='DELETE_SHARE', index=33, number=36, | ||
907 | 150 | options=None, | ||
908 | 151 | type=None), | ||
909 | 152 | descriptor.EnumValueDescriptor( | ||
910 | 153 | name='CREATE_UDF', index=34, number=44, | ||
911 | 154 | options=None, | ||
912 | 155 | type=None), | ||
913 | 156 | descriptor.EnumValueDescriptor( | ||
914 | 157 | name='LIST_VOLUMES', index=35, number=45, | ||
915 | 158 | options=None, | ||
916 | 159 | type=None), | ||
917 | 160 | descriptor.EnumValueDescriptor( | ||
918 | 161 | name='VOLUMES_INFO', index=36, number=46, | ||
919 | 162 | options=None, | ||
920 | 163 | type=None), | ||
921 | 164 | descriptor.EnumValueDescriptor( | ||
922 | 165 | name='VOLUMES_END', index=37, number=47, | ||
923 | 166 | options=None, | ||
924 | 167 | type=None), | ||
925 | 168 | descriptor.EnumValueDescriptor( | ||
926 | 169 | name='VOLUME_DELETED', index=38, number=48, | ||
927 | 170 | options=None, | ||
928 | 171 | type=None), | ||
929 | 172 | descriptor.EnumValueDescriptor( | ||
930 | 173 | name='VOLUME_CREATED', index=39, number=49, | ||
931 | 174 | options=None, | ||
932 | 175 | type=None), | ||
933 | 176 | descriptor.EnumValueDescriptor( | ||
934 | 177 | name='DELETE_VOLUME', index=40, number=50, | ||
935 | 178 | options=None, | ||
936 | 179 | type=None), | ||
937 | 180 | descriptor.EnumValueDescriptor( | ||
938 | 181 | name='CANCEL_REQUEST', index=41, number=32, | ||
939 | 182 | options=None, | ||
940 | 183 | type=None), | ||
941 | 184 | descriptor.EnumValueDescriptor( | ||
942 | 185 | name='NODE_ATTR', index=42, number=33, | ||
943 | 186 | options=None, | ||
944 | 187 | type=None), | ||
945 | 188 | descriptor.EnumValueDescriptor( | ||
946 | 189 | name='CANCELLED', index=43, number=35, | ||
947 | 190 | options=None, | ||
948 | 191 | type=None), | ||
949 | 192 | descriptor.EnumValueDescriptor( | ||
950 | 193 | name='QUERY_CAPS', index=44, number=37, | ||
951 | 194 | options=None, | ||
952 | 195 | type=None), | ||
953 | 196 | descriptor.EnumValueDescriptor( | ||
954 | 197 | name='SET_CAPS', index=45, number=38, | ||
955 | 198 | options=None, | ||
956 | 199 | type=None), | ||
957 | 200 | descriptor.EnumValueDescriptor( | ||
958 | 201 | name='ACCEPT_CAPS', index=46, number=39, | ||
959 | 202 | options=None, | ||
960 | 203 | type=None), | ||
961 | 204 | descriptor.EnumValueDescriptor( | ||
962 | 205 | name='FREE_SPACE_INFO', index=47, number=40, | ||
963 | 206 | options=None, | ||
964 | 207 | type=None), | ||
965 | 208 | descriptor.EnumValueDescriptor( | ||
966 | 209 | name='FREE_SPACE_INQUIRY', index=48, number=41, | ||
967 | 210 | options=None, | ||
968 | 211 | type=None), | ||
969 | 212 | descriptor.EnumValueDescriptor( | ||
970 | 213 | name='ACCOUNT_INFO', index=49, number=42, | ||
971 | 214 | options=None, | ||
972 | 215 | type=None), | ||
973 | 216 | descriptor.EnumValueDescriptor( | ||
974 | 217 | name='ACCOUNT_INQUIRY', index=50, number=43, | ||
975 | 218 | options=None, | ||
976 | 219 | type=None), | ||
977 | 220 | ], | ||
978 | 221 | options=None, | ||
979 | 222 | ) | ||
980 | 223 | |||
981 | 224 | _ERROR_ERRORTYPE = descriptor.EnumDescriptor( | ||
982 | 225 | name='ErrorType', | ||
983 | 226 | full_name='ubuntuone.storageprotocol.Error.ErrorType', | ||
984 | 227 | filename='ErrorType', | ||
985 | 228 | values=[ | ||
986 | 229 | descriptor.EnumValueDescriptor( | ||
987 | 230 | name='UNSUPPORTED_VERSION', index=0, number=0, | ||
988 | 231 | options=None, | ||
989 | 232 | type=None), | ||
990 | 233 | descriptor.EnumValueDescriptor( | ||
991 | 234 | name='AUTHENTICATION_FAILED', index=1, number=1, | ||
992 | 235 | options=None, | ||
993 | 236 | type=None), | ||
994 | 237 | descriptor.EnumValueDescriptor( | ||
995 | 238 | name='INTERNAL_ERROR', index=2, number=2, | ||
996 | 239 | options=None, | ||
997 | 240 | type=None), | ||
998 | 241 | descriptor.EnumValueDescriptor( | ||
999 | 242 | name='AUTHENTICATION_REQUIRED', index=3, number=3, | ||
1000 | 243 | options=None, | ||
1001 | 244 | type=None), | ||
1002 | 245 | descriptor.EnumValueDescriptor( | ||
1003 | 246 | name='NO_PERMISSION', index=4, number=4, | ||
1004 | 247 | options=None, | ||
1005 | 248 | type=None), | ||
1006 | 249 | descriptor.EnumValueDescriptor( | ||
1007 | 250 | name='ALREADY_EXISTS', index=5, number=5, | ||
1008 | 251 | options=None, | ||
1009 | 252 | type=None), | ||
1010 | 253 | descriptor.EnumValueDescriptor( | ||
1011 | 254 | name='DOES_NOT_EXIST', index=6, number=6, | ||
1012 | 255 | options=None, | ||
1013 | 256 | type=None), | ||
1014 | 257 | descriptor.EnumValueDescriptor( | ||
1015 | 258 | name='NOT_A_DIRECTORY', index=7, number=7, | ||
1016 | 259 | options=None, | ||
1017 | 260 | type=None), | ||
1018 | 261 | descriptor.EnumValueDescriptor( | ||
1019 | 262 | name='NOT_EMPTY', index=8, number=8, | ||
1020 | 263 | options=None, | ||
1021 | 264 | type=None), | ||
1022 | 265 | descriptor.EnumValueDescriptor( | ||
1023 | 266 | name='NOT_AVAILABLE', index=9, number=9, | ||
1024 | 267 | options=None, | ||
1025 | 268 | type=None), | ||
1026 | 269 | descriptor.EnumValueDescriptor( | ||
1027 | 270 | name='UPLOAD_IN_PROGRESS', index=10, number=10, | ||
1028 | 271 | options=None, | ||
1029 | 272 | type=None), | ||
1030 | 273 | descriptor.EnumValueDescriptor( | ||
1031 | 274 | name='UPLOAD_CORRUPT', index=11, number=11, | ||
1032 | 275 | options=None, | ||
1033 | 276 | type=None), | ||
1034 | 277 | descriptor.EnumValueDescriptor( | ||
1035 | 278 | name='UPLOAD_CANCELED', index=12, number=12, | ||
1036 | 279 | options=None, | ||
1037 | 280 | type=None), | ||
1038 | 281 | descriptor.EnumValueDescriptor( | ||
1039 | 282 | name='CONFLICT', index=13, number=13, | ||
1040 | 283 | options=None, | ||
1041 | 284 | type=None), | ||
1042 | 285 | descriptor.EnumValueDescriptor( | ||
1043 | 286 | name='TRY_AGAIN', index=14, number=14, | ||
1044 | 287 | options=None, | ||
1045 | 288 | type=None), | ||
1046 | 289 | descriptor.EnumValueDescriptor( | ||
1047 | 290 | name='PROTOCOL_ERROR', index=15, number=15, | ||
1048 | 291 | options=None, | ||
1049 | 292 | type=None), | ||
1050 | 293 | descriptor.EnumValueDescriptor( | ||
1051 | 294 | name='QUOTA_EXCEEDED', index=16, number=16, | ||
1052 | 295 | options=None, | ||
1053 | 296 | type=None), | ||
1054 | 297 | descriptor.EnumValueDescriptor( | ||
1055 | 298 | name='INVALID_FILENAME', index=17, number=17, | ||
1056 | 299 | options=None, | ||
1057 | 300 | type=None), | ||
1058 | 301 | ], | ||
1059 | 302 | options=None, | ||
1060 | 303 | ) | ||
1061 | 304 | |||
1062 | 305 | _CREATESHARE_ACCESSLEVEL = descriptor.EnumDescriptor( | ||
1063 | 306 | name='AccessLevel', | ||
1064 | 307 | full_name='ubuntuone.storageprotocol.CreateShare.AccessLevel', | ||
1065 | 308 | filename='AccessLevel', | ||
1066 | 309 | values=[ | ||
1067 | 310 | descriptor.EnumValueDescriptor( | ||
1068 | 311 | name='VIEW', index=0, number=0, | ||
1069 | 312 | options=None, | ||
1070 | 313 | type=None), | ||
1071 | 314 | descriptor.EnumValueDescriptor( | ||
1072 | 315 | name='MODIFY', index=1, number=1, | ||
1073 | 316 | options=None, | ||
1074 | 317 | type=None), | ||
1075 | 318 | ], | ||
1076 | 319 | options=None, | ||
1077 | 320 | ) | ||
1078 | 321 | |||
1079 | 322 | _SHARES_DIRECTION = descriptor.EnumDescriptor( | ||
1080 | 323 | name='Direction', | ||
1081 | 324 | full_name='ubuntuone.storageprotocol.Shares.Direction', | ||
1082 | 325 | filename='Direction', | ||
1083 | 326 | values=[ | ||
1084 | 327 | descriptor.EnumValueDescriptor( | ||
1085 | 328 | name='TO_ME', index=0, number=0, | ||
1086 | 329 | options=None, | ||
1087 | 330 | type=None), | ||
1088 | 331 | descriptor.EnumValueDescriptor( | ||
1089 | 332 | name='FROM_ME', index=1, number=1, | ||
1090 | 333 | options=None, | ||
1091 | 334 | type=None), | ||
1092 | 335 | ], | ||
1093 | 336 | options=None, | ||
1094 | 337 | ) | ||
1095 | 338 | |||
1096 | 339 | _SHARES_ACCESSLEVEL = descriptor.EnumDescriptor( | ||
1097 | 340 | name='AccessLevel', | ||
1098 | 341 | full_name='ubuntuone.storageprotocol.Shares.AccessLevel', | ||
1099 | 342 | filename='AccessLevel', | ||
1100 | 343 | values=[ | ||
1101 | 344 | descriptor.EnumValueDescriptor( | ||
1102 | 345 | name='VIEW', index=0, number=0, | ||
1103 | 346 | options=None, | ||
1104 | 347 | type=None), | ||
1105 | 348 | descriptor.EnumValueDescriptor( | ||
1106 | 349 | name='MODIFY', index=1, number=1, | ||
1107 | 350 | options=None, | ||
1108 | 351 | type=None), | ||
1109 | 352 | ], | ||
1110 | 353 | options=None, | ||
1111 | 354 | ) | ||
1112 | 355 | |||
1113 | 356 | _NOTIFYSHARE_ACCESSLEVEL = descriptor.EnumDescriptor( | ||
1114 | 357 | name='AccessLevel', | ||
1115 | 358 | full_name='ubuntuone.storageprotocol.NotifyShare.AccessLevel', | ||
1116 | 359 | filename='AccessLevel', | ||
1117 | 360 | values=[ | ||
1118 | 361 | descriptor.EnumValueDescriptor( | ||
1119 | 362 | name='VIEW', index=0, number=0, | ||
1120 | 363 | options=None, | ||
1121 | 364 | type=None), | ||
1122 | 365 | descriptor.EnumValueDescriptor( | ||
1123 | 366 | name='MODIFY', index=1, number=1, | ||
1124 | 367 | options=None, | ||
1125 | 368 | type=None), | ||
1126 | 369 | ], | ||
1127 | 370 | options=None, | ||
1128 | 371 | ) | ||
1129 | 372 | |||
1130 | 373 | _SHAREACCEPTED_ANSWER = descriptor.EnumDescriptor( | ||
1131 | 374 | name='Answer', | ||
1132 | 375 | full_name='ubuntuone.storageprotocol.ShareAccepted.Answer', | ||
1133 | 376 | filename='Answer', | ||
1134 | 377 | values=[ | ||
1135 | 378 | descriptor.EnumValueDescriptor( | ||
1136 | 379 | name='YES', index=0, number=0, | ||
1137 | 380 | options=None, | ||
1138 | 381 | type=None), | ||
1139 | 382 | descriptor.EnumValueDescriptor( | ||
1140 | 383 | name='NO', index=1, number=1, | ||
1141 | 384 | options=None, | ||
1142 | 385 | type=None), | ||
1143 | 386 | ], | ||
1144 | 387 | options=None, | ||
1145 | 388 | ) | ||
1146 | 389 | |||
1147 | 390 | _VOLUMES_VOLUMETYPE = descriptor.EnumDescriptor( | ||
1148 | 391 | name='VolumeType', | ||
1149 | 392 | full_name='ubuntuone.storageprotocol.Volumes.VolumeType', | ||
1150 | 393 | filename='VolumeType', | ||
1151 | 394 | values=[ | ||
1152 | 395 | descriptor.EnumValueDescriptor( | ||
1153 | 396 | name='ROOT', index=0, number=1, | ||
1154 | 397 | options=None, | ||
1155 | 398 | type=None), | ||
1156 | 399 | descriptor.EnumValueDescriptor( | ||
1157 | 400 | name='SHARE', index=1, number=2, | ||
1158 | 401 | options=None, | ||
1159 | 402 | type=None), | ||
1160 | 403 | descriptor.EnumValueDescriptor( | ||
1161 | 404 | name='UDF', index=2, number=3, | ||
1162 | 405 | options=None, | ||
1163 | 406 | type=None), | ||
1164 | 407 | ], | ||
1165 | 408 | options=None, | ||
1166 | 409 | ) | ||
1167 | 410 | |||
1168 | 411 | |||
1169 | 412 | _MESSAGE = descriptor.Descriptor( | ||
1170 | 413 | name='Message', | ||
1171 | 414 | full_name='ubuntuone.storageprotocol.Message', | ||
1172 | 415 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1173 | 416 | containing_type=None, | ||
1174 | 417 | fields=[ | ||
1175 | 418 | descriptor.FieldDescriptor( | ||
1176 | 419 | name='id', full_name='ubuntuone.storageprotocol.Message.id', index=0, | ||
1177 | 420 | number=1, type=5, cpp_type=1, label=2, | ||
1178 | 421 | default_value=0, | ||
1179 | 422 | message_type=None, enum_type=None, containing_type=None, | ||
1180 | 423 | is_extension=False, extension_scope=None, | ||
1181 | 424 | options=None), | ||
1182 | 425 | descriptor.FieldDescriptor( | ||
1183 | 426 | name='type', full_name='ubuntuone.storageprotocol.Message.type', index=1, | ||
1184 | 427 | number=2, type=14, cpp_type=8, label=2, | ||
1185 | 428 | default_value=0, | ||
1186 | 429 | message_type=None, enum_type=None, containing_type=None, | ||
1187 | 430 | is_extension=False, extension_scope=None, | ||
1188 | 431 | options=None), | ||
1189 | 432 | descriptor.FieldDescriptor( | ||
1190 | 433 | name='error', full_name='ubuntuone.storageprotocol.Message.error', index=2, | ||
1191 | 434 | number=3, type=11, cpp_type=10, label=1, | ||
1192 | 435 | default_value=None, | ||
1193 | 436 | message_type=None, enum_type=None, containing_type=None, | ||
1194 | 437 | is_extension=False, extension_scope=None, | ||
1195 | 438 | options=None), | ||
1196 | 439 | descriptor.FieldDescriptor( | ||
1197 | 440 | name='protocol', full_name='ubuntuone.storageprotocol.Message.protocol', index=3, | ||
1198 | 441 | number=4, type=11, cpp_type=10, label=1, | ||
1199 | 442 | default_value=None, | ||
1200 | 443 | message_type=None, enum_type=None, containing_type=None, | ||
1201 | 444 | is_extension=False, extension_scope=None, | ||
1202 | 445 | options=None), | ||
1203 | 446 | descriptor.FieldDescriptor( | ||
1204 | 447 | name='auth_parameters', full_name='ubuntuone.storageprotocol.Message.auth_parameters', index=4, | ||
1205 | 448 | number=5, type=11, cpp_type=10, label=3, | ||
1206 | 449 | default_value=[], | ||
1207 | 450 | message_type=None, enum_type=None, containing_type=None, | ||
1208 | 451 | is_extension=False, extension_scope=None, | ||
1209 | 452 | options=None), | ||
1210 | 453 | descriptor.FieldDescriptor( | ||
1211 | 454 | name='root', full_name='ubuntuone.storageprotocol.Message.root', index=5, | ||
1212 | 455 | number=6, type=11, cpp_type=10, label=1, | ||
1213 | 456 | default_value=None, | ||
1214 | 457 | message_type=None, enum_type=None, containing_type=None, | ||
1215 | 458 | is_extension=False, extension_scope=None, | ||
1216 | 459 | options=None), | ||
1217 | 460 | descriptor.FieldDescriptor( | ||
1218 | 461 | name='query', full_name='ubuntuone.storageprotocol.Message.query', index=6, | ||
1219 | 462 | number=7, type=11, cpp_type=10, label=3, | ||
1220 | 463 | default_value=[], | ||
1221 | 464 | message_type=None, enum_type=None, containing_type=None, | ||
1222 | 465 | is_extension=False, extension_scope=None, | ||
1223 | 466 | options=None), | ||
1224 | 467 | descriptor.FieldDescriptor( | ||
1225 | 468 | name='node_state', full_name='ubuntuone.storageprotocol.Message.node_state', index=7, | ||
1226 | 469 | number=8, type=11, cpp_type=10, label=1, | ||
1227 | 470 | default_value=None, | ||
1228 | 471 | message_type=None, enum_type=None, containing_type=None, | ||
1229 | 472 | is_extension=False, extension_scope=None, | ||
1230 | 473 | options=None), | ||
1231 | 474 | descriptor.FieldDescriptor( | ||
1232 | 475 | name='make', full_name='ubuntuone.storageprotocol.Message.make', index=8, | ||
1233 | 476 | number=9, type=11, cpp_type=10, label=1, | ||
1234 | 477 | default_value=None, | ||
1235 | 478 | message_type=None, enum_type=None, containing_type=None, | ||
1236 | 479 | is_extension=False, extension_scope=None, | ||
1237 | 480 | options=None), | ||
1238 | 481 | descriptor.FieldDescriptor( | ||
1239 | 482 | name='new', full_name='ubuntuone.storageprotocol.Message.new', index=9, | ||
1240 | 483 | number=10, type=11, cpp_type=10, label=1, | ||
1241 | 484 | default_value=None, | ||
1242 | 485 | message_type=None, enum_type=None, containing_type=None, | ||
1243 | 486 | is_extension=False, extension_scope=None, | ||
1244 | 487 | options=None), | ||
1245 | 488 | descriptor.FieldDescriptor( | ||
1246 | 489 | name='move', full_name='ubuntuone.storageprotocol.Message.move', index=10, | ||
1247 | 490 | number=11, type=11, cpp_type=10, label=1, | ||
1248 | 491 | default_value=None, | ||
1249 | 492 | message_type=None, enum_type=None, containing_type=None, | ||
1250 | 493 | is_extension=False, extension_scope=None, | ||
1251 | 494 | options=None), | ||
1252 | 495 | descriptor.FieldDescriptor( | ||
1253 | 496 | name='get_content', full_name='ubuntuone.storageprotocol.Message.get_content', index=11, | ||
1254 | 497 | number=12, type=11, cpp_type=10, label=1, | ||
1255 | 498 | default_value=None, | ||
1256 | 499 | message_type=None, enum_type=None, containing_type=None, | ||
1257 | 500 | is_extension=False, extension_scope=None, | ||
1258 | 501 | options=None), | ||
1259 | 502 | descriptor.FieldDescriptor( | ||
1260 | 503 | name='put_content', full_name='ubuntuone.storageprotocol.Message.put_content', index=12, | ||
1261 | 504 | number=13, type=11, cpp_type=10, label=1, | ||
1262 | 505 | default_value=None, | ||
1263 | 506 | message_type=None, enum_type=None, containing_type=None, | ||
1264 | 507 | is_extension=False, extension_scope=None, | ||
1265 | 508 | options=None), | ||
1266 | 509 | descriptor.FieldDescriptor( | ||
1267 | 510 | name='upload_in_progress', full_name='ubuntuone.storageprotocol.Message.upload_in_progress', index=13, | ||
1268 | 511 | number=14, type=11, cpp_type=10, label=1, | ||
1269 | 512 | default_value=None, | ||
1270 | 513 | message_type=None, enum_type=None, containing_type=None, | ||
1271 | 514 | is_extension=False, extension_scope=None, | ||
1272 | 515 | options=None), | ||
1273 | 516 | descriptor.FieldDescriptor( | ||
1274 | 517 | name='bytes', full_name='ubuntuone.storageprotocol.Message.bytes', index=14, | ||
1275 | 518 | number=15, type=11, cpp_type=10, label=1, | ||
1276 | 519 | default_value=None, | ||
1277 | 520 | message_type=None, enum_type=None, containing_type=None, | ||
1278 | 521 | is_extension=False, extension_scope=None, | ||
1279 | 522 | options=None), | ||
1280 | 523 | descriptor.FieldDescriptor( | ||
1281 | 524 | name='unlink', full_name='ubuntuone.storageprotocol.Message.unlink', index=15, | ||
1282 | 525 | number=16, type=11, cpp_type=10, label=1, | ||
1283 | 526 | default_value=None, | ||
1284 | 527 | message_type=None, enum_type=None, containing_type=None, | ||
1285 | 528 | is_extension=False, extension_scope=None, | ||
1286 | 529 | options=None), | ||
1287 | 530 | descriptor.FieldDescriptor( | ||
1288 | 531 | name='cancel_request', full_name='ubuntuone.storageprotocol.Message.cancel_request', index=16, | ||
1289 | 532 | number=17, type=11, cpp_type=10, label=1, | ||
1290 | 533 | default_value=None, | ||
1291 | 534 | message_type=None, enum_type=None, containing_type=None, | ||
1292 | 535 | is_extension=False, extension_scope=None, | ||
1293 | 536 | options=None), | ||
1294 | 537 | descriptor.FieldDescriptor( | ||
1295 | 538 | name='node_attr', full_name='ubuntuone.storageprotocol.Message.node_attr', index=17, | ||
1296 | 539 | number=18, type=11, cpp_type=10, label=1, | ||
1297 | 540 | default_value=None, | ||
1298 | 541 | message_type=None, enum_type=None, containing_type=None, | ||
1299 | 542 | is_extension=False, extension_scope=None, | ||
1300 | 543 | options=None), | ||
1301 | 544 | descriptor.FieldDescriptor( | ||
1302 | 545 | name='create_share', full_name='ubuntuone.storageprotocol.Message.create_share', index=18, | ||
1303 | 546 | number=19, type=11, cpp_type=10, label=1, | ||
1304 | 547 | default_value=None, | ||
1305 | 548 | message_type=None, enum_type=None, containing_type=None, | ||
1306 | 549 | is_extension=False, extension_scope=None, | ||
1307 | 550 | options=None), | ||
1308 | 551 | descriptor.FieldDescriptor( | ||
1309 | 552 | name='shares', full_name='ubuntuone.storageprotocol.Message.shares', index=19, | ||
1310 | 553 | number=20, type=11, cpp_type=10, label=1, | ||
1311 | 554 | default_value=None, | ||
1312 | 555 | message_type=None, enum_type=None, containing_type=None, | ||
1313 | 556 | is_extension=False, extension_scope=None, | ||
1314 | 557 | options=None), | ||
1315 | 558 | descriptor.FieldDescriptor( | ||
1316 | 559 | name='notify_share', full_name='ubuntuone.storageprotocol.Message.notify_share', index=20, | ||
1317 | 560 | number=21, type=11, cpp_type=10, label=1, | ||
1318 | 561 | default_value=None, | ||
1319 | 562 | message_type=None, enum_type=None, containing_type=None, | ||
1320 | 563 | is_extension=False, extension_scope=None, | ||
1321 | 564 | options=None), | ||
1322 | 565 | descriptor.FieldDescriptor( | ||
1323 | 566 | name='share_accepted', full_name='ubuntuone.storageprotocol.Message.share_accepted', index=21, | ||
1324 | 567 | number=22, type=11, cpp_type=10, label=1, | ||
1325 | 568 | default_value=None, | ||
1326 | 569 | message_type=None, enum_type=None, containing_type=None, | ||
1327 | 570 | is_extension=False, extension_scope=None, | ||
1328 | 571 | options=None), | ||
1329 | 572 | descriptor.FieldDescriptor( | ||
1330 | 573 | name='share_deleted', full_name='ubuntuone.storageprotocol.Message.share_deleted', index=22, | ||
1331 | 574 | number=23, type=11, cpp_type=10, label=1, | ||
1332 | 575 | default_value=None, | ||
1333 | 576 | message_type=None, enum_type=None, containing_type=None, | ||
1334 | 577 | is_extension=False, extension_scope=None, | ||
1335 | 578 | options=None), | ||
1336 | 579 | descriptor.FieldDescriptor( | ||
1337 | 580 | name='share_created', full_name='ubuntuone.storageprotocol.Message.share_created', index=23, | ||
1338 | 581 | number=24, type=11, cpp_type=10, label=1, | ||
1339 | 582 | default_value=None, | ||
1340 | 583 | message_type=None, enum_type=None, containing_type=None, | ||
1341 | 584 | is_extension=False, extension_scope=None, | ||
1342 | 585 | options=None), | ||
1343 | 586 | descriptor.FieldDescriptor( | ||
1344 | 587 | name='delete_share', full_name='ubuntuone.storageprotocol.Message.delete_share', index=24, | ||
1345 | 588 | number=25, type=11, cpp_type=10, label=1, | ||
1346 | 589 | default_value=None, | ||
1347 | 590 | message_type=None, enum_type=None, containing_type=None, | ||
1348 | 591 | is_extension=False, extension_scope=None, | ||
1349 | 592 | options=None), | ||
1350 | 593 | descriptor.FieldDescriptor( | ||
1351 | 594 | name='create_udf', full_name='ubuntuone.storageprotocol.Message.create_udf', index=25, | ||
1352 | 595 | number=33, type=11, cpp_type=10, label=1, | ||
1353 | 596 | default_value=None, | ||
1354 | 597 | message_type=None, enum_type=None, containing_type=None, | ||
1355 | 598 | is_extension=False, extension_scope=None, | ||
1356 | 599 | options=None), | ||
1357 | 600 | descriptor.FieldDescriptor( | ||
1358 | 601 | name='list_volumes', full_name='ubuntuone.storageprotocol.Message.list_volumes', index=26, | ||
1359 | 602 | number=34, type=11, cpp_type=10, label=1, | ||
1360 | 603 | default_value=None, | ||
1361 | 604 | message_type=None, enum_type=None, containing_type=None, | ||
1362 | 605 | is_extension=False, extension_scope=None, | ||
1363 | 606 | options=None), | ||
1364 | 607 | descriptor.FieldDescriptor( | ||
1365 | 608 | name='volume_deleted', full_name='ubuntuone.storageprotocol.Message.volume_deleted', index=27, | ||
1366 | 609 | number=35, type=11, cpp_type=10, label=1, | ||
1367 | 610 | default_value=None, | ||
1368 | 611 | message_type=None, enum_type=None, containing_type=None, | ||
1369 | 612 | is_extension=False, extension_scope=None, | ||
1370 | 613 | options=None), | ||
1371 | 614 | descriptor.FieldDescriptor( | ||
1372 | 615 | name='volume_created', full_name='ubuntuone.storageprotocol.Message.volume_created', index=28, | ||
1373 | 616 | number=36, type=11, cpp_type=10, label=1, | ||
1374 | 617 | default_value=None, | ||
1375 | 618 | message_type=None, enum_type=None, containing_type=None, | ||
1376 | 619 | is_extension=False, extension_scope=None, | ||
1377 | 620 | options=None), | ||
1378 | 621 | descriptor.FieldDescriptor( | ||
1379 | 622 | name='delete_volume', full_name='ubuntuone.storageprotocol.Message.delete_volume', index=29, | ||
1380 | 623 | number=37, type=11, cpp_type=10, label=1, | ||
1381 | 624 | default_value=None, | ||
1382 | 625 | message_type=None, enum_type=None, containing_type=None, | ||
1383 | 626 | is_extension=False, extension_scope=None, | ||
1384 | 627 | options=None), | ||
1385 | 628 | descriptor.FieldDescriptor( | ||
1386 | 629 | name='query_caps', full_name='ubuntuone.storageprotocol.Message.query_caps', index=30, | ||
1387 | 630 | number=26, type=11, cpp_type=10, label=3, | ||
1388 | 631 | default_value=[], | ||
1389 | 632 | message_type=None, enum_type=None, containing_type=None, | ||
1390 | 633 | is_extension=False, extension_scope=None, | ||
1391 | 634 | options=None), | ||
1392 | 635 | descriptor.FieldDescriptor( | ||
1393 | 636 | name='set_caps', full_name='ubuntuone.storageprotocol.Message.set_caps', index=31, | ||
1394 | 637 | number=27, type=11, cpp_type=10, label=3, | ||
1395 | 638 | default_value=[], | ||
1396 | 639 | message_type=None, enum_type=None, containing_type=None, | ||
1397 | 640 | is_extension=False, extension_scope=None, | ||
1398 | 641 | options=None), | ||
1399 | 642 | descriptor.FieldDescriptor( | ||
1400 | 643 | name='accept_caps', full_name='ubuntuone.storageprotocol.Message.accept_caps', index=32, | ||
1401 | 644 | number=28, type=11, cpp_type=10, label=1, | ||
1402 | 645 | default_value=None, | ||
1403 | 646 | message_type=None, enum_type=None, containing_type=None, | ||
1404 | 647 | is_extension=False, extension_scope=None, | ||
1405 | 648 | options=None), | ||
1406 | 649 | descriptor.FieldDescriptor( | ||
1407 | 650 | name='free_space_info', full_name='ubuntuone.storageprotocol.Message.free_space_info', index=33, | ||
1408 | 651 | number=29, type=11, cpp_type=10, label=1, | ||
1409 | 652 | default_value=None, | ||
1410 | 653 | message_type=None, enum_type=None, containing_type=None, | ||
1411 | 654 | is_extension=False, extension_scope=None, | ||
1412 | 655 | options=None), | ||
1413 | 656 | descriptor.FieldDescriptor( | ||
1414 | 657 | name='free_space_inquiry', full_name='ubuntuone.storageprotocol.Message.free_space_inquiry', index=34, | ||
1415 | 658 | number=30, type=11, cpp_type=10, label=1, | ||
1416 | 659 | default_value=None, | ||
1417 | 660 | message_type=None, enum_type=None, containing_type=None, | ||
1418 | 661 | is_extension=False, extension_scope=None, | ||
1419 | 662 | options=None), | ||
1420 | 663 | descriptor.FieldDescriptor( | ||
1421 | 664 | name='account_info', full_name='ubuntuone.storageprotocol.Message.account_info', index=35, | ||
1422 | 665 | number=31, type=11, cpp_type=10, label=1, | ||
1423 | 666 | default_value=None, | ||
1424 | 667 | message_type=None, enum_type=None, containing_type=None, | ||
1425 | 668 | is_extension=False, extension_scope=None, | ||
1426 | 669 | options=None), | ||
1427 | 670 | descriptor.FieldDescriptor( | ||
1428 | 671 | name='begin_content', full_name='ubuntuone.storageprotocol.Message.begin_content', index=36, | ||
1429 | 672 | number=32, type=11, cpp_type=10, label=1, | ||
1430 | 673 | default_value=None, | ||
1431 | 674 | message_type=None, enum_type=None, containing_type=None, | ||
1432 | 675 | is_extension=False, extension_scope=None, | ||
1433 | 676 | options=None), | ||
1434 | 677 | ], | ||
1435 | 678 | extensions=[ | ||
1436 | 679 | ], | ||
1437 | 680 | nested_types=[], # TODO(robinson): Implement. | ||
1438 | 681 | enum_types=[ | ||
1439 | 682 | _MESSAGE_MESSAGETYPE, | ||
1440 | 683 | ], | ||
1441 | 684 | options=None) | ||
1442 | 685 | |||
1443 | 686 | |||
1444 | 687 | _ERROR = descriptor.Descriptor( | ||
1445 | 688 | name='Error', | ||
1446 | 689 | full_name='ubuntuone.storageprotocol.Error', | ||
1447 | 690 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1448 | 691 | containing_type=None, | ||
1449 | 692 | fields=[ | ||
1450 | 693 | descriptor.FieldDescriptor( | ||
1451 | 694 | name='type', full_name='ubuntuone.storageprotocol.Error.type', index=0, | ||
1452 | 695 | number=1, type=14, cpp_type=8, label=2, | ||
1453 | 696 | default_value=0, | ||
1454 | 697 | message_type=None, enum_type=None, containing_type=None, | ||
1455 | 698 | is_extension=False, extension_scope=None, | ||
1456 | 699 | options=None), | ||
1457 | 700 | descriptor.FieldDescriptor( | ||
1458 | 701 | name='comment', full_name='ubuntuone.storageprotocol.Error.comment', index=1, | ||
1459 | 702 | number=2, type=9, cpp_type=9, label=1, | ||
1460 | 703 | default_value=unicode("", "utf-8"), | ||
1461 | 704 | message_type=None, enum_type=None, containing_type=None, | ||
1462 | 705 | is_extension=False, extension_scope=None, | ||
1463 | 706 | options=None), | ||
1464 | 707 | ], | ||
1465 | 708 | extensions=[ | ||
1466 | 709 | ], | ||
1467 | 710 | nested_types=[], # TODO(robinson): Implement. | ||
1468 | 711 | enum_types=[ | ||
1469 | 712 | _ERROR_ERRORTYPE, | ||
1470 | 713 | ], | ||
1471 | 714 | options=None) | ||
1472 | 715 | |||
1473 | 716 | |||
1474 | 717 | _PROTOCOL = descriptor.Descriptor( | ||
1475 | 718 | name='Protocol', | ||
1476 | 719 | full_name='ubuntuone.storageprotocol.Protocol', | ||
1477 | 720 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1478 | 721 | containing_type=None, | ||
1479 | 722 | fields=[ | ||
1480 | 723 | descriptor.FieldDescriptor( | ||
1481 | 724 | name='version', full_name='ubuntuone.storageprotocol.Protocol.version', index=0, | ||
1482 | 725 | number=1, type=5, cpp_type=1, label=2, | ||
1483 | 726 | default_value=0, | ||
1484 | 727 | message_type=None, enum_type=None, containing_type=None, | ||
1485 | 728 | is_extension=False, extension_scope=None, | ||
1486 | 729 | options=None), | ||
1487 | 730 | ], | ||
1488 | 731 | extensions=[ | ||
1489 | 732 | ], | ||
1490 | 733 | nested_types=[], # TODO(robinson): Implement. | ||
1491 | 734 | enum_types=[ | ||
1492 | 735 | ], | ||
1493 | 736 | options=None) | ||
1494 | 737 | |||
1495 | 738 | |||
1496 | 739 | _AUTHPARAMETER = descriptor.Descriptor( | ||
1497 | 740 | name='AuthParameter', | ||
1498 | 741 | full_name='ubuntuone.storageprotocol.AuthParameter', | ||
1499 | 742 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1500 | 743 | containing_type=None, | ||
1501 | 744 | fields=[ | ||
1502 | 745 | descriptor.FieldDescriptor( | ||
1503 | 746 | name='name', full_name='ubuntuone.storageprotocol.AuthParameter.name', index=0, | ||
1504 | 747 | number=1, type=9, cpp_type=9, label=2, | ||
1505 | 748 | default_value=unicode("", "utf-8"), | ||
1506 | 749 | message_type=None, enum_type=None, containing_type=None, | ||
1507 | 750 | is_extension=False, extension_scope=None, | ||
1508 | 751 | options=None), | ||
1509 | 752 | descriptor.FieldDescriptor( | ||
1510 | 753 | name='value', full_name='ubuntuone.storageprotocol.AuthParameter.value', index=1, | ||
1511 | 754 | number=2, type=9, cpp_type=9, label=2, | ||
1512 | 755 | default_value=unicode("", "utf-8"), | ||
1513 | 756 | message_type=None, enum_type=None, containing_type=None, | ||
1514 | 757 | is_extension=False, extension_scope=None, | ||
1515 | 758 | options=None), | ||
1516 | 759 | ], | ||
1517 | 760 | extensions=[ | ||
1518 | 761 | ], | ||
1519 | 762 | nested_types=[], # TODO(robinson): Implement. | ||
1520 | 763 | enum_types=[ | ||
1521 | 764 | ], | ||
1522 | 765 | options=None) | ||
1523 | 766 | |||
1524 | 767 | |||
1525 | 768 | _MAKE = descriptor.Descriptor( | ||
1526 | 769 | name='Make', | ||
1527 | 770 | full_name='ubuntuone.storageprotocol.Make', | ||
1528 | 771 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1529 | 772 | containing_type=None, | ||
1530 | 773 | fields=[ | ||
1531 | 774 | descriptor.FieldDescriptor( | ||
1532 | 775 | name='share', full_name='ubuntuone.storageprotocol.Make.share', index=0, | ||
1533 | 776 | number=1, type=12, cpp_type=9, label=1, | ||
1534 | 777 | default_value="", | ||
1535 | 778 | message_type=None, enum_type=None, containing_type=None, | ||
1536 | 779 | is_extension=False, extension_scope=None, | ||
1537 | 780 | options=None), | ||
1538 | 781 | descriptor.FieldDescriptor( | ||
1539 | 782 | name='parent_node', full_name='ubuntuone.storageprotocol.Make.parent_node', index=1, | ||
1540 | 783 | number=2, type=12, cpp_type=9, label=1, | ||
1541 | 784 | default_value="", | ||
1542 | 785 | message_type=None, enum_type=None, containing_type=None, | ||
1543 | 786 | is_extension=False, extension_scope=None, | ||
1544 | 787 | options=None), | ||
1545 | 788 | descriptor.FieldDescriptor( | ||
1546 | 789 | name='name', full_name='ubuntuone.storageprotocol.Make.name', index=2, | ||
1547 | 790 | number=3, type=9, cpp_type=9, label=1, | ||
1548 | 791 | default_value=unicode("", "utf-8"), | ||
1549 | 792 | message_type=None, enum_type=None, containing_type=None, | ||
1550 | 793 | is_extension=False, extension_scope=None, | ||
1551 | 794 | options=None), | ||
1552 | 795 | ], | ||
1553 | 796 | extensions=[ | ||
1554 | 797 | ], | ||
1555 | 798 | nested_types=[], # TODO(robinson): Implement. | ||
1556 | 799 | enum_types=[ | ||
1557 | 800 | ], | ||
1558 | 801 | options=None) | ||
1559 | 802 | |||
1560 | 803 | |||
1561 | 804 | _NEW = descriptor.Descriptor( | ||
1562 | 805 | name='New', | ||
1563 | 806 | full_name='ubuntuone.storageprotocol.New', | ||
1564 | 807 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1565 | 808 | containing_type=None, | ||
1566 | 809 | fields=[ | ||
1567 | 810 | descriptor.FieldDescriptor( | ||
1568 | 811 | name='node', full_name='ubuntuone.storageprotocol.New.node', index=0, | ||
1569 | 812 | number=1, type=12, cpp_type=9, label=1, | ||
1570 | 813 | default_value="", | ||
1571 | 814 | message_type=None, enum_type=None, containing_type=None, | ||
1572 | 815 | is_extension=False, extension_scope=None, | ||
1573 | 816 | options=None), | ||
1574 | 817 | descriptor.FieldDescriptor( | ||
1575 | 818 | name='parent_node', full_name='ubuntuone.storageprotocol.New.parent_node', index=1, | ||
1576 | 819 | number=2, type=12, cpp_type=9, label=1, | ||
1577 | 820 | default_value="", | ||
1578 | 821 | message_type=None, enum_type=None, containing_type=None, | ||
1579 | 822 | is_extension=False, extension_scope=None, | ||
1580 | 823 | options=None), | ||
1581 | 824 | descriptor.FieldDescriptor( | ||
1582 | 825 | name='name', full_name='ubuntuone.storageprotocol.New.name', index=2, | ||
1583 | 826 | number=3, type=9, cpp_type=9, label=1, | ||
1584 | 827 | default_value=unicode("", "utf-8"), | ||
1585 | 828 | message_type=None, enum_type=None, containing_type=None, | ||
1586 | 829 | is_extension=False, extension_scope=None, | ||
1587 | 830 | options=None), | ||
1588 | 831 | ], | ||
1589 | 832 | extensions=[ | ||
1590 | 833 | ], | ||
1591 | 834 | nested_types=[], # TODO(robinson): Implement. | ||
1592 | 835 | enum_types=[ | ||
1593 | 836 | ], | ||
1594 | 837 | options=None) | ||
1595 | 838 | |||
1596 | 839 | |||
1597 | 840 | _ROOT = descriptor.Descriptor( | ||
1598 | 841 | name='Root', | ||
1599 | 842 | full_name='ubuntuone.storageprotocol.Root', | ||
1600 | 843 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1601 | 844 | containing_type=None, | ||
1602 | 845 | fields=[ | ||
1603 | 846 | descriptor.FieldDescriptor( | ||
1604 | 847 | name='node', full_name='ubuntuone.storageprotocol.Root.node', index=0, | ||
1605 | 848 | number=1, type=12, cpp_type=9, label=1, | ||
1606 | 849 | default_value="", | ||
1607 | 850 | message_type=None, enum_type=None, containing_type=None, | ||
1608 | 851 | is_extension=False, extension_scope=None, | ||
1609 | 852 | options=None), | ||
1610 | 853 | ], | ||
1611 | 854 | extensions=[ | ||
1612 | 855 | ], | ||
1613 | 856 | nested_types=[], # TODO(robinson): Implement. | ||
1614 | 857 | enum_types=[ | ||
1615 | 858 | ], | ||
1616 | 859 | options=None) | ||
1617 | 860 | |||
1618 | 861 | |||
1619 | 862 | _QUERY = descriptor.Descriptor( | ||
1620 | 863 | name='Query', | ||
1621 | 864 | full_name='ubuntuone.storageprotocol.Query', | ||
1622 | 865 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1623 | 866 | containing_type=None, | ||
1624 | 867 | fields=[ | ||
1625 | 868 | descriptor.FieldDescriptor( | ||
1626 | 869 | name='share', full_name='ubuntuone.storageprotocol.Query.share', index=0, | ||
1627 | 870 | number=1, type=12, cpp_type=9, label=1, | ||
1628 | 871 | default_value="", | ||
1629 | 872 | message_type=None, enum_type=None, containing_type=None, | ||
1630 | 873 | is_extension=False, extension_scope=None, | ||
1631 | 874 | options=None), | ||
1632 | 875 | descriptor.FieldDescriptor( | ||
1633 | 876 | name='node', full_name='ubuntuone.storageprotocol.Query.node', index=1, | ||
1634 | 877 | number=2, type=12, cpp_type=9, label=1, | ||
1635 | 878 | default_value="", | ||
1636 | 879 | message_type=None, enum_type=None, containing_type=None, | ||
1637 | 880 | is_extension=False, extension_scope=None, | ||
1638 | 881 | options=None), | ||
1639 | 882 | descriptor.FieldDescriptor( | ||
1640 | 883 | name='hash', full_name='ubuntuone.storageprotocol.Query.hash', index=2, | ||
1641 | 884 | number=3, type=12, cpp_type=9, label=1, | ||
1642 | 885 | default_value="", | ||
1643 | 886 | message_type=None, enum_type=None, containing_type=None, | ||
1644 | 887 | is_extension=False, extension_scope=None, | ||
1645 | 888 | options=None), | ||
1646 | 889 | ], | ||
1647 | 890 | extensions=[ | ||
1648 | 891 | ], | ||
1649 | 892 | nested_types=[], # TODO(robinson): Implement. | ||
1650 | 893 | enum_types=[ | ||
1651 | 894 | ], | ||
1652 | 895 | options=None) | ||
1653 | 896 | |||
1654 | 897 | |||
1655 | 898 | _NODESTATE = descriptor.Descriptor( | ||
1656 | 899 | name='NodeState', | ||
1657 | 900 | full_name='ubuntuone.storageprotocol.NodeState', | ||
1658 | 901 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1659 | 902 | containing_type=None, | ||
1660 | 903 | fields=[ | ||
1661 | 904 | descriptor.FieldDescriptor( | ||
1662 | 905 | name='share', full_name='ubuntuone.storageprotocol.NodeState.share', index=0, | ||
1663 | 906 | number=1, type=12, cpp_type=9, label=1, | ||
1664 | 907 | default_value="", | ||
1665 | 908 | message_type=None, enum_type=None, containing_type=None, | ||
1666 | 909 | is_extension=False, extension_scope=None, | ||
1667 | 910 | options=None), | ||
1668 | 911 | descriptor.FieldDescriptor( | ||
1669 | 912 | name='node', full_name='ubuntuone.storageprotocol.NodeState.node', index=1, | ||
1670 | 913 | number=2, type=12, cpp_type=9, label=1, | ||
1671 | 914 | default_value="", | ||
1672 | 915 | message_type=None, enum_type=None, containing_type=None, | ||
1673 | 916 | is_extension=False, extension_scope=None, | ||
1674 | 917 | options=None), | ||
1675 | 918 | descriptor.FieldDescriptor( | ||
1676 | 919 | name='hash', full_name='ubuntuone.storageprotocol.NodeState.hash', index=2, | ||
1677 | 920 | number=3, type=12, cpp_type=9, label=1, | ||
1678 | 921 | default_value="", | ||
1679 | 922 | message_type=None, enum_type=None, containing_type=None, | ||
1680 | 923 | is_extension=False, extension_scope=None, | ||
1681 | 924 | options=None), | ||
1682 | 925 | ], | ||
1683 | 926 | extensions=[ | ||
1684 | 927 | ], | ||
1685 | 928 | nested_types=[], # TODO(robinson): Implement. | ||
1686 | 929 | enum_types=[ | ||
1687 | 930 | ], | ||
1688 | 931 | options=None) | ||
1689 | 932 | |||
1690 | 933 | |||
1691 | 934 | _GETCONTENT = descriptor.Descriptor( | ||
1692 | 935 | name='GetContent', | ||
1693 | 936 | full_name='ubuntuone.storageprotocol.GetContent', | ||
1694 | 937 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1695 | 938 | containing_type=None, | ||
1696 | 939 | fields=[ | ||
1697 | 940 | descriptor.FieldDescriptor( | ||
1698 | 941 | name='share', full_name='ubuntuone.storageprotocol.GetContent.share', index=0, | ||
1699 | 942 | number=1, type=12, cpp_type=9, label=1, | ||
1700 | 943 | default_value="", | ||
1701 | 944 | message_type=None, enum_type=None, containing_type=None, | ||
1702 | 945 | is_extension=False, extension_scope=None, | ||
1703 | 946 | options=None), | ||
1704 | 947 | descriptor.FieldDescriptor( | ||
1705 | 948 | name='node', full_name='ubuntuone.storageprotocol.GetContent.node', index=1, | ||
1706 | 949 | number=2, type=12, cpp_type=9, label=1, | ||
1707 | 950 | default_value="", | ||
1708 | 951 | message_type=None, enum_type=None, containing_type=None, | ||
1709 | 952 | is_extension=False, extension_scope=None, | ||
1710 | 953 | options=None), | ||
1711 | 954 | descriptor.FieldDescriptor( | ||
1712 | 955 | name='hash', full_name='ubuntuone.storageprotocol.GetContent.hash', index=2, | ||
1713 | 956 | number=3, type=12, cpp_type=9, label=1, | ||
1714 | 957 | default_value="", | ||
1715 | 958 | message_type=None, enum_type=None, containing_type=None, | ||
1716 | 959 | is_extension=False, extension_scope=None, | ||
1717 | 960 | options=None), | ||
1718 | 961 | descriptor.FieldDescriptor( | ||
1719 | 962 | name='offset', full_name='ubuntuone.storageprotocol.GetContent.offset', index=3, | ||
1720 | 963 | number=4, type=3, cpp_type=2, label=1, | ||
1721 | 964 | default_value=0, | ||
1722 | 965 | message_type=None, enum_type=None, containing_type=None, | ||
1723 | 966 | is_extension=False, extension_scope=None, | ||
1724 | 967 | options=None), | ||
1725 | 968 | ], | ||
1726 | 969 | extensions=[ | ||
1727 | 970 | ], | ||
1728 | 971 | nested_types=[], # TODO(robinson): Implement. | ||
1729 | 972 | enum_types=[ | ||
1730 | 973 | ], | ||
1731 | 974 | options=None) | ||
1732 | 975 | |||
1733 | 976 | |||
1734 | 977 | _CANCELREQUEST = descriptor.Descriptor( | ||
1735 | 978 | name='CancelRequest', | ||
1736 | 979 | full_name='ubuntuone.storageprotocol.CancelRequest', | ||
1737 | 980 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1738 | 981 | containing_type=None, | ||
1739 | 982 | fields=[ | ||
1740 | 983 | ], | ||
1741 | 984 | extensions=[ | ||
1742 | 985 | ], | ||
1743 | 986 | nested_types=[], # TODO(robinson): Implement. | ||
1744 | 987 | enum_types=[ | ||
1745 | 988 | ], | ||
1746 | 989 | options=None) | ||
1747 | 990 | |||
1748 | 991 | |||
1749 | 992 | _NODEATTR = descriptor.Descriptor( | ||
1750 | 993 | name='NodeAttr', | ||
1751 | 994 | full_name='ubuntuone.storageprotocol.NodeAttr', | ||
1752 | 995 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1753 | 996 | containing_type=None, | ||
1754 | 997 | fields=[ | ||
1755 | 998 | descriptor.FieldDescriptor( | ||
1756 | 999 | name='deflated_size', full_name='ubuntuone.storageprotocol.NodeAttr.deflated_size', index=0, | ||
1757 | 1000 | number=1, type=4, cpp_type=4, label=1, | ||
1758 | 1001 | default_value=0, | ||
1759 | 1002 | message_type=None, enum_type=None, containing_type=None, | ||
1760 | 1003 | is_extension=False, extension_scope=None, | ||
1761 | 1004 | options=None), | ||
1762 | 1005 | descriptor.FieldDescriptor( | ||
1763 | 1006 | name='size', full_name='ubuntuone.storageprotocol.NodeAttr.size', index=1, | ||
1764 | 1007 | number=2, type=4, cpp_type=4, label=1, | ||
1765 | 1008 | default_value=0, | ||
1766 | 1009 | message_type=None, enum_type=None, containing_type=None, | ||
1767 | 1010 | is_extension=False, extension_scope=None, | ||
1768 | 1011 | options=None), | ||
1769 | 1012 | descriptor.FieldDescriptor( | ||
1770 | 1013 | name='hash', full_name='ubuntuone.storageprotocol.NodeAttr.hash', index=2, | ||
1771 | 1014 | number=3, type=12, cpp_type=9, label=1, | ||
1772 | 1015 | default_value="", | ||
1773 | 1016 | message_type=None, enum_type=None, containing_type=None, | ||
1774 | 1017 | is_extension=False, extension_scope=None, | ||
1775 | 1018 | options=None), | ||
1776 | 1019 | descriptor.FieldDescriptor( | ||
1777 | 1020 | name='crc32', full_name='ubuntuone.storageprotocol.NodeAttr.crc32', index=3, | ||
1778 | 1021 | number=4, type=13, cpp_type=3, label=1, | ||
1779 | 1022 | default_value=0, | ||
1780 | 1023 | message_type=None, enum_type=None, containing_type=None, | ||
1781 | 1024 | is_extension=False, extension_scope=None, | ||
1782 | 1025 | options=None), | ||
1783 | 1026 | ], | ||
1784 | 1027 | extensions=[ | ||
1785 | 1028 | ], | ||
1786 | 1029 | nested_types=[], # TODO(robinson): Implement. | ||
1787 | 1030 | enum_types=[ | ||
1788 | 1031 | ], | ||
1789 | 1032 | options=None) | ||
1790 | 1033 | |||
1791 | 1034 | |||
1792 | 1035 | _BYTES = descriptor.Descriptor( | ||
1793 | 1036 | name='Bytes', | ||
1794 | 1037 | full_name='ubuntuone.storageprotocol.Bytes', | ||
1795 | 1038 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1796 | 1039 | containing_type=None, | ||
1797 | 1040 | fields=[ | ||
1798 | 1041 | descriptor.FieldDescriptor( | ||
1799 | 1042 | name='bytes', full_name='ubuntuone.storageprotocol.Bytes.bytes', index=0, | ||
1800 | 1043 | number=1, type=12, cpp_type=9, label=1, | ||
1801 | 1044 | default_value="", | ||
1802 | 1045 | message_type=None, enum_type=None, containing_type=None, | ||
1803 | 1046 | is_extension=False, extension_scope=None, | ||
1804 | 1047 | options=None), | ||
1805 | 1048 | ], | ||
1806 | 1049 | extensions=[ | ||
1807 | 1050 | ], | ||
1808 | 1051 | nested_types=[], # TODO(robinson): Implement. | ||
1809 | 1052 | enum_types=[ | ||
1810 | 1053 | ], | ||
1811 | 1054 | options=None) | ||
1812 | 1055 | |||
1813 | 1056 | |||
1814 | 1057 | _PUTCONTENT = descriptor.Descriptor( | ||
1815 | 1058 | name='PutContent', | ||
1816 | 1059 | full_name='ubuntuone.storageprotocol.PutContent', | ||
1817 | 1060 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1818 | 1061 | containing_type=None, | ||
1819 | 1062 | fields=[ | ||
1820 | 1063 | descriptor.FieldDescriptor( | ||
1821 | 1064 | name='share', full_name='ubuntuone.storageprotocol.PutContent.share', index=0, | ||
1822 | 1065 | number=1, type=12, cpp_type=9, label=1, | ||
1823 | 1066 | default_value="", | ||
1824 | 1067 | message_type=None, enum_type=None, containing_type=None, | ||
1825 | 1068 | is_extension=False, extension_scope=None, | ||
1826 | 1069 | options=None), | ||
1827 | 1070 | descriptor.FieldDescriptor( | ||
1828 | 1071 | name='node', full_name='ubuntuone.storageprotocol.PutContent.node', index=1, | ||
1829 | 1072 | number=2, type=12, cpp_type=9, label=1, | ||
1830 | 1073 | default_value="", | ||
1831 | 1074 | message_type=None, enum_type=None, containing_type=None, | ||
1832 | 1075 | is_extension=False, extension_scope=None, | ||
1833 | 1076 | options=None), | ||
1834 | 1077 | descriptor.FieldDescriptor( | ||
1835 | 1078 | name='previous_hash', full_name='ubuntuone.storageprotocol.PutContent.previous_hash', index=2, | ||
1836 | 1079 | number=3, type=12, cpp_type=9, label=1, | ||
1837 | 1080 | default_value="", | ||
1838 | 1081 | message_type=None, enum_type=None, containing_type=None, | ||
1839 | 1082 | is_extension=False, extension_scope=None, | ||
1840 | 1083 | options=None), | ||
1841 | 1084 | descriptor.FieldDescriptor( | ||
1842 | 1085 | name='hash', full_name='ubuntuone.storageprotocol.PutContent.hash', index=3, | ||
1843 | 1086 | number=4, type=12, cpp_type=9, label=1, | ||
1844 | 1087 | default_value="", | ||
1845 | 1088 | message_type=None, enum_type=None, containing_type=None, | ||
1846 | 1089 | is_extension=False, extension_scope=None, | ||
1847 | 1090 | options=None), | ||
1848 | 1091 | descriptor.FieldDescriptor( | ||
1849 | 1092 | name='crc32', full_name='ubuntuone.storageprotocol.PutContent.crc32', index=4, | ||
1850 | 1093 | number=5, type=13, cpp_type=3, label=1, | ||
1851 | 1094 | default_value=0, | ||
1852 | 1095 | message_type=None, enum_type=None, containing_type=None, | ||
1853 | 1096 | is_extension=False, extension_scope=None, | ||
1854 | 1097 | options=None), | ||
1855 | 1098 | descriptor.FieldDescriptor( | ||
1856 | 1099 | name='size', full_name='ubuntuone.storageprotocol.PutContent.size', index=5, | ||
1857 | 1100 | number=6, type=4, cpp_type=4, label=1, | ||
1858 | 1101 | default_value=0, | ||
1859 | 1102 | message_type=None, enum_type=None, containing_type=None, | ||
1860 | 1103 | is_extension=False, extension_scope=None, | ||
1861 | 1104 | options=None), | ||
1862 | 1105 | descriptor.FieldDescriptor( | ||
1863 | 1106 | name='deflated_size', full_name='ubuntuone.storageprotocol.PutContent.deflated_size', index=6, | ||
1864 | 1107 | number=7, type=4, cpp_type=4, label=1, | ||
1865 | 1108 | default_value=0, | ||
1866 | 1109 | message_type=None, enum_type=None, containing_type=None, | ||
1867 | 1110 | is_extension=False, extension_scope=None, | ||
1868 | 1111 | options=None), | ||
1869 | 1112 | ], | ||
1870 | 1113 | extensions=[ | ||
1871 | 1114 | ], | ||
1872 | 1115 | nested_types=[], # TODO(robinson): Implement. | ||
1873 | 1116 | enum_types=[ | ||
1874 | 1117 | ], | ||
1875 | 1118 | options=None) | ||
1876 | 1119 | |||
1877 | 1120 | |||
1878 | 1121 | _BEGINCONTENT = descriptor.Descriptor( | ||
1879 | 1122 | name='BeginContent', | ||
1880 | 1123 | full_name='ubuntuone.storageprotocol.BeginContent', | ||
1881 | 1124 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1882 | 1125 | containing_type=None, | ||
1883 | 1126 | fields=[ | ||
1884 | 1127 | descriptor.FieldDescriptor( | ||
1885 | 1128 | name='offset', full_name='ubuntuone.storageprotocol.BeginContent.offset', index=0, | ||
1886 | 1129 | number=2, type=4, cpp_type=4, label=1, | ||
1887 | 1130 | default_value=0, | ||
1888 | 1131 | message_type=None, enum_type=None, containing_type=None, | ||
1889 | 1132 | is_extension=False, extension_scope=None, | ||
1890 | 1133 | options=None), | ||
1891 | 1134 | ], | ||
1892 | 1135 | extensions=[ | ||
1893 | 1136 | ], | ||
1894 | 1137 | nested_types=[], # TODO(robinson): Implement. | ||
1895 | 1138 | enum_types=[ | ||
1896 | 1139 | ], | ||
1897 | 1140 | options=None) | ||
1898 | 1141 | |||
1899 | 1142 | |||
1900 | 1143 | _UPLOADINPROGRESS = descriptor.Descriptor( | ||
1901 | 1144 | name='UploadInProgress', | ||
1902 | 1145 | full_name='ubuntuone.storageprotocol.UploadInProgress', | ||
1903 | 1146 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1904 | 1147 | containing_type=None, | ||
1905 | 1148 | fields=[ | ||
1906 | 1149 | descriptor.FieldDescriptor( | ||
1907 | 1150 | name='upload', full_name='ubuntuone.storageprotocol.UploadInProgress.upload', index=0, | ||
1908 | 1151 | number=1, type=12, cpp_type=9, label=1, | ||
1909 | 1152 | default_value="", | ||
1910 | 1153 | message_type=None, enum_type=None, containing_type=None, | ||
1911 | 1154 | is_extension=False, extension_scope=None, | ||
1912 | 1155 | options=None), | ||
1913 | 1156 | descriptor.FieldDescriptor( | ||
1914 | 1157 | name='timestamp', full_name='ubuntuone.storageprotocol.UploadInProgress.timestamp', index=1, | ||
1915 | 1158 | number=2, type=5, cpp_type=1, label=1, | ||
1916 | 1159 | default_value=0, | ||
1917 | 1160 | message_type=None, enum_type=None, containing_type=None, | ||
1918 | 1161 | is_extension=False, extension_scope=None, | ||
1919 | 1162 | options=None), | ||
1920 | 1163 | ], | ||
1921 | 1164 | extensions=[ | ||
1922 | 1165 | ], | ||
1923 | 1166 | nested_types=[], # TODO(robinson): Implement. | ||
1924 | 1167 | enum_types=[ | ||
1925 | 1168 | ], | ||
1926 | 1169 | options=None) | ||
1927 | 1170 | |||
1928 | 1171 | |||
1929 | 1172 | _MOVE = descriptor.Descriptor( | ||
1930 | 1173 | name='Move', | ||
1931 | 1174 | full_name='ubuntuone.storageprotocol.Move', | ||
1932 | 1175 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1933 | 1176 | containing_type=None, | ||
1934 | 1177 | fields=[ | ||
1935 | 1178 | descriptor.FieldDescriptor( | ||
1936 | 1179 | name='share', full_name='ubuntuone.storageprotocol.Move.share', index=0, | ||
1937 | 1180 | number=1, type=12, cpp_type=9, label=1, | ||
1938 | 1181 | default_value="", | ||
1939 | 1182 | message_type=None, enum_type=None, containing_type=None, | ||
1940 | 1183 | is_extension=False, extension_scope=None, | ||
1941 | 1184 | options=None), | ||
1942 | 1185 | descriptor.FieldDescriptor( | ||
1943 | 1186 | name='node', full_name='ubuntuone.storageprotocol.Move.node', index=1, | ||
1944 | 1187 | number=2, type=12, cpp_type=9, label=1, | ||
1945 | 1188 | default_value="", | ||
1946 | 1189 | message_type=None, enum_type=None, containing_type=None, | ||
1947 | 1190 | is_extension=False, extension_scope=None, | ||
1948 | 1191 | options=None), | ||
1949 | 1192 | descriptor.FieldDescriptor( | ||
1950 | 1193 | name='new_parent_node', full_name='ubuntuone.storageprotocol.Move.new_parent_node', index=2, | ||
1951 | 1194 | number=3, type=12, cpp_type=9, label=1, | ||
1952 | 1195 | default_value="", | ||
1953 | 1196 | message_type=None, enum_type=None, containing_type=None, | ||
1954 | 1197 | is_extension=False, extension_scope=None, | ||
1955 | 1198 | options=None), | ||
1956 | 1199 | descriptor.FieldDescriptor( | ||
1957 | 1200 | name='new_name', full_name='ubuntuone.storageprotocol.Move.new_name', index=3, | ||
1958 | 1201 | number=4, type=9, cpp_type=9, label=1, | ||
1959 | 1202 | default_value=unicode("", "utf-8"), | ||
1960 | 1203 | message_type=None, enum_type=None, containing_type=None, | ||
1961 | 1204 | is_extension=False, extension_scope=None, | ||
1962 | 1205 | options=None), | ||
1963 | 1206 | ], | ||
1964 | 1207 | extensions=[ | ||
1965 | 1208 | ], | ||
1966 | 1209 | nested_types=[], # TODO(robinson): Implement. | ||
1967 | 1210 | enum_types=[ | ||
1968 | 1211 | ], | ||
1969 | 1212 | options=None) | ||
1970 | 1213 | |||
1971 | 1214 | |||
1972 | 1215 | _UNLINK = descriptor.Descriptor( | ||
1973 | 1216 | name='Unlink', | ||
1974 | 1217 | full_name='ubuntuone.storageprotocol.Unlink', | ||
1975 | 1218 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
1976 | 1219 | containing_type=None, | ||
1977 | 1220 | fields=[ | ||
1978 | 1221 | descriptor.FieldDescriptor( | ||
1979 | 1222 | name='share', full_name='ubuntuone.storageprotocol.Unlink.share', index=0, | ||
1980 | 1223 | number=1, type=12, cpp_type=9, label=1, | ||
1981 | 1224 | default_value="", | ||
1982 | 1225 | message_type=None, enum_type=None, containing_type=None, | ||
1983 | 1226 | is_extension=False, extension_scope=None, | ||
1984 | 1227 | options=None), | ||
1985 | 1228 | descriptor.FieldDescriptor( | ||
1986 | 1229 | name='node', full_name='ubuntuone.storageprotocol.Unlink.node', index=1, | ||
1987 | 1230 | number=2, type=12, cpp_type=9, label=1, | ||
1988 | 1231 | default_value="", | ||
1989 | 1232 | message_type=None, enum_type=None, containing_type=None, | ||
1990 | 1233 | is_extension=False, extension_scope=None, | ||
1991 | 1234 | options=None), | ||
1992 | 1235 | ], | ||
1993 | 1236 | extensions=[ | ||
1994 | 1237 | ], | ||
1995 | 1238 | nested_types=[], # TODO(robinson): Implement. | ||
1996 | 1239 | enum_types=[ | ||
1997 | 1240 | ], | ||
1998 | 1241 | options=None) | ||
1999 | 1242 | |||
2000 | 1243 | |||
2001 | 1244 | _CREATESHARE = descriptor.Descriptor( | ||
2002 | 1245 | name='CreateShare', | ||
2003 | 1246 | full_name='ubuntuone.storageprotocol.CreateShare', | ||
2004 | 1247 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2005 | 1248 | containing_type=None, | ||
2006 | 1249 | fields=[ | ||
2007 | 1250 | descriptor.FieldDescriptor( | ||
2008 | 1251 | name='node', full_name='ubuntuone.storageprotocol.CreateShare.node', index=0, | ||
2009 | 1252 | number=1, type=12, cpp_type=9, label=1, | ||
2010 | 1253 | default_value="", | ||
2011 | 1254 | message_type=None, enum_type=None, containing_type=None, | ||
2012 | 1255 | is_extension=False, extension_scope=None, | ||
2013 | 1256 | options=None), | ||
2014 | 1257 | descriptor.FieldDescriptor( | ||
2015 | 1258 | name='share_to', full_name='ubuntuone.storageprotocol.CreateShare.share_to', index=1, | ||
2016 | 1259 | number=2, type=9, cpp_type=9, label=1, | ||
2017 | 1260 | default_value=unicode("", "utf-8"), | ||
2018 | 1261 | message_type=None, enum_type=None, containing_type=None, | ||
2019 | 1262 | is_extension=False, extension_scope=None, | ||
2020 | 1263 | options=None), | ||
2021 | 1264 | descriptor.FieldDescriptor( | ||
2022 | 1265 | name='name', full_name='ubuntuone.storageprotocol.CreateShare.name', index=2, | ||
2023 | 1266 | number=3, type=9, cpp_type=9, label=1, | ||
2024 | 1267 | default_value=unicode("", "utf-8"), | ||
2025 | 1268 | message_type=None, enum_type=None, containing_type=None, | ||
2026 | 1269 | is_extension=False, extension_scope=None, | ||
2027 | 1270 | options=None), | ||
2028 | 1271 | descriptor.FieldDescriptor( | ||
2029 | 1272 | name='access_level', full_name='ubuntuone.storageprotocol.CreateShare.access_level', index=3, | ||
2030 | 1273 | number=4, type=14, cpp_type=8, label=1, | ||
2031 | 1274 | default_value=0, | ||
2032 | 1275 | message_type=None, enum_type=None, containing_type=None, | ||
2033 | 1276 | is_extension=False, extension_scope=None, | ||
2034 | 1277 | options=None), | ||
2035 | 1278 | ], | ||
2036 | 1279 | extensions=[ | ||
2037 | 1280 | ], | ||
2038 | 1281 | nested_types=[], # TODO(robinson): Implement. | ||
2039 | 1282 | enum_types=[ | ||
2040 | 1283 | _CREATESHARE_ACCESSLEVEL, | ||
2041 | 1284 | ], | ||
2042 | 1285 | options=None) | ||
2043 | 1286 | |||
2044 | 1287 | |||
2045 | 1288 | _SHARES = descriptor.Descriptor( | ||
2046 | 1289 | name='Shares', | ||
2047 | 1290 | full_name='ubuntuone.storageprotocol.Shares', | ||
2048 | 1291 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2049 | 1292 | containing_type=None, | ||
2050 | 1293 | fields=[ | ||
2051 | 1294 | descriptor.FieldDescriptor( | ||
2052 | 1295 | name='share_id', full_name='ubuntuone.storageprotocol.Shares.share_id', index=0, | ||
2053 | 1296 | number=1, type=12, cpp_type=9, label=1, | ||
2054 | 1297 | default_value="", | ||
2055 | 1298 | message_type=None, enum_type=None, containing_type=None, | ||
2056 | 1299 | is_extension=False, extension_scope=None, | ||
2057 | 1300 | options=None), | ||
2058 | 1301 | descriptor.FieldDescriptor( | ||
2059 | 1302 | name='direction', full_name='ubuntuone.storageprotocol.Shares.direction', index=1, | ||
2060 | 1303 | number=2, type=14, cpp_type=8, label=1, | ||
2061 | 1304 | default_value=0, | ||
2062 | 1305 | message_type=None, enum_type=None, containing_type=None, | ||
2063 | 1306 | is_extension=False, extension_scope=None, | ||
2064 | 1307 | options=None), | ||
2065 | 1308 | descriptor.FieldDescriptor( | ||
2066 | 1309 | name='subtree', full_name='ubuntuone.storageprotocol.Shares.subtree', index=2, | ||
2067 | 1310 | number=3, type=12, cpp_type=9, label=1, | ||
2068 | 1311 | default_value="", | ||
2069 | 1312 | message_type=None, enum_type=None, containing_type=None, | ||
2070 | 1313 | is_extension=False, extension_scope=None, | ||
2071 | 1314 | options=None), | ||
2072 | 1315 | descriptor.FieldDescriptor( | ||
2073 | 1316 | name='share_name', full_name='ubuntuone.storageprotocol.Shares.share_name', index=3, | ||
2074 | 1317 | number=4, type=9, cpp_type=9, label=1, | ||
2075 | 1318 | default_value=unicode("", "utf-8"), | ||
2076 | 1319 | message_type=None, enum_type=None, containing_type=None, | ||
2077 | 1320 | is_extension=False, extension_scope=None, | ||
2078 | 1321 | options=None), | ||
2079 | 1322 | descriptor.FieldDescriptor( | ||
2080 | 1323 | name='other_username', full_name='ubuntuone.storageprotocol.Shares.other_username', index=4, | ||
2081 | 1324 | number=5, type=9, cpp_type=9, label=1, | ||
2082 | 1325 | default_value=unicode("", "utf-8"), | ||
2083 | 1326 | message_type=None, enum_type=None, containing_type=None, | ||
2084 | 1327 | is_extension=False, extension_scope=None, | ||
2085 | 1328 | options=None), | ||
2086 | 1329 | descriptor.FieldDescriptor( | ||
2087 | 1330 | name='other_visible_name', full_name='ubuntuone.storageprotocol.Shares.other_visible_name', index=5, | ||
2088 | 1331 | number=6, type=9, cpp_type=9, label=1, | ||
2089 | 1332 | default_value=unicode("", "utf-8"), | ||
2090 | 1333 | message_type=None, enum_type=None, containing_type=None, | ||
2091 | 1334 | is_extension=False, extension_scope=None, | ||
2092 | 1335 | options=None), | ||
2093 | 1336 | descriptor.FieldDescriptor( | ||
2094 | 1337 | name='accepted', full_name='ubuntuone.storageprotocol.Shares.accepted', index=6, | ||
2095 | 1338 | number=7, type=8, cpp_type=7, label=1, | ||
2096 | 1339 | default_value=False, | ||
2097 | 1340 | message_type=None, enum_type=None, containing_type=None, | ||
2098 | 1341 | is_extension=False, extension_scope=None, | ||
2099 | 1342 | options=None), | ||
2100 | 1343 | descriptor.FieldDescriptor( | ||
2101 | 1344 | name='access_level', full_name='ubuntuone.storageprotocol.Shares.access_level', index=7, | ||
2102 | 1345 | number=8, type=14, cpp_type=8, label=1, | ||
2103 | 1346 | default_value=0, | ||
2104 | 1347 | message_type=None, enum_type=None, containing_type=None, | ||
2105 | 1348 | is_extension=False, extension_scope=None, | ||
2106 | 1349 | options=None), | ||
2107 | 1350 | ], | ||
2108 | 1351 | extensions=[ | ||
2109 | 1352 | ], | ||
2110 | 1353 | nested_types=[], # TODO(robinson): Implement. | ||
2111 | 1354 | enum_types=[ | ||
2112 | 1355 | _SHARES_DIRECTION, | ||
2113 | 1356 | _SHARES_ACCESSLEVEL, | ||
2114 | 1357 | ], | ||
2115 | 1358 | options=None) | ||
2116 | 1359 | |||
2117 | 1360 | |||
2118 | 1361 | _NOTIFYSHARE = descriptor.Descriptor( | ||
2119 | 1362 | name='NotifyShare', | ||
2120 | 1363 | full_name='ubuntuone.storageprotocol.NotifyShare', | ||
2121 | 1364 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2122 | 1365 | containing_type=None, | ||
2123 | 1366 | fields=[ | ||
2124 | 1367 | descriptor.FieldDescriptor( | ||
2125 | 1368 | name='share_id', full_name='ubuntuone.storageprotocol.NotifyShare.share_id', index=0, | ||
2126 | 1369 | number=1, type=9, cpp_type=9, label=1, | ||
2127 | 1370 | default_value=unicode("", "utf-8"), | ||
2128 | 1371 | message_type=None, enum_type=None, containing_type=None, | ||
2129 | 1372 | is_extension=False, extension_scope=None, | ||
2130 | 1373 | options=None), | ||
2131 | 1374 | descriptor.FieldDescriptor( | ||
2132 | 1375 | name='subtree', full_name='ubuntuone.storageprotocol.NotifyShare.subtree', index=1, | ||
2133 | 1376 | number=2, type=9, cpp_type=9, label=1, | ||
2134 | 1377 | default_value=unicode("", "utf-8"), | ||
2135 | 1378 | message_type=None, enum_type=None, containing_type=None, | ||
2136 | 1379 | is_extension=False, extension_scope=None, | ||
2137 | 1380 | options=None), | ||
2138 | 1381 | descriptor.FieldDescriptor( | ||
2139 | 1382 | name='share_name', full_name='ubuntuone.storageprotocol.NotifyShare.share_name', index=2, | ||
2140 | 1383 | number=3, type=9, cpp_type=9, label=1, | ||
2141 | 1384 | default_value=unicode("", "utf-8"), | ||
2142 | 1385 | message_type=None, enum_type=None, containing_type=None, | ||
2143 | 1386 | is_extension=False, extension_scope=None, | ||
2144 | 1387 | options=None), | ||
2145 | 1388 | descriptor.FieldDescriptor( | ||
2146 | 1389 | name='from_username', full_name='ubuntuone.storageprotocol.NotifyShare.from_username', index=3, | ||
2147 | 1390 | number=4, type=9, cpp_type=9, label=1, | ||
2148 | 1391 | default_value=unicode("", "utf-8"), | ||
2149 | 1392 | message_type=None, enum_type=None, containing_type=None, | ||
2150 | 1393 | is_extension=False, extension_scope=None, | ||
2151 | 1394 | options=None), | ||
2152 | 1395 | descriptor.FieldDescriptor( | ||
2153 | 1396 | name='from_visible_name', full_name='ubuntuone.storageprotocol.NotifyShare.from_visible_name', index=4, | ||
2154 | 1397 | number=5, type=9, cpp_type=9, label=1, | ||
2155 | 1398 | default_value=unicode("", "utf-8"), | ||
2156 | 1399 | message_type=None, enum_type=None, containing_type=None, | ||
2157 | 1400 | is_extension=False, extension_scope=None, | ||
2158 | 1401 | options=None), | ||
2159 | 1402 | descriptor.FieldDescriptor( | ||
2160 | 1403 | name='access_level', full_name='ubuntuone.storageprotocol.NotifyShare.access_level', index=5, | ||
2161 | 1404 | number=6, type=14, cpp_type=8, label=1, | ||
2162 | 1405 | default_value=0, | ||
2163 | 1406 | message_type=None, enum_type=None, containing_type=None, | ||
2164 | 1407 | is_extension=False, extension_scope=None, | ||
2165 | 1408 | options=None), | ||
2166 | 1409 | ], | ||
2167 | 1410 | extensions=[ | ||
2168 | 1411 | ], | ||
2169 | 1412 | nested_types=[], # TODO(robinson): Implement. | ||
2170 | 1413 | enum_types=[ | ||
2171 | 1414 | _NOTIFYSHARE_ACCESSLEVEL, | ||
2172 | 1415 | ], | ||
2173 | 1416 | options=None) | ||
2174 | 1417 | |||
2175 | 1418 | |||
2176 | 1419 | _SHAREACCEPTED = descriptor.Descriptor( | ||
2177 | 1420 | name='ShareAccepted', | ||
2178 | 1421 | full_name='ubuntuone.storageprotocol.ShareAccepted', | ||
2179 | 1422 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2180 | 1423 | containing_type=None, | ||
2181 | 1424 | fields=[ | ||
2182 | 1425 | descriptor.FieldDescriptor( | ||
2183 | 1426 | name='share_id', full_name='ubuntuone.storageprotocol.ShareAccepted.share_id', index=0, | ||
2184 | 1427 | number=1, type=9, cpp_type=9, label=1, | ||
2185 | 1428 | default_value=unicode("", "utf-8"), | ||
2186 | 1429 | message_type=None, enum_type=None, containing_type=None, | ||
2187 | 1430 | is_extension=False, extension_scope=None, | ||
2188 | 1431 | options=None), | ||
2189 | 1432 | descriptor.FieldDescriptor( | ||
2190 | 1433 | name='answer', full_name='ubuntuone.storageprotocol.ShareAccepted.answer', index=1, | ||
2191 | 1434 | number=2, type=14, cpp_type=8, label=1, | ||
2192 | 1435 | default_value=0, | ||
2193 | 1436 | message_type=None, enum_type=None, containing_type=None, | ||
2194 | 1437 | is_extension=False, extension_scope=None, | ||
2195 | 1438 | options=None), | ||
2196 | 1439 | ], | ||
2197 | 1440 | extensions=[ | ||
2198 | 1441 | ], | ||
2199 | 1442 | nested_types=[], # TODO(robinson): Implement. | ||
2200 | 1443 | enum_types=[ | ||
2201 | 1444 | _SHAREACCEPTED_ANSWER, | ||
2202 | 1445 | ], | ||
2203 | 1446 | options=None) | ||
2204 | 1447 | |||
2205 | 1448 | |||
2206 | 1449 | _SHAREDELETED = descriptor.Descriptor( | ||
2207 | 1450 | name='ShareDeleted', | ||
2208 | 1451 | full_name='ubuntuone.storageprotocol.ShareDeleted', | ||
2209 | 1452 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2210 | 1453 | containing_type=None, | ||
2211 | 1454 | fields=[ | ||
2212 | 1455 | descriptor.FieldDescriptor( | ||
2213 | 1456 | name='share_id', full_name='ubuntuone.storageprotocol.ShareDeleted.share_id', index=0, | ||
2214 | 1457 | number=1, type=9, cpp_type=9, label=1, | ||
2215 | 1458 | default_value=unicode("", "utf-8"), | ||
2216 | 1459 | message_type=None, enum_type=None, containing_type=None, | ||
2217 | 1460 | is_extension=False, extension_scope=None, | ||
2218 | 1461 | options=None), | ||
2219 | 1462 | ], | ||
2220 | 1463 | extensions=[ | ||
2221 | 1464 | ], | ||
2222 | 1465 | nested_types=[], # TODO(robinson): Implement. | ||
2223 | 1466 | enum_types=[ | ||
2224 | 1467 | ], | ||
2225 | 1468 | options=None) | ||
2226 | 1469 | |||
2227 | 1470 | |||
2228 | 1471 | _SHARECREATED = descriptor.Descriptor( | ||
2229 | 1472 | name='ShareCreated', | ||
2230 | 1473 | full_name='ubuntuone.storageprotocol.ShareCreated', | ||
2231 | 1474 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2232 | 1475 | containing_type=None, | ||
2233 | 1476 | fields=[ | ||
2234 | 1477 | descriptor.FieldDescriptor( | ||
2235 | 1478 | name='share_id', full_name='ubuntuone.storageprotocol.ShareCreated.share_id', index=0, | ||
2236 | 1479 | number=1, type=9, cpp_type=9, label=1, | ||
2237 | 1480 | default_value=unicode("", "utf-8"), | ||
2238 | 1481 | message_type=None, enum_type=None, containing_type=None, | ||
2239 | 1482 | is_extension=False, extension_scope=None, | ||
2240 | 1483 | options=None), | ||
2241 | 1484 | ], | ||
2242 | 1485 | extensions=[ | ||
2243 | 1486 | ], | ||
2244 | 1487 | nested_types=[], # TODO(robinson): Implement. | ||
2245 | 1488 | enum_types=[ | ||
2246 | 1489 | ], | ||
2247 | 1490 | options=None) | ||
2248 | 1491 | |||
2249 | 1492 | |||
2250 | 1493 | _DELETESHARE = descriptor.Descriptor( | ||
2251 | 1494 | name='DeleteShare', | ||
2252 | 1495 | full_name='ubuntuone.storageprotocol.DeleteShare', | ||
2253 | 1496 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2254 | 1497 | containing_type=None, | ||
2255 | 1498 | fields=[ | ||
2256 | 1499 | descriptor.FieldDescriptor( | ||
2257 | 1500 | name='share_id', full_name='ubuntuone.storageprotocol.DeleteShare.share_id', index=0, | ||
2258 | 1501 | number=1, type=9, cpp_type=9, label=1, | ||
2259 | 1502 | default_value=unicode("", "utf-8"), | ||
2260 | 1503 | message_type=None, enum_type=None, containing_type=None, | ||
2261 | 1504 | is_extension=False, extension_scope=None, | ||
2262 | 1505 | options=None), | ||
2263 | 1506 | ], | ||
2264 | 1507 | extensions=[ | ||
2265 | 1508 | ], | ||
2266 | 1509 | nested_types=[], # TODO(robinson): Implement. | ||
2267 | 1510 | enum_types=[ | ||
2268 | 1511 | ], | ||
2269 | 1512 | options=None) | ||
2270 | 1513 | |||
2271 | 1514 | |||
2272 | 1515 | _CREATEUDF = descriptor.Descriptor( | ||
2273 | 1516 | name='CreateUDF', | ||
2274 | 1517 | full_name='ubuntuone.storageprotocol.CreateUDF', | ||
2275 | 1518 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2276 | 1519 | containing_type=None, | ||
2277 | 1520 | fields=[ | ||
2278 | 1521 | descriptor.FieldDescriptor( | ||
2279 | 1522 | name='path', full_name='ubuntuone.storageprotocol.CreateUDF.path', index=0, | ||
2280 | 1523 | number=1, type=9, cpp_type=9, label=1, | ||
2281 | 1524 | default_value=unicode("", "utf-8"), | ||
2282 | 1525 | message_type=None, enum_type=None, containing_type=None, | ||
2283 | 1526 | is_extension=False, extension_scope=None, | ||
2284 | 1527 | options=None), | ||
2285 | 1528 | descriptor.FieldDescriptor( | ||
2286 | 1529 | name='name', full_name='ubuntuone.storageprotocol.CreateUDF.name', index=1, | ||
2287 | 1530 | number=2, type=9, cpp_type=9, label=1, | ||
2288 | 1531 | default_value=unicode("", "utf-8"), | ||
2289 | 1532 | message_type=None, enum_type=None, containing_type=None, | ||
2290 | 1533 | is_extension=False, extension_scope=None, | ||
2291 | 1534 | options=None), | ||
2292 | 1535 | ], | ||
2293 | 1536 | extensions=[ | ||
2294 | 1537 | ], | ||
2295 | 1538 | nested_types=[], # TODO(robinson): Implement. | ||
2296 | 1539 | enum_types=[ | ||
2297 | 1540 | ], | ||
2298 | 1541 | options=None) | ||
2299 | 1542 | |||
2300 | 1543 | |||
2301 | 1544 | _UDFS = descriptor.Descriptor( | ||
2302 | 1545 | name='UDFs', | ||
2303 | 1546 | full_name='ubuntuone.storageprotocol.UDFs', | ||
2304 | 1547 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2305 | 1548 | containing_type=None, | ||
2306 | 1549 | fields=[ | ||
2307 | 1550 | descriptor.FieldDescriptor( | ||
2308 | 1551 | name='volume', full_name='ubuntuone.storageprotocol.UDFs.volume', index=0, | ||
2309 | 1552 | number=1, type=12, cpp_type=9, label=1, | ||
2310 | 1553 | default_value="", | ||
2311 | 1554 | message_type=None, enum_type=None, containing_type=None, | ||
2312 | 1555 | is_extension=False, extension_scope=None, | ||
2313 | 1556 | options=None), | ||
2314 | 1557 | descriptor.FieldDescriptor( | ||
2315 | 1558 | name='node', full_name='ubuntuone.storageprotocol.UDFs.node', index=1, | ||
2316 | 1559 | number=2, type=12, cpp_type=9, label=1, | ||
2317 | 1560 | default_value="", | ||
2318 | 1561 | message_type=None, enum_type=None, containing_type=None, | ||
2319 | 1562 | is_extension=False, extension_scope=None, | ||
2320 | 1563 | options=None), | ||
2321 | 1564 | descriptor.FieldDescriptor( | ||
2322 | 1565 | name='suggested_path', full_name='ubuntuone.storageprotocol.UDFs.suggested_path', index=2, | ||
2323 | 1566 | number=3, type=9, cpp_type=9, label=1, | ||
2324 | 1567 | default_value=unicode("", "utf-8"), | ||
2325 | 1568 | message_type=None, enum_type=None, containing_type=None, | ||
2326 | 1569 | is_extension=False, extension_scope=None, | ||
2327 | 1570 | options=None), | ||
2328 | 1571 | ], | ||
2329 | 1572 | extensions=[ | ||
2330 | 1573 | ], | ||
2331 | 1574 | nested_types=[], # TODO(robinson): Implement. | ||
2332 | 1575 | enum_types=[ | ||
2333 | 1576 | ], | ||
2334 | 1577 | options=None) | ||
2335 | 1578 | |||
2336 | 1579 | |||
2337 | 1580 | _VOLUMEDELETED = descriptor.Descriptor( | ||
2338 | 1581 | name='VolumeDeleted', | ||
2339 | 1582 | full_name='ubuntuone.storageprotocol.VolumeDeleted', | ||
2340 | 1583 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2341 | 1584 | containing_type=None, | ||
2342 | 1585 | fields=[ | ||
2343 | 1586 | descriptor.FieldDescriptor( | ||
2344 | 1587 | name='volume', full_name='ubuntuone.storageprotocol.VolumeDeleted.volume', index=0, | ||
2345 | 1588 | number=1, type=12, cpp_type=9, label=1, | ||
2346 | 1589 | default_value="", | ||
2347 | 1590 | message_type=None, enum_type=None, containing_type=None, | ||
2348 | 1591 | is_extension=False, extension_scope=None, | ||
2349 | 1592 | options=None), | ||
2350 | 1593 | ], | ||
2351 | 1594 | extensions=[ | ||
2352 | 1595 | ], | ||
2353 | 1596 | nested_types=[], # TODO(robinson): Implement. | ||
2354 | 1597 | enum_types=[ | ||
2355 | 1598 | ], | ||
2356 | 1599 | options=None) | ||
2357 | 1600 | |||
2358 | 1601 | |||
2359 | 1602 | _DELETEVOLUME = descriptor.Descriptor( | ||
2360 | 1603 | name='DeleteVolume', | ||
2361 | 1604 | full_name='ubuntuone.storageprotocol.DeleteVolume', | ||
2362 | 1605 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2363 | 1606 | containing_type=None, | ||
2364 | 1607 | fields=[ | ||
2365 | 1608 | descriptor.FieldDescriptor( | ||
2366 | 1609 | name='volume', full_name='ubuntuone.storageprotocol.DeleteVolume.volume', index=0, | ||
2367 | 1610 | number=1, type=12, cpp_type=9, label=1, | ||
2368 | 1611 | default_value="", | ||
2369 | 1612 | message_type=None, enum_type=None, containing_type=None, | ||
2370 | 1613 | is_extension=False, extension_scope=None, | ||
2371 | 1614 | options=None), | ||
2372 | 1615 | ], | ||
2373 | 1616 | extensions=[ | ||
2374 | 1617 | ], | ||
2375 | 1618 | nested_types=[], # TODO(robinson): Implement. | ||
2376 | 1619 | enum_types=[ | ||
2377 | 1620 | ], | ||
2378 | 1621 | options=None) | ||
2379 | 1622 | |||
2380 | 1623 | |||
2381 | 1624 | _VOLUMES = descriptor.Descriptor( | ||
2382 | 1625 | name='Volumes', | ||
2383 | 1626 | full_name='ubuntuone.storageprotocol.Volumes', | ||
2384 | 1627 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2385 | 1628 | containing_type=None, | ||
2386 | 1629 | fields=[ | ||
2387 | 1630 | descriptor.FieldDescriptor( | ||
2388 | 1631 | name='type', full_name='ubuntuone.storageprotocol.Volumes.type', index=0, | ||
2389 | 1632 | number=1, type=14, cpp_type=8, label=1, | ||
2390 | 1633 | default_value=1, | ||
2391 | 1634 | message_type=None, enum_type=None, containing_type=None, | ||
2392 | 1635 | is_extension=False, extension_scope=None, | ||
2393 | 1636 | options=None), | ||
2394 | 1637 | descriptor.FieldDescriptor( | ||
2395 | 1638 | name='root', full_name='ubuntuone.storageprotocol.Volumes.root', index=1, | ||
2396 | 1639 | number=3, type=11, cpp_type=10, label=1, | ||
2397 | 1640 | default_value=None, | ||
2398 | 1641 | message_type=None, enum_type=None, containing_type=None, | ||
2399 | 1642 | is_extension=False, extension_scope=None, | ||
2400 | 1643 | options=None), | ||
2401 | 1644 | descriptor.FieldDescriptor( | ||
2402 | 1645 | name='udf', full_name='ubuntuone.storageprotocol.Volumes.udf', index=2, | ||
2403 | 1646 | number=4, type=11, cpp_type=10, label=1, | ||
2404 | 1647 | default_value=None, | ||
2405 | 1648 | message_type=None, enum_type=None, containing_type=None, | ||
2406 | 1649 | is_extension=False, extension_scope=None, | ||
2407 | 1650 | options=None), | ||
2408 | 1651 | descriptor.FieldDescriptor( | ||
2409 | 1652 | name='share', full_name='ubuntuone.storageprotocol.Volumes.share', index=3, | ||
2410 | 1653 | number=5, type=11, cpp_type=10, label=1, | ||
2411 | 1654 | default_value=None, | ||
2412 | 1655 | message_type=None, enum_type=None, containing_type=None, | ||
2413 | 1656 | is_extension=False, extension_scope=None, | ||
2414 | 1657 | options=None), | ||
2415 | 1658 | ], | ||
2416 | 1659 | extensions=[ | ||
2417 | 1660 | ], | ||
2418 | 1661 | nested_types=[], # TODO(robinson): Implement. | ||
2419 | 1662 | enum_types=[ | ||
2420 | 1663 | _VOLUMES_VOLUMETYPE, | ||
2421 | 1664 | ], | ||
2422 | 1665 | options=None) | ||
2423 | 1666 | |||
2424 | 1667 | |||
2425 | 1668 | _QUERYCAPS = descriptor.Descriptor( | ||
2426 | 1669 | name='QueryCaps', | ||
2427 | 1670 | full_name='ubuntuone.storageprotocol.QueryCaps', | ||
2428 | 1671 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2429 | 1672 | containing_type=None, | ||
2430 | 1673 | fields=[ | ||
2431 | 1674 | descriptor.FieldDescriptor( | ||
2432 | 1675 | name='capability', full_name='ubuntuone.storageprotocol.QueryCaps.capability', index=0, | ||
2433 | 1676 | number=1, type=9, cpp_type=9, label=1, | ||
2434 | 1677 | default_value=unicode("", "utf-8"), | ||
2435 | 1678 | message_type=None, enum_type=None, containing_type=None, | ||
2436 | 1679 | is_extension=False, extension_scope=None, | ||
2437 | 1680 | options=None), | ||
2438 | 1681 | ], | ||
2439 | 1682 | extensions=[ | ||
2440 | 1683 | ], | ||
2441 | 1684 | nested_types=[], # TODO(robinson): Implement. | ||
2442 | 1685 | enum_types=[ | ||
2443 | 1686 | ], | ||
2444 | 1687 | options=None) | ||
2445 | 1688 | |||
2446 | 1689 | |||
2447 | 1690 | _SETCAPS = descriptor.Descriptor( | ||
2448 | 1691 | name='SetCaps', | ||
2449 | 1692 | full_name='ubuntuone.storageprotocol.SetCaps', | ||
2450 | 1693 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2451 | 1694 | containing_type=None, | ||
2452 | 1695 | fields=[ | ||
2453 | 1696 | descriptor.FieldDescriptor( | ||
2454 | 1697 | name='capability', full_name='ubuntuone.storageprotocol.SetCaps.capability', index=0, | ||
2455 | 1698 | number=1, type=9, cpp_type=9, label=1, | ||
2456 | 1699 | default_value=unicode("", "utf-8"), | ||
2457 | 1700 | message_type=None, enum_type=None, containing_type=None, | ||
2458 | 1701 | is_extension=False, extension_scope=None, | ||
2459 | 1702 | options=None), | ||
2460 | 1703 | ], | ||
2461 | 1704 | extensions=[ | ||
2462 | 1705 | ], | ||
2463 | 1706 | nested_types=[], # TODO(robinson): Implement. | ||
2464 | 1707 | enum_types=[ | ||
2465 | 1708 | ], | ||
2466 | 1709 | options=None) | ||
2467 | 1710 | |||
2468 | 1711 | |||
2469 | 1712 | _ACCEPTCAPS = descriptor.Descriptor( | ||
2470 | 1713 | name='AcceptCaps', | ||
2471 | 1714 | full_name='ubuntuone.storageprotocol.AcceptCaps', | ||
2472 | 1715 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2473 | 1716 | containing_type=None, | ||
2474 | 1717 | fields=[ | ||
2475 | 1718 | descriptor.FieldDescriptor( | ||
2476 | 1719 | name='accepted', full_name='ubuntuone.storageprotocol.AcceptCaps.accepted', index=0, | ||
2477 | 1720 | number=1, type=8, cpp_type=7, label=1, | ||
2478 | 1721 | default_value=False, | ||
2479 | 1722 | message_type=None, enum_type=None, containing_type=None, | ||
2480 | 1723 | is_extension=False, extension_scope=None, | ||
2481 | 1724 | options=None), | ||
2482 | 1725 | descriptor.FieldDescriptor( | ||
2483 | 1726 | name='redirect_hostname', full_name='ubuntuone.storageprotocol.AcceptCaps.redirect_hostname', index=1, | ||
2484 | 1727 | number=2, type=9, cpp_type=9, label=1, | ||
2485 | 1728 | default_value=unicode("", "utf-8"), | ||
2486 | 1729 | message_type=None, enum_type=None, containing_type=None, | ||
2487 | 1730 | is_extension=False, extension_scope=None, | ||
2488 | 1731 | options=None), | ||
2489 | 1732 | descriptor.FieldDescriptor( | ||
2490 | 1733 | name='redirect_port', full_name='ubuntuone.storageprotocol.AcceptCaps.redirect_port', index=2, | ||
2491 | 1734 | number=3, type=9, cpp_type=9, label=1, | ||
2492 | 1735 | default_value=unicode("", "utf-8"), | ||
2493 | 1736 | message_type=None, enum_type=None, containing_type=None, | ||
2494 | 1737 | is_extension=False, extension_scope=None, | ||
2495 | 1738 | options=None), | ||
2496 | 1739 | descriptor.FieldDescriptor( | ||
2497 | 1740 | name='redirect_srvrecord', full_name='ubuntuone.storageprotocol.AcceptCaps.redirect_srvrecord', index=3, | ||
2498 | 1741 | number=4, type=9, cpp_type=9, label=1, | ||
2499 | 1742 | default_value=unicode("", "utf-8"), | ||
2500 | 1743 | message_type=None, enum_type=None, containing_type=None, | ||
2501 | 1744 | is_extension=False, extension_scope=None, | ||
2502 | 1745 | options=None), | ||
2503 | 1746 | ], | ||
2504 | 1747 | extensions=[ | ||
2505 | 1748 | ], | ||
2506 | 1749 | nested_types=[], # TODO(robinson): Implement. | ||
2507 | 1750 | enum_types=[ | ||
2508 | 1751 | ], | ||
2509 | 1752 | options=None) | ||
2510 | 1753 | |||
2511 | 1754 | |||
2512 | 1755 | _FREESPACEINFO = descriptor.Descriptor( | ||
2513 | 1756 | name='FreeSpaceInfo', | ||
2514 | 1757 | full_name='ubuntuone.storageprotocol.FreeSpaceInfo', | ||
2515 | 1758 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2516 | 1759 | containing_type=None, | ||
2517 | 1760 | fields=[ | ||
2518 | 1761 | descriptor.FieldDescriptor( | ||
2519 | 1762 | name='share_id', full_name='ubuntuone.storageprotocol.FreeSpaceInfo.share_id', index=0, | ||
2520 | 1763 | number=1, type=9, cpp_type=9, label=1, | ||
2521 | 1764 | default_value=unicode("", "utf-8"), | ||
2522 | 1765 | message_type=None, enum_type=None, containing_type=None, | ||
2523 | 1766 | is_extension=False, extension_scope=None, | ||
2524 | 1767 | options=None), | ||
2525 | 1768 | descriptor.FieldDescriptor( | ||
2526 | 1769 | name='free_bytes', full_name='ubuntuone.storageprotocol.FreeSpaceInfo.free_bytes', index=1, | ||
2527 | 1770 | number=2, type=4, cpp_type=4, label=1, | ||
2528 | 1771 | default_value=0, | ||
2529 | 1772 | message_type=None, enum_type=None, containing_type=None, | ||
2530 | 1773 | is_extension=False, extension_scope=None, | ||
2531 | 1774 | options=None), | ||
2532 | 1775 | ], | ||
2533 | 1776 | extensions=[ | ||
2534 | 1777 | ], | ||
2535 | 1778 | nested_types=[], # TODO(robinson): Implement. | ||
2536 | 1779 | enum_types=[ | ||
2537 | 1780 | ], | ||
2538 | 1781 | options=None) | ||
2539 | 1782 | |||
2540 | 1783 | |||
2541 | 1784 | _FREESPACEINQUIRY = descriptor.Descriptor( | ||
2542 | 1785 | name='FreeSpaceInquiry', | ||
2543 | 1786 | full_name='ubuntuone.storageprotocol.FreeSpaceInquiry', | ||
2544 | 1787 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2545 | 1788 | containing_type=None, | ||
2546 | 1789 | fields=[ | ||
2547 | 1790 | descriptor.FieldDescriptor( | ||
2548 | 1791 | name='share_id', full_name='ubuntuone.storageprotocol.FreeSpaceInquiry.share_id', index=0, | ||
2549 | 1792 | number=1, type=9, cpp_type=9, label=1, | ||
2550 | 1793 | default_value=unicode("", "utf-8"), | ||
2551 | 1794 | message_type=None, enum_type=None, containing_type=None, | ||
2552 | 1795 | is_extension=False, extension_scope=None, | ||
2553 | 1796 | options=None), | ||
2554 | 1797 | ], | ||
2555 | 1798 | extensions=[ | ||
2556 | 1799 | ], | ||
2557 | 1800 | nested_types=[], # TODO(robinson): Implement. | ||
2558 | 1801 | enum_types=[ | ||
2559 | 1802 | ], | ||
2560 | 1803 | options=None) | ||
2561 | 1804 | |||
2562 | 1805 | |||
2563 | 1806 | _ACCOUNTINFO = descriptor.Descriptor( | ||
2564 | 1807 | name='AccountInfo', | ||
2565 | 1808 | full_name='ubuntuone.storageprotocol.AccountInfo', | ||
2566 | 1809 | filename='ubuntuone/storageprotocol/protocol.proto', | ||
2567 | 1810 | containing_type=None, | ||
2568 | 1811 | fields=[ | ||
2569 | 1812 | descriptor.FieldDescriptor( | ||
2570 | 1813 | name='purchased_bytes', full_name='ubuntuone.storageprotocol.AccountInfo.purchased_bytes', index=0, | ||
2571 | 1814 | number=1, type=4, cpp_type=4, label=1, | ||
2572 | 1815 | default_value=0, | ||
2573 | 1816 | message_type=None, enum_type=None, containing_type=None, | ||
2574 | 1817 | is_extension=False, extension_scope=None, | ||
2575 | 1818 | options=None), | ||
2576 | 1819 | ], | ||
2577 | 1820 | extensions=[ | ||
2578 | 1821 | ], | ||
2579 | 1822 | nested_types=[], # TODO(robinson): Implement. | ||
2580 | 1823 | enum_types=[ | ||
2581 | 1824 | ], | ||
2582 | 1825 | options=None) | ||
2583 | 1826 | |||
2584 | 1827 | |||
2585 | 1828 | _MESSAGE.fields_by_name['type'].enum_type = _MESSAGE_MESSAGETYPE | ||
2586 | 1829 | _MESSAGE.fields_by_name['error'].message_type = _ERROR | ||
2587 | 1830 | _MESSAGE.fields_by_name['protocol'].message_type = _PROTOCOL | ||
2588 | 1831 | _MESSAGE.fields_by_name['auth_parameters'].message_type = _AUTHPARAMETER | ||
2589 | 1832 | _MESSAGE.fields_by_name['root'].message_type = _ROOT | ||
2590 | 1833 | _MESSAGE.fields_by_name['query'].message_type = _QUERY | ||
2591 | 1834 | _MESSAGE.fields_by_name['node_state'].message_type = _NODESTATE | ||
2592 | 1835 | _MESSAGE.fields_by_name['make'].message_type = _MAKE | ||
2593 | 1836 | _MESSAGE.fields_by_name['new'].message_type = _NEW | ||
2594 | 1837 | _MESSAGE.fields_by_name['move'].message_type = _MOVE | ||
2595 | 1838 | _MESSAGE.fields_by_name['get_content'].message_type = _GETCONTENT | ||
2596 | 1839 | _MESSAGE.fields_by_name['put_content'].message_type = _PUTCONTENT | ||
2597 | 1840 | _MESSAGE.fields_by_name['upload_in_progress'].message_type = _UPLOADINPROGRESS | ||
2598 | 1841 | _MESSAGE.fields_by_name['bytes'].message_type = _BYTES | ||
2599 | 1842 | _MESSAGE.fields_by_name['unlink'].message_type = _UNLINK | ||
2600 | 1843 | _MESSAGE.fields_by_name['cancel_request'].message_type = _CANCELREQUEST | ||
2601 | 1844 | _MESSAGE.fields_by_name['node_attr'].message_type = _NODEATTR | ||
2602 | 1845 | _MESSAGE.fields_by_name['create_share'].message_type = _CREATESHARE | ||
2603 | 1846 | _MESSAGE.fields_by_name['shares'].message_type = _SHARES | ||
2604 | 1847 | _MESSAGE.fields_by_name['notify_share'].message_type = _NOTIFYSHARE | ||
2605 | 1848 | _MESSAGE.fields_by_name['share_accepted'].message_type = _SHAREACCEPTED | ||
2606 | 1849 | _MESSAGE.fields_by_name['share_deleted'].message_type = _SHAREDELETED | ||
2607 | 1850 | _MESSAGE.fields_by_name['share_created'].message_type = _SHARECREATED | ||
2608 | 1851 | _MESSAGE.fields_by_name['delete_share'].message_type = _DELETESHARE | ||
2609 | 1852 | _MESSAGE.fields_by_name['create_udf'].message_type = _CREATEUDF | ||
2610 | 1853 | _MESSAGE.fields_by_name['list_volumes'].message_type = _VOLUMES | ||
2611 | 1854 | _MESSAGE.fields_by_name['volume_deleted'].message_type = _VOLUMEDELETED | ||
2612 | 1855 | _MESSAGE.fields_by_name['volume_created'].message_type = _VOLUMES | ||
2613 | 1856 | _MESSAGE.fields_by_name['delete_volume'].message_type = _DELETEVOLUME | ||
2614 | 1857 | _MESSAGE.fields_by_name['query_caps'].message_type = _QUERYCAPS | ||
2615 | 1858 | _MESSAGE.fields_by_name['set_caps'].message_type = _SETCAPS | ||
2616 | 1859 | _MESSAGE.fields_by_name['accept_caps'].message_type = _ACCEPTCAPS | ||
2617 | 1860 | _MESSAGE.fields_by_name['free_space_info'].message_type = _FREESPACEINFO | ||
2618 | 1861 | _MESSAGE.fields_by_name['free_space_inquiry'].message_type = _FREESPACEINQUIRY | ||
2619 | 1862 | _MESSAGE.fields_by_name['account_info'].message_type = _ACCOUNTINFO | ||
2620 | 1863 | _MESSAGE.fields_by_name['begin_content'].message_type = _BEGINCONTENT | ||
2621 | 1864 | _ERROR.fields_by_name['type'].enum_type = _ERROR_ERRORTYPE | ||
2622 | 1865 | _CREATESHARE.fields_by_name['access_level'].enum_type = _CREATESHARE_ACCESSLEVEL | ||
2623 | 1866 | _SHARES.fields_by_name['direction'].enum_type = _SHARES_DIRECTION | ||
2624 | 1867 | _SHARES.fields_by_name['access_level'].enum_type = _SHARES_ACCESSLEVEL | ||
2625 | 1868 | _NOTIFYSHARE.fields_by_name['access_level'].enum_type = _NOTIFYSHARE_ACCESSLEVEL | ||
2626 | 1869 | _SHAREACCEPTED.fields_by_name['answer'].enum_type = _SHAREACCEPTED_ANSWER | ||
2627 | 1870 | _VOLUMES.fields_by_name['type'].enum_type = _VOLUMES_VOLUMETYPE | ||
2628 | 1871 | _VOLUMES.fields_by_name['root'].message_type = _ROOT | ||
2629 | 1872 | _VOLUMES.fields_by_name['udf'].message_type = _UDFS | ||
2630 | 1873 | _VOLUMES.fields_by_name['share'].message_type = _SHARES | ||
2631 | 1874 | |||
2632 | 1875 | class Message(message.Message): | ||
2633 | 1876 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2634 | 1877 | DESCRIPTOR = _MESSAGE | ||
2635 | 1878 | |||
2636 | 1879 | class Error(message.Message): | ||
2637 | 1880 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2638 | 1881 | DESCRIPTOR = _ERROR | ||
2639 | 1882 | |||
2640 | 1883 | class Protocol(message.Message): | ||
2641 | 1884 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2642 | 1885 | DESCRIPTOR = _PROTOCOL | ||
2643 | 1886 | |||
2644 | 1887 | class AuthParameter(message.Message): | ||
2645 | 1888 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2646 | 1889 | DESCRIPTOR = _AUTHPARAMETER | ||
2647 | 1890 | |||
2648 | 1891 | class Make(message.Message): | ||
2649 | 1892 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2650 | 1893 | DESCRIPTOR = _MAKE | ||
2651 | 1894 | |||
2652 | 1895 | class New(message.Message): | ||
2653 | 1896 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2654 | 1897 | DESCRIPTOR = _NEW | ||
2655 | 1898 | |||
2656 | 1899 | class Root(message.Message): | ||
2657 | 1900 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2658 | 1901 | DESCRIPTOR = _ROOT | ||
2659 | 1902 | |||
2660 | 1903 | class Query(message.Message): | ||
2661 | 1904 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2662 | 1905 | DESCRIPTOR = _QUERY | ||
2663 | 1906 | |||
2664 | 1907 | class NodeState(message.Message): | ||
2665 | 1908 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2666 | 1909 | DESCRIPTOR = _NODESTATE | ||
2667 | 1910 | |||
2668 | 1911 | class GetContent(message.Message): | ||
2669 | 1912 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2670 | 1913 | DESCRIPTOR = _GETCONTENT | ||
2671 | 1914 | |||
2672 | 1915 | class CancelRequest(message.Message): | ||
2673 | 1916 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2674 | 1917 | DESCRIPTOR = _CANCELREQUEST | ||
2675 | 1918 | |||
2676 | 1919 | class NodeAttr(message.Message): | ||
2677 | 1920 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2678 | 1921 | DESCRIPTOR = _NODEATTR | ||
2679 | 1922 | |||
2680 | 1923 | class Bytes(message.Message): | ||
2681 | 1924 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2682 | 1925 | DESCRIPTOR = _BYTES | ||
2683 | 1926 | |||
2684 | 1927 | class PutContent(message.Message): | ||
2685 | 1928 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2686 | 1929 | DESCRIPTOR = _PUTCONTENT | ||
2687 | 1930 | |||
2688 | 1931 | class BeginContent(message.Message): | ||
2689 | 1932 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2690 | 1933 | DESCRIPTOR = _BEGINCONTENT | ||
2691 | 1934 | |||
2692 | 1935 | class UploadInProgress(message.Message): | ||
2693 | 1936 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2694 | 1937 | DESCRIPTOR = _UPLOADINPROGRESS | ||
2695 | 1938 | |||
2696 | 1939 | class Move(message.Message): | ||
2697 | 1940 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2698 | 1941 | DESCRIPTOR = _MOVE | ||
2699 | 1942 | |||
2700 | 1943 | class Unlink(message.Message): | ||
2701 | 1944 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2702 | 1945 | DESCRIPTOR = _UNLINK | ||
2703 | 1946 | |||
2704 | 1947 | class CreateShare(message.Message): | ||
2705 | 1948 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2706 | 1949 | DESCRIPTOR = _CREATESHARE | ||
2707 | 1950 | |||
2708 | 1951 | class Shares(message.Message): | ||
2709 | 1952 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2710 | 1953 | DESCRIPTOR = _SHARES | ||
2711 | 1954 | |||
2712 | 1955 | class NotifyShare(message.Message): | ||
2713 | 1956 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2714 | 1957 | DESCRIPTOR = _NOTIFYSHARE | ||
2715 | 1958 | |||
2716 | 1959 | class ShareAccepted(message.Message): | ||
2717 | 1960 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2718 | 1961 | DESCRIPTOR = _SHAREACCEPTED | ||
2719 | 1962 | |||
2720 | 1963 | class ShareDeleted(message.Message): | ||
2721 | 1964 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2722 | 1965 | DESCRIPTOR = _SHAREDELETED | ||
2723 | 1966 | |||
2724 | 1967 | class ShareCreated(message.Message): | ||
2725 | 1968 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2726 | 1969 | DESCRIPTOR = _SHARECREATED | ||
2727 | 1970 | |||
2728 | 1971 | class DeleteShare(message.Message): | ||
2729 | 1972 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2730 | 1973 | DESCRIPTOR = _DELETESHARE | ||
2731 | 1974 | |||
2732 | 1975 | class CreateUDF(message.Message): | ||
2733 | 1976 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2734 | 1977 | DESCRIPTOR = _CREATEUDF | ||
2735 | 1978 | |||
2736 | 1979 | class UDFs(message.Message): | ||
2737 | 1980 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2738 | 1981 | DESCRIPTOR = _UDFS | ||
2739 | 1982 | |||
2740 | 1983 | class VolumeDeleted(message.Message): | ||
2741 | 1984 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2742 | 1985 | DESCRIPTOR = _VOLUMEDELETED | ||
2743 | 1986 | |||
2744 | 1987 | class DeleteVolume(message.Message): | ||
2745 | 1988 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2746 | 1989 | DESCRIPTOR = _DELETEVOLUME | ||
2747 | 1990 | |||
2748 | 1991 | class Volumes(message.Message): | ||
2749 | 1992 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2750 | 1993 | DESCRIPTOR = _VOLUMES | ||
2751 | 1994 | |||
2752 | 1995 | class QueryCaps(message.Message): | ||
2753 | 1996 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2754 | 1997 | DESCRIPTOR = _QUERYCAPS | ||
2755 | 1998 | |||
2756 | 1999 | class SetCaps(message.Message): | ||
2757 | 2000 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2758 | 2001 | DESCRIPTOR = _SETCAPS | ||
2759 | 2002 | |||
2760 | 2003 | class AcceptCaps(message.Message): | ||
2761 | 2004 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2762 | 2005 | DESCRIPTOR = _ACCEPTCAPS | ||
2763 | 2006 | |||
2764 | 2007 | class FreeSpaceInfo(message.Message): | ||
2765 | 2008 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2766 | 2009 | DESCRIPTOR = _FREESPACEINFO | ||
2767 | 2010 | |||
2768 | 2011 | class FreeSpaceInquiry(message.Message): | ||
2769 | 2012 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2770 | 2013 | DESCRIPTOR = _FREESPACEINQUIRY | ||
2771 | 2014 | |||
2772 | 2015 | class AccountInfo(message.Message): | ||
2773 | 2016 | __metaclass__ = reflection.GeneratedProtocolMessageType | ||
2774 | 2017 | DESCRIPTOR = _ACCOUNTINFO | ||
2775 | 2018 |