/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: inventory.proto */

/* Do not generate deprecated warnings for self */
#ifndef PROTOBUF_C__NO_DEPRECATED
#define PROTOBUF_C__NO_DEPRECATED
#endif

#include "inventory.pb-c.h"
void   plugins_entry__init
                     (PluginsEntry         *message)
{
  static const PluginsEntry init_value = PLUGINS_ENTRY__INIT;
  *message = init_value;
}
size_t plugins_entry__get_packed_size
                     (const PluginsEntry *message)
{
  assert(message->base.descriptor == &plugins_entry__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t plugins_entry__pack
                     (const PluginsEntry *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &plugins_entry__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t plugins_entry__pack_to_buffer
                     (const PluginsEntry *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &plugins_entry__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
PluginsEntry *
       plugins_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (PluginsEntry *)
     protobuf_c_message_unpack (&plugins_entry__descriptor,
                                allocator, len, data);
}
void   plugins_entry__free_unpacked
                     (PluginsEntry *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &plugins_entry__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   inventory_entry__init
                     (InventoryEntry         *message)
{
  static const InventoryEntry init_value = INVENTORY_ENTRY__INIT;
  *message = init_value;
}
size_t inventory_entry__get_packed_size
                     (const InventoryEntry *message)
{
  assert(message->base.descriptor == &inventory_entry__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t inventory_entry__pack
                     (const InventoryEntry *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &inventory_entry__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t inventory_entry__pack_to_buffer
                     (const InventoryEntry *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &inventory_entry__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
InventoryEntry *
       inventory_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (InventoryEntry *)
     protobuf_c_message_unpack (&inventory_entry__descriptor,
                                allocator, len, data);
}
void   inventory_entry__free_unpacked
                     (InventoryEntry *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &inventory_entry__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor plugins_entry__field_descriptors[1] =
{
  {
    "plugins",
    12,
    PROTOBUF_C_LABEL_REPEATED,
    PROTOBUF_C_TYPE_STRING,
    offsetof(PluginsEntry, n_plugins),
    offsetof(PluginsEntry, plugins),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned plugins_entry__field_indices_by_name[] = {
  0,   /* field[0] = plugins */
};
static const ProtobufCIntRange plugins_entry__number_ranges[1 + 1] =
{
  { 12, 0 },
  { 0, 1 }
};
const ProtobufCMessageDescriptor plugins_entry__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "plugins_entry",
  "PluginsEntry",
  "PluginsEntry",
  "",
  sizeof(PluginsEntry),
  1,
  plugins_entry__field_descriptors,
  plugins_entry__field_indices_by_name,
  1,  plugins_entry__number_ranges,
  (ProtobufCMessageInit) plugins_entry__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor inventory_entry__field_descriptors[13] =
{
  {
    "img_version",
    1,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_UINT32,
    0,   /* quantifier_offset */
    offsetof(InventoryEntry, img_version),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "fdinfo_per_id",
    2,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BOOL,
    offsetof(InventoryEntry, has_fdinfo_per_id),
    offsetof(InventoryEntry, fdinfo_per_id),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "root_ids",
    3,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_MESSAGE,
    0,   /* quantifier_offset */
    offsetof(InventoryEntry, root_ids),
    &task_kobj_ids_entry__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "ns_per_id",
    4,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BOOL,
    offsetof(InventoryEntry, has_ns_per_id),
    offsetof(InventoryEntry, ns_per_id),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "root_cg_set",
    5,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(InventoryEntry, has_root_cg_set),
    offsetof(InventoryEntry, root_cg_set),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "lsmtype",
    6,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_ENUM,
    offsetof(InventoryEntry, has_lsmtype),
    offsetof(InventoryEntry, lsmtype),
    &lsmtype__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "dump_uptime",
    8,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT64,
    offsetof(InventoryEntry, has_dump_uptime),
    offsetof(InventoryEntry, dump_uptime),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "pre_dump_mode",
    9,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(InventoryEntry, has_pre_dump_mode),
    offsetof(InventoryEntry, pre_dump_mode),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "tcp_close",
    10,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BOOL,
    offsetof(InventoryEntry, has_tcp_close),
    offsetof(InventoryEntry, tcp_close),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "network_lock_method",
    11,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(InventoryEntry, has_network_lock_method),
    offsetof(InventoryEntry, network_lock_method),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "plugins_entry",
    12,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_MESSAGE,
    0,   /* quantifier_offset */
    offsetof(InventoryEntry, plugins_entry),
    &plugins_entry__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "dump_criu_run_id",
    13,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(InventoryEntry, dump_criu_run_id),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "allow_uprobes",
    14,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BOOL,
    offsetof(InventoryEntry, has_allow_uprobes),
    offsetof(InventoryEntry, allow_uprobes),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned inventory_entry__field_indices_by_name[] = {
  12,   /* field[12] = allow_uprobes */
  11,   /* field[11] = dump_criu_run_id */
  6,   /* field[6] = dump_uptime */
  1,   /* field[1] = fdinfo_per_id */
  0,   /* field[0] = img_version */
  5,   /* field[5] = lsmtype */
  9,   /* field[9] = network_lock_method */
  3,   /* field[3] = ns_per_id */
  10,   /* field[10] = plugins_entry */
  7,   /* field[7] = pre_dump_mode */
  4,   /* field[4] = root_cg_set */
  2,   /* field[2] = root_ids */
  8,   /* field[8] = tcp_close */
};
static const ProtobufCIntRange inventory_entry__number_ranges[2 + 1] =
{
  { 1, 0 },
  { 8, 6 },
  { 0, 13 }
};
const ProtobufCMessageDescriptor inventory_entry__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "inventory_entry",
  "InventoryEntry",
  "InventoryEntry",
  "",
  sizeof(InventoryEntry),
  13,
  inventory_entry__field_descriptors,
  inventory_entry__field_indices_by_name,
  2,  inventory_entry__number_ranges,
  (ProtobufCMessageInit) inventory_entry__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCEnumValue lsmtype__enum_values_by_number[3] =
{
  { "NO_LSM", "LSMTYPE__NO_LSM", 0 },
  { "SELINUX", "LSMTYPE__SELINUX", 1 },
  { "APPARMOR", "LSMTYPE__APPARMOR", 2 },
};
static const ProtobufCIntRange lsmtype__value_ranges[] = {
{0, 0},{0, 3}
};
static const ProtobufCEnumValueIndex lsmtype__enum_values_by_name[3] =
{
  { "APPARMOR", 2 },
  { "NO_LSM", 0 },
  { "SELINUX", 1 },
};
const ProtobufCEnumDescriptor lsmtype__descriptor =
{
  PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
  "lsmtype",
  "lsmtype",
  "Lsmtype",
  "",
  3,
  lsmtype__enum_values_by_number,
  3,
  lsmtype__enum_values_by_name,
  1,
  lsmtype__value_ranges,
  NULL,NULL,NULL,NULL   /* reserved[1234] */
};
