github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/c-deps/libroach/protos/util/log/log.pb.cc (about) 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: util/log/log.proto 3 4 #include "util/log/log.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_util_2flog_2flog_2eproto { 20 extern PROTOBUF_INTERNAL_EXPORT_protobuf_util_2flog_2flog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_FileDetails; 21 } // namespace protobuf_util_2flog_2flog_2eproto 22 namespace cockroach { 23 namespace util { 24 namespace log { 25 class EntryDefaultTypeInternal { 26 public: 27 ::google::protobuf::internal::ExplicitlyConstructed<Entry> 28 _instance; 29 } _Entry_default_instance_; 30 class FileDetailsDefaultTypeInternal { 31 public: 32 ::google::protobuf::internal::ExplicitlyConstructed<FileDetails> 33 _instance; 34 } _FileDetails_default_instance_; 35 class FileInfoDefaultTypeInternal { 36 public: 37 ::google::protobuf::internal::ExplicitlyConstructed<FileInfo> 38 _instance; 39 } _FileInfo_default_instance_; 40 } // namespace log 41 } // namespace util 42 } // namespace cockroach 43 namespace protobuf_util_2flog_2flog_2eproto { 44 static void InitDefaultsEntry() { 45 GOOGLE_PROTOBUF_VERIFY_VERSION; 46 47 { 48 void* ptr = &::cockroach::util::log::_Entry_default_instance_; 49 new (ptr) ::cockroach::util::log::Entry(); 50 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); 51 } 52 ::cockroach::util::log::Entry::InitAsDefaultInstance(); 53 } 54 55 ::google::protobuf::internal::SCCInfo<0> scc_info_Entry = 56 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEntry}, {}}; 57 58 static void InitDefaultsFileDetails() { 59 GOOGLE_PROTOBUF_VERIFY_VERSION; 60 61 { 62 void* ptr = &::cockroach::util::log::_FileDetails_default_instance_; 63 new (ptr) ::cockroach::util::log::FileDetails(); 64 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); 65 } 66 ::cockroach::util::log::FileDetails::InitAsDefaultInstance(); 67 } 68 69 ::google::protobuf::internal::SCCInfo<0> scc_info_FileDetails = 70 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFileDetails}, {}}; 71 72 static void InitDefaultsFileInfo() { 73 GOOGLE_PROTOBUF_VERIFY_VERSION; 74 75 { 76 void* ptr = &::cockroach::util::log::_FileInfo_default_instance_; 77 new (ptr) ::cockroach::util::log::FileInfo(); 78 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); 79 } 80 ::cockroach::util::log::FileInfo::InitAsDefaultInstance(); 81 } 82 83 ::google::protobuf::internal::SCCInfo<1> scc_info_FileInfo = 84 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFileInfo}, { 85 &protobuf_util_2flog_2flog_2eproto::scc_info_FileDetails.base,}}; 86 87 void InitDefaults() { 88 ::google::protobuf::internal::InitSCC(&scc_info_Entry.base); 89 ::google::protobuf::internal::InitSCC(&scc_info_FileDetails.base); 90 ::google::protobuf::internal::InitSCC(&scc_info_FileInfo.base); 91 } 92 93 } // namespace protobuf_util_2flog_2flog_2eproto 94 namespace cockroach { 95 namespace util { 96 namespace log { 97 bool Severity_IsValid(int value) { 98 switch (value) { 99 case 0: 100 case 1: 101 case 2: 102 case 3: 103 case 4: 104 case 5: 105 case 6: 106 return true; 107 default: 108 return false; 109 } 110 } 111 112 113 // =================================================================== 114 115 void Entry::InitAsDefaultInstance() { 116 } 117 #if !defined(_MSC_VER) || _MSC_VER >= 1900 118 const int Entry::kSeverityFieldNumber; 119 const int Entry::kTimeFieldNumber; 120 const int Entry::kGoroutineFieldNumber; 121 const int Entry::kFileFieldNumber; 122 const int Entry::kLineFieldNumber; 123 const int Entry::kMessageFieldNumber; 124 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 125 126 Entry::Entry() 127 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { 128 ::google::protobuf::internal::InitSCC( 129 &protobuf_util_2flog_2flog_2eproto::scc_info_Entry.base); 130 SharedCtor(); 131 // @@protoc_insertion_point(constructor:cockroach.util.log.Entry) 132 } 133 Entry::Entry(const Entry& from) 134 : ::google::protobuf::MessageLite(), 135 _internal_metadata_(NULL) { 136 _internal_metadata_.MergeFrom(from._internal_metadata_); 137 file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 138 if (from.file().size() > 0) { 139 file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_); 140 } 141 message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 142 if (from.message().size() > 0) { 143 message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); 144 } 145 ::memcpy(&time_, &from.time_, 146 static_cast<size_t>(reinterpret_cast<char*>(&severity_) - 147 reinterpret_cast<char*>(&time_)) + sizeof(severity_)); 148 // @@protoc_insertion_point(copy_constructor:cockroach.util.log.Entry) 149 } 150 151 void Entry::SharedCtor() { 152 file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 153 message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 154 ::memset(&time_, 0, static_cast<size_t>( 155 reinterpret_cast<char*>(&severity_) - 156 reinterpret_cast<char*>(&time_)) + sizeof(severity_)); 157 } 158 159 Entry::~Entry() { 160 // @@protoc_insertion_point(destructor:cockroach.util.log.Entry) 161 SharedDtor(); 162 } 163 164 void Entry::SharedDtor() { 165 file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 166 message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 167 } 168 169 void Entry::SetCachedSize(int size) const { 170 _cached_size_.Set(size); 171 } 172 const Entry& Entry::default_instance() { 173 ::google::protobuf::internal::InitSCC(&protobuf_util_2flog_2flog_2eproto::scc_info_Entry.base); 174 return *internal_default_instance(); 175 } 176 177 178 void Entry::Clear() { 179 // @@protoc_insertion_point(message_clear_start:cockroach.util.log.Entry) 180 ::google::protobuf::uint32 cached_has_bits = 0; 181 // Prevent compiler warnings about cached_has_bits being unused 182 (void) cached_has_bits; 183 184 file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 185 message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 186 ::memset(&time_, 0, static_cast<size_t>( 187 reinterpret_cast<char*>(&severity_) - 188 reinterpret_cast<char*>(&time_)) + sizeof(severity_)); 189 _internal_metadata_.Clear(); 190 } 191 192 bool Entry::MergePartialFromCodedStream( 193 ::google::protobuf::io::CodedInputStream* input) { 194 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 195 ::google::protobuf::uint32 tag; 196 ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( 197 &_internal_metadata_); 198 ::google::protobuf::io::StringOutputStream unknown_fields_output( 199 unknown_fields_setter.buffer()); 200 ::google::protobuf::io::CodedOutputStream unknown_fields_stream( 201 &unknown_fields_output, false); 202 // @@protoc_insertion_point(parse_start:cockroach.util.log.Entry) 203 for (;;) { 204 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); 205 tag = p.first; 206 if (!p.second) goto handle_unusual; 207 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 208 // .cockroach.util.log.Severity severity = 1; 209 case 1: { 210 if (static_cast< ::google::protobuf::uint8>(tag) == 211 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { 212 int value; 213 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 214 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( 215 input, &value))); 216 set_severity(static_cast< ::cockroach::util::log::Severity >(value)); 217 } else { 218 goto handle_unusual; 219 } 220 break; 221 } 222 223 // int64 time = 2; 224 case 2: { 225 if (static_cast< ::google::protobuf::uint8>(tag) == 226 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { 227 228 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 229 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 230 input, &time_))); 231 } else { 232 goto handle_unusual; 233 } 234 break; 235 } 236 237 // string file = 3; 238 case 3: { 239 if (static_cast< ::google::protobuf::uint8>(tag) == 240 static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { 241 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 242 input, this->mutable_file())); 243 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 244 this->file().data(), static_cast<int>(this->file().length()), 245 ::google::protobuf::internal::WireFormatLite::PARSE, 246 "cockroach.util.log.Entry.file")); 247 } else { 248 goto handle_unusual; 249 } 250 break; 251 } 252 253 // int64 line = 4; 254 case 4: { 255 if (static_cast< ::google::protobuf::uint8>(tag) == 256 static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { 257 258 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 259 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 260 input, &line_))); 261 } else { 262 goto handle_unusual; 263 } 264 break; 265 } 266 267 // string message = 5; 268 case 5: { 269 if (static_cast< ::google::protobuf::uint8>(tag) == 270 static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { 271 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 272 input, this->mutable_message())); 273 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 274 this->message().data(), static_cast<int>(this->message().length()), 275 ::google::protobuf::internal::WireFormatLite::PARSE, 276 "cockroach.util.log.Entry.message")); 277 } else { 278 goto handle_unusual; 279 } 280 break; 281 } 282 283 // int64 goroutine = 6; 284 case 6: { 285 if (static_cast< ::google::protobuf::uint8>(tag) == 286 static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { 287 288 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 289 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 290 input, &goroutine_))); 291 } else { 292 goto handle_unusual; 293 } 294 break; 295 } 296 297 default: { 298 handle_unusual: 299 if (tag == 0) { 300 goto success; 301 } 302 DO_(::google::protobuf::internal::WireFormatLite::SkipField( 303 input, tag, &unknown_fields_stream)); 304 break; 305 } 306 } 307 } 308 success: 309 // @@protoc_insertion_point(parse_success:cockroach.util.log.Entry) 310 return true; 311 failure: 312 // @@protoc_insertion_point(parse_failure:cockroach.util.log.Entry) 313 return false; 314 #undef DO_ 315 } 316 317 void Entry::SerializeWithCachedSizes( 318 ::google::protobuf::io::CodedOutputStream* output) const { 319 // @@protoc_insertion_point(serialize_start:cockroach.util.log.Entry) 320 ::google::protobuf::uint32 cached_has_bits = 0; 321 (void) cached_has_bits; 322 323 // .cockroach.util.log.Severity severity = 1; 324 if (this->severity() != 0) { 325 ::google::protobuf::internal::WireFormatLite::WriteEnum( 326 1, this->severity(), output); 327 } 328 329 // int64 time = 2; 330 if (this->time() != 0) { 331 ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->time(), output); 332 } 333 334 // string file = 3; 335 if (this->file().size() > 0) { 336 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 337 this->file().data(), static_cast<int>(this->file().length()), 338 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 339 "cockroach.util.log.Entry.file"); 340 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 341 3, this->file(), output); 342 } 343 344 // int64 line = 4; 345 if (this->line() != 0) { 346 ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->line(), output); 347 } 348 349 // string message = 5; 350 if (this->message().size() > 0) { 351 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 352 this->message().data(), static_cast<int>(this->message().length()), 353 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 354 "cockroach.util.log.Entry.message"); 355 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 356 5, this->message(), output); 357 } 358 359 // int64 goroutine = 6; 360 if (this->goroutine() != 0) { 361 ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->goroutine(), output); 362 } 363 364 output->WriteRaw((::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()).data(), 365 static_cast<int>((::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()).size())); 366 // @@protoc_insertion_point(serialize_end:cockroach.util.log.Entry) 367 } 368 369 size_t Entry::ByteSizeLong() const { 370 // @@protoc_insertion_point(message_byte_size_start:cockroach.util.log.Entry) 371 size_t total_size = 0; 372 373 total_size += (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()).size(); 374 375 // string file = 3; 376 if (this->file().size() > 0) { 377 total_size += 1 + 378 ::google::protobuf::internal::WireFormatLite::StringSize( 379 this->file()); 380 } 381 382 // string message = 5; 383 if (this->message().size() > 0) { 384 total_size += 1 + 385 ::google::protobuf::internal::WireFormatLite::StringSize( 386 this->message()); 387 } 388 389 // int64 time = 2; 390 if (this->time() != 0) { 391 total_size += 1 + 392 ::google::protobuf::internal::WireFormatLite::Int64Size( 393 this->time()); 394 } 395 396 // int64 line = 4; 397 if (this->line() != 0) { 398 total_size += 1 + 399 ::google::protobuf::internal::WireFormatLite::Int64Size( 400 this->line()); 401 } 402 403 // int64 goroutine = 6; 404 if (this->goroutine() != 0) { 405 total_size += 1 + 406 ::google::protobuf::internal::WireFormatLite::Int64Size( 407 this->goroutine()); 408 } 409 410 // .cockroach.util.log.Severity severity = 1; 411 if (this->severity() != 0) { 412 total_size += 1 + 413 ::google::protobuf::internal::WireFormatLite::EnumSize(this->severity()); 414 } 415 416 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 417 SetCachedSize(cached_size); 418 return total_size; 419 } 420 421 void Entry::CheckTypeAndMergeFrom( 422 const ::google::protobuf::MessageLite& from) { 423 MergeFrom(*::google::protobuf::down_cast<const Entry*>(&from)); 424 } 425 426 void Entry::MergeFrom(const Entry& from) { 427 // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.util.log.Entry) 428 GOOGLE_DCHECK_NE(&from, this); 429 _internal_metadata_.MergeFrom(from._internal_metadata_); 430 ::google::protobuf::uint32 cached_has_bits = 0; 431 (void) cached_has_bits; 432 433 if (from.file().size() > 0) { 434 435 file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_); 436 } 437 if (from.message().size() > 0) { 438 439 message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); 440 } 441 if (from.time() != 0) { 442 set_time(from.time()); 443 } 444 if (from.line() != 0) { 445 set_line(from.line()); 446 } 447 if (from.goroutine() != 0) { 448 set_goroutine(from.goroutine()); 449 } 450 if (from.severity() != 0) { 451 set_severity(from.severity()); 452 } 453 } 454 455 void Entry::CopyFrom(const Entry& from) { 456 // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.util.log.Entry) 457 if (&from == this) return; 458 Clear(); 459 MergeFrom(from); 460 } 461 462 bool Entry::IsInitialized() const { 463 return true; 464 } 465 466 void Entry::Swap(Entry* other) { 467 if (other == this) return; 468 InternalSwap(other); 469 } 470 void Entry::InternalSwap(Entry* other) { 471 using std::swap; 472 file_.Swap(&other->file_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), 473 GetArenaNoVirtual()); 474 message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), 475 GetArenaNoVirtual()); 476 swap(time_, other->time_); 477 swap(line_, other->line_); 478 swap(goroutine_, other->goroutine_); 479 swap(severity_, other->severity_); 480 _internal_metadata_.Swap(&other->_internal_metadata_); 481 } 482 483 ::std::string Entry::GetTypeName() const { 484 return "cockroach.util.log.Entry"; 485 } 486 487 488 // =================================================================== 489 490 void FileDetails::InitAsDefaultInstance() { 491 } 492 #if !defined(_MSC_VER) || _MSC_VER >= 1900 493 const int FileDetails::kProgramFieldNumber; 494 const int FileDetails::kHostFieldNumber; 495 const int FileDetails::kUserNameFieldNumber; 496 const int FileDetails::kTimeFieldNumber; 497 const int FileDetails::kPidFieldNumber; 498 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 499 500 FileDetails::FileDetails() 501 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { 502 ::google::protobuf::internal::InitSCC( 503 &protobuf_util_2flog_2flog_2eproto::scc_info_FileDetails.base); 504 SharedCtor(); 505 // @@protoc_insertion_point(constructor:cockroach.util.log.FileDetails) 506 } 507 FileDetails::FileDetails(const FileDetails& from) 508 : ::google::protobuf::MessageLite(), 509 _internal_metadata_(NULL) { 510 _internal_metadata_.MergeFrom(from._internal_metadata_); 511 program_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 512 if (from.program().size() > 0) { 513 program_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.program_); 514 } 515 host_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 516 if (from.host().size() > 0) { 517 host_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.host_); 518 } 519 user_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 520 if (from.user_name().size() > 0) { 521 user_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.user_name_); 522 } 523 ::memcpy(&time_, &from.time_, 524 static_cast<size_t>(reinterpret_cast<char*>(&pid_) - 525 reinterpret_cast<char*>(&time_)) + sizeof(pid_)); 526 // @@protoc_insertion_point(copy_constructor:cockroach.util.log.FileDetails) 527 } 528 529 void FileDetails::SharedCtor() { 530 program_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 531 host_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 532 user_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 533 ::memset(&time_, 0, static_cast<size_t>( 534 reinterpret_cast<char*>(&pid_) - 535 reinterpret_cast<char*>(&time_)) + sizeof(pid_)); 536 } 537 538 FileDetails::~FileDetails() { 539 // @@protoc_insertion_point(destructor:cockroach.util.log.FileDetails) 540 SharedDtor(); 541 } 542 543 void FileDetails::SharedDtor() { 544 program_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 545 host_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 546 user_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 547 } 548 549 void FileDetails::SetCachedSize(int size) const { 550 _cached_size_.Set(size); 551 } 552 const FileDetails& FileDetails::default_instance() { 553 ::google::protobuf::internal::InitSCC(&protobuf_util_2flog_2flog_2eproto::scc_info_FileDetails.base); 554 return *internal_default_instance(); 555 } 556 557 558 void FileDetails::Clear() { 559 // @@protoc_insertion_point(message_clear_start:cockroach.util.log.FileDetails) 560 ::google::protobuf::uint32 cached_has_bits = 0; 561 // Prevent compiler warnings about cached_has_bits being unused 562 (void) cached_has_bits; 563 564 program_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 565 host_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 566 user_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 567 ::memset(&time_, 0, static_cast<size_t>( 568 reinterpret_cast<char*>(&pid_) - 569 reinterpret_cast<char*>(&time_)) + sizeof(pid_)); 570 _internal_metadata_.Clear(); 571 } 572 573 bool FileDetails::MergePartialFromCodedStream( 574 ::google::protobuf::io::CodedInputStream* input) { 575 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 576 ::google::protobuf::uint32 tag; 577 ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( 578 &_internal_metadata_); 579 ::google::protobuf::io::StringOutputStream unknown_fields_output( 580 unknown_fields_setter.buffer()); 581 ::google::protobuf::io::CodedOutputStream unknown_fields_stream( 582 &unknown_fields_output, false); 583 // @@protoc_insertion_point(parse_start:cockroach.util.log.FileDetails) 584 for (;;) { 585 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); 586 tag = p.first; 587 if (!p.second) goto handle_unusual; 588 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 589 // string program = 1; 590 case 1: { 591 if (static_cast< ::google::protobuf::uint8>(tag) == 592 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { 593 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 594 input, this->mutable_program())); 595 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 596 this->program().data(), static_cast<int>(this->program().length()), 597 ::google::protobuf::internal::WireFormatLite::PARSE, 598 "cockroach.util.log.FileDetails.program")); 599 } else { 600 goto handle_unusual; 601 } 602 break; 603 } 604 605 // string host = 2; 606 case 2: { 607 if (static_cast< ::google::protobuf::uint8>(tag) == 608 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { 609 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 610 input, this->mutable_host())); 611 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 612 this->host().data(), static_cast<int>(this->host().length()), 613 ::google::protobuf::internal::WireFormatLite::PARSE, 614 "cockroach.util.log.FileDetails.host")); 615 } else { 616 goto handle_unusual; 617 } 618 break; 619 } 620 621 // string user_name = 3; 622 case 3: { 623 if (static_cast< ::google::protobuf::uint8>(tag) == 624 static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { 625 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 626 input, this->mutable_user_name())); 627 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 628 this->user_name().data(), static_cast<int>(this->user_name().length()), 629 ::google::protobuf::internal::WireFormatLite::PARSE, 630 "cockroach.util.log.FileDetails.user_name")); 631 } else { 632 goto handle_unusual; 633 } 634 break; 635 } 636 637 // int64 time = 5; 638 case 5: { 639 if (static_cast< ::google::protobuf::uint8>(tag) == 640 static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { 641 642 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 643 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 644 input, &time_))); 645 } else { 646 goto handle_unusual; 647 } 648 break; 649 } 650 651 case 6: { 652 if (static_cast< ::google::protobuf::uint8>(tag) == 653 static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { 654 655 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 656 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 657 input, &pid_))); 658 } else { 659 goto handle_unusual; 660 } 661 break; 662 } 663 664 default: { 665 handle_unusual: 666 if (tag == 0) { 667 goto success; 668 } 669 DO_(::google::protobuf::internal::WireFormatLite::SkipField( 670 input, tag, &unknown_fields_stream)); 671 break; 672 } 673 } 674 } 675 success: 676 // @@protoc_insertion_point(parse_success:cockroach.util.log.FileDetails) 677 return true; 678 failure: 679 // @@protoc_insertion_point(parse_failure:cockroach.util.log.FileDetails) 680 return false; 681 #undef DO_ 682 } 683 684 void FileDetails::SerializeWithCachedSizes( 685 ::google::protobuf::io::CodedOutputStream* output) const { 686 // @@protoc_insertion_point(serialize_start:cockroach.util.log.FileDetails) 687 ::google::protobuf::uint32 cached_has_bits = 0; 688 (void) cached_has_bits; 689 690 // string program = 1; 691 if (this->program().size() > 0) { 692 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 693 this->program().data(), static_cast<int>(this->program().length()), 694 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 695 "cockroach.util.log.FileDetails.program"); 696 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 697 1, this->program(), output); 698 } 699 700 // string host = 2; 701 if (this->host().size() > 0) { 702 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 703 this->host().data(), static_cast<int>(this->host().length()), 704 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 705 "cockroach.util.log.FileDetails.host"); 706 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 707 2, this->host(), output); 708 } 709 710 // string user_name = 3; 711 if (this->user_name().size() > 0) { 712 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 713 this->user_name().data(), static_cast<int>(this->user_name().length()), 714 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 715 "cockroach.util.log.FileDetails.user_name"); 716 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 717 3, this->user_name(), output); 718 } 719 720 // int64 time = 5; 721 if (this->time() != 0) { 722 ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->time(), output); 723 } 724 725 if (this->pid() != 0) { 726 ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->pid(), output); 727 } 728 729 output->WriteRaw((::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()).data(), 730 static_cast<int>((::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()).size())); 731 // @@protoc_insertion_point(serialize_end:cockroach.util.log.FileDetails) 732 } 733 734 size_t FileDetails::ByteSizeLong() const { 735 // @@protoc_insertion_point(message_byte_size_start:cockroach.util.log.FileDetails) 736 size_t total_size = 0; 737 738 total_size += (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()).size(); 739 740 // string program = 1; 741 if (this->program().size() > 0) { 742 total_size += 1 + 743 ::google::protobuf::internal::WireFormatLite::StringSize( 744 this->program()); 745 } 746 747 // string host = 2; 748 if (this->host().size() > 0) { 749 total_size += 1 + 750 ::google::protobuf::internal::WireFormatLite::StringSize( 751 this->host()); 752 } 753 754 // string user_name = 3; 755 if (this->user_name().size() > 0) { 756 total_size += 1 + 757 ::google::protobuf::internal::WireFormatLite::StringSize( 758 this->user_name()); 759 } 760 761 // int64 time = 5; 762 if (this->time() != 0) { 763 total_size += 1 + 764 ::google::protobuf::internal::WireFormatLite::Int64Size( 765 this->time()); 766 } 767 768 if (this->pid() != 0) { 769 total_size += 1 + 770 ::google::protobuf::internal::WireFormatLite::Int64Size( 771 this->pid()); 772 } 773 774 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 775 SetCachedSize(cached_size); 776 return total_size; 777 } 778 779 void FileDetails::CheckTypeAndMergeFrom( 780 const ::google::protobuf::MessageLite& from) { 781 MergeFrom(*::google::protobuf::down_cast<const FileDetails*>(&from)); 782 } 783 784 void FileDetails::MergeFrom(const FileDetails& from) { 785 // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.util.log.FileDetails) 786 GOOGLE_DCHECK_NE(&from, this); 787 _internal_metadata_.MergeFrom(from._internal_metadata_); 788 ::google::protobuf::uint32 cached_has_bits = 0; 789 (void) cached_has_bits; 790 791 if (from.program().size() > 0) { 792 793 program_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.program_); 794 } 795 if (from.host().size() > 0) { 796 797 host_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.host_); 798 } 799 if (from.user_name().size() > 0) { 800 801 user_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.user_name_); 802 } 803 if (from.time() != 0) { 804 set_time(from.time()); 805 } 806 if (from.pid() != 0) { 807 set_pid(from.pid()); 808 } 809 } 810 811 void FileDetails::CopyFrom(const FileDetails& from) { 812 // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.util.log.FileDetails) 813 if (&from == this) return; 814 Clear(); 815 MergeFrom(from); 816 } 817 818 bool FileDetails::IsInitialized() const { 819 return true; 820 } 821 822 void FileDetails::Swap(FileDetails* other) { 823 if (other == this) return; 824 InternalSwap(other); 825 } 826 void FileDetails::InternalSwap(FileDetails* other) { 827 using std::swap; 828 program_.Swap(&other->program_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), 829 GetArenaNoVirtual()); 830 host_.Swap(&other->host_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), 831 GetArenaNoVirtual()); 832 user_name_.Swap(&other->user_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), 833 GetArenaNoVirtual()); 834 swap(time_, other->time_); 835 swap(pid_, other->pid_); 836 _internal_metadata_.Swap(&other->_internal_metadata_); 837 } 838 839 ::std::string FileDetails::GetTypeName() const { 840 return "cockroach.util.log.FileDetails"; 841 } 842 843 844 // =================================================================== 845 846 void FileInfo::InitAsDefaultInstance() { 847 ::cockroach::util::log::_FileInfo_default_instance_._instance.get_mutable()->details_ = const_cast< ::cockroach::util::log::FileDetails*>( 848 ::cockroach::util::log::FileDetails::internal_default_instance()); 849 } 850 #if !defined(_MSC_VER) || _MSC_VER >= 1900 851 const int FileInfo::kNameFieldNumber; 852 const int FileInfo::kSizeBytesFieldNumber; 853 const int FileInfo::kModTimeNanosFieldNumber; 854 const int FileInfo::kDetailsFieldNumber; 855 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 856 857 FileInfo::FileInfo() 858 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { 859 ::google::protobuf::internal::InitSCC( 860 &protobuf_util_2flog_2flog_2eproto::scc_info_FileInfo.base); 861 SharedCtor(); 862 // @@protoc_insertion_point(constructor:cockroach.util.log.FileInfo) 863 } 864 FileInfo::FileInfo(const FileInfo& from) 865 : ::google::protobuf::MessageLite(), 866 _internal_metadata_(NULL) { 867 _internal_metadata_.MergeFrom(from._internal_metadata_); 868 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 869 if (from.name().size() > 0) { 870 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); 871 } 872 if (from.has_details()) { 873 details_ = new ::cockroach::util::log::FileDetails(*from.details_); 874 } else { 875 details_ = NULL; 876 } 877 ::memcpy(&size_bytes_, &from.size_bytes_, 878 static_cast<size_t>(reinterpret_cast<char*>(&mod_time_nanos_) - 879 reinterpret_cast<char*>(&size_bytes_)) + sizeof(mod_time_nanos_)); 880 // @@protoc_insertion_point(copy_constructor:cockroach.util.log.FileInfo) 881 } 882 883 void FileInfo::SharedCtor() { 884 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 885 ::memset(&details_, 0, static_cast<size_t>( 886 reinterpret_cast<char*>(&mod_time_nanos_) - 887 reinterpret_cast<char*>(&details_)) + sizeof(mod_time_nanos_)); 888 } 889 890 FileInfo::~FileInfo() { 891 // @@protoc_insertion_point(destructor:cockroach.util.log.FileInfo) 892 SharedDtor(); 893 } 894 895 void FileInfo::SharedDtor() { 896 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 897 if (this != internal_default_instance()) delete details_; 898 } 899 900 void FileInfo::SetCachedSize(int size) const { 901 _cached_size_.Set(size); 902 } 903 const FileInfo& FileInfo::default_instance() { 904 ::google::protobuf::internal::InitSCC(&protobuf_util_2flog_2flog_2eproto::scc_info_FileInfo.base); 905 return *internal_default_instance(); 906 } 907 908 909 void FileInfo::Clear() { 910 // @@protoc_insertion_point(message_clear_start:cockroach.util.log.FileInfo) 911 ::google::protobuf::uint32 cached_has_bits = 0; 912 // Prevent compiler warnings about cached_has_bits being unused 913 (void) cached_has_bits; 914 915 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 916 if (GetArenaNoVirtual() == NULL && details_ != NULL) { 917 delete details_; 918 } 919 details_ = NULL; 920 ::memset(&size_bytes_, 0, static_cast<size_t>( 921 reinterpret_cast<char*>(&mod_time_nanos_) - 922 reinterpret_cast<char*>(&size_bytes_)) + sizeof(mod_time_nanos_)); 923 _internal_metadata_.Clear(); 924 } 925 926 bool FileInfo::MergePartialFromCodedStream( 927 ::google::protobuf::io::CodedInputStream* input) { 928 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 929 ::google::protobuf::uint32 tag; 930 ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( 931 &_internal_metadata_); 932 ::google::protobuf::io::StringOutputStream unknown_fields_output( 933 unknown_fields_setter.buffer()); 934 ::google::protobuf::io::CodedOutputStream unknown_fields_stream( 935 &unknown_fields_output, false); 936 // @@protoc_insertion_point(parse_start:cockroach.util.log.FileInfo) 937 for (;;) { 938 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); 939 tag = p.first; 940 if (!p.second) goto handle_unusual; 941 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 942 // string name = 1; 943 case 1: { 944 if (static_cast< ::google::protobuf::uint8>(tag) == 945 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { 946 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 947 input, this->mutable_name())); 948 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 949 this->name().data(), static_cast<int>(this->name().length()), 950 ::google::protobuf::internal::WireFormatLite::PARSE, 951 "cockroach.util.log.FileInfo.name")); 952 } else { 953 goto handle_unusual; 954 } 955 break; 956 } 957 958 // int64 size_bytes = 2; 959 case 2: { 960 if (static_cast< ::google::protobuf::uint8>(tag) == 961 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { 962 963 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 964 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 965 input, &size_bytes_))); 966 } else { 967 goto handle_unusual; 968 } 969 break; 970 } 971 972 // int64 mod_time_nanos = 3; 973 case 3: { 974 if (static_cast< ::google::protobuf::uint8>(tag) == 975 static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { 976 977 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 978 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 979 input, &mod_time_nanos_))); 980 } else { 981 goto handle_unusual; 982 } 983 break; 984 } 985 986 case 4: { 987 if (static_cast< ::google::protobuf::uint8>(tag) == 988 static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { 989 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( 990 input, mutable_details())); 991 } else { 992 goto handle_unusual; 993 } 994 break; 995 } 996 997 default: { 998 handle_unusual: 999 if (tag == 0) { 1000 goto success; 1001 } 1002 DO_(::google::protobuf::internal::WireFormatLite::SkipField( 1003 input, tag, &unknown_fields_stream)); 1004 break; 1005 } 1006 } 1007 } 1008 success: 1009 // @@protoc_insertion_point(parse_success:cockroach.util.log.FileInfo) 1010 return true; 1011 failure: 1012 // @@protoc_insertion_point(parse_failure:cockroach.util.log.FileInfo) 1013 return false; 1014 #undef DO_ 1015 } 1016 1017 void FileInfo::SerializeWithCachedSizes( 1018 ::google::protobuf::io::CodedOutputStream* output) const { 1019 // @@protoc_insertion_point(serialize_start:cockroach.util.log.FileInfo) 1020 ::google::protobuf::uint32 cached_has_bits = 0; 1021 (void) cached_has_bits; 1022 1023 // string name = 1; 1024 if (this->name().size() > 0) { 1025 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1026 this->name().data(), static_cast<int>(this->name().length()), 1027 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1028 "cockroach.util.log.FileInfo.name"); 1029 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1030 1, this->name(), output); 1031 } 1032 1033 // int64 size_bytes = 2; 1034 if (this->size_bytes() != 0) { 1035 ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->size_bytes(), output); 1036 } 1037 1038 // int64 mod_time_nanos = 3; 1039 if (this->mod_time_nanos() != 0) { 1040 ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->mod_time_nanos(), output); 1041 } 1042 1043 if (this->has_details()) { 1044 ::google::protobuf::internal::WireFormatLite::WriteMessage( 1045 4, this->_internal_details(), output); 1046 } 1047 1048 output->WriteRaw((::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()).data(), 1049 static_cast<int>((::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()).size())); 1050 // @@protoc_insertion_point(serialize_end:cockroach.util.log.FileInfo) 1051 } 1052 1053 size_t FileInfo::ByteSizeLong() const { 1054 // @@protoc_insertion_point(message_byte_size_start:cockroach.util.log.FileInfo) 1055 size_t total_size = 0; 1056 1057 total_size += (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()).size(); 1058 1059 // string name = 1; 1060 if (this->name().size() > 0) { 1061 total_size += 1 + 1062 ::google::protobuf::internal::WireFormatLite::StringSize( 1063 this->name()); 1064 } 1065 1066 if (this->has_details()) { 1067 total_size += 1 + 1068 ::google::protobuf::internal::WireFormatLite::MessageSize( 1069 *details_); 1070 } 1071 1072 // int64 size_bytes = 2; 1073 if (this->size_bytes() != 0) { 1074 total_size += 1 + 1075 ::google::protobuf::internal::WireFormatLite::Int64Size( 1076 this->size_bytes()); 1077 } 1078 1079 // int64 mod_time_nanos = 3; 1080 if (this->mod_time_nanos() != 0) { 1081 total_size += 1 + 1082 ::google::protobuf::internal::WireFormatLite::Int64Size( 1083 this->mod_time_nanos()); 1084 } 1085 1086 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 1087 SetCachedSize(cached_size); 1088 return total_size; 1089 } 1090 1091 void FileInfo::CheckTypeAndMergeFrom( 1092 const ::google::protobuf::MessageLite& from) { 1093 MergeFrom(*::google::protobuf::down_cast<const FileInfo*>(&from)); 1094 } 1095 1096 void FileInfo::MergeFrom(const FileInfo& from) { 1097 // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.util.log.FileInfo) 1098 GOOGLE_DCHECK_NE(&from, this); 1099 _internal_metadata_.MergeFrom(from._internal_metadata_); 1100 ::google::protobuf::uint32 cached_has_bits = 0; 1101 (void) cached_has_bits; 1102 1103 if (from.name().size() > 0) { 1104 1105 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); 1106 } 1107 if (from.has_details()) { 1108 mutable_details()->::cockroach::util::log::FileDetails::MergeFrom(from.details()); 1109 } 1110 if (from.size_bytes() != 0) { 1111 set_size_bytes(from.size_bytes()); 1112 } 1113 if (from.mod_time_nanos() != 0) { 1114 set_mod_time_nanos(from.mod_time_nanos()); 1115 } 1116 } 1117 1118 void FileInfo::CopyFrom(const FileInfo& from) { 1119 // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.util.log.FileInfo) 1120 if (&from == this) return; 1121 Clear(); 1122 MergeFrom(from); 1123 } 1124 1125 bool FileInfo::IsInitialized() const { 1126 return true; 1127 } 1128 1129 void FileInfo::Swap(FileInfo* other) { 1130 if (other == this) return; 1131 InternalSwap(other); 1132 } 1133 void FileInfo::InternalSwap(FileInfo* other) { 1134 using std::swap; 1135 name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1136 GetArenaNoVirtual()); 1137 swap(details_, other->details_); 1138 swap(size_bytes_, other->size_bytes_); 1139 swap(mod_time_nanos_, other->mod_time_nanos_); 1140 _internal_metadata_.Swap(&other->_internal_metadata_); 1141 } 1142 1143 ::std::string FileInfo::GetTypeName() const { 1144 return "cockroach.util.log.FileInfo"; 1145 } 1146 1147 1148 // @@protoc_insertion_point(namespace_scope) 1149 } // namespace log 1150 } // namespace util 1151 } // namespace cockroach 1152 namespace google { 1153 namespace protobuf { 1154 template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::cockroach::util::log::Entry* Arena::CreateMaybeMessage< ::cockroach::util::log::Entry >(Arena* arena) { 1155 return Arena::CreateInternal< ::cockroach::util::log::Entry >(arena); 1156 } 1157 template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::cockroach::util::log::FileDetails* Arena::CreateMaybeMessage< ::cockroach::util::log::FileDetails >(Arena* arena) { 1158 return Arena::CreateInternal< ::cockroach::util::log::FileDetails >(arena); 1159 } 1160 template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::cockroach::util::log::FileInfo* Arena::CreateMaybeMessage< ::cockroach::util::log::FileInfo >(Arena* arena) { 1161 return Arena::CreateInternal< ::cockroach::util::log::FileInfo >(arena); 1162 } 1163 } // namespace protobuf 1164 } // namespace google 1165 1166 // @@protoc_insertion_point(global_scope)