/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: AlarmHandlingItem.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "AlarmHandlingItem.pb-c.h" void alarm_handling_item__init (AlarmHandlingItem *message) { static const AlarmHandlingItem init_value = ALARM_HANDLING_ITEM__INIT; *message = init_value; } size_t alarm_handling_item__get_packed_size (const AlarmHandlingItem *message) { assert(message->base.descriptor == &alarm_handling_item__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t alarm_handling_item__pack (const AlarmHandlingItem *message, uint8_t *out) { assert(message->base.descriptor == &alarm_handling_item__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t alarm_handling_item__pack_to_buffer (const AlarmHandlingItem *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &alarm_handling_item__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } AlarmHandlingItem * alarm_handling_item__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (AlarmHandlingItem *) protobuf_c_message_unpack (&alarm_handling_item__descriptor, allocator, len, data); } void alarm_handling_item__free_unpacked (AlarmHandlingItem *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &alarm_handling_item__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor alarm_handling_item__field_descriptors[10] = { { "", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_ENUM, offsetof(AlarmHandlingItem, has_alarmsource), offsetof(AlarmHandlingItem, alarmsource), &alarm_source_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(AlarmHandlingItem, has_deviceid), offsetof(AlarmHandlingItem, deviceid), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(AlarmHandlingItem, has_moduledeviceid), offsetof(AlarmHandlingItem, moduledeviceid), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 4, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(AlarmHandlingItem, has_alarmvalue), offsetof(AlarmHandlingItem, alarmvalue), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 5, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(AlarmHandlingItem, has_alarmdirection), offsetof(AlarmHandlingItem, alarmdirection), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 6, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_ENUM, offsetof(AlarmHandlingItem, has_severity), offsetof(AlarmHandlingItem, severity), &debug_log_category__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 7, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(AlarmHandlingItem, has_debouncevalue), offsetof(AlarmHandlingItem, debouncevalue), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 8, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_ENUM, offsetof(AlarmHandlingItem, has_eventtype), offsetof(AlarmHandlingItem, eventtype), &event_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 9, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(AlarmHandlingItem, eventname), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 10, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(AlarmHandlingItem, has_ispersistent), offsetof(AlarmHandlingItem, ispersistent), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned alarm_handling_item__field_indices_by_name[] = { 4, /* field[4] = AlarmDirection */ 0, /* field[0] = AlarmSource */ 3, /* field[3] = AlarmValue */ 6, /* field[6] = DebounceValue */ 1, /* field[1] = DeviceId */ 8, /* field[8] = EventName */ 7, /* field[7] = EventType */ 9, /* field[9] = IsPersistent */ 2, /* field[2] = ModuleDeviceId */ 5, /* field[5] = Severity */ }; static const ProtobufCIntRange alarm_handling_item__number_ranges[1 + 1] = { { 1, 0 }, { 0, 10 } }; const ProtobufCMessageDescriptor alarm_handling_item__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "", "", "", "", sizeof(AlarmHandlingItem), 10, alarm_handling_item__field_descriptors, alarm_handling_item__field_indices_by_name, 1, alarm_handling_item__number_ranges, (ProtobufCMessageInit) alarm_handling_item__init, NULL,NULL,NULL /* reserved[123] */ };