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

     1  // Generated by the protocol buffer compiler.  DO NOT EDIT!
     2  // source: dag.proto
     3  
     4  #ifndef PROTOBUF_INCLUDED_dag_2eproto
     5  #define PROTOBUF_INCLUDED_dag_2eproto
     6  
     7  #include <string>
     8  
     9  #include <google/protobuf/stubs/common.h>
    10  
    11  #if GOOGLE_PROTOBUF_VERSION < 3006001
    12  #error This file was generated by a newer version of protoc which is
    13  #error incompatible with your Protocol Buffer headers.  Please update
    14  #error your headers.
    15  #endif
    16  #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
    17  #error This file was generated by an older version of protoc which is
    18  #error incompatible with your Protocol Buffer headers.  Please
    19  #error regenerate this file with a newer version of protoc.
    20  #endif
    21  
    22  #include <google/protobuf/io/coded_stream.h>
    23  #include <google/protobuf/arena.h>
    24  #include <google/protobuf/arenastring.h>
    25  #include <google/protobuf/generated_message_table_driven.h>
    26  #include <google/protobuf/generated_message_util.h>
    27  #include <google/protobuf/inlined_string_field.h>
    28  #include <google/protobuf/metadata.h>
    29  #include <google/protobuf/message.h>
    30  #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
    31  #include <google/protobuf/extension_set.h>  // IWYU pragma: export
    32  #include <google/protobuf/unknown_field_set.h>
    33  // @@protoc_insertion_point(includes)
    34  #define PROTOBUF_INTERNAL_EXPORT_protobuf_dag_2eproto 
    35  
    36  namespace protobuf_dag_2eproto {
    37  // Internal implementation detail -- do not use these members.
    38  struct TableStruct {
    39    static const ::google::protobuf::internal::ParseTableField entries[];
    40    static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
    41    static const ::google::protobuf::internal::ParseTable schema[2];
    42    static const ::google::protobuf::internal::FieldMetadata field_metadata[];
    43    static const ::google::protobuf::internal::SerializationTable serialization_table[];
    44    static const ::google::protobuf::uint32 offsets[];
    45  };
    46  void AddDescriptors();
    47  }  // namespace protobuf_dag_2eproto
    48  namespace dagpb {
    49  class Dag;
    50  class DagDefaultTypeInternal;
    51  extern DagDefaultTypeInternal _Dag_default_instance_;
    52  class Node;
    53  class NodeDefaultTypeInternal;
    54  extern NodeDefaultTypeInternal _Node_default_instance_;
    55  }  // namespace dagpb
    56  namespace google {
    57  namespace protobuf {
    58  template<> ::dagpb::Dag* Arena::CreateMaybeMessage<::dagpb::Dag>(Arena*);
    59  template<> ::dagpb::Node* Arena::CreateMaybeMessage<::dagpb::Node>(Arena*);
    60  }  // namespace protobuf
    61  }  // namespace google
    62  namespace dagpb {
    63  
    64  // ===================================================================
    65  
    66  class Dag : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dagpb.Dag) */ {
    67   public:
    68    Dag();
    69    virtual ~Dag();
    70  
    71    Dag(const Dag& from);
    72  
    73    inline Dag& operator=(const Dag& from) {
    74      CopyFrom(from);
    75      return *this;
    76    }
    77    #if LANG_CXX11
    78    Dag(Dag&& from) noexcept
    79      : Dag() {
    80      *this = ::std::move(from);
    81    }
    82  
    83    inline Dag& operator=(Dag&& from) noexcept {
    84      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
    85        if (this != &from) InternalSwap(&from);
    86      } else {
    87        CopyFrom(from);
    88      }
    89      return *this;
    90    }
    91    #endif
    92    static const ::google::protobuf::Descriptor* descriptor();
    93    static const Dag& default_instance();
    94  
    95    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
    96    static inline const Dag* internal_default_instance() {
    97      return reinterpret_cast<const Dag*>(
    98                 &_Dag_default_instance_);
    99    }
   100    static constexpr int kIndexInFileMessages =
   101      0;
   102  
   103    void Swap(Dag* other);
   104    friend void swap(Dag& a, Dag& b) {
   105      a.Swap(&b);
   106    }
   107  
   108    // implements Message ----------------------------------------------
   109  
   110    inline Dag* New() const final {
   111      return CreateMaybeMessage<Dag>(NULL);
   112    }
   113  
   114    Dag* New(::google::protobuf::Arena* arena) const final {
   115      return CreateMaybeMessage<Dag>(arena);
   116    }
   117    void CopyFrom(const ::google::protobuf::Message& from) final;
   118    void MergeFrom(const ::google::protobuf::Message& from) final;
   119    void CopyFrom(const Dag& from);
   120    void MergeFrom(const Dag& from);
   121    void Clear() final;
   122    bool IsInitialized() const final;
   123  
   124    size_t ByteSizeLong() const final;
   125    bool MergePartialFromCodedStream(
   126        ::google::protobuf::io::CodedInputStream* input) final;
   127    void SerializeWithCachedSizes(
   128        ::google::protobuf::io::CodedOutputStream* output) const final;
   129    ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
   130        bool deterministic, ::google::protobuf::uint8* target) const final;
   131    int GetCachedSize() const final { return _cached_size_.Get(); }
   132  
   133    private:
   134    void SharedCtor();
   135    void SharedDtor();
   136    void SetCachedSize(int size) const final;
   137    void InternalSwap(Dag* other);
   138    private:
   139    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
   140      return NULL;
   141    }
   142    inline void* MaybeArenaPtr() const {
   143      return NULL;
   144    }
   145    public:
   146  
   147    ::google::protobuf::Metadata GetMetadata() const final;
   148  
   149    // nested types ----------------------------------------------------
   150  
   151    // accessors -------------------------------------------------------
   152  
   153    // repeated .dagpb.Node Nodes = 1;
   154    int nodes_size() const;
   155    void clear_nodes();
   156    static const int kNodesFieldNumber = 1;
   157    ::dagpb::Node* mutable_nodes(int index);
   158    ::google::protobuf::RepeatedPtrField< ::dagpb::Node >*
   159        mutable_nodes();
   160    const ::dagpb::Node& nodes(int index) const;
   161    ::dagpb::Node* add_nodes();
   162    const ::google::protobuf::RepeatedPtrField< ::dagpb::Node >&
   163        nodes() const;
   164  
   165    // @@protoc_insertion_point(class_scope:dagpb.Dag)
   166   private:
   167  
   168    ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   169    ::google::protobuf::RepeatedPtrField< ::dagpb::Node > nodes_;
   170    mutable ::google::protobuf::internal::CachedSize _cached_size_;
   171    friend struct ::protobuf_dag_2eproto::TableStruct;
   172  };
   173  // -------------------------------------------------------------------
   174  
   175  class Node : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dagpb.Node) */ {
   176   public:
   177    Node();
   178    virtual ~Node();
   179  
   180    Node(const Node& from);
   181  
   182    inline Node& operator=(const Node& from) {
   183      CopyFrom(from);
   184      return *this;
   185    }
   186    #if LANG_CXX11
   187    Node(Node&& from) noexcept
   188      : Node() {
   189      *this = ::std::move(from);
   190    }
   191  
   192    inline Node& operator=(Node&& from) noexcept {
   193      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
   194        if (this != &from) InternalSwap(&from);
   195      } else {
   196        CopyFrom(from);
   197      }
   198      return *this;
   199    }
   200    #endif
   201    static const ::google::protobuf::Descriptor* descriptor();
   202    static const Node& default_instance();
   203  
   204    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
   205    static inline const Node* internal_default_instance() {
   206      return reinterpret_cast<const Node*>(
   207                 &_Node_default_instance_);
   208    }
   209    static constexpr int kIndexInFileMessages =
   210      1;
   211  
   212    void Swap(Node* other);
   213    friend void swap(Node& a, Node& b) {
   214      a.Swap(&b);
   215    }
   216  
   217    // implements Message ----------------------------------------------
   218  
   219    inline Node* New() const final {
   220      return CreateMaybeMessage<Node>(NULL);
   221    }
   222  
   223    Node* New(::google::protobuf::Arena* arena) const final {
   224      return CreateMaybeMessage<Node>(arena);
   225    }
   226    void CopyFrom(const ::google::protobuf::Message& from) final;
   227    void MergeFrom(const ::google::protobuf::Message& from) final;
   228    void CopyFrom(const Node& from);
   229    void MergeFrom(const Node& from);
   230    void Clear() final;
   231    bool IsInitialized() const final;
   232  
   233    size_t ByteSizeLong() const final;
   234    bool MergePartialFromCodedStream(
   235        ::google::protobuf::io::CodedInputStream* input) final;
   236    void SerializeWithCachedSizes(
   237        ::google::protobuf::io::CodedOutputStream* output) const final;
   238    ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
   239        bool deterministic, ::google::protobuf::uint8* target) const final;
   240    int GetCachedSize() const final { return _cached_size_.Get(); }
   241  
   242    private:
   243    void SharedCtor();
   244    void SharedDtor();
   245    void SetCachedSize(int size) const final;
   246    void InternalSwap(Node* other);
   247    private:
   248    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
   249      return NULL;
   250    }
   251    inline void* MaybeArenaPtr() const {
   252      return NULL;
   253    }
   254    public:
   255  
   256    ::google::protobuf::Metadata GetMetadata() const final;
   257  
   258    // nested types ----------------------------------------------------
   259  
   260    // accessors -------------------------------------------------------
   261  
   262    // repeated int32 Children = 3;
   263    int children_size() const;
   264    void clear_children();
   265    static const int kChildrenFieldNumber = 3;
   266    ::google::protobuf::int32 children(int index) const;
   267    void set_children(int index, ::google::protobuf::int32 value);
   268    void add_children(::google::protobuf::int32 value);
   269    const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
   270        children() const;
   271    ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
   272        mutable_children();
   273  
   274    // string Key = 1;
   275    void clear_key();
   276    static const int kKeyFieldNumber = 1;
   277    const ::std::string& key() const;
   278    void set_key(const ::std::string& value);
   279    #if LANG_CXX11
   280    void set_key(::std::string&& value);
   281    #endif
   282    void set_key(const char* value);
   283    void set_key(const char* value, size_t size);
   284    ::std::string* mutable_key();
   285    ::std::string* release_key();
   286    void set_allocated_key(::std::string* key);
   287  
   288    // int32 Index = 2;
   289    void clear_index();
   290    static const int kIndexFieldNumber = 2;
   291    ::google::protobuf::int32 index() const;
   292    void set_index(::google::protobuf::int32 value);
   293  
   294    // @@protoc_insertion_point(class_scope:dagpb.Node)
   295   private:
   296  
   297    ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   298    ::google::protobuf::RepeatedField< ::google::protobuf::int32 > children_;
   299    mutable int _children_cached_byte_size_;
   300    ::google::protobuf::internal::ArenaStringPtr key_;
   301    ::google::protobuf::int32 index_;
   302    mutable ::google::protobuf::internal::CachedSize _cached_size_;
   303    friend struct ::protobuf_dag_2eproto::TableStruct;
   304  };
   305  // ===================================================================
   306  
   307  
   308  // ===================================================================
   309  
   310  #ifdef __GNUC__
   311    #pragma GCC diagnostic push
   312    #pragma GCC diagnostic ignored "-Wstrict-aliasing"
   313  #endif  // __GNUC__
   314  // Dag
   315  
   316  // repeated .dagpb.Node Nodes = 1;
   317  inline int Dag::nodes_size() const {
   318    return nodes_.size();
   319  }
   320  inline void Dag::clear_nodes() {
   321    nodes_.Clear();
   322  }
   323  inline ::dagpb::Node* Dag::mutable_nodes(int index) {
   324    // @@protoc_insertion_point(field_mutable:dagpb.Dag.Nodes)
   325    return nodes_.Mutable(index);
   326  }
   327  inline ::google::protobuf::RepeatedPtrField< ::dagpb::Node >*
   328  Dag::mutable_nodes() {
   329    // @@protoc_insertion_point(field_mutable_list:dagpb.Dag.Nodes)
   330    return &nodes_;
   331  }
   332  inline const ::dagpb::Node& Dag::nodes(int index) const {
   333    // @@protoc_insertion_point(field_get:dagpb.Dag.Nodes)
   334    return nodes_.Get(index);
   335  }
   336  inline ::dagpb::Node* Dag::add_nodes() {
   337    // @@protoc_insertion_point(field_add:dagpb.Dag.Nodes)
   338    return nodes_.Add();
   339  }
   340  inline const ::google::protobuf::RepeatedPtrField< ::dagpb::Node >&
   341  Dag::nodes() const {
   342    // @@protoc_insertion_point(field_list:dagpb.Dag.Nodes)
   343    return nodes_;
   344  }
   345  
   346  // -------------------------------------------------------------------
   347  
   348  // Node
   349  
   350  // string Key = 1;
   351  inline void Node::clear_key() {
   352    key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   353  }
   354  inline const ::std::string& Node::key() const {
   355    // @@protoc_insertion_point(field_get:dagpb.Node.Key)
   356    return key_.GetNoArena();
   357  }
   358  inline void Node::set_key(const ::std::string& value) {
   359    
   360    key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
   361    // @@protoc_insertion_point(field_set:dagpb.Node.Key)
   362  }
   363  #if LANG_CXX11
   364  inline void Node::set_key(::std::string&& value) {
   365    
   366    key_.SetNoArena(
   367      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
   368    // @@protoc_insertion_point(field_set_rvalue:dagpb.Node.Key)
   369  }
   370  #endif
   371  inline void Node::set_key(const char* value) {
   372    GOOGLE_DCHECK(value != NULL);
   373    
   374    key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
   375    // @@protoc_insertion_point(field_set_char:dagpb.Node.Key)
   376  }
   377  inline void Node::set_key(const char* value, size_t size) {
   378    
   379    key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
   380        ::std::string(reinterpret_cast<const char*>(value), size));
   381    // @@protoc_insertion_point(field_set_pointer:dagpb.Node.Key)
   382  }
   383  inline ::std::string* Node::mutable_key() {
   384    
   385    // @@protoc_insertion_point(field_mutable:dagpb.Node.Key)
   386    return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   387  }
   388  inline ::std::string* Node::release_key() {
   389    // @@protoc_insertion_point(field_release:dagpb.Node.Key)
   390    
   391    return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   392  }
   393  inline void Node::set_allocated_key(::std::string* key) {
   394    if (key != NULL) {
   395      
   396    } else {
   397      
   398    }
   399    key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
   400    // @@protoc_insertion_point(field_set_allocated:dagpb.Node.Key)
   401  }
   402  
   403  // int32 Index = 2;
   404  inline void Node::clear_index() {
   405    index_ = 0;
   406  }
   407  inline ::google::protobuf::int32 Node::index() const {
   408    // @@protoc_insertion_point(field_get:dagpb.Node.Index)
   409    return index_;
   410  }
   411  inline void Node::set_index(::google::protobuf::int32 value) {
   412    
   413    index_ = value;
   414    // @@protoc_insertion_point(field_set:dagpb.Node.Index)
   415  }
   416  
   417  // repeated int32 Children = 3;
   418  inline int Node::children_size() const {
   419    return children_.size();
   420  }
   421  inline void Node::clear_children() {
   422    children_.Clear();
   423  }
   424  inline ::google::protobuf::int32 Node::children(int index) const {
   425    // @@protoc_insertion_point(field_get:dagpb.Node.Children)
   426    return children_.Get(index);
   427  }
   428  inline void Node::set_children(int index, ::google::protobuf::int32 value) {
   429    children_.Set(index, value);
   430    // @@protoc_insertion_point(field_set:dagpb.Node.Children)
   431  }
   432  inline void Node::add_children(::google::protobuf::int32 value) {
   433    children_.Add(value);
   434    // @@protoc_insertion_point(field_add:dagpb.Node.Children)
   435  }
   436  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
   437  Node::children() const {
   438    // @@protoc_insertion_point(field_list:dagpb.Node.Children)
   439    return children_;
   440  }
   441  inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
   442  Node::mutable_children() {
   443    // @@protoc_insertion_point(field_mutable_list:dagpb.Node.Children)
   444    return &children_;
   445  }
   446  
   447  #ifdef __GNUC__
   448    #pragma GCC diagnostic pop
   449  #endif  // __GNUC__
   450  // -------------------------------------------------------------------
   451  
   452  
   453  // @@protoc_insertion_point(namespace_scope)
   454  
   455  }  // namespace dagpb
   456  
   457  // @@protoc_insertion_point(global_scope)
   458  
   459  #endif  // PROTOBUF_INCLUDED_dag_2eproto