/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: StubHeatingTestResponse.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "StubHeatingTestResponse.pb-c.h" void stub_heating_test_response__init (StubHeatingTestResponse *message) { static const StubHeatingTestResponse init_value = STUB_HEATING_TEST_RESPONSE__INIT; *message = init_value; } size_t stub_heating_test_response__get_packed_size (const StubHeatingTestResponse *message) { assert(message->base.descriptor == &stub_heating_test_response__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t stub_heating_test_response__pack (const StubHeatingTestResponse *message, uint8_t *out) { assert(message->base.descriptor == &stub_heating_test_response__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t stub_heating_test_response__pack_to_buffer (const StubHeatingTestResponse *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &stub_heating_test_response__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } StubHeatingTestResponse * stub_heating_test_response__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (StubHeatingTestResponse *) protobuf_c_message_unpack (&stub_heating_test_response__descriptor, allocator, len, data); } void stub_heating_test_response__free_unpacked (StubHeatingTestResponse *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &stub_heating_test_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor stub_heating_test_response__field_descriptors[7] = { { "", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubHeatingTestResponse, has_heatergroupid), offsetof(StubHeatingTestResponse, heatergroupid), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubHeatingTestResponse, has_zone1temp), offsetof(StubHeatingTestResponse, zone1temp), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubHeatingTestResponse, has_zone2temp), offsetof(StubHeatingTestResponse, zone2temp), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 4, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubHeatingTestResponse, has_heater1active), offsetof(StubHeatingTestResponse, heater1active), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 5, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubHeatingTestResponse, has_heater2active), offsetof(StubHeatingTestResponse, heater2active), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 6, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubHeatingTestResponse, has_heater1percentage), offsetof(StubHeatingTestResponse, heater1percentage), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 7, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubHeatingTestResponse, has_heater2percentage), offsetof(StubHeatingTestResponse, heater2percentage), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned stub_heating_test_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 */ 1, /* field[1] = Zone1Temp */ 2, /* field[2] = Zone2Temp */ }; static const ProtobufCIntRange stub_heating_test_response__number_ranges[1 + 1] = { { 1, 0 }, { 0, 7 } }; const ProtobufCMessageDescriptor stub_heating_test_response__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "", "", "", "", sizeof(StubHeatingTestResponse), 7, stub_heating_test_response__field_descriptors, stub_heating_test_response__field_indices_by_name, 1, stub_heating_test_response__number_ranges, (ProtobufCMessageInit) stub_heating_test_response__init, NULL,NULL,NULL /* reserved[123] */ };