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