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

     1  // Generated by the protocol buffer compiler.  DO NOT EDIT!
     2  // source: trie.proto
     3  
     4  #include "trie.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 triepb {
    23  class NodeDefaultTypeInternal {
    24   public:
    25    ::google::protobuf::internal::ExplicitlyConstructed<Node>
    26        _instance;
    27  } _Node_default_instance_;
    28  }  // namespace triepb
    29  namespace protobuf_trie_2eproto {
    30  static void InitDefaultsNode() {
    31    GOOGLE_PROTOBUF_VERIFY_VERSION;
    32  
    33    {
    34      void* ptr = &::triepb::_Node_default_instance_;
    35      new (ptr) ::triepb::Node();
    36      ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
    37    }
    38    ::triepb::Node::InitAsDefaultInstance();
    39  }
    40  
    41  ::google::protobuf::internal::SCCInfo<0> scc_info_Node =
    42      {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNode}, {}};
    43  
    44  void InitDefaults() {
    45    ::google::protobuf::internal::InitSCC(&scc_info_Node.base);
    46  }
    47  
    48  ::google::protobuf::Metadata file_level_metadata[1];
    49  
    50  const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
    51    ~0u,  // no _has_bits_
    52    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::triepb::Node, _internal_metadata_),
    53    ~0u,  // no _extensions_
    54    ~0u,  // no _oneof_case_
    55    ~0u,  // no _weak_field_map_
    56    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::triepb::Node, val_),
    57  };
    58  static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
    59    { 0, -1, sizeof(::triepb::Node)},
    60  };
    61  
    62  static ::google::protobuf::Message const * const file_default_instances[] = {
    63    reinterpret_cast<const ::google::protobuf::Message*>(&::triepb::_Node_default_instance_),
    64  };
    65  
    66  void protobuf_AssignDescriptors() {
    67    AddDescriptors();
    68    AssignDescriptors(
    69        "trie.proto", schemas, file_default_instances, TableStruct::offsets,
    70        file_level_metadata, NULL, NULL);
    71  }
    72  
    73  void protobuf_AssignDescriptorsOnce() {
    74    static ::google::protobuf::internal::once_flag once;
    75    ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
    76  }
    77  
    78  void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
    79  void protobuf_RegisterTypes(const ::std::string&) {
    80    protobuf_AssignDescriptorsOnce();
    81    ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
    82  }
    83  
    84  void AddDescriptorsImpl() {
    85    InitDefaults();
    86    static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
    87        "\n\ntrie.proto\022\006triepb\"\023\n\004Node\022\013\n\003val\030\001 \003("
    88        "\014b\006proto3"
    89    };
    90    ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    91        descriptor, 49);
    92    ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    93      "trie.proto", &protobuf_RegisterTypes);
    94  }
    95  
    96  void AddDescriptors() {
    97    static ::google::protobuf::internal::once_flag once;
    98    ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
    99  }
   100  // Force AddDescriptors() to be called at dynamic initialization time.
   101  struct StaticDescriptorInitializer {
   102    StaticDescriptorInitializer() {
   103      AddDescriptors();
   104    }
   105  } static_descriptor_initializer;
   106  }  // namespace protobuf_trie_2eproto
   107  namespace triepb {
   108  
   109  // ===================================================================
   110  
   111  void Node::InitAsDefaultInstance() {
   112  }
   113  #if !defined(_MSC_VER) || _MSC_VER >= 1900
   114  const int Node::kValFieldNumber;
   115  #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
   116  
   117  Node::Node()
   118    : ::google::protobuf::Message(), _internal_metadata_(NULL) {
   119    ::google::protobuf::internal::InitSCC(
   120        &protobuf_trie_2eproto::scc_info_Node.base);
   121    SharedCtor();
   122    // @@protoc_insertion_point(constructor:triepb.Node)
   123  }
   124  Node::Node(const Node& from)
   125    : ::google::protobuf::Message(),
   126        _internal_metadata_(NULL),
   127        val_(from.val_) {
   128    _internal_metadata_.MergeFrom(from._internal_metadata_);
   129    // @@protoc_insertion_point(copy_constructor:triepb.Node)
   130  }
   131  
   132  void Node::SharedCtor() {
   133  }
   134  
   135  Node::~Node() {
   136    // @@protoc_insertion_point(destructor:triepb.Node)
   137    SharedDtor();
   138  }
   139  
   140  void Node::SharedDtor() {
   141  }
   142  
   143  void Node::SetCachedSize(int size) const {
   144    _cached_size_.Set(size);
   145  }
   146  const ::google::protobuf::Descriptor* Node::descriptor() {
   147    ::protobuf_trie_2eproto::protobuf_AssignDescriptorsOnce();
   148    return ::protobuf_trie_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
   149  }
   150  
   151  const Node& Node::default_instance() {
   152    ::google::protobuf::internal::InitSCC(&protobuf_trie_2eproto::scc_info_Node.base);
   153    return *internal_default_instance();
   154  }
   155  
   156  
   157  void Node::Clear() {
   158  // @@protoc_insertion_point(message_clear_start:triepb.Node)
   159    ::google::protobuf::uint32 cached_has_bits = 0;
   160    // Prevent compiler warnings about cached_has_bits being unused
   161    (void) cached_has_bits;
   162  
   163    val_.Clear();
   164    _internal_metadata_.Clear();
   165  }
   166  
   167  bool Node::MergePartialFromCodedStream(
   168      ::google::protobuf::io::CodedInputStream* input) {
   169  #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
   170    ::google::protobuf::uint32 tag;
   171    // @@protoc_insertion_point(parse_start:triepb.Node)
   172    for (;;) {
   173      ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
   174      tag = p.first;
   175      if (!p.second) goto handle_unusual;
   176      switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
   177        // repeated bytes val = 1;
   178        case 1: {
   179          if (static_cast< ::google::protobuf::uint8>(tag) ==
   180              static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
   181            DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
   182                  input, this->add_val()));
   183          } else {
   184            goto handle_unusual;
   185          }
   186          break;
   187        }
   188  
   189        default: {
   190        handle_unusual:
   191          if (tag == 0) {
   192            goto success;
   193          }
   194          DO_(::google::protobuf::internal::WireFormat::SkipField(
   195                input, tag, _internal_metadata_.mutable_unknown_fields()));
   196          break;
   197        }
   198      }
   199    }
   200  success:
   201    // @@protoc_insertion_point(parse_success:triepb.Node)
   202    return true;
   203  failure:
   204    // @@protoc_insertion_point(parse_failure:triepb.Node)
   205    return false;
   206  #undef DO_
   207  }
   208  
   209  void Node::SerializeWithCachedSizes(
   210      ::google::protobuf::io::CodedOutputStream* output) const {
   211    // @@protoc_insertion_point(serialize_start:triepb.Node)
   212    ::google::protobuf::uint32 cached_has_bits = 0;
   213    (void) cached_has_bits;
   214  
   215    // repeated bytes val = 1;
   216    for (int i = 0, n = this->val_size(); i < n; i++) {
   217      ::google::protobuf::internal::WireFormatLite::WriteBytes(
   218        1, this->val(i), output);
   219    }
   220  
   221    if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
   222      ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
   223          (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
   224    }
   225    // @@protoc_insertion_point(serialize_end:triepb.Node)
   226  }
   227  
   228  ::google::protobuf::uint8* Node::InternalSerializeWithCachedSizesToArray(
   229      bool deterministic, ::google::protobuf::uint8* target) const {
   230    (void)deterministic; // Unused
   231    // @@protoc_insertion_point(serialize_to_array_start:triepb.Node)
   232    ::google::protobuf::uint32 cached_has_bits = 0;
   233    (void) cached_has_bits;
   234  
   235    // repeated bytes val = 1;
   236    for (int i = 0, n = this->val_size(); i < n; i++) {
   237      target = ::google::protobuf::internal::WireFormatLite::
   238        WriteBytesToArray(1, this->val(i), target);
   239    }
   240  
   241    if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
   242      target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
   243          (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
   244    }
   245    // @@protoc_insertion_point(serialize_to_array_end:triepb.Node)
   246    return target;
   247  }
   248  
   249  size_t Node::ByteSizeLong() const {
   250  // @@protoc_insertion_point(message_byte_size_start:triepb.Node)
   251    size_t total_size = 0;
   252  
   253    if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
   254      total_size +=
   255        ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
   256          (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
   257    }
   258    // repeated bytes val = 1;
   259    total_size += 1 *
   260        ::google::protobuf::internal::FromIntSize(this->val_size());
   261    for (int i = 0, n = this->val_size(); i < n; i++) {
   262      total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
   263        this->val(i));
   264    }
   265  
   266    int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
   267    SetCachedSize(cached_size);
   268    return total_size;
   269  }
   270  
   271  void Node::MergeFrom(const ::google::protobuf::Message& from) {
   272  // @@protoc_insertion_point(generalized_merge_from_start:triepb.Node)
   273    GOOGLE_DCHECK_NE(&from, this);
   274    const Node* source =
   275        ::google::protobuf::internal::DynamicCastToGenerated<const Node>(
   276            &from);
   277    if (source == NULL) {
   278    // @@protoc_insertion_point(generalized_merge_from_cast_fail:triepb.Node)
   279      ::google::protobuf::internal::ReflectionOps::Merge(from, this);
   280    } else {
   281    // @@protoc_insertion_point(generalized_merge_from_cast_success:triepb.Node)
   282      MergeFrom(*source);
   283    }
   284  }
   285  
   286  void Node::MergeFrom(const Node& from) {
   287  // @@protoc_insertion_point(class_specific_merge_from_start:triepb.Node)
   288    GOOGLE_DCHECK_NE(&from, this);
   289    _internal_metadata_.MergeFrom(from._internal_metadata_);
   290    ::google::protobuf::uint32 cached_has_bits = 0;
   291    (void) cached_has_bits;
   292  
   293    val_.MergeFrom(from.val_);
   294  }
   295  
   296  void Node::CopyFrom(const ::google::protobuf::Message& from) {
   297  // @@protoc_insertion_point(generalized_copy_from_start:triepb.Node)
   298    if (&from == this) return;
   299    Clear();
   300    MergeFrom(from);
   301  }
   302  
   303  void Node::CopyFrom(const Node& from) {
   304  // @@protoc_insertion_point(class_specific_copy_from_start:triepb.Node)
   305    if (&from == this) return;
   306    Clear();
   307    MergeFrom(from);
   308  }
   309  
   310  bool Node::IsInitialized() const {
   311    return true;
   312  }
   313  
   314  void Node::Swap(Node* other) {
   315    if (other == this) return;
   316    InternalSwap(other);
   317  }
   318  void Node::InternalSwap(Node* other) {
   319    using std::swap;
   320    val_.InternalSwap(CastToBase(&other->val_));
   321    _internal_metadata_.Swap(&other->_internal_metadata_);
   322  }
   323  
   324  ::google::protobuf::Metadata Node::GetMetadata() const {
   325    protobuf_trie_2eproto::protobuf_AssignDescriptorsOnce();
   326    return ::protobuf_trie_2eproto::file_level_metadata[kIndexInFileMessages];
   327  }
   328  
   329  
   330  // @@protoc_insertion_point(namespace_scope)
   331  }  // namespace triepb
   332  namespace google {
   333  namespace protobuf {
   334  template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::triepb::Node* Arena::CreateMaybeMessage< ::triepb::Node >(Arena* arena) {
   335    return Arena::CreateInternal< ::triepb::Node >(arena);
   336  }
   337  }  // namespace protobuf
   338  }  // namespace google
   339  
   340  // @@protoc_insertion_point(global_scope)