/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: StubHeatingTestPollResponse.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "StubHeatingTestPollResponse.pb-c.h" void stub_heating_test_poll_response__init (StubHeatingTestPollResponse *message) { static const StubHeatingTestPollResponse init_value = STUB_HEATING_TEST_POLL_RESPONSE__INIT; *message = init_value; } size_t stub_heating_test_poll_response__get_packed_size (const StubHeatingTestPollResponse *message) { assert(message->base.descriptor == &stub_heating_test_poll_response__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t stub_heating_test_poll_response__pack (const StubHeatingTestPollResponse *message, uint8_t *out) { assert(message->base.descriptor == &stub_heating_test_poll_response__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t stub_heating_test_poll_response__pack_to_buffer (const StubHeatingTestPollResponse *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &stub_heating_test_poll_response__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } StubHeatingTestPollResponse * stub_heating_test_poll_response__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (StubHeatingTestPollResponse *) protobuf_c_message_unpack (&stub_heating_test_poll_response__descriptor, allocator, len, data); } void stub_heating_test_poll_response__free_unpacked (StubHeatingTestPollResponse *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &stub_heating_test_poll_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor stub_heating_test_poll_response__field_descriptors[8] = { { "", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubHeatingTestPollResponse, has_heatergroupid), offsetof(StubHeatingTestPollResponse, heatergroupid), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubHeatingTestPollResponse, has_zone1temp), offsetof(StubHeatingTestPollResponse, zone1temp), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubHeatingTestPollResponse, has_zone2temp), offsetof(StubHeatingTestPollResponse, zone2temp), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 4, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubHeatingTestPollResponse, has_heater1active), offsetof(StubHeatingTestPollResponse, heater1active), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 5, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubHeatingTestPollResponse, has_heater2active), offsetof(StubHeatingTestPollResponse, heater2active), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 6, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubHeatingTestPollResponse, has_heater1percentage), offsetof(StubHeatingTestPollResponse, heater1percentage), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 7, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubHeatingTestPollResponse, has_heater2percentage), offsetof(StubHeatingTestPollResponse, heater2percentage), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 8, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(StubHeatingTestPollResponse, infomessage), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned stub_heating_test_poll_response__field_indices_by_name[] = { 3, /* field[3] = Heater1Active */ 5, /* field[5] = Heater1Percentage */ 4, /* field[4] = Heater2Active */ 6, /* field[6] = Heater2Percentage */ 0, /* field[0] = HeaterGroupId */ 7, /* field[7] = InfoMessage */ 1, /* field[1] = Zone1Temp */ 2, /* field[2] = Zone2Temp */ }; static const ProtobufCIntRange stub_heating_test_poll_response__number_ranges[1 + 1] = { { 1, 0 }, { 0, 8 } }; const ProtobufCMessageDescriptor stub_heating_test_poll_response__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "", "", "", "", sizeof(StubHeatingTestPollResponse), 8, stub_heating_test_poll_response__field_descriptors, stub_heating_test_poll_response__field_indices_by_name, 1, stub_heating_test_poll_response__number_ranges, (ProtobufCMessageInit) stub_heating_test_poll_response__init, NULL,NULL,NULL /* reserved[123] */ };