File Coverage

blib/lib/Riak/Client/PBC.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


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             $Riak::Client::PBC::VERSION = '1.96';
11             ##
12             ## This file was generated by Google::ProtocolBuffers (0.09)
13             ## on Tue Mar 31 20:47:24 2015 from file /Users/dkrotkine/Devel/riak-client/pbc/riak.proto
14             ##
15              
16 1     1   5 use strict;
  1         2  
  1         27  
17 1     1   3 use warnings;
  1         1  
  1         25  
18 1     1   445 use Google::ProtocolBuffers;
  1         72254  
  1         2335  
19             {
20             unless (RpbBucketProps::RpbReplMode->can('_pb_fields_list')) {
21             Google::ProtocolBuffers->create_enum(
22             'RpbBucketProps::RpbReplMode',
23             [
24             ['FALSE', 0],
25             ['REALTIME', 1],
26             ['FULLSYNC', 2],
27             ['TRUE', 3],
28              
29             ]
30             );
31             }
32            
33             unless (RpbIndexReq::IndexQueryType->can('_pb_fields_list')) {
34             Google::ProtocolBuffers->create_enum(
35             'RpbIndexReq::IndexQueryType',
36             [
37             ['eq', 0],
38             ['range', 1],
39              
40             ]
41             );
42             }
43            
44             unless (RpbSetBucketReq->can('_pb_fields_list')) {
45             Google::ProtocolBuffers->create_message(
46             'RpbSetBucketReq',
47             [
48             [
49             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
50             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
51             'bucket', 1, undef
52             ],
53             [
54             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
55             'RpbBucketProps',
56             'props', 2, undef
57             ],
58             [
59             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
60             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
61             'type', 3, undef
62             ],
63              
64             ],
65             { 'create_accessors' => 1, }
66             );
67             }
68              
69             unless (RpbCSBucketResp->can('_pb_fields_list')) {
70             Google::ProtocolBuffers->create_message(
71             'RpbCSBucketResp',
72             [
73             [
74             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
75             'RpbIndexObject',
76             'objects', 1, undef
77             ],
78             [
79             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
80             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
81             'continuation', 2, undef
82             ],
83             [
84             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
85             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
86             'done', 3, undef
87             ],
88              
89             ],
90             { 'create_accessors' => 1, }
91             );
92             }
93              
94             unless (RpbIndexReq->can('_pb_fields_list')) {
95             Google::ProtocolBuffers->create_message(
96             'RpbIndexReq',
97             [
98             [
99             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
100             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
101             'bucket', 1, undef
102             ],
103             [
104             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
105             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
106             'index', 2, undef
107             ],
108             [
109             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
110             'RpbIndexReq::IndexQueryType',
111             'qtype', 3, undef
112             ],
113             [
114             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
115             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
116             'key', 4, undef
117             ],
118             [
119             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
120             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
121             'range_min', 5, undef
122             ],
123             [
124             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
125             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
126             'range_max', 6, undef
127             ],
128             [
129             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
130             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
131             'return_terms', 7, undef
132             ],
133             [
134             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
135             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
136             'stream', 8, undef
137             ],
138             [
139             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
140             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
141             'max_results', 9, undef
142             ],
143             [
144             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
145             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
146             'continuation', 10, undef
147             ],
148             [
149             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
150             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
151             'timeout', 11, undef
152             ],
153             [
154             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
155             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
156             'type', 12, undef
157             ],
158             [
159             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
160             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
161             'term_regex', 13, undef
162             ],
163             [
164             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
165             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
166             'pagination_sort', 14, undef
167             ],
168              
169             ],
170             { 'create_accessors' => 1, }
171             );
172             }
173              
174             unless (RpbGetBucketTypeReq->can('_pb_fields_list')) {
175             Google::ProtocolBuffers->create_message(
176             'RpbGetBucketTypeReq',
177             [
178             [
179             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
180             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
181             'type', 1, undef
182             ],
183              
184             ],
185             { 'create_accessors' => 1, }
186             );
187             }
188              
189             unless (RpbMapRedResp->can('_pb_fields_list')) {
190             Google::ProtocolBuffers->create_message(
191             'RpbMapRedResp',
192             [
193             [
194             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
195             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
196             'phase', 1, undef
197             ],
198             [
199             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
200             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
201             'response', 2, undef
202             ],
203             [
204             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
205             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
206             'done', 3, undef
207             ],
208              
209             ],
210             { 'create_accessors' => 1, }
211             );
212             }
213              
214             unless (RpbErrorResp->can('_pb_fields_list')) {
215             Google::ProtocolBuffers->create_message(
216             'RpbErrorResp',
217             [
218             [
219             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
220             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
221             'errmsg', 1, undef
222             ],
223             [
224             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
225             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
226             'errcode', 2, undef
227             ],
228              
229             ],
230             { 'create_accessors' => 1, }
231             );
232             }
233              
234             unless (RpbGetBucketResp->can('_pb_fields_list')) {
235             Google::ProtocolBuffers->create_message(
236             'RpbGetBucketResp',
237             [
238             [
239             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
240             'RpbBucketProps',
241             'props', 1, undef
242             ],
243              
244             ],
245             { 'create_accessors' => 1, }
246             );
247             }
248              
249             unless (RpbModFun->can('_pb_fields_list')) {
250             Google::ProtocolBuffers->create_message(
251             'RpbModFun',
252             [
253             [
254             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
255             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
256             'module', 1, undef
257             ],
258             [
259             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
260             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
261             'function', 2, undef
262             ],
263              
264             ],
265             { 'create_accessors' => 1, }
266             );
267             }
268              
269             unless (RpbSetClientIdReq->can('_pb_fields_list')) {
270             Google::ProtocolBuffers->create_message(
271             'RpbSetClientIdReq',
272             [
273             [
274             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
275             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
276             'client_id', 1, undef
277             ],
278              
279             ],
280             { 'create_accessors' => 1, }
281             );
282             }
283              
284             unless (RpbCommitHook->can('_pb_fields_list')) {
285             Google::ProtocolBuffers->create_message(
286             'RpbCommitHook',
287             [
288             [
289             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
290             'RpbModFun',
291             'modfun', 1, undef
292             ],
293             [
294             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
295             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
296             'name', 2, undef
297             ],
298              
299             ],
300             { 'create_accessors' => 1, }
301             );
302             }
303              
304             unless (RpbListKeysReq->can('_pb_fields_list')) {
305             Google::ProtocolBuffers->create_message(
306             'RpbListKeysReq',
307             [
308             [
309             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
310             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
311             'bucket', 1, undef
312             ],
313             [
314             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
315             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
316             'timeout', 2, undef
317             ],
318             [
319             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
320             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
321             'type', 3, undef
322             ],
323              
324             ],
325             { 'create_accessors' => 1, }
326             );
327             }
328              
329             unless (RpbCounterGetResp->can('_pb_fields_list')) {
330             Google::ProtocolBuffers->create_message(
331             'RpbCounterGetResp',
332             [
333             [
334             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
335             Google::ProtocolBuffers::Constants::TYPE_SINT64(),
336             'value', 1, undef
337             ],
338              
339             ],
340             { 'create_accessors' => 1, }
341             );
342             }
343              
344             unless (RpbListBucketsResp->can('_pb_fields_list')) {
345             Google::ProtocolBuffers->create_message(
346             'RpbListBucketsResp',
347             [
348             [
349             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
350             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
351             'buckets', 1, undef
352             ],
353             [
354             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
355             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
356             'done', 2, undef
357             ],
358              
359             ],
360             { 'create_accessors' => 1, }
361             );
362             }
363              
364             unless (RpbLink->can('_pb_fields_list')) {
365             Google::ProtocolBuffers->create_message(
366             'RpbLink',
367             [
368             [
369             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
370             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
371             'bucket', 1, undef
372             ],
373             [
374             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
375             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
376             'key', 2, undef
377             ],
378             [
379             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
380             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
381             'tag', 3, undef
382             ],
383              
384             ],
385             { 'create_accessors' => 1, }
386             );
387             }
388              
389             unless (RpbAuthReq->can('_pb_fields_list')) {
390             Google::ProtocolBuffers->create_message(
391             'RpbAuthReq',
392             [
393             [
394             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
395             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
396             'user', 1, undef
397             ],
398             [
399             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
400             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
401             'password', 2, undef
402             ],
403              
404             ],
405             { 'create_accessors' => 1, }
406             );
407             }
408              
409             unless (RpbCounterGetReq->can('_pb_fields_list')) {
410             Google::ProtocolBuffers->create_message(
411             'RpbCounterGetReq',
412             [
413             [
414             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
415             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
416             'bucket', 1, undef
417             ],
418             [
419             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
420             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
421             'key', 2, undef
422             ],
423             [
424             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
425             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
426             'r', 3, undef
427             ],
428             [
429             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
430             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
431             'pr', 4, undef
432             ],
433             [
434             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
435             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
436             'basic_quorum', 5, undef
437             ],
438             [
439             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
440             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
441             'notfound_ok', 6, undef
442             ],
443              
444             ],
445             { 'create_accessors' => 1, }
446             );
447             }
448              
449             unless (RpbIndexResp->can('_pb_fields_list')) {
450             Google::ProtocolBuffers->create_message(
451             'RpbIndexResp',
452             [
453             [
454             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
455             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
456             'keys', 1, undef
457             ],
458             [
459             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
460             'RpbPair',
461             'results', 2, undef
462             ],
463             [
464             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
465             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
466             'continuation', 3, undef
467             ],
468             [
469             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
470             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
471             'done', 4, undef
472             ],
473              
474             ],
475             { 'create_accessors' => 1, }
476             );
477             }
478              
479             unless (RpbContent->can('_pb_fields_list')) {
480             Google::ProtocolBuffers->create_message(
481             'RpbContent',
482             [
483             [
484             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
485             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
486             'value', 1, undef
487             ],
488             [
489             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
490             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
491             'content_type', 2, undef
492             ],
493             [
494             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
495             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
496             'charset', 3, undef
497             ],
498             [
499             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
500             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
501             'content_encoding', 4, undef
502             ],
503             [
504             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
505             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
506             'vtag', 5, undef
507             ],
508             [
509             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
510             'RpbLink',
511             'links', 6, undef
512             ],
513             [
514             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
515             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
516             'last_mod', 7, undef
517             ],
518             [
519             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
520             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
521             'last_mod_usecs', 8, undef
522             ],
523             [
524             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
525             'RpbPair',
526             'usermeta', 9, undef
527             ],
528             [
529             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
530             'RpbPair',
531             'indexes', 10, undef
532             ],
533             [
534             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
535             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
536             'deleted', 11, undef
537             ],
538              
539             ],
540             { 'create_accessors' => 1, }
541             );
542             }
543              
544             unless (RpbGetReq->can('_pb_fields_list')) {
545             Google::ProtocolBuffers->create_message(
546             'RpbGetReq',
547             [
548             [
549             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
550             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
551             'bucket', 1, undef
552             ],
553             [
554             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
555             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
556             'key', 2, undef
557             ],
558             [
559             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
560             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
561             'r', 3, undef
562             ],
563             [
564             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
565             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
566             'pr', 4, undef
567             ],
568             [
569             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
570             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
571             'basic_quorum', 5, undef
572             ],
573             [
574             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
575             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
576             'notfound_ok', 6, undef
577             ],
578             [
579             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
580             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
581             'if_modified', 7, undef
582             ],
583             [
584             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
585             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
586             'head', 8, undef
587             ],
588             [
589             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
590             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
591             'deletedvclock', 9, undef
592             ],
593             [
594             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
595             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
596             'timeout', 10, undef
597             ],
598             [
599             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
600             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
601             'sloppy_quorum', 11, undef
602             ],
603             [
604             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
605             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
606             'n_val', 12, undef
607             ],
608             [
609             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
610             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
611             'type', 13, undef
612             ],
613              
614             ],
615             { 'create_accessors' => 1, }
616             );
617             }
618              
619             unless (RpbPutResp->can('_pb_fields_list')) {
620             Google::ProtocolBuffers->create_message(
621             'RpbPutResp',
622             [
623             [
624             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
625             'RpbContent',
626             'content', 1, undef
627             ],
628             [
629             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
630             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
631             'vclock', 2, undef
632             ],
633             [
634             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
635             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
636             'key', 3, undef
637             ],
638              
639             ],
640             { 'create_accessors' => 1, }
641             );
642             }
643              
644             unless (RpbListKeysResp->can('_pb_fields_list')) {
645             Google::ProtocolBuffers->create_message(
646             'RpbListKeysResp',
647             [
648             [
649             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
650             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
651             'keys', 1, undef
652             ],
653             [
654             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
655             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
656             'done', 2, undef
657             ],
658              
659             ],
660             { 'create_accessors' => 1, }
661             );
662             }
663              
664             unless (RpbCounterUpdateReq->can('_pb_fields_list')) {
665             Google::ProtocolBuffers->create_message(
666             'RpbCounterUpdateReq',
667             [
668             [
669             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
670             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
671             'bucket', 1, undef
672             ],
673             [
674             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
675             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
676             'key', 2, undef
677             ],
678             [
679             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
680             Google::ProtocolBuffers::Constants::TYPE_SINT64(),
681             'amount', 3, undef
682             ],
683             [
684             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
685             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
686             'w', 4, undef
687             ],
688             [
689             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
690             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
691             'dw', 5, undef
692             ],
693             [
694             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
695             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
696             'pw', 6, undef
697             ],
698             [
699             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
700             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
701             'returnvalue', 7, undef
702             ],
703              
704             ],
705             { 'create_accessors' => 1, }
706             );
707             }
708              
709             unless (RpbPutReq->can('_pb_fields_list')) {
710             Google::ProtocolBuffers->create_message(
711             'RpbPutReq',
712             [
713             [
714             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
715             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
716             'bucket', 1, undef
717             ],
718             [
719             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
720             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
721             'key', 2, undef
722             ],
723             [
724             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
725             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
726             'vclock', 3, undef
727             ],
728             [
729             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
730             'RpbContent',
731             'content', 4, undef
732             ],
733             [
734             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
735             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
736             'w', 5, undef
737             ],
738             [
739             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
740             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
741             'dw', 6, undef
742             ],
743             [
744             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
745             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
746             'return_body', 7, undef
747             ],
748             [
749             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
750             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
751             'pw', 8, undef
752             ],
753             [
754             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
755             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
756             'if_not_modified', 9, undef
757             ],
758             [
759             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
760             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
761             'if_none_match', 10, undef
762             ],
763             [
764             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
765             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
766             'return_head', 11, undef
767             ],
768             [
769             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
770             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
771             'timeout', 12, undef
772             ],
773             [
774             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
775             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
776             'asis', 13, undef
777             ],
778             [
779             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
780             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
781             'sloppy_quorum', 14, undef
782             ],
783             [
784             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
785             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
786             'n_val', 15, undef
787             ],
788             [
789             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
790             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
791             'type', 16, undef
792             ],
793              
794             ],
795             { 'create_accessors' => 1, }
796             );
797             }
798              
799             unless (RpbGetClientIdResp->can('_pb_fields_list')) {
800             Google::ProtocolBuffers->create_message(
801             'RpbGetClientIdResp',
802             [
803             [
804             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
805             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
806             'client_id', 1, undef
807             ],
808              
809             ],
810             { 'create_accessors' => 1, }
811             );
812             }
813              
814             unless (RpbGetResp->can('_pb_fields_list')) {
815             Google::ProtocolBuffers->create_message(
816             'RpbGetResp',
817             [
818             [
819             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
820             'RpbContent',
821             'content', 1, undef
822             ],
823             [
824             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
825             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
826             'vclock', 2, undef
827             ],
828             [
829             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
830             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
831             'unchanged', 3, undef
832             ],
833              
834             ],
835             { 'create_accessors' => 1, }
836             );
837             }
838              
839             unless (RpbSetBucketTypeReq->can('_pb_fields_list')) {
840             Google::ProtocolBuffers->create_message(
841             'RpbSetBucketTypeReq',
842             [
843             [
844             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
845             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
846             'type', 1, undef
847             ],
848             [
849             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
850             'RpbBucketProps',
851             'props', 2, undef
852             ],
853              
854             ],
855             { 'create_accessors' => 1, }
856             );
857             }
858              
859             unless (RpbDelReq->can('_pb_fields_list')) {
860             Google::ProtocolBuffers->create_message(
861             'RpbDelReq',
862             [
863             [
864             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
865             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
866             'bucket', 1, undef
867             ],
868             [
869             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
870             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
871             'key', 2, undef
872             ],
873             [
874             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
875             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
876             'rw', 3, undef
877             ],
878             [
879             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
880             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
881             'vclock', 4, undef
882             ],
883             [
884             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
885             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
886             'r', 5, undef
887             ],
888             [
889             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
890             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
891             'w', 6, undef
892             ],
893             [
894             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
895             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
896             'pr', 7, undef
897             ],
898             [
899             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
900             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
901             'pw', 8, undef
902             ],
903             [
904             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
905             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
906             'dw', 9, undef
907             ],
908             [
909             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
910             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
911             'timeout', 10, undef
912             ],
913             [
914             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
915             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
916             'sloppy_quorum', 11, undef
917             ],
918             [
919             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
920             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
921             'n_val', 12, undef
922             ],
923             [
924             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
925             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
926             'type', 13, undef
927             ],
928              
929             ],
930             { 'create_accessors' => 1, }
931             );
932             }
933              
934             unless (RpbIndexObject->can('_pb_fields_list')) {
935             Google::ProtocolBuffers->create_message(
936             'RpbIndexObject',
937             [
938             [
939             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
940             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
941             'key', 1, undef
942             ],
943             [
944             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
945             'RpbGetResp',
946             'object', 2, undef
947             ],
948              
949             ],
950             { 'create_accessors' => 1, }
951             );
952             }
953              
954             unless (RpbPair->can('_pb_fields_list')) {
955             Google::ProtocolBuffers->create_message(
956             'RpbPair',
957             [
958             [
959             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
960             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
961             'key', 1, undef
962             ],
963             [
964             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
965             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
966             'value', 2, undef
967             ],
968              
969             ],
970             { 'create_accessors' => 1, }
971             );
972             }
973              
974             unless (RpbCounterUpdateResp->can('_pb_fields_list')) {
975             Google::ProtocolBuffers->create_message(
976             'RpbCounterUpdateResp',
977             [
978             [
979             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
980             Google::ProtocolBuffers::Constants::TYPE_SINT64(),
981             'value', 1, undef
982             ],
983              
984             ],
985             { 'create_accessors' => 1, }
986             );
987             }
988              
989             unless (RpbGetServerInfoResp->can('_pb_fields_list')) {
990             Google::ProtocolBuffers->create_message(
991             'RpbGetServerInfoResp',
992             [
993             [
994             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
995             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
996             'node', 1, undef
997             ],
998             [
999             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1000             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1001             'server_version', 2, undef
1002             ],
1003              
1004             ],
1005             { 'create_accessors' => 1, }
1006             );
1007             }
1008              
1009             unless (RpbBucketProps->can('_pb_fields_list')) {
1010             Google::ProtocolBuffers->create_message(
1011             'RpbBucketProps',
1012             [
1013             [
1014             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1015             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
1016             'n_val', 1, undef
1017             ],
1018             [
1019             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1020             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
1021             'allow_mult', 2, undef
1022             ],
1023             [
1024             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1025             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
1026             'last_write_wins', 3, undef
1027             ],
1028             [
1029             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
1030             'RpbCommitHook',
1031             'precommit', 4, undef
1032             ],
1033             [
1034             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1035             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
1036             'has_precommit', 5, 0
1037             ],
1038             [
1039             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
1040             'RpbCommitHook',
1041             'postcommit', 6, undef
1042             ],
1043             [
1044             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1045             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
1046             'has_postcommit', 7, 0
1047             ],
1048             [
1049             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1050             'RpbModFun',
1051             'chash_keyfun', 8, undef
1052             ],
1053             [
1054             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1055             'RpbModFun',
1056             'linkfun', 9, undef
1057             ],
1058             [
1059             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1060             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
1061             'old_vclock', 10, undef
1062             ],
1063             [
1064             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1065             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
1066             'young_vclock', 11, undef
1067             ],
1068             [
1069             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1070             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
1071             'big_vclock', 12, undef
1072             ],
1073             [
1074             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1075             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
1076             'small_vclock', 13, undef
1077             ],
1078             [
1079             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1080             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
1081             'pr', 14, undef
1082             ],
1083             [
1084             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1085             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
1086             'r', 15, undef
1087             ],
1088             [
1089             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1090             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
1091             'w', 16, undef
1092             ],
1093             [
1094             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1095             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
1096             'pw', 17, undef
1097             ],
1098             [
1099             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1100             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
1101             'dw', 18, undef
1102             ],
1103             [
1104             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1105             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
1106             'rw', 19, undef
1107             ],
1108             [
1109             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1110             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
1111             'basic_quorum', 20, undef
1112             ],
1113             [
1114             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1115             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
1116             'notfound_ok', 21, undef
1117             ],
1118             [
1119             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1120             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1121             'backend', 22, undef
1122             ],
1123             [
1124             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1125             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
1126             'search', 23, undef
1127             ],
1128             [
1129             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1130             'RpbBucketProps::RpbReplMode',
1131             'repl', 24, undef
1132             ],
1133             [
1134             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1135             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1136             'search_index', 25, undef
1137             ],
1138             [
1139             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1140             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1141             'datatype', 26, undef
1142             ],
1143             [
1144             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1145             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
1146             'consistent', 27, undef
1147             ],
1148              
1149             ],
1150             { 'create_accessors' => 1, }
1151             );
1152             }
1153              
1154             unless (RpbMapRedReq->can('_pb_fields_list')) {
1155             Google::ProtocolBuffers->create_message(
1156             'RpbMapRedReq',
1157             [
1158             [
1159             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
1160             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1161             'request', 1, undef
1162             ],
1163             [
1164             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
1165             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1166             'content_type', 2, undef
1167             ],
1168              
1169             ],
1170             { 'create_accessors' => 1, }
1171             );
1172             }
1173              
1174             unless (RpbCSBucketReq->can('_pb_fields_list')) {
1175             Google::ProtocolBuffers->create_message(
1176             'RpbCSBucketReq',
1177             [
1178             [
1179             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
1180             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1181             'bucket', 1, undef
1182             ],
1183             [
1184             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
1185             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1186             'start_key', 2, undef
1187             ],
1188             [
1189             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1190             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1191             'end_key', 3, undef
1192             ],
1193             [
1194             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1195             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
1196             'start_incl', 4, 1
1197             ],
1198             [
1199             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1200             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
1201             'end_incl', 5, 0
1202             ],
1203             [
1204             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1205             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1206             'continuation', 6, undef
1207             ],
1208             [
1209             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1210             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
1211             'max_results', 7, undef
1212             ],
1213             [
1214             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1215             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
1216             'timeout', 8, undef
1217             ],
1218             [
1219             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1220             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1221             'type', 9, undef
1222             ],
1223              
1224             ],
1225             { 'create_accessors' => 1, }
1226             );
1227             }
1228              
1229             unless (RpbListBucketsReq->can('_pb_fields_list')) {
1230             Google::ProtocolBuffers->create_message(
1231             'RpbListBucketsReq',
1232             [
1233             [
1234             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1235             Google::ProtocolBuffers::Constants::TYPE_UINT32(),
1236             'timeout', 1, undef
1237             ],
1238             [
1239             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1240             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
1241             'stream', 2, undef
1242             ],
1243             [
1244             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1245             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1246             'type', 3, undef
1247             ],
1248              
1249             ],
1250             { 'create_accessors' => 1, }
1251             );
1252             }
1253              
1254             unless (RpbGetBucketReq->can('_pb_fields_list')) {
1255             Google::ProtocolBuffers->create_message(
1256             'RpbGetBucketReq',
1257             [
1258             [
1259             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
1260             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1261             'bucket', 1, undef
1262             ],
1263             [
1264             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1265             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1266             'type', 2, undef
1267             ],
1268              
1269             ],
1270             { 'create_accessors' => 1, }
1271             );
1272             }
1273              
1274             unless (RpbResetBucketReq->can('_pb_fields_list')) {
1275             Google::ProtocolBuffers->create_message(
1276             'RpbResetBucketReq',
1277             [
1278             [
1279             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
1280             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1281             'bucket', 1, undef
1282             ],
1283             [
1284             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
1285             Google::ProtocolBuffers::Constants::TYPE_BYTES(),
1286             'type', 2, undef
1287             ],
1288              
1289             ],
1290             { 'create_accessors' => 1, }
1291             );
1292             }
1293              
1294             }
1295             1;
1296              
1297             __END__