github.com/igggame/nebulas-go@v2.1.0+incompatible/nbre/fs/proto/genesis.pb.h (about) 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: genesis.proto 3 4 #ifndef PROTOBUF_INCLUDED_genesis_2eproto 5 #define PROTOBUF_INCLUDED_genesis_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_genesis_2eproto 35 36 namespace protobuf_genesis_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[5]; 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_genesis_2eproto 48 namespace corepb { 49 class Genesis; 50 class GenesisDefaultTypeInternal; 51 extern GenesisDefaultTypeInternal _Genesis_default_instance_; 52 class GenesisConsensus; 53 class GenesisConsensusDefaultTypeInternal; 54 extern GenesisConsensusDefaultTypeInternal _GenesisConsensus_default_instance_; 55 class GenesisConsensusDpos; 56 class GenesisConsensusDposDefaultTypeInternal; 57 extern GenesisConsensusDposDefaultTypeInternal _GenesisConsensusDpos_default_instance_; 58 class GenesisMeta; 59 class GenesisMetaDefaultTypeInternal; 60 extern GenesisMetaDefaultTypeInternal _GenesisMeta_default_instance_; 61 class GenesisTokenDistribution; 62 class GenesisTokenDistributionDefaultTypeInternal; 63 extern GenesisTokenDistributionDefaultTypeInternal _GenesisTokenDistribution_default_instance_; 64 } // namespace corepb 65 namespace google { 66 namespace protobuf { 67 template<> ::corepb::Genesis* Arena::CreateMaybeMessage<::corepb::Genesis>(Arena*); 68 template<> ::corepb::GenesisConsensus* Arena::CreateMaybeMessage<::corepb::GenesisConsensus>(Arena*); 69 template<> ::corepb::GenesisConsensusDpos* Arena::CreateMaybeMessage<::corepb::GenesisConsensusDpos>(Arena*); 70 template<> ::corepb::GenesisMeta* Arena::CreateMaybeMessage<::corepb::GenesisMeta>(Arena*); 71 template<> ::corepb::GenesisTokenDistribution* Arena::CreateMaybeMessage<::corepb::GenesisTokenDistribution>(Arena*); 72 } // namespace protobuf 73 } // namespace google 74 namespace corepb { 75 76 // =================================================================== 77 78 class Genesis : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:corepb.Genesis) */ { 79 public: 80 Genesis(); 81 virtual ~Genesis(); 82 83 Genesis(const Genesis& from); 84 85 inline Genesis& operator=(const Genesis& from) { 86 CopyFrom(from); 87 return *this; 88 } 89 #if LANG_CXX11 90 Genesis(Genesis&& from) noexcept 91 : Genesis() { 92 *this = ::std::move(from); 93 } 94 95 inline Genesis& operator=(Genesis&& from) noexcept { 96 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 97 if (this != &from) InternalSwap(&from); 98 } else { 99 CopyFrom(from); 100 } 101 return *this; 102 } 103 #endif 104 static const ::google::protobuf::Descriptor* descriptor(); 105 static const Genesis& default_instance(); 106 107 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 108 static inline const Genesis* internal_default_instance() { 109 return reinterpret_cast<const Genesis*>( 110 &_Genesis_default_instance_); 111 } 112 static constexpr int kIndexInFileMessages = 113 0; 114 115 void Swap(Genesis* other); 116 friend void swap(Genesis& a, Genesis& b) { 117 a.Swap(&b); 118 } 119 120 // implements Message ---------------------------------------------- 121 122 inline Genesis* New() const final { 123 return CreateMaybeMessage<Genesis>(NULL); 124 } 125 126 Genesis* New(::google::protobuf::Arena* arena) const final { 127 return CreateMaybeMessage<Genesis>(arena); 128 } 129 void CopyFrom(const ::google::protobuf::Message& from) final; 130 void MergeFrom(const ::google::protobuf::Message& from) final; 131 void CopyFrom(const Genesis& from); 132 void MergeFrom(const Genesis& from); 133 void Clear() final; 134 bool IsInitialized() const final; 135 136 size_t ByteSizeLong() const final; 137 bool MergePartialFromCodedStream( 138 ::google::protobuf::io::CodedInputStream* input) final; 139 void SerializeWithCachedSizes( 140 ::google::protobuf::io::CodedOutputStream* output) const final; 141 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( 142 bool deterministic, ::google::protobuf::uint8* target) const final; 143 int GetCachedSize() const final { return _cached_size_.Get(); } 144 145 private: 146 void SharedCtor(); 147 void SharedDtor(); 148 void SetCachedSize(int size) const final; 149 void InternalSwap(Genesis* other); 150 private: 151 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 152 return NULL; 153 } 154 inline void* MaybeArenaPtr() const { 155 return NULL; 156 } 157 public: 158 159 ::google::protobuf::Metadata GetMetadata() const final; 160 161 // nested types ---------------------------------------------------- 162 163 // accessors ------------------------------------------------------- 164 165 // repeated .corepb.GenesisTokenDistribution token_distribution = 3; 166 int token_distribution_size() const; 167 void clear_token_distribution(); 168 static const int kTokenDistributionFieldNumber = 3; 169 ::corepb::GenesisTokenDistribution* mutable_token_distribution(int index); 170 ::google::protobuf::RepeatedPtrField< ::corepb::GenesisTokenDistribution >* 171 mutable_token_distribution(); 172 const ::corepb::GenesisTokenDistribution& token_distribution(int index) const; 173 ::corepb::GenesisTokenDistribution* add_token_distribution(); 174 const ::google::protobuf::RepeatedPtrField< ::corepb::GenesisTokenDistribution >& 175 token_distribution() const; 176 177 // .corepb.GenesisMeta meta = 1; 178 bool has_meta() const; 179 void clear_meta(); 180 static const int kMetaFieldNumber = 1; 181 private: 182 const ::corepb::GenesisMeta& _internal_meta() const; 183 public: 184 const ::corepb::GenesisMeta& meta() const; 185 ::corepb::GenesisMeta* release_meta(); 186 ::corepb::GenesisMeta* mutable_meta(); 187 void set_allocated_meta(::corepb::GenesisMeta* meta); 188 189 // .corepb.GenesisConsensus consensus = 2; 190 bool has_consensus() const; 191 void clear_consensus(); 192 static const int kConsensusFieldNumber = 2; 193 private: 194 const ::corepb::GenesisConsensus& _internal_consensus() const; 195 public: 196 const ::corepb::GenesisConsensus& consensus() const; 197 ::corepb::GenesisConsensus* release_consensus(); 198 ::corepb::GenesisConsensus* mutable_consensus(); 199 void set_allocated_consensus(::corepb::GenesisConsensus* consensus); 200 201 // @@protoc_insertion_point(class_scope:corepb.Genesis) 202 private: 203 204 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 205 ::google::protobuf::RepeatedPtrField< ::corepb::GenesisTokenDistribution > token_distribution_; 206 ::corepb::GenesisMeta* meta_; 207 ::corepb::GenesisConsensus* consensus_; 208 mutable ::google::protobuf::internal::CachedSize _cached_size_; 209 friend struct ::protobuf_genesis_2eproto::TableStruct; 210 }; 211 // ------------------------------------------------------------------- 212 213 class GenesisMeta : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:corepb.GenesisMeta) */ { 214 public: 215 GenesisMeta(); 216 virtual ~GenesisMeta(); 217 218 GenesisMeta(const GenesisMeta& from); 219 220 inline GenesisMeta& operator=(const GenesisMeta& from) { 221 CopyFrom(from); 222 return *this; 223 } 224 #if LANG_CXX11 225 GenesisMeta(GenesisMeta&& from) noexcept 226 : GenesisMeta() { 227 *this = ::std::move(from); 228 } 229 230 inline GenesisMeta& operator=(GenesisMeta&& from) noexcept { 231 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 232 if (this != &from) InternalSwap(&from); 233 } else { 234 CopyFrom(from); 235 } 236 return *this; 237 } 238 #endif 239 static const ::google::protobuf::Descriptor* descriptor(); 240 static const GenesisMeta& default_instance(); 241 242 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 243 static inline const GenesisMeta* internal_default_instance() { 244 return reinterpret_cast<const GenesisMeta*>( 245 &_GenesisMeta_default_instance_); 246 } 247 static constexpr int kIndexInFileMessages = 248 1; 249 250 void Swap(GenesisMeta* other); 251 friend void swap(GenesisMeta& a, GenesisMeta& b) { 252 a.Swap(&b); 253 } 254 255 // implements Message ---------------------------------------------- 256 257 inline GenesisMeta* New() const final { 258 return CreateMaybeMessage<GenesisMeta>(NULL); 259 } 260 261 GenesisMeta* New(::google::protobuf::Arena* arena) const final { 262 return CreateMaybeMessage<GenesisMeta>(arena); 263 } 264 void CopyFrom(const ::google::protobuf::Message& from) final; 265 void MergeFrom(const ::google::protobuf::Message& from) final; 266 void CopyFrom(const GenesisMeta& from); 267 void MergeFrom(const GenesisMeta& from); 268 void Clear() final; 269 bool IsInitialized() const final; 270 271 size_t ByteSizeLong() const final; 272 bool MergePartialFromCodedStream( 273 ::google::protobuf::io::CodedInputStream* input) final; 274 void SerializeWithCachedSizes( 275 ::google::protobuf::io::CodedOutputStream* output) const final; 276 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( 277 bool deterministic, ::google::protobuf::uint8* target) const final; 278 int GetCachedSize() const final { return _cached_size_.Get(); } 279 280 private: 281 void SharedCtor(); 282 void SharedDtor(); 283 void SetCachedSize(int size) const final; 284 void InternalSwap(GenesisMeta* other); 285 private: 286 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 287 return NULL; 288 } 289 inline void* MaybeArenaPtr() const { 290 return NULL; 291 } 292 public: 293 294 ::google::protobuf::Metadata GetMetadata() const final; 295 296 // nested types ---------------------------------------------------- 297 298 // accessors ------------------------------------------------------- 299 300 // uint32 chain_id = 1; 301 void clear_chain_id(); 302 static const int kChainIdFieldNumber = 1; 303 ::google::protobuf::uint32 chain_id() const; 304 void set_chain_id(::google::protobuf::uint32 value); 305 306 // @@protoc_insertion_point(class_scope:corepb.GenesisMeta) 307 private: 308 309 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 310 ::google::protobuf::uint32 chain_id_; 311 mutable ::google::protobuf::internal::CachedSize _cached_size_; 312 friend struct ::protobuf_genesis_2eproto::TableStruct; 313 }; 314 // ------------------------------------------------------------------- 315 316 class GenesisConsensus : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:corepb.GenesisConsensus) */ { 317 public: 318 GenesisConsensus(); 319 virtual ~GenesisConsensus(); 320 321 GenesisConsensus(const GenesisConsensus& from); 322 323 inline GenesisConsensus& operator=(const GenesisConsensus& from) { 324 CopyFrom(from); 325 return *this; 326 } 327 #if LANG_CXX11 328 GenesisConsensus(GenesisConsensus&& from) noexcept 329 : GenesisConsensus() { 330 *this = ::std::move(from); 331 } 332 333 inline GenesisConsensus& operator=(GenesisConsensus&& from) noexcept { 334 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 335 if (this != &from) InternalSwap(&from); 336 } else { 337 CopyFrom(from); 338 } 339 return *this; 340 } 341 #endif 342 static const ::google::protobuf::Descriptor* descriptor(); 343 static const GenesisConsensus& default_instance(); 344 345 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 346 static inline const GenesisConsensus* internal_default_instance() { 347 return reinterpret_cast<const GenesisConsensus*>( 348 &_GenesisConsensus_default_instance_); 349 } 350 static constexpr int kIndexInFileMessages = 351 2; 352 353 void Swap(GenesisConsensus* other); 354 friend void swap(GenesisConsensus& a, GenesisConsensus& b) { 355 a.Swap(&b); 356 } 357 358 // implements Message ---------------------------------------------- 359 360 inline GenesisConsensus* New() const final { 361 return CreateMaybeMessage<GenesisConsensus>(NULL); 362 } 363 364 GenesisConsensus* New(::google::protobuf::Arena* arena) const final { 365 return CreateMaybeMessage<GenesisConsensus>(arena); 366 } 367 void CopyFrom(const ::google::protobuf::Message& from) final; 368 void MergeFrom(const ::google::protobuf::Message& from) final; 369 void CopyFrom(const GenesisConsensus& from); 370 void MergeFrom(const GenesisConsensus& from); 371 void Clear() final; 372 bool IsInitialized() const final; 373 374 size_t ByteSizeLong() const final; 375 bool MergePartialFromCodedStream( 376 ::google::protobuf::io::CodedInputStream* input) final; 377 void SerializeWithCachedSizes( 378 ::google::protobuf::io::CodedOutputStream* output) const final; 379 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( 380 bool deterministic, ::google::protobuf::uint8* target) const final; 381 int GetCachedSize() const final { return _cached_size_.Get(); } 382 383 private: 384 void SharedCtor(); 385 void SharedDtor(); 386 void SetCachedSize(int size) const final; 387 void InternalSwap(GenesisConsensus* other); 388 private: 389 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 390 return NULL; 391 } 392 inline void* MaybeArenaPtr() const { 393 return NULL; 394 } 395 public: 396 397 ::google::protobuf::Metadata GetMetadata() const final; 398 399 // nested types ---------------------------------------------------- 400 401 // accessors ------------------------------------------------------- 402 403 // .corepb.GenesisConsensusDpos dpos = 1; 404 bool has_dpos() const; 405 void clear_dpos(); 406 static const int kDposFieldNumber = 1; 407 private: 408 const ::corepb::GenesisConsensusDpos& _internal_dpos() const; 409 public: 410 const ::corepb::GenesisConsensusDpos& dpos() const; 411 ::corepb::GenesisConsensusDpos* release_dpos(); 412 ::corepb::GenesisConsensusDpos* mutable_dpos(); 413 void set_allocated_dpos(::corepb::GenesisConsensusDpos* dpos); 414 415 // @@protoc_insertion_point(class_scope:corepb.GenesisConsensus) 416 private: 417 418 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 419 ::corepb::GenesisConsensusDpos* dpos_; 420 mutable ::google::protobuf::internal::CachedSize _cached_size_; 421 friend struct ::protobuf_genesis_2eproto::TableStruct; 422 }; 423 // ------------------------------------------------------------------- 424 425 class GenesisConsensusDpos : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:corepb.GenesisConsensusDpos) */ { 426 public: 427 GenesisConsensusDpos(); 428 virtual ~GenesisConsensusDpos(); 429 430 GenesisConsensusDpos(const GenesisConsensusDpos& from); 431 432 inline GenesisConsensusDpos& operator=(const GenesisConsensusDpos& from) { 433 CopyFrom(from); 434 return *this; 435 } 436 #if LANG_CXX11 437 GenesisConsensusDpos(GenesisConsensusDpos&& from) noexcept 438 : GenesisConsensusDpos() { 439 *this = ::std::move(from); 440 } 441 442 inline GenesisConsensusDpos& operator=(GenesisConsensusDpos&& from) noexcept { 443 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 444 if (this != &from) InternalSwap(&from); 445 } else { 446 CopyFrom(from); 447 } 448 return *this; 449 } 450 #endif 451 static const ::google::protobuf::Descriptor* descriptor(); 452 static const GenesisConsensusDpos& default_instance(); 453 454 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 455 static inline const GenesisConsensusDpos* internal_default_instance() { 456 return reinterpret_cast<const GenesisConsensusDpos*>( 457 &_GenesisConsensusDpos_default_instance_); 458 } 459 static constexpr int kIndexInFileMessages = 460 3; 461 462 void Swap(GenesisConsensusDpos* other); 463 friend void swap(GenesisConsensusDpos& a, GenesisConsensusDpos& b) { 464 a.Swap(&b); 465 } 466 467 // implements Message ---------------------------------------------- 468 469 inline GenesisConsensusDpos* New() const final { 470 return CreateMaybeMessage<GenesisConsensusDpos>(NULL); 471 } 472 473 GenesisConsensusDpos* New(::google::protobuf::Arena* arena) const final { 474 return CreateMaybeMessage<GenesisConsensusDpos>(arena); 475 } 476 void CopyFrom(const ::google::protobuf::Message& from) final; 477 void MergeFrom(const ::google::protobuf::Message& from) final; 478 void CopyFrom(const GenesisConsensusDpos& from); 479 void MergeFrom(const GenesisConsensusDpos& from); 480 void Clear() final; 481 bool IsInitialized() const final; 482 483 size_t ByteSizeLong() const final; 484 bool MergePartialFromCodedStream( 485 ::google::protobuf::io::CodedInputStream* input) final; 486 void SerializeWithCachedSizes( 487 ::google::protobuf::io::CodedOutputStream* output) const final; 488 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( 489 bool deterministic, ::google::protobuf::uint8* target) const final; 490 int GetCachedSize() const final { return _cached_size_.Get(); } 491 492 private: 493 void SharedCtor(); 494 void SharedDtor(); 495 void SetCachedSize(int size) const final; 496 void InternalSwap(GenesisConsensusDpos* other); 497 private: 498 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 499 return NULL; 500 } 501 inline void* MaybeArenaPtr() const { 502 return NULL; 503 } 504 public: 505 506 ::google::protobuf::Metadata GetMetadata() const final; 507 508 // nested types ---------------------------------------------------- 509 510 // accessors ------------------------------------------------------- 511 512 // repeated string dynasty = 1; 513 int dynasty_size() const; 514 void clear_dynasty(); 515 static const int kDynastyFieldNumber = 1; 516 const ::std::string& dynasty(int index) const; 517 ::std::string* mutable_dynasty(int index); 518 void set_dynasty(int index, const ::std::string& value); 519 #if LANG_CXX11 520 void set_dynasty(int index, ::std::string&& value); 521 #endif 522 void set_dynasty(int index, const char* value); 523 void set_dynasty(int index, const char* value, size_t size); 524 ::std::string* add_dynasty(); 525 void add_dynasty(const ::std::string& value); 526 #if LANG_CXX11 527 void add_dynasty(::std::string&& value); 528 #endif 529 void add_dynasty(const char* value); 530 void add_dynasty(const char* value, size_t size); 531 const ::google::protobuf::RepeatedPtrField< ::std::string>& dynasty() const; 532 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_dynasty(); 533 534 // @@protoc_insertion_point(class_scope:corepb.GenesisConsensusDpos) 535 private: 536 537 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 538 ::google::protobuf::RepeatedPtrField< ::std::string> dynasty_; 539 mutable ::google::protobuf::internal::CachedSize _cached_size_; 540 friend struct ::protobuf_genesis_2eproto::TableStruct; 541 }; 542 // ------------------------------------------------------------------- 543 544 class GenesisTokenDistribution : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:corepb.GenesisTokenDistribution) */ { 545 public: 546 GenesisTokenDistribution(); 547 virtual ~GenesisTokenDistribution(); 548 549 GenesisTokenDistribution(const GenesisTokenDistribution& from); 550 551 inline GenesisTokenDistribution& operator=(const GenesisTokenDistribution& from) { 552 CopyFrom(from); 553 return *this; 554 } 555 #if LANG_CXX11 556 GenesisTokenDistribution(GenesisTokenDistribution&& from) noexcept 557 : GenesisTokenDistribution() { 558 *this = ::std::move(from); 559 } 560 561 inline GenesisTokenDistribution& operator=(GenesisTokenDistribution&& from) noexcept { 562 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 563 if (this != &from) InternalSwap(&from); 564 } else { 565 CopyFrom(from); 566 } 567 return *this; 568 } 569 #endif 570 static const ::google::protobuf::Descriptor* descriptor(); 571 static const GenesisTokenDistribution& default_instance(); 572 573 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 574 static inline const GenesisTokenDistribution* internal_default_instance() { 575 return reinterpret_cast<const GenesisTokenDistribution*>( 576 &_GenesisTokenDistribution_default_instance_); 577 } 578 static constexpr int kIndexInFileMessages = 579 4; 580 581 void Swap(GenesisTokenDistribution* other); 582 friend void swap(GenesisTokenDistribution& a, GenesisTokenDistribution& b) { 583 a.Swap(&b); 584 } 585 586 // implements Message ---------------------------------------------- 587 588 inline GenesisTokenDistribution* New() const final { 589 return CreateMaybeMessage<GenesisTokenDistribution>(NULL); 590 } 591 592 GenesisTokenDistribution* New(::google::protobuf::Arena* arena) const final { 593 return CreateMaybeMessage<GenesisTokenDistribution>(arena); 594 } 595 void CopyFrom(const ::google::protobuf::Message& from) final; 596 void MergeFrom(const ::google::protobuf::Message& from) final; 597 void CopyFrom(const GenesisTokenDistribution& from); 598 void MergeFrom(const GenesisTokenDistribution& from); 599 void Clear() final; 600 bool IsInitialized() const final; 601 602 size_t ByteSizeLong() const final; 603 bool MergePartialFromCodedStream( 604 ::google::protobuf::io::CodedInputStream* input) final; 605 void SerializeWithCachedSizes( 606 ::google::protobuf::io::CodedOutputStream* output) const final; 607 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( 608 bool deterministic, ::google::protobuf::uint8* target) const final; 609 int GetCachedSize() const final { return _cached_size_.Get(); } 610 611 private: 612 void SharedCtor(); 613 void SharedDtor(); 614 void SetCachedSize(int size) const final; 615 void InternalSwap(GenesisTokenDistribution* other); 616 private: 617 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 618 return NULL; 619 } 620 inline void* MaybeArenaPtr() const { 621 return NULL; 622 } 623 public: 624 625 ::google::protobuf::Metadata GetMetadata() const final; 626 627 // nested types ---------------------------------------------------- 628 629 // accessors ------------------------------------------------------- 630 631 // string address = 1; 632 void clear_address(); 633 static const int kAddressFieldNumber = 1; 634 const ::std::string& address() const; 635 void set_address(const ::std::string& value); 636 #if LANG_CXX11 637 void set_address(::std::string&& value); 638 #endif 639 void set_address(const char* value); 640 void set_address(const char* value, size_t size); 641 ::std::string* mutable_address(); 642 ::std::string* release_address(); 643 void set_allocated_address(::std::string* address); 644 645 // string value = 2; 646 void clear_value(); 647 static const int kValueFieldNumber = 2; 648 const ::std::string& value() const; 649 void set_value(const ::std::string& value); 650 #if LANG_CXX11 651 void set_value(::std::string&& value); 652 #endif 653 void set_value(const char* value); 654 void set_value(const char* value, size_t size); 655 ::std::string* mutable_value(); 656 ::std::string* release_value(); 657 void set_allocated_value(::std::string* value); 658 659 // @@protoc_insertion_point(class_scope:corepb.GenesisTokenDistribution) 660 private: 661 662 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 663 ::google::protobuf::internal::ArenaStringPtr address_; 664 ::google::protobuf::internal::ArenaStringPtr value_; 665 mutable ::google::protobuf::internal::CachedSize _cached_size_; 666 friend struct ::protobuf_genesis_2eproto::TableStruct; 667 }; 668 // =================================================================== 669 670 671 // =================================================================== 672 673 #ifdef __GNUC__ 674 #pragma GCC diagnostic push 675 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 676 #endif // __GNUC__ 677 // Genesis 678 679 // .corepb.GenesisMeta meta = 1; 680 inline bool Genesis::has_meta() const { 681 return this != internal_default_instance() && meta_ != NULL; 682 } 683 inline void Genesis::clear_meta() { 684 if (GetArenaNoVirtual() == NULL && meta_ != NULL) { 685 delete meta_; 686 } 687 meta_ = NULL; 688 } 689 inline const ::corepb::GenesisMeta& Genesis::_internal_meta() const { 690 return *meta_; 691 } 692 inline const ::corepb::GenesisMeta& Genesis::meta() const { 693 const ::corepb::GenesisMeta* p = meta_; 694 // @@protoc_insertion_point(field_get:corepb.Genesis.meta) 695 return p != NULL ? *p : *reinterpret_cast<const ::corepb::GenesisMeta*>( 696 &::corepb::_GenesisMeta_default_instance_); 697 } 698 inline ::corepb::GenesisMeta* Genesis::release_meta() { 699 // @@protoc_insertion_point(field_release:corepb.Genesis.meta) 700 701 ::corepb::GenesisMeta* temp = meta_; 702 meta_ = NULL; 703 return temp; 704 } 705 inline ::corepb::GenesisMeta* Genesis::mutable_meta() { 706 707 if (meta_ == NULL) { 708 auto* p = CreateMaybeMessage<::corepb::GenesisMeta>(GetArenaNoVirtual()); 709 meta_ = p; 710 } 711 // @@protoc_insertion_point(field_mutable:corepb.Genesis.meta) 712 return meta_; 713 } 714 inline void Genesis::set_allocated_meta(::corepb::GenesisMeta* meta) { 715 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 716 if (message_arena == NULL) { 717 delete meta_; 718 } 719 if (meta) { 720 ::google::protobuf::Arena* submessage_arena = NULL; 721 if (message_arena != submessage_arena) { 722 meta = ::google::protobuf::internal::GetOwnedMessage( 723 message_arena, meta, submessage_arena); 724 } 725 726 } else { 727 728 } 729 meta_ = meta; 730 // @@protoc_insertion_point(field_set_allocated:corepb.Genesis.meta) 731 } 732 733 // .corepb.GenesisConsensus consensus = 2; 734 inline bool Genesis::has_consensus() const { 735 return this != internal_default_instance() && consensus_ != NULL; 736 } 737 inline void Genesis::clear_consensus() { 738 if (GetArenaNoVirtual() == NULL && consensus_ != NULL) { 739 delete consensus_; 740 } 741 consensus_ = NULL; 742 } 743 inline const ::corepb::GenesisConsensus& Genesis::_internal_consensus() const { 744 return *consensus_; 745 } 746 inline const ::corepb::GenesisConsensus& Genesis::consensus() const { 747 const ::corepb::GenesisConsensus* p = consensus_; 748 // @@protoc_insertion_point(field_get:corepb.Genesis.consensus) 749 return p != NULL ? *p : *reinterpret_cast<const ::corepb::GenesisConsensus*>( 750 &::corepb::_GenesisConsensus_default_instance_); 751 } 752 inline ::corepb::GenesisConsensus* Genesis::release_consensus() { 753 // @@protoc_insertion_point(field_release:corepb.Genesis.consensus) 754 755 ::corepb::GenesisConsensus* temp = consensus_; 756 consensus_ = NULL; 757 return temp; 758 } 759 inline ::corepb::GenesisConsensus* Genesis::mutable_consensus() { 760 761 if (consensus_ == NULL) { 762 auto* p = CreateMaybeMessage<::corepb::GenesisConsensus>(GetArenaNoVirtual()); 763 consensus_ = p; 764 } 765 // @@protoc_insertion_point(field_mutable:corepb.Genesis.consensus) 766 return consensus_; 767 } 768 inline void Genesis::set_allocated_consensus(::corepb::GenesisConsensus* consensus) { 769 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 770 if (message_arena == NULL) { 771 delete consensus_; 772 } 773 if (consensus) { 774 ::google::protobuf::Arena* submessage_arena = NULL; 775 if (message_arena != submessage_arena) { 776 consensus = ::google::protobuf::internal::GetOwnedMessage( 777 message_arena, consensus, submessage_arena); 778 } 779 780 } else { 781 782 } 783 consensus_ = consensus; 784 // @@protoc_insertion_point(field_set_allocated:corepb.Genesis.consensus) 785 } 786 787 // repeated .corepb.GenesisTokenDistribution token_distribution = 3; 788 inline int Genesis::token_distribution_size() const { 789 return token_distribution_.size(); 790 } 791 inline void Genesis::clear_token_distribution() { 792 token_distribution_.Clear(); 793 } 794 inline ::corepb::GenesisTokenDistribution* Genesis::mutable_token_distribution(int index) { 795 // @@protoc_insertion_point(field_mutable:corepb.Genesis.token_distribution) 796 return token_distribution_.Mutable(index); 797 } 798 inline ::google::protobuf::RepeatedPtrField< ::corepb::GenesisTokenDistribution >* 799 Genesis::mutable_token_distribution() { 800 // @@protoc_insertion_point(field_mutable_list:corepb.Genesis.token_distribution) 801 return &token_distribution_; 802 } 803 inline const ::corepb::GenesisTokenDistribution& Genesis::token_distribution(int index) const { 804 // @@protoc_insertion_point(field_get:corepb.Genesis.token_distribution) 805 return token_distribution_.Get(index); 806 } 807 inline ::corepb::GenesisTokenDistribution* Genesis::add_token_distribution() { 808 // @@protoc_insertion_point(field_add:corepb.Genesis.token_distribution) 809 return token_distribution_.Add(); 810 } 811 inline const ::google::protobuf::RepeatedPtrField< ::corepb::GenesisTokenDistribution >& 812 Genesis::token_distribution() const { 813 // @@protoc_insertion_point(field_list:corepb.Genesis.token_distribution) 814 return token_distribution_; 815 } 816 817 // ------------------------------------------------------------------- 818 819 // GenesisMeta 820 821 // uint32 chain_id = 1; 822 inline void GenesisMeta::clear_chain_id() { 823 chain_id_ = 0u; 824 } 825 inline ::google::protobuf::uint32 GenesisMeta::chain_id() const { 826 // @@protoc_insertion_point(field_get:corepb.GenesisMeta.chain_id) 827 return chain_id_; 828 } 829 inline void GenesisMeta::set_chain_id(::google::protobuf::uint32 value) { 830 831 chain_id_ = value; 832 // @@protoc_insertion_point(field_set:corepb.GenesisMeta.chain_id) 833 } 834 835 // ------------------------------------------------------------------- 836 837 // GenesisConsensus 838 839 // .corepb.GenesisConsensusDpos dpos = 1; 840 inline bool GenesisConsensus::has_dpos() const { 841 return this != internal_default_instance() && dpos_ != NULL; 842 } 843 inline void GenesisConsensus::clear_dpos() { 844 if (GetArenaNoVirtual() == NULL && dpos_ != NULL) { 845 delete dpos_; 846 } 847 dpos_ = NULL; 848 } 849 inline const ::corepb::GenesisConsensusDpos& GenesisConsensus::_internal_dpos() const { 850 return *dpos_; 851 } 852 inline const ::corepb::GenesisConsensusDpos& GenesisConsensus::dpos() const { 853 const ::corepb::GenesisConsensusDpos* p = dpos_; 854 // @@protoc_insertion_point(field_get:corepb.GenesisConsensus.dpos) 855 return p != NULL ? *p : *reinterpret_cast<const ::corepb::GenesisConsensusDpos*>( 856 &::corepb::_GenesisConsensusDpos_default_instance_); 857 } 858 inline ::corepb::GenesisConsensusDpos* GenesisConsensus::release_dpos() { 859 // @@protoc_insertion_point(field_release:corepb.GenesisConsensus.dpos) 860 861 ::corepb::GenesisConsensusDpos* temp = dpos_; 862 dpos_ = NULL; 863 return temp; 864 } 865 inline ::corepb::GenesisConsensusDpos* GenesisConsensus::mutable_dpos() { 866 867 if (dpos_ == NULL) { 868 auto* p = CreateMaybeMessage<::corepb::GenesisConsensusDpos>(GetArenaNoVirtual()); 869 dpos_ = p; 870 } 871 // @@protoc_insertion_point(field_mutable:corepb.GenesisConsensus.dpos) 872 return dpos_; 873 } 874 inline void GenesisConsensus::set_allocated_dpos(::corepb::GenesisConsensusDpos* dpos) { 875 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 876 if (message_arena == NULL) { 877 delete dpos_; 878 } 879 if (dpos) { 880 ::google::protobuf::Arena* submessage_arena = NULL; 881 if (message_arena != submessage_arena) { 882 dpos = ::google::protobuf::internal::GetOwnedMessage( 883 message_arena, dpos, submessage_arena); 884 } 885 886 } else { 887 888 } 889 dpos_ = dpos; 890 // @@protoc_insertion_point(field_set_allocated:corepb.GenesisConsensus.dpos) 891 } 892 893 // ------------------------------------------------------------------- 894 895 // GenesisConsensusDpos 896 897 // repeated string dynasty = 1; 898 inline int GenesisConsensusDpos::dynasty_size() const { 899 return dynasty_.size(); 900 } 901 inline void GenesisConsensusDpos::clear_dynasty() { 902 dynasty_.Clear(); 903 } 904 inline const ::std::string& GenesisConsensusDpos::dynasty(int index) const { 905 // @@protoc_insertion_point(field_get:corepb.GenesisConsensusDpos.dynasty) 906 return dynasty_.Get(index); 907 } 908 inline ::std::string* GenesisConsensusDpos::mutable_dynasty(int index) { 909 // @@protoc_insertion_point(field_mutable:corepb.GenesisConsensusDpos.dynasty) 910 return dynasty_.Mutable(index); 911 } 912 inline void GenesisConsensusDpos::set_dynasty(int index, const ::std::string& value) { 913 // @@protoc_insertion_point(field_set:corepb.GenesisConsensusDpos.dynasty) 914 dynasty_.Mutable(index)->assign(value); 915 } 916 #if LANG_CXX11 917 inline void GenesisConsensusDpos::set_dynasty(int index, ::std::string&& value) { 918 // @@protoc_insertion_point(field_set:corepb.GenesisConsensusDpos.dynasty) 919 dynasty_.Mutable(index)->assign(std::move(value)); 920 } 921 #endif 922 inline void GenesisConsensusDpos::set_dynasty(int index, const char* value) { 923 GOOGLE_DCHECK(value != NULL); 924 dynasty_.Mutable(index)->assign(value); 925 // @@protoc_insertion_point(field_set_char:corepb.GenesisConsensusDpos.dynasty) 926 } 927 inline void GenesisConsensusDpos::set_dynasty(int index, const char* value, size_t size) { 928 dynasty_.Mutable(index)->assign( 929 reinterpret_cast<const char*>(value), size); 930 // @@protoc_insertion_point(field_set_pointer:corepb.GenesisConsensusDpos.dynasty) 931 } 932 inline ::std::string* GenesisConsensusDpos::add_dynasty() { 933 // @@protoc_insertion_point(field_add_mutable:corepb.GenesisConsensusDpos.dynasty) 934 return dynasty_.Add(); 935 } 936 inline void GenesisConsensusDpos::add_dynasty(const ::std::string& value) { 937 dynasty_.Add()->assign(value); 938 // @@protoc_insertion_point(field_add:corepb.GenesisConsensusDpos.dynasty) 939 } 940 #if LANG_CXX11 941 inline void GenesisConsensusDpos::add_dynasty(::std::string&& value) { 942 dynasty_.Add(std::move(value)); 943 // @@protoc_insertion_point(field_add:corepb.GenesisConsensusDpos.dynasty) 944 } 945 #endif 946 inline void GenesisConsensusDpos::add_dynasty(const char* value) { 947 GOOGLE_DCHECK(value != NULL); 948 dynasty_.Add()->assign(value); 949 // @@protoc_insertion_point(field_add_char:corepb.GenesisConsensusDpos.dynasty) 950 } 951 inline void GenesisConsensusDpos::add_dynasty(const char* value, size_t size) { 952 dynasty_.Add()->assign(reinterpret_cast<const char*>(value), size); 953 // @@protoc_insertion_point(field_add_pointer:corepb.GenesisConsensusDpos.dynasty) 954 } 955 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& 956 GenesisConsensusDpos::dynasty() const { 957 // @@protoc_insertion_point(field_list:corepb.GenesisConsensusDpos.dynasty) 958 return dynasty_; 959 } 960 inline ::google::protobuf::RepeatedPtrField< ::std::string>* 961 GenesisConsensusDpos::mutable_dynasty() { 962 // @@protoc_insertion_point(field_mutable_list:corepb.GenesisConsensusDpos.dynasty) 963 return &dynasty_; 964 } 965 966 // ------------------------------------------------------------------- 967 968 // GenesisTokenDistribution 969 970 // string address = 1; 971 inline void GenesisTokenDistribution::clear_address() { 972 address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 973 } 974 inline const ::std::string& GenesisTokenDistribution::address() const { 975 // @@protoc_insertion_point(field_get:corepb.GenesisTokenDistribution.address) 976 return address_.GetNoArena(); 977 } 978 inline void GenesisTokenDistribution::set_address(const ::std::string& value) { 979 980 address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 981 // @@protoc_insertion_point(field_set:corepb.GenesisTokenDistribution.address) 982 } 983 #if LANG_CXX11 984 inline void GenesisTokenDistribution::set_address(::std::string&& value) { 985 986 address_.SetNoArena( 987 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 988 // @@protoc_insertion_point(field_set_rvalue:corepb.GenesisTokenDistribution.address) 989 } 990 #endif 991 inline void GenesisTokenDistribution::set_address(const char* value) { 992 GOOGLE_DCHECK(value != NULL); 993 994 address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 995 // @@protoc_insertion_point(field_set_char:corepb.GenesisTokenDistribution.address) 996 } 997 inline void GenesisTokenDistribution::set_address(const char* value, size_t size) { 998 999 address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1000 ::std::string(reinterpret_cast<const char*>(value), size)); 1001 // @@protoc_insertion_point(field_set_pointer:corepb.GenesisTokenDistribution.address) 1002 } 1003 inline ::std::string* GenesisTokenDistribution::mutable_address() { 1004 1005 // @@protoc_insertion_point(field_mutable:corepb.GenesisTokenDistribution.address) 1006 return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1007 } 1008 inline ::std::string* GenesisTokenDistribution::release_address() { 1009 // @@protoc_insertion_point(field_release:corepb.GenesisTokenDistribution.address) 1010 1011 return address_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1012 } 1013 inline void GenesisTokenDistribution::set_allocated_address(::std::string* address) { 1014 if (address != NULL) { 1015 1016 } else { 1017 1018 } 1019 address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address); 1020 // @@protoc_insertion_point(field_set_allocated:corepb.GenesisTokenDistribution.address) 1021 } 1022 1023 // string value = 2; 1024 inline void GenesisTokenDistribution::clear_value() { 1025 value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1026 } 1027 inline const ::std::string& GenesisTokenDistribution::value() const { 1028 // @@protoc_insertion_point(field_get:corepb.GenesisTokenDistribution.value) 1029 return value_.GetNoArena(); 1030 } 1031 inline void GenesisTokenDistribution::set_value(const ::std::string& value) { 1032 1033 value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1034 // @@protoc_insertion_point(field_set:corepb.GenesisTokenDistribution.value) 1035 } 1036 #if LANG_CXX11 1037 inline void GenesisTokenDistribution::set_value(::std::string&& value) { 1038 1039 value_.SetNoArena( 1040 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 1041 // @@protoc_insertion_point(field_set_rvalue:corepb.GenesisTokenDistribution.value) 1042 } 1043 #endif 1044 inline void GenesisTokenDistribution::set_value(const char* value) { 1045 GOOGLE_DCHECK(value != NULL); 1046 1047 value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1048 // @@protoc_insertion_point(field_set_char:corepb.GenesisTokenDistribution.value) 1049 } 1050 inline void GenesisTokenDistribution::set_value(const char* value, size_t size) { 1051 1052 value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1053 ::std::string(reinterpret_cast<const char*>(value), size)); 1054 // @@protoc_insertion_point(field_set_pointer:corepb.GenesisTokenDistribution.value) 1055 } 1056 inline ::std::string* GenesisTokenDistribution::mutable_value() { 1057 1058 // @@protoc_insertion_point(field_mutable:corepb.GenesisTokenDistribution.value) 1059 return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1060 } 1061 inline ::std::string* GenesisTokenDistribution::release_value() { 1062 // @@protoc_insertion_point(field_release:corepb.GenesisTokenDistribution.value) 1063 1064 return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1065 } 1066 inline void GenesisTokenDistribution::set_allocated_value(::std::string* value) { 1067 if (value != NULL) { 1068 1069 } else { 1070 1071 } 1072 value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1073 // @@protoc_insertion_point(field_set_allocated:corepb.GenesisTokenDistribution.value) 1074 } 1075 1076 #ifdef __GNUC__ 1077 #pragma GCC diagnostic pop 1078 #endif // __GNUC__ 1079 // ------------------------------------------------------------------- 1080 1081 // ------------------------------------------------------------------- 1082 1083 // ------------------------------------------------------------------- 1084 1085 // ------------------------------------------------------------------- 1086 1087 1088 // @@protoc_insertion_point(namespace_scope) 1089 1090 } // namespace corepb 1091 1092 // @@protoc_insertion_point(global_scope) 1093 1094 #endif // PROTOBUF_INCLUDED_genesis_2eproto