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

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

#include "contract.pb-c.h"
void   common__invocation__init
                     (Common__Invocation         *message)
{
  static const Common__Invocation init_value = COMMON__INVOCATION__INIT;
  *message = init_value;
}
size_t common__invocation__get_packed_size
                     (const Common__Invocation *message)
{
  assert(message->base.descriptor == &common__invocation__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t common__invocation__pack
                     (const Common__Invocation *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &common__invocation__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t common__invocation__pack_to_buffer
                     (const Common__Invocation *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &common__invocation__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Common__Invocation *
       common__invocation__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Common__Invocation *)
     protobuf_c_message_unpack (&common__invocation__descriptor,
                                allocator, len, data);
}
void   common__invocation__free_unpacked
                     (Common__Invocation *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &common__invocation__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void   common__contract_invocation__init
                     (Common__ContractInvocation         *message)
{
  static const Common__ContractInvocation init_value = COMMON__CONTRACT_INVOCATION__INIT;
  *message = init_value;
}
size_t common__contract_invocation__get_packed_size
                     (const Common__ContractInvocation *message)
{
  assert(message->base.descriptor == &common__contract_invocation__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t common__contract_invocation__pack
                     (const Common__ContractInvocation *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &common__contract_invocation__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t common__contract_invocation__pack_to_buffer
                     (const Common__ContractInvocation *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &common__contract_invocation__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Common__ContractInvocation *
       common__contract_invocation__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Common__ContractInvocation *)
     protobuf_c_message_unpack (&common__contract_invocation__descriptor,
                                allocator, len, data);
}
void   common__contract_invocation__free_unpacked
                     (Common__ContractInvocation *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &common__contract_invocation__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor common__invocation__field_descriptors[2] =
{
  {
    "header",
    1,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_MESSAGE,
    0,   /* quantifier_offset */
    offsetof(Common__Invocation, header),
    &common__tx_header__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "parameters",
    2,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_MESSAGE,
    0,   /* quantifier_offset */
    offsetof(Common__Invocation, parameters),
    &common__contract_invocation__descriptor,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned common__invocation__field_indices_by_name[] = {
  0,   /* field[0] = header */
  1,   /* field[1] = parameters */
};
static const ProtobufCIntRange common__invocation__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 2 }
};
const ProtobufCMessageDescriptor common__invocation__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "common.Invocation",
  "Invocation",
  "Common__Invocation",
  "common",
  sizeof(Common__Invocation),
  2,
  common__invocation__field_descriptors,
  common__invocation__field_indices_by_name,
  1,  common__invocation__number_ranges,
  (ProtobufCMessageInit) common__invocation__init,
  NULL,NULL,NULL    /* reserved[123] */
};
static const ProtobufCFieldDescriptor common__contract_invocation__field_descriptors[5] =
{
  {
    "contract_name",
    1,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Common__ContractInvocation, contract_name),
    NULL,
    &protobuf_c_empty_string,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "func_name",
    2,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Common__ContractInvocation, func_name),
    NULL,
    &protobuf_c_empty_string,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "args",
    3,
    PROTOBUF_C_LABEL_REPEATED,
    PROTOBUF_C_TYPE_BYTES,
    offsetof(Common__ContractInvocation, n_args),
    offsetof(Common__ContractInvocation, args),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "encryptedKey",
    4,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_BYTES,
    0,   /* quantifier_offset */
    offsetof(Common__ContractInvocation, encryptedkey),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "is_compressed",
    5,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_BOOL,
    0,   /* quantifier_offset */
    offsetof(Common__ContractInvocation, is_compressed),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned common__contract_invocation__field_indices_by_name[] = {
  2,   /* field[2] = args */
  0,   /* field[0] = contract_name */
  3,   /* field[3] = encryptedKey */
  1,   /* field[1] = func_name */
  4,   /* field[4] = is_compressed */
};
static const ProtobufCIntRange common__contract_invocation__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 5 }
};
const ProtobufCMessageDescriptor common__contract_invocation__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "common.ContractInvocation",
  "ContractInvocation",
  "Common__ContractInvocation",
  "common",
  sizeof(Common__ContractInvocation),
  5,
  common__contract_invocation__field_descriptors,
  common__contract_invocation__field_indices_by_name,
  1,  common__contract_invocation__number_ranges,
  (ProtobufCMessageInit) common__contract_invocation__init,
  NULL,NULL,NULL    /* reserved[123] */
};
