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

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

#include "fh.pb-c.h"
void   fh_entry__init
                     (FhEntry         *message)
{
  static const FhEntry init_value = FH_ENTRY__INIT;
  *message = init_value;
}
size_t fh_entry__get_packed_size
                     (const FhEntry *message)
{
  assert(message->base.descriptor == &fh_entry__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t fh_entry__pack
                     (const FhEntry *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &fh_entry__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t fh_entry__pack_to_buffer
                     (const FhEntry *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &fh_entry__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
FhEntry *
       fh_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (FhEntry *)
     protobuf_c_message_unpack (&fh_entry__descriptor,
                                allocator, len, data);
}
void   fh_entry__free_unpacked
                     (FhEntry *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &fh_entry__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   irmap_cache_entry__init
                     (IrmapCacheEntry         *message)
{
  static const IrmapCacheEntry init_value = IRMAP_CACHE_ENTRY__INIT;
  *message = init_value;
}
size_t irmap_cache_entry__get_packed_size
                     (const IrmapCacheEntry *message)
{
  assert(message->base.descriptor == &irmap_cache_entry__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t irmap_cache_entry__pack
                     (const IrmapCacheEntry *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &irmap_cache_entry__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t irmap_cache_entry__pack_to_buffer
                     (const IrmapCacheEntry *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &irmap_cache_entry__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
IrmapCacheEntry *
       irmap_cache_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (IrmapCacheEntry *)
     protobuf_c_message_unpack (&irmap_cache_entry__descriptor,
                                allocator, len, data);
}
void   irmap_cache_entry__free_unpacked
                     (IrmapCacheEntry *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &irmap_cache_entry__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor fh_entry__field_descriptors[5] =
{
  {
    "bytes",
    1,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_UINT32,
    0,   /* quantifier_offset */
    offsetof(FhEntry, bytes),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "type",
    2,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_UINT32,
    0,   /* quantifier_offset */
    offsetof(FhEntry, type),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "handle",
    3,
    PROTOBUF_C_LABEL_REPEATED,
    PROTOBUF_C_TYPE_UINT64,
    offsetof(FhEntry, n_handle),
    offsetof(FhEntry, handle),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "path",
    4,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(FhEntry, path),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "mnt_id",
    5,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(FhEntry, has_mnt_id),
    offsetof(FhEntry, mnt_id),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned fh_entry__field_indices_by_name[] = {
  0,   /* field[0] = bytes */
  2,   /* field[2] = handle */
  4,   /* field[4] = mnt_id */
  3,   /* field[3] = path */
  1,   /* field[1] = type */
};
static const ProtobufCIntRange fh_entry__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 5 }
};
const ProtobufCMessageDescriptor fh_entry__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "fh_entry",
  "FhEntry",
  "FhEntry",
  "",
  sizeof(FhEntry),
  5,
  fh_entry__field_descriptors,
  fh_entry__field_indices_by_name,
  1,  fh_entry__number_ranges,
  (ProtobufCMessageInit) fh_entry__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor irmap_cache_entry__field_descriptors[3] =
{
  {
    "dev",
    1,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_UINT32,
    0,   /* quantifier_offset */
    offsetof(IrmapCacheEntry, dev),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "inode",
    2,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_UINT64,
    0,   /* quantifier_offset */
    offsetof(IrmapCacheEntry, inode),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "path",
    3,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(IrmapCacheEntry, path),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned irmap_cache_entry__field_indices_by_name[] = {
  0,   /* field[0] = dev */
  1,   /* field[1] = inode */
  2,   /* field[2] = path */
};
static const ProtobufCIntRange irmap_cache_entry__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 3 }
};
const ProtobufCMessageDescriptor irmap_cache_entry__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "irmap_cache_entry",
  "IrmapCacheEntry",
  "IrmapCacheEntry",
  "",
  sizeof(IrmapCacheEntry),
  3,
  irmap_cache_entry__field_descriptors,
  irmap_cache_entry__field_indices_by_name,
  1,  irmap_cache_entry__number_ranges,
  (ProtobufCMessageInit) irmap_cache_entry__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCEnumValue fh_entry_sizes__enum_values_by_number[1] =
{
  { "min_entries", "FH_ENTRY_SIZES__min_entries", 16 },
};
static const ProtobufCIntRange fh_entry_sizes__value_ranges[] = {
{16, 0},{0, 1}
};
static const ProtobufCEnumValueIndex fh_entry_sizes__enum_values_by_name[1] =
{
  { "min_entries", 0 },
};
const ProtobufCEnumDescriptor fh_entry_sizes__descriptor =
{
  PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
  "fh_entry_sizes",
  "fh_entry_sizes",
  "FhEntrySizes",
  "",
  1,
  fh_entry_sizes__enum_values_by_number,
  1,
  fh_entry_sizes__enum_values_by_name,
  1,
  fh_entry_sizes__value_ranges,
  NULL,NULL,NULL,NULL   /* reserved[1234] */
};
