| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# |
|
2
|
|
|
|
|
|
|
# This file is part of Riak-Light |
|
3
|
|
|
|
|
|
|
# |
|
4
|
|
|
|
|
|
|
# This software is copyright (c) 2013 by Weborama. |
|
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
|
|
|
|
|
|
|
## no critic (RequireUseStrict, RequireUseWarnings) |
|
10
|
|
|
|
|
|
|
package Riak::Light::PBC; |
|
11
|
|
|
|
|
|
|
{ |
|
12
|
|
|
|
|
|
|
$Riak::Light::PBC::VERSION = '0.11'; |
|
13
|
|
|
|
|
|
|
} |
|
14
|
|
|
|
|
|
|
## use critic |
|
15
|
|
|
|
|
|
|
# ABSTRACT: ProtocolBuffers helper to access the Riak API |
|
16
|
|
|
|
|
|
|
## |
|
17
|
|
|
|
|
|
|
## This file was generated by Google::ProtocolBuffers (0.08) |
|
18
|
|
|
|
|
|
|
## on Fri Feb 28 12:59:39 2014 |
|
19
|
|
|
|
|
|
|
## |
|
20
|
1
|
|
|
1
|
|
3
|
use strict; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
30
|
|
|
21
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
25
|
|
|
22
|
1
|
|
|
1
|
|
993
|
use Google::ProtocolBuffers; |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
{ |
|
24
|
|
|
|
|
|
|
unless ( RpbIndexReq::IndexQueryType->can('_pb_fields_list') ) { |
|
25
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_enum( |
|
26
|
|
|
|
|
|
|
'RpbIndexReq::IndexQueryType', |
|
27
|
|
|
|
|
|
|
[ [ 'eq', 0 ], |
|
28
|
|
|
|
|
|
|
[ 'range', 1 ], |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
] |
|
31
|
|
|
|
|
|
|
); |
|
32
|
|
|
|
|
|
|
} |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
unless ( RpbSetClientIdReq->can('_pb_fields_list') ) { |
|
35
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
36
|
|
|
|
|
|
|
'RpbSetClientIdReq', |
|
37
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
38
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
39
|
|
|
|
|
|
|
'client_id', 1, undef |
|
40
|
|
|
|
|
|
|
], |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
], |
|
43
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
44
|
|
|
|
|
|
|
); |
|
45
|
|
|
|
|
|
|
} |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
unless ( RpbPutReq->can('_pb_fields_list') ) { |
|
48
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
49
|
|
|
|
|
|
|
'RpbPutReq', |
|
50
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
51
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
52
|
|
|
|
|
|
|
'bucket', 1, undef |
|
53
|
|
|
|
|
|
|
], |
|
54
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
55
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
56
|
|
|
|
|
|
|
'key', 2, undef |
|
57
|
|
|
|
|
|
|
], |
|
58
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
59
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
60
|
|
|
|
|
|
|
'vclock', 3, undef |
|
61
|
|
|
|
|
|
|
], |
|
62
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
63
|
|
|
|
|
|
|
'RpbContent', |
|
64
|
|
|
|
|
|
|
'content', 4, undef |
|
65
|
|
|
|
|
|
|
], |
|
66
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
67
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
68
|
|
|
|
|
|
|
'w', 5, undef |
|
69
|
|
|
|
|
|
|
], |
|
70
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
71
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
72
|
|
|
|
|
|
|
'dw', 6, undef |
|
73
|
|
|
|
|
|
|
], |
|
74
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
75
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
|
76
|
|
|
|
|
|
|
'return_body', 7, undef |
|
77
|
|
|
|
|
|
|
], |
|
78
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
79
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
80
|
|
|
|
|
|
|
'pw', 8, undef |
|
81
|
|
|
|
|
|
|
], |
|
82
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
83
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
|
84
|
|
|
|
|
|
|
'if_not_modified', 9, undef |
|
85
|
|
|
|
|
|
|
], |
|
86
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
87
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
|
88
|
|
|
|
|
|
|
'if_none_match', 10, undef |
|
89
|
|
|
|
|
|
|
], |
|
90
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
91
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
|
92
|
|
|
|
|
|
|
'return_head', 11, undef |
|
93
|
|
|
|
|
|
|
], |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
], |
|
96
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
97
|
|
|
|
|
|
|
); |
|
98
|
|
|
|
|
|
|
} |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
unless ( RpbGetReq->can('_pb_fields_list') ) { |
|
101
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
102
|
|
|
|
|
|
|
'RpbGetReq', |
|
103
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
104
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
105
|
|
|
|
|
|
|
'bucket', 1, undef |
|
106
|
|
|
|
|
|
|
], |
|
107
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
108
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
109
|
|
|
|
|
|
|
'key', 2, undef |
|
110
|
|
|
|
|
|
|
], |
|
111
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
112
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
113
|
|
|
|
|
|
|
'r', 3, undef |
|
114
|
|
|
|
|
|
|
], |
|
115
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
116
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
117
|
|
|
|
|
|
|
'pr', 4, undef |
|
118
|
|
|
|
|
|
|
], |
|
119
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
120
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
|
121
|
|
|
|
|
|
|
'basic_quorum', 5, undef |
|
122
|
|
|
|
|
|
|
], |
|
123
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
124
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
|
125
|
|
|
|
|
|
|
'notfound_ok', 6, undef |
|
126
|
|
|
|
|
|
|
], |
|
127
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
128
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
129
|
|
|
|
|
|
|
'if_modified', 7, undef |
|
130
|
|
|
|
|
|
|
], |
|
131
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
132
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
|
133
|
|
|
|
|
|
|
'head', 8, undef |
|
134
|
|
|
|
|
|
|
], |
|
135
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
136
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
|
137
|
|
|
|
|
|
|
'deletedvclock', 9, undef |
|
138
|
|
|
|
|
|
|
], |
|
139
|
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
], |
|
141
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
142
|
|
|
|
|
|
|
); |
|
143
|
|
|
|
|
|
|
} |
|
144
|
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
unless ( RpbLink->can('_pb_fields_list') ) { |
|
146
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
147
|
|
|
|
|
|
|
'RpbLink', |
|
148
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
149
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
150
|
|
|
|
|
|
|
'bucket', 1, undef |
|
151
|
|
|
|
|
|
|
], |
|
152
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
153
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
154
|
|
|
|
|
|
|
'key', 2, undef |
|
155
|
|
|
|
|
|
|
], |
|
156
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
157
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
158
|
|
|
|
|
|
|
'tag', 3, undef |
|
159
|
|
|
|
|
|
|
], |
|
160
|
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
], |
|
162
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
163
|
|
|
|
|
|
|
); |
|
164
|
|
|
|
|
|
|
} |
|
165
|
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
unless ( RpbGetResp->can('_pb_fields_list') ) { |
|
167
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
168
|
|
|
|
|
|
|
'RpbGetResp', |
|
169
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
|
170
|
|
|
|
|
|
|
'RpbContent', |
|
171
|
|
|
|
|
|
|
'content', 1, undef |
|
172
|
|
|
|
|
|
|
], |
|
173
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
174
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
175
|
|
|
|
|
|
|
'vclock', 2, undef |
|
176
|
|
|
|
|
|
|
], |
|
177
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
178
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
|
179
|
|
|
|
|
|
|
'unchanged', 3, undef |
|
180
|
|
|
|
|
|
|
], |
|
181
|
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
], |
|
183
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
184
|
|
|
|
|
|
|
); |
|
185
|
|
|
|
|
|
|
} |
|
186
|
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
unless ( RpbPair->can('_pb_fields_list') ) { |
|
188
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
189
|
|
|
|
|
|
|
'RpbPair', |
|
190
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
191
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
192
|
|
|
|
|
|
|
'key', 1, undef |
|
193
|
|
|
|
|
|
|
], |
|
194
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
195
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
196
|
|
|
|
|
|
|
'value', 2, undef |
|
197
|
|
|
|
|
|
|
], |
|
198
|
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
], |
|
200
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
201
|
|
|
|
|
|
|
); |
|
202
|
|
|
|
|
|
|
} |
|
203
|
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
unless ( RpbPutResp->can('_pb_fields_list') ) { |
|
205
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
206
|
|
|
|
|
|
|
'RpbPutResp', |
|
207
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
|
208
|
|
|
|
|
|
|
'RpbContent', |
|
209
|
|
|
|
|
|
|
'contents', 1, undef |
|
210
|
|
|
|
|
|
|
], |
|
211
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
212
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
213
|
|
|
|
|
|
|
'vclock', 2, undef |
|
214
|
|
|
|
|
|
|
], |
|
215
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
216
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
217
|
|
|
|
|
|
|
'key', 3, undef |
|
218
|
|
|
|
|
|
|
], |
|
219
|
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
], |
|
221
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
222
|
|
|
|
|
|
|
); |
|
223
|
|
|
|
|
|
|
} |
|
224
|
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
unless ( RpbDelReq->can('_pb_fields_list') ) { |
|
226
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
227
|
|
|
|
|
|
|
'RpbDelReq', |
|
228
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
229
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
230
|
|
|
|
|
|
|
'bucket', 1, undef |
|
231
|
|
|
|
|
|
|
], |
|
232
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
233
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
234
|
|
|
|
|
|
|
'key', 2, undef |
|
235
|
|
|
|
|
|
|
], |
|
236
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
237
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
238
|
|
|
|
|
|
|
'rw', 3, undef |
|
239
|
|
|
|
|
|
|
], |
|
240
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
241
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
242
|
|
|
|
|
|
|
'vclock', 4, undef |
|
243
|
|
|
|
|
|
|
], |
|
244
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
245
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
246
|
|
|
|
|
|
|
'r', 5, undef |
|
247
|
|
|
|
|
|
|
], |
|
248
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
249
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
250
|
|
|
|
|
|
|
'w', 6, undef |
|
251
|
|
|
|
|
|
|
], |
|
252
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
253
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
254
|
|
|
|
|
|
|
'pr', 7, undef |
|
255
|
|
|
|
|
|
|
], |
|
256
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
257
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
258
|
|
|
|
|
|
|
'pw', 8, undef |
|
259
|
|
|
|
|
|
|
], |
|
260
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
261
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
262
|
|
|
|
|
|
|
'dw', 9, undef |
|
263
|
|
|
|
|
|
|
], |
|
264
|
|
|
|
|
|
|
|
|
265
|
|
|
|
|
|
|
], |
|
266
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
267
|
|
|
|
|
|
|
); |
|
268
|
|
|
|
|
|
|
} |
|
269
|
|
|
|
|
|
|
|
|
270
|
|
|
|
|
|
|
unless ( RpbMapRedReq->can('_pb_fields_list') ) { |
|
271
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
272
|
|
|
|
|
|
|
'RpbMapRedReq', |
|
273
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
274
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
275
|
|
|
|
|
|
|
'request', 1, undef |
|
276
|
|
|
|
|
|
|
], |
|
277
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
278
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
279
|
|
|
|
|
|
|
'content_type', 2, undef |
|
280
|
|
|
|
|
|
|
], |
|
281
|
|
|
|
|
|
|
|
|
282
|
|
|
|
|
|
|
], |
|
283
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
284
|
|
|
|
|
|
|
); |
|
285
|
|
|
|
|
|
|
} |
|
286
|
|
|
|
|
|
|
|
|
287
|
|
|
|
|
|
|
unless ( RpbIndexReq->can('_pb_fields_list') ) { |
|
288
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
289
|
|
|
|
|
|
|
'RpbIndexReq', |
|
290
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
291
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
292
|
|
|
|
|
|
|
'bucket', 1, undef |
|
293
|
|
|
|
|
|
|
], |
|
294
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
295
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
296
|
|
|
|
|
|
|
'index', 2, undef |
|
297
|
|
|
|
|
|
|
], |
|
298
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
299
|
|
|
|
|
|
|
'RpbIndexReq::IndexQueryType', |
|
300
|
|
|
|
|
|
|
'qtype', 3, undef |
|
301
|
|
|
|
|
|
|
], |
|
302
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
303
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
304
|
|
|
|
|
|
|
'key', 4, undef |
|
305
|
|
|
|
|
|
|
], |
|
306
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
307
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
308
|
|
|
|
|
|
|
'range_min', 5, undef |
|
309
|
|
|
|
|
|
|
], |
|
310
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
311
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
312
|
|
|
|
|
|
|
'range_max', 6, undef |
|
313
|
|
|
|
|
|
|
], |
|
314
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
315
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
|
316
|
|
|
|
|
|
|
'return_terms', 7, undef |
|
317
|
|
|
|
|
|
|
], |
|
318
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
319
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
|
320
|
|
|
|
|
|
|
'stream', 8, undef |
|
321
|
|
|
|
|
|
|
], |
|
322
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
323
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
324
|
|
|
|
|
|
|
'max_results', 9, undef |
|
325
|
|
|
|
|
|
|
], |
|
326
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
327
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
328
|
|
|
|
|
|
|
'continuation', 10, undef |
|
329
|
|
|
|
|
|
|
], |
|
330
|
|
|
|
|
|
|
|
|
331
|
|
|
|
|
|
|
], |
|
332
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
333
|
|
|
|
|
|
|
); |
|
334
|
|
|
|
|
|
|
} |
|
335
|
|
|
|
|
|
|
|
|
336
|
|
|
|
|
|
|
unless ( RpbGetClientIdResp->can('_pb_fields_list') ) { |
|
337
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
338
|
|
|
|
|
|
|
'RpbGetClientIdResp', |
|
339
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
340
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
341
|
|
|
|
|
|
|
'client_id', 1, undef |
|
342
|
|
|
|
|
|
|
], |
|
343
|
|
|
|
|
|
|
|
|
344
|
|
|
|
|
|
|
], |
|
345
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
346
|
|
|
|
|
|
|
); |
|
347
|
|
|
|
|
|
|
} |
|
348
|
|
|
|
|
|
|
|
|
349
|
|
|
|
|
|
|
unless ( RpbMapRedResp->can('_pb_fields_list') ) { |
|
350
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
351
|
|
|
|
|
|
|
'RpbMapRedResp', |
|
352
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
353
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
354
|
|
|
|
|
|
|
'phase', 1, undef |
|
355
|
|
|
|
|
|
|
], |
|
356
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
357
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
358
|
|
|
|
|
|
|
'response', 2, undef |
|
359
|
|
|
|
|
|
|
], |
|
360
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
361
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
|
362
|
|
|
|
|
|
|
'done', 3, undef |
|
363
|
|
|
|
|
|
|
], |
|
364
|
|
|
|
|
|
|
|
|
365
|
|
|
|
|
|
|
], |
|
366
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
367
|
|
|
|
|
|
|
); |
|
368
|
|
|
|
|
|
|
} |
|
369
|
|
|
|
|
|
|
|
|
370
|
|
|
|
|
|
|
unless ( RpbIndexResp->can('_pb_fields_list') ) { |
|
371
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
372
|
|
|
|
|
|
|
'RpbIndexResp', |
|
373
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
|
374
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
375
|
|
|
|
|
|
|
'keys', 1, undef |
|
376
|
|
|
|
|
|
|
], |
|
377
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
|
378
|
|
|
|
|
|
|
'RpbPair', |
|
379
|
|
|
|
|
|
|
'results', 2, undef |
|
380
|
|
|
|
|
|
|
], |
|
381
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
382
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
383
|
|
|
|
|
|
|
'continuation', 3, undef |
|
384
|
|
|
|
|
|
|
], |
|
385
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
386
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
|
387
|
|
|
|
|
|
|
'done', 4, undef |
|
388
|
|
|
|
|
|
|
], |
|
389
|
|
|
|
|
|
|
|
|
390
|
|
|
|
|
|
|
], |
|
391
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
392
|
|
|
|
|
|
|
); |
|
393
|
|
|
|
|
|
|
} |
|
394
|
|
|
|
|
|
|
|
|
395
|
|
|
|
|
|
|
unless ( RpbErrorResp->can('_pb_fields_list') ) { |
|
396
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
397
|
|
|
|
|
|
|
'RpbErrorResp', |
|
398
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
399
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
400
|
|
|
|
|
|
|
'errmsg', 1, undef |
|
401
|
|
|
|
|
|
|
], |
|
402
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
403
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
404
|
|
|
|
|
|
|
'errcode', 2, undef |
|
405
|
|
|
|
|
|
|
], |
|
406
|
|
|
|
|
|
|
|
|
407
|
|
|
|
|
|
|
], |
|
408
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
409
|
|
|
|
|
|
|
); |
|
410
|
|
|
|
|
|
|
} |
|
411
|
|
|
|
|
|
|
|
|
412
|
|
|
|
|
|
|
unless ( RpbListKeysReq->can('_pb_fields_list') ) { |
|
413
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
414
|
|
|
|
|
|
|
'RpbListKeysReq', |
|
415
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
416
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
417
|
|
|
|
|
|
|
'bucket', 1, undef |
|
418
|
|
|
|
|
|
|
], |
|
419
|
|
|
|
|
|
|
|
|
420
|
|
|
|
|
|
|
], |
|
421
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
422
|
|
|
|
|
|
|
); |
|
423
|
|
|
|
|
|
|
} |
|
424
|
|
|
|
|
|
|
|
|
425
|
|
|
|
|
|
|
unless ( RpbListKeysResp->can('_pb_fields_list') ) { |
|
426
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
427
|
|
|
|
|
|
|
'RpbListKeysResp', |
|
428
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
|
429
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
430
|
|
|
|
|
|
|
'keys', 1, undef |
|
431
|
|
|
|
|
|
|
], |
|
432
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
433
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
|
434
|
|
|
|
|
|
|
'done', 2, undef |
|
435
|
|
|
|
|
|
|
], |
|
436
|
|
|
|
|
|
|
|
|
437
|
|
|
|
|
|
|
], |
|
438
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
439
|
|
|
|
|
|
|
); |
|
440
|
|
|
|
|
|
|
} |
|
441
|
|
|
|
|
|
|
|
|
442
|
|
|
|
|
|
|
unless ( RpbContent->can('_pb_fields_list') ) { |
|
443
|
|
|
|
|
|
|
Google::ProtocolBuffers->create_message( |
|
444
|
|
|
|
|
|
|
'RpbContent', |
|
445
|
|
|
|
|
|
|
[ [ Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), |
|
446
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
447
|
|
|
|
|
|
|
'value', 1, undef |
|
448
|
|
|
|
|
|
|
], |
|
449
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
450
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
451
|
|
|
|
|
|
|
'content_type', 2, undef |
|
452
|
|
|
|
|
|
|
], |
|
453
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
454
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
455
|
|
|
|
|
|
|
'charset', 3, undef |
|
456
|
|
|
|
|
|
|
], |
|
457
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
458
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
459
|
|
|
|
|
|
|
'content_encoding', 4, undef |
|
460
|
|
|
|
|
|
|
], |
|
461
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
462
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BYTES(), |
|
463
|
|
|
|
|
|
|
'vtag', 5, undef |
|
464
|
|
|
|
|
|
|
], |
|
465
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
|
466
|
|
|
|
|
|
|
'RpbLink', |
|
467
|
|
|
|
|
|
|
'links', 6, undef |
|
468
|
|
|
|
|
|
|
], |
|
469
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
470
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
471
|
|
|
|
|
|
|
'last_mod', 7, undef |
|
472
|
|
|
|
|
|
|
], |
|
473
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
474
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_UINT32(), |
|
475
|
|
|
|
|
|
|
'last_mod_usecs', 8, undef |
|
476
|
|
|
|
|
|
|
], |
|
477
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
|
478
|
|
|
|
|
|
|
'RpbPair', |
|
479
|
|
|
|
|
|
|
'usermeta', 9, undef |
|
480
|
|
|
|
|
|
|
], |
|
481
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_REPEATED(), |
|
482
|
|
|
|
|
|
|
'RpbPair', |
|
483
|
|
|
|
|
|
|
'indexes', 10, undef |
|
484
|
|
|
|
|
|
|
], |
|
485
|
|
|
|
|
|
|
[ Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), |
|
486
|
|
|
|
|
|
|
Google::ProtocolBuffers::Constants::TYPE_BOOL(), |
|
487
|
|
|
|
|
|
|
'deleted', 11, undef |
|
488
|
|
|
|
|
|
|
], |
|
489
|
|
|
|
|
|
|
|
|
490
|
|
|
|
|
|
|
], |
|
491
|
|
|
|
|
|
|
{ 'create_accessors' => 1, } |
|
492
|
|
|
|
|
|
|
); |
|
493
|
|
|
|
|
|
|
} |
|
494
|
|
|
|
|
|
|
|
|
495
|
|
|
|
|
|
|
} |
|
496
|
|
|
|
|
|
|
1; |
|
497
|
|
|
|
|
|
|
|
|
498
|
|
|
|
|
|
|
__END__ |