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

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

#include "peer/proposal_response.pb-c.h"
void   protos__proposal_response__init
                     (Protos__ProposalResponse         *message)
{
  static Protos__ProposalResponse init_value = PROTOS__PROPOSAL_RESPONSE__INIT;
  *message = init_value;
}
size_t protos__proposal_response__get_packed_size
                     (const Protos__ProposalResponse *message)
{
  assert(message->base.descriptor == &protos__proposal_response__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t protos__proposal_response__pack
                     (const Protos__ProposalResponse *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &protos__proposal_response__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t protos__proposal_response__pack_to_buffer
                     (const Protos__ProposalResponse *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &protos__proposal_response__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Protos__ProposalResponse *
       protos__proposal_response__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Protos__ProposalResponse *)
     protobuf_c_message_unpack (&protos__proposal_response__descriptor,
                                allocator, len, data);
}
void   protos__proposal_response__free_unpacked
                     (Protos__ProposalResponse *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &protos__proposal_response__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   protos__response__init
                     (Protos__Response         *message)
{
  static Protos__Response init_value = PROTOS__RESPONSE__INIT;
  *message = init_value;
}
size_t protos__response__get_packed_size
                     (const Protos__Response *message)
{
  assert(message->base.descriptor == &protos__response__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t protos__response__pack
                     (const Protos__Response *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &protos__response__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t protos__response__pack_to_buffer
                     (const Protos__Response *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &protos__response__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Protos__Response *
       protos__response__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Protos__Response *)
     protobuf_c_message_unpack (&protos__response__descriptor,
                                allocator, len, data);
}
void   protos__response__free_unpacked
                     (Protos__Response *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &protos__response__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   protos__proposal_response_payload__init
                     (Protos__ProposalResponsePayload         *message)
{
  static Protos__ProposalResponsePayload init_value = PROTOS__PROPOSAL_RESPONSE_PAYLOAD__INIT;
  *message = init_value;
}
size_t protos__proposal_response_payload__get_packed_size
                     (const Protos__ProposalResponsePayload *message)
{
  assert(message->base.descriptor == &protos__proposal_response_payload__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t protos__proposal_response_payload__pack
                     (const Protos__ProposalResponsePayload *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &protos__proposal_response_payload__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t protos__proposal_response_payload__pack_to_buffer
                     (const Protos__ProposalResponsePayload *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &protos__proposal_response_payload__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Protos__ProposalResponsePayload *
       protos__proposal_response_payload__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Protos__ProposalResponsePayload *)
     protobuf_c_message_unpack (&protos__proposal_response_payload__descriptor,
                                allocator, len, data);
}
void   protos__proposal_response_payload__free_unpacked
                     (Protos__ProposalResponsePayload *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &protos__proposal_response_payload__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   protos__endorsement__init
                     (Protos__Endorsement         *message)
{
  static Protos__Endorsement init_value = PROTOS__ENDORSEMENT__INIT;
  *message = init_value;
}
size_t protos__endorsement__get_packed_size
                     (const Protos__Endorsement *message)
{
  assert(message->base.descriptor == &protos__endorsement__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t protos__endorsement__pack
                     (const Protos__Endorsement *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &protos__endorsement__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t protos__endorsement__pack_to_buffer
                     (const Protos__Endorsement *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &protos__endorsement__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Protos__Endorsement *
       protos__endorsement__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Protos__Endorsement *)
     protobuf_c_message_unpack (&protos__endorsement__descriptor,
                                allocator, len, data);
}
void   protos__endorsement__free_unpacked
                     (Protos__Endorsement *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &protos__endorsement__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor protos__proposal_response__field_descriptors[5] =
{
  {
    "version",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_INT32,
    offsetof(Protos__ProposalResponse, has_version),
    offsetof(Protos__ProposalResponse, version),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "timestamp",
    2,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_MESSAGE,
    0,   /* quantifier_offset */
    offsetof(Protos__ProposalResponse, timestamp),
    &google__protobuf__timestamp__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "response",
    4,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_MESSAGE,
    0,   /* quantifier_offset */
    offsetof(Protos__ProposalResponse, response),
    &protos__response__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "payload",
    5,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BYTES,
    offsetof(Protos__ProposalResponse, has_payload),
    offsetof(Protos__ProposalResponse, payload),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "endorsement",
    6,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_MESSAGE,
    0,   /* quantifier_offset */
    offsetof(Protos__ProposalResponse, endorsement),
    &protos__endorsement__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned protos__proposal_response__field_indices_by_name[] = {
  4,   /* field[4] = endorsement */
  3,   /* field[3] = payload */
  2,   /* field[2] = response */
  1,   /* field[1] = timestamp */
  0,   /* field[0] = version */
};
static const ProtobufCIntRange protos__proposal_response__number_ranges[2 + 1] =
{
  { 1, 0 },
  { 4, 2 },
  { 0, 5 }
};
const ProtobufCMessageDescriptor protos__proposal_response__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "protos.ProposalResponse",
  "ProposalResponse",
  "Protos__ProposalResponse",
  "protos",
  sizeof(Protos__ProposalResponse),
  5,
  protos__proposal_response__field_descriptors,
  protos__proposal_response__field_indices_by_name,
  2,  protos__proposal_response__number_ranges,
  (ProtobufCMessageInit) protos__proposal_response__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor protos__response__field_descriptors[3] =
{
  {
    "status",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_INT32,
    offsetof(Protos__Response, has_status),
    offsetof(Protos__Response, status),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "message",
    2,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Protos__Response, message),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "payload",
    3,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BYTES,
    offsetof(Protos__Response, has_payload),
    offsetof(Protos__Response, payload),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned protos__response__field_indices_by_name[] = {
  1,   /* field[1] = message */
  2,   /* field[2] = payload */
  0,   /* field[0] = status */
};
static const ProtobufCIntRange protos__response__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 3 }
};
const ProtobufCMessageDescriptor protos__response__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "protos.Response",
  "Response",
  "Protos__Response",
  "protos",
  sizeof(Protos__Response),
  3,
  protos__response__field_descriptors,
  protos__response__field_indices_by_name,
  1,  protos__response__number_ranges,
  (ProtobufCMessageInit) protos__response__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor protos__proposal_response_payload__field_descriptors[2] =
{
  {
    "proposal_hash",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BYTES,
    offsetof(Protos__ProposalResponsePayload, has_proposal_hash),
    offsetof(Protos__ProposalResponsePayload, proposal_hash),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "extension",
    2,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BYTES,
    offsetof(Protos__ProposalResponsePayload, has_extension),
    offsetof(Protos__ProposalResponsePayload, extension),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned protos__proposal_response_payload__field_indices_by_name[] = {
  1,   /* field[1] = extension */
  0,   /* field[0] = proposal_hash */
};
static const ProtobufCIntRange protos__proposal_response_payload__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 2 }
};
const ProtobufCMessageDescriptor protos__proposal_response_payload__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "protos.ProposalResponsePayload",
  "ProposalResponsePayload",
  "Protos__ProposalResponsePayload",
  "protos",
  sizeof(Protos__ProposalResponsePayload),
  2,
  protos__proposal_response_payload__field_descriptors,
  protos__proposal_response_payload__field_indices_by_name,
  1,  protos__proposal_response_payload__number_ranges,
  (ProtobufCMessageInit) protos__proposal_response_payload__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor protos__endorsement__field_descriptors[2] =
{
  {
    "endorser",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BYTES,
    offsetof(Protos__Endorsement, has_endorser),
    offsetof(Protos__Endorsement, endorser),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "signature",
    2,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BYTES,
    offsetof(Protos__Endorsement, has_signature),
    offsetof(Protos__Endorsement, signature),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned protos__endorsement__field_indices_by_name[] = {
  0,   /* field[0] = endorser */
  1,   /* field[1] = signature */
};
static const ProtobufCIntRange protos__endorsement__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 2 }
};
const ProtobufCMessageDescriptor protos__endorsement__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "protos.Endorsement",
  "Endorsement",
  "Protos__Endorsement",
  "protos",
  sizeof(Protos__Endorsement),
  2,
  protos__endorsement__field_descriptors,
  protos__endorsement__field_indices_by_name,
  1,  protos__endorsement__number_ranges,
  (ProtobufCMessageInit) protos__endorsement__init,
  NULL,NULL,NULL    /* reserved[123] */
};
