github.com/igggame/nebulas-go@v2.1.0+incompatible/nbre/fs/proto/trie.pb.h (about) 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: trie.proto 3 4 #ifndef PROTOBUF_INCLUDED_trie_2eproto 5 #define PROTOBUF_INCLUDED_trie_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_trie_2eproto 35 36 namespace protobuf_trie_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[1]; 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_trie_2eproto 48 namespace triepb { 49 class Node; 50 class NodeDefaultTypeInternal; 51 extern NodeDefaultTypeInternal _Node_default_instance_; 52 } // namespace triepb 53 namespace google { 54 namespace protobuf { 55 template<> ::triepb::Node* Arena::CreateMaybeMessage<::triepb::Node>(Arena*); 56 } // namespace protobuf 57 } // namespace google 58 namespace triepb { 59 60 // =================================================================== 61 62 class Node : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:triepb.Node) */ { 63 public: 64 Node(); 65 virtual ~Node(); 66 67 Node(const Node& from); 68 69 inline Node& operator=(const Node& from) { 70 CopyFrom(from); 71 return *this; 72 } 73 #if LANG_CXX11 74 Node(Node&& from) noexcept 75 : Node() { 76 *this = ::std::move(from); 77 } 78 79 inline Node& operator=(Node&& from) noexcept { 80 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 81 if (this != &from) InternalSwap(&from); 82 } else { 83 CopyFrom(from); 84 } 85 return *this; 86 } 87 #endif 88 static const ::google::protobuf::Descriptor* descriptor(); 89 static const Node& default_instance(); 90 91 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 92 static inline const Node* internal_default_instance() { 93 return reinterpret_cast<const Node*>( 94 &_Node_default_instance_); 95 } 96 static constexpr int kIndexInFileMessages = 97 0; 98 99 void Swap(Node* other); 100 friend void swap(Node& a, Node& b) { 101 a.Swap(&b); 102 } 103 104 // implements Message ---------------------------------------------- 105 106 inline Node* New() const final { 107 return CreateMaybeMessage<Node>(NULL); 108 } 109 110 Node* New(::google::protobuf::Arena* arena) const final { 111 return CreateMaybeMessage<Node>(arena); 112 } 113 void CopyFrom(const ::google::protobuf::Message& from) final; 114 void MergeFrom(const ::google::protobuf::Message& from) final; 115 void CopyFrom(const Node& from); 116 void MergeFrom(const Node& from); 117 void Clear() final; 118 bool IsInitialized() const final; 119 120 size_t ByteSizeLong() const final; 121 bool MergePartialFromCodedStream( 122 ::google::protobuf::io::CodedInputStream* input) final; 123 void SerializeWithCachedSizes( 124 ::google::protobuf::io::CodedOutputStream* output) const final; 125 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( 126 bool deterministic, ::google::protobuf::uint8* target) const final; 127 int GetCachedSize() const final { return _cached_size_.Get(); } 128 129 private: 130 void SharedCtor(); 131 void SharedDtor(); 132 void SetCachedSize(int size) const final; 133 void InternalSwap(Node* other); 134 private: 135 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 136 return NULL; 137 } 138 inline void* MaybeArenaPtr() const { 139 return NULL; 140 } 141 public: 142 143 ::google::protobuf::Metadata GetMetadata() const final; 144 145 // nested types ---------------------------------------------------- 146 147 // accessors ------------------------------------------------------- 148 149 // repeated bytes val = 1; 150 int val_size() const; 151 void clear_val(); 152 static const int kValFieldNumber = 1; 153 const ::std::string& val(int index) const; 154 ::std::string* mutable_val(int index); 155 void set_val(int index, const ::std::string& value); 156 #if LANG_CXX11 157 void set_val(int index, ::std::string&& value); 158 #endif 159 void set_val(int index, const char* value); 160 void set_val(int index, const void* value, size_t size); 161 ::std::string* add_val(); 162 void add_val(const ::std::string& value); 163 #if LANG_CXX11 164 void add_val(::std::string&& value); 165 #endif 166 void add_val(const char* value); 167 void add_val(const void* value, size_t size); 168 const ::google::protobuf::RepeatedPtrField< ::std::string>& val() const; 169 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_val(); 170 171 // @@protoc_insertion_point(class_scope:triepb.Node) 172 private: 173 174 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 175 ::google::protobuf::RepeatedPtrField< ::std::string> val_; 176 mutable ::google::protobuf::internal::CachedSize _cached_size_; 177 friend struct ::protobuf_trie_2eproto::TableStruct; 178 }; 179 // =================================================================== 180 181 182 // =================================================================== 183 184 #ifdef __GNUC__ 185 #pragma GCC diagnostic push 186 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 187 #endif // __GNUC__ 188 // Node 189 190 // repeated bytes val = 1; 191 inline int Node::val_size() const { 192 return val_.size(); 193 } 194 inline void Node::clear_val() { 195 val_.Clear(); 196 } 197 inline const ::std::string& Node::val(int index) const { 198 // @@protoc_insertion_point(field_get:triepb.Node.val) 199 return val_.Get(index); 200 } 201 inline ::std::string* Node::mutable_val(int index) { 202 // @@protoc_insertion_point(field_mutable:triepb.Node.val) 203 return val_.Mutable(index); 204 } 205 inline void Node::set_val(int index, const ::std::string& value) { 206 // @@protoc_insertion_point(field_set:triepb.Node.val) 207 val_.Mutable(index)->assign(value); 208 } 209 #if LANG_CXX11 210 inline void Node::set_val(int index, ::std::string&& value) { 211 // @@protoc_insertion_point(field_set:triepb.Node.val) 212 val_.Mutable(index)->assign(std::move(value)); 213 } 214 #endif 215 inline void Node::set_val(int index, const char* value) { 216 GOOGLE_DCHECK(value != NULL); 217 val_.Mutable(index)->assign(value); 218 // @@protoc_insertion_point(field_set_char:triepb.Node.val) 219 } 220 inline void Node::set_val(int index, const void* value, size_t size) { 221 val_.Mutable(index)->assign( 222 reinterpret_cast<const char*>(value), size); 223 // @@protoc_insertion_point(field_set_pointer:triepb.Node.val) 224 } 225 inline ::std::string* Node::add_val() { 226 // @@protoc_insertion_point(field_add_mutable:triepb.Node.val) 227 return val_.Add(); 228 } 229 inline void Node::add_val(const ::std::string& value) { 230 val_.Add()->assign(value); 231 // @@protoc_insertion_point(field_add:triepb.Node.val) 232 } 233 #if LANG_CXX11 234 inline void Node::add_val(::std::string&& value) { 235 val_.Add(std::move(value)); 236 // @@protoc_insertion_point(field_add:triepb.Node.val) 237 } 238 #endif 239 inline void Node::add_val(const char* value) { 240 GOOGLE_DCHECK(value != NULL); 241 val_.Add()->assign(value); 242 // @@protoc_insertion_point(field_add_char:triepb.Node.val) 243 } 244 inline void Node::add_val(const void* value, size_t size) { 245 val_.Add()->assign(reinterpret_cast<const char*>(value), size); 246 // @@protoc_insertion_point(field_add_pointer:triepb.Node.val) 247 } 248 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& 249 Node::val() const { 250 // @@protoc_insertion_point(field_list:triepb.Node.val) 251 return val_; 252 } 253 inline ::google::protobuf::RepeatedPtrField< ::std::string>* 254 Node::mutable_val() { 255 // @@protoc_insertion_point(field_mutable_list:triepb.Node.val) 256 return &val_; 257 } 258 259 #ifdef __GNUC__ 260 #pragma GCC diagnostic pop 261 #endif // __GNUC__ 262 263 // @@protoc_insertion_point(namespace_scope) 264 265 } // namespace triepb 266 267 // @@protoc_insertion_point(global_scope) 268 269 #endif // PROTOBUF_INCLUDED_trie_2eproto