/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: brintos_probe.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "brintos_probe.pb-c.h" void brintos__weapon__init (Brintos__Weapon *message) { static const Brintos__Weapon init_value = BRINTOS__WEAPON__INIT; *message = init_value; } size_t brintos__weapon__get_packed_size (const Brintos__Weapon *message) { assert(message->base.descriptor == &brintos__weapon__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t brintos__weapon__pack (const Brintos__Weapon *message, uint8_t *out) { assert(message->base.descriptor == &brintos__weapon__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t brintos__weapon__pack_to_buffer (const Brintos__Weapon *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &brintos__weapon__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } Brintos__Weapon * brintos__weapon__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (Brintos__Weapon *) protobuf_c_message_unpack (&brintos__weapon__descriptor, allocator, len, data); } void brintos__weapon__free_unpacked (Brintos__Weapon *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &brintos__weapon__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void brintos__probe__init (Brintos__Probe *message) { static const Brintos__Probe init_value = BRINTOS__PROBE__INIT; *message = init_value; } size_t brintos__probe__get_packed_size (const Brintos__Probe *message) { assert(message->base.descriptor == &brintos__probe__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t brintos__probe__pack (const Brintos__Probe *message, uint8_t *out) { assert(message->base.descriptor == &brintos__probe__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t brintos__probe__pack_to_buffer (const Brintos__Probe *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &brintos__probe__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } Brintos__Probe * brintos__probe__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (Brintos__Probe *) protobuf_c_message_unpack (&brintos__probe__descriptor, allocator, len, data); } void brintos__probe__free_unpacked (Brintos__Probe *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &brintos__probe__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor brintos__weapon__field_descriptors[2] = { { "name", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(Brintos__Weapon, name), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "damage", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(Brintos__Weapon, damage), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned brintos__weapon__field_indices_by_name[] = { 1, /* field[1] = damage */ 0, /* field[0] = name */ }; static const ProtobufCIntRange brintos__weapon__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; const ProtobufCMessageDescriptor brintos__weapon__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "brintos.Weapon", "Weapon", "Brintos__Weapon", "brintos", sizeof(Brintos__Weapon), 2, brintos__weapon__field_descriptors, brintos__weapon__field_indices_by_name, 1, brintos__weapon__number_ranges, (ProtobufCMessageInit) brintos__weapon__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor brintos__probe__field_descriptors[11] = { { "name", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(Brintos__Probe, name), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "hp", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(Brintos__Probe, hp), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "mana", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(Brintos__Probe, mana), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "color", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(Brintos__Probe, color), &brintos__color__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "inventory", 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_INT32, offsetof(Brintos__Probe, n_inventory), offsetof(Brintos__Probe, inventory), NULL, NULL, PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "weapons", 6, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, offsetof(Brintos__Probe, n_weapons), offsetof(Brintos__Probe, weapons), &brintos__weapon__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "blob", 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BYTES, 0, /* quantifier_offset */ offsetof(Brintos__Probe, blob), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "alive", 8, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ offsetof(Brintos__Probe, alive), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "weight", 9, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_DOUBLE, 0, /* quantifier_offset */ offsetof(Brintos__Probe, weight), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "depth", 10, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_SINT32, 0, /* quantifier_offset */ offsetof(Brintos__Probe, depth), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "id", 11, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_FIXED64, 0, /* quantifier_offset */ offsetof(Brintos__Probe, id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned brintos__probe__field_indices_by_name[] = { 7, /* field[7] = alive */ 6, /* field[6] = blob */ 3, /* field[3] = color */ 9, /* field[9] = depth */ 1, /* field[1] = hp */ 10, /* field[10] = id */ 4, /* field[4] = inventory */ 2, /* field[2] = mana */ 0, /* field[0] = name */ 5, /* field[5] = weapons */ 8, /* field[8] = weight */ }; static const ProtobufCIntRange brintos__probe__number_ranges[1 + 1] = { { 1, 0 }, { 0, 11 } }; const ProtobufCMessageDescriptor brintos__probe__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "brintos.Probe", "Probe", "Brintos__Probe", "brintos", sizeof(Brintos__Probe), 11, brintos__probe__field_descriptors, brintos__probe__field_indices_by_name, 1, brintos__probe__number_ranges, (ProtobufCMessageInit) brintos__probe__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCEnumValue brintos__color__enum_values_by_number[3] = { { "COLOR_RED", "BRINTOS__COLOR__COLOR_RED", 0 }, { "COLOR_GREEN", "BRINTOS__COLOR__COLOR_GREEN", 1 }, { "COLOR_BLUE", "BRINTOS__COLOR__COLOR_BLUE", 2 }, }; static const ProtobufCIntRange brintos__color__value_ranges[] = { {0, 0},{0, 3} }; static const ProtobufCEnumValueIndex brintos__color__enum_values_by_name[3] = { { "COLOR_BLUE", 2 }, { "COLOR_GREEN", 1 }, { "COLOR_RED", 0 }, }; const ProtobufCEnumDescriptor brintos__color__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "brintos.Color", "Color", "Brintos__Color", "brintos", 3, brintos__color__enum_values_by_number, 3, brintos__color__enum_values_by_name, 1, brintos__color__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ };