line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# This file is part of Riak-Client |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# This software is copyright (c) 2014 by Damien Krotkine. |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# This is free software; you can redistribute it and/or modify it under |
7
|
|
|
|
|
|
|
# the same terms as the Perl 5 programming language system itself. |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
package Riak::Client::PBC; |
10
|
|
|
|
|
|
|
{ |
11
|
|
|
|
|
|
|
$Riak::Client::PBC::VERSION = '1.94'; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
## |
15
|
|
|
|
|
|
|
## This file was generated by Google::ProtocolBuffers (0.09) |
16
|
|
|
|
|
|
|
## on Sun Jun 29 15:03:36 2014 from file /Users/dkrotkine/Devel/riak-client/pbc/riak.proto |
17
|
|
|
|
|
|
|
## |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
58
|
|
20
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
21
|
1
|
|
|
1
|
|
11481
|
use Google::ProtocolBuffers; |
|
1
|
|
|
|
|
250354
|
|
|
1
|
|
|
|
|
2709
|
|
22
|
|
|
|
|
|
|
{ |
23
|
|
|
|
|
|
|
unless (RpbIndexReq::IndexQueryType->can('_pb_fields_list')) { |
24
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_enum( |
25
|
|
|
|
|
|
|
'RpbIndexReq::IndexQueryType', |
26
|
|
|
|
|
|
|
[ |
27
|
|
|
|
|
|
|
['eq', 0], |
28
|
|
|
|
|
|
|
['range', 1], |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
] |
31
|
|
|
|
|
|
|
); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
unless (RpbIndexResp->can('_pb_fields_list')) { |
35
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
36
|
|
|
|
|
|
|
'RpbIndexResp', |
37
|
|
|
|
|
|
|
[ |
38
|
|
|
|
|
|
|
[ |
39
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
40
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
41
|
|
|
|
|
|
|
'keys', 1, undef |
42
|
|
|
|
|
|
|
], |
43
|
|
|
|
|
|
|
[ |
44
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
45
|
|
|
|
|
|
|
'RpbPair', |
46
|
|
|
|
|
|
|
'results', 2, undef |
47
|
|
|
|
|
|
|
], |
48
|
|
|
|
|
|
|
[ |
49
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
50
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
51
|
|
|
|
|
|
|
'continuation', 3, undef |
52
|
|
|
|
|
|
|
], |
53
|
|
|
|
|
|
|
[ |
54
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
55
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
56
|
|
|
|
|
|
|
'done', 4, undef |
57
|
|
|
|
|
|
|
], |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
], |
60
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
61
|
|
|
|
|
|
|
); |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
unless (RpbIndexReq->can('_pb_fields_list')) { |
65
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
66
|
|
|
|
|
|
|
'RpbIndexReq', |
67
|
|
|
|
|
|
|
[ |
68
|
|
|
|
|
|
|
[ |
69
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
70
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
71
|
|
|
|
|
|
|
'bucket', 1, undef |
72
|
|
|
|
|
|
|
], |
73
|
|
|
|
|
|
|
[ |
74
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
75
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
76
|
|
|
|
|
|
|
'index', 2, undef |
77
|
|
|
|
|
|
|
], |
78
|
|
|
|
|
|
|
[ |
79
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
80
|
|
|
|
|
|
|
'RpbIndexReq::IndexQueryType', |
81
|
|
|
|
|
|
|
'qtype', 3, undef |
82
|
|
|
|
|
|
|
], |
83
|
|
|
|
|
|
|
[ |
84
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
85
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
86
|
|
|
|
|
|
|
'key', 4, undef |
87
|
|
|
|
|
|
|
], |
88
|
|
|
|
|
|
|
[ |
89
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
90
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
91
|
|
|
|
|
|
|
'range_min', 5, undef |
92
|
|
|
|
|
|
|
], |
93
|
|
|
|
|
|
|
[ |
94
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
95
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
96
|
|
|
|
|
|
|
'range_max', 6, undef |
97
|
|
|
|
|
|
|
], |
98
|
|
|
|
|
|
|
[ |
99
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
100
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
101
|
|
|
|
|
|
|
'return_terms', 7, undef |
102
|
|
|
|
|
|
|
], |
103
|
|
|
|
|
|
|
[ |
104
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
105
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
106
|
|
|
|
|
|
|
'stream', 8, undef |
107
|
|
|
|
|
|
|
], |
108
|
|
|
|
|
|
|
[ |
109
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
110
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
111
|
|
|
|
|
|
|
'max_results', 9, undef |
112
|
|
|
|
|
|
|
], |
113
|
|
|
|
|
|
|
[ |
114
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
115
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
116
|
|
|
|
|
|
|
'continuation', 10, undef |
117
|
|
|
|
|
|
|
], |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
], |
120
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
121
|
|
|
|
|
|
|
); |
122
|
|
|
|
|
|
|
} |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
unless (RpbGetResp->can('_pb_fields_list')) { |
125
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
126
|
|
|
|
|
|
|
'RpbGetResp', |
127
|
|
|
|
|
|
|
[ |
128
|
|
|
|
|
|
|
[ |
129
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
130
|
|
|
|
|
|
|
'RpbContent', |
131
|
|
|
|
|
|
|
'content', 1, undef |
132
|
|
|
|
|
|
|
], |
133
|
|
|
|
|
|
|
[ |
134
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
135
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
136
|
|
|
|
|
|
|
'vclock', 2, undef |
137
|
|
|
|
|
|
|
], |
138
|
|
|
|
|
|
|
[ |
139
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
140
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
141
|
|
|
|
|
|
|
'unchanged', 3, undef |
142
|
|
|
|
|
|
|
], |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
], |
145
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
146
|
|
|
|
|
|
|
); |
147
|
|
|
|
|
|
|
} |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
unless (RpbBucketProps->can('_pb_fields_list')) { |
150
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
151
|
|
|
|
|
|
|
'RpbBucketProps', |
152
|
|
|
|
|
|
|
[ |
153
|
|
|
|
|
|
|
[ |
154
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
155
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
156
|
|
|
|
|
|
|
'n_val', 1, undef |
157
|
|
|
|
|
|
|
], |
158
|
|
|
|
|
|
|
[ |
159
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
160
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
161
|
|
|
|
|
|
|
'allow_mult', 2, undef |
162
|
|
|
|
|
|
|
], |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
], |
165
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
166
|
|
|
|
|
|
|
); |
167
|
|
|
|
|
|
|
} |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
unless (RpbGetReq->can('_pb_fields_list')) { |
170
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
171
|
|
|
|
|
|
|
'RpbGetReq', |
172
|
|
|
|
|
|
|
[ |
173
|
|
|
|
|
|
|
[ |
174
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
175
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
176
|
|
|
|
|
|
|
'bucket', 1, undef |
177
|
|
|
|
|
|
|
], |
178
|
|
|
|
|
|
|
[ |
179
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
180
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
181
|
|
|
|
|
|
|
'key', 2, undef |
182
|
|
|
|
|
|
|
], |
183
|
|
|
|
|
|
|
[ |
184
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
185
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
186
|
|
|
|
|
|
|
'r', 3, undef |
187
|
|
|
|
|
|
|
], |
188
|
|
|
|
|
|
|
[ |
189
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
190
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
191
|
|
|
|
|
|
|
'pr', 4, undef |
192
|
|
|
|
|
|
|
], |
193
|
|
|
|
|
|
|
[ |
194
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
195
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
196
|
|
|
|
|
|
|
'basic_quorum', 5, undef |
197
|
|
|
|
|
|
|
], |
198
|
|
|
|
|
|
|
[ |
199
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
200
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
201
|
|
|
|
|
|
|
'notfound_ok', 6, undef |
202
|
|
|
|
|
|
|
], |
203
|
|
|
|
|
|
|
[ |
204
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
205
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
206
|
|
|
|
|
|
|
'if_modified', 7, undef |
207
|
|
|
|
|
|
|
], |
208
|
|
|
|
|
|
|
[ |
209
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
210
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
211
|
|
|
|
|
|
|
'head', 8, undef |
212
|
|
|
|
|
|
|
], |
213
|
|
|
|
|
|
|
[ |
214
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
215
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
216
|
|
|
|
|
|
|
'deletedvclock', 9, undef |
217
|
|
|
|
|
|
|
], |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
], |
220
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
221
|
|
|
|
|
|
|
); |
222
|
|
|
|
|
|
|
} |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
unless (RpbPutReq->can('_pb_fields_list')) { |
225
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
226
|
|
|
|
|
|
|
'RpbPutReq', |
227
|
|
|
|
|
|
|
[ |
228
|
|
|
|
|
|
|
[ |
229
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
230
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
231
|
|
|
|
|
|
|
'bucket', 1, undef |
232
|
|
|
|
|
|
|
], |
233
|
|
|
|
|
|
|
[ |
234
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
235
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
236
|
|
|
|
|
|
|
'key', 2, undef |
237
|
|
|
|
|
|
|
], |
238
|
|
|
|
|
|
|
[ |
239
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
240
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
241
|
|
|
|
|
|
|
'vclock', 3, undef |
242
|
|
|
|
|
|
|
], |
243
|
|
|
|
|
|
|
[ |
244
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
245
|
|
|
|
|
|
|
'RpbContent', |
246
|
|
|
|
|
|
|
'content', 4, undef |
247
|
|
|
|
|
|
|
], |
248
|
|
|
|
|
|
|
[ |
249
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
250
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
251
|
|
|
|
|
|
|
'w', 5, undef |
252
|
|
|
|
|
|
|
], |
253
|
|
|
|
|
|
|
[ |
254
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
255
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
256
|
|
|
|
|
|
|
'dw', 6, undef |
257
|
|
|
|
|
|
|
], |
258
|
|
|
|
|
|
|
[ |
259
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
260
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
261
|
|
|
|
|
|
|
'return_body', 7, undef |
262
|
|
|
|
|
|
|
], |
263
|
|
|
|
|
|
|
[ |
264
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
265
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
266
|
|
|
|
|
|
|
'pw', 8, undef |
267
|
|
|
|
|
|
|
], |
268
|
|
|
|
|
|
|
[ |
269
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
270
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
271
|
|
|
|
|
|
|
'if_not_modified', 9, undef |
272
|
|
|
|
|
|
|
], |
273
|
|
|
|
|
|
|
[ |
274
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
275
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
276
|
|
|
|
|
|
|
'if_none_match', 10, undef |
277
|
|
|
|
|
|
|
], |
278
|
|
|
|
|
|
|
[ |
279
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
280
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
281
|
|
|
|
|
|
|
'return_head', 11, undef |
282
|
|
|
|
|
|
|
], |
283
|
|
|
|
|
|
|
|
284
|
|
|
|
|
|
|
], |
285
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
286
|
|
|
|
|
|
|
); |
287
|
|
|
|
|
|
|
} |
288
|
|
|
|
|
|
|
|
289
|
|
|
|
|
|
|
unless (RpbPutResp->can('_pb_fields_list')) { |
290
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
291
|
|
|
|
|
|
|
'RpbPutResp', |
292
|
|
|
|
|
|
|
[ |
293
|
|
|
|
|
|
|
[ |
294
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
295
|
|
|
|
|
|
|
'RpbContent', |
296
|
|
|
|
|
|
|
'contents', 1, undef |
297
|
|
|
|
|
|
|
], |
298
|
|
|
|
|
|
|
[ |
299
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
300
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
301
|
|
|
|
|
|
|
'vclock', 2, undef |
302
|
|
|
|
|
|
|
], |
303
|
|
|
|
|
|
|
[ |
304
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
305
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
306
|
|
|
|
|
|
|
'key', 3, undef |
307
|
|
|
|
|
|
|
], |
308
|
|
|
|
|
|
|
|
309
|
|
|
|
|
|
|
], |
310
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
311
|
|
|
|
|
|
|
); |
312
|
|
|
|
|
|
|
} |
313
|
|
|
|
|
|
|
|
314
|
|
|
|
|
|
|
unless (RpbGetBucketReq->can('_pb_fields_list')) { |
315
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
316
|
|
|
|
|
|
|
'RpbGetBucketReq', |
317
|
|
|
|
|
|
|
[ |
318
|
|
|
|
|
|
|
[ |
319
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
320
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
321
|
|
|
|
|
|
|
'bucket', 1, undef |
322
|
|
|
|
|
|
|
], |
323
|
|
|
|
|
|
|
|
324
|
|
|
|
|
|
|
], |
325
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
326
|
|
|
|
|
|
|
); |
327
|
|
|
|
|
|
|
} |
328
|
|
|
|
|
|
|
|
329
|
|
|
|
|
|
|
unless (RpbListKeysResp->can('_pb_fields_list')) { |
330
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
331
|
|
|
|
|
|
|
'RpbListKeysResp', |
332
|
|
|
|
|
|
|
[ |
333
|
|
|
|
|
|
|
[ |
334
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
335
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
336
|
|
|
|
|
|
|
'keys', 1, undef |
337
|
|
|
|
|
|
|
], |
338
|
|
|
|
|
|
|
[ |
339
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
340
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
341
|
|
|
|
|
|
|
'done', 2, undef |
342
|
|
|
|
|
|
|
], |
343
|
|
|
|
|
|
|
|
344
|
|
|
|
|
|
|
], |
345
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
346
|
|
|
|
|
|
|
); |
347
|
|
|
|
|
|
|
} |
348
|
|
|
|
|
|
|
|
349
|
|
|
|
|
|
|
unless (RpbPair->can('_pb_fields_list')) { |
350
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
351
|
|
|
|
|
|
|
'RpbPair', |
352
|
|
|
|
|
|
|
[ |
353
|
|
|
|
|
|
|
[ |
354
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
355
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
356
|
|
|
|
|
|
|
'key', 1, undef |
357
|
|
|
|
|
|
|
], |
358
|
|
|
|
|
|
|
[ |
359
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
360
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
361
|
|
|
|
|
|
|
'value', 2, undef |
362
|
|
|
|
|
|
|
], |
363
|
|
|
|
|
|
|
|
364
|
|
|
|
|
|
|
], |
365
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
366
|
|
|
|
|
|
|
); |
367
|
|
|
|
|
|
|
} |
368
|
|
|
|
|
|
|
|
369
|
|
|
|
|
|
|
unless (RpbListKeysReq->can('_pb_fields_list')) { |
370
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
371
|
|
|
|
|
|
|
'RpbListKeysReq', |
372
|
|
|
|
|
|
|
[ |
373
|
|
|
|
|
|
|
[ |
374
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
375
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
376
|
|
|
|
|
|
|
'bucket', 1, undef |
377
|
|
|
|
|
|
|
], |
378
|
|
|
|
|
|
|
|
379
|
|
|
|
|
|
|
], |
380
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
381
|
|
|
|
|
|
|
); |
382
|
|
|
|
|
|
|
} |
383
|
|
|
|
|
|
|
|
384
|
|
|
|
|
|
|
unless (RpbGetBucketResp->can('_pb_fields_list')) { |
385
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
386
|
|
|
|
|
|
|
'RpbGetBucketResp', |
387
|
|
|
|
|
|
|
[ |
388
|
|
|
|
|
|
|
[ |
389
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
390
|
|
|
|
|
|
|
'RpbBucketProps', |
391
|
|
|
|
|
|
|
'props', 1, undef |
392
|
|
|
|
|
|
|
], |
393
|
|
|
|
|
|
|
|
394
|
|
|
|
|
|
|
], |
395
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
396
|
|
|
|
|
|
|
); |
397
|
|
|
|
|
|
|
} |
398
|
|
|
|
|
|
|
|
399
|
|
|
|
|
|
|
unless (RpbDelReq->can('_pb_fields_list')) { |
400
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
401
|
|
|
|
|
|
|
'RpbDelReq', |
402
|
|
|
|
|
|
|
[ |
403
|
|
|
|
|
|
|
[ |
404
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
405
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
406
|
|
|
|
|
|
|
'bucket', 1, undef |
407
|
|
|
|
|
|
|
], |
408
|
|
|
|
|
|
|
[ |
409
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
410
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
411
|
|
|
|
|
|
|
'key', 2, undef |
412
|
|
|
|
|
|
|
], |
413
|
|
|
|
|
|
|
[ |
414
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
415
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
416
|
|
|
|
|
|
|
'rw', 3, undef |
417
|
|
|
|
|
|
|
], |
418
|
|
|
|
|
|
|
[ |
419
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
420
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
421
|
|
|
|
|
|
|
'vclock', 4, undef |
422
|
|
|
|
|
|
|
], |
423
|
|
|
|
|
|
|
[ |
424
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
425
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
426
|
|
|
|
|
|
|
'r', 5, undef |
427
|
|
|
|
|
|
|
], |
428
|
|
|
|
|
|
|
[ |
429
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
430
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
431
|
|
|
|
|
|
|
'w', 6, undef |
432
|
|
|
|
|
|
|
], |
433
|
|
|
|
|
|
|
[ |
434
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
435
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
436
|
|
|
|
|
|
|
'pr', 7, undef |
437
|
|
|
|
|
|
|
], |
438
|
|
|
|
|
|
|
[ |
439
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
440
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
441
|
|
|
|
|
|
|
'pw', 8, undef |
442
|
|
|
|
|
|
|
], |
443
|
|
|
|
|
|
|
[ |
444
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
445
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
446
|
|
|
|
|
|
|
'dw', 9, undef |
447
|
|
|
|
|
|
|
], |
448
|
|
|
|
|
|
|
|
449
|
|
|
|
|
|
|
], |
450
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
451
|
|
|
|
|
|
|
); |
452
|
|
|
|
|
|
|
} |
453
|
|
|
|
|
|
|
|
454
|
|
|
|
|
|
|
unless (RpbContent->can('_pb_fields_list')) { |
455
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
456
|
|
|
|
|
|
|
'RpbContent', |
457
|
|
|
|
|
|
|
[ |
458
|
|
|
|
|
|
|
[ |
459
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
460
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
461
|
|
|
|
|
|
|
'value', 1, undef |
462
|
|
|
|
|
|
|
], |
463
|
|
|
|
|
|
|
[ |
464
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
465
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
466
|
|
|
|
|
|
|
'content_type', 2, undef |
467
|
|
|
|
|
|
|
], |
468
|
|
|
|
|
|
|
[ |
469
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
470
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
471
|
|
|
|
|
|
|
'charset', 3, undef |
472
|
|
|
|
|
|
|
], |
473
|
|
|
|
|
|
|
[ |
474
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
475
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
476
|
|
|
|
|
|
|
'content_encoding', 4, undef |
477
|
|
|
|
|
|
|
], |
478
|
|
|
|
|
|
|
[ |
479
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
480
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
481
|
|
|
|
|
|
|
'vtag', 5, undef |
482
|
|
|
|
|
|
|
], |
483
|
|
|
|
|
|
|
[ |
484
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
485
|
|
|
|
|
|
|
'RpbLink', |
486
|
|
|
|
|
|
|
'links', 6, undef |
487
|
|
|
|
|
|
|
], |
488
|
|
|
|
|
|
|
[ |
489
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
490
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
491
|
|
|
|
|
|
|
'last_mod', 7, undef |
492
|
|
|
|
|
|
|
], |
493
|
|
|
|
|
|
|
[ |
494
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
495
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
496
|
|
|
|
|
|
|
'last_mod_usecs', 8, undef |
497
|
|
|
|
|
|
|
], |
498
|
|
|
|
|
|
|
[ |
499
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
500
|
|
|
|
|
|
|
'RpbPair', |
501
|
|
|
|
|
|
|
'usermeta', 9, undef |
502
|
|
|
|
|
|
|
], |
503
|
|
|
|
|
|
|
[ |
504
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
505
|
|
|
|
|
|
|
'RpbPair', |
506
|
|
|
|
|
|
|
'indexes', 10, undef |
507
|
|
|
|
|
|
|
], |
508
|
|
|
|
|
|
|
[ |
509
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
510
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
511
|
|
|
|
|
|
|
'deleted', 11, undef |
512
|
|
|
|
|
|
|
], |
513
|
|
|
|
|
|
|
|
514
|
|
|
|
|
|
|
], |
515
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
516
|
|
|
|
|
|
|
); |
517
|
|
|
|
|
|
|
} |
518
|
|
|
|
|
|
|
|
519
|
|
|
|
|
|
|
unless (RpbSetBucketReq->can('_pb_fields_list')) { |
520
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
521
|
|
|
|
|
|
|
'RpbSetBucketReq', |
522
|
|
|
|
|
|
|
[ |
523
|
|
|
|
|
|
|
[ |
524
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
525
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
526
|
|
|
|
|
|
|
'bucket', 1, undef |
527
|
|
|
|
|
|
|
], |
528
|
|
|
|
|
|
|
[ |
529
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
530
|
|
|
|
|
|
|
'RpbBucketProps', |
531
|
|
|
|
|
|
|
'props', 2, undef |
532
|
|
|
|
|
|
|
], |
533
|
|
|
|
|
|
|
|
534
|
|
|
|
|
|
|
], |
535
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
536
|
|
|
|
|
|
|
); |
537
|
|
|
|
|
|
|
} |
538
|
|
|
|
|
|
|
|
539
|
|
|
|
|
|
|
unless (RpbMapRedResp->can('_pb_fields_list')) { |
540
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
541
|
|
|
|
|
|
|
'RpbMapRedResp', |
542
|
|
|
|
|
|
|
[ |
543
|
|
|
|
|
|
|
[ |
544
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
545
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
546
|
|
|
|
|
|
|
'phase', 1, undef |
547
|
|
|
|
|
|
|
], |
548
|
|
|
|
|
|
|
[ |
549
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
550
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
551
|
|
|
|
|
|
|
'response', 2, undef |
552
|
|
|
|
|
|
|
], |
553
|
|
|
|
|
|
|
[ |
554
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
555
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
556
|
|
|
|
|
|
|
'done', 3, undef |
557
|
|
|
|
|
|
|
], |
558
|
|
|
|
|
|
|
|
559
|
|
|
|
|
|
|
], |
560
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
561
|
|
|
|
|
|
|
); |
562
|
|
|
|
|
|
|
} |
563
|
|
|
|
|
|
|
|
564
|
|
|
|
|
|
|
unless (RpbErrorResp->can('_pb_fields_list')) { |
565
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
566
|
|
|
|
|
|
|
'RpbErrorResp', |
567
|
|
|
|
|
|
|
[ |
568
|
|
|
|
|
|
|
[ |
569
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
570
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
571
|
|
|
|
|
|
|
'errmsg', 1, undef |
572
|
|
|
|
|
|
|
], |
573
|
|
|
|
|
|
|
[ |
574
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
575
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
576
|
|
|
|
|
|
|
'errcode', 2, undef |
577
|
|
|
|
|
|
|
], |
578
|
|
|
|
|
|
|
|
579
|
|
|
|
|
|
|
], |
580
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
581
|
|
|
|
|
|
|
); |
582
|
|
|
|
|
|
|
} |
583
|
|
|
|
|
|
|
|
584
|
|
|
|
|
|
|
unless (RpbMapRedReq->can('_pb_fields_list')) { |
585
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
586
|
|
|
|
|
|
|
'RpbMapRedReq', |
587
|
|
|
|
|
|
|
[ |
588
|
|
|
|
|
|
|
[ |
589
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
590
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
591
|
|
|
|
|
|
|
'request', 1, undef |
592
|
|
|
|
|
|
|
], |
593
|
|
|
|
|
|
|
[ |
594
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
595
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
596
|
|
|
|
|
|
|
'content_type', 2, undef |
597
|
|
|
|
|
|
|
], |
598
|
|
|
|
|
|
|
|
599
|
|
|
|
|
|
|
], |
600
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
601
|
|
|
|
|
|
|
); |
602
|
|
|
|
|
|
|
} |
603
|
|
|
|
|
|
|
|
604
|
|
|
|
|
|
|
unless (RpbLink->can('_pb_fields_list')) { |
605
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
606
|
|
|
|
|
|
|
'RpbLink', |
607
|
|
|
|
|
|
|
[ |
608
|
|
|
|
|
|
|
[ |
609
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
610
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
611
|
|
|
|
|
|
|
'bucket', 1, undef |
612
|
|
|
|
|
|
|
], |
613
|
|
|
|
|
|
|
[ |
614
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
615
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
616
|
|
|
|
|
|
|
'key', 2, undef |
617
|
|
|
|
|
|
|
], |
618
|
|
|
|
|
|
|
[ |
619
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
620
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
621
|
|
|
|
|
|
|
'tag', 3, undef |
622
|
|
|
|
|
|
|
], |
623
|
|
|
|
|
|
|
|
624
|
|
|
|
|
|
|
], |
625
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
626
|
|
|
|
|
|
|
); |
627
|
|
|
|
|
|
|
} |
628
|
|
|
|
|
|
|
|
629
|
|
|
|
|
|
|
unless (RpbListBucketsResp->can('_pb_fields_list')) { |
630
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
631
|
|
|
|
|
|
|
'RpbListBucketsResp', |
632
|
|
|
|
|
|
|
[ |
633
|
|
|
|
|
|
|
[ |
634
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
635
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
636
|
|
|
|
|
|
|
'buckets', 1, undef |
637
|
|
|
|
|
|
|
], |
638
|
|
|
|
|
|
|
|
639
|
|
|
|
|
|
|
], |
640
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
641
|
|
|
|
|
|
|
); |
642
|
|
|
|
|
|
|
} |
643
|
|
|
|
|
|
|
|
644
|
|
|
|
|
|
|
} |
645
|
|
|
|
|
|
|
1; |
646
|
|
|
|
|
|
|
|
647
|
|
|
|
|
|
|
__END__ |