github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/c-deps/libroach/protos/storage/enginepb/file_registry.pb.h (about) 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: storage/enginepb/file_registry.proto 3 4 #ifndef PROTOBUF_INCLUDED_storage_2fenginepb_2ffile_5fregistry_2eproto 5 #define PROTOBUF_INCLUDED_storage_2fenginepb_2ffile_5fregistry_2eproto 6 7 #include <string> 8 9 #include <google/protobuf/stubs/common.h> 10 11 #if GOOGLE_PROTOBUF_VERSION < 3006000 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 3006000 < 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_lite.h> 29 #include <google/protobuf/message_lite.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/map.h> // IWYU pragma: export 33 #include <google/protobuf/map_entry_lite.h> 34 #include <google/protobuf/map_field_lite.h> 35 #include <google/protobuf/generated_enum_util.h> 36 // @@protoc_insertion_point(includes) 37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto 38 39 namespace protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto { 40 // Internal implementation detail -- do not use these members. 41 struct TableStruct { 42 static const ::google::protobuf::internal::ParseTableField entries[]; 43 static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; 44 static const ::google::protobuf::internal::ParseTable schema[3]; 45 static const ::google::protobuf::internal::FieldMetadata field_metadata[]; 46 static const ::google::protobuf::internal::SerializationTable serialization_table[]; 47 static const ::google::protobuf::uint32 offsets[]; 48 }; 49 } // namespace protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto 50 namespace cockroach { 51 namespace storage { 52 namespace enginepb { 53 class FileEntry; 54 class FileEntryDefaultTypeInternal; 55 extern FileEntryDefaultTypeInternal _FileEntry_default_instance_; 56 class FileRegistry; 57 class FileRegistryDefaultTypeInternal; 58 extern FileRegistryDefaultTypeInternal _FileRegistry_default_instance_; 59 class FileRegistry_FilesEntry_DoNotUse; 60 class FileRegistry_FilesEntry_DoNotUseDefaultTypeInternal; 61 extern FileRegistry_FilesEntry_DoNotUseDefaultTypeInternal _FileRegistry_FilesEntry_DoNotUse_default_instance_; 62 } // namespace enginepb 63 } // namespace storage 64 } // namespace cockroach 65 namespace google { 66 namespace protobuf { 67 template<> ::cockroach::storage::enginepb::FileEntry* Arena::CreateMaybeMessage<::cockroach::storage::enginepb::FileEntry>(Arena*); 68 template<> ::cockroach::storage::enginepb::FileRegistry* Arena::CreateMaybeMessage<::cockroach::storage::enginepb::FileRegistry>(Arena*); 69 template<> ::cockroach::storage::enginepb::FileRegistry_FilesEntry_DoNotUse* Arena::CreateMaybeMessage<::cockroach::storage::enginepb::FileRegistry_FilesEntry_DoNotUse>(Arena*); 70 } // namespace protobuf 71 } // namespace google 72 namespace cockroach { 73 namespace storage { 74 namespace enginepb { 75 76 enum RegistryVersion { 77 Base = 0, 78 RegistryVersion_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, 79 RegistryVersion_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max 80 }; 81 bool RegistryVersion_IsValid(int value); 82 const RegistryVersion RegistryVersion_MIN = Base; 83 const RegistryVersion RegistryVersion_MAX = Base; 84 const int RegistryVersion_ARRAYSIZE = RegistryVersion_MAX + 1; 85 86 enum EnvType { 87 Plaintext = 0, 88 Store = 1, 89 Data = 2, 90 EnvType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, 91 EnvType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max 92 }; 93 bool EnvType_IsValid(int value); 94 const EnvType EnvType_MIN = Plaintext; 95 const EnvType EnvType_MAX = Data; 96 const int EnvType_ARRAYSIZE = EnvType_MAX + 1; 97 98 // =================================================================== 99 100 class FileRegistry_FilesEntry_DoNotUse : public ::google::protobuf::internal::MapEntryLite<FileRegistry_FilesEntry_DoNotUse, 101 ::std::string, ::cockroach::storage::enginepb::FileEntry, 102 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 103 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 104 0 > { 105 public: 106 typedef ::google::protobuf::internal::MapEntryLite<FileRegistry_FilesEntry_DoNotUse, 107 ::std::string, ::cockroach::storage::enginepb::FileEntry, 108 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 109 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 110 0 > SuperType; 111 FileRegistry_FilesEntry_DoNotUse(); 112 FileRegistry_FilesEntry_DoNotUse(::google::protobuf::Arena* arena); 113 void MergeFrom(const FileRegistry_FilesEntry_DoNotUse& other); 114 static const FileRegistry_FilesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const FileRegistry_FilesEntry_DoNotUse*>(&_FileRegistry_FilesEntry_DoNotUse_default_instance_); } 115 }; 116 117 // ------------------------------------------------------------------- 118 119 class FileRegistry : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.storage.enginepb.FileRegistry) */ { 120 public: 121 FileRegistry(); 122 virtual ~FileRegistry(); 123 124 FileRegistry(const FileRegistry& from); 125 126 inline FileRegistry& operator=(const FileRegistry& from) { 127 CopyFrom(from); 128 return *this; 129 } 130 #if LANG_CXX11 131 FileRegistry(FileRegistry&& from) noexcept 132 : FileRegistry() { 133 *this = ::std::move(from); 134 } 135 136 inline FileRegistry& operator=(FileRegistry&& from) noexcept { 137 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 138 if (this != &from) InternalSwap(&from); 139 } else { 140 CopyFrom(from); 141 } 142 return *this; 143 } 144 #endif 145 static const FileRegistry& default_instance(); 146 147 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 148 static inline const FileRegistry* internal_default_instance() { 149 return reinterpret_cast<const FileRegistry*>( 150 &_FileRegistry_default_instance_); 151 } 152 static constexpr int kIndexInFileMessages = 153 1; 154 155 void Swap(FileRegistry* other); 156 friend void swap(FileRegistry& a, FileRegistry& b) { 157 a.Swap(&b); 158 } 159 160 // implements Message ---------------------------------------------- 161 162 inline FileRegistry* New() const final { 163 return CreateMaybeMessage<FileRegistry>(NULL); 164 } 165 166 FileRegistry* New(::google::protobuf::Arena* arena) const final { 167 return CreateMaybeMessage<FileRegistry>(arena); 168 } 169 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 170 final; 171 void CopyFrom(const FileRegistry& from); 172 void MergeFrom(const FileRegistry& from); 173 void Clear() final; 174 bool IsInitialized() const final; 175 176 size_t ByteSizeLong() const final; 177 bool MergePartialFromCodedStream( 178 ::google::protobuf::io::CodedInputStream* input) final; 179 void SerializeWithCachedSizes( 180 ::google::protobuf::io::CodedOutputStream* output) const final; 181 void DiscardUnknownFields(); 182 int GetCachedSize() const final { return _cached_size_.Get(); } 183 184 private: 185 void SharedCtor(); 186 void SharedDtor(); 187 void SetCachedSize(int size) const; 188 void InternalSwap(FileRegistry* other); 189 private: 190 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 191 return NULL; 192 } 193 inline void* MaybeArenaPtr() const { 194 return NULL; 195 } 196 public: 197 198 ::std::string GetTypeName() const final; 199 200 // nested types ---------------------------------------------------- 201 202 203 // accessors ------------------------------------------------------- 204 205 // map<string, .cockroach.storage.enginepb.FileEntry> files = 2; 206 int files_size() const; 207 void clear_files(); 208 static const int kFilesFieldNumber = 2; 209 const ::google::protobuf::Map< ::std::string, ::cockroach::storage::enginepb::FileEntry >& 210 files() const; 211 ::google::protobuf::Map< ::std::string, ::cockroach::storage::enginepb::FileEntry >* 212 mutable_files(); 213 214 // .cockroach.storage.enginepb.RegistryVersion version = 1; 215 void clear_version(); 216 static const int kVersionFieldNumber = 1; 217 ::cockroach::storage::enginepb::RegistryVersion version() const; 218 void set_version(::cockroach::storage::enginepb::RegistryVersion value); 219 220 // @@protoc_insertion_point(class_scope:cockroach.storage.enginepb.FileRegistry) 221 private: 222 223 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 224 ::google::protobuf::internal::MapFieldLite< 225 FileRegistry_FilesEntry_DoNotUse, 226 ::std::string, ::cockroach::storage::enginepb::FileEntry, 227 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 228 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 229 0 > files_; 230 int version_; 231 mutable ::google::protobuf::internal::CachedSize _cached_size_; 232 friend struct ::protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto::TableStruct; 233 }; 234 // ------------------------------------------------------------------- 235 236 class FileEntry : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.storage.enginepb.FileEntry) */ { 237 public: 238 FileEntry(); 239 virtual ~FileEntry(); 240 241 FileEntry(const FileEntry& from); 242 243 inline FileEntry& operator=(const FileEntry& from) { 244 CopyFrom(from); 245 return *this; 246 } 247 #if LANG_CXX11 248 FileEntry(FileEntry&& from) noexcept 249 : FileEntry() { 250 *this = ::std::move(from); 251 } 252 253 inline FileEntry& operator=(FileEntry&& from) noexcept { 254 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 255 if (this != &from) InternalSwap(&from); 256 } else { 257 CopyFrom(from); 258 } 259 return *this; 260 } 261 #endif 262 static const FileEntry& default_instance(); 263 264 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 265 static inline const FileEntry* internal_default_instance() { 266 return reinterpret_cast<const FileEntry*>( 267 &_FileEntry_default_instance_); 268 } 269 static constexpr int kIndexInFileMessages = 270 2; 271 272 void Swap(FileEntry* other); 273 friend void swap(FileEntry& a, FileEntry& b) { 274 a.Swap(&b); 275 } 276 277 // implements Message ---------------------------------------------- 278 279 inline FileEntry* New() const final { 280 return CreateMaybeMessage<FileEntry>(NULL); 281 } 282 283 FileEntry* New(::google::protobuf::Arena* arena) const final { 284 return CreateMaybeMessage<FileEntry>(arena); 285 } 286 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 287 final; 288 void CopyFrom(const FileEntry& from); 289 void MergeFrom(const FileEntry& from); 290 void Clear() final; 291 bool IsInitialized() const final; 292 293 size_t ByteSizeLong() const final; 294 bool MergePartialFromCodedStream( 295 ::google::protobuf::io::CodedInputStream* input) final; 296 void SerializeWithCachedSizes( 297 ::google::protobuf::io::CodedOutputStream* output) const final; 298 void DiscardUnknownFields(); 299 int GetCachedSize() const final { return _cached_size_.Get(); } 300 301 private: 302 void SharedCtor(); 303 void SharedDtor(); 304 void SetCachedSize(int size) const; 305 void InternalSwap(FileEntry* other); 306 private: 307 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 308 return NULL; 309 } 310 inline void* MaybeArenaPtr() const { 311 return NULL; 312 } 313 public: 314 315 ::std::string GetTypeName() const final; 316 317 // nested types ---------------------------------------------------- 318 319 // accessors ------------------------------------------------------- 320 321 // bytes encryption_settings = 2; 322 void clear_encryption_settings(); 323 static const int kEncryptionSettingsFieldNumber = 2; 324 const ::std::string& encryption_settings() const; 325 void set_encryption_settings(const ::std::string& value); 326 #if LANG_CXX11 327 void set_encryption_settings(::std::string&& value); 328 #endif 329 void set_encryption_settings(const char* value); 330 void set_encryption_settings(const void* value, size_t size); 331 ::std::string* mutable_encryption_settings(); 332 ::std::string* release_encryption_settings(); 333 void set_allocated_encryption_settings(::std::string* encryption_settings); 334 335 // .cockroach.storage.enginepb.EnvType env_type = 1; 336 void clear_env_type(); 337 static const int kEnvTypeFieldNumber = 1; 338 ::cockroach::storage::enginepb::EnvType env_type() const; 339 void set_env_type(::cockroach::storage::enginepb::EnvType value); 340 341 // @@protoc_insertion_point(class_scope:cockroach.storage.enginepb.FileEntry) 342 private: 343 344 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 345 ::google::protobuf::internal::ArenaStringPtr encryption_settings_; 346 int env_type_; 347 mutable ::google::protobuf::internal::CachedSize _cached_size_; 348 friend struct ::protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto::TableStruct; 349 }; 350 // =================================================================== 351 352 353 // =================================================================== 354 355 #ifdef __GNUC__ 356 #pragma GCC diagnostic push 357 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 358 #endif // __GNUC__ 359 // ------------------------------------------------------------------- 360 361 // FileRegistry 362 363 // .cockroach.storage.enginepb.RegistryVersion version = 1; 364 inline void FileRegistry::clear_version() { 365 version_ = 0; 366 } 367 inline ::cockroach::storage::enginepb::RegistryVersion FileRegistry::version() const { 368 // @@protoc_insertion_point(field_get:cockroach.storage.enginepb.FileRegistry.version) 369 return static_cast< ::cockroach::storage::enginepb::RegistryVersion >(version_); 370 } 371 inline void FileRegistry::set_version(::cockroach::storage::enginepb::RegistryVersion value) { 372 373 version_ = value; 374 // @@protoc_insertion_point(field_set:cockroach.storage.enginepb.FileRegistry.version) 375 } 376 377 // map<string, .cockroach.storage.enginepb.FileEntry> files = 2; 378 inline int FileRegistry::files_size() const { 379 return files_.size(); 380 } 381 inline void FileRegistry::clear_files() { 382 files_.Clear(); 383 } 384 inline const ::google::protobuf::Map< ::std::string, ::cockroach::storage::enginepb::FileEntry >& 385 FileRegistry::files() const { 386 // @@protoc_insertion_point(field_map:cockroach.storage.enginepb.FileRegistry.files) 387 return files_.GetMap(); 388 } 389 inline ::google::protobuf::Map< ::std::string, ::cockroach::storage::enginepb::FileEntry >* 390 FileRegistry::mutable_files() { 391 // @@protoc_insertion_point(field_mutable_map:cockroach.storage.enginepb.FileRegistry.files) 392 return files_.MutableMap(); 393 } 394 395 // ------------------------------------------------------------------- 396 397 // FileEntry 398 399 // .cockroach.storage.enginepb.EnvType env_type = 1; 400 inline void FileEntry::clear_env_type() { 401 env_type_ = 0; 402 } 403 inline ::cockroach::storage::enginepb::EnvType FileEntry::env_type() const { 404 // @@protoc_insertion_point(field_get:cockroach.storage.enginepb.FileEntry.env_type) 405 return static_cast< ::cockroach::storage::enginepb::EnvType >(env_type_); 406 } 407 inline void FileEntry::set_env_type(::cockroach::storage::enginepb::EnvType value) { 408 409 env_type_ = value; 410 // @@protoc_insertion_point(field_set:cockroach.storage.enginepb.FileEntry.env_type) 411 } 412 413 // bytes encryption_settings = 2; 414 inline void FileEntry::clear_encryption_settings() { 415 encryption_settings_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 416 } 417 inline const ::std::string& FileEntry::encryption_settings() const { 418 // @@protoc_insertion_point(field_get:cockroach.storage.enginepb.FileEntry.encryption_settings) 419 return encryption_settings_.GetNoArena(); 420 } 421 inline void FileEntry::set_encryption_settings(const ::std::string& value) { 422 423 encryption_settings_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 424 // @@protoc_insertion_point(field_set:cockroach.storage.enginepb.FileEntry.encryption_settings) 425 } 426 #if LANG_CXX11 427 inline void FileEntry::set_encryption_settings(::std::string&& value) { 428 429 encryption_settings_.SetNoArena( 430 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 431 // @@protoc_insertion_point(field_set_rvalue:cockroach.storage.enginepb.FileEntry.encryption_settings) 432 } 433 #endif 434 inline void FileEntry::set_encryption_settings(const char* value) { 435 GOOGLE_DCHECK(value != NULL); 436 437 encryption_settings_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 438 // @@protoc_insertion_point(field_set_char:cockroach.storage.enginepb.FileEntry.encryption_settings) 439 } 440 inline void FileEntry::set_encryption_settings(const void* value, size_t size) { 441 442 encryption_settings_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 443 ::std::string(reinterpret_cast<const char*>(value), size)); 444 // @@protoc_insertion_point(field_set_pointer:cockroach.storage.enginepb.FileEntry.encryption_settings) 445 } 446 inline ::std::string* FileEntry::mutable_encryption_settings() { 447 448 // @@protoc_insertion_point(field_mutable:cockroach.storage.enginepb.FileEntry.encryption_settings) 449 return encryption_settings_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 450 } 451 inline ::std::string* FileEntry::release_encryption_settings() { 452 // @@protoc_insertion_point(field_release:cockroach.storage.enginepb.FileEntry.encryption_settings) 453 454 return encryption_settings_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 455 } 456 inline void FileEntry::set_allocated_encryption_settings(::std::string* encryption_settings) { 457 if (encryption_settings != NULL) { 458 459 } else { 460 461 } 462 encryption_settings_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), encryption_settings); 463 // @@protoc_insertion_point(field_set_allocated:cockroach.storage.enginepb.FileEntry.encryption_settings) 464 } 465 466 #ifdef __GNUC__ 467 #pragma GCC diagnostic pop 468 #endif // __GNUC__ 469 // ------------------------------------------------------------------- 470 471 // ------------------------------------------------------------------- 472 473 474 // @@protoc_insertion_point(namespace_scope) 475 476 } // namespace enginepb 477 } // namespace storage 478 } // namespace cockroach 479 480 namespace google { 481 namespace protobuf { 482 483 template <> struct is_proto_enum< ::cockroach::storage::enginepb::RegistryVersion> : ::std::true_type {}; 484 template <> struct is_proto_enum< ::cockroach::storage::enginepb::EnvType> : ::std::true_type {}; 485 486 } // namespace protobuf 487 } // namespace google 488 489 // @@protoc_insertion_point(global_scope) 490 491 #endif // PROTOBUF_INCLUDED_storage_2fenginepb_2ffile_5fregistry_2eproto