/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: CartridgeValidationResponse.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "CartridgeValidationResponse.pb-c.h" void cartridge_validation_response__init (CartridgeValidationResponse *message) { static const CartridgeValidationResponse init_value = CARTRIDGE_VALIDATION_RESPONSE__INIT; *message = init_value; } size_t cartridge_validation_response__get_packed_size (const CartridgeValidationResponse *message) { assert(message->base.descriptor == &cartridge_validation_response__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t cartridge_validation_response__pack (const CartridgeValidationResponse *message, uint8_t *out) { assert(message->base.descriptor == &cartridge_validation_response__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t cartridge_validation_response__pack_to_buffer (const CartridgeValidationResponse *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &cartridge_validation_response__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } CartridgeValidationResponse * cartridge_validation_response__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (CartridgeValidationResponse *) protobuf_c_message_unpack (&cartridge_validation_response__descriptor, allocator, len, data); } void cartridge_validation_response__free_unpacked (CartridgeValidationResponse *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &cartridge_validation_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor cartridge_validation_response__field_descriptors[2] = { { "", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(CartridgeValidationResponse, has_isvalid), offsetof(CartridgeValidationResponse, isvalid), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT32, offsetof(CartridgeValidationResponse, has_index), offsetof(CartridgeValidationResponse, index), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned cartridge_validation_response__field_indices_by_name[] = { 1, /* field[1] = Index */ 0, /* field[0] = IsValid */ }; static const ProtobufCIntRange cartridge_validation_response__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; const ProtobufCMessageDescriptor cartridge_validation_response__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "", "", "", "", sizeof(CartridgeValidationResponse), 2, cartridge_validation_response__field_descriptors, cartridge_validation_response__field_indices_by_name, 1, cartridge_validation_response__number_ranges, (ProtobufCMessageInit) cartridge_validation_response__init, NULL,NULL,NULL /* reserved[123] */ };