github.com/igggame/nebulas-go@v2.1.0+incompatible/nbre/fs/proto/state.pb.h (about) 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: state.proto 3 4 #ifndef PROTOBUF_INCLUDED_state_2eproto 5 #define PROTOBUF_INCLUDED_state_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_state_2eproto 35 36 namespace protobuf_state_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_state_2eproto 48 namespace consensuspb { 49 class ConsensusRoot; 50 class ConsensusRootDefaultTypeInternal; 51 extern ConsensusRootDefaultTypeInternal _ConsensusRoot_default_instance_; 52 } // namespace consensuspb 53 namespace google { 54 namespace protobuf { 55 template<> ::consensuspb::ConsensusRoot* Arena::CreateMaybeMessage<::consensuspb::ConsensusRoot>(Arena*); 56 } // namespace protobuf 57 } // namespace google 58 namespace consensuspb { 59 60 // =================================================================== 61 62 class ConsensusRoot : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:consensuspb.ConsensusRoot) */ { 63 public: 64 ConsensusRoot(); 65 virtual ~ConsensusRoot(); 66 67 ConsensusRoot(const ConsensusRoot& from); 68 69 inline ConsensusRoot& operator=(const ConsensusRoot& from) { 70 CopyFrom(from); 71 return *this; 72 } 73 #if LANG_CXX11 74 ConsensusRoot(ConsensusRoot&& from) noexcept 75 : ConsensusRoot() { 76 *this = ::std::move(from); 77 } 78 79 inline ConsensusRoot& operator=(ConsensusRoot&& 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 ConsensusRoot& default_instance(); 90 91 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 92 static inline const ConsensusRoot* internal_default_instance() { 93 return reinterpret_cast<const ConsensusRoot*>( 94 &_ConsensusRoot_default_instance_); 95 } 96 static constexpr int kIndexInFileMessages = 97 0; 98 99 void Swap(ConsensusRoot* other); 100 friend void swap(ConsensusRoot& a, ConsensusRoot& b) { 101 a.Swap(&b); 102 } 103 104 // implements Message ---------------------------------------------- 105 106 inline ConsensusRoot* New() const final { 107 return CreateMaybeMessage<ConsensusRoot>(NULL); 108 } 109 110 ConsensusRoot* New(::google::protobuf::Arena* arena) const final { 111 return CreateMaybeMessage<ConsensusRoot>(arena); 112 } 113 void CopyFrom(const ::google::protobuf::Message& from) final; 114 void MergeFrom(const ::google::protobuf::Message& from) final; 115 void CopyFrom(const ConsensusRoot& from); 116 void MergeFrom(const ConsensusRoot& 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(ConsensusRoot* 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 // bytes proposer = 2; 150 void clear_proposer(); 151 static const int kProposerFieldNumber = 2; 152 const ::std::string& proposer() const; 153 void set_proposer(const ::std::string& value); 154 #if LANG_CXX11 155 void set_proposer(::std::string&& value); 156 #endif 157 void set_proposer(const char* value); 158 void set_proposer(const void* value, size_t size); 159 ::std::string* mutable_proposer(); 160 ::std::string* release_proposer(); 161 void set_allocated_proposer(::std::string* proposer); 162 163 // bytes dynasty_root = 3; 164 void clear_dynasty_root(); 165 static const int kDynastyRootFieldNumber = 3; 166 const ::std::string& dynasty_root() const; 167 void set_dynasty_root(const ::std::string& value); 168 #if LANG_CXX11 169 void set_dynasty_root(::std::string&& value); 170 #endif 171 void set_dynasty_root(const char* value); 172 void set_dynasty_root(const void* value, size_t size); 173 ::std::string* mutable_dynasty_root(); 174 ::std::string* release_dynasty_root(); 175 void set_allocated_dynasty_root(::std::string* dynasty_root); 176 177 // int64 timestamp = 1; 178 void clear_timestamp(); 179 static const int kTimestampFieldNumber = 1; 180 ::google::protobuf::int64 timestamp() const; 181 void set_timestamp(::google::protobuf::int64 value); 182 183 // @@protoc_insertion_point(class_scope:consensuspb.ConsensusRoot) 184 private: 185 186 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; 187 ::google::protobuf::internal::ArenaStringPtr proposer_; 188 ::google::protobuf::internal::ArenaStringPtr dynasty_root_; 189 ::google::protobuf::int64 timestamp_; 190 mutable ::google::protobuf::internal::CachedSize _cached_size_; 191 friend struct ::protobuf_state_2eproto::TableStruct; 192 }; 193 // =================================================================== 194 195 196 // =================================================================== 197 198 #ifdef __GNUC__ 199 #pragma GCC diagnostic push 200 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 201 #endif // __GNUC__ 202 // ConsensusRoot 203 204 // int64 timestamp = 1; 205 inline void ConsensusRoot::clear_timestamp() { 206 timestamp_ = GOOGLE_LONGLONG(0); 207 } 208 inline ::google::protobuf::int64 ConsensusRoot::timestamp() const { 209 // @@protoc_insertion_point(field_get:consensuspb.ConsensusRoot.timestamp) 210 return timestamp_; 211 } 212 inline void ConsensusRoot::set_timestamp(::google::protobuf::int64 value) { 213 214 timestamp_ = value; 215 // @@protoc_insertion_point(field_set:consensuspb.ConsensusRoot.timestamp) 216 } 217 218 // bytes proposer = 2; 219 inline void ConsensusRoot::clear_proposer() { 220 proposer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 221 } 222 inline const ::std::string& ConsensusRoot::proposer() const { 223 // @@protoc_insertion_point(field_get:consensuspb.ConsensusRoot.proposer) 224 return proposer_.GetNoArena(); 225 } 226 inline void ConsensusRoot::set_proposer(const ::std::string& value) { 227 228 proposer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 229 // @@protoc_insertion_point(field_set:consensuspb.ConsensusRoot.proposer) 230 } 231 #if LANG_CXX11 232 inline void ConsensusRoot::set_proposer(::std::string&& value) { 233 234 proposer_.SetNoArena( 235 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 236 // @@protoc_insertion_point(field_set_rvalue:consensuspb.ConsensusRoot.proposer) 237 } 238 #endif 239 inline void ConsensusRoot::set_proposer(const char* value) { 240 GOOGLE_DCHECK(value != NULL); 241 242 proposer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 243 // @@protoc_insertion_point(field_set_char:consensuspb.ConsensusRoot.proposer) 244 } 245 inline void ConsensusRoot::set_proposer(const void* value, size_t size) { 246 247 proposer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 248 ::std::string(reinterpret_cast<const char*>(value), size)); 249 // @@protoc_insertion_point(field_set_pointer:consensuspb.ConsensusRoot.proposer) 250 } 251 inline ::std::string* ConsensusRoot::mutable_proposer() { 252 253 // @@protoc_insertion_point(field_mutable:consensuspb.ConsensusRoot.proposer) 254 return proposer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 255 } 256 inline ::std::string* ConsensusRoot::release_proposer() { 257 // @@protoc_insertion_point(field_release:consensuspb.ConsensusRoot.proposer) 258 259 return proposer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 260 } 261 inline void ConsensusRoot::set_allocated_proposer(::std::string* proposer) { 262 if (proposer != NULL) { 263 264 } else { 265 266 } 267 proposer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), proposer); 268 // @@protoc_insertion_point(field_set_allocated:consensuspb.ConsensusRoot.proposer) 269 } 270 271 // bytes dynasty_root = 3; 272 inline void ConsensusRoot::clear_dynasty_root() { 273 dynasty_root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 274 } 275 inline const ::std::string& ConsensusRoot::dynasty_root() const { 276 // @@protoc_insertion_point(field_get:consensuspb.ConsensusRoot.dynasty_root) 277 return dynasty_root_.GetNoArena(); 278 } 279 inline void ConsensusRoot::set_dynasty_root(const ::std::string& value) { 280 281 dynasty_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 282 // @@protoc_insertion_point(field_set:consensuspb.ConsensusRoot.dynasty_root) 283 } 284 #if LANG_CXX11 285 inline void ConsensusRoot::set_dynasty_root(::std::string&& value) { 286 287 dynasty_root_.SetNoArena( 288 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 289 // @@protoc_insertion_point(field_set_rvalue:consensuspb.ConsensusRoot.dynasty_root) 290 } 291 #endif 292 inline void ConsensusRoot::set_dynasty_root(const char* value) { 293 GOOGLE_DCHECK(value != NULL); 294 295 dynasty_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 296 // @@protoc_insertion_point(field_set_char:consensuspb.ConsensusRoot.dynasty_root) 297 } 298 inline void ConsensusRoot::set_dynasty_root(const void* value, size_t size) { 299 300 dynasty_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 301 ::std::string(reinterpret_cast<const char*>(value), size)); 302 // @@protoc_insertion_point(field_set_pointer:consensuspb.ConsensusRoot.dynasty_root) 303 } 304 inline ::std::string* ConsensusRoot::mutable_dynasty_root() { 305 306 // @@protoc_insertion_point(field_mutable:consensuspb.ConsensusRoot.dynasty_root) 307 return dynasty_root_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 308 } 309 inline ::std::string* ConsensusRoot::release_dynasty_root() { 310 // @@protoc_insertion_point(field_release:consensuspb.ConsensusRoot.dynasty_root) 311 312 return dynasty_root_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 313 } 314 inline void ConsensusRoot::set_allocated_dynasty_root(::std::string* dynasty_root) { 315 if (dynasty_root != NULL) { 316 317 } else { 318 319 } 320 dynasty_root_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dynasty_root); 321 // @@protoc_insertion_point(field_set_allocated:consensuspb.ConsensusRoot.dynasty_root) 322 } 323 324 #ifdef __GNUC__ 325 #pragma GCC diagnostic pop 326 #endif // __GNUC__ 327 328 // @@protoc_insertion_point(namespace_scope) 329 330 } // namespace consensuspb 331 332 // @@protoc_insertion_point(global_scope) 333 334 #endif // PROTOBUF_INCLUDED_state_2eproto