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

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

#include "pstree.pb-c.h"
void   pstree_entry__init
                     (PstreeEntry         *message)
{
  static const PstreeEntry init_value = PSTREE_ENTRY__INIT;
  *message = init_value;
}
size_t pstree_entry__get_packed_size
                     (const PstreeEntry *message)
{
  assert(message->base.descriptor == &pstree_entry__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t pstree_entry__pack
                     (const PstreeEntry *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &pstree_entry__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t pstree_entry__pack_to_buffer
                     (const PstreeEntry *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &pstree_entry__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
PstreeEntry *
       pstree_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (PstreeEntry *)
     protobuf_c_message_unpack (&pstree_entry__descriptor,
                                allocator, len, data);
}
void   pstree_entry__free_unpacked
                     (PstreeEntry *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &pstree_entry__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor pstree_entry__field_descriptors[5] =
{
  {
    "pid",
    1,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_UINT32,
    0,   /* quantifier_offset */
    offsetof(PstreeEntry, pid),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "ppid",
    2,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_UINT32,
    0,   /* quantifier_offset */
    offsetof(PstreeEntry, ppid),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "pgid",
    3,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_UINT32,
    0,   /* quantifier_offset */
    offsetof(PstreeEntry, pgid),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "sid",
    4,
    PROTOBUF_C_LABEL_REQUIRED,
    PROTOBUF_C_TYPE_UINT32,
    0,   /* quantifier_offset */
    offsetof(PstreeEntry, sid),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "threads",
    5,
    PROTOBUF_C_LABEL_REPEATED,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(PstreeEntry, n_threads),
    offsetof(PstreeEntry, threads),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned pstree_entry__field_indices_by_name[] = {
  2,   /* field[2] = pgid */
  0,   /* field[0] = pid */
  1,   /* field[1] = ppid */
  3,   /* field[3] = sid */
  4,   /* field[4] = threads */
};
static const ProtobufCIntRange pstree_entry__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 5 }
};
const ProtobufCMessageDescriptor pstree_entry__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "pstree_entry",
  "PstreeEntry",
  "PstreeEntry",
  "",
  sizeof(PstreeEntry),
  5,
  pstree_entry__field_descriptors,
  pstree_entry__field_indices_by_name,
  1,  pstree_entry__number_ranges,
  (ProtobufCMessageInit) pstree_entry__init,
  NULL,NULL,NULL    /* reserved[123] */
};
