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

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

#include "orderer/configuration.pb-c.h"
void   orderer__consensus_type__init
                     (Orderer__ConsensusType         *message)
{
  static Orderer__ConsensusType init_value = ORDERER__CONSENSUS_TYPE__INIT;
  *message = init_value;
}
size_t orderer__consensus_type__get_packed_size
                     (const Orderer__ConsensusType *message)
{
  assert(message->base.descriptor == &orderer__consensus_type__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t orderer__consensus_type__pack
                     (const Orderer__ConsensusType *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &orderer__consensus_type__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t orderer__consensus_type__pack_to_buffer
                     (const Orderer__ConsensusType *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &orderer__consensus_type__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Orderer__ConsensusType *
       orderer__consensus_type__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Orderer__ConsensusType *)
     protobuf_c_message_unpack (&orderer__consensus_type__descriptor,
                                allocator, len, data);
}
void   orderer__consensus_type__free_unpacked
                     (Orderer__ConsensusType *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &orderer__consensus_type__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   orderer__batch_size__init
                     (Orderer__BatchSize         *message)
{
  static Orderer__BatchSize init_value = ORDERER__BATCH_SIZE__INIT;
  *message = init_value;
}
size_t orderer__batch_size__get_packed_size
                     (const Orderer__BatchSize *message)
{
  assert(message->base.descriptor == &orderer__batch_size__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t orderer__batch_size__pack
                     (const Orderer__BatchSize *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &orderer__batch_size__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t orderer__batch_size__pack_to_buffer
                     (const Orderer__BatchSize *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &orderer__batch_size__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Orderer__BatchSize *
       orderer__batch_size__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Orderer__BatchSize *)
     protobuf_c_message_unpack (&orderer__batch_size__descriptor,
                                allocator, len, data);
}
void   orderer__batch_size__free_unpacked
                     (Orderer__BatchSize *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &orderer__batch_size__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   orderer__batch_timeout__init
                     (Orderer__BatchTimeout         *message)
{
  static Orderer__BatchTimeout init_value = ORDERER__BATCH_TIMEOUT__INIT;
  *message = init_value;
}
size_t orderer__batch_timeout__get_packed_size
                     (const Orderer__BatchTimeout *message)
{
  assert(message->base.descriptor == &orderer__batch_timeout__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t orderer__batch_timeout__pack
                     (const Orderer__BatchTimeout *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &orderer__batch_timeout__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t orderer__batch_timeout__pack_to_buffer
                     (const Orderer__BatchTimeout *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &orderer__batch_timeout__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Orderer__BatchTimeout *
       orderer__batch_timeout__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Orderer__BatchTimeout *)
     protobuf_c_message_unpack (&orderer__batch_timeout__descriptor,
                                allocator, len, data);
}
void   orderer__batch_timeout__free_unpacked
                     (Orderer__BatchTimeout *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &orderer__batch_timeout__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   orderer__kafka_brokers__init
                     (Orderer__KafkaBrokers         *message)
{
  static Orderer__KafkaBrokers init_value = ORDERER__KAFKA_BROKERS__INIT;
  *message = init_value;
}
size_t orderer__kafka_brokers__get_packed_size
                     (const Orderer__KafkaBrokers *message)
{
  assert(message->base.descriptor == &orderer__kafka_brokers__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t orderer__kafka_brokers__pack
                     (const Orderer__KafkaBrokers *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &orderer__kafka_brokers__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t orderer__kafka_brokers__pack_to_buffer
                     (const Orderer__KafkaBrokers *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &orderer__kafka_brokers__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Orderer__KafkaBrokers *
       orderer__kafka_brokers__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Orderer__KafkaBrokers *)
     protobuf_c_message_unpack (&orderer__kafka_brokers__descriptor,
                                allocator, len, data);
}
void   orderer__kafka_brokers__free_unpacked
                     (Orderer__KafkaBrokers *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &orderer__kafka_brokers__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   orderer__channel_restrictions__init
                     (Orderer__ChannelRestrictions         *message)
{
  static Orderer__ChannelRestrictions init_value = ORDERER__CHANNEL_RESTRICTIONS__INIT;
  *message = init_value;
}
size_t orderer__channel_restrictions__get_packed_size
                     (const Orderer__ChannelRestrictions *message)
{
  assert(message->base.descriptor == &orderer__channel_restrictions__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t orderer__channel_restrictions__pack
                     (const Orderer__ChannelRestrictions *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &orderer__channel_restrictions__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t orderer__channel_restrictions__pack_to_buffer
                     (const Orderer__ChannelRestrictions *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &orderer__channel_restrictions__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Orderer__ChannelRestrictions *
       orderer__channel_restrictions__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Orderer__ChannelRestrictions *)
     protobuf_c_message_unpack (&orderer__channel_restrictions__descriptor,
                                allocator, len, data);
}
void   orderer__channel_restrictions__free_unpacked
                     (Orderer__ChannelRestrictions *message,
                      ProtobufCAllocator *allocator)
{
  assert(message->base.descriptor == &orderer__channel_restrictions__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor orderer__consensus_type__field_descriptors[2] =
{
  {
    "type",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Orderer__ConsensusType, type),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "metadata",
    2,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BYTES,
    offsetof(Orderer__ConsensusType, has_metadata),
    offsetof(Orderer__ConsensusType, metadata),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned orderer__consensus_type__field_indices_by_name[] = {
  1,   /* field[1] = metadata */
  0,   /* field[0] = type */
};
static const ProtobufCIntRange orderer__consensus_type__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 2 }
};
const ProtobufCMessageDescriptor orderer__consensus_type__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "orderer.ConsensusType",
  "ConsensusType",
  "Orderer__ConsensusType",
  "orderer",
  sizeof(Orderer__ConsensusType),
  2,
  orderer__consensus_type__field_descriptors,
  orderer__consensus_type__field_indices_by_name,
  1,  orderer__consensus_type__number_ranges,
  (ProtobufCMessageInit) orderer__consensus_type__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor orderer__batch_size__field_descriptors[3] =
{
  {
    "max_message_count",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(Orderer__BatchSize, has_max_message_count),
    offsetof(Orderer__BatchSize, max_message_count),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "absolute_max_bytes",
    2,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(Orderer__BatchSize, has_absolute_max_bytes),
    offsetof(Orderer__BatchSize, absolute_max_bytes),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "preferred_max_bytes",
    3,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(Orderer__BatchSize, has_preferred_max_bytes),
    offsetof(Orderer__BatchSize, preferred_max_bytes),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned orderer__batch_size__field_indices_by_name[] = {
  1,   /* field[1] = absolute_max_bytes */
  0,   /* field[0] = max_message_count */
  2,   /* field[2] = preferred_max_bytes */
};
static const ProtobufCIntRange orderer__batch_size__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 3 }
};
const ProtobufCMessageDescriptor orderer__batch_size__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "orderer.BatchSize",
  "BatchSize",
  "Orderer__BatchSize",
  "orderer",
  sizeof(Orderer__BatchSize),
  3,
  orderer__batch_size__field_descriptors,
  orderer__batch_size__field_indices_by_name,
  1,  orderer__batch_size__number_ranges,
  (ProtobufCMessageInit) orderer__batch_size__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor orderer__batch_timeout__field_descriptors[1] =
{
  {
    "timeout",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Orderer__BatchTimeout, timeout),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned orderer__batch_timeout__field_indices_by_name[] = {
  0,   /* field[0] = timeout */
};
static const ProtobufCIntRange orderer__batch_timeout__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 1 }
};
const ProtobufCMessageDescriptor orderer__batch_timeout__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "orderer.BatchTimeout",
  "BatchTimeout",
  "Orderer__BatchTimeout",
  "orderer",
  sizeof(Orderer__BatchTimeout),
  1,
  orderer__batch_timeout__field_descriptors,
  orderer__batch_timeout__field_indices_by_name,
  1,  orderer__batch_timeout__number_ranges,
  (ProtobufCMessageInit) orderer__batch_timeout__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor orderer__kafka_brokers__field_descriptors[1] =
{
  {
    "brokers",
    1,
    PROTOBUF_C_LABEL_REPEATED,
    PROTOBUF_C_TYPE_STRING,
    offsetof(Orderer__KafkaBrokers, n_brokers),
    offsetof(Orderer__KafkaBrokers, brokers),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned orderer__kafka_brokers__field_indices_by_name[] = {
  0,   /* field[0] = brokers */
};
static const ProtobufCIntRange orderer__kafka_brokers__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 1 }
};
const ProtobufCMessageDescriptor orderer__kafka_brokers__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "orderer.KafkaBrokers",
  "KafkaBrokers",
  "Orderer__KafkaBrokers",
  "orderer",
  sizeof(Orderer__KafkaBrokers),
  1,
  orderer__kafka_brokers__field_descriptors,
  orderer__kafka_brokers__field_indices_by_name,
  1,  orderer__kafka_brokers__number_ranges,
  (ProtobufCMessageInit) orderer__kafka_brokers__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor orderer__channel_restrictions__field_descriptors[1] =
{
  {
    "max_count",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT64,
    offsetof(Orderer__ChannelRestrictions, has_max_count),
    offsetof(Orderer__ChannelRestrictions, max_count),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned orderer__channel_restrictions__field_indices_by_name[] = {
  0,   /* field[0] = max_count */
};
static const ProtobufCIntRange orderer__channel_restrictions__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 1 }
};
const ProtobufCMessageDescriptor orderer__channel_restrictions__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "orderer.ChannelRestrictions",
  "ChannelRestrictions",
  "Orderer__ChannelRestrictions",
  "orderer",
  sizeof(Orderer__ChannelRestrictions),
  1,
  orderer__channel_restrictions__field_descriptors,
  orderer__channel_restrictions__field_indices_by_name,
  1,  orderer__channel_restrictions__number_ranges,
  (ProtobufCMessageInit) orderer__channel_restrictions__init,
  NULL,NULL,NULL    /* reserved[123] */
};
