File Coverage

blib/lib/Riemann/Client/Protocol.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             # Generated by the protocol buffer compiler (protoc-perl) DO NOT EDIT!
2             # source: protocol
3              
4              
5              
6 3     3   92288 use strict;
  3         7  
  3         104  
7 3     3   19 use warnings;
  3         9  
  3         113  
8              
9 3     3   1852 use Google::ProtocolBuffers;
  3         306123  
  3         1409  
10             {
11             unless (Attribute->can('_pb_fields_list')) {
12             Google::ProtocolBuffers->create_message(
13             'Attribute',
14             [
15             [
16             Google::ProtocolBuffers::Constants::LABEL_REQUIRED(),
17             Google::ProtocolBuffers::Constants::TYPE_STRING(),
18             'key', 1, undef
19             ],
20             [
21             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
22             Google::ProtocolBuffers::Constants::TYPE_STRING(),
23             'value', 2, undef
24             ],
25              
26             ],
27             undef,
28              
29             { }
30             );
31             }
32              
33             unless (Event->can('_pb_fields_list')) {
34             Google::ProtocolBuffers->create_message(
35             'Event',
36             [
37             [
38             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
39             Google::ProtocolBuffers::Constants::TYPE_INT64(),
40             'time', 1, undef
41             ],
42             [
43             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
44             Google::ProtocolBuffers::Constants::TYPE_STRING(),
45             'state', 2, undef
46             ],
47             [
48             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
49             Google::ProtocolBuffers::Constants::TYPE_STRING(),
50             'service', 3, undef
51             ],
52             [
53             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
54             Google::ProtocolBuffers::Constants::TYPE_STRING(),
55             'host', 4, undef
56             ],
57             [
58             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
59             Google::ProtocolBuffers::Constants::TYPE_STRING(),
60             'description', 5, undef
61             ],
62             [
63             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
64             Google::ProtocolBuffers::Constants::TYPE_STRING(),
65             'tags', 7, undef
66             ],
67             [
68             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
69             Google::ProtocolBuffers::Constants::TYPE_FLOAT(),
70             'ttl', 8, undef
71             ],
72             [
73             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
74             'Attribute',
75             'attributes', 9, undef
76             ],
77             [
78             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
79             Google::ProtocolBuffers::Constants::TYPE_INT64(),
80             'time_micros', 10, undef
81             ],
82             [
83             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
84             Google::ProtocolBuffers::Constants::TYPE_SINT64(),
85             'metric_sint64', 13, undef
86             ],
87             [
88             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
89             Google::ProtocolBuffers::Constants::TYPE_DOUBLE(),
90             'metric_d', 14, undef
91             ],
92             [
93             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
94             Google::ProtocolBuffers::Constants::TYPE_FLOAT(),
95             'metric_f', 15, undef
96             ],
97              
98             ],
99             undef,
100              
101             { }
102             );
103             }
104              
105             unless (Msg->can('_pb_fields_list')) {
106             Google::ProtocolBuffers->create_message(
107             'Msg',
108             [
109             [
110             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
111             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
112             'ok', 2, undef
113             ],
114             [
115             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
116             Google::ProtocolBuffers::Constants::TYPE_STRING(),
117             'error', 3, undef
118             ],
119             [
120             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
121             'State',
122             'states', 4, undef
123             ],
124             [
125             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
126             'Query',
127             'query', 5, undef
128             ],
129             [
130             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
131             'Event',
132             'events', 6, undef
133             ],
134              
135             ],
136             undef,
137              
138             { }
139             );
140             }
141              
142             unless (Query->can('_pb_fields_list')) {
143             Google::ProtocolBuffers->create_message(
144             'Query',
145             [
146             [
147             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
148             Google::ProtocolBuffers::Constants::TYPE_STRING(),
149             'string', 1, undef
150             ],
151              
152             ],
153             undef,
154              
155             { }
156             );
157             }
158              
159             unless (State->can('_pb_fields_list')) {
160             Google::ProtocolBuffers->create_message(
161             'State',
162             [
163             [
164             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
165             Google::ProtocolBuffers::Constants::TYPE_INT64(),
166             'time', 1, undef
167             ],
168             [
169             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
170             Google::ProtocolBuffers::Constants::TYPE_STRING(),
171             'state', 2, undef
172             ],
173             [
174             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
175             Google::ProtocolBuffers::Constants::TYPE_STRING(),
176             'service', 3, undef
177             ],
178             [
179             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
180             Google::ProtocolBuffers::Constants::TYPE_STRING(),
181             'host', 4, undef
182             ],
183             [
184             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
185             Google::ProtocolBuffers::Constants::TYPE_STRING(),
186             'description', 5, undef
187             ],
188             [
189             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
190             Google::ProtocolBuffers::Constants::TYPE_BOOL(),
191             'once', 6, undef
192             ],
193             [
194             Google::ProtocolBuffers::Constants::LABEL_REPEATED(),
195             Google::ProtocolBuffers::Constants::TYPE_STRING(),
196             'tags', 7, undef
197             ],
198             [
199             Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(),
200             Google::ProtocolBuffers::Constants::TYPE_FLOAT(),
201             'ttl', 8, undef
202             ],
203              
204             ],
205             undef,
206              
207             { }
208             );
209             }
210              
211             }
212             1;