4 #ifndef GOOGLE_PROTOBUF_INCLUDED_opentelemetry_2fproto_2ftrace_2fv1_2ftrace_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_opentelemetry_2fproto_2ftrace_2fv1_2ftrace_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3021000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3021006 < 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.
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/metadata_lite.h>
28 #include <google/protobuf/generated_message_reflection.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "opentelemetry/proto/common/v1/common.pb.h"
35 #include "opentelemetry/proto/resource/v1/resource.pb.h"
37 #include <google/protobuf/port_def.inc>
38 #define PROTOBUF_INTERNAL_EXPORT_opentelemetry_2fproto_2ftrace_2fv1_2ftrace_2eproto
39 PROTOBUF_NAMESPACE_OPEN
43 PROTOBUF_NAMESPACE_CLOSE
55 struct ResourceSpansDefaultTypeInternal;
58 struct ScopeSpansDefaultTypeInternal;
61 struct SpanDefaultTypeInternal;
64 struct Span_EventDefaultTypeInternal;
67 struct Span_LinkDefaultTypeInternal;
70 struct StatusDefaultTypeInternal;
73 struct TracesDataDefaultTypeInternal;
79 PROTOBUF_NAMESPACE_OPEN
87 PROTOBUF_NAMESPACE_CLOSE
111 static_assert(::std::is_same<T, Span_SpanKind>::value ||
112 ::std::is_integral<T>::value,
113 "Incorrect type passed to function Span_SpanKind_Name.");
114 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
118 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
Span_SpanKind* value) {
119 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Span_SpanKind>(
137 static_assert(::std::is_same<T, Status_StatusCode>::value ||
138 ::std::is_integral<T>::value,
139 "Incorrect type passed to function Status_StatusCode_Name.");
140 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
145 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Status_StatusCode>(
164 static_assert(::std::is_same<T, SpanFlags>::value ||
165 ::std::is_integral<T>::value,
166 "Incorrect type passed to function SpanFlags_Name.");
167 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
171 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
SpanFlags* value) {
172 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SpanFlags>(
178 public ::PROTOBUF_NAMESPACE_ID::Message {
182 explicit PROTOBUF_CONSTEXPR
TracesData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
195 if (
this == &from)
return *
this;
196 if (GetOwningArena() == from.GetOwningArena()
197 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
198 && GetOwningArena() !=
nullptr
208 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
231 if (other ==
this)
return;
232 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
233 if (GetOwningArena() !=
nullptr &&
234 GetOwningArena() == other->GetOwningArena()) {
235 #else // PROTOBUF_FORCE_COPY_IN_SWAP
236 if (GetOwningArena() == other->GetOwningArena()) {
237 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
240 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
244 if (other ==
this)
return;
245 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
251 TracesData*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
252 return CreateMaybeMessage<TracesData>(arena);
254 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
256 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
258 TracesData::MergeImpl(*
this, from);
261 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
263 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
269 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
273 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
275 void SetCachedSize(
int size)
const final;
279 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
280 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
281 return "opentelemetry.proto.trace.v1.TracesData";
284 explicit TracesData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
285 bool is_message_owned =
false);
289 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
291 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
303 int _internal_resource_spans_size()
const;
307 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::ResourceSpans >*
310 const ::opentelemetry::proto::trace::v1::ResourceSpans& _internal_resource_spans(
int index)
const;
313 const ::opentelemetry::proto::trace::v1::ResourceSpans&
resource_spans(
int index)
const;
315 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::ResourceSpans >&
322 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
323 typedef void InternalArenaConstructable_;
324 typedef void DestructorSkippable_;
326 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::ResourceSpans > resource_spans_;
327 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
330 friend struct ::TableStruct_opentelemetry_2fproto_2ftrace_2fv1_2ftrace_2eproto;
335 public ::PROTOBUF_NAMESPACE_ID::Message {
339 explicit PROTOBUF_CONSTEXPR
ResourceSpans(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
352 if (
this == &from)
return *
this;
353 if (GetOwningArena() == from.GetOwningArena()
354 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
355 && GetOwningArena() !=
nullptr
365 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
388 if (other ==
this)
return;
389 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
390 if (GetOwningArena() !=
nullptr &&
391 GetOwningArena() == other->GetOwningArena()) {
392 #else // PROTOBUF_FORCE_COPY_IN_SWAP
393 if (GetOwningArena() == other->GetOwningArena()) {
394 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
397 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
401 if (other ==
this)
return;
402 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
409 return CreateMaybeMessage<ResourceSpans>(arena);
411 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
413 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
415 ResourceSpans::MergeImpl(*
this, from);
418 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
420 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
426 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
430 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
432 void SetCachedSize(
int size)
const final;
436 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
437 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
438 return "opentelemetry.proto.trace.v1.ResourceSpans";
441 explicit ResourceSpans(::PROTOBUF_NAMESPACE_ID::Arena* arena,
442 bool is_message_owned =
false);
446 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
448 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
455 kScopeSpansFieldNumber = 2,
456 kSchemaUrlFieldNumber = 3,
457 kResourceFieldNumber = 1,
460 int scope_spans_size()
const;
462 int _internal_scope_spans_size()
const;
464 void clear_scope_spans();
466 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::ScopeSpans >*
467 mutable_scope_spans();
469 const ::opentelemetry::proto::trace::v1::ScopeSpans& _internal_scope_spans(
int index)
const;
472 const ::opentelemetry::proto::trace::v1::ScopeSpans& scope_spans(
int index)
const;
474 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::ScopeSpans >&
478 void clear_schema_url();
479 const std::string& schema_url()
const;
480 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
481 void set_schema_url(ArgT0&& arg0, ArgT... args);
482 std::string* mutable_schema_url();
483 PROTOBUF_NODISCARD std::string* release_schema_url();
484 void set_allocated_schema_url(std::string* schema_url);
486 const std::string& _internal_schema_url()
const;
487 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_schema_url(
const std::string& value);
488 std::string* _internal_mutable_schema_url();
492 bool has_resource()
const;
494 bool _internal_has_resource()
const;
496 void clear_resource();
497 const ::opentelemetry::proto::resource::v1::Resource& resource()
const;
498 PROTOBUF_NODISCARD ::opentelemetry::proto::resource::v1::Resource* release_resource();
502 const ::opentelemetry::proto::resource::v1::Resource& _internal_resource()
const;
505 void unsafe_arena_set_allocated_resource(
513 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
514 typedef void InternalArenaConstructable_;
515 typedef void DestructorSkippable_;
517 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::ScopeSpans > scope_spans_;
518 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_url_;
520 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
523 friend struct ::TableStruct_opentelemetry_2fproto_2ftrace_2fv1_2ftrace_2eproto;
528 public ::PROTOBUF_NAMESPACE_ID::Message {
532 explicit PROTOBUF_CONSTEXPR
ScopeSpans(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
545 if (
this == &from)
return *
this;
546 if (GetOwningArena() == from.GetOwningArena()
547 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
548 && GetOwningArena() !=
nullptr
558 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
581 if (other ==
this)
return;
582 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
583 if (GetOwningArena() !=
nullptr &&
584 GetOwningArena() == other->GetOwningArena()) {
585 #else // PROTOBUF_FORCE_COPY_IN_SWAP
586 if (GetOwningArena() == other->GetOwningArena()) {
587 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
590 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
594 if (other ==
this)
return;
595 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
601 ScopeSpans*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
602 return CreateMaybeMessage<ScopeSpans>(arena);
604 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
606 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
608 ScopeSpans::MergeImpl(*
this, from);
611 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
613 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
619 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
623 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
625 void SetCachedSize(
int size)
const final;
629 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
630 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
631 return "opentelemetry.proto.trace.v1.ScopeSpans";
634 explicit ScopeSpans(::PROTOBUF_NAMESPACE_ID::Arena* arena,
635 bool is_message_owned =
false);
639 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
641 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
648 kSpansFieldNumber = 2,
649 kSchemaUrlFieldNumber = 3,
650 kScopeFieldNumber = 1,
653 int spans_size()
const;
655 int _internal_spans_size()
const;
659 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::Span >*
662 const ::opentelemetry::proto::trace::v1::Span& _internal_spans(
int index)
const;
665 const ::opentelemetry::proto::trace::v1::Span& spans(
int index)
const;
667 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::Span >&
671 void clear_schema_url();
672 const std::string& schema_url()
const;
673 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
674 void set_schema_url(ArgT0&& arg0, ArgT... args);
675 std::string* mutable_schema_url();
676 PROTOBUF_NODISCARD std::string* release_schema_url();
677 void set_allocated_schema_url(std::string* schema_url);
679 const std::string& _internal_schema_url()
const;
680 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_schema_url(
const std::string& value);
681 std::string* _internal_mutable_schema_url();
685 bool has_scope()
const;
687 bool _internal_has_scope()
const;
690 const ::opentelemetry::proto::common::v1::InstrumentationScope& scope()
const;
691 PROTOBUF_NODISCARD ::opentelemetry::proto::common::v1::InstrumentationScope* release_scope();
695 const ::opentelemetry::proto::common::v1::InstrumentationScope& _internal_scope()
const;
698 void unsafe_arena_set_allocated_scope(
706 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
707 typedef void InternalArenaConstructable_;
708 typedef void DestructorSkippable_;
710 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::Span > spans_;
711 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_url_;
713 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
716 friend struct ::TableStruct_opentelemetry_2fproto_2ftrace_2fv1_2ftrace_2eproto;
721 public ::PROTOBUF_NAMESPACE_ID::Message {
725 explicit PROTOBUF_CONSTEXPR
Span_Event(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
738 if (
this == &from)
return *
this;
739 if (GetOwningArena() == from.GetOwningArena()
740 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
741 && GetOwningArena() !=
nullptr
751 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
774 if (other ==
this)
return;
775 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
776 if (GetOwningArena() !=
nullptr &&
777 GetOwningArena() == other->GetOwningArena()) {
778 #else // PROTOBUF_FORCE_COPY_IN_SWAP
779 if (GetOwningArena() == other->GetOwningArena()) {
780 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
783 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
787 if (other ==
this)
return;
788 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
794 Span_Event*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
795 return CreateMaybeMessage<Span_Event>(arena);
797 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
799 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
801 Span_Event::MergeImpl(*
this, from);
804 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
806 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
812 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
816 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
818 void SetCachedSize(
int size)
const final;
822 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
823 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
824 return "opentelemetry.proto.trace.v1.Span.Event";
827 explicit Span_Event(::PROTOBUF_NAMESPACE_ID::Arena* arena,
828 bool is_message_owned =
false);
832 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
834 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
841 kAttributesFieldNumber = 3,
842 kNameFieldNumber = 2,
843 kTimeUnixNanoFieldNumber = 1,
844 kDroppedAttributesCountFieldNumber = 4,
847 int attributes_size()
const;
849 int _internal_attributes_size()
const;
851 void clear_attributes();
853 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >*
854 mutable_attributes();
856 const ::opentelemetry::proto::common::v1::KeyValue& _internal_attributes(
int index)
const;
859 const ::opentelemetry::proto::common::v1::KeyValue& attributes(
int index)
const;
861 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >&
866 const std::string& name()
const;
867 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
868 void set_name(ArgT0&& arg0, ArgT... args);
869 std::string* mutable_name();
870 PROTOBUF_NODISCARD std::string* release_name();
871 void set_allocated_name(std::string* name);
873 const std::string& _internal_name()
const;
874 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_name(
const std::string& value);
875 std::string* _internal_mutable_name();
879 void clear_time_unix_nano();
880 uint64_t time_unix_nano()
const;
881 void set_time_unix_nano(uint64_t value);
883 uint64_t _internal_time_unix_nano()
const;
884 void _internal_set_time_unix_nano(uint64_t value);
888 void clear_dropped_attributes_count();
889 uint32_t dropped_attributes_count()
const;
890 void set_dropped_attributes_count(uint32_t value);
892 uint32_t _internal_dropped_attributes_count()
const;
893 void _internal_set_dropped_attributes_count(uint32_t value);
900 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
901 typedef void InternalArenaConstructable_;
902 typedef void DestructorSkippable_;
904 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue > attributes_;
905 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
906 uint64_t time_unix_nano_;
907 uint32_t dropped_attributes_count_;
908 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
911 friend struct ::TableStruct_opentelemetry_2fproto_2ftrace_2fv1_2ftrace_2eproto;
916 public ::PROTOBUF_NAMESPACE_ID::Message {
920 explicit PROTOBUF_CONSTEXPR
Span_Link(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
933 if (
this == &from)
return *
this;
934 if (GetOwningArena() == from.GetOwningArena()
935 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
936 && GetOwningArena() !=
nullptr
946 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
959 return reinterpret_cast<const Span_Link*
>(
969 if (other ==
this)
return;
970 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
971 if (GetOwningArena() !=
nullptr &&
972 GetOwningArena() == other->GetOwningArena()) {
973 #else // PROTOBUF_FORCE_COPY_IN_SWAP
974 if (GetOwningArena() == other->GetOwningArena()) {
975 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
978 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
982 if (other ==
this)
return;
983 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
989 Span_Link*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
990 return CreateMaybeMessage<Span_Link>(arena);
992 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
994 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
996 Span_Link::MergeImpl(*
this, from);
999 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
1001 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
1007 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1011 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
1013 void SetCachedSize(
int size)
const final;
1017 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1018 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1019 return "opentelemetry.proto.trace.v1.Span.Link";
1022 explicit Span_Link(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1023 bool is_message_owned =
false);
1027 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
1029 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
1036 kAttributesFieldNumber = 4,
1037 kTraceIdFieldNumber = 1,
1038 kSpanIdFieldNumber = 2,
1039 kTraceStateFieldNumber = 3,
1040 kDroppedAttributesCountFieldNumber = 5,
1041 kFlagsFieldNumber = 6,
1044 int attributes_size()
const;
1046 int _internal_attributes_size()
const;
1048 void clear_attributes();
1050 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >*
1051 mutable_attributes();
1053 const ::opentelemetry::proto::common::v1::KeyValue& _internal_attributes(
int index)
const;
1056 const ::opentelemetry::proto::common::v1::KeyValue& attributes(
int index)
const;
1058 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >&
1062 void clear_trace_id();
1063 const std::string& trace_id()
const;
1064 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
1065 void set_trace_id(ArgT0&& arg0, ArgT... args);
1066 std::string* mutable_trace_id();
1067 PROTOBUF_NODISCARD std::string* release_trace_id();
1068 void set_allocated_trace_id(std::string* trace_id);
1070 const std::string& _internal_trace_id()
const;
1071 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_trace_id(
const std::string& value);
1072 std::string* _internal_mutable_trace_id();
1076 void clear_span_id();
1077 const std::string& span_id()
const;
1078 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
1079 void set_span_id(ArgT0&& arg0, ArgT... args);
1080 std::string* mutable_span_id();
1081 PROTOBUF_NODISCARD std::string* release_span_id();
1082 void set_allocated_span_id(std::string* span_id);
1084 const std::string& _internal_span_id()
const;
1085 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_span_id(
const std::string& value);
1086 std::string* _internal_mutable_span_id();
1090 void clear_trace_state();
1091 const std::string& trace_state()
const;
1092 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
1093 void set_trace_state(ArgT0&& arg0, ArgT... args);
1094 std::string* mutable_trace_state();
1095 PROTOBUF_NODISCARD std::string* release_trace_state();
1096 void set_allocated_trace_state(std::string* trace_state);
1098 const std::string& _internal_trace_state()
const;
1099 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_trace_state(
const std::string& value);
1100 std::string* _internal_mutable_trace_state();
1104 void clear_dropped_attributes_count();
1105 uint32_t dropped_attributes_count()
const;
1106 void set_dropped_attributes_count(uint32_t value);
1108 uint32_t _internal_dropped_attributes_count()
const;
1109 void _internal_set_dropped_attributes_count(uint32_t value);
1114 uint32_t flags()
const;
1115 void set_flags(uint32_t value);
1117 uint32_t _internal_flags()
const;
1118 void _internal_set_flags(uint32_t value);
1125 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1126 typedef void InternalArenaConstructable_;
1127 typedef void DestructorSkippable_;
1129 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue > attributes_;
1130 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr trace_id_;
1131 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr span_id_;
1132 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr trace_state_;
1133 uint32_t dropped_attributes_count_;
1135 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1138 friend struct ::TableStruct_opentelemetry_2fproto_2ftrace_2fv1_2ftrace_2eproto;
1143 public ::PROTOBUF_NAMESPACE_ID::Message {
1147 explicit PROTOBUF_CONSTEXPR
Span(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1160 if (
this == &from)
return *
this;
1161 if (GetOwningArena() == from.GetOwningArena()
1162 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1163 && GetOwningArena() !=
nullptr
1166 InternalSwap(&from);
1186 return reinterpret_cast<const Span*
>(
1196 if (other ==
this)
return;
1197 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1198 if (GetOwningArena() !=
nullptr &&
1199 GetOwningArena() == other->GetOwningArena()) {
1200 #else // PROTOBUF_FORCE_COPY_IN_SWAP
1201 if (GetOwningArena() == other->GetOwningArena()) {
1202 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
1203 InternalSwap(other);
1205 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
1209 if (other ==
this)
return;
1210 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1211 InternalSwap(other);
1216 Span*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
1217 return CreateMaybeMessage<Span>(arena);
1219 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
1221 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
1223 Span::MergeImpl(*
this, from);
1226 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
1228 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
1234 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1238 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
1240 void SetCachedSize(
int size)
const final;
1241 void InternalSwap(
Span* other);
1244 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1245 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1246 return "opentelemetry.proto.trace.v1.Span";
1249 explicit Span(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1250 bool is_message_owned =
false);
1254 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
1256 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
1276 static inline
bool SpanKind_IsValid(
int value) {
1283 static constexpr
int SpanKind_ARRAYSIZE =
1285 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
1289 template<
typename T>
1291 static_assert(::std::is_same<T, SpanKind>::value ||
1292 ::std::is_integral<T>::value,
1293 "Incorrect type passed to function SpanKind_Name.");
1304 kAttributesFieldNumber = 9,
1305 kEventsFieldNumber = 11,
1306 kLinksFieldNumber = 13,
1307 kTraceIdFieldNumber = 1,
1308 kSpanIdFieldNumber = 2,
1309 kTraceStateFieldNumber = 3,
1310 kParentSpanIdFieldNumber = 4,
1311 kNameFieldNumber = 5,
1312 kStatusFieldNumber = 15,
1313 kStartTimeUnixNanoFieldNumber = 7,
1314 kEndTimeUnixNanoFieldNumber = 8,
1315 kKindFieldNumber = 6,
1316 kDroppedAttributesCountFieldNumber = 10,
1317 kDroppedEventsCountFieldNumber = 12,
1318 kDroppedLinksCountFieldNumber = 14,
1319 kFlagsFieldNumber = 16,
1322 int attributes_size()
const;
1324 int _internal_attributes_size()
const;
1326 void clear_attributes();
1328 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >*
1329 mutable_attributes();
1331 const ::opentelemetry::proto::common::v1::KeyValue& _internal_attributes(
int index)
const;
1334 const ::opentelemetry::proto::common::v1::KeyValue& attributes(
int index)
const;
1336 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >&
1340 int events_size()
const;
1342 int _internal_events_size()
const;
1344 void clear_events();
1346 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::Span_Event >*
1349 const ::opentelemetry::proto::trace::v1::Span_Event& _internal_events(
int index)
const;
1352 const ::opentelemetry::proto::trace::v1::Span_Event& events(
int index)
const;
1354 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::Span_Event >&
1358 int links_size()
const;
1360 int _internal_links_size()
const;
1364 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::Span_Link >*
1367 const ::opentelemetry::proto::trace::v1::Span_Link& _internal_links(
int index)
const;
1370 const ::opentelemetry::proto::trace::v1::Span_Link& links(
int index)
const;
1372 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::Span_Link >&
1376 void clear_trace_id();
1377 const std::string& trace_id()
const;
1378 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
1379 void set_trace_id(ArgT0&& arg0, ArgT... args);
1380 std::string* mutable_trace_id();
1381 PROTOBUF_NODISCARD std::string* release_trace_id();
1382 void set_allocated_trace_id(std::string* trace_id);
1384 const std::string& _internal_trace_id()
const;
1385 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_trace_id(
const std::string& value);
1386 std::string* _internal_mutable_trace_id();
1390 void clear_span_id();
1391 const std::string& span_id()
const;
1392 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
1393 void set_span_id(ArgT0&& arg0, ArgT... args);
1394 std::string* mutable_span_id();
1395 PROTOBUF_NODISCARD std::string* release_span_id();
1396 void set_allocated_span_id(std::string* span_id);
1398 const std::string& _internal_span_id()
const;
1399 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_span_id(
const std::string& value);
1400 std::string* _internal_mutable_span_id();
1404 void clear_trace_state();
1405 const std::string& trace_state()
const;
1406 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
1407 void set_trace_state(ArgT0&& arg0, ArgT... args);
1408 std::string* mutable_trace_state();
1409 PROTOBUF_NODISCARD std::string* release_trace_state();
1410 void set_allocated_trace_state(std::string* trace_state);
1412 const std::string& _internal_trace_state()
const;
1413 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_trace_state(
const std::string& value);
1414 std::string* _internal_mutable_trace_state();
1418 void clear_parent_span_id();
1419 const std::string& parent_span_id()
const;
1420 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
1421 void set_parent_span_id(ArgT0&& arg0, ArgT... args);
1422 std::string* mutable_parent_span_id();
1423 PROTOBUF_NODISCARD std::string* release_parent_span_id();
1424 void set_allocated_parent_span_id(std::string* parent_span_id);
1426 const std::string& _internal_parent_span_id()
const;
1427 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_parent_span_id(
const std::string& value);
1428 std::string* _internal_mutable_parent_span_id();
1433 const std::string& name()
const;
1434 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
1435 void set_name(ArgT0&& arg0, ArgT... args);
1436 std::string* mutable_name();
1437 PROTOBUF_NODISCARD std::string* release_name();
1438 void set_allocated_name(std::string* name);
1440 const std::string& _internal_name()
const;
1441 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_name(
const std::string& value);
1442 std::string* _internal_mutable_name();
1446 bool has_status()
const;
1448 bool _internal_has_status()
const;
1450 void clear_status();
1451 const ::opentelemetry::proto::trace::v1::Status& status()
const;
1452 PROTOBUF_NODISCARD ::opentelemetry::proto::trace::v1::Status* release_status();
1456 const ::opentelemetry::proto::trace::v1::Status& _internal_status()
const;
1459 void unsafe_arena_set_allocated_status(
1464 void clear_start_time_unix_nano();
1465 uint64_t start_time_unix_nano()
const;
1466 void set_start_time_unix_nano(uint64_t value);
1468 uint64_t _internal_start_time_unix_nano()
const;
1469 void _internal_set_start_time_unix_nano(uint64_t value);
1473 void clear_end_time_unix_nano();
1474 uint64_t end_time_unix_nano()
const;
1475 void set_end_time_unix_nano(uint64_t value);
1477 uint64_t _internal_end_time_unix_nano()
const;
1478 void _internal_set_end_time_unix_nano(uint64_t value);
1491 void clear_dropped_attributes_count();
1492 uint32_t dropped_attributes_count()
const;
1493 void set_dropped_attributes_count(uint32_t value);
1495 uint32_t _internal_dropped_attributes_count()
const;
1496 void _internal_set_dropped_attributes_count(uint32_t value);
1500 void clear_dropped_events_count();
1501 uint32_t dropped_events_count()
const;
1502 void set_dropped_events_count(uint32_t value);
1504 uint32_t _internal_dropped_events_count()
const;
1505 void _internal_set_dropped_events_count(uint32_t value);
1509 void clear_dropped_links_count();
1510 uint32_t dropped_links_count()
const;
1511 void set_dropped_links_count(uint32_t value);
1513 uint32_t _internal_dropped_links_count()
const;
1514 void _internal_set_dropped_links_count(uint32_t value);
1519 uint32_t flags()
const;
1520 void set_flags(uint32_t value);
1522 uint32_t _internal_flags()
const;
1523 void _internal_set_flags(uint32_t value);
1530 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1531 typedef void InternalArenaConstructable_;
1532 typedef void DestructorSkippable_;
1534 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue > attributes_;
1535 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::Span_Event > events_;
1536 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::Span_Link > links_;
1537 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr trace_id_;
1538 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr span_id_;
1539 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr trace_state_;
1540 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_span_id_;
1541 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
1543 uint64_t start_time_unix_nano_;
1544 uint64_t end_time_unix_nano_;
1546 uint32_t dropped_attributes_count_;
1547 uint32_t dropped_events_count_;
1548 uint32_t dropped_links_count_;
1550 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1553 friend struct ::TableStruct_opentelemetry_2fproto_2ftrace_2fv1_2ftrace_2eproto;
1558 public ::PROTOBUF_NAMESPACE_ID::Message {
1562 explicit PROTOBUF_CONSTEXPR
Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1575 if (
this == &from)
return *
this;
1576 if (GetOwningArena() == from.GetOwningArena()
1577 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1578 && GetOwningArena() !=
nullptr
1581 InternalSwap(&from);
1601 return reinterpret_cast<const Status*
>(
1611 if (other ==
this)
return;
1612 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1613 if (GetOwningArena() !=
nullptr &&
1614 GetOwningArena() == other->GetOwningArena()) {
1615 #else // PROTOBUF_FORCE_COPY_IN_SWAP
1616 if (GetOwningArena() == other->GetOwningArena()) {
1617 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
1618 InternalSwap(other);
1620 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
1624 if (other ==
this)
return;
1625 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1626 InternalSwap(other);
1631 Status*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
1632 return CreateMaybeMessage<Status>(arena);
1634 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
1636 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
1638 Status::MergeImpl(*
this, from);
1641 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
1643 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
1649 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1653 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
1655 void SetCachedSize(
int size)
const final;
1656 void InternalSwap(
Status* other);
1659 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1660 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1661 return "opentelemetry.proto.trace.v1.Status";
1664 explicit Status(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1665 bool is_message_owned =
false);
1669 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
1671 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
1682 static inline
bool StatusCode_IsValid(
int value) {
1689 static constexpr
int StatusCode_ARRAYSIZE =
1691 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
1695 template<
typename T>
1697 static_assert(::std::is_same<T, StatusCode>::value ||
1698 ::std::is_integral<T>::value,
1699 "Incorrect type passed to function StatusCode_Name.");
1710 kMessageFieldNumber = 2,
1711 kCodeFieldNumber = 3,
1714 void clear_message();
1715 const std::string& message()
const;
1716 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
1717 void set_message(ArgT0&& arg0, ArgT... args);
1718 std::string* mutable_message();
1719 PROTOBUF_NODISCARD std::string* release_message();
1720 void set_allocated_message(std::string* message);
1722 const std::string& _internal_message()
const;
1723 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_message(
const std::string& value);
1724 std::string* _internal_mutable_message();
1740 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1741 typedef void InternalArenaConstructable_;
1742 typedef void DestructorSkippable_;
1744 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_;
1746 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1749 friend struct ::TableStruct_opentelemetry_2fproto_2ftrace_2fv1_2ftrace_2eproto;
1757 #pragma GCC diagnostic push
1758 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1763 inline int TracesData::_internal_resource_spans_size()
const {
1764 return _impl_.resource_spans_.size();
1767 return _internal_resource_spans_size();
1770 _impl_.resource_spans_.Clear();
1774 return _impl_.resource_spans_.Mutable(index);
1776 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::ResourceSpans >*
1779 return &
_impl_.resource_spans_;
1781 inline const ::opentelemetry::proto::trace::v1::ResourceSpans& TracesData::_internal_resource_spans(
int index)
const {
1782 return _impl_.resource_spans_.Get(index);
1786 return _internal_resource_spans(index);
1788 inline ::opentelemetry::proto::trace::v1::ResourceSpans* TracesData::_internal_add_resource_spans() {
1789 return _impl_.resource_spans_.Add();
1796 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::ResourceSpans >&
1799 return _impl_.resource_spans_;
1807 inline bool ResourceSpans::_internal_has_resource()
const {
1811 return _internal_has_resource();
1813 inline const ::opentelemetry::proto::resource::v1::Resource& ResourceSpans::_internal_resource()
const {
1814 const ::opentelemetry::proto::resource::v1::Resource* p =
_impl_.resource_;
1820 return _internal_resource();
1824 if (GetArenaForAllocation() ==
nullptr) {
1825 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.resource_);
1827 _impl_.resource_ = resource;
1838 _impl_.resource_ =
nullptr;
1839 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1840 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1841 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1842 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1843 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
1844 if (GetArenaForAllocation() !=
nullptr) {
1845 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1847 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1854 _impl_.resource_ =
nullptr;
1857 inline ::opentelemetry::proto::resource::v1::Resource* ResourceSpans::_internal_mutable_resource() {
1859 if (
_impl_.resource_ ==
nullptr) {
1860 auto* p = CreateMaybeMessage<::opentelemetry::proto::resource::v1::Resource>(GetArenaForAllocation());
1871 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1872 if (message_arena ==
nullptr) {
1873 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.resource_);
1876 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1877 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1878 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(resource));
1879 if (message_arena != submessage_arena) {
1880 resource = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1881 message_arena, resource, submessage_arena);
1887 _impl_.resource_ = resource;
1892 inline int ResourceSpans::_internal_scope_spans_size()
const {
1893 return _impl_.scope_spans_.size();
1896 return _internal_scope_spans_size();
1899 _impl_.scope_spans_.Clear();
1903 return _impl_.scope_spans_.Mutable(index);
1905 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::ScopeSpans >*
1908 return &
_impl_.scope_spans_;
1910 inline const ::opentelemetry::proto::trace::v1::ScopeSpans& ResourceSpans::_internal_scope_spans(
int index)
const {
1911 return _impl_.scope_spans_.Get(index);
1915 return _internal_scope_spans(index);
1917 inline ::opentelemetry::proto::trace::v1::ScopeSpans* ResourceSpans::_internal_add_scope_spans() {
1918 return _impl_.scope_spans_.Add();
1925 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::ScopeSpans >&
1928 return _impl_.scope_spans_;
1933 _impl_.schema_url_.ClearToEmpty();
1937 return _internal_schema_url();
1939 template <
typename ArgT0,
typename... ArgT>
1940 inline PROTOBUF_ALWAYS_INLINE
1943 _impl_.schema_url_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1947 std::string* _s = _internal_mutable_schema_url();
1951 inline const std::string& ResourceSpans::_internal_schema_url()
const {
1952 return _impl_.schema_url_.Get();
1954 inline void ResourceSpans::_internal_set_schema_url(
const std::string& value) {
1956 _impl_.schema_url_.Set(value, GetArenaForAllocation());
1958 inline std::string* ResourceSpans::_internal_mutable_schema_url() {
1960 return _impl_.schema_url_.Mutable(GetArenaForAllocation());
1964 return _impl_.schema_url_.Release();
1967 if (schema_url !=
nullptr) {
1972 _impl_.schema_url_.SetAllocated(schema_url, GetArenaForAllocation());
1973 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1974 if (
_impl_.schema_url_.IsDefault()) {
1975 _impl_.schema_url_.Set(
"", GetArenaForAllocation());
1977 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1986 inline bool ScopeSpans::_internal_has_scope()
const {
1990 return _internal_has_scope();
1992 inline const ::opentelemetry::proto::common::v1::InstrumentationScope& ScopeSpans::_internal_scope()
const {
1993 const ::opentelemetry::proto::common::v1::InstrumentationScope* p =
_impl_.scope_;
1999 return _internal_scope();
2003 if (GetArenaForAllocation() ==
nullptr) {
2004 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.scope_);
2018 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
2019 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
2020 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2021 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
2022 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
2023 if (GetArenaForAllocation() !=
nullptr) {
2024 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2026 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
2036 inline ::opentelemetry::proto::common::v1::InstrumentationScope* ScopeSpans::_internal_mutable_scope() {
2038 if (
_impl_.scope_ ==
nullptr) {
2039 auto* p = CreateMaybeMessage<::opentelemetry::proto::common::v1::InstrumentationScope>(GetArenaForAllocation());
2050 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
2051 if (message_arena ==
nullptr) {
2052 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.scope_);
2055 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2056 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
2057 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(scope));
2058 if (message_arena != submessage_arena) {
2059 scope = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2060 message_arena, scope, submessage_arena);
2071 inline int ScopeSpans::_internal_spans_size()
const {
2072 return _impl_.spans_.size();
2075 return _internal_spans_size();
2082 return _impl_.spans_.Mutable(index);
2084 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::Span >*
2089 inline const ::opentelemetry::proto::trace::v1::Span& ScopeSpans::_internal_spans(
int index)
const {
2090 return _impl_.spans_.Get(index);
2094 return _internal_spans(index);
2096 inline ::opentelemetry::proto::trace::v1::Span* ScopeSpans::_internal_add_spans() {
2097 return _impl_.spans_.Add();
2104 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::Span >&
2112 _impl_.schema_url_.ClearToEmpty();
2116 return _internal_schema_url();
2118 template <
typename ArgT0,
typename... ArgT>
2119 inline PROTOBUF_ALWAYS_INLINE
2122 _impl_.schema_url_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
2126 std::string* _s = _internal_mutable_schema_url();
2130 inline const std::string& ScopeSpans::_internal_schema_url()
const {
2131 return _impl_.schema_url_.Get();
2133 inline void ScopeSpans::_internal_set_schema_url(
const std::string& value) {
2135 _impl_.schema_url_.Set(value, GetArenaForAllocation());
2137 inline std::string* ScopeSpans::_internal_mutable_schema_url() {
2139 return _impl_.schema_url_.Mutable(GetArenaForAllocation());
2143 return _impl_.schema_url_.Release();
2146 if (schema_url !=
nullptr) {
2151 _impl_.schema_url_.SetAllocated(schema_url, GetArenaForAllocation());
2152 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2153 if (
_impl_.schema_url_.IsDefault()) {
2154 _impl_.schema_url_.Set(
"", GetArenaForAllocation());
2156 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2166 _impl_.time_unix_nano_ = uint64_t{0u};
2168 inline uint64_t Span_Event::_internal_time_unix_nano()
const {
2169 return _impl_.time_unix_nano_;
2173 return _internal_time_unix_nano();
2175 inline void Span_Event::_internal_set_time_unix_nano(uint64_t value) {
2177 _impl_.time_unix_nano_ = value;
2180 _internal_set_time_unix_nano(value);
2186 _impl_.name_.ClearToEmpty();
2190 return _internal_name();
2192 template <
typename ArgT0,
typename... ArgT>
2193 inline PROTOBUF_ALWAYS_INLINE
2196 _impl_.name_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
2200 std::string* _s = _internal_mutable_name();
2204 inline const std::string& Span_Event::_internal_name()
const {
2205 return _impl_.name_.Get();
2207 inline void Span_Event::_internal_set_name(
const std::string& value) {
2209 _impl_.name_.Set(value, GetArenaForAllocation());
2211 inline std::string* Span_Event::_internal_mutable_name() {
2213 return _impl_.name_.Mutable(GetArenaForAllocation());
2217 return _impl_.name_.Release();
2220 if (name !=
nullptr) {
2225 _impl_.name_.SetAllocated(name, GetArenaForAllocation());
2226 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2227 if (
_impl_.name_.IsDefault()) {
2228 _impl_.name_.Set(
"", GetArenaForAllocation());
2230 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2235 inline int Span_Event::_internal_attributes_size()
const {
2236 return _impl_.attributes_.size();
2239 return _internal_attributes_size();
2243 return _impl_.attributes_.Mutable(index);
2245 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >*
2248 return &
_impl_.attributes_;
2250 inline const ::opentelemetry::proto::common::v1::KeyValue& Span_Event::_internal_attributes(
int index)
const {
2251 return _impl_.attributes_.Get(index);
2255 return _internal_attributes(index);
2257 inline ::opentelemetry::proto::common::v1::KeyValue* Span_Event::_internal_add_attributes() {
2258 return _impl_.attributes_.Add();
2265 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >&
2268 return _impl_.attributes_;
2273 _impl_.dropped_attributes_count_ = 0u;
2275 inline uint32_t Span_Event::_internal_dropped_attributes_count()
const {
2276 return _impl_.dropped_attributes_count_;
2280 return _internal_dropped_attributes_count();
2282 inline void Span_Event::_internal_set_dropped_attributes_count(uint32_t value) {
2284 _impl_.dropped_attributes_count_ = value;
2287 _internal_set_dropped_attributes_count(value);
2297 _impl_.trace_id_.ClearToEmpty();
2301 return _internal_trace_id();
2303 template <
typename ArgT0,
typename... ArgT>
2304 inline PROTOBUF_ALWAYS_INLINE
2307 _impl_.trace_id_.SetBytes(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
2311 std::string* _s = _internal_mutable_trace_id();
2315 inline const std::string& Span_Link::_internal_trace_id()
const {
2316 return _impl_.trace_id_.Get();
2318 inline void Span_Link::_internal_set_trace_id(
const std::string& value) {
2320 _impl_.trace_id_.Set(value, GetArenaForAllocation());
2322 inline std::string* Span_Link::_internal_mutable_trace_id() {
2324 return _impl_.trace_id_.Mutable(GetArenaForAllocation());
2328 return _impl_.trace_id_.Release();
2331 if (trace_id !=
nullptr) {
2336 _impl_.trace_id_.SetAllocated(trace_id, GetArenaForAllocation());
2337 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2338 if (
_impl_.trace_id_.IsDefault()) {
2339 _impl_.trace_id_.Set(
"", GetArenaForAllocation());
2341 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2347 _impl_.span_id_.ClearToEmpty();
2351 return _internal_span_id();
2353 template <
typename ArgT0,
typename... ArgT>
2354 inline PROTOBUF_ALWAYS_INLINE
2357 _impl_.span_id_.SetBytes(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
2361 std::string* _s = _internal_mutable_span_id();
2365 inline const std::string& Span_Link::_internal_span_id()
const {
2366 return _impl_.span_id_.Get();
2368 inline void Span_Link::_internal_set_span_id(
const std::string& value) {
2370 _impl_.span_id_.Set(value, GetArenaForAllocation());
2372 inline std::string* Span_Link::_internal_mutable_span_id() {
2374 return _impl_.span_id_.Mutable(GetArenaForAllocation());
2378 return _impl_.span_id_.Release();
2381 if (span_id !=
nullptr) {
2386 _impl_.span_id_.SetAllocated(span_id, GetArenaForAllocation());
2387 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2388 if (
_impl_.span_id_.IsDefault()) {
2389 _impl_.span_id_.Set(
"", GetArenaForAllocation());
2391 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2397 _impl_.trace_state_.ClearToEmpty();
2401 return _internal_trace_state();
2403 template <
typename ArgT0,
typename... ArgT>
2404 inline PROTOBUF_ALWAYS_INLINE
2407 _impl_.trace_state_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
2411 std::string* _s = _internal_mutable_trace_state();
2415 inline const std::string& Span_Link::_internal_trace_state()
const {
2416 return _impl_.trace_state_.Get();
2418 inline void Span_Link::_internal_set_trace_state(
const std::string& value) {
2420 _impl_.trace_state_.Set(value, GetArenaForAllocation());
2422 inline std::string* Span_Link::_internal_mutable_trace_state() {
2424 return _impl_.trace_state_.Mutable(GetArenaForAllocation());
2428 return _impl_.trace_state_.Release();
2431 if (trace_state !=
nullptr) {
2436 _impl_.trace_state_.SetAllocated(trace_state, GetArenaForAllocation());
2437 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2438 if (
_impl_.trace_state_.IsDefault()) {
2439 _impl_.trace_state_.Set(
"", GetArenaForAllocation());
2441 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2446 inline int Span_Link::_internal_attributes_size()
const {
2447 return _impl_.attributes_.size();
2450 return _internal_attributes_size();
2454 return _impl_.attributes_.Mutable(index);
2456 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >*
2459 return &
_impl_.attributes_;
2461 inline const ::opentelemetry::proto::common::v1::KeyValue& Span_Link::_internal_attributes(
int index)
const {
2462 return _impl_.attributes_.Get(index);
2466 return _internal_attributes(index);
2468 inline ::opentelemetry::proto::common::v1::KeyValue* Span_Link::_internal_add_attributes() {
2469 return _impl_.attributes_.Add();
2476 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >&
2479 return _impl_.attributes_;
2484 _impl_.dropped_attributes_count_ = 0u;
2486 inline uint32_t Span_Link::_internal_dropped_attributes_count()
const {
2487 return _impl_.dropped_attributes_count_;
2491 return _internal_dropped_attributes_count();
2493 inline void Span_Link::_internal_set_dropped_attributes_count(uint32_t value) {
2495 _impl_.dropped_attributes_count_ = value;
2498 _internal_set_dropped_attributes_count(value);
2506 inline uint32_t Span_Link::_internal_flags()
const {
2511 return _internal_flags();
2513 inline void Span_Link::_internal_set_flags(uint32_t value) {
2518 _internal_set_flags(value);
2528 _impl_.trace_id_.ClearToEmpty();
2532 return _internal_trace_id();
2534 template <
typename ArgT0,
typename... ArgT>
2535 inline PROTOBUF_ALWAYS_INLINE
2538 _impl_.trace_id_.SetBytes(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
2542 std::string* _s = _internal_mutable_trace_id();
2546 inline const std::string& Span::_internal_trace_id()
const {
2547 return _impl_.trace_id_.Get();
2549 inline void Span::_internal_set_trace_id(
const std::string& value) {
2551 _impl_.trace_id_.Set(value, GetArenaForAllocation());
2553 inline std::string* Span::_internal_mutable_trace_id() {
2555 return _impl_.trace_id_.Mutable(GetArenaForAllocation());
2559 return _impl_.trace_id_.Release();
2562 if (trace_id !=
nullptr) {
2567 _impl_.trace_id_.SetAllocated(trace_id, GetArenaForAllocation());
2568 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2569 if (
_impl_.trace_id_.IsDefault()) {
2570 _impl_.trace_id_.Set(
"", GetArenaForAllocation());
2572 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2578 _impl_.span_id_.ClearToEmpty();
2582 return _internal_span_id();
2584 template <
typename ArgT0,
typename... ArgT>
2585 inline PROTOBUF_ALWAYS_INLINE
2588 _impl_.span_id_.SetBytes(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
2592 std::string* _s = _internal_mutable_span_id();
2596 inline const std::string& Span::_internal_span_id()
const {
2597 return _impl_.span_id_.Get();
2599 inline void Span::_internal_set_span_id(
const std::string& value) {
2601 _impl_.span_id_.Set(value, GetArenaForAllocation());
2603 inline std::string* Span::_internal_mutable_span_id() {
2605 return _impl_.span_id_.Mutable(GetArenaForAllocation());
2609 return _impl_.span_id_.Release();
2612 if (span_id !=
nullptr) {
2617 _impl_.span_id_.SetAllocated(span_id, GetArenaForAllocation());
2618 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2619 if (
_impl_.span_id_.IsDefault()) {
2620 _impl_.span_id_.Set(
"", GetArenaForAllocation());
2622 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2628 _impl_.trace_state_.ClearToEmpty();
2632 return _internal_trace_state();
2634 template <
typename ArgT0,
typename... ArgT>
2635 inline PROTOBUF_ALWAYS_INLINE
2638 _impl_.trace_state_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
2642 std::string* _s = _internal_mutable_trace_state();
2646 inline const std::string& Span::_internal_trace_state()
const {
2647 return _impl_.trace_state_.Get();
2649 inline void Span::_internal_set_trace_state(
const std::string& value) {
2651 _impl_.trace_state_.Set(value, GetArenaForAllocation());
2653 inline std::string* Span::_internal_mutable_trace_state() {
2655 return _impl_.trace_state_.Mutable(GetArenaForAllocation());
2659 return _impl_.trace_state_.Release();
2662 if (trace_state !=
nullptr) {
2667 _impl_.trace_state_.SetAllocated(trace_state, GetArenaForAllocation());
2668 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2669 if (
_impl_.trace_state_.IsDefault()) {
2670 _impl_.trace_state_.Set(
"", GetArenaForAllocation());
2672 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2678 _impl_.parent_span_id_.ClearToEmpty();
2682 return _internal_parent_span_id();
2684 template <
typename ArgT0,
typename... ArgT>
2685 inline PROTOBUF_ALWAYS_INLINE
2688 _impl_.parent_span_id_.SetBytes(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
2692 std::string* _s = _internal_mutable_parent_span_id();
2696 inline const std::string& Span::_internal_parent_span_id()
const {
2697 return _impl_.parent_span_id_.Get();
2699 inline void Span::_internal_set_parent_span_id(
const std::string& value) {
2701 _impl_.parent_span_id_.Set(value, GetArenaForAllocation());
2703 inline std::string* Span::_internal_mutable_parent_span_id() {
2705 return _impl_.parent_span_id_.Mutable(GetArenaForAllocation());
2709 return _impl_.parent_span_id_.Release();
2712 if (parent_span_id !=
nullptr) {
2717 _impl_.parent_span_id_.SetAllocated(parent_span_id, GetArenaForAllocation());
2718 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2719 if (
_impl_.parent_span_id_.IsDefault()) {
2720 _impl_.parent_span_id_.Set(
"", GetArenaForAllocation());
2722 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2730 inline uint32_t Span::_internal_flags()
const {
2735 return _internal_flags();
2737 inline void Span::_internal_set_flags(uint32_t value) {
2742 _internal_set_flags(value);
2748 _impl_.name_.ClearToEmpty();
2752 return _internal_name();
2754 template <
typename ArgT0,
typename... ArgT>
2755 inline PROTOBUF_ALWAYS_INLINE
2758 _impl_.name_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
2762 std::string* _s = _internal_mutable_name();
2766 inline const std::string& Span::_internal_name()
const {
2767 return _impl_.name_.Get();
2769 inline void Span::_internal_set_name(
const std::string& value) {
2771 _impl_.name_.Set(value, GetArenaForAllocation());
2773 inline std::string* Span::_internal_mutable_name() {
2775 return _impl_.name_.Mutable(GetArenaForAllocation());
2779 return _impl_.name_.Release();
2782 if (name !=
nullptr) {
2787 _impl_.name_.SetAllocated(name, GetArenaForAllocation());
2788 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2789 if (
_impl_.name_.IsDefault()) {
2790 _impl_.name_.Set(
"", GetArenaForAllocation());
2792 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2805 return _internal_kind();
2812 _internal_set_kind(value);
2818 _impl_.start_time_unix_nano_ = uint64_t{0u};
2820 inline uint64_t Span::_internal_start_time_unix_nano()
const {
2821 return _impl_.start_time_unix_nano_;
2825 return _internal_start_time_unix_nano();
2827 inline void Span::_internal_set_start_time_unix_nano(uint64_t value) {
2829 _impl_.start_time_unix_nano_ = value;
2832 _internal_set_start_time_unix_nano(value);
2838 _impl_.end_time_unix_nano_ = uint64_t{0u};
2840 inline uint64_t Span::_internal_end_time_unix_nano()
const {
2841 return _impl_.end_time_unix_nano_;
2845 return _internal_end_time_unix_nano();
2847 inline void Span::_internal_set_end_time_unix_nano(uint64_t value) {
2849 _impl_.end_time_unix_nano_ = value;
2852 _internal_set_end_time_unix_nano(value);
2857 inline int Span::_internal_attributes_size()
const {
2858 return _impl_.attributes_.size();
2861 return _internal_attributes_size();
2865 return _impl_.attributes_.Mutable(index);
2867 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >*
2870 return &
_impl_.attributes_;
2872 inline const ::opentelemetry::proto::common::v1::KeyValue& Span::_internal_attributes(
int index)
const {
2873 return _impl_.attributes_.Get(index);
2877 return _internal_attributes(index);
2879 inline ::opentelemetry::proto::common::v1::KeyValue* Span::_internal_add_attributes() {
2880 return _impl_.attributes_.Add();
2887 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >&
2890 return _impl_.attributes_;
2895 _impl_.dropped_attributes_count_ = 0u;
2897 inline uint32_t Span::_internal_dropped_attributes_count()
const {
2898 return _impl_.dropped_attributes_count_;
2902 return _internal_dropped_attributes_count();
2904 inline void Span::_internal_set_dropped_attributes_count(uint32_t value) {
2906 _impl_.dropped_attributes_count_ = value;
2909 _internal_set_dropped_attributes_count(value);
2914 inline int Span::_internal_events_size()
const {
2915 return _impl_.events_.size();
2918 return _internal_events_size();
2925 return _impl_.events_.Mutable(index);
2927 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::Span_Event >*
2932 inline const ::opentelemetry::proto::trace::v1::Span_Event& Span::_internal_events(
int index)
const {
2933 return _impl_.events_.Get(index);
2935 inline const ::opentelemetry::proto::trace::v1::Span_Event&
Span::events(
int index)
const {
2937 return _internal_events(index);
2939 inline ::opentelemetry::proto::trace::v1::Span_Event* Span::_internal_add_events() {
2940 return _impl_.events_.Add();
2947 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::Span_Event >&
2955 _impl_.dropped_events_count_ = 0u;
2957 inline uint32_t Span::_internal_dropped_events_count()
const {
2958 return _impl_.dropped_events_count_;
2962 return _internal_dropped_events_count();
2964 inline void Span::_internal_set_dropped_events_count(uint32_t value) {
2966 _impl_.dropped_events_count_ = value;
2969 _internal_set_dropped_events_count(value);
2974 inline int Span::_internal_links_size()
const {
2975 return _impl_.links_.size();
2978 return _internal_links_size();
2985 return _impl_.links_.Mutable(index);
2987 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::Span_Link >*
2992 inline const ::opentelemetry::proto::trace::v1::Span_Link& Span::_internal_links(
int index)
const {
2993 return _impl_.links_.Get(index);
2995 inline const ::opentelemetry::proto::trace::v1::Span_Link&
Span::links(
int index)
const {
2997 return _internal_links(index);
2999 inline ::opentelemetry::proto::trace::v1::Span_Link* Span::_internal_add_links() {
3000 return _impl_.links_.Add();
3007 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::trace::v1::Span_Link >&
3015 _impl_.dropped_links_count_ = 0u;
3017 inline uint32_t Span::_internal_dropped_links_count()
const {
3018 return _impl_.dropped_links_count_;
3022 return _internal_dropped_links_count();
3024 inline void Span::_internal_set_dropped_links_count(uint32_t value) {
3026 _impl_.dropped_links_count_ = value;
3029 _internal_set_dropped_links_count(value);
3034 inline bool Span::_internal_has_status()
const {
3038 return _internal_has_status();
3041 if (GetArenaForAllocation() ==
nullptr &&
_impl_.status_ !=
nullptr) {
3044 _impl_.status_ =
nullptr;
3046 inline const ::opentelemetry::proto::trace::v1::Status& Span::_internal_status()
const {
3047 const ::opentelemetry::proto::trace::v1::Status* p =
_impl_.status_;
3051 inline const ::opentelemetry::proto::trace::v1::Status&
Span::status()
const {
3053 return _internal_status();
3057 if (GetArenaForAllocation() ==
nullptr) {
3058 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.status_);
3071 _impl_.status_ =
nullptr;
3072 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
3073 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
3074 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3075 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
3076 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
3077 if (GetArenaForAllocation() !=
nullptr) {
3078 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3080 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
3087 _impl_.status_ =
nullptr;
3090 inline ::opentelemetry::proto::trace::v1::Status* Span::_internal_mutable_status() {
3092 if (
_impl_.status_ ==
nullptr) {
3093 auto* p = CreateMaybeMessage<::opentelemetry::proto::trace::v1::Status>(GetArenaForAllocation());
3104 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
3105 if (message_arena ==
nullptr) {
3109 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
3110 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(status);
3111 if (message_arena != submessage_arena) {
3112 status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
3113 message_arena, status, submessage_arena);
3129 _impl_.message_.ClearToEmpty();
3133 return _internal_message();
3135 template <
typename ArgT0,
typename... ArgT>
3136 inline PROTOBUF_ALWAYS_INLINE
3139 _impl_.message_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
3143 std::string* _s = _internal_mutable_message();
3147 inline const std::string& Status::_internal_message()
const {
3148 return _impl_.message_.Get();
3150 inline void Status::_internal_set_message(
const std::string& value) {
3152 _impl_.message_.Set(value, GetArenaForAllocation());
3154 inline std::string* Status::_internal_mutable_message() {
3156 return _impl_.message_.Mutable(GetArenaForAllocation());
3160 return _impl_.message_.Release();
3163 if (message !=
nullptr) {
3168 _impl_.message_.SetAllocated(message, GetArenaForAllocation());
3169 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3170 if (
_impl_.message_.IsDefault()) {
3171 _impl_.message_.Set(
"", GetArenaForAllocation());
3173 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3186 return _internal_code();
3193 _internal_set_code(value);
3198 #pragma GCC diagnostic pop
3220 PROTOBUF_NAMESPACE_OPEN
3224 inline const EnumDescriptor* GetEnumDescriptor< ::opentelemetry::proto::trace::v1::Span_SpanKind>() {
3229 inline const EnumDescriptor* GetEnumDescriptor< ::opentelemetry::proto::trace::v1::Status_StatusCode>() {
3234 inline const EnumDescriptor* GetEnumDescriptor< ::opentelemetry::proto::trace::v1::SpanFlags>() {
3238 PROTOBUF_NAMESPACE_CLOSE
3242 #include <google/protobuf/port_undef.inc>
3243 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_opentelemetry_2fproto_2ftrace_2fv1_2ftrace_2eproto