|
| 1 | +/* |
| 2 | + * Generated by the protobluff compiler - do not edit. |
| 3 | + * ---------------------------------------------------------------------------- |
| 4 | + * Date: 03/29/16 14:06:32 |
| 5 | + * Filename: payload.proto |
| 6 | + * Package: - |
| 7 | + * ---------------------------------------------------------------------------- |
| 8 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 9 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 10 | + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE |
| 11 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 12 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 13 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS |
| 14 | + * IN THE SOFTWARE. |
| 15 | + */ |
| 16 | + |
| 17 | +#include <protobluff/descriptor.h> |
| 18 | + |
| 19 | +#include "payload.pb.h" |
| 20 | + |
| 21 | +/* ---------------------------------------------------------------------------- |
| 22 | + * Descriptors |
| 23 | + * ------------------------------------------------------------------------- */ |
| 24 | + |
| 25 | +/* MapEntry : descriptor */ |
| 26 | +pb_descriptor_t |
| 27 | +mapentry_descriptor = { { |
| 28 | + (const pb_field_descriptor_t []){ |
| 29 | + |
| 30 | + /* required string key = 1 */ |
| 31 | + { .tag = 1, |
| 32 | + .name = "key", |
| 33 | + .type = STRING, |
| 34 | + .label = REQUIRED }, |
| 35 | + |
| 36 | + /* required uint64 value = 2 */ |
| 37 | + { .tag = 2, |
| 38 | + .name = "value", |
| 39 | + .type = UINT64, |
| 40 | + .label = REQUIRED } |
| 41 | + |
| 42 | + }, 2 } }; |
| 43 | + |
| 44 | +/* Payload : descriptor */ |
| 45 | +pb_descriptor_t |
| 46 | +payload_descriptor = { { |
| 47 | + (const pb_field_descriptor_t []){ |
| 48 | + |
| 49 | + /* required uint32 core = 1 */ |
| 50 | + { .tag = 1, |
| 51 | + .name = "core", |
| 52 | + .type = UINT32, |
| 53 | + .label = REQUIRED }, |
| 54 | + |
| 55 | + /* required uint32 pid = 2 */ |
| 56 | + { .tag = 2, |
| 57 | + .name = "pid", |
| 58 | + .type = UINT32, |
| 59 | + .label = REQUIRED }, |
| 60 | + |
| 61 | + /* required uint32 tid = 3 */ |
| 62 | + { .tag = 3, |
| 63 | + .name = "tid", |
| 64 | + .type = UINT32, |
| 65 | + .label = REQUIRED }, |
| 66 | + |
| 67 | + /* required uint64 timestamp = 4 */ |
| 68 | + { .tag = 4, |
| 69 | + .name = "timestamp", |
| 70 | + .type = UINT64, |
| 71 | + .label = REQUIRED }, |
| 72 | + |
| 73 | + /* repeated MapEntry counters = 5 */ |
| 74 | + { .tag = 5, |
| 75 | + .name = "counters", |
| 76 | + .type = MESSAGE, |
| 77 | + .label = REPEATED, |
| 78 | + .refer = &mapentry_descriptor }, |
| 79 | + |
| 80 | + /* repeated string traces = 6 */ |
| 81 | + { .tag = 6, |
| 82 | + .name = "traces", |
| 83 | + .type = STRING, |
| 84 | + .label = REPEATED } |
| 85 | + |
| 86 | + }, 6 } }; |
| 87 | + |
0 commit comments