github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/c-deps/libroach/protos/util/tracing/recorded_span.pb.h (about) 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: util/tracing/recorded_span.proto 3 4 #ifndef PROTOBUF_INCLUDED_util_2ftracing_2frecorded_5fspan_2eproto 5 #define PROTOBUF_INCLUDED_util_2ftracing_2frecorded_5fspan_2eproto 6 7 #include <string> 8 9 #include <google/protobuf/stubs/common.h> 10 11 #if GOOGLE_PROTOBUF_VERSION < 3006000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 14 #error your headers. 15 #endif 16 #if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 20 #endif 21 22 #include <google/protobuf/io/coded_stream.h> 23 #include <google/protobuf/arena.h> 24 #include <google/protobuf/arenastring.h> 25 #include <google/protobuf/generated_message_table_driven.h> 26 #include <google/protobuf/generated_message_util.h> 27 #include <google/protobuf/inlined_string_field.h> 28 #include <google/protobuf/metadata_lite.h> 29 #include <google/protobuf/message_lite.h> 30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export 31 #include <google/protobuf/extension_set.h> // IWYU pragma: export 32 #include <google/protobuf/map.h> // IWYU pragma: export 33 #include <google/protobuf/map_entry_lite.h> 34 #include <google/protobuf/map_field_lite.h> 35 #include <google/protobuf/any.pb.h> 36 #include <google/protobuf/timestamp.pb.h> 37 #include <google/protobuf/duration.pb.h> 38 // @@protoc_insertion_point(includes) 39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_util_2ftracing_2frecorded_5fspan_2eproto 40 41 namespace protobuf_util_2ftracing_2frecorded_5fspan_2eproto { 42 // Internal implementation detail -- do not use these members. 43 struct TableStruct { 44 static const ::google::protobuf::internal::ParseTableField entries[]; 45 static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; 46 static const ::google::protobuf::internal::ParseTable schema[7]; 47 static const ::google::protobuf::internal::FieldMetadata field_metadata[]; 48 static const ::google::protobuf::internal::SerializationTable serialization_table[]; 49 static const ::google::protobuf::uint32 offsets[]; 50 }; 51 } // namespace protobuf_util_2ftracing_2frecorded_5fspan_2eproto 52 namespace cockroach { 53 namespace util { 54 namespace tracing { 55 class LogRecord; 56 class LogRecordDefaultTypeInternal; 57 extern LogRecordDefaultTypeInternal _LogRecord_default_instance_; 58 class LogRecord_Field; 59 class LogRecord_FieldDefaultTypeInternal; 60 extern LogRecord_FieldDefaultTypeInternal _LogRecord_Field_default_instance_; 61 class NormalizedSpan; 62 class NormalizedSpanDefaultTypeInternal; 63 extern NormalizedSpanDefaultTypeInternal _NormalizedSpan_default_instance_; 64 class NormalizedSpan_TagsEntry_DoNotUse; 65 class NormalizedSpan_TagsEntry_DoNotUseDefaultTypeInternal; 66 extern NormalizedSpan_TagsEntry_DoNotUseDefaultTypeInternal _NormalizedSpan_TagsEntry_DoNotUse_default_instance_; 67 class RecordedSpan; 68 class RecordedSpanDefaultTypeInternal; 69 extern RecordedSpanDefaultTypeInternal _RecordedSpan_default_instance_; 70 class RecordedSpan_BaggageEntry_DoNotUse; 71 class RecordedSpan_BaggageEntry_DoNotUseDefaultTypeInternal; 72 extern RecordedSpan_BaggageEntry_DoNotUseDefaultTypeInternal _RecordedSpan_BaggageEntry_DoNotUse_default_instance_; 73 class RecordedSpan_TagsEntry_DoNotUse; 74 class RecordedSpan_TagsEntry_DoNotUseDefaultTypeInternal; 75 extern RecordedSpan_TagsEntry_DoNotUseDefaultTypeInternal _RecordedSpan_TagsEntry_DoNotUse_default_instance_; 76 } // namespace tracing 77 } // namespace util 78 } // namespace cockroach 79 namespace google { 80 namespace protobuf { 81 template<> ::cockroach::util::tracing::LogRecord* Arena::CreateMaybeMessage<::cockroach::util::tracing::LogRecord>(Arena*); 82 template<> ::cockroach::util::tracing::LogRecord_Field* Arena::CreateMaybeMessage<::cockroach::util::tracing::LogRecord_Field>(Arena*); 83 template<> ::cockroach::util::tracing::NormalizedSpan* Arena::CreateMaybeMessage<::cockroach::util::tracing::NormalizedSpan>(Arena*); 84 template<> ::cockroach::util::tracing::NormalizedSpan_TagsEntry_DoNotUse* Arena::CreateMaybeMessage<::cockroach::util::tracing::NormalizedSpan_TagsEntry_DoNotUse>(Arena*); 85 template<> ::cockroach::util::tracing::RecordedSpan* Arena::CreateMaybeMessage<::cockroach::util::tracing::RecordedSpan>(Arena*); 86 template<> ::cockroach::util::tracing::RecordedSpan_BaggageEntry_DoNotUse* Arena::CreateMaybeMessage<::cockroach::util::tracing::RecordedSpan_BaggageEntry_DoNotUse>(Arena*); 87 template<> ::cockroach::util::tracing::RecordedSpan_TagsEntry_DoNotUse* Arena::CreateMaybeMessage<::cockroach::util::tracing::RecordedSpan_TagsEntry_DoNotUse>(Arena*); 88 } // namespace protobuf 89 } // namespace google 90 namespace cockroach { 91 namespace util { 92 namespace tracing { 93 94 // =================================================================== 95 96 class LogRecord_Field : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.util.tracing.LogRecord.Field) */ { 97 public: 98 LogRecord_Field(); 99 virtual ~LogRecord_Field(); 100 101 LogRecord_Field(const LogRecord_Field& from); 102 103 inline LogRecord_Field& operator=(const LogRecord_Field& from) { 104 CopyFrom(from); 105 return *this; 106 } 107 #if LANG_CXX11 108 LogRecord_Field(LogRecord_Field&& from) noexcept 109 : LogRecord_Field() { 110 *this = ::std::move(from); 111 } 112 113 inline LogRecord_Field& operator=(LogRecord_Field&& from) noexcept { 114 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 115 if (this != &from) InternalSwap(&from); 116 } else { 117 CopyFrom(from); 118 } 119 return *this; 120 } 121 #endif 122 static const LogRecord_Field& default_instance(); 123 124 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 125 static inline const LogRecord_Field* internal_default_instance() { 126 return reinterpret_cast<const LogRecord_Field*>( 127 &_LogRecord_Field_default_instance_); 128 } 129 static constexpr int kIndexInFileMessages = 130 0; 131 132 void Swap(LogRecord_Field* other); 133 friend void swap(LogRecord_Field& a, LogRecord_Field& b) { 134 a.Swap(&b); 135 } 136 137 // implements Message ---------------------------------------------- 138 139 inline LogRecord_Field* New() const final { 140 return CreateMaybeMessage<LogRecord_Field>(NULL); 141 } 142 143 LogRecord_Field* New(::google::protobuf::Arena* arena) const final { 144 return CreateMaybeMessage<LogRecord_Field>(arena); 145 } 146 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 147 final; 148 void CopyFrom(const LogRecord_Field& from); 149 void MergeFrom(const LogRecord_Field& from); 150 void Clear() final; 151 bool IsInitialized() const final; 152 153 size_t ByteSizeLong() const final; 154 bool MergePartialFromCodedStream( 155 ::google::protobuf::io::CodedInputStream* input) final; 156 void SerializeWithCachedSizes( 157 ::google::protobuf::io::CodedOutputStream* output) const final; 158 void DiscardUnknownFields(); 159 int GetCachedSize() const final { return _cached_size_.Get(); } 160 161 private: 162 void SharedCtor(); 163 void SharedDtor(); 164 void SetCachedSize(int size) const; 165 void InternalSwap(LogRecord_Field* other); 166 private: 167 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 168 return NULL; 169 } 170 inline void* MaybeArenaPtr() const { 171 return NULL; 172 } 173 public: 174 175 ::std::string GetTypeName() const final; 176 177 // nested types ---------------------------------------------------- 178 179 // accessors ------------------------------------------------------- 180 181 // string key = 1; 182 void clear_key(); 183 static const int kKeyFieldNumber = 1; 184 const ::std::string& key() const; 185 void set_key(const ::std::string& value); 186 #if LANG_CXX11 187 void set_key(::std::string&& value); 188 #endif 189 void set_key(const char* value); 190 void set_key(const char* value, size_t size); 191 ::std::string* mutable_key(); 192 ::std::string* release_key(); 193 void set_allocated_key(::std::string* key); 194 195 // string value = 2; 196 void clear_value(); 197 static const int kValueFieldNumber = 2; 198 const ::std::string& value() const; 199 void set_value(const ::std::string& value); 200 #if LANG_CXX11 201 void set_value(::std::string&& value); 202 #endif 203 void set_value(const char* value); 204 void set_value(const char* value, size_t size); 205 ::std::string* mutable_value(); 206 ::std::string* release_value(); 207 void set_allocated_value(::std::string* value); 208 209 // @@protoc_insertion_point(class_scope:cockroach.util.tracing.LogRecord.Field) 210 private: 211 212 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 213 ::google::protobuf::internal::ArenaStringPtr key_; 214 ::google::protobuf::internal::ArenaStringPtr value_; 215 mutable ::google::protobuf::internal::CachedSize _cached_size_; 216 friend struct ::protobuf_util_2ftracing_2frecorded_5fspan_2eproto::TableStruct; 217 }; 218 // ------------------------------------------------------------------- 219 220 class LogRecord : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.util.tracing.LogRecord) */ { 221 public: 222 LogRecord(); 223 virtual ~LogRecord(); 224 225 LogRecord(const LogRecord& from); 226 227 inline LogRecord& operator=(const LogRecord& from) { 228 CopyFrom(from); 229 return *this; 230 } 231 #if LANG_CXX11 232 LogRecord(LogRecord&& from) noexcept 233 : LogRecord() { 234 *this = ::std::move(from); 235 } 236 237 inline LogRecord& operator=(LogRecord&& from) noexcept { 238 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 239 if (this != &from) InternalSwap(&from); 240 } else { 241 CopyFrom(from); 242 } 243 return *this; 244 } 245 #endif 246 static const LogRecord& default_instance(); 247 248 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 249 static inline const LogRecord* internal_default_instance() { 250 return reinterpret_cast<const LogRecord*>( 251 &_LogRecord_default_instance_); 252 } 253 static constexpr int kIndexInFileMessages = 254 1; 255 256 void Swap(LogRecord* other); 257 friend void swap(LogRecord& a, LogRecord& b) { 258 a.Swap(&b); 259 } 260 261 // implements Message ---------------------------------------------- 262 263 inline LogRecord* New() const final { 264 return CreateMaybeMessage<LogRecord>(NULL); 265 } 266 267 LogRecord* New(::google::protobuf::Arena* arena) const final { 268 return CreateMaybeMessage<LogRecord>(arena); 269 } 270 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 271 final; 272 void CopyFrom(const LogRecord& from); 273 void MergeFrom(const LogRecord& from); 274 void Clear() final; 275 bool IsInitialized() const final; 276 277 size_t ByteSizeLong() const final; 278 bool MergePartialFromCodedStream( 279 ::google::protobuf::io::CodedInputStream* input) final; 280 void SerializeWithCachedSizes( 281 ::google::protobuf::io::CodedOutputStream* output) const final; 282 void DiscardUnknownFields(); 283 int GetCachedSize() const final { return _cached_size_.Get(); } 284 285 private: 286 void SharedCtor(); 287 void SharedDtor(); 288 void SetCachedSize(int size) const; 289 void InternalSwap(LogRecord* other); 290 private: 291 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 292 return NULL; 293 } 294 inline void* MaybeArenaPtr() const { 295 return NULL; 296 } 297 public: 298 299 ::std::string GetTypeName() const final; 300 301 // nested types ---------------------------------------------------- 302 303 typedef LogRecord_Field Field; 304 305 // accessors ------------------------------------------------------- 306 307 int fields_size() const; 308 void clear_fields(); 309 static const int kFieldsFieldNumber = 2; 310 ::cockroach::util::tracing::LogRecord_Field* mutable_fields(int index); 311 ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::LogRecord_Field >* 312 mutable_fields(); 313 const ::cockroach::util::tracing::LogRecord_Field& fields(int index) const; 314 ::cockroach::util::tracing::LogRecord_Field* add_fields(); 315 const ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::LogRecord_Field >& 316 fields() const; 317 318 bool has_time() const; 319 void clear_time(); 320 static const int kTimeFieldNumber = 1; 321 private: 322 const ::google::protobuf::Timestamp& _internal_time() const; 323 public: 324 const ::google::protobuf::Timestamp& time() const; 325 ::google::protobuf::Timestamp* release_time(); 326 ::google::protobuf::Timestamp* mutable_time(); 327 void set_allocated_time(::google::protobuf::Timestamp* time); 328 329 // @@protoc_insertion_point(class_scope:cockroach.util.tracing.LogRecord) 330 private: 331 332 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 333 ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::LogRecord_Field > fields_; 334 ::google::protobuf::Timestamp* time_; 335 mutable ::google::protobuf::internal::CachedSize _cached_size_; 336 friend struct ::protobuf_util_2ftracing_2frecorded_5fspan_2eproto::TableStruct; 337 }; 338 // ------------------------------------------------------------------- 339 340 class RecordedSpan_BaggageEntry_DoNotUse : public ::google::protobuf::internal::MapEntryLite<RecordedSpan_BaggageEntry_DoNotUse, 341 ::std::string, ::std::string, 342 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 343 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 344 0 > { 345 public: 346 typedef ::google::protobuf::internal::MapEntryLite<RecordedSpan_BaggageEntry_DoNotUse, 347 ::std::string, ::std::string, 348 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 349 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 350 0 > SuperType; 351 RecordedSpan_BaggageEntry_DoNotUse(); 352 RecordedSpan_BaggageEntry_DoNotUse(::google::protobuf::Arena* arena); 353 void MergeFrom(const RecordedSpan_BaggageEntry_DoNotUse& other); 354 static const RecordedSpan_BaggageEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const RecordedSpan_BaggageEntry_DoNotUse*>(&_RecordedSpan_BaggageEntry_DoNotUse_default_instance_); } 355 }; 356 357 // ------------------------------------------------------------------- 358 359 class RecordedSpan_TagsEntry_DoNotUse : public ::google::protobuf::internal::MapEntryLite<RecordedSpan_TagsEntry_DoNotUse, 360 ::std::string, ::std::string, 361 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 362 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 363 0 > { 364 public: 365 typedef ::google::protobuf::internal::MapEntryLite<RecordedSpan_TagsEntry_DoNotUse, 366 ::std::string, ::std::string, 367 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 368 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 369 0 > SuperType; 370 RecordedSpan_TagsEntry_DoNotUse(); 371 RecordedSpan_TagsEntry_DoNotUse(::google::protobuf::Arena* arena); 372 void MergeFrom(const RecordedSpan_TagsEntry_DoNotUse& other); 373 static const RecordedSpan_TagsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const RecordedSpan_TagsEntry_DoNotUse*>(&_RecordedSpan_TagsEntry_DoNotUse_default_instance_); } 374 }; 375 376 // ------------------------------------------------------------------- 377 378 class RecordedSpan : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.util.tracing.RecordedSpan) */ { 379 public: 380 RecordedSpan(); 381 virtual ~RecordedSpan(); 382 383 RecordedSpan(const RecordedSpan& from); 384 385 inline RecordedSpan& operator=(const RecordedSpan& from) { 386 CopyFrom(from); 387 return *this; 388 } 389 #if LANG_CXX11 390 RecordedSpan(RecordedSpan&& from) noexcept 391 : RecordedSpan() { 392 *this = ::std::move(from); 393 } 394 395 inline RecordedSpan& operator=(RecordedSpan&& from) noexcept { 396 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 397 if (this != &from) InternalSwap(&from); 398 } else { 399 CopyFrom(from); 400 } 401 return *this; 402 } 403 #endif 404 static const RecordedSpan& default_instance(); 405 406 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 407 static inline const RecordedSpan* internal_default_instance() { 408 return reinterpret_cast<const RecordedSpan*>( 409 &_RecordedSpan_default_instance_); 410 } 411 static constexpr int kIndexInFileMessages = 412 4; 413 414 void Swap(RecordedSpan* other); 415 friend void swap(RecordedSpan& a, RecordedSpan& b) { 416 a.Swap(&b); 417 } 418 419 // implements Message ---------------------------------------------- 420 421 inline RecordedSpan* New() const final { 422 return CreateMaybeMessage<RecordedSpan>(NULL); 423 } 424 425 RecordedSpan* New(::google::protobuf::Arena* arena) const final { 426 return CreateMaybeMessage<RecordedSpan>(arena); 427 } 428 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 429 final; 430 void CopyFrom(const RecordedSpan& from); 431 void MergeFrom(const RecordedSpan& from); 432 void Clear() final; 433 bool IsInitialized() const final; 434 435 size_t ByteSizeLong() const final; 436 bool MergePartialFromCodedStream( 437 ::google::protobuf::io::CodedInputStream* input) final; 438 void SerializeWithCachedSizes( 439 ::google::protobuf::io::CodedOutputStream* output) const final; 440 void DiscardUnknownFields(); 441 int GetCachedSize() const final { return _cached_size_.Get(); } 442 443 private: 444 void SharedCtor(); 445 void SharedDtor(); 446 void SetCachedSize(int size) const; 447 void InternalSwap(RecordedSpan* other); 448 private: 449 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 450 return NULL; 451 } 452 inline void* MaybeArenaPtr() const { 453 return NULL; 454 } 455 public: 456 457 ::std::string GetTypeName() const final; 458 459 // nested types ---------------------------------------------------- 460 461 462 // accessors ------------------------------------------------------- 463 464 // map<string, string> baggage = 5; 465 int baggage_size() const; 466 void clear_baggage(); 467 static const int kBaggageFieldNumber = 5; 468 const ::google::protobuf::Map< ::std::string, ::std::string >& 469 baggage() const; 470 ::google::protobuf::Map< ::std::string, ::std::string >* 471 mutable_baggage(); 472 473 // map<string, string> tags = 6; 474 int tags_size() const; 475 void clear_tags(); 476 static const int kTagsFieldNumber = 6; 477 const ::google::protobuf::Map< ::std::string, ::std::string >& 478 tags() const; 479 ::google::protobuf::Map< ::std::string, ::std::string >* 480 mutable_tags(); 481 482 int logs_size() const; 483 void clear_logs(); 484 static const int kLogsFieldNumber = 9; 485 ::cockroach::util::tracing::LogRecord* mutable_logs(int index); 486 ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::LogRecord >* 487 mutable_logs(); 488 const ::cockroach::util::tracing::LogRecord& logs(int index) const; 489 ::cockroach::util::tracing::LogRecord* add_logs(); 490 const ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::LogRecord >& 491 logs() const; 492 493 // string operation = 4; 494 void clear_operation(); 495 static const int kOperationFieldNumber = 4; 496 const ::std::string& operation() const; 497 void set_operation(const ::std::string& value); 498 #if LANG_CXX11 499 void set_operation(::std::string&& value); 500 #endif 501 void set_operation(const char* value); 502 void set_operation(const char* value, size_t size); 503 ::std::string* mutable_operation(); 504 ::std::string* release_operation(); 505 void set_allocated_operation(::std::string* operation); 506 507 bool has_start_time() const; 508 void clear_start_time(); 509 static const int kStartTimeFieldNumber = 7; 510 private: 511 const ::google::protobuf::Timestamp& _internal_start_time() const; 512 public: 513 const ::google::protobuf::Timestamp& start_time() const; 514 ::google::protobuf::Timestamp* release_start_time(); 515 ::google::protobuf::Timestamp* mutable_start_time(); 516 void set_allocated_start_time(::google::protobuf::Timestamp* start_time); 517 518 bool has_duration() const; 519 void clear_duration(); 520 static const int kDurationFieldNumber = 8; 521 private: 522 const ::google::protobuf::Duration& _internal_duration() const; 523 public: 524 const ::google::protobuf::Duration& duration() const; 525 ::google::protobuf::Duration* release_duration(); 526 ::google::protobuf::Duration* mutable_duration(); 527 void set_allocated_duration(::google::protobuf::Duration* duration); 528 529 // .google.protobuf.Any stats = 10; 530 bool has_stats() const; 531 void clear_stats(); 532 static const int kStatsFieldNumber = 10; 533 private: 534 const ::google::protobuf::Any& _internal_stats() const; 535 public: 536 const ::google::protobuf::Any& stats() const; 537 ::google::protobuf::Any* release_stats(); 538 ::google::protobuf::Any* mutable_stats(); 539 void set_allocated_stats(::google::protobuf::Any* stats); 540 541 void clear_trace_id(); 542 static const int kTraceIdFieldNumber = 1; 543 ::google::protobuf::uint64 trace_id() const; 544 void set_trace_id(::google::protobuf::uint64 value); 545 546 void clear_span_id(); 547 static const int kSpanIdFieldNumber = 2; 548 ::google::protobuf::uint64 span_id() const; 549 void set_span_id(::google::protobuf::uint64 value); 550 551 void clear_parent_span_id(); 552 static const int kParentSpanIdFieldNumber = 3; 553 ::google::protobuf::uint64 parent_span_id() const; 554 void set_parent_span_id(::google::protobuf::uint64 value); 555 556 // @@protoc_insertion_point(class_scope:cockroach.util.tracing.RecordedSpan) 557 private: 558 559 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 560 ::google::protobuf::internal::MapFieldLite< 561 RecordedSpan_BaggageEntry_DoNotUse, 562 ::std::string, ::std::string, 563 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 564 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 565 0 > baggage_; 566 ::google::protobuf::internal::MapFieldLite< 567 RecordedSpan_TagsEntry_DoNotUse, 568 ::std::string, ::std::string, 569 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 570 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 571 0 > tags_; 572 ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::LogRecord > logs_; 573 ::google::protobuf::internal::ArenaStringPtr operation_; 574 ::google::protobuf::Timestamp* start_time_; 575 ::google::protobuf::Duration* duration_; 576 ::google::protobuf::Any* stats_; 577 ::google::protobuf::uint64 trace_id_; 578 ::google::protobuf::uint64 span_id_; 579 ::google::protobuf::uint64 parent_span_id_; 580 mutable ::google::protobuf::internal::CachedSize _cached_size_; 581 friend struct ::protobuf_util_2ftracing_2frecorded_5fspan_2eproto::TableStruct; 582 }; 583 // ------------------------------------------------------------------- 584 585 class NormalizedSpan_TagsEntry_DoNotUse : public ::google::protobuf::internal::MapEntryLite<NormalizedSpan_TagsEntry_DoNotUse, 586 ::std::string, ::std::string, 587 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 588 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 589 0 > { 590 public: 591 typedef ::google::protobuf::internal::MapEntryLite<NormalizedSpan_TagsEntry_DoNotUse, 592 ::std::string, ::std::string, 593 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 594 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 595 0 > SuperType; 596 NormalizedSpan_TagsEntry_DoNotUse(); 597 NormalizedSpan_TagsEntry_DoNotUse(::google::protobuf::Arena* arena); 598 void MergeFrom(const NormalizedSpan_TagsEntry_DoNotUse& other); 599 static const NormalizedSpan_TagsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const NormalizedSpan_TagsEntry_DoNotUse*>(&_NormalizedSpan_TagsEntry_DoNotUse_default_instance_); } 600 }; 601 602 // ------------------------------------------------------------------- 603 604 class NormalizedSpan : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.util.tracing.NormalizedSpan) */ { 605 public: 606 NormalizedSpan(); 607 virtual ~NormalizedSpan(); 608 609 NormalizedSpan(const NormalizedSpan& from); 610 611 inline NormalizedSpan& operator=(const NormalizedSpan& from) { 612 CopyFrom(from); 613 return *this; 614 } 615 #if LANG_CXX11 616 NormalizedSpan(NormalizedSpan&& from) noexcept 617 : NormalizedSpan() { 618 *this = ::std::move(from); 619 } 620 621 inline NormalizedSpan& operator=(NormalizedSpan&& from) noexcept { 622 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 623 if (this != &from) InternalSwap(&from); 624 } else { 625 CopyFrom(from); 626 } 627 return *this; 628 } 629 #endif 630 static const NormalizedSpan& default_instance(); 631 632 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 633 static inline const NormalizedSpan* internal_default_instance() { 634 return reinterpret_cast<const NormalizedSpan*>( 635 &_NormalizedSpan_default_instance_); 636 } 637 static constexpr int kIndexInFileMessages = 638 6; 639 640 void Swap(NormalizedSpan* other); 641 friend void swap(NormalizedSpan& a, NormalizedSpan& b) { 642 a.Swap(&b); 643 } 644 645 // implements Message ---------------------------------------------- 646 647 inline NormalizedSpan* New() const final { 648 return CreateMaybeMessage<NormalizedSpan>(NULL); 649 } 650 651 NormalizedSpan* New(::google::protobuf::Arena* arena) const final { 652 return CreateMaybeMessage<NormalizedSpan>(arena); 653 } 654 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 655 final; 656 void CopyFrom(const NormalizedSpan& from); 657 void MergeFrom(const NormalizedSpan& from); 658 void Clear() final; 659 bool IsInitialized() const final; 660 661 size_t ByteSizeLong() const final; 662 bool MergePartialFromCodedStream( 663 ::google::protobuf::io::CodedInputStream* input) final; 664 void SerializeWithCachedSizes( 665 ::google::protobuf::io::CodedOutputStream* output) const final; 666 void DiscardUnknownFields(); 667 int GetCachedSize() const final { return _cached_size_.Get(); } 668 669 private: 670 void SharedCtor(); 671 void SharedDtor(); 672 void SetCachedSize(int size) const; 673 void InternalSwap(NormalizedSpan* other); 674 private: 675 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 676 return NULL; 677 } 678 inline void* MaybeArenaPtr() const { 679 return NULL; 680 } 681 public: 682 683 ::std::string GetTypeName() const final; 684 685 // nested types ---------------------------------------------------- 686 687 688 // accessors ------------------------------------------------------- 689 690 // map<string, string> tags = 2; 691 int tags_size() const; 692 void clear_tags(); 693 static const int kTagsFieldNumber = 2; 694 const ::google::protobuf::Map< ::std::string, ::std::string >& 695 tags() const; 696 ::google::protobuf::Map< ::std::string, ::std::string >* 697 mutable_tags(); 698 699 int logs_size() const; 700 void clear_logs(); 701 static const int kLogsFieldNumber = 5; 702 ::cockroach::util::tracing::LogRecord* mutable_logs(int index); 703 ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::LogRecord >* 704 mutable_logs(); 705 const ::cockroach::util::tracing::LogRecord& logs(int index) const; 706 ::cockroach::util::tracing::LogRecord* add_logs(); 707 const ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::LogRecord >& 708 logs() const; 709 710 int children_size() const; 711 void clear_children(); 712 static const int kChildrenFieldNumber = 6; 713 ::cockroach::util::tracing::NormalizedSpan* mutable_children(int index); 714 ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::NormalizedSpan >* 715 mutable_children(); 716 const ::cockroach::util::tracing::NormalizedSpan& children(int index) const; 717 ::cockroach::util::tracing::NormalizedSpan* add_children(); 718 const ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::NormalizedSpan >& 719 children() const; 720 721 // string operation = 1; 722 void clear_operation(); 723 static const int kOperationFieldNumber = 1; 724 const ::std::string& operation() const; 725 void set_operation(const ::std::string& value); 726 #if LANG_CXX11 727 void set_operation(::std::string&& value); 728 #endif 729 void set_operation(const char* value); 730 void set_operation(const char* value, size_t size); 731 ::std::string* mutable_operation(); 732 ::std::string* release_operation(); 733 void set_allocated_operation(::std::string* operation); 734 735 bool has_start_time() const; 736 void clear_start_time(); 737 static const int kStartTimeFieldNumber = 3; 738 private: 739 const ::google::protobuf::Timestamp& _internal_start_time() const; 740 public: 741 const ::google::protobuf::Timestamp& start_time() const; 742 ::google::protobuf::Timestamp* release_start_time(); 743 ::google::protobuf::Timestamp* mutable_start_time(); 744 void set_allocated_start_time(::google::protobuf::Timestamp* start_time); 745 746 bool has_duration() const; 747 void clear_duration(); 748 static const int kDurationFieldNumber = 4; 749 private: 750 const ::google::protobuf::Duration& _internal_duration() const; 751 public: 752 const ::google::protobuf::Duration& duration() const; 753 ::google::protobuf::Duration* release_duration(); 754 ::google::protobuf::Duration* mutable_duration(); 755 void set_allocated_duration(::google::protobuf::Duration* duration); 756 757 // @@protoc_insertion_point(class_scope:cockroach.util.tracing.NormalizedSpan) 758 private: 759 760 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 761 ::google::protobuf::internal::MapFieldLite< 762 NormalizedSpan_TagsEntry_DoNotUse, 763 ::std::string, ::std::string, 764 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 765 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 766 0 > tags_; 767 ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::LogRecord > logs_; 768 ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::NormalizedSpan > children_; 769 ::google::protobuf::internal::ArenaStringPtr operation_; 770 ::google::protobuf::Timestamp* start_time_; 771 ::google::protobuf::Duration* duration_; 772 mutable ::google::protobuf::internal::CachedSize _cached_size_; 773 friend struct ::protobuf_util_2ftracing_2frecorded_5fspan_2eproto::TableStruct; 774 }; 775 // =================================================================== 776 777 778 // =================================================================== 779 780 #ifdef __GNUC__ 781 #pragma GCC diagnostic push 782 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 783 #endif // __GNUC__ 784 // LogRecord_Field 785 786 // string key = 1; 787 inline void LogRecord_Field::clear_key() { 788 key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 789 } 790 inline const ::std::string& LogRecord_Field::key() const { 791 // @@protoc_insertion_point(field_get:cockroach.util.tracing.LogRecord.Field.key) 792 return key_.GetNoArena(); 793 } 794 inline void LogRecord_Field::set_key(const ::std::string& value) { 795 796 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 797 // @@protoc_insertion_point(field_set:cockroach.util.tracing.LogRecord.Field.key) 798 } 799 #if LANG_CXX11 800 inline void LogRecord_Field::set_key(::std::string&& value) { 801 802 key_.SetNoArena( 803 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 804 // @@protoc_insertion_point(field_set_rvalue:cockroach.util.tracing.LogRecord.Field.key) 805 } 806 #endif 807 inline void LogRecord_Field::set_key(const char* value) { 808 GOOGLE_DCHECK(value != NULL); 809 810 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 811 // @@protoc_insertion_point(field_set_char:cockroach.util.tracing.LogRecord.Field.key) 812 } 813 inline void LogRecord_Field::set_key(const char* value, size_t size) { 814 815 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 816 ::std::string(reinterpret_cast<const char*>(value), size)); 817 // @@protoc_insertion_point(field_set_pointer:cockroach.util.tracing.LogRecord.Field.key) 818 } 819 inline ::std::string* LogRecord_Field::mutable_key() { 820 821 // @@protoc_insertion_point(field_mutable:cockroach.util.tracing.LogRecord.Field.key) 822 return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 823 } 824 inline ::std::string* LogRecord_Field::release_key() { 825 // @@protoc_insertion_point(field_release:cockroach.util.tracing.LogRecord.Field.key) 826 827 return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 828 } 829 inline void LogRecord_Field::set_allocated_key(::std::string* key) { 830 if (key != NULL) { 831 832 } else { 833 834 } 835 key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); 836 // @@protoc_insertion_point(field_set_allocated:cockroach.util.tracing.LogRecord.Field.key) 837 } 838 839 // string value = 2; 840 inline void LogRecord_Field::clear_value() { 841 value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 842 } 843 inline const ::std::string& LogRecord_Field::value() const { 844 // @@protoc_insertion_point(field_get:cockroach.util.tracing.LogRecord.Field.value) 845 return value_.GetNoArena(); 846 } 847 inline void LogRecord_Field::set_value(const ::std::string& value) { 848 849 value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 850 // @@protoc_insertion_point(field_set:cockroach.util.tracing.LogRecord.Field.value) 851 } 852 #if LANG_CXX11 853 inline void LogRecord_Field::set_value(::std::string&& value) { 854 855 value_.SetNoArena( 856 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 857 // @@protoc_insertion_point(field_set_rvalue:cockroach.util.tracing.LogRecord.Field.value) 858 } 859 #endif 860 inline void LogRecord_Field::set_value(const char* value) { 861 GOOGLE_DCHECK(value != NULL); 862 863 value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 864 // @@protoc_insertion_point(field_set_char:cockroach.util.tracing.LogRecord.Field.value) 865 } 866 inline void LogRecord_Field::set_value(const char* value, size_t size) { 867 868 value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 869 ::std::string(reinterpret_cast<const char*>(value), size)); 870 // @@protoc_insertion_point(field_set_pointer:cockroach.util.tracing.LogRecord.Field.value) 871 } 872 inline ::std::string* LogRecord_Field::mutable_value() { 873 874 // @@protoc_insertion_point(field_mutable:cockroach.util.tracing.LogRecord.Field.value) 875 return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 876 } 877 inline ::std::string* LogRecord_Field::release_value() { 878 // @@protoc_insertion_point(field_release:cockroach.util.tracing.LogRecord.Field.value) 879 880 return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 881 } 882 inline void LogRecord_Field::set_allocated_value(::std::string* value) { 883 if (value != NULL) { 884 885 } else { 886 887 } 888 value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 889 // @@protoc_insertion_point(field_set_allocated:cockroach.util.tracing.LogRecord.Field.value) 890 } 891 892 // ------------------------------------------------------------------- 893 894 // LogRecord 895 896 inline bool LogRecord::has_time() const { 897 return this != internal_default_instance() && time_ != NULL; 898 } 899 inline const ::google::protobuf::Timestamp& LogRecord::_internal_time() const { 900 return *time_; 901 } 902 inline const ::google::protobuf::Timestamp& LogRecord::time() const { 903 const ::google::protobuf::Timestamp* p = time_; 904 // @@protoc_insertion_point(field_get:cockroach.util.tracing.LogRecord.time) 905 return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>( 906 &::google::protobuf::_Timestamp_default_instance_); 907 } 908 inline ::google::protobuf::Timestamp* LogRecord::release_time() { 909 // @@protoc_insertion_point(field_release:cockroach.util.tracing.LogRecord.time) 910 911 ::google::protobuf::Timestamp* temp = time_; 912 time_ = NULL; 913 return temp; 914 } 915 inline ::google::protobuf::Timestamp* LogRecord::mutable_time() { 916 917 if (time_ == NULL) { 918 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); 919 time_ = p; 920 } 921 // @@protoc_insertion_point(field_mutable:cockroach.util.tracing.LogRecord.time) 922 return time_; 923 } 924 inline void LogRecord::set_allocated_time(::google::protobuf::Timestamp* time) { 925 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 926 if (message_arena == NULL) { 927 delete reinterpret_cast< ::google::protobuf::MessageLite*>(time_); 928 } 929 if (time) { 930 ::google::protobuf::Arena* submessage_arena = 931 reinterpret_cast<::google::protobuf::MessageLite*>(time)->GetArena(); 932 if (message_arena != submessage_arena) { 933 time = ::google::protobuf::internal::GetOwnedMessage( 934 message_arena, time, submessage_arena); 935 } 936 937 } else { 938 939 } 940 time_ = time; 941 // @@protoc_insertion_point(field_set_allocated:cockroach.util.tracing.LogRecord.time) 942 } 943 944 inline int LogRecord::fields_size() const { 945 return fields_.size(); 946 } 947 inline void LogRecord::clear_fields() { 948 fields_.Clear(); 949 } 950 inline ::cockroach::util::tracing::LogRecord_Field* LogRecord::mutable_fields(int index) { 951 // @@protoc_insertion_point(field_mutable:cockroach.util.tracing.LogRecord.fields) 952 return fields_.Mutable(index); 953 } 954 inline ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::LogRecord_Field >* 955 LogRecord::mutable_fields() { 956 // @@protoc_insertion_point(field_mutable_list:cockroach.util.tracing.LogRecord.fields) 957 return &fields_; 958 } 959 inline const ::cockroach::util::tracing::LogRecord_Field& LogRecord::fields(int index) const { 960 // @@protoc_insertion_point(field_get:cockroach.util.tracing.LogRecord.fields) 961 return fields_.Get(index); 962 } 963 inline ::cockroach::util::tracing::LogRecord_Field* LogRecord::add_fields() { 964 // @@protoc_insertion_point(field_add:cockroach.util.tracing.LogRecord.fields) 965 return fields_.Add(); 966 } 967 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::LogRecord_Field >& 968 LogRecord::fields() const { 969 // @@protoc_insertion_point(field_list:cockroach.util.tracing.LogRecord.fields) 970 return fields_; 971 } 972 973 // ------------------------------------------------------------------- 974 975 // ------------------------------------------------------------------- 976 977 // ------------------------------------------------------------------- 978 979 // RecordedSpan 980 981 inline void RecordedSpan::clear_trace_id() { 982 trace_id_ = GOOGLE_ULONGLONG(0); 983 } 984 inline ::google::protobuf::uint64 RecordedSpan::trace_id() const { 985 // @@protoc_insertion_point(field_get:cockroach.util.tracing.RecordedSpan.trace_id) 986 return trace_id_; 987 } 988 inline void RecordedSpan::set_trace_id(::google::protobuf::uint64 value) { 989 990 trace_id_ = value; 991 // @@protoc_insertion_point(field_set:cockroach.util.tracing.RecordedSpan.trace_id) 992 } 993 994 inline void RecordedSpan::clear_span_id() { 995 span_id_ = GOOGLE_ULONGLONG(0); 996 } 997 inline ::google::protobuf::uint64 RecordedSpan::span_id() const { 998 // @@protoc_insertion_point(field_get:cockroach.util.tracing.RecordedSpan.span_id) 999 return span_id_; 1000 } 1001 inline void RecordedSpan::set_span_id(::google::protobuf::uint64 value) { 1002 1003 span_id_ = value; 1004 // @@protoc_insertion_point(field_set:cockroach.util.tracing.RecordedSpan.span_id) 1005 } 1006 1007 inline void RecordedSpan::clear_parent_span_id() { 1008 parent_span_id_ = GOOGLE_ULONGLONG(0); 1009 } 1010 inline ::google::protobuf::uint64 RecordedSpan::parent_span_id() const { 1011 // @@protoc_insertion_point(field_get:cockroach.util.tracing.RecordedSpan.parent_span_id) 1012 return parent_span_id_; 1013 } 1014 inline void RecordedSpan::set_parent_span_id(::google::protobuf::uint64 value) { 1015 1016 parent_span_id_ = value; 1017 // @@protoc_insertion_point(field_set:cockroach.util.tracing.RecordedSpan.parent_span_id) 1018 } 1019 1020 // string operation = 4; 1021 inline void RecordedSpan::clear_operation() { 1022 operation_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1023 } 1024 inline const ::std::string& RecordedSpan::operation() const { 1025 // @@protoc_insertion_point(field_get:cockroach.util.tracing.RecordedSpan.operation) 1026 return operation_.GetNoArena(); 1027 } 1028 inline void RecordedSpan::set_operation(const ::std::string& value) { 1029 1030 operation_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1031 // @@protoc_insertion_point(field_set:cockroach.util.tracing.RecordedSpan.operation) 1032 } 1033 #if LANG_CXX11 1034 inline void RecordedSpan::set_operation(::std::string&& value) { 1035 1036 operation_.SetNoArena( 1037 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 1038 // @@protoc_insertion_point(field_set_rvalue:cockroach.util.tracing.RecordedSpan.operation) 1039 } 1040 #endif 1041 inline void RecordedSpan::set_operation(const char* value) { 1042 GOOGLE_DCHECK(value != NULL); 1043 1044 operation_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1045 // @@protoc_insertion_point(field_set_char:cockroach.util.tracing.RecordedSpan.operation) 1046 } 1047 inline void RecordedSpan::set_operation(const char* value, size_t size) { 1048 1049 operation_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1050 ::std::string(reinterpret_cast<const char*>(value), size)); 1051 // @@protoc_insertion_point(field_set_pointer:cockroach.util.tracing.RecordedSpan.operation) 1052 } 1053 inline ::std::string* RecordedSpan::mutable_operation() { 1054 1055 // @@protoc_insertion_point(field_mutable:cockroach.util.tracing.RecordedSpan.operation) 1056 return operation_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1057 } 1058 inline ::std::string* RecordedSpan::release_operation() { 1059 // @@protoc_insertion_point(field_release:cockroach.util.tracing.RecordedSpan.operation) 1060 1061 return operation_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1062 } 1063 inline void RecordedSpan::set_allocated_operation(::std::string* operation) { 1064 if (operation != NULL) { 1065 1066 } else { 1067 1068 } 1069 operation_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), operation); 1070 // @@protoc_insertion_point(field_set_allocated:cockroach.util.tracing.RecordedSpan.operation) 1071 } 1072 1073 // map<string, string> baggage = 5; 1074 inline int RecordedSpan::baggage_size() const { 1075 return baggage_.size(); 1076 } 1077 inline void RecordedSpan::clear_baggage() { 1078 baggage_.Clear(); 1079 } 1080 inline const ::google::protobuf::Map< ::std::string, ::std::string >& 1081 RecordedSpan::baggage() const { 1082 // @@protoc_insertion_point(field_map:cockroach.util.tracing.RecordedSpan.baggage) 1083 return baggage_.GetMap(); 1084 } 1085 inline ::google::protobuf::Map< ::std::string, ::std::string >* 1086 RecordedSpan::mutable_baggage() { 1087 // @@protoc_insertion_point(field_mutable_map:cockroach.util.tracing.RecordedSpan.baggage) 1088 return baggage_.MutableMap(); 1089 } 1090 1091 // map<string, string> tags = 6; 1092 inline int RecordedSpan::tags_size() const { 1093 return tags_.size(); 1094 } 1095 inline void RecordedSpan::clear_tags() { 1096 tags_.Clear(); 1097 } 1098 inline const ::google::protobuf::Map< ::std::string, ::std::string >& 1099 RecordedSpan::tags() const { 1100 // @@protoc_insertion_point(field_map:cockroach.util.tracing.RecordedSpan.tags) 1101 return tags_.GetMap(); 1102 } 1103 inline ::google::protobuf::Map< ::std::string, ::std::string >* 1104 RecordedSpan::mutable_tags() { 1105 // @@protoc_insertion_point(field_mutable_map:cockroach.util.tracing.RecordedSpan.tags) 1106 return tags_.MutableMap(); 1107 } 1108 1109 inline bool RecordedSpan::has_start_time() const { 1110 return this != internal_default_instance() && start_time_ != NULL; 1111 } 1112 inline const ::google::protobuf::Timestamp& RecordedSpan::_internal_start_time() const { 1113 return *start_time_; 1114 } 1115 inline const ::google::protobuf::Timestamp& RecordedSpan::start_time() const { 1116 const ::google::protobuf::Timestamp* p = start_time_; 1117 // @@protoc_insertion_point(field_get:cockroach.util.tracing.RecordedSpan.start_time) 1118 return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>( 1119 &::google::protobuf::_Timestamp_default_instance_); 1120 } 1121 inline ::google::protobuf::Timestamp* RecordedSpan::release_start_time() { 1122 // @@protoc_insertion_point(field_release:cockroach.util.tracing.RecordedSpan.start_time) 1123 1124 ::google::protobuf::Timestamp* temp = start_time_; 1125 start_time_ = NULL; 1126 return temp; 1127 } 1128 inline ::google::protobuf::Timestamp* RecordedSpan::mutable_start_time() { 1129 1130 if (start_time_ == NULL) { 1131 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); 1132 start_time_ = p; 1133 } 1134 // @@protoc_insertion_point(field_mutable:cockroach.util.tracing.RecordedSpan.start_time) 1135 return start_time_; 1136 } 1137 inline void RecordedSpan::set_allocated_start_time(::google::protobuf::Timestamp* start_time) { 1138 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 1139 if (message_arena == NULL) { 1140 delete reinterpret_cast< ::google::protobuf::MessageLite*>(start_time_); 1141 } 1142 if (start_time) { 1143 ::google::protobuf::Arena* submessage_arena = 1144 reinterpret_cast<::google::protobuf::MessageLite*>(start_time)->GetArena(); 1145 if (message_arena != submessage_arena) { 1146 start_time = ::google::protobuf::internal::GetOwnedMessage( 1147 message_arena, start_time, submessage_arena); 1148 } 1149 1150 } else { 1151 1152 } 1153 start_time_ = start_time; 1154 // @@protoc_insertion_point(field_set_allocated:cockroach.util.tracing.RecordedSpan.start_time) 1155 } 1156 1157 inline bool RecordedSpan::has_duration() const { 1158 return this != internal_default_instance() && duration_ != NULL; 1159 } 1160 inline const ::google::protobuf::Duration& RecordedSpan::_internal_duration() const { 1161 return *duration_; 1162 } 1163 inline const ::google::protobuf::Duration& RecordedSpan::duration() const { 1164 const ::google::protobuf::Duration* p = duration_; 1165 // @@protoc_insertion_point(field_get:cockroach.util.tracing.RecordedSpan.duration) 1166 return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Duration*>( 1167 &::google::protobuf::_Duration_default_instance_); 1168 } 1169 inline ::google::protobuf::Duration* RecordedSpan::release_duration() { 1170 // @@protoc_insertion_point(field_release:cockroach.util.tracing.RecordedSpan.duration) 1171 1172 ::google::protobuf::Duration* temp = duration_; 1173 duration_ = NULL; 1174 return temp; 1175 } 1176 inline ::google::protobuf::Duration* RecordedSpan::mutable_duration() { 1177 1178 if (duration_ == NULL) { 1179 auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); 1180 duration_ = p; 1181 } 1182 // @@protoc_insertion_point(field_mutable:cockroach.util.tracing.RecordedSpan.duration) 1183 return duration_; 1184 } 1185 inline void RecordedSpan::set_allocated_duration(::google::protobuf::Duration* duration) { 1186 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 1187 if (message_arena == NULL) { 1188 delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration_); 1189 } 1190 if (duration) { 1191 ::google::protobuf::Arena* submessage_arena = 1192 reinterpret_cast<::google::protobuf::MessageLite*>(duration)->GetArena(); 1193 if (message_arena != submessage_arena) { 1194 duration = ::google::protobuf::internal::GetOwnedMessage( 1195 message_arena, duration, submessage_arena); 1196 } 1197 1198 } else { 1199 1200 } 1201 duration_ = duration; 1202 // @@protoc_insertion_point(field_set_allocated:cockroach.util.tracing.RecordedSpan.duration) 1203 } 1204 1205 inline int RecordedSpan::logs_size() const { 1206 return logs_.size(); 1207 } 1208 inline void RecordedSpan::clear_logs() { 1209 logs_.Clear(); 1210 } 1211 inline ::cockroach::util::tracing::LogRecord* RecordedSpan::mutable_logs(int index) { 1212 // @@protoc_insertion_point(field_mutable:cockroach.util.tracing.RecordedSpan.logs) 1213 return logs_.Mutable(index); 1214 } 1215 inline ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::LogRecord >* 1216 RecordedSpan::mutable_logs() { 1217 // @@protoc_insertion_point(field_mutable_list:cockroach.util.tracing.RecordedSpan.logs) 1218 return &logs_; 1219 } 1220 inline const ::cockroach::util::tracing::LogRecord& RecordedSpan::logs(int index) const { 1221 // @@protoc_insertion_point(field_get:cockroach.util.tracing.RecordedSpan.logs) 1222 return logs_.Get(index); 1223 } 1224 inline ::cockroach::util::tracing::LogRecord* RecordedSpan::add_logs() { 1225 // @@protoc_insertion_point(field_add:cockroach.util.tracing.RecordedSpan.logs) 1226 return logs_.Add(); 1227 } 1228 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::LogRecord >& 1229 RecordedSpan::logs() const { 1230 // @@protoc_insertion_point(field_list:cockroach.util.tracing.RecordedSpan.logs) 1231 return logs_; 1232 } 1233 1234 // .google.protobuf.Any stats = 10; 1235 inline bool RecordedSpan::has_stats() const { 1236 return this != internal_default_instance() && stats_ != NULL; 1237 } 1238 inline const ::google::protobuf::Any& RecordedSpan::_internal_stats() const { 1239 return *stats_; 1240 } 1241 inline const ::google::protobuf::Any& RecordedSpan::stats() const { 1242 const ::google::protobuf::Any* p = stats_; 1243 // @@protoc_insertion_point(field_get:cockroach.util.tracing.RecordedSpan.stats) 1244 return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Any*>( 1245 &::google::protobuf::_Any_default_instance_); 1246 } 1247 inline ::google::protobuf::Any* RecordedSpan::release_stats() { 1248 // @@protoc_insertion_point(field_release:cockroach.util.tracing.RecordedSpan.stats) 1249 1250 ::google::protobuf::Any* temp = stats_; 1251 stats_ = NULL; 1252 return temp; 1253 } 1254 inline ::google::protobuf::Any* RecordedSpan::mutable_stats() { 1255 1256 if (stats_ == NULL) { 1257 auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual()); 1258 stats_ = p; 1259 } 1260 // @@protoc_insertion_point(field_mutable:cockroach.util.tracing.RecordedSpan.stats) 1261 return stats_; 1262 } 1263 inline void RecordedSpan::set_allocated_stats(::google::protobuf::Any* stats) { 1264 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 1265 if (message_arena == NULL) { 1266 delete reinterpret_cast< ::google::protobuf::MessageLite*>(stats_); 1267 } 1268 if (stats) { 1269 ::google::protobuf::Arena* submessage_arena = NULL; 1270 if (message_arena != submessage_arena) { 1271 stats = ::google::protobuf::internal::GetOwnedMessage( 1272 message_arena, stats, submessage_arena); 1273 } 1274 1275 } else { 1276 1277 } 1278 stats_ = stats; 1279 // @@protoc_insertion_point(field_set_allocated:cockroach.util.tracing.RecordedSpan.stats) 1280 } 1281 1282 // ------------------------------------------------------------------- 1283 1284 // ------------------------------------------------------------------- 1285 1286 // NormalizedSpan 1287 1288 // string operation = 1; 1289 inline void NormalizedSpan::clear_operation() { 1290 operation_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1291 } 1292 inline const ::std::string& NormalizedSpan::operation() const { 1293 // @@protoc_insertion_point(field_get:cockroach.util.tracing.NormalizedSpan.operation) 1294 return operation_.GetNoArena(); 1295 } 1296 inline void NormalizedSpan::set_operation(const ::std::string& value) { 1297 1298 operation_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1299 // @@protoc_insertion_point(field_set:cockroach.util.tracing.NormalizedSpan.operation) 1300 } 1301 #if LANG_CXX11 1302 inline void NormalizedSpan::set_operation(::std::string&& value) { 1303 1304 operation_.SetNoArena( 1305 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 1306 // @@protoc_insertion_point(field_set_rvalue:cockroach.util.tracing.NormalizedSpan.operation) 1307 } 1308 #endif 1309 inline void NormalizedSpan::set_operation(const char* value) { 1310 GOOGLE_DCHECK(value != NULL); 1311 1312 operation_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1313 // @@protoc_insertion_point(field_set_char:cockroach.util.tracing.NormalizedSpan.operation) 1314 } 1315 inline void NormalizedSpan::set_operation(const char* value, size_t size) { 1316 1317 operation_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1318 ::std::string(reinterpret_cast<const char*>(value), size)); 1319 // @@protoc_insertion_point(field_set_pointer:cockroach.util.tracing.NormalizedSpan.operation) 1320 } 1321 inline ::std::string* NormalizedSpan::mutable_operation() { 1322 1323 // @@protoc_insertion_point(field_mutable:cockroach.util.tracing.NormalizedSpan.operation) 1324 return operation_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1325 } 1326 inline ::std::string* NormalizedSpan::release_operation() { 1327 // @@protoc_insertion_point(field_release:cockroach.util.tracing.NormalizedSpan.operation) 1328 1329 return operation_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1330 } 1331 inline void NormalizedSpan::set_allocated_operation(::std::string* operation) { 1332 if (operation != NULL) { 1333 1334 } else { 1335 1336 } 1337 operation_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), operation); 1338 // @@protoc_insertion_point(field_set_allocated:cockroach.util.tracing.NormalizedSpan.operation) 1339 } 1340 1341 // map<string, string> tags = 2; 1342 inline int NormalizedSpan::tags_size() const { 1343 return tags_.size(); 1344 } 1345 inline void NormalizedSpan::clear_tags() { 1346 tags_.Clear(); 1347 } 1348 inline const ::google::protobuf::Map< ::std::string, ::std::string >& 1349 NormalizedSpan::tags() const { 1350 // @@protoc_insertion_point(field_map:cockroach.util.tracing.NormalizedSpan.tags) 1351 return tags_.GetMap(); 1352 } 1353 inline ::google::protobuf::Map< ::std::string, ::std::string >* 1354 NormalizedSpan::mutable_tags() { 1355 // @@protoc_insertion_point(field_mutable_map:cockroach.util.tracing.NormalizedSpan.tags) 1356 return tags_.MutableMap(); 1357 } 1358 1359 inline bool NormalizedSpan::has_start_time() const { 1360 return this != internal_default_instance() && start_time_ != NULL; 1361 } 1362 inline const ::google::protobuf::Timestamp& NormalizedSpan::_internal_start_time() const { 1363 return *start_time_; 1364 } 1365 inline const ::google::protobuf::Timestamp& NormalizedSpan::start_time() const { 1366 const ::google::protobuf::Timestamp* p = start_time_; 1367 // @@protoc_insertion_point(field_get:cockroach.util.tracing.NormalizedSpan.start_time) 1368 return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>( 1369 &::google::protobuf::_Timestamp_default_instance_); 1370 } 1371 inline ::google::protobuf::Timestamp* NormalizedSpan::release_start_time() { 1372 // @@protoc_insertion_point(field_release:cockroach.util.tracing.NormalizedSpan.start_time) 1373 1374 ::google::protobuf::Timestamp* temp = start_time_; 1375 start_time_ = NULL; 1376 return temp; 1377 } 1378 inline ::google::protobuf::Timestamp* NormalizedSpan::mutable_start_time() { 1379 1380 if (start_time_ == NULL) { 1381 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); 1382 start_time_ = p; 1383 } 1384 // @@protoc_insertion_point(field_mutable:cockroach.util.tracing.NormalizedSpan.start_time) 1385 return start_time_; 1386 } 1387 inline void NormalizedSpan::set_allocated_start_time(::google::protobuf::Timestamp* start_time) { 1388 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 1389 if (message_arena == NULL) { 1390 delete reinterpret_cast< ::google::protobuf::MessageLite*>(start_time_); 1391 } 1392 if (start_time) { 1393 ::google::protobuf::Arena* submessage_arena = 1394 reinterpret_cast<::google::protobuf::MessageLite*>(start_time)->GetArena(); 1395 if (message_arena != submessage_arena) { 1396 start_time = ::google::protobuf::internal::GetOwnedMessage( 1397 message_arena, start_time, submessage_arena); 1398 } 1399 1400 } else { 1401 1402 } 1403 start_time_ = start_time; 1404 // @@protoc_insertion_point(field_set_allocated:cockroach.util.tracing.NormalizedSpan.start_time) 1405 } 1406 1407 inline bool NormalizedSpan::has_duration() const { 1408 return this != internal_default_instance() && duration_ != NULL; 1409 } 1410 inline const ::google::protobuf::Duration& NormalizedSpan::_internal_duration() const { 1411 return *duration_; 1412 } 1413 inline const ::google::protobuf::Duration& NormalizedSpan::duration() const { 1414 const ::google::protobuf::Duration* p = duration_; 1415 // @@protoc_insertion_point(field_get:cockroach.util.tracing.NormalizedSpan.duration) 1416 return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Duration*>( 1417 &::google::protobuf::_Duration_default_instance_); 1418 } 1419 inline ::google::protobuf::Duration* NormalizedSpan::release_duration() { 1420 // @@protoc_insertion_point(field_release:cockroach.util.tracing.NormalizedSpan.duration) 1421 1422 ::google::protobuf::Duration* temp = duration_; 1423 duration_ = NULL; 1424 return temp; 1425 } 1426 inline ::google::protobuf::Duration* NormalizedSpan::mutable_duration() { 1427 1428 if (duration_ == NULL) { 1429 auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); 1430 duration_ = p; 1431 } 1432 // @@protoc_insertion_point(field_mutable:cockroach.util.tracing.NormalizedSpan.duration) 1433 return duration_; 1434 } 1435 inline void NormalizedSpan::set_allocated_duration(::google::protobuf::Duration* duration) { 1436 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 1437 if (message_arena == NULL) { 1438 delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration_); 1439 } 1440 if (duration) { 1441 ::google::protobuf::Arena* submessage_arena = 1442 reinterpret_cast<::google::protobuf::MessageLite*>(duration)->GetArena(); 1443 if (message_arena != submessage_arena) { 1444 duration = ::google::protobuf::internal::GetOwnedMessage( 1445 message_arena, duration, submessage_arena); 1446 } 1447 1448 } else { 1449 1450 } 1451 duration_ = duration; 1452 // @@protoc_insertion_point(field_set_allocated:cockroach.util.tracing.NormalizedSpan.duration) 1453 } 1454 1455 inline int NormalizedSpan::logs_size() const { 1456 return logs_.size(); 1457 } 1458 inline void NormalizedSpan::clear_logs() { 1459 logs_.Clear(); 1460 } 1461 inline ::cockroach::util::tracing::LogRecord* NormalizedSpan::mutable_logs(int index) { 1462 // @@protoc_insertion_point(field_mutable:cockroach.util.tracing.NormalizedSpan.logs) 1463 return logs_.Mutable(index); 1464 } 1465 inline ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::LogRecord >* 1466 NormalizedSpan::mutable_logs() { 1467 // @@protoc_insertion_point(field_mutable_list:cockroach.util.tracing.NormalizedSpan.logs) 1468 return &logs_; 1469 } 1470 inline const ::cockroach::util::tracing::LogRecord& NormalizedSpan::logs(int index) const { 1471 // @@protoc_insertion_point(field_get:cockroach.util.tracing.NormalizedSpan.logs) 1472 return logs_.Get(index); 1473 } 1474 inline ::cockroach::util::tracing::LogRecord* NormalizedSpan::add_logs() { 1475 // @@protoc_insertion_point(field_add:cockroach.util.tracing.NormalizedSpan.logs) 1476 return logs_.Add(); 1477 } 1478 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::LogRecord >& 1479 NormalizedSpan::logs() const { 1480 // @@protoc_insertion_point(field_list:cockroach.util.tracing.NormalizedSpan.logs) 1481 return logs_; 1482 } 1483 1484 inline int NormalizedSpan::children_size() const { 1485 return children_.size(); 1486 } 1487 inline void NormalizedSpan::clear_children() { 1488 children_.Clear(); 1489 } 1490 inline ::cockroach::util::tracing::NormalizedSpan* NormalizedSpan::mutable_children(int index) { 1491 // @@protoc_insertion_point(field_mutable:cockroach.util.tracing.NormalizedSpan.children) 1492 return children_.Mutable(index); 1493 } 1494 inline ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::NormalizedSpan >* 1495 NormalizedSpan::mutable_children() { 1496 // @@protoc_insertion_point(field_mutable_list:cockroach.util.tracing.NormalizedSpan.children) 1497 return &children_; 1498 } 1499 inline const ::cockroach::util::tracing::NormalizedSpan& NormalizedSpan::children(int index) const { 1500 // @@protoc_insertion_point(field_get:cockroach.util.tracing.NormalizedSpan.children) 1501 return children_.Get(index); 1502 } 1503 inline ::cockroach::util::tracing::NormalizedSpan* NormalizedSpan::add_children() { 1504 // @@protoc_insertion_point(field_add:cockroach.util.tracing.NormalizedSpan.children) 1505 return children_.Add(); 1506 } 1507 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::util::tracing::NormalizedSpan >& 1508 NormalizedSpan::children() const { 1509 // @@protoc_insertion_point(field_list:cockroach.util.tracing.NormalizedSpan.children) 1510 return children_; 1511 } 1512 1513 #ifdef __GNUC__ 1514 #pragma GCC diagnostic pop 1515 #endif // __GNUC__ 1516 // ------------------------------------------------------------------- 1517 1518 // ------------------------------------------------------------------- 1519 1520 // ------------------------------------------------------------------- 1521 1522 // ------------------------------------------------------------------- 1523 1524 // ------------------------------------------------------------------- 1525 1526 // ------------------------------------------------------------------- 1527 1528 1529 // @@protoc_insertion_point(namespace_scope) 1530 1531 } // namespace tracing 1532 } // namespace util 1533 } // namespace cockroach 1534 1535 // @@protoc_insertion_point(global_scope) 1536 1537 #endif // PROTOBUF_INCLUDED_util_2ftracing_2frecorded_5fspan_2eproto