/*
 * This file is auto-generated, do not modify!
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#include "config.h"

#include <glib.h>

#include "fu-protobuf-struct.h"

#ifdef G_LOG_DOMAIN
  #undef G_LOG_DOMAIN
#endif
#define G_LOG_DOMAIN "FuStruct"

/**
 * fu_protobuf_wire_type_to_string:
 * @val: value, e.g. %FU_PROTOBUF_WIRE_TYPE_INT64
 *
 * Converts an enumerated value to a string.
 *
 * Returns: identifier string
 **/
const gchar *
fu_protobuf_wire_type_to_string(FuProtobufWireType val)
{
    if (val == FU_PROTOBUF_WIRE_TYPE_VARINT)
        return "varint";
    if (val == FU_PROTOBUF_WIRE_TYPE_INT64)
        return "int64";
    if (val == FU_PROTOBUF_WIRE_TYPE_LEN)
        return "len";
    if (val == FU_PROTOBUF_WIRE_TYPE_START_GROUP)
        return "start-group";
    if (val == FU_PROTOBUF_WIRE_TYPE_END_GROUP)
        return "end-group";
    if (val == FU_PROTOBUF_WIRE_TYPE_INT32)
        return "int32";
    return NULL;
}
