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

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

#include "file-lock.pb-c.h"
void   file_lock_entry__init
                     (FileLockEntry         *message)
{
  static const FileLockEntry init_value = FILE_LOCK_ENTRY__INIT;
  *message = init_value;
}
size_t file_lock_entry__get_packed_size
                     (const FileLockEntry *message)
{
  assert(message->base.descriptor == &file_lock_entry__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t file_lock_entry__pack
                     (const FileLockEntry *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &file_lock_entry__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t file_lock_entry__pack_to_buffer
                     (const FileLockEntry *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &file_lock_entry__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
FileLockEntry *
       file_lock_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (FileLockEntry *)
     protobuf_c_message_unpack (&file_lock_entry__descriptor,
                                allocator, len, data);
}
void   file_lock_entry__free_unpacked
                     (FileLockEntry *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &file_lock_entry__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor file_lock_entry__field_descriptors[6] =
{
  {
    "flag",
    1,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_UINT32,
    0,   /* quantifier_offset */
    offsetof(FileLockEntry, flag),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "type",
    2,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_UINT32,
    0,   /* quantifier_offset */
    offsetof(FileLockEntry, type),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "pid",
    3,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_INT32,
    0,   /* quantifier_offset */
    offsetof(FileLockEntry, pid),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "fd",
    4,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_INT32,
    0,   /* quantifier_offset */
    offsetof(FileLockEntry, fd),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "start",
    5,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_INT64,
    0,   /* quantifier_offset */
    offsetof(FileLockEntry, start),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "len",
    6,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_INT64,
    0,   /* quantifier_offset */
    offsetof(FileLockEntry, len),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned file_lock_entry__field_indices_by_name[] = {
  3,   /* field[3] = fd */
  0,   /* field[0] = flag */
  5,   /* field[5] = len */
  2,   /* field[2] = pid */
  4,   /* field[4] = start */
  1,   /* field[1] = type */
};
static const ProtobufCIntRange file_lock_entry__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 6 }
};
const ProtobufCMessageDescriptor file_lock_entry__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "file_lock_entry",
  "FileLockEntry",
  "FileLockEntry",
  "",
  sizeof(FileLockEntry),
  6,
  file_lock_entry__field_descriptors,
  file_lock_entry__field_indices_by_name,
  1,  file_lock_entry__number_ranges,
  (ProtobufCMessageInit) file_lock_entry__init,
  NULL,NULL,NULL    /* reserved[123] */
};
