github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/c-deps/libroach/protos/storage/enginepb/mvcc.pb.cc (about) 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: storage/enginepb/mvcc.proto 3 4 #include "storage/enginepb/mvcc.pb.h" 5 6 #include <algorithm> 7 8 #include <google/protobuf/stubs/common.h> 9 #include <google/protobuf/stubs/port.h> 10 #include <google/protobuf/io/coded_stream.h> 11 #include <google/protobuf/wire_format_lite_inl.h> 12 #include <google/protobuf/io/zero_copy_stream_impl_lite.h> 13 // This is a temporary google only hack 14 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS 15 #include "third_party/protobuf/version.h" 16 #endif 17 // @@protoc_insertion_point(includes) 18 19 namespace protobuf_storage_2fenginepb_2fmvcc3_2eproto { 20 extern PROTOBUF_INTERNAL_EXPORT_protobuf_storage_2fenginepb_2fmvcc3_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TxnMeta; 21 } // namespace protobuf_storage_2fenginepb_2fmvcc3_2eproto 22 namespace protobuf_storage_2fenginepb_2fmvcc_2eproto { 23 extern PROTOBUF_INTERNAL_EXPORT_protobuf_storage_2fenginepb_2fmvcc_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MVCCMetadata_SequencedIntent; 24 } // namespace protobuf_storage_2fenginepb_2fmvcc_2eproto 25 namespace protobuf_util_2fhlc_2flegacy_5ftimestamp_2eproto { 26 extern PROTOBUF_INTERNAL_EXPORT_protobuf_util_2fhlc_2flegacy_5ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_LegacyTimestamp; 27 } // namespace protobuf_util_2fhlc_2flegacy_5ftimestamp_2eproto 28 namespace cockroach { 29 namespace storage { 30 namespace enginepb { 31 class MVCCMetadata_SequencedIntentDefaultTypeInternal { 32 public: 33 ::google::protobuf::internal::ExplicitlyConstructed<MVCCMetadata_SequencedIntent> 34 _instance; 35 } _MVCCMetadata_SequencedIntent_default_instance_; 36 class MVCCMetadataDefaultTypeInternal { 37 public: 38 ::google::protobuf::internal::ExplicitlyConstructed<MVCCMetadata> 39 _instance; 40 } _MVCCMetadata_default_instance_; 41 class MVCCMetadataSubsetForMergeSerializationDefaultTypeInternal { 42 public: 43 ::google::protobuf::internal::ExplicitlyConstructed<MVCCMetadataSubsetForMergeSerialization> 44 _instance; 45 } _MVCCMetadataSubsetForMergeSerialization_default_instance_; 46 class MVCCStatsDefaultTypeInternal { 47 public: 48 ::google::protobuf::internal::ExplicitlyConstructed<MVCCStats> 49 _instance; 50 } _MVCCStats_default_instance_; 51 } // namespace enginepb 52 } // namespace storage 53 } // namespace cockroach 54 namespace protobuf_storage_2fenginepb_2fmvcc_2eproto { 55 static void InitDefaultsMVCCMetadata_SequencedIntent() { 56 GOOGLE_PROTOBUF_VERIFY_VERSION; 57 58 { 59 void* ptr = &::cockroach::storage::enginepb::_MVCCMetadata_SequencedIntent_default_instance_; 60 new (ptr) ::cockroach::storage::enginepb::MVCCMetadata_SequencedIntent(); 61 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); 62 } 63 ::cockroach::storage::enginepb::MVCCMetadata_SequencedIntent::InitAsDefaultInstance(); 64 } 65 66 ::google::protobuf::internal::SCCInfo<0> scc_info_MVCCMetadata_SequencedIntent = 67 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMVCCMetadata_SequencedIntent}, {}}; 68 69 static void InitDefaultsMVCCMetadata() { 70 GOOGLE_PROTOBUF_VERIFY_VERSION; 71 72 { 73 void* ptr = &::cockroach::storage::enginepb::_MVCCMetadata_default_instance_; 74 new (ptr) ::cockroach::storage::enginepb::MVCCMetadata(); 75 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); 76 } 77 ::cockroach::storage::enginepb::MVCCMetadata::InitAsDefaultInstance(); 78 } 79 80 ::google::protobuf::internal::SCCInfo<3> scc_info_MVCCMetadata = 81 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsMVCCMetadata}, { 82 &protobuf_storage_2fenginepb_2fmvcc3_2eproto::scc_info_TxnMeta.base, 83 &protobuf_util_2fhlc_2flegacy_5ftimestamp_2eproto::scc_info_LegacyTimestamp.base, 84 &protobuf_storage_2fenginepb_2fmvcc_2eproto::scc_info_MVCCMetadata_SequencedIntent.base,}}; 85 86 static void InitDefaultsMVCCMetadataSubsetForMergeSerialization() { 87 GOOGLE_PROTOBUF_VERIFY_VERSION; 88 89 { 90 void* ptr = &::cockroach::storage::enginepb::_MVCCMetadataSubsetForMergeSerialization_default_instance_; 91 new (ptr) ::cockroach::storage::enginepb::MVCCMetadataSubsetForMergeSerialization(); 92 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); 93 } 94 ::cockroach::storage::enginepb::MVCCMetadataSubsetForMergeSerialization::InitAsDefaultInstance(); 95 } 96 97 ::google::protobuf::internal::SCCInfo<1> scc_info_MVCCMetadataSubsetForMergeSerialization = 98 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMVCCMetadataSubsetForMergeSerialization}, { 99 &protobuf_util_2fhlc_2flegacy_5ftimestamp_2eproto::scc_info_LegacyTimestamp.base,}}; 100 101 static void InitDefaultsMVCCStats() { 102 GOOGLE_PROTOBUF_VERIFY_VERSION; 103 104 { 105 void* ptr = &::cockroach::storage::enginepb::_MVCCStats_default_instance_; 106 new (ptr) ::cockroach::storage::enginepb::MVCCStats(); 107 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); 108 } 109 ::cockroach::storage::enginepb::MVCCStats::InitAsDefaultInstance(); 110 } 111 112 ::google::protobuf::internal::SCCInfo<0> scc_info_MVCCStats = 113 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMVCCStats}, {}}; 114 115 void InitDefaults() { 116 ::google::protobuf::internal::InitSCC(&scc_info_MVCCMetadata_SequencedIntent.base); 117 ::google::protobuf::internal::InitSCC(&scc_info_MVCCMetadata.base); 118 ::google::protobuf::internal::InitSCC(&scc_info_MVCCMetadataSubsetForMergeSerialization.base); 119 ::google::protobuf::internal::InitSCC(&scc_info_MVCCStats.base); 120 } 121 122 } // namespace protobuf_storage_2fenginepb_2fmvcc_2eproto 123 namespace cockroach { 124 namespace storage { 125 namespace enginepb { 126 127 // =================================================================== 128 129 void MVCCMetadata_SequencedIntent::InitAsDefaultInstance() { 130 } 131 #if !defined(_MSC_VER) || _MSC_VER >= 1900 132 const int MVCCMetadata_SequencedIntent::kSequenceFieldNumber; 133 const int MVCCMetadata_SequencedIntent::kValueFieldNumber; 134 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 135 136 MVCCMetadata_SequencedIntent::MVCCMetadata_SequencedIntent() 137 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { 138 ::google::protobuf::internal::InitSCC( 139 &protobuf_storage_2fenginepb_2fmvcc_2eproto::scc_info_MVCCMetadata_SequencedIntent.base); 140 SharedCtor(); 141 // @@protoc_insertion_point(constructor:cockroach.storage.enginepb.MVCCMetadata.SequencedIntent) 142 } 143 MVCCMetadata_SequencedIntent::MVCCMetadata_SequencedIntent(const MVCCMetadata_SequencedIntent& from) 144 : ::google::protobuf::MessageLite(), 145 _internal_metadata_(NULL), 146 _has_bits_(from._has_bits_) { 147 _internal_metadata_.MergeFrom(from._internal_metadata_); 148 value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 149 if (from.has_value()) { 150 value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); 151 } 152 sequence_ = from.sequence_; 153 // @@protoc_insertion_point(copy_constructor:cockroach.storage.enginepb.MVCCMetadata.SequencedIntent) 154 } 155 156 void MVCCMetadata_SequencedIntent::SharedCtor() { 157 value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 158 sequence_ = 0; 159 } 160 161 MVCCMetadata_SequencedIntent::~MVCCMetadata_SequencedIntent() { 162 // @@protoc_insertion_point(destructor:cockroach.storage.enginepb.MVCCMetadata.SequencedIntent) 163 SharedDtor(); 164 } 165 166 void MVCCMetadata_SequencedIntent::SharedDtor() { 167 value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 168 } 169 170 void MVCCMetadata_SequencedIntent::SetCachedSize(int size) const { 171 _cached_size_.Set(size); 172 } 173 const MVCCMetadata_SequencedIntent& MVCCMetadata_SequencedIntent::default_instance() { 174 ::google::protobuf::internal::InitSCC(&protobuf_storage_2fenginepb_2fmvcc_2eproto::scc_info_MVCCMetadata_SequencedIntent.base); 175 return *internal_default_instance(); 176 } 177 178 179 void MVCCMetadata_SequencedIntent::Clear() { 180 // @@protoc_insertion_point(message_clear_start:cockroach.storage.enginepb.MVCCMetadata.SequencedIntent) 181 ::google::protobuf::uint32 cached_has_bits = 0; 182 // Prevent compiler warnings about cached_has_bits being unused 183 (void) cached_has_bits; 184 185 cached_has_bits = _has_bits_[0]; 186 if (cached_has_bits & 0x00000001u) { 187 value_.ClearNonDefaultToEmptyNoArena(); 188 } 189 sequence_ = 0; 190 _has_bits_.Clear(); 191 _internal_metadata_.Clear(); 192 } 193 194 bool MVCCMetadata_SequencedIntent::MergePartialFromCodedStream( 195 ::google::protobuf::io::CodedInputStream* input) { 196 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 197 ::google::protobuf::uint32 tag; 198 ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( 199 &_internal_metadata_); 200 ::google::protobuf::io::StringOutputStream unknown_fields_output( 201 unknown_fields_setter.buffer()); 202 ::google::protobuf::io::CodedOutputStream unknown_fields_stream( 203 &unknown_fields_output, false); 204 // @@protoc_insertion_point(parse_start:cockroach.storage.enginepb.MVCCMetadata.SequencedIntent) 205 for (;;) { 206 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); 207 tag = p.first; 208 if (!p.second) goto handle_unusual; 209 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 210 case 1: { 211 if (static_cast< ::google::protobuf::uint8>(tag) == 212 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { 213 set_has_sequence(); 214 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 215 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( 216 input, &sequence_))); 217 } else { 218 goto handle_unusual; 219 } 220 break; 221 } 222 223 // optional bytes value = 2; 224 case 2: { 225 if (static_cast< ::google::protobuf::uint8>(tag) == 226 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { 227 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( 228 input, this->mutable_value())); 229 } else { 230 goto handle_unusual; 231 } 232 break; 233 } 234 235 default: { 236 handle_unusual: 237 if (tag == 0) { 238 goto success; 239 } 240 DO_(::google::protobuf::internal::WireFormatLite::SkipField( 241 input, tag, &unknown_fields_stream)); 242 break; 243 } 244 } 245 } 246 success: 247 // @@protoc_insertion_point(parse_success:cockroach.storage.enginepb.MVCCMetadata.SequencedIntent) 248 return true; 249 failure: 250 // @@protoc_insertion_point(parse_failure:cockroach.storage.enginepb.MVCCMetadata.SequencedIntent) 251 return false; 252 #undef DO_ 253 } 254 255 void MVCCMetadata_SequencedIntent::SerializeWithCachedSizes( 256 ::google::protobuf::io::CodedOutputStream* output) const { 257 // @@protoc_insertion_point(serialize_start:cockroach.storage.enginepb.MVCCMetadata.SequencedIntent) 258 ::google::protobuf::uint32 cached_has_bits = 0; 259 (void) cached_has_bits; 260 261 cached_has_bits = _has_bits_[0]; 262 if (cached_has_bits & 0x00000002u) { 263 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->sequence(), output); 264 } 265 266 // optional bytes value = 2; 267 if (cached_has_bits & 0x00000001u) { 268 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( 269 2, this->value(), output); 270 } 271 272 output->WriteRaw(_internal_metadata_.unknown_fields().data(), 273 static_cast<int>(_internal_metadata_.unknown_fields().size())); 274 // @@protoc_insertion_point(serialize_end:cockroach.storage.enginepb.MVCCMetadata.SequencedIntent) 275 } 276 277 size_t MVCCMetadata_SequencedIntent::ByteSizeLong() const { 278 // @@protoc_insertion_point(message_byte_size_start:cockroach.storage.enginepb.MVCCMetadata.SequencedIntent) 279 size_t total_size = 0; 280 281 total_size += _internal_metadata_.unknown_fields().size(); 282 283 if (_has_bits_[0 / 32] & 3u) { 284 // optional bytes value = 2; 285 if (has_value()) { 286 total_size += 1 + 287 ::google::protobuf::internal::WireFormatLite::BytesSize( 288 this->value()); 289 } 290 291 if (has_sequence()) { 292 total_size += 1 + 293 ::google::protobuf::internal::WireFormatLite::Int32Size( 294 this->sequence()); 295 } 296 297 } 298 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 299 SetCachedSize(cached_size); 300 return total_size; 301 } 302 303 void MVCCMetadata_SequencedIntent::CheckTypeAndMergeFrom( 304 const ::google::protobuf::MessageLite& from) { 305 MergeFrom(*::google::protobuf::down_cast<const MVCCMetadata_SequencedIntent*>(&from)); 306 } 307 308 void MVCCMetadata_SequencedIntent::MergeFrom(const MVCCMetadata_SequencedIntent& from) { 309 // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.storage.enginepb.MVCCMetadata.SequencedIntent) 310 GOOGLE_DCHECK_NE(&from, this); 311 _internal_metadata_.MergeFrom(from._internal_metadata_); 312 ::google::protobuf::uint32 cached_has_bits = 0; 313 (void) cached_has_bits; 314 315 cached_has_bits = from._has_bits_[0]; 316 if (cached_has_bits & 3u) { 317 if (cached_has_bits & 0x00000001u) { 318 set_has_value(); 319 value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); 320 } 321 if (cached_has_bits & 0x00000002u) { 322 sequence_ = from.sequence_; 323 } 324 _has_bits_[0] |= cached_has_bits; 325 } 326 } 327 328 void MVCCMetadata_SequencedIntent::CopyFrom(const MVCCMetadata_SequencedIntent& from) { 329 // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.storage.enginepb.MVCCMetadata.SequencedIntent) 330 if (&from == this) return; 331 Clear(); 332 MergeFrom(from); 333 } 334 335 bool MVCCMetadata_SequencedIntent::IsInitialized() const { 336 return true; 337 } 338 339 void MVCCMetadata_SequencedIntent::Swap(MVCCMetadata_SequencedIntent* other) { 340 if (other == this) return; 341 InternalSwap(other); 342 } 343 void MVCCMetadata_SequencedIntent::InternalSwap(MVCCMetadata_SequencedIntent* other) { 344 using std::swap; 345 value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), 346 GetArenaNoVirtual()); 347 swap(sequence_, other->sequence_); 348 swap(_has_bits_[0], other->_has_bits_[0]); 349 _internal_metadata_.Swap(&other->_internal_metadata_); 350 } 351 352 ::std::string MVCCMetadata_SequencedIntent::GetTypeName() const { 353 return "cockroach.storage.enginepb.MVCCMetadata.SequencedIntent"; 354 } 355 356 357 // =================================================================== 358 359 void MVCCMetadata::InitAsDefaultInstance() { 360 ::cockroach::storage::enginepb::_MVCCMetadata_default_instance_._instance.get_mutable()->txn_ = const_cast< ::cockroach::storage::enginepb::TxnMeta*>( 361 ::cockroach::storage::enginepb::TxnMeta::internal_default_instance()); 362 ::cockroach::storage::enginepb::_MVCCMetadata_default_instance_._instance.get_mutable()->timestamp_ = const_cast< ::cockroach::util::hlc::LegacyTimestamp*>( 363 ::cockroach::util::hlc::LegacyTimestamp::internal_default_instance()); 364 ::cockroach::storage::enginepb::_MVCCMetadata_default_instance_._instance.get_mutable()->merge_timestamp_ = const_cast< ::cockroach::util::hlc::LegacyTimestamp*>( 365 ::cockroach::util::hlc::LegacyTimestamp::internal_default_instance()); 366 } 367 void MVCCMetadata::clear_txn() { 368 if (txn_ != NULL) txn_->Clear(); 369 clear_has_txn(); 370 } 371 void MVCCMetadata::clear_timestamp() { 372 if (timestamp_ != NULL) timestamp_->Clear(); 373 clear_has_timestamp(); 374 } 375 void MVCCMetadata::clear_merge_timestamp() { 376 if (merge_timestamp_ != NULL) merge_timestamp_->Clear(); 377 clear_has_merge_timestamp(); 378 } 379 #if !defined(_MSC_VER) || _MSC_VER >= 1900 380 const int MVCCMetadata::kTxnFieldNumber; 381 const int MVCCMetadata::kTimestampFieldNumber; 382 const int MVCCMetadata::kDeletedFieldNumber; 383 const int MVCCMetadata::kKeyBytesFieldNumber; 384 const int MVCCMetadata::kValBytesFieldNumber; 385 const int MVCCMetadata::kRawBytesFieldNumber; 386 const int MVCCMetadata::kIntentHistoryFieldNumber; 387 const int MVCCMetadata::kMergeTimestampFieldNumber; 388 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 389 390 MVCCMetadata::MVCCMetadata() 391 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { 392 ::google::protobuf::internal::InitSCC( 393 &protobuf_storage_2fenginepb_2fmvcc_2eproto::scc_info_MVCCMetadata.base); 394 SharedCtor(); 395 // @@protoc_insertion_point(constructor:cockroach.storage.enginepb.MVCCMetadata) 396 } 397 MVCCMetadata::MVCCMetadata(const MVCCMetadata& from) 398 : ::google::protobuf::MessageLite(), 399 _internal_metadata_(NULL), 400 _has_bits_(from._has_bits_), 401 intent_history_(from.intent_history_) { 402 _internal_metadata_.MergeFrom(from._internal_metadata_); 403 raw_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 404 if (from.has_raw_bytes()) { 405 raw_bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_bytes_); 406 } 407 if (from.has_txn()) { 408 txn_ = new ::cockroach::storage::enginepb::TxnMeta(*from.txn_); 409 } else { 410 txn_ = NULL; 411 } 412 if (from.has_timestamp()) { 413 timestamp_ = new ::cockroach::util::hlc::LegacyTimestamp(*from.timestamp_); 414 } else { 415 timestamp_ = NULL; 416 } 417 if (from.has_merge_timestamp()) { 418 merge_timestamp_ = new ::cockroach::util::hlc::LegacyTimestamp(*from.merge_timestamp_); 419 } else { 420 merge_timestamp_ = NULL; 421 } 422 ::memcpy(&key_bytes_, &from.key_bytes_, 423 static_cast<size_t>(reinterpret_cast<char*>(&deleted_) - 424 reinterpret_cast<char*>(&key_bytes_)) + sizeof(deleted_)); 425 // @@protoc_insertion_point(copy_constructor:cockroach.storage.enginepb.MVCCMetadata) 426 } 427 428 void MVCCMetadata::SharedCtor() { 429 raw_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 430 ::memset(&txn_, 0, static_cast<size_t>( 431 reinterpret_cast<char*>(&deleted_) - 432 reinterpret_cast<char*>(&txn_)) + sizeof(deleted_)); 433 } 434 435 MVCCMetadata::~MVCCMetadata() { 436 // @@protoc_insertion_point(destructor:cockroach.storage.enginepb.MVCCMetadata) 437 SharedDtor(); 438 } 439 440 void MVCCMetadata::SharedDtor() { 441 raw_bytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 442 if (this != internal_default_instance()) delete txn_; 443 if (this != internal_default_instance()) delete timestamp_; 444 if (this != internal_default_instance()) delete merge_timestamp_; 445 } 446 447 void MVCCMetadata::SetCachedSize(int size) const { 448 _cached_size_.Set(size); 449 } 450 const MVCCMetadata& MVCCMetadata::default_instance() { 451 ::google::protobuf::internal::InitSCC(&protobuf_storage_2fenginepb_2fmvcc_2eproto::scc_info_MVCCMetadata.base); 452 return *internal_default_instance(); 453 } 454 455 456 void MVCCMetadata::Clear() { 457 // @@protoc_insertion_point(message_clear_start:cockroach.storage.enginepb.MVCCMetadata) 458 ::google::protobuf::uint32 cached_has_bits = 0; 459 // Prevent compiler warnings about cached_has_bits being unused 460 (void) cached_has_bits; 461 462 intent_history_.Clear(); 463 cached_has_bits = _has_bits_[0]; 464 if (cached_has_bits & 15u) { 465 if (cached_has_bits & 0x00000001u) { 466 raw_bytes_.ClearNonDefaultToEmptyNoArena(); 467 } 468 if (cached_has_bits & 0x00000002u) { 469 GOOGLE_DCHECK(txn_ != NULL); 470 txn_->Clear(); 471 } 472 if (cached_has_bits & 0x00000004u) { 473 GOOGLE_DCHECK(timestamp_ != NULL); 474 timestamp_->Clear(); 475 } 476 if (cached_has_bits & 0x00000008u) { 477 GOOGLE_DCHECK(merge_timestamp_ != NULL); 478 merge_timestamp_->Clear(); 479 } 480 } 481 if (cached_has_bits & 112u) { 482 ::memset(&key_bytes_, 0, static_cast<size_t>( 483 reinterpret_cast<char*>(&deleted_) - 484 reinterpret_cast<char*>(&key_bytes_)) + sizeof(deleted_)); 485 } 486 _has_bits_.Clear(); 487 _internal_metadata_.Clear(); 488 } 489 490 bool MVCCMetadata::MergePartialFromCodedStream( 491 ::google::protobuf::io::CodedInputStream* input) { 492 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 493 ::google::protobuf::uint32 tag; 494 ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( 495 &_internal_metadata_); 496 ::google::protobuf::io::StringOutputStream unknown_fields_output( 497 unknown_fields_setter.buffer()); 498 ::google::protobuf::io::CodedOutputStream unknown_fields_stream( 499 &unknown_fields_output, false); 500 // @@protoc_insertion_point(parse_start:cockroach.storage.enginepb.MVCCMetadata) 501 for (;;) { 502 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); 503 tag = p.first; 504 if (!p.second) goto handle_unusual; 505 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 506 // optional .cockroach.storage.enginepb.TxnMeta txn = 1; 507 case 1: { 508 if (static_cast< ::google::protobuf::uint8>(tag) == 509 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { 510 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( 511 input, mutable_txn())); 512 } else { 513 goto handle_unusual; 514 } 515 break; 516 } 517 518 case 2: { 519 if (static_cast< ::google::protobuf::uint8>(tag) == 520 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { 521 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( 522 input, mutable_timestamp())); 523 } else { 524 goto handle_unusual; 525 } 526 break; 527 } 528 529 case 3: { 530 if (static_cast< ::google::protobuf::uint8>(tag) == 531 static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { 532 set_has_deleted(); 533 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 534 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( 535 input, &deleted_))); 536 } else { 537 goto handle_unusual; 538 } 539 break; 540 } 541 542 case 4: { 543 if (static_cast< ::google::protobuf::uint8>(tag) == 544 static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { 545 set_has_key_bytes(); 546 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 547 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 548 input, &key_bytes_))); 549 } else { 550 goto handle_unusual; 551 } 552 break; 553 } 554 555 case 5: { 556 if (static_cast< ::google::protobuf::uint8>(tag) == 557 static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { 558 set_has_val_bytes(); 559 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 560 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 561 input, &val_bytes_))); 562 } else { 563 goto handle_unusual; 564 } 565 break; 566 } 567 568 // optional bytes raw_bytes = 6; 569 case 6: { 570 if (static_cast< ::google::protobuf::uint8>(tag) == 571 static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { 572 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( 573 input, this->mutable_raw_bytes())); 574 } else { 575 goto handle_unusual; 576 } 577 break; 578 } 579 580 // optional .cockroach.util.hlc.LegacyTimestamp merge_timestamp = 7; 581 case 7: { 582 if (static_cast< ::google::protobuf::uint8>(tag) == 583 static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { 584 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( 585 input, mutable_merge_timestamp())); 586 } else { 587 goto handle_unusual; 588 } 589 break; 590 } 591 592 case 8: { 593 if (static_cast< ::google::protobuf::uint8>(tag) == 594 static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { 595 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( 596 input, add_intent_history())); 597 } else { 598 goto handle_unusual; 599 } 600 break; 601 } 602 603 default: { 604 handle_unusual: 605 if (tag == 0) { 606 goto success; 607 } 608 DO_(::google::protobuf::internal::WireFormatLite::SkipField( 609 input, tag, &unknown_fields_stream)); 610 break; 611 } 612 } 613 } 614 success: 615 // @@protoc_insertion_point(parse_success:cockroach.storage.enginepb.MVCCMetadata) 616 return true; 617 failure: 618 // @@protoc_insertion_point(parse_failure:cockroach.storage.enginepb.MVCCMetadata) 619 return false; 620 #undef DO_ 621 } 622 623 void MVCCMetadata::SerializeWithCachedSizes( 624 ::google::protobuf::io::CodedOutputStream* output) const { 625 // @@protoc_insertion_point(serialize_start:cockroach.storage.enginepb.MVCCMetadata) 626 ::google::protobuf::uint32 cached_has_bits = 0; 627 (void) cached_has_bits; 628 629 cached_has_bits = _has_bits_[0]; 630 // optional .cockroach.storage.enginepb.TxnMeta txn = 1; 631 if (cached_has_bits & 0x00000002u) { 632 ::google::protobuf::internal::WireFormatLite::WriteMessage( 633 1, this->_internal_txn(), output); 634 } 635 636 if (cached_has_bits & 0x00000004u) { 637 ::google::protobuf::internal::WireFormatLite::WriteMessage( 638 2, this->_internal_timestamp(), output); 639 } 640 641 if (cached_has_bits & 0x00000040u) { 642 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deleted(), output); 643 } 644 645 if (cached_has_bits & 0x00000010u) { 646 ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->key_bytes(), output); 647 } 648 649 if (cached_has_bits & 0x00000020u) { 650 ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->val_bytes(), output); 651 } 652 653 // optional bytes raw_bytes = 6; 654 if (cached_has_bits & 0x00000001u) { 655 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( 656 6, this->raw_bytes(), output); 657 } 658 659 // optional .cockroach.util.hlc.LegacyTimestamp merge_timestamp = 7; 660 if (cached_has_bits & 0x00000008u) { 661 ::google::protobuf::internal::WireFormatLite::WriteMessage( 662 7, this->_internal_merge_timestamp(), output); 663 } 664 665 for (unsigned int i = 0, 666 n = static_cast<unsigned int>(this->intent_history_size()); i < n; i++) { 667 ::google::protobuf::internal::WireFormatLite::WriteMessage( 668 8, 669 this->intent_history(static_cast<int>(i)), 670 output); 671 } 672 673 output->WriteRaw(_internal_metadata_.unknown_fields().data(), 674 static_cast<int>(_internal_metadata_.unknown_fields().size())); 675 // @@protoc_insertion_point(serialize_end:cockroach.storage.enginepb.MVCCMetadata) 676 } 677 678 size_t MVCCMetadata::ByteSizeLong() const { 679 // @@protoc_insertion_point(message_byte_size_start:cockroach.storage.enginepb.MVCCMetadata) 680 size_t total_size = 0; 681 682 total_size += _internal_metadata_.unknown_fields().size(); 683 684 { 685 unsigned int count = static_cast<unsigned int>(this->intent_history_size()); 686 total_size += 1UL * count; 687 for (unsigned int i = 0; i < count; i++) { 688 total_size += 689 ::google::protobuf::internal::WireFormatLite::MessageSize( 690 this->intent_history(static_cast<int>(i))); 691 } 692 } 693 694 if (_has_bits_[0 / 32] & 127u) { 695 // optional bytes raw_bytes = 6; 696 if (has_raw_bytes()) { 697 total_size += 1 + 698 ::google::protobuf::internal::WireFormatLite::BytesSize( 699 this->raw_bytes()); 700 } 701 702 // optional .cockroach.storage.enginepb.TxnMeta txn = 1; 703 if (has_txn()) { 704 total_size += 1 + 705 ::google::protobuf::internal::WireFormatLite::MessageSize( 706 *txn_); 707 } 708 709 if (has_timestamp()) { 710 total_size += 1 + 711 ::google::protobuf::internal::WireFormatLite::MessageSize( 712 *timestamp_); 713 } 714 715 // optional .cockroach.util.hlc.LegacyTimestamp merge_timestamp = 7; 716 if (has_merge_timestamp()) { 717 total_size += 1 + 718 ::google::protobuf::internal::WireFormatLite::MessageSize( 719 *merge_timestamp_); 720 } 721 722 if (has_key_bytes()) { 723 total_size += 1 + 724 ::google::protobuf::internal::WireFormatLite::Int64Size( 725 this->key_bytes()); 726 } 727 728 if (has_val_bytes()) { 729 total_size += 1 + 730 ::google::protobuf::internal::WireFormatLite::Int64Size( 731 this->val_bytes()); 732 } 733 734 if (has_deleted()) { 735 total_size += 1 + 1; 736 } 737 738 } 739 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 740 SetCachedSize(cached_size); 741 return total_size; 742 } 743 744 void MVCCMetadata::CheckTypeAndMergeFrom( 745 const ::google::protobuf::MessageLite& from) { 746 MergeFrom(*::google::protobuf::down_cast<const MVCCMetadata*>(&from)); 747 } 748 749 void MVCCMetadata::MergeFrom(const MVCCMetadata& from) { 750 // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.storage.enginepb.MVCCMetadata) 751 GOOGLE_DCHECK_NE(&from, this); 752 _internal_metadata_.MergeFrom(from._internal_metadata_); 753 ::google::protobuf::uint32 cached_has_bits = 0; 754 (void) cached_has_bits; 755 756 intent_history_.MergeFrom(from.intent_history_); 757 cached_has_bits = from._has_bits_[0]; 758 if (cached_has_bits & 127u) { 759 if (cached_has_bits & 0x00000001u) { 760 set_has_raw_bytes(); 761 raw_bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_bytes_); 762 } 763 if (cached_has_bits & 0x00000002u) { 764 mutable_txn()->::cockroach::storage::enginepb::TxnMeta::MergeFrom(from.txn()); 765 } 766 if (cached_has_bits & 0x00000004u) { 767 mutable_timestamp()->::cockroach::util::hlc::LegacyTimestamp::MergeFrom(from.timestamp()); 768 } 769 if (cached_has_bits & 0x00000008u) { 770 mutable_merge_timestamp()->::cockroach::util::hlc::LegacyTimestamp::MergeFrom(from.merge_timestamp()); 771 } 772 if (cached_has_bits & 0x00000010u) { 773 key_bytes_ = from.key_bytes_; 774 } 775 if (cached_has_bits & 0x00000020u) { 776 val_bytes_ = from.val_bytes_; 777 } 778 if (cached_has_bits & 0x00000040u) { 779 deleted_ = from.deleted_; 780 } 781 _has_bits_[0] |= cached_has_bits; 782 } 783 } 784 785 void MVCCMetadata::CopyFrom(const MVCCMetadata& from) { 786 // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.storage.enginepb.MVCCMetadata) 787 if (&from == this) return; 788 Clear(); 789 MergeFrom(from); 790 } 791 792 bool MVCCMetadata::IsInitialized() const { 793 return true; 794 } 795 796 void MVCCMetadata::Swap(MVCCMetadata* other) { 797 if (other == this) return; 798 InternalSwap(other); 799 } 800 void MVCCMetadata::InternalSwap(MVCCMetadata* other) { 801 using std::swap; 802 CastToBase(&intent_history_)->InternalSwap(CastToBase(&other->intent_history_)); 803 raw_bytes_.Swap(&other->raw_bytes_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), 804 GetArenaNoVirtual()); 805 swap(txn_, other->txn_); 806 swap(timestamp_, other->timestamp_); 807 swap(merge_timestamp_, other->merge_timestamp_); 808 swap(key_bytes_, other->key_bytes_); 809 swap(val_bytes_, other->val_bytes_); 810 swap(deleted_, other->deleted_); 811 swap(_has_bits_[0], other->_has_bits_[0]); 812 _internal_metadata_.Swap(&other->_internal_metadata_); 813 } 814 815 ::std::string MVCCMetadata::GetTypeName() const { 816 return "cockroach.storage.enginepb.MVCCMetadata"; 817 } 818 819 820 // =================================================================== 821 822 void MVCCMetadataSubsetForMergeSerialization::InitAsDefaultInstance() { 823 ::cockroach::storage::enginepb::_MVCCMetadataSubsetForMergeSerialization_default_instance_._instance.get_mutable()->merge_timestamp_ = const_cast< ::cockroach::util::hlc::LegacyTimestamp*>( 824 ::cockroach::util::hlc::LegacyTimestamp::internal_default_instance()); 825 } 826 void MVCCMetadataSubsetForMergeSerialization::clear_merge_timestamp() { 827 if (merge_timestamp_ != NULL) merge_timestamp_->Clear(); 828 clear_has_merge_timestamp(); 829 } 830 #if !defined(_MSC_VER) || _MSC_VER >= 1900 831 const int MVCCMetadataSubsetForMergeSerialization::kRawBytesFieldNumber; 832 const int MVCCMetadataSubsetForMergeSerialization::kMergeTimestampFieldNumber; 833 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 834 835 MVCCMetadataSubsetForMergeSerialization::MVCCMetadataSubsetForMergeSerialization() 836 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { 837 ::google::protobuf::internal::InitSCC( 838 &protobuf_storage_2fenginepb_2fmvcc_2eproto::scc_info_MVCCMetadataSubsetForMergeSerialization.base); 839 SharedCtor(); 840 // @@protoc_insertion_point(constructor:cockroach.storage.enginepb.MVCCMetadataSubsetForMergeSerialization) 841 } 842 MVCCMetadataSubsetForMergeSerialization::MVCCMetadataSubsetForMergeSerialization(const MVCCMetadataSubsetForMergeSerialization& from) 843 : ::google::protobuf::MessageLite(), 844 _internal_metadata_(NULL), 845 _has_bits_(from._has_bits_) { 846 _internal_metadata_.MergeFrom(from._internal_metadata_); 847 raw_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 848 if (from.has_raw_bytes()) { 849 raw_bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_bytes_); 850 } 851 if (from.has_merge_timestamp()) { 852 merge_timestamp_ = new ::cockroach::util::hlc::LegacyTimestamp(*from.merge_timestamp_); 853 } else { 854 merge_timestamp_ = NULL; 855 } 856 // @@protoc_insertion_point(copy_constructor:cockroach.storage.enginepb.MVCCMetadataSubsetForMergeSerialization) 857 } 858 859 void MVCCMetadataSubsetForMergeSerialization::SharedCtor() { 860 raw_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 861 merge_timestamp_ = NULL; 862 } 863 864 MVCCMetadataSubsetForMergeSerialization::~MVCCMetadataSubsetForMergeSerialization() { 865 // @@protoc_insertion_point(destructor:cockroach.storage.enginepb.MVCCMetadataSubsetForMergeSerialization) 866 SharedDtor(); 867 } 868 869 void MVCCMetadataSubsetForMergeSerialization::SharedDtor() { 870 raw_bytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 871 if (this != internal_default_instance()) delete merge_timestamp_; 872 } 873 874 void MVCCMetadataSubsetForMergeSerialization::SetCachedSize(int size) const { 875 _cached_size_.Set(size); 876 } 877 const MVCCMetadataSubsetForMergeSerialization& MVCCMetadataSubsetForMergeSerialization::default_instance() { 878 ::google::protobuf::internal::InitSCC(&protobuf_storage_2fenginepb_2fmvcc_2eproto::scc_info_MVCCMetadataSubsetForMergeSerialization.base); 879 return *internal_default_instance(); 880 } 881 882 883 void MVCCMetadataSubsetForMergeSerialization::Clear() { 884 // @@protoc_insertion_point(message_clear_start:cockroach.storage.enginepb.MVCCMetadataSubsetForMergeSerialization) 885 ::google::protobuf::uint32 cached_has_bits = 0; 886 // Prevent compiler warnings about cached_has_bits being unused 887 (void) cached_has_bits; 888 889 cached_has_bits = _has_bits_[0]; 890 if (cached_has_bits & 3u) { 891 if (cached_has_bits & 0x00000001u) { 892 raw_bytes_.ClearNonDefaultToEmptyNoArena(); 893 } 894 if (cached_has_bits & 0x00000002u) { 895 GOOGLE_DCHECK(merge_timestamp_ != NULL); 896 merge_timestamp_->Clear(); 897 } 898 } 899 _has_bits_.Clear(); 900 _internal_metadata_.Clear(); 901 } 902 903 bool MVCCMetadataSubsetForMergeSerialization::MergePartialFromCodedStream( 904 ::google::protobuf::io::CodedInputStream* input) { 905 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 906 ::google::protobuf::uint32 tag; 907 ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( 908 &_internal_metadata_); 909 ::google::protobuf::io::StringOutputStream unknown_fields_output( 910 unknown_fields_setter.buffer()); 911 ::google::protobuf::io::CodedOutputStream unknown_fields_stream( 912 &unknown_fields_output, false); 913 // @@protoc_insertion_point(parse_start:cockroach.storage.enginepb.MVCCMetadataSubsetForMergeSerialization) 914 for (;;) { 915 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); 916 tag = p.first; 917 if (!p.second) goto handle_unusual; 918 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 919 // optional bytes raw_bytes = 6; 920 case 6: { 921 if (static_cast< ::google::protobuf::uint8>(tag) == 922 static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { 923 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( 924 input, this->mutable_raw_bytes())); 925 } else { 926 goto handle_unusual; 927 } 928 break; 929 } 930 931 // optional .cockroach.util.hlc.LegacyTimestamp merge_timestamp = 7; 932 case 7: { 933 if (static_cast< ::google::protobuf::uint8>(tag) == 934 static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { 935 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( 936 input, mutable_merge_timestamp())); 937 } else { 938 goto handle_unusual; 939 } 940 break; 941 } 942 943 default: { 944 handle_unusual: 945 if (tag == 0) { 946 goto success; 947 } 948 DO_(::google::protobuf::internal::WireFormatLite::SkipField( 949 input, tag, &unknown_fields_stream)); 950 break; 951 } 952 } 953 } 954 success: 955 // @@protoc_insertion_point(parse_success:cockroach.storage.enginepb.MVCCMetadataSubsetForMergeSerialization) 956 return true; 957 failure: 958 // @@protoc_insertion_point(parse_failure:cockroach.storage.enginepb.MVCCMetadataSubsetForMergeSerialization) 959 return false; 960 #undef DO_ 961 } 962 963 void MVCCMetadataSubsetForMergeSerialization::SerializeWithCachedSizes( 964 ::google::protobuf::io::CodedOutputStream* output) const { 965 // @@protoc_insertion_point(serialize_start:cockroach.storage.enginepb.MVCCMetadataSubsetForMergeSerialization) 966 ::google::protobuf::uint32 cached_has_bits = 0; 967 (void) cached_has_bits; 968 969 cached_has_bits = _has_bits_[0]; 970 // optional bytes raw_bytes = 6; 971 if (cached_has_bits & 0x00000001u) { 972 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( 973 6, this->raw_bytes(), output); 974 } 975 976 // optional .cockroach.util.hlc.LegacyTimestamp merge_timestamp = 7; 977 if (cached_has_bits & 0x00000002u) { 978 ::google::protobuf::internal::WireFormatLite::WriteMessage( 979 7, this->_internal_merge_timestamp(), output); 980 } 981 982 output->WriteRaw(_internal_metadata_.unknown_fields().data(), 983 static_cast<int>(_internal_metadata_.unknown_fields().size())); 984 // @@protoc_insertion_point(serialize_end:cockroach.storage.enginepb.MVCCMetadataSubsetForMergeSerialization) 985 } 986 987 size_t MVCCMetadataSubsetForMergeSerialization::ByteSizeLong() const { 988 // @@protoc_insertion_point(message_byte_size_start:cockroach.storage.enginepb.MVCCMetadataSubsetForMergeSerialization) 989 size_t total_size = 0; 990 991 total_size += _internal_metadata_.unknown_fields().size(); 992 993 if (_has_bits_[0 / 32] & 3u) { 994 // optional bytes raw_bytes = 6; 995 if (has_raw_bytes()) { 996 total_size += 1 + 997 ::google::protobuf::internal::WireFormatLite::BytesSize( 998 this->raw_bytes()); 999 } 1000 1001 // optional .cockroach.util.hlc.LegacyTimestamp merge_timestamp = 7; 1002 if (has_merge_timestamp()) { 1003 total_size += 1 + 1004 ::google::protobuf::internal::WireFormatLite::MessageSize( 1005 *merge_timestamp_); 1006 } 1007 1008 } 1009 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 1010 SetCachedSize(cached_size); 1011 return total_size; 1012 } 1013 1014 void MVCCMetadataSubsetForMergeSerialization::CheckTypeAndMergeFrom( 1015 const ::google::protobuf::MessageLite& from) { 1016 MergeFrom(*::google::protobuf::down_cast<const MVCCMetadataSubsetForMergeSerialization*>(&from)); 1017 } 1018 1019 void MVCCMetadataSubsetForMergeSerialization::MergeFrom(const MVCCMetadataSubsetForMergeSerialization& from) { 1020 // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.storage.enginepb.MVCCMetadataSubsetForMergeSerialization) 1021 GOOGLE_DCHECK_NE(&from, this); 1022 _internal_metadata_.MergeFrom(from._internal_metadata_); 1023 ::google::protobuf::uint32 cached_has_bits = 0; 1024 (void) cached_has_bits; 1025 1026 cached_has_bits = from._has_bits_[0]; 1027 if (cached_has_bits & 3u) { 1028 if (cached_has_bits & 0x00000001u) { 1029 set_has_raw_bytes(); 1030 raw_bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_bytes_); 1031 } 1032 if (cached_has_bits & 0x00000002u) { 1033 mutable_merge_timestamp()->::cockroach::util::hlc::LegacyTimestamp::MergeFrom(from.merge_timestamp()); 1034 } 1035 } 1036 } 1037 1038 void MVCCMetadataSubsetForMergeSerialization::CopyFrom(const MVCCMetadataSubsetForMergeSerialization& from) { 1039 // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.storage.enginepb.MVCCMetadataSubsetForMergeSerialization) 1040 if (&from == this) return; 1041 Clear(); 1042 MergeFrom(from); 1043 } 1044 1045 bool MVCCMetadataSubsetForMergeSerialization::IsInitialized() const { 1046 return true; 1047 } 1048 1049 void MVCCMetadataSubsetForMergeSerialization::Swap(MVCCMetadataSubsetForMergeSerialization* other) { 1050 if (other == this) return; 1051 InternalSwap(other); 1052 } 1053 void MVCCMetadataSubsetForMergeSerialization::InternalSwap(MVCCMetadataSubsetForMergeSerialization* other) { 1054 using std::swap; 1055 raw_bytes_.Swap(&other->raw_bytes_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1056 GetArenaNoVirtual()); 1057 swap(merge_timestamp_, other->merge_timestamp_); 1058 swap(_has_bits_[0], other->_has_bits_[0]); 1059 _internal_metadata_.Swap(&other->_internal_metadata_); 1060 } 1061 1062 ::std::string MVCCMetadataSubsetForMergeSerialization::GetTypeName() const { 1063 return "cockroach.storage.enginepb.MVCCMetadataSubsetForMergeSerialization"; 1064 } 1065 1066 1067 // =================================================================== 1068 1069 void MVCCStats::InitAsDefaultInstance() { 1070 } 1071 #if !defined(_MSC_VER) || _MSC_VER >= 1900 1072 const int MVCCStats::kContainsEstimatesFieldNumber; 1073 const int MVCCStats::kLastUpdateNanosFieldNumber; 1074 const int MVCCStats::kIntentAgeFieldNumber; 1075 const int MVCCStats::kGcBytesAgeFieldNumber; 1076 const int MVCCStats::kLiveBytesFieldNumber; 1077 const int MVCCStats::kLiveCountFieldNumber; 1078 const int MVCCStats::kKeyBytesFieldNumber; 1079 const int MVCCStats::kKeyCountFieldNumber; 1080 const int MVCCStats::kValBytesFieldNumber; 1081 const int MVCCStats::kValCountFieldNumber; 1082 const int MVCCStats::kIntentBytesFieldNumber; 1083 const int MVCCStats::kIntentCountFieldNumber; 1084 const int MVCCStats::kSysBytesFieldNumber; 1085 const int MVCCStats::kSysCountFieldNumber; 1086 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 1087 1088 MVCCStats::MVCCStats() 1089 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { 1090 ::google::protobuf::internal::InitSCC( 1091 &protobuf_storage_2fenginepb_2fmvcc_2eproto::scc_info_MVCCStats.base); 1092 SharedCtor(); 1093 // @@protoc_insertion_point(constructor:cockroach.storage.enginepb.MVCCStats) 1094 } 1095 MVCCStats::MVCCStats(const MVCCStats& from) 1096 : ::google::protobuf::MessageLite(), 1097 _internal_metadata_(NULL), 1098 _has_bits_(from._has_bits_) { 1099 _internal_metadata_.MergeFrom(from._internal_metadata_); 1100 ::memcpy(&last_update_nanos_, &from.last_update_nanos_, 1101 static_cast<size_t>(reinterpret_cast<char*>(&contains_estimates_) - 1102 reinterpret_cast<char*>(&last_update_nanos_)) + sizeof(contains_estimates_)); 1103 // @@protoc_insertion_point(copy_constructor:cockroach.storage.enginepb.MVCCStats) 1104 } 1105 1106 void MVCCStats::SharedCtor() { 1107 ::memset(&last_update_nanos_, 0, static_cast<size_t>( 1108 reinterpret_cast<char*>(&contains_estimates_) - 1109 reinterpret_cast<char*>(&last_update_nanos_)) + sizeof(contains_estimates_)); 1110 } 1111 1112 MVCCStats::~MVCCStats() { 1113 // @@protoc_insertion_point(destructor:cockroach.storage.enginepb.MVCCStats) 1114 SharedDtor(); 1115 } 1116 1117 void MVCCStats::SharedDtor() { 1118 } 1119 1120 void MVCCStats::SetCachedSize(int size) const { 1121 _cached_size_.Set(size); 1122 } 1123 const MVCCStats& MVCCStats::default_instance() { 1124 ::google::protobuf::internal::InitSCC(&protobuf_storage_2fenginepb_2fmvcc_2eproto::scc_info_MVCCStats.base); 1125 return *internal_default_instance(); 1126 } 1127 1128 1129 void MVCCStats::Clear() { 1130 // @@protoc_insertion_point(message_clear_start:cockroach.storage.enginepb.MVCCStats) 1131 ::google::protobuf::uint32 cached_has_bits = 0; 1132 // Prevent compiler warnings about cached_has_bits being unused 1133 (void) cached_has_bits; 1134 1135 cached_has_bits = _has_bits_[0]; 1136 if (cached_has_bits & 255u) { 1137 ::memset(&last_update_nanos_, 0, static_cast<size_t>( 1138 reinterpret_cast<char*>(&val_bytes_) - 1139 reinterpret_cast<char*>(&last_update_nanos_)) + sizeof(val_bytes_)); 1140 } 1141 if (cached_has_bits & 16128u) { 1142 ::memset(&val_count_, 0, static_cast<size_t>( 1143 reinterpret_cast<char*>(&contains_estimates_) - 1144 reinterpret_cast<char*>(&val_count_)) + sizeof(contains_estimates_)); 1145 } 1146 _has_bits_.Clear(); 1147 _internal_metadata_.Clear(); 1148 } 1149 1150 bool MVCCStats::MergePartialFromCodedStream( 1151 ::google::protobuf::io::CodedInputStream* input) { 1152 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 1153 ::google::protobuf::uint32 tag; 1154 ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( 1155 &_internal_metadata_); 1156 ::google::protobuf::io::StringOutputStream unknown_fields_output( 1157 unknown_fields_setter.buffer()); 1158 ::google::protobuf::io::CodedOutputStream unknown_fields_stream( 1159 &unknown_fields_output, false); 1160 // @@protoc_insertion_point(parse_start:cockroach.storage.enginepb.MVCCStats) 1161 for (;;) { 1162 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); 1163 tag = p.first; 1164 if (!p.second) goto handle_unusual; 1165 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 1166 case 1: { 1167 if (static_cast< ::google::protobuf::uint8>(tag) == 1168 static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) { 1169 set_has_last_update_nanos(); 1170 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1171 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( 1172 input, &last_update_nanos_))); 1173 } else { 1174 goto handle_unusual; 1175 } 1176 break; 1177 } 1178 1179 case 2: { 1180 if (static_cast< ::google::protobuf::uint8>(tag) == 1181 static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { 1182 set_has_intent_age(); 1183 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1184 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( 1185 input, &intent_age_))); 1186 } else { 1187 goto handle_unusual; 1188 } 1189 break; 1190 } 1191 1192 case 3: { 1193 if (static_cast< ::google::protobuf::uint8>(tag) == 1194 static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { 1195 set_has_gc_bytes_age(); 1196 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1197 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( 1198 input, &gc_bytes_age_))); 1199 } else { 1200 goto handle_unusual; 1201 } 1202 break; 1203 } 1204 1205 case 4: { 1206 if (static_cast< ::google::protobuf::uint8>(tag) == 1207 static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) { 1208 set_has_live_bytes(); 1209 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1210 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( 1211 input, &live_bytes_))); 1212 } else { 1213 goto handle_unusual; 1214 } 1215 break; 1216 } 1217 1218 case 5: { 1219 if (static_cast< ::google::protobuf::uint8>(tag) == 1220 static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) { 1221 set_has_live_count(); 1222 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1223 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( 1224 input, &live_count_))); 1225 } else { 1226 goto handle_unusual; 1227 } 1228 break; 1229 } 1230 1231 case 6: { 1232 if (static_cast< ::google::protobuf::uint8>(tag) == 1233 static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) { 1234 set_has_key_bytes(); 1235 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1236 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( 1237 input, &key_bytes_))); 1238 } else { 1239 goto handle_unusual; 1240 } 1241 break; 1242 } 1243 1244 case 7: { 1245 if (static_cast< ::google::protobuf::uint8>(tag) == 1246 static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) { 1247 set_has_key_count(); 1248 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1249 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( 1250 input, &key_count_))); 1251 } else { 1252 goto handle_unusual; 1253 } 1254 break; 1255 } 1256 1257 case 8: { 1258 if (static_cast< ::google::protobuf::uint8>(tag) == 1259 static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) { 1260 set_has_val_bytes(); 1261 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1262 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( 1263 input, &val_bytes_))); 1264 } else { 1265 goto handle_unusual; 1266 } 1267 break; 1268 } 1269 1270 case 9: { 1271 if (static_cast< ::google::protobuf::uint8>(tag) == 1272 static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) { 1273 set_has_val_count(); 1274 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1275 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( 1276 input, &val_count_))); 1277 } else { 1278 goto handle_unusual; 1279 } 1280 break; 1281 } 1282 1283 case 10: { 1284 if (static_cast< ::google::protobuf::uint8>(tag) == 1285 static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) { 1286 set_has_intent_bytes(); 1287 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1288 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( 1289 input, &intent_bytes_))); 1290 } else { 1291 goto handle_unusual; 1292 } 1293 break; 1294 } 1295 1296 case 11: { 1297 if (static_cast< ::google::protobuf::uint8>(tag) == 1298 static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) { 1299 set_has_intent_count(); 1300 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1301 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( 1302 input, &intent_count_))); 1303 } else { 1304 goto handle_unusual; 1305 } 1306 break; 1307 } 1308 1309 case 12: { 1310 if (static_cast< ::google::protobuf::uint8>(tag) == 1311 static_cast< ::google::protobuf::uint8>(97u /* 97 & 0xFF */)) { 1312 set_has_sys_bytes(); 1313 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1314 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( 1315 input, &sys_bytes_))); 1316 } else { 1317 goto handle_unusual; 1318 } 1319 break; 1320 } 1321 1322 case 13: { 1323 if (static_cast< ::google::protobuf::uint8>(tag) == 1324 static_cast< ::google::protobuf::uint8>(105u /* 105 & 0xFF */)) { 1325 set_has_sys_count(); 1326 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1327 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( 1328 input, &sys_count_))); 1329 } else { 1330 goto handle_unusual; 1331 } 1332 break; 1333 } 1334 1335 case 14: { 1336 if (static_cast< ::google::protobuf::uint8>(tag) == 1337 static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) { 1338 set_has_contains_estimates(); 1339 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1340 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 1341 input, &contains_estimates_))); 1342 } else { 1343 goto handle_unusual; 1344 } 1345 break; 1346 } 1347 1348 default: { 1349 handle_unusual: 1350 if (tag == 0) { 1351 goto success; 1352 } 1353 DO_(::google::protobuf::internal::WireFormatLite::SkipField( 1354 input, tag, &unknown_fields_stream)); 1355 break; 1356 } 1357 } 1358 } 1359 success: 1360 // @@protoc_insertion_point(parse_success:cockroach.storage.enginepb.MVCCStats) 1361 return true; 1362 failure: 1363 // @@protoc_insertion_point(parse_failure:cockroach.storage.enginepb.MVCCStats) 1364 return false; 1365 #undef DO_ 1366 } 1367 1368 void MVCCStats::SerializeWithCachedSizes( 1369 ::google::protobuf::io::CodedOutputStream* output) const { 1370 // @@protoc_insertion_point(serialize_start:cockroach.storage.enginepb.MVCCStats) 1371 ::google::protobuf::uint32 cached_has_bits = 0; 1372 (void) cached_has_bits; 1373 1374 cached_has_bits = _has_bits_[0]; 1375 if (cached_has_bits & 0x00000001u) { 1376 ::google::protobuf::internal::WireFormatLite::WriteSFixed64(1, this->last_update_nanos(), output); 1377 } 1378 1379 if (cached_has_bits & 0x00000002u) { 1380 ::google::protobuf::internal::WireFormatLite::WriteSFixed64(2, this->intent_age(), output); 1381 } 1382 1383 if (cached_has_bits & 0x00000004u) { 1384 ::google::protobuf::internal::WireFormatLite::WriteSFixed64(3, this->gc_bytes_age(), output); 1385 } 1386 1387 if (cached_has_bits & 0x00000008u) { 1388 ::google::protobuf::internal::WireFormatLite::WriteSFixed64(4, this->live_bytes(), output); 1389 } 1390 1391 if (cached_has_bits & 0x00000010u) { 1392 ::google::protobuf::internal::WireFormatLite::WriteSFixed64(5, this->live_count(), output); 1393 } 1394 1395 if (cached_has_bits & 0x00000020u) { 1396 ::google::protobuf::internal::WireFormatLite::WriteSFixed64(6, this->key_bytes(), output); 1397 } 1398 1399 if (cached_has_bits & 0x00000040u) { 1400 ::google::protobuf::internal::WireFormatLite::WriteSFixed64(7, this->key_count(), output); 1401 } 1402 1403 if (cached_has_bits & 0x00000080u) { 1404 ::google::protobuf::internal::WireFormatLite::WriteSFixed64(8, this->val_bytes(), output); 1405 } 1406 1407 if (cached_has_bits & 0x00000100u) { 1408 ::google::protobuf::internal::WireFormatLite::WriteSFixed64(9, this->val_count(), output); 1409 } 1410 1411 if (cached_has_bits & 0x00000200u) { 1412 ::google::protobuf::internal::WireFormatLite::WriteSFixed64(10, this->intent_bytes(), output); 1413 } 1414 1415 if (cached_has_bits & 0x00000400u) { 1416 ::google::protobuf::internal::WireFormatLite::WriteSFixed64(11, this->intent_count(), output); 1417 } 1418 1419 if (cached_has_bits & 0x00000800u) { 1420 ::google::protobuf::internal::WireFormatLite::WriteSFixed64(12, this->sys_bytes(), output); 1421 } 1422 1423 if (cached_has_bits & 0x00001000u) { 1424 ::google::protobuf::internal::WireFormatLite::WriteSFixed64(13, this->sys_count(), output); 1425 } 1426 1427 if (cached_has_bits & 0x00002000u) { 1428 ::google::protobuf::internal::WireFormatLite::WriteInt64(14, this->contains_estimates(), output); 1429 } 1430 1431 output->WriteRaw(_internal_metadata_.unknown_fields().data(), 1432 static_cast<int>(_internal_metadata_.unknown_fields().size())); 1433 // @@protoc_insertion_point(serialize_end:cockroach.storage.enginepb.MVCCStats) 1434 } 1435 1436 size_t MVCCStats::ByteSizeLong() const { 1437 // @@protoc_insertion_point(message_byte_size_start:cockroach.storage.enginepb.MVCCStats) 1438 size_t total_size = 0; 1439 1440 total_size += _internal_metadata_.unknown_fields().size(); 1441 1442 if (_has_bits_[0 / 32] & 255u) { 1443 if (has_last_update_nanos()) { 1444 total_size += 1 + 8; 1445 } 1446 1447 if (has_intent_age()) { 1448 total_size += 1 + 8; 1449 } 1450 1451 if (has_gc_bytes_age()) { 1452 total_size += 1 + 8; 1453 } 1454 1455 if (has_live_bytes()) { 1456 total_size += 1 + 8; 1457 } 1458 1459 if (has_live_count()) { 1460 total_size += 1 + 8; 1461 } 1462 1463 if (has_key_bytes()) { 1464 total_size += 1 + 8; 1465 } 1466 1467 if (has_key_count()) { 1468 total_size += 1 + 8; 1469 } 1470 1471 if (has_val_bytes()) { 1472 total_size += 1 + 8; 1473 } 1474 1475 } 1476 if (_has_bits_[8 / 32] & 16128u) { 1477 if (has_val_count()) { 1478 total_size += 1 + 8; 1479 } 1480 1481 if (has_intent_bytes()) { 1482 total_size += 1 + 8; 1483 } 1484 1485 if (has_intent_count()) { 1486 total_size += 1 + 8; 1487 } 1488 1489 if (has_sys_bytes()) { 1490 total_size += 1 + 8; 1491 } 1492 1493 if (has_sys_count()) { 1494 total_size += 1 + 8; 1495 } 1496 1497 if (has_contains_estimates()) { 1498 total_size += 1 + 1499 ::google::protobuf::internal::WireFormatLite::Int64Size( 1500 this->contains_estimates()); 1501 } 1502 1503 } 1504 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 1505 SetCachedSize(cached_size); 1506 return total_size; 1507 } 1508 1509 void MVCCStats::CheckTypeAndMergeFrom( 1510 const ::google::protobuf::MessageLite& from) { 1511 MergeFrom(*::google::protobuf::down_cast<const MVCCStats*>(&from)); 1512 } 1513 1514 void MVCCStats::MergeFrom(const MVCCStats& from) { 1515 // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.storage.enginepb.MVCCStats) 1516 GOOGLE_DCHECK_NE(&from, this); 1517 _internal_metadata_.MergeFrom(from._internal_metadata_); 1518 ::google::protobuf::uint32 cached_has_bits = 0; 1519 (void) cached_has_bits; 1520 1521 cached_has_bits = from._has_bits_[0]; 1522 if (cached_has_bits & 255u) { 1523 if (cached_has_bits & 0x00000001u) { 1524 last_update_nanos_ = from.last_update_nanos_; 1525 } 1526 if (cached_has_bits & 0x00000002u) { 1527 intent_age_ = from.intent_age_; 1528 } 1529 if (cached_has_bits & 0x00000004u) { 1530 gc_bytes_age_ = from.gc_bytes_age_; 1531 } 1532 if (cached_has_bits & 0x00000008u) { 1533 live_bytes_ = from.live_bytes_; 1534 } 1535 if (cached_has_bits & 0x00000010u) { 1536 live_count_ = from.live_count_; 1537 } 1538 if (cached_has_bits & 0x00000020u) { 1539 key_bytes_ = from.key_bytes_; 1540 } 1541 if (cached_has_bits & 0x00000040u) { 1542 key_count_ = from.key_count_; 1543 } 1544 if (cached_has_bits & 0x00000080u) { 1545 val_bytes_ = from.val_bytes_; 1546 } 1547 _has_bits_[0] |= cached_has_bits; 1548 } 1549 if (cached_has_bits & 16128u) { 1550 if (cached_has_bits & 0x00000100u) { 1551 val_count_ = from.val_count_; 1552 } 1553 if (cached_has_bits & 0x00000200u) { 1554 intent_bytes_ = from.intent_bytes_; 1555 } 1556 if (cached_has_bits & 0x00000400u) { 1557 intent_count_ = from.intent_count_; 1558 } 1559 if (cached_has_bits & 0x00000800u) { 1560 sys_bytes_ = from.sys_bytes_; 1561 } 1562 if (cached_has_bits & 0x00001000u) { 1563 sys_count_ = from.sys_count_; 1564 } 1565 if (cached_has_bits & 0x00002000u) { 1566 contains_estimates_ = from.contains_estimates_; 1567 } 1568 _has_bits_[0] |= cached_has_bits; 1569 } 1570 } 1571 1572 void MVCCStats::CopyFrom(const MVCCStats& from) { 1573 // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.storage.enginepb.MVCCStats) 1574 if (&from == this) return; 1575 Clear(); 1576 MergeFrom(from); 1577 } 1578 1579 bool MVCCStats::IsInitialized() const { 1580 return true; 1581 } 1582 1583 void MVCCStats::Swap(MVCCStats* other) { 1584 if (other == this) return; 1585 InternalSwap(other); 1586 } 1587 void MVCCStats::InternalSwap(MVCCStats* other) { 1588 using std::swap; 1589 swap(last_update_nanos_, other->last_update_nanos_); 1590 swap(intent_age_, other->intent_age_); 1591 swap(gc_bytes_age_, other->gc_bytes_age_); 1592 swap(live_bytes_, other->live_bytes_); 1593 swap(live_count_, other->live_count_); 1594 swap(key_bytes_, other->key_bytes_); 1595 swap(key_count_, other->key_count_); 1596 swap(val_bytes_, other->val_bytes_); 1597 swap(val_count_, other->val_count_); 1598 swap(intent_bytes_, other->intent_bytes_); 1599 swap(intent_count_, other->intent_count_); 1600 swap(sys_bytes_, other->sys_bytes_); 1601 swap(sys_count_, other->sys_count_); 1602 swap(contains_estimates_, other->contains_estimates_); 1603 swap(_has_bits_[0], other->_has_bits_[0]); 1604 _internal_metadata_.Swap(&other->_internal_metadata_); 1605 } 1606 1607 ::std::string MVCCStats::GetTypeName() const { 1608 return "cockroach.storage.enginepb.MVCCStats"; 1609 } 1610 1611 1612 // @@protoc_insertion_point(namespace_scope) 1613 } // namespace enginepb 1614 } // namespace storage 1615 } // namespace cockroach 1616 namespace google { 1617 namespace protobuf { 1618 template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::cockroach::storage::enginepb::MVCCMetadata_SequencedIntent* Arena::CreateMaybeMessage< ::cockroach::storage::enginepb::MVCCMetadata_SequencedIntent >(Arena* arena) { 1619 return Arena::CreateInternal< ::cockroach::storage::enginepb::MVCCMetadata_SequencedIntent >(arena); 1620 } 1621 template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::cockroach::storage::enginepb::MVCCMetadata* Arena::CreateMaybeMessage< ::cockroach::storage::enginepb::MVCCMetadata >(Arena* arena) { 1622 return Arena::CreateInternal< ::cockroach::storage::enginepb::MVCCMetadata >(arena); 1623 } 1624 template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::cockroach::storage::enginepb::MVCCMetadataSubsetForMergeSerialization* Arena::CreateMaybeMessage< ::cockroach::storage::enginepb::MVCCMetadataSubsetForMergeSerialization >(Arena* arena) { 1625 return Arena::CreateInternal< ::cockroach::storage::enginepb::MVCCMetadataSubsetForMergeSerialization >(arena); 1626 } 1627 template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::cockroach::storage::enginepb::MVCCStats* Arena::CreateMaybeMessage< ::cockroach::storage::enginepb::MVCCStats >(Arena* arena) { 1628 return Arena::CreateInternal< ::cockroach::storage::enginepb::MVCCStats >(arena); 1629 } 1630 } // namespace protobuf 1631 } // namespace google 1632 1633 // @@protoc_insertion_point(global_scope)