/src/fluent-bit/lib/cmetrics/src/external/remote.pb-c.c
Line | Count | Source (jump to first uncovered line) |
1 | | /* Generated by the protocol buffer compiler. DO NOT EDIT! */ |
2 | | /* Generated from: remote.proto */ |
3 | | |
4 | | /* Do not generate deprecated warnings for self */ |
5 | | #ifndef PROTOBUF_C__NO_DEPRECATED |
6 | | #define PROTOBUF_C__NO_DEPRECATED |
7 | | #endif |
8 | | |
9 | | #include <prometheus_remote_write/remote.pb-c.h> |
10 | | |
11 | | void prometheus__write_request__init |
12 | | (Prometheus__WriteRequest *message) |
13 | 0 | { |
14 | 0 | static const Prometheus__WriteRequest init_value = PROMETHEUS__WRITE_REQUEST__INIT; |
15 | 0 | *message = init_value; |
16 | 0 | } |
17 | | size_t prometheus__write_request__get_packed_size |
18 | | (const Prometheus__WriteRequest *message) |
19 | 0 | { |
20 | 0 | assert(message->base.descriptor == &prometheus__write_request__descriptor); |
21 | 0 | return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); |
22 | 0 | } |
23 | | size_t prometheus__write_request__pack |
24 | | (const Prometheus__WriteRequest *message, |
25 | | uint8_t *out) |
26 | 0 | { |
27 | 0 | assert(message->base.descriptor == &prometheus__write_request__descriptor); |
28 | 0 | return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); |
29 | 0 | } |
30 | | size_t prometheus__write_request__pack_to_buffer |
31 | | (const Prometheus__WriteRequest *message, |
32 | | ProtobufCBuffer *buffer) |
33 | 0 | { |
34 | 0 | assert(message->base.descriptor == &prometheus__write_request__descriptor); |
35 | 0 | return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); |
36 | 0 | } |
37 | | Prometheus__WriteRequest * |
38 | | prometheus__write_request__unpack |
39 | | (ProtobufCAllocator *allocator, |
40 | | size_t len, |
41 | | const uint8_t *data) |
42 | 0 | { |
43 | 0 | return (Prometheus__WriteRequest *) |
44 | 0 | protobuf_c_message_unpack (&prometheus__write_request__descriptor, |
45 | 0 | allocator, len, data); |
46 | 0 | } |
47 | | void prometheus__write_request__free_unpacked |
48 | | (Prometheus__WriteRequest *message, |
49 | | ProtobufCAllocator *allocator) |
50 | 0 | { |
51 | 0 | if(!message) |
52 | 0 | return; |
53 | 0 | assert(message->base.descriptor == &prometheus__write_request__descriptor); |
54 | 0 | protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); |
55 | 0 | } |
56 | | void prometheus__read_request__init |
57 | | (Prometheus__ReadRequest *message) |
58 | 0 | { |
59 | 0 | static const Prometheus__ReadRequest init_value = PROMETHEUS__READ_REQUEST__INIT; |
60 | 0 | *message = init_value; |
61 | 0 | } |
62 | | size_t prometheus__read_request__get_packed_size |
63 | | (const Prometheus__ReadRequest *message) |
64 | 0 | { |
65 | 0 | assert(message->base.descriptor == &prometheus__read_request__descriptor); |
66 | 0 | return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); |
67 | 0 | } |
68 | | size_t prometheus__read_request__pack |
69 | | (const Prometheus__ReadRequest *message, |
70 | | uint8_t *out) |
71 | 0 | { |
72 | 0 | assert(message->base.descriptor == &prometheus__read_request__descriptor); |
73 | 0 | return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); |
74 | 0 | } |
75 | | size_t prometheus__read_request__pack_to_buffer |
76 | | (const Prometheus__ReadRequest *message, |
77 | | ProtobufCBuffer *buffer) |
78 | 0 | { |
79 | 0 | assert(message->base.descriptor == &prometheus__read_request__descriptor); |
80 | 0 | return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); |
81 | 0 | } |
82 | | Prometheus__ReadRequest * |
83 | | prometheus__read_request__unpack |
84 | | (ProtobufCAllocator *allocator, |
85 | | size_t len, |
86 | | const uint8_t *data) |
87 | 0 | { |
88 | 0 | return (Prometheus__ReadRequest *) |
89 | 0 | protobuf_c_message_unpack (&prometheus__read_request__descriptor, |
90 | 0 | allocator, len, data); |
91 | 0 | } |
92 | | void prometheus__read_request__free_unpacked |
93 | | (Prometheus__ReadRequest *message, |
94 | | ProtobufCAllocator *allocator) |
95 | 0 | { |
96 | 0 | if(!message) |
97 | 0 | return; |
98 | 0 | assert(message->base.descriptor == &prometheus__read_request__descriptor); |
99 | 0 | protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); |
100 | 0 | } |
101 | | void prometheus__read_response__init |
102 | | (Prometheus__ReadResponse *message) |
103 | 0 | { |
104 | 0 | static const Prometheus__ReadResponse init_value = PROMETHEUS__READ_RESPONSE__INIT; |
105 | 0 | *message = init_value; |
106 | 0 | } |
107 | | size_t prometheus__read_response__get_packed_size |
108 | | (const Prometheus__ReadResponse *message) |
109 | 0 | { |
110 | 0 | assert(message->base.descriptor == &prometheus__read_response__descriptor); |
111 | 0 | return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); |
112 | 0 | } |
113 | | size_t prometheus__read_response__pack |
114 | | (const Prometheus__ReadResponse *message, |
115 | | uint8_t *out) |
116 | 0 | { |
117 | 0 | assert(message->base.descriptor == &prometheus__read_response__descriptor); |
118 | 0 | return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); |
119 | 0 | } |
120 | | size_t prometheus__read_response__pack_to_buffer |
121 | | (const Prometheus__ReadResponse *message, |
122 | | ProtobufCBuffer *buffer) |
123 | 0 | { |
124 | 0 | assert(message->base.descriptor == &prometheus__read_response__descriptor); |
125 | 0 | return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); |
126 | 0 | } |
127 | | Prometheus__ReadResponse * |
128 | | prometheus__read_response__unpack |
129 | | (ProtobufCAllocator *allocator, |
130 | | size_t len, |
131 | | const uint8_t *data) |
132 | 0 | { |
133 | 0 | return (Prometheus__ReadResponse *) |
134 | 0 | protobuf_c_message_unpack (&prometheus__read_response__descriptor, |
135 | 0 | allocator, len, data); |
136 | 0 | } |
137 | | void prometheus__read_response__free_unpacked |
138 | | (Prometheus__ReadResponse *message, |
139 | | ProtobufCAllocator *allocator) |
140 | 0 | { |
141 | 0 | if(!message) |
142 | 0 | return; |
143 | 0 | assert(message->base.descriptor == &prometheus__read_response__descriptor); |
144 | 0 | protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); |
145 | 0 | } |
146 | | void prometheus__query__init |
147 | | (Prometheus__Query *message) |
148 | 0 | { |
149 | 0 | static const Prometheus__Query init_value = PROMETHEUS__QUERY__INIT; |
150 | 0 | *message = init_value; |
151 | 0 | } |
152 | | size_t prometheus__query__get_packed_size |
153 | | (const Prometheus__Query *message) |
154 | 0 | { |
155 | 0 | assert(message->base.descriptor == &prometheus__query__descriptor); |
156 | 0 | return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); |
157 | 0 | } |
158 | | size_t prometheus__query__pack |
159 | | (const Prometheus__Query *message, |
160 | | uint8_t *out) |
161 | 0 | { |
162 | 0 | assert(message->base.descriptor == &prometheus__query__descriptor); |
163 | 0 | return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); |
164 | 0 | } |
165 | | size_t prometheus__query__pack_to_buffer |
166 | | (const Prometheus__Query *message, |
167 | | ProtobufCBuffer *buffer) |
168 | 0 | { |
169 | 0 | assert(message->base.descriptor == &prometheus__query__descriptor); |
170 | 0 | return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); |
171 | 0 | } |
172 | | Prometheus__Query * |
173 | | prometheus__query__unpack |
174 | | (ProtobufCAllocator *allocator, |
175 | | size_t len, |
176 | | const uint8_t *data) |
177 | 0 | { |
178 | 0 | return (Prometheus__Query *) |
179 | 0 | protobuf_c_message_unpack (&prometheus__query__descriptor, |
180 | 0 | allocator, len, data); |
181 | 0 | } |
182 | | void prometheus__query__free_unpacked |
183 | | (Prometheus__Query *message, |
184 | | ProtobufCAllocator *allocator) |
185 | 0 | { |
186 | 0 | if(!message) |
187 | 0 | return; |
188 | 0 | assert(message->base.descriptor == &prometheus__query__descriptor); |
189 | 0 | protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); |
190 | 0 | } |
191 | | void prometheus__query_result__init |
192 | | (Prometheus__QueryResult *message) |
193 | 0 | { |
194 | 0 | static const Prometheus__QueryResult init_value = PROMETHEUS__QUERY_RESULT__INIT; |
195 | 0 | *message = init_value; |
196 | 0 | } |
197 | | size_t prometheus__query_result__get_packed_size |
198 | | (const Prometheus__QueryResult *message) |
199 | 0 | { |
200 | 0 | assert(message->base.descriptor == &prometheus__query_result__descriptor); |
201 | 0 | return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); |
202 | 0 | } |
203 | | size_t prometheus__query_result__pack |
204 | | (const Prometheus__QueryResult *message, |
205 | | uint8_t *out) |
206 | 0 | { |
207 | 0 | assert(message->base.descriptor == &prometheus__query_result__descriptor); |
208 | 0 | return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); |
209 | 0 | } |
210 | | size_t prometheus__query_result__pack_to_buffer |
211 | | (const Prometheus__QueryResult *message, |
212 | | ProtobufCBuffer *buffer) |
213 | 0 | { |
214 | 0 | assert(message->base.descriptor == &prometheus__query_result__descriptor); |
215 | 0 | return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); |
216 | 0 | } |
217 | | Prometheus__QueryResult * |
218 | | prometheus__query_result__unpack |
219 | | (ProtobufCAllocator *allocator, |
220 | | size_t len, |
221 | | const uint8_t *data) |
222 | 0 | { |
223 | 0 | return (Prometheus__QueryResult *) |
224 | 0 | protobuf_c_message_unpack (&prometheus__query_result__descriptor, |
225 | 0 | allocator, len, data); |
226 | 0 | } |
227 | | void prometheus__query_result__free_unpacked |
228 | | (Prometheus__QueryResult *message, |
229 | | ProtobufCAllocator *allocator) |
230 | 0 | { |
231 | 0 | if(!message) |
232 | 0 | return; |
233 | 0 | assert(message->base.descriptor == &prometheus__query_result__descriptor); |
234 | 0 | protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); |
235 | 0 | } |
236 | | void prometheus__chunked_read_response__init |
237 | | (Prometheus__ChunkedReadResponse *message) |
238 | 0 | { |
239 | 0 | static const Prometheus__ChunkedReadResponse init_value = PROMETHEUS__CHUNKED_READ_RESPONSE__INIT; |
240 | 0 | *message = init_value; |
241 | 0 | } |
242 | | size_t prometheus__chunked_read_response__get_packed_size |
243 | | (const Prometheus__ChunkedReadResponse *message) |
244 | 0 | { |
245 | 0 | assert(message->base.descriptor == &prometheus__chunked_read_response__descriptor); |
246 | 0 | return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); |
247 | 0 | } |
248 | | size_t prometheus__chunked_read_response__pack |
249 | | (const Prometheus__ChunkedReadResponse *message, |
250 | | uint8_t *out) |
251 | 0 | { |
252 | 0 | assert(message->base.descriptor == &prometheus__chunked_read_response__descriptor); |
253 | 0 | return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); |
254 | 0 | } |
255 | | size_t prometheus__chunked_read_response__pack_to_buffer |
256 | | (const Prometheus__ChunkedReadResponse *message, |
257 | | ProtobufCBuffer *buffer) |
258 | 0 | { |
259 | 0 | assert(message->base.descriptor == &prometheus__chunked_read_response__descriptor); |
260 | 0 | return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); |
261 | 0 | } |
262 | | Prometheus__ChunkedReadResponse * |
263 | | prometheus__chunked_read_response__unpack |
264 | | (ProtobufCAllocator *allocator, |
265 | | size_t len, |
266 | | const uint8_t *data) |
267 | 0 | { |
268 | 0 | return (Prometheus__ChunkedReadResponse *) |
269 | 0 | protobuf_c_message_unpack (&prometheus__chunked_read_response__descriptor, |
270 | 0 | allocator, len, data); |
271 | 0 | } |
272 | | void prometheus__chunked_read_response__free_unpacked |
273 | | (Prometheus__ChunkedReadResponse *message, |
274 | | ProtobufCAllocator *allocator) |
275 | 0 | { |
276 | 0 | if(!message) |
277 | 0 | return; |
278 | 0 | assert(message->base.descriptor == &prometheus__chunked_read_response__descriptor); |
279 | 0 | protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); |
280 | 0 | } |
281 | | static const ProtobufCFieldDescriptor prometheus__write_request__field_descriptors[2] = |
282 | | { |
283 | | { |
284 | | "timeseries", |
285 | | 1, |
286 | | PROTOBUF_C_LABEL_REPEATED, |
287 | | PROTOBUF_C_TYPE_MESSAGE, |
288 | | offsetof(Prometheus__WriteRequest, n_timeseries), |
289 | | offsetof(Prometheus__WriteRequest, timeseries), |
290 | | &prometheus__time_series__descriptor, |
291 | | NULL, |
292 | | 0, /* flags */ |
293 | | 0,NULL,NULL /* reserved1,reserved2, etc */ |
294 | | }, |
295 | | { |
296 | | "metadata", |
297 | | 3, |
298 | | PROTOBUF_C_LABEL_REPEATED, |
299 | | PROTOBUF_C_TYPE_MESSAGE, |
300 | | offsetof(Prometheus__WriteRequest, n_metadata), |
301 | | offsetof(Prometheus__WriteRequest, metadata), |
302 | | &prometheus__metric_metadata__descriptor, |
303 | | NULL, |
304 | | 0, /* flags */ |
305 | | 0,NULL,NULL /* reserved1,reserved2, etc */ |
306 | | }, |
307 | | }; |
308 | | static const unsigned prometheus__write_request__field_indices_by_name[] = { |
309 | | 1, /* field[1] = metadata */ |
310 | | 0, /* field[0] = timeseries */ |
311 | | }; |
312 | | static const ProtobufCIntRange prometheus__write_request__number_ranges[2 + 1] = |
313 | | { |
314 | | { 1, 0 }, |
315 | | { 3, 1 }, |
316 | | { 0, 2 } |
317 | | }; |
318 | | const ProtobufCMessageDescriptor prometheus__write_request__descriptor = |
319 | | { |
320 | | PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, |
321 | | "prometheus.WriteRequest", |
322 | | "WriteRequest", |
323 | | "Prometheus__WriteRequest", |
324 | | "prometheus", |
325 | | sizeof(Prometheus__WriteRequest), |
326 | | 2, |
327 | | prometheus__write_request__field_descriptors, |
328 | | prometheus__write_request__field_indices_by_name, |
329 | | 2, prometheus__write_request__number_ranges, |
330 | | (ProtobufCMessageInit) prometheus__write_request__init, |
331 | | NULL,NULL,NULL /* reserved[123] */ |
332 | | }; |
333 | | static const ProtobufCEnumValue prometheus__read_request__response_type__enum_values_by_number[2] = |
334 | | { |
335 | | { "SAMPLES", "PROMETHEUS__READ_REQUEST__RESPONSE_TYPE__SAMPLES", 0 }, |
336 | | { "STREAMED_XOR_CHUNKS", "PROMETHEUS__READ_REQUEST__RESPONSE_TYPE__STREAMED_XOR_CHUNKS", 1 }, |
337 | | }; |
338 | | static const ProtobufCIntRange prometheus__read_request__response_type__value_ranges[] = { |
339 | | {0, 0},{0, 2} |
340 | | }; |
341 | | static const ProtobufCEnumValueIndex prometheus__read_request__response_type__enum_values_by_name[2] = |
342 | | { |
343 | | { "SAMPLES", 0 }, |
344 | | { "STREAMED_XOR_CHUNKS", 1 }, |
345 | | }; |
346 | | const ProtobufCEnumDescriptor prometheus__read_request__response_type__descriptor = |
347 | | { |
348 | | PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, |
349 | | "prometheus.ReadRequest.ResponseType", |
350 | | "ResponseType", |
351 | | "Prometheus__ReadRequest__ResponseType", |
352 | | "prometheus", |
353 | | 2, |
354 | | prometheus__read_request__response_type__enum_values_by_number, |
355 | | 2, |
356 | | prometheus__read_request__response_type__enum_values_by_name, |
357 | | 1, |
358 | | prometheus__read_request__response_type__value_ranges, |
359 | | NULL,NULL,NULL,NULL /* reserved[1234] */ |
360 | | }; |
361 | | static const ProtobufCFieldDescriptor prometheus__read_request__field_descriptors[2] = |
362 | | { |
363 | | { |
364 | | "queries", |
365 | | 1, |
366 | | PROTOBUF_C_LABEL_REPEATED, |
367 | | PROTOBUF_C_TYPE_MESSAGE, |
368 | | offsetof(Prometheus__ReadRequest, n_queries), |
369 | | offsetof(Prometheus__ReadRequest, queries), |
370 | | &prometheus__query__descriptor, |
371 | | NULL, |
372 | | 0, /* flags */ |
373 | | 0,NULL,NULL /* reserved1,reserved2, etc */ |
374 | | }, |
375 | | { |
376 | | "accepted_response_types", |
377 | | 2, |
378 | | PROTOBUF_C_LABEL_REPEATED, |
379 | | PROTOBUF_C_TYPE_ENUM, |
380 | | offsetof(Prometheus__ReadRequest, n_accepted_response_types), |
381 | | offsetof(Prometheus__ReadRequest, accepted_response_types), |
382 | | &prometheus__read_request__response_type__descriptor, |
383 | | NULL, |
384 | | 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ |
385 | | 0,NULL,NULL /* reserved1,reserved2, etc */ |
386 | | }, |
387 | | }; |
388 | | static const unsigned prometheus__read_request__field_indices_by_name[] = { |
389 | | 1, /* field[1] = accepted_response_types */ |
390 | | 0, /* field[0] = queries */ |
391 | | }; |
392 | | static const ProtobufCIntRange prometheus__read_request__number_ranges[1 + 1] = |
393 | | { |
394 | | { 1, 0 }, |
395 | | { 0, 2 } |
396 | | }; |
397 | | const ProtobufCMessageDescriptor prometheus__read_request__descriptor = |
398 | | { |
399 | | PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, |
400 | | "prometheus.ReadRequest", |
401 | | "ReadRequest", |
402 | | "Prometheus__ReadRequest", |
403 | | "prometheus", |
404 | | sizeof(Prometheus__ReadRequest), |
405 | | 2, |
406 | | prometheus__read_request__field_descriptors, |
407 | | prometheus__read_request__field_indices_by_name, |
408 | | 1, prometheus__read_request__number_ranges, |
409 | | (ProtobufCMessageInit) prometheus__read_request__init, |
410 | | NULL,NULL,NULL /* reserved[123] */ |
411 | | }; |
412 | | static const ProtobufCFieldDescriptor prometheus__read_response__field_descriptors[1] = |
413 | | { |
414 | | { |
415 | | "results", |
416 | | 1, |
417 | | PROTOBUF_C_LABEL_REPEATED, |
418 | | PROTOBUF_C_TYPE_MESSAGE, |
419 | | offsetof(Prometheus__ReadResponse, n_results), |
420 | | offsetof(Prometheus__ReadResponse, results), |
421 | | &prometheus__query_result__descriptor, |
422 | | NULL, |
423 | | 0, /* flags */ |
424 | | 0,NULL,NULL /* reserved1,reserved2, etc */ |
425 | | }, |
426 | | }; |
427 | | static const unsigned prometheus__read_response__field_indices_by_name[] = { |
428 | | 0, /* field[0] = results */ |
429 | | }; |
430 | | static const ProtobufCIntRange prometheus__read_response__number_ranges[1 + 1] = |
431 | | { |
432 | | { 1, 0 }, |
433 | | { 0, 1 } |
434 | | }; |
435 | | const ProtobufCMessageDescriptor prometheus__read_response__descriptor = |
436 | | { |
437 | | PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, |
438 | | "prometheus.ReadResponse", |
439 | | "ReadResponse", |
440 | | "Prometheus__ReadResponse", |
441 | | "prometheus", |
442 | | sizeof(Prometheus__ReadResponse), |
443 | | 1, |
444 | | prometheus__read_response__field_descriptors, |
445 | | prometheus__read_response__field_indices_by_name, |
446 | | 1, prometheus__read_response__number_ranges, |
447 | | (ProtobufCMessageInit) prometheus__read_response__init, |
448 | | NULL,NULL,NULL /* reserved[123] */ |
449 | | }; |
450 | | static const ProtobufCFieldDescriptor prometheus__query__field_descriptors[4] = |
451 | | { |
452 | | { |
453 | | "start_timestamp_ms", |
454 | | 1, |
455 | | PROTOBUF_C_LABEL_NONE, |
456 | | PROTOBUF_C_TYPE_INT64, |
457 | | 0, /* quantifier_offset */ |
458 | | offsetof(Prometheus__Query, start_timestamp_ms), |
459 | | NULL, |
460 | | NULL, |
461 | | 0, /* flags */ |
462 | | 0,NULL,NULL /* reserved1,reserved2, etc */ |
463 | | }, |
464 | | { |
465 | | "end_timestamp_ms", |
466 | | 2, |
467 | | PROTOBUF_C_LABEL_NONE, |
468 | | PROTOBUF_C_TYPE_INT64, |
469 | | 0, /* quantifier_offset */ |
470 | | offsetof(Prometheus__Query, end_timestamp_ms), |
471 | | NULL, |
472 | | NULL, |
473 | | 0, /* flags */ |
474 | | 0,NULL,NULL /* reserved1,reserved2, etc */ |
475 | | }, |
476 | | { |
477 | | "matchers", |
478 | | 3, |
479 | | PROTOBUF_C_LABEL_REPEATED, |
480 | | PROTOBUF_C_TYPE_MESSAGE, |
481 | | offsetof(Prometheus__Query, n_matchers), |
482 | | offsetof(Prometheus__Query, matchers), |
483 | | &prometheus__label_matcher__descriptor, |
484 | | NULL, |
485 | | 0, /* flags */ |
486 | | 0,NULL,NULL /* reserved1,reserved2, etc */ |
487 | | }, |
488 | | { |
489 | | "hints", |
490 | | 4, |
491 | | PROTOBUF_C_LABEL_NONE, |
492 | | PROTOBUF_C_TYPE_MESSAGE, |
493 | | 0, /* quantifier_offset */ |
494 | | offsetof(Prometheus__Query, hints), |
495 | | &prometheus__read_hints__descriptor, |
496 | | NULL, |
497 | | 0, /* flags */ |
498 | | 0,NULL,NULL /* reserved1,reserved2, etc */ |
499 | | }, |
500 | | }; |
501 | | static const unsigned prometheus__query__field_indices_by_name[] = { |
502 | | 1, /* field[1] = end_timestamp_ms */ |
503 | | 3, /* field[3] = hints */ |
504 | | 2, /* field[2] = matchers */ |
505 | | 0, /* field[0] = start_timestamp_ms */ |
506 | | }; |
507 | | static const ProtobufCIntRange prometheus__query__number_ranges[1 + 1] = |
508 | | { |
509 | | { 1, 0 }, |
510 | | { 0, 4 } |
511 | | }; |
512 | | const ProtobufCMessageDescriptor prometheus__query__descriptor = |
513 | | { |
514 | | PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, |
515 | | "prometheus.Query", |
516 | | "Query", |
517 | | "Prometheus__Query", |
518 | | "prometheus", |
519 | | sizeof(Prometheus__Query), |
520 | | 4, |
521 | | prometheus__query__field_descriptors, |
522 | | prometheus__query__field_indices_by_name, |
523 | | 1, prometheus__query__number_ranges, |
524 | | (ProtobufCMessageInit) prometheus__query__init, |
525 | | NULL,NULL,NULL /* reserved[123] */ |
526 | | }; |
527 | | static const ProtobufCFieldDescriptor prometheus__query_result__field_descriptors[1] = |
528 | | { |
529 | | { |
530 | | "timeseries", |
531 | | 1, |
532 | | PROTOBUF_C_LABEL_REPEATED, |
533 | | PROTOBUF_C_TYPE_MESSAGE, |
534 | | offsetof(Prometheus__QueryResult, n_timeseries), |
535 | | offsetof(Prometheus__QueryResult, timeseries), |
536 | | &prometheus__time_series__descriptor, |
537 | | NULL, |
538 | | 0, /* flags */ |
539 | | 0,NULL,NULL /* reserved1,reserved2, etc */ |
540 | | }, |
541 | | }; |
542 | | static const unsigned prometheus__query_result__field_indices_by_name[] = { |
543 | | 0, /* field[0] = timeseries */ |
544 | | }; |
545 | | static const ProtobufCIntRange prometheus__query_result__number_ranges[1 + 1] = |
546 | | { |
547 | | { 1, 0 }, |
548 | | { 0, 1 } |
549 | | }; |
550 | | const ProtobufCMessageDescriptor prometheus__query_result__descriptor = |
551 | | { |
552 | | PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, |
553 | | "prometheus.QueryResult", |
554 | | "QueryResult", |
555 | | "Prometheus__QueryResult", |
556 | | "prometheus", |
557 | | sizeof(Prometheus__QueryResult), |
558 | | 1, |
559 | | prometheus__query_result__field_descriptors, |
560 | | prometheus__query_result__field_indices_by_name, |
561 | | 1, prometheus__query_result__number_ranges, |
562 | | (ProtobufCMessageInit) prometheus__query_result__init, |
563 | | NULL,NULL,NULL /* reserved[123] */ |
564 | | }; |
565 | | static const ProtobufCFieldDescriptor prometheus__chunked_read_response__field_descriptors[2] = |
566 | | { |
567 | | { |
568 | | "chunked_series", |
569 | | 1, |
570 | | PROTOBUF_C_LABEL_REPEATED, |
571 | | PROTOBUF_C_TYPE_MESSAGE, |
572 | | offsetof(Prometheus__ChunkedReadResponse, n_chunked_series), |
573 | | offsetof(Prometheus__ChunkedReadResponse, chunked_series), |
574 | | &prometheus__chunked_series__descriptor, |
575 | | NULL, |
576 | | 0, /* flags */ |
577 | | 0,NULL,NULL /* reserved1,reserved2, etc */ |
578 | | }, |
579 | | { |
580 | | "query_index", |
581 | | 2, |
582 | | PROTOBUF_C_LABEL_NONE, |
583 | | PROTOBUF_C_TYPE_INT64, |
584 | | 0, /* quantifier_offset */ |
585 | | offsetof(Prometheus__ChunkedReadResponse, query_index), |
586 | | NULL, |
587 | | NULL, |
588 | | 0, /* flags */ |
589 | | 0,NULL,NULL /* reserved1,reserved2, etc */ |
590 | | }, |
591 | | }; |
592 | | static const unsigned prometheus__chunked_read_response__field_indices_by_name[] = { |
593 | | 0, /* field[0] = chunked_series */ |
594 | | 1, /* field[1] = query_index */ |
595 | | }; |
596 | | static const ProtobufCIntRange prometheus__chunked_read_response__number_ranges[1 + 1] = |
597 | | { |
598 | | { 1, 0 }, |
599 | | { 0, 2 } |
600 | | }; |
601 | | const ProtobufCMessageDescriptor prometheus__chunked_read_response__descriptor = |
602 | | { |
603 | | PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, |
604 | | "prometheus.ChunkedReadResponse", |
605 | | "ChunkedReadResponse", |
606 | | "Prometheus__ChunkedReadResponse", |
607 | | "prometheus", |
608 | | sizeof(Prometheus__ChunkedReadResponse), |
609 | | 2, |
610 | | prometheus__chunked_read_response__field_descriptors, |
611 | | prometheus__chunked_read_response__field_indices_by_name, |
612 | | 1, prometheus__chunked_read_response__number_ranges, |
613 | | (ProtobufCMessageInit) prometheus__chunked_read_response__init, |
614 | | NULL,NULL,NULL /* reserved[123] */ |
615 | | }; |