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

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

#include "msp/identities.pb-c.h"
void   msp__serialized_identity__init
                     (Msp__SerializedIdentity         *message)
{
  static Msp__SerializedIdentity init_value = MSP__SERIALIZED_IDENTITY__INIT;
  *message = init_value;
}
size_t msp__serialized_identity__get_packed_size
                     (const Msp__SerializedIdentity *message)
{
  assert(message->base.descriptor == &msp__serialized_identity__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t msp__serialized_identity__pack
                     (const Msp__SerializedIdentity *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &msp__serialized_identity__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t msp__serialized_identity__pack_to_buffer
                     (const Msp__SerializedIdentity *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &msp__serialized_identity__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Msp__SerializedIdentity *
       msp__serialized_identity__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Msp__SerializedIdentity *)
     protobuf_c_message_unpack (&msp__serialized_identity__descriptor,
                                allocator, len, data);
}
void   msp__serialized_identity__free_unpacked
                     (Msp__SerializedIdentity *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &msp__serialized_identity__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   msp__serialized_idemix_identity__init
                     (Msp__SerializedIdemixIdentity         *message)
{
  static Msp__SerializedIdemixIdentity init_value = MSP__SERIALIZED_IDEMIX_IDENTITY__INIT;
  *message = init_value;
}
size_t msp__serialized_idemix_identity__get_packed_size
                     (const Msp__SerializedIdemixIdentity *message)
{
  assert(message->base.descriptor == &msp__serialized_idemix_identity__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t msp__serialized_idemix_identity__pack
                     (const Msp__SerializedIdemixIdentity *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &msp__serialized_idemix_identity__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t msp__serialized_idemix_identity__pack_to_buffer
                     (const Msp__SerializedIdemixIdentity *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &msp__serialized_idemix_identity__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Msp__SerializedIdemixIdentity *
       msp__serialized_idemix_identity__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Msp__SerializedIdemixIdentity *)
     protobuf_c_message_unpack (&msp__serialized_idemix_identity__descriptor,
                                allocator, len, data);
}
void   msp__serialized_idemix_identity__free_unpacked
                     (Msp__SerializedIdemixIdentity *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &msp__serialized_idemix_identity__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor msp__serialized_identity__field_descriptors[2] =
{
  {
    "mspid",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Msp__SerializedIdentity, mspid),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "id_bytes",
    2,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BYTES,
    offsetof(Msp__SerializedIdentity, has_id_bytes),
    offsetof(Msp__SerializedIdentity, id_bytes),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned msp__serialized_identity__field_indices_by_name[] = {
  1,   /* field[1] = id_bytes */
  0,   /* field[0] = mspid */
};
static const ProtobufCIntRange msp__serialized_identity__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 2 }
};
const ProtobufCMessageDescriptor msp__serialized_identity__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "msp.SerializedIdentity",
  "SerializedIdentity",
  "Msp__SerializedIdentity",
  "msp",
  sizeof(Msp__SerializedIdentity),
  2,
  msp__serialized_identity__field_descriptors,
  msp__serialized_identity__field_indices_by_name,
  1,  msp__serialized_identity__number_ranges,
  (ProtobufCMessageInit) msp__serialized_identity__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor msp__serialized_idemix_identity__field_descriptors[5] =
{
  {
    "nym_x",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BYTES,
    offsetof(Msp__SerializedIdemixIdentity, has_nym_x),
    offsetof(Msp__SerializedIdemixIdentity, nym_x),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "nym_y",
    2,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BYTES,
    offsetof(Msp__SerializedIdemixIdentity, has_nym_y),
    offsetof(Msp__SerializedIdemixIdentity, nym_y),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "ou",
    3,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BYTES,
    offsetof(Msp__SerializedIdemixIdentity, has_ou),
    offsetof(Msp__SerializedIdemixIdentity, ou),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "role",
    4,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BYTES,
    offsetof(Msp__SerializedIdemixIdentity, has_role),
    offsetof(Msp__SerializedIdemixIdentity, role),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "proof",
    5,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BYTES,
    offsetof(Msp__SerializedIdemixIdentity, has_proof),
    offsetof(Msp__SerializedIdemixIdentity, proof),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned msp__serialized_idemix_identity__field_indices_by_name[] = {
  0,   /* field[0] = nym_x */
  1,   /* field[1] = nym_y */
  2,   /* field[2] = ou */
  4,   /* field[4] = proof */
  3,   /* field[3] = role */
};
static const ProtobufCIntRange msp__serialized_idemix_identity__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 5 }
};
const ProtobufCMessageDescriptor msp__serialized_idemix_identity__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "msp.SerializedIdemixIdentity",
  "SerializedIdemixIdentity",
  "Msp__SerializedIdemixIdentity",
  "msp",
  sizeof(Msp__SerializedIdemixIdentity),
  5,
  msp__serialized_idemix_identity__field_descriptors,
  msp__serialized_idemix_identity__field_indices_by_name,
  1,  msp__serialized_idemix_identity__number_ranges,
  (ProtobufCMessageInit) msp__serialized_idemix_identity__init,
  NULL,NULL,NULL    /* reserved[123] */
};
