github.com/igggame/nebulas-go@v2.1.0+incompatible/nbre/fs/proto/dag.pb.cc (about)

     1  // Generated by the protocol buffer compiler.  DO NOT EDIT!
     2  // source: dag.proto
     3  
     4  #include "dag.pb.h"
     5  
     6  #include <algorithm>
     7  
     8  #include <google/protobuf/stubs/common.h>
     9  #include <google/protobuf/stubs/port.h>
    10  #include <google/protobuf/io/coded_stream.h>
    11  #include <google/protobuf/wire_format_lite_inl.h>
    12  #include <google/protobuf/descriptor.h>
    13  #include <google/protobuf/generated_message_reflection.h>
    14  #include <google/protobuf/reflection_ops.h>
    15  #include <google/protobuf/wire_format.h>
    16  // This is a temporary google only hack
    17  #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
    18  #include "third_party/protobuf/version.h"
    19  #endif
    20  // @@protoc_insertion_point(includes)
    21  
    22  namespace protobuf_dag_2eproto {
    23  extern PROTOBUF_INTERNAL_EXPORT_protobuf_dag_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Node;
    24  }  // namespace protobuf_dag_2eproto
    25  namespace dagpb {
    26  class DagDefaultTypeInternal {
    27   public:
    28    ::google::protobuf::internal::ExplicitlyConstructed<Dag>
    29        _instance;
    30  } _Dag_default_instance_;
    31  class NodeDefaultTypeInternal {
    32   public:
    33    ::google::protobuf::internal::ExplicitlyConstructed<Node>
    34        _instance;
    35  } _Node_default_instance_;
    36  }  // namespace dagpb
    37  namespace protobuf_dag_2eproto {
    38  static void InitDefaultsDag() {
    39    GOOGLE_PROTOBUF_VERIFY_VERSION;
    40  
    41    {
    42      void* ptr = &::dagpb::_Dag_default_instance_;
    43      new (ptr) ::dagpb::Dag();
    44      ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
    45    }
    46    ::dagpb::Dag::InitAsDefaultInstance();
    47  }
    48  
    49  ::google::protobuf::internal::SCCInfo<1> scc_info_Dag =
    50      {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDag}, {
    51        &protobuf_dag_2eproto::scc_info_Node.base,}};
    52  
    53  static void InitDefaultsNode() {
    54    GOOGLE_PROTOBUF_VERIFY_VERSION;
    55  
    56    {
    57      void* ptr = &::dagpb::_Node_default_instance_;
    58      new (ptr) ::dagpb::Node();
    59      ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
    60    }
    61    ::dagpb::Node::InitAsDefaultInstance();
    62  }
    63  
    64  ::google::protobuf::internal::SCCInfo<0> scc_info_Node =
    65      {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNode}, {}};
    66  
    67  void InitDefaults() {
    68    ::google::protobuf::internal::InitSCC(&scc_info_Dag.base);
    69    ::google::protobuf::internal::InitSCC(&scc_info_Node.base);
    70  }
    71  
    72  ::google::protobuf::Metadata file_level_metadata[2];
    73  
    74  const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
    75    ~0u,  // no _has_bits_
    76    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dagpb::Dag, _internal_metadata_),
    77    ~0u,  // no _extensions_
    78    ~0u,  // no _oneof_case_
    79    ~0u,  // no _weak_field_map_
    80    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dagpb::Dag, nodes_),
    81    ~0u,  // no _has_bits_
    82    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dagpb::Node, _internal_metadata_),
    83    ~0u,  // no _extensions_
    84    ~0u,  // no _oneof_case_
    85    ~0u,  // no _weak_field_map_
    86    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dagpb::Node, key_),
    87    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dagpb::Node, index_),
    88    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dagpb::Node, children_),
    89  };
    90  static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
    91    { 0, -1, sizeof(::dagpb::Dag)},
    92    { 6, -1, sizeof(::dagpb::Node)},
    93  };
    94  
    95  static ::google::protobuf::Message const * const file_default_instances[] = {
    96    reinterpret_cast<const ::google::protobuf::Message*>(&::dagpb::_Dag_default_instance_),
    97    reinterpret_cast<const ::google::protobuf::Message*>(&::dagpb::_Node_default_instance_),
    98  };
    99  
   100  void protobuf_AssignDescriptors() {
   101    AddDescriptors();
   102    AssignDescriptors(
   103        "dag.proto", schemas, file_default_instances, TableStruct::offsets,
   104        file_level_metadata, NULL, NULL);
   105  }
   106  
   107  void protobuf_AssignDescriptorsOnce() {
   108    static ::google::protobuf::internal::once_flag once;
   109    ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
   110  }
   111  
   112  void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
   113  void protobuf_RegisterTypes(const ::std::string&) {
   114    protobuf_AssignDescriptorsOnce();
   115    ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
   116  }
   117  
   118  void AddDescriptorsImpl() {
   119    InitDefaults();
   120    static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
   121        "\n\tdag.proto\022\005dagpb\"!\n\003Dag\022\032\n\005Nodes\030\001 \003(\013"
   122        "2\013.dagpb.Node\"4\n\004Node\022\013\n\003Key\030\001 \001(\t\022\r\n\005In"
   123        "dex\030\002 \001(\005\022\020\n\010Children\030\003 \003(\005b\006proto3"
   124    };
   125    ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
   126        descriptor, 115);
   127    ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
   128      "dag.proto", &protobuf_RegisterTypes);
   129  }
   130  
   131  void AddDescriptors() {
   132    static ::google::protobuf::internal::once_flag once;
   133    ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
   134  }
   135  // Force AddDescriptors() to be called at dynamic initialization time.
   136  struct StaticDescriptorInitializer {
   137    StaticDescriptorInitializer() {
   138      AddDescriptors();
   139    }
   140  } static_descriptor_initializer;
   141  }  // namespace protobuf_dag_2eproto
   142  namespace dagpb {
   143  
   144  // ===================================================================
   145  
   146  void Dag::InitAsDefaultInstance() {
   147  }
   148  #if !defined(_MSC_VER) || _MSC_VER >= 1900
   149  const int Dag::kNodesFieldNumber;
   150  #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
   151  
   152  Dag::Dag()
   153    : ::google::protobuf::Message(), _internal_metadata_(NULL) {
   154    ::google::protobuf::internal::InitSCC(
   155        &protobuf_dag_2eproto::scc_info_Dag.base);
   156    SharedCtor();
   157    // @@protoc_insertion_point(constructor:dagpb.Dag)
   158  }
   159  Dag::Dag(const Dag& from)
   160    : ::google::protobuf::Message(),
   161        _internal_metadata_(NULL),
   162        nodes_(from.nodes_) {
   163    _internal_metadata_.MergeFrom(from._internal_metadata_);
   164    // @@protoc_insertion_point(copy_constructor:dagpb.Dag)
   165  }
   166  
   167  void Dag::SharedCtor() {
   168  }
   169  
   170  Dag::~Dag() {
   171    // @@protoc_insertion_point(destructor:dagpb.Dag)
   172    SharedDtor();
   173  }
   174  
   175  void Dag::SharedDtor() {
   176  }
   177  
   178  void Dag::SetCachedSize(int size) const {
   179    _cached_size_.Set(size);
   180  }
   181  const ::google::protobuf::Descriptor* Dag::descriptor() {
   182    ::protobuf_dag_2eproto::protobuf_AssignDescriptorsOnce();
   183    return ::protobuf_dag_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
   184  }
   185  
   186  const Dag& Dag::default_instance() {
   187    ::google::protobuf::internal::InitSCC(&protobuf_dag_2eproto::scc_info_Dag.base);
   188    return *internal_default_instance();
   189  }
   190  
   191  
   192  void Dag::Clear() {
   193  // @@protoc_insertion_point(message_clear_start:dagpb.Dag)
   194    ::google::protobuf::uint32 cached_has_bits = 0;
   195    // Prevent compiler warnings about cached_has_bits being unused
   196    (void) cached_has_bits;
   197  
   198    nodes_.Clear();
   199    _internal_metadata_.Clear();
   200  }
   201  
   202  bool Dag::MergePartialFromCodedStream(
   203      ::google::protobuf::io::CodedInputStream* input) {
   204  #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
   205    ::google::protobuf::uint32 tag;
   206    // @@protoc_insertion_point(parse_start:dagpb.Dag)
   207    for (;;) {
   208      ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
   209      tag = p.first;
   210      if (!p.second) goto handle_unusual;
   211      switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
   212        // repeated .dagpb.Node Nodes = 1;
   213        case 1: {
   214          if (static_cast< ::google::protobuf::uint8>(tag) ==
   215              static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
   216            DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
   217                  input, add_nodes()));
   218          } else {
   219            goto handle_unusual;
   220          }
   221          break;
   222        }
   223  
   224        default: {
   225        handle_unusual:
   226          if (tag == 0) {
   227            goto success;
   228          }
   229          DO_(::google::protobuf::internal::WireFormat::SkipField(
   230                input, tag, _internal_metadata_.mutable_unknown_fields()));
   231          break;
   232        }
   233      }
   234    }
   235  success:
   236    // @@protoc_insertion_point(parse_success:dagpb.Dag)
   237    return true;
   238  failure:
   239    // @@protoc_insertion_point(parse_failure:dagpb.Dag)
   240    return false;
   241  #undef DO_
   242  }
   243  
   244  void Dag::SerializeWithCachedSizes(
   245      ::google::protobuf::io::CodedOutputStream* output) const {
   246    // @@protoc_insertion_point(serialize_start:dagpb.Dag)
   247    ::google::protobuf::uint32 cached_has_bits = 0;
   248    (void) cached_has_bits;
   249  
   250    // repeated .dagpb.Node Nodes = 1;
   251    for (unsigned int i = 0,
   252        n = static_cast<unsigned int>(this->nodes_size()); i < n; i++) {
   253      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
   254        1,
   255        this->nodes(static_cast<int>(i)),
   256        output);
   257    }
   258  
   259    if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
   260      ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
   261          (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
   262    }
   263    // @@protoc_insertion_point(serialize_end:dagpb.Dag)
   264  }
   265  
   266  ::google::protobuf::uint8* Dag::InternalSerializeWithCachedSizesToArray(
   267      bool deterministic, ::google::protobuf::uint8* target) const {
   268    (void)deterministic; // Unused
   269    // @@protoc_insertion_point(serialize_to_array_start:dagpb.Dag)
   270    ::google::protobuf::uint32 cached_has_bits = 0;
   271    (void) cached_has_bits;
   272  
   273    // repeated .dagpb.Node Nodes = 1;
   274    for (unsigned int i = 0,
   275        n = static_cast<unsigned int>(this->nodes_size()); i < n; i++) {
   276      target = ::google::protobuf::internal::WireFormatLite::
   277        InternalWriteMessageToArray(
   278          1, this->nodes(static_cast<int>(i)), deterministic, target);
   279    }
   280  
   281    if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
   282      target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
   283          (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
   284    }
   285    // @@protoc_insertion_point(serialize_to_array_end:dagpb.Dag)
   286    return target;
   287  }
   288  
   289  size_t Dag::ByteSizeLong() const {
   290  // @@protoc_insertion_point(message_byte_size_start:dagpb.Dag)
   291    size_t total_size = 0;
   292  
   293    if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
   294      total_size +=
   295        ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
   296          (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
   297    }
   298    // repeated .dagpb.Node Nodes = 1;
   299    {
   300      unsigned int count = static_cast<unsigned int>(this->nodes_size());
   301      total_size += 1UL * count;
   302      for (unsigned int i = 0; i < count; i++) {
   303        total_size +=
   304          ::google::protobuf::internal::WireFormatLite::MessageSize(
   305            this->nodes(static_cast<int>(i)));
   306      }
   307    }
   308  
   309    int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
   310    SetCachedSize(cached_size);
   311    return total_size;
   312  }
   313  
   314  void Dag::MergeFrom(const ::google::protobuf::Message& from) {
   315  // @@protoc_insertion_point(generalized_merge_from_start:dagpb.Dag)
   316    GOOGLE_DCHECK_NE(&from, this);
   317    const Dag* source =
   318        ::google::protobuf::internal::DynamicCastToGenerated<const Dag>(
   319            &from);
   320    if (source == NULL) {
   321    // @@protoc_insertion_point(generalized_merge_from_cast_fail:dagpb.Dag)
   322      ::google::protobuf::internal::ReflectionOps::Merge(from, this);
   323    } else {
   324    // @@protoc_insertion_point(generalized_merge_from_cast_success:dagpb.Dag)
   325      MergeFrom(*source);
   326    }
   327  }
   328  
   329  void Dag::MergeFrom(const Dag& from) {
   330  // @@protoc_insertion_point(class_specific_merge_from_start:dagpb.Dag)
   331    GOOGLE_DCHECK_NE(&from, this);
   332    _internal_metadata_.MergeFrom(from._internal_metadata_);
   333    ::google::protobuf::uint32 cached_has_bits = 0;
   334    (void) cached_has_bits;
   335  
   336    nodes_.MergeFrom(from.nodes_);
   337  }
   338  
   339  void Dag::CopyFrom(const ::google::protobuf::Message& from) {
   340  // @@protoc_insertion_point(generalized_copy_from_start:dagpb.Dag)
   341    if (&from == this) return;
   342    Clear();
   343    MergeFrom(from);
   344  }
   345  
   346  void Dag::CopyFrom(const Dag& from) {
   347  // @@protoc_insertion_point(class_specific_copy_from_start:dagpb.Dag)
   348    if (&from == this) return;
   349    Clear();
   350    MergeFrom(from);
   351  }
   352  
   353  bool Dag::IsInitialized() const {
   354    return true;
   355  }
   356  
   357  void Dag::Swap(Dag* other) {
   358    if (other == this) return;
   359    InternalSwap(other);
   360  }
   361  void Dag::InternalSwap(Dag* other) {
   362    using std::swap;
   363    CastToBase(&nodes_)->InternalSwap(CastToBase(&other->nodes_));
   364    _internal_metadata_.Swap(&other->_internal_metadata_);
   365  }
   366  
   367  ::google::protobuf::Metadata Dag::GetMetadata() const {
   368    protobuf_dag_2eproto::protobuf_AssignDescriptorsOnce();
   369    return ::protobuf_dag_2eproto::file_level_metadata[kIndexInFileMessages];
   370  }
   371  
   372  
   373  // ===================================================================
   374  
   375  void Node::InitAsDefaultInstance() {
   376  }
   377  #if !defined(_MSC_VER) || _MSC_VER >= 1900
   378  const int Node::kKeyFieldNumber;
   379  const int Node::kIndexFieldNumber;
   380  const int Node::kChildrenFieldNumber;
   381  #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
   382  
   383  Node::Node()
   384    : ::google::protobuf::Message(), _internal_metadata_(NULL) {
   385    ::google::protobuf::internal::InitSCC(
   386        &protobuf_dag_2eproto::scc_info_Node.base);
   387    SharedCtor();
   388    // @@protoc_insertion_point(constructor:dagpb.Node)
   389  }
   390  Node::Node(const Node& from)
   391    : ::google::protobuf::Message(),
   392        _internal_metadata_(NULL),
   393        children_(from.children_) {
   394    _internal_metadata_.MergeFrom(from._internal_metadata_);
   395    key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   396    if (from.key().size() > 0) {
   397      key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
   398    }
   399    index_ = from.index_;
   400    // @@protoc_insertion_point(copy_constructor:dagpb.Node)
   401  }
   402  
   403  void Node::SharedCtor() {
   404    key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   405    index_ = 0;
   406  }
   407  
   408  Node::~Node() {
   409    // @@protoc_insertion_point(destructor:dagpb.Node)
   410    SharedDtor();
   411  }
   412  
   413  void Node::SharedDtor() {
   414    key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   415  }
   416  
   417  void Node::SetCachedSize(int size) const {
   418    _cached_size_.Set(size);
   419  }
   420  const ::google::protobuf::Descriptor* Node::descriptor() {
   421    ::protobuf_dag_2eproto::protobuf_AssignDescriptorsOnce();
   422    return ::protobuf_dag_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
   423  }
   424  
   425  const Node& Node::default_instance() {
   426    ::google::protobuf::internal::InitSCC(&protobuf_dag_2eproto::scc_info_Node.base);
   427    return *internal_default_instance();
   428  }
   429  
   430  
   431  void Node::Clear() {
   432  // @@protoc_insertion_point(message_clear_start:dagpb.Node)
   433    ::google::protobuf::uint32 cached_has_bits = 0;
   434    // Prevent compiler warnings about cached_has_bits being unused
   435    (void) cached_has_bits;
   436  
   437    children_.Clear();
   438    key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   439    index_ = 0;
   440    _internal_metadata_.Clear();
   441  }
   442  
   443  bool Node::MergePartialFromCodedStream(
   444      ::google::protobuf::io::CodedInputStream* input) {
   445  #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
   446    ::google::protobuf::uint32 tag;
   447    // @@protoc_insertion_point(parse_start:dagpb.Node)
   448    for (;;) {
   449      ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
   450      tag = p.first;
   451      if (!p.second) goto handle_unusual;
   452      switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
   453        // string Key = 1;
   454        case 1: {
   455          if (static_cast< ::google::protobuf::uint8>(tag) ==
   456              static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
   457            DO_(::google::protobuf::internal::WireFormatLite::ReadString(
   458                  input, this->mutable_key()));
   459            DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   460              this->key().data(), static_cast<int>(this->key().length()),
   461              ::google::protobuf::internal::WireFormatLite::PARSE,
   462              "dagpb.Node.Key"));
   463          } else {
   464            goto handle_unusual;
   465          }
   466          break;
   467        }
   468  
   469        // int32 Index = 2;
   470        case 2: {
   471          if (static_cast< ::google::protobuf::uint8>(tag) ==
   472              static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
   473  
   474            DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
   475                     ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
   476                   input, &index_)));
   477          } else {
   478            goto handle_unusual;
   479          }
   480          break;
   481        }
   482  
   483        // repeated int32 Children = 3;
   484        case 3: {
   485          if (static_cast< ::google::protobuf::uint8>(tag) ==
   486              static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
   487            DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
   488                     ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
   489                   input, this->mutable_children())));
   490          } else if (
   491              static_cast< ::google::protobuf::uint8>(tag) ==
   492              static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
   493            DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
   494                     ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
   495                   1, 26u, input, this->mutable_children())));
   496          } else {
   497            goto handle_unusual;
   498          }
   499          break;
   500        }
   501  
   502        default: {
   503        handle_unusual:
   504          if (tag == 0) {
   505            goto success;
   506          }
   507          DO_(::google::protobuf::internal::WireFormat::SkipField(
   508                input, tag, _internal_metadata_.mutable_unknown_fields()));
   509          break;
   510        }
   511      }
   512    }
   513  success:
   514    // @@protoc_insertion_point(parse_success:dagpb.Node)
   515    return true;
   516  failure:
   517    // @@protoc_insertion_point(parse_failure:dagpb.Node)
   518    return false;
   519  #undef DO_
   520  }
   521  
   522  void Node::SerializeWithCachedSizes(
   523      ::google::protobuf::io::CodedOutputStream* output) const {
   524    // @@protoc_insertion_point(serialize_start:dagpb.Node)
   525    ::google::protobuf::uint32 cached_has_bits = 0;
   526    (void) cached_has_bits;
   527  
   528    // string Key = 1;
   529    if (this->key().size() > 0) {
   530      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   531        this->key().data(), static_cast<int>(this->key().length()),
   532        ::google::protobuf::internal::WireFormatLite::SERIALIZE,
   533        "dagpb.Node.Key");
   534      ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
   535        1, this->key(), output);
   536    }
   537  
   538    // int32 Index = 2;
   539    if (this->index() != 0) {
   540      ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->index(), output);
   541    }
   542  
   543    // repeated int32 Children = 3;
   544    if (this->children_size() > 0) {
   545      ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
   546      output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
   547          _children_cached_byte_size_));
   548    }
   549    for (int i = 0, n = this->children_size(); i < n; i++) {
   550      ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
   551        this->children(i), output);
   552    }
   553  
   554    if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
   555      ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
   556          (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
   557    }
   558    // @@protoc_insertion_point(serialize_end:dagpb.Node)
   559  }
   560  
   561  ::google::protobuf::uint8* Node::InternalSerializeWithCachedSizesToArray(
   562      bool deterministic, ::google::protobuf::uint8* target) const {
   563    (void)deterministic; // Unused
   564    // @@protoc_insertion_point(serialize_to_array_start:dagpb.Node)
   565    ::google::protobuf::uint32 cached_has_bits = 0;
   566    (void) cached_has_bits;
   567  
   568    // string Key = 1;
   569    if (this->key().size() > 0) {
   570      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   571        this->key().data(), static_cast<int>(this->key().length()),
   572        ::google::protobuf::internal::WireFormatLite::SERIALIZE,
   573        "dagpb.Node.Key");
   574      target =
   575        ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
   576          1, this->key(), target);
   577    }
   578  
   579    // int32 Index = 2;
   580    if (this->index() != 0) {
   581      target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->index(), target);
   582    }
   583  
   584    // repeated int32 Children = 3;
   585    if (this->children_size() > 0) {
   586      target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
   587        3,
   588        ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
   589        target);
   590      target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
   591          static_cast< ::google::protobuf::int32>(
   592              _children_cached_byte_size_), target);
   593      target = ::google::protobuf::internal::WireFormatLite::
   594        WriteInt32NoTagToArray(this->children_, target);
   595    }
   596  
   597    if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
   598      target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
   599          (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
   600    }
   601    // @@protoc_insertion_point(serialize_to_array_end:dagpb.Node)
   602    return target;
   603  }
   604  
   605  size_t Node::ByteSizeLong() const {
   606  // @@protoc_insertion_point(message_byte_size_start:dagpb.Node)
   607    size_t total_size = 0;
   608  
   609    if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
   610      total_size +=
   611        ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
   612          (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
   613    }
   614    // repeated int32 Children = 3;
   615    {
   616      size_t data_size = ::google::protobuf::internal::WireFormatLite::
   617        Int32Size(this->children_);
   618      if (data_size > 0) {
   619        total_size += 1 +
   620          ::google::protobuf::internal::WireFormatLite::Int32Size(
   621              static_cast< ::google::protobuf::int32>(data_size));
   622      }
   623      int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
   624      GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
   625      _children_cached_byte_size_ = cached_size;
   626      GOOGLE_SAFE_CONCURRENT_WRITES_END();
   627      total_size += data_size;
   628    }
   629  
   630    // string Key = 1;
   631    if (this->key().size() > 0) {
   632      total_size += 1 +
   633        ::google::protobuf::internal::WireFormatLite::StringSize(
   634          this->key());
   635    }
   636  
   637    // int32 Index = 2;
   638    if (this->index() != 0) {
   639      total_size += 1 +
   640        ::google::protobuf::internal::WireFormatLite::Int32Size(
   641          this->index());
   642    }
   643  
   644    int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
   645    SetCachedSize(cached_size);
   646    return total_size;
   647  }
   648  
   649  void Node::MergeFrom(const ::google::protobuf::Message& from) {
   650  // @@protoc_insertion_point(generalized_merge_from_start:dagpb.Node)
   651    GOOGLE_DCHECK_NE(&from, this);
   652    const Node* source =
   653        ::google::protobuf::internal::DynamicCastToGenerated<const Node>(
   654            &from);
   655    if (source == NULL) {
   656    // @@protoc_insertion_point(generalized_merge_from_cast_fail:dagpb.Node)
   657      ::google::protobuf::internal::ReflectionOps::Merge(from, this);
   658    } else {
   659    // @@protoc_insertion_point(generalized_merge_from_cast_success:dagpb.Node)
   660      MergeFrom(*source);
   661    }
   662  }
   663  
   664  void Node::MergeFrom(const Node& from) {
   665  // @@protoc_insertion_point(class_specific_merge_from_start:dagpb.Node)
   666    GOOGLE_DCHECK_NE(&from, this);
   667    _internal_metadata_.MergeFrom(from._internal_metadata_);
   668    ::google::protobuf::uint32 cached_has_bits = 0;
   669    (void) cached_has_bits;
   670  
   671    children_.MergeFrom(from.children_);
   672    if (from.key().size() > 0) {
   673  
   674      key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
   675    }
   676    if (from.index() != 0) {
   677      set_index(from.index());
   678    }
   679  }
   680  
   681  void Node::CopyFrom(const ::google::protobuf::Message& from) {
   682  // @@protoc_insertion_point(generalized_copy_from_start:dagpb.Node)
   683    if (&from == this) return;
   684    Clear();
   685    MergeFrom(from);
   686  }
   687  
   688  void Node::CopyFrom(const Node& from) {
   689  // @@protoc_insertion_point(class_specific_copy_from_start:dagpb.Node)
   690    if (&from == this) return;
   691    Clear();
   692    MergeFrom(from);
   693  }
   694  
   695  bool Node::IsInitialized() const {
   696    return true;
   697  }
   698  
   699  void Node::Swap(Node* other) {
   700    if (other == this) return;
   701    InternalSwap(other);
   702  }
   703  void Node::InternalSwap(Node* other) {
   704    using std::swap;
   705    children_.InternalSwap(&other->children_);
   706    key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
   707      GetArenaNoVirtual());
   708    swap(index_, other->index_);
   709    _internal_metadata_.Swap(&other->_internal_metadata_);
   710  }
   711  
   712  ::google::protobuf::Metadata Node::GetMetadata() const {
   713    protobuf_dag_2eproto::protobuf_AssignDescriptorsOnce();
   714    return ::protobuf_dag_2eproto::file_level_metadata[kIndexInFileMessages];
   715  }
   716  
   717  
   718  // @@protoc_insertion_point(namespace_scope)
   719  }  // namespace dagpb
   720  namespace google {
   721  namespace protobuf {
   722  template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dagpb::Dag* Arena::CreateMaybeMessage< ::dagpb::Dag >(Arena* arena) {
   723    return Arena::CreateInternal< ::dagpb::Dag >(arena);
   724  }
   725  template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dagpb::Node* Arena::CreateMaybeMessage< ::dagpb::Node >(Arena* arena) {
   726    return Arena::CreateInternal< ::dagpb::Node >(arena);
   727  }
   728  }  // namespace protobuf
   729  }  // namespace google
   730  
   731  // @@protoc_insertion_point(global_scope)