4 #ifndef GOOGLE_PROTOBUF_INCLUDED_opentelemetry_2fproto_2flogs_2fv1_2flogs_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_opentelemetry_2fproto_2flogs_2fv1_2flogs_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_2flogs_2fv1_2flogs_2eproto
39 PROTOBUF_NAMESPACE_OPEN
43 PROTOBUF_NAMESPACE_CLOSE
47 static const uint32_t
offsets[];
55 struct LogRecordDefaultTypeInternal;
58 struct LogsDataDefaultTypeInternal;
61 struct ResourceLogsDefaultTypeInternal;
64 struct ScopeLogsDefaultTypeInternal;
70 PROTOBUF_NAMESPACE_OPEN
75 PROTOBUF_NAMESPACE_CLOSE
118 static_assert(::std::is_same<T, SeverityNumber>::value ||
119 ::std::is_integral<T>::value,
120 "Incorrect type passed to function SeverityNumber_Name.");
121 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
125 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
SeverityNumber* value) {
126 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SeverityNumber>(
143 static_assert(::std::is_same<T, LogRecordFlags>::value ||
144 ::std::is_integral<T>::value,
145 "Incorrect type passed to function LogRecordFlags_Name.");
146 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
150 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
LogRecordFlags* value) {
151 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<LogRecordFlags>(
156 class LogsData final :
157 public ::PROTOBUF_NAMESPACE_ID::Message {
161 explicit PROTOBUF_CONSTEXPR
LogsData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
174 if (
this == &from)
return *
this;
175 if (GetOwningArena() == from.GetOwningArena()
176 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
177 && GetOwningArena() !=
nullptr
187 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
200 return reinterpret_cast<const LogsData*
>(
210 if (other ==
this)
return;
211 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
212 if (GetOwningArena() !=
nullptr &&
213 GetOwningArena() == other->GetOwningArena()) {
214 #else // PROTOBUF_FORCE_COPY_IN_SWAP
215 if (GetOwningArena() == other->GetOwningArena()) {
216 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
219 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
223 if (other ==
this)
return;
224 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
230 LogsData*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
231 return CreateMaybeMessage<LogsData>(arena);
233 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
235 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
237 LogsData::MergeImpl(*
this, from);
240 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
242 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
248 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
252 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
254 void SetCachedSize(
int size)
const final;
258 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
259 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
260 return "opentelemetry.proto.logs.v1.LogsData";
263 explicit LogsData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
264 bool is_message_owned =
false);
268 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
270 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
282 int _internal_resource_logs_size()
const;
286 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::logs::v1::ResourceLogs >*
289 const ::opentelemetry::proto::logs::v1::ResourceLogs& _internal_resource_logs(
int index)
const;
292 const ::opentelemetry::proto::logs::v1::ResourceLogs&
resource_logs(
int index)
const;
294 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::logs::v1::ResourceLogs >&
301 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
302 typedef void InternalArenaConstructable_;
303 typedef void DestructorSkippable_;
305 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::logs::v1::ResourceLogs > resource_logs_;
306 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
309 friend struct ::TableStruct_opentelemetry_2fproto_2flogs_2fv1_2flogs_2eproto;
313 class ResourceLogs final :
314 public ::PROTOBUF_NAMESPACE_ID::Message {
318 explicit PROTOBUF_CONSTEXPR
ResourceLogs(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
331 if (
this == &from)
return *
this;
332 if (GetOwningArena() == from.GetOwningArena()
333 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
334 && GetOwningArena() !=
nullptr
344 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
367 if (other ==
this)
return;
368 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
369 if (GetOwningArena() !=
nullptr &&
370 GetOwningArena() == other->GetOwningArena()) {
371 #else // PROTOBUF_FORCE_COPY_IN_SWAP
372 if (GetOwningArena() == other->GetOwningArena()) {
373 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
376 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
380 if (other ==
this)
return;
381 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
388 return CreateMaybeMessage<ResourceLogs>(arena);
390 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
392 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
394 ResourceLogs::MergeImpl(*
this, from);
397 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
399 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
405 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
409 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
411 void SetCachedSize(
int size)
const final;
415 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
416 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
417 return "opentelemetry.proto.logs.v1.ResourceLogs";
420 explicit ResourceLogs(::PROTOBUF_NAMESPACE_ID::Arena* arena,
421 bool is_message_owned =
false);
425 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
427 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
434 kScopeLogsFieldNumber = 2,
435 kSchemaUrlFieldNumber = 3,
436 kResourceFieldNumber = 1,
439 int scope_logs_size()
const;
441 int _internal_scope_logs_size()
const;
443 void clear_scope_logs();
445 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::logs::v1::ScopeLogs >*
446 mutable_scope_logs();
448 const ::opentelemetry::proto::logs::v1::ScopeLogs& _internal_scope_logs(
int index)
const;
451 const ::opentelemetry::proto::logs::v1::ScopeLogs& scope_logs(
int index)
const;
453 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::logs::v1::ScopeLogs >&
457 void clear_schema_url();
458 const std::string& schema_url()
const;
459 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
460 void set_schema_url(ArgT0&& arg0, ArgT... args);
461 std::string* mutable_schema_url();
462 PROTOBUF_NODISCARD std::string* release_schema_url();
463 void set_allocated_schema_url(std::string* schema_url);
465 const std::string& _internal_schema_url()
const;
466 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_schema_url(
const std::string& value);
467 std::string* _internal_mutable_schema_url();
471 bool has_resource()
const;
473 bool _internal_has_resource()
const;
475 void clear_resource();
476 const ::opentelemetry::proto::resource::v1::Resource& resource()
const;
477 PROTOBUF_NODISCARD ::opentelemetry::proto::resource::v1::Resource* release_resource();
481 const ::opentelemetry::proto::resource::v1::Resource& _internal_resource()
const;
484 void unsafe_arena_set_allocated_resource(
492 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
493 typedef void InternalArenaConstructable_;
494 typedef void DestructorSkippable_;
496 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::logs::v1::ScopeLogs > scope_logs_;
497 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_url_;
499 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
502 friend struct ::TableStruct_opentelemetry_2fproto_2flogs_2fv1_2flogs_2eproto;
506 class ScopeLogs final :
507 public ::PROTOBUF_NAMESPACE_ID::Message {
511 explicit PROTOBUF_CONSTEXPR
ScopeLogs(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
524 if (
this == &from)
return *
this;
525 if (GetOwningArena() == from.GetOwningArena()
526 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
527 && GetOwningArena() !=
nullptr
537 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
550 return reinterpret_cast<const ScopeLogs*
>(
560 if (other ==
this)
return;
561 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
562 if (GetOwningArena() !=
nullptr &&
563 GetOwningArena() == other->GetOwningArena()) {
564 #else // PROTOBUF_FORCE_COPY_IN_SWAP
565 if (GetOwningArena() == other->GetOwningArena()) {
566 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
569 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
573 if (other ==
this)
return;
574 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
580 ScopeLogs*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
581 return CreateMaybeMessage<ScopeLogs>(arena);
583 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
585 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
587 ScopeLogs::MergeImpl(*
this, from);
590 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
592 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
598 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
602 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
604 void SetCachedSize(
int size)
const final;
608 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
609 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
610 return "opentelemetry.proto.logs.v1.ScopeLogs";
613 explicit ScopeLogs(::PROTOBUF_NAMESPACE_ID::Arena* arena,
614 bool is_message_owned =
false);
618 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
620 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
627 kLogRecordsFieldNumber = 2,
628 kSchemaUrlFieldNumber = 3,
629 kScopeFieldNumber = 1,
632 int log_records_size()
const;
634 int _internal_log_records_size()
const;
636 void clear_log_records();
638 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::logs::v1::LogRecord >*
639 mutable_log_records();
641 const ::opentelemetry::proto::logs::v1::LogRecord& _internal_log_records(
int index)
const;
644 const ::opentelemetry::proto::logs::v1::LogRecord& log_records(
int index)
const;
646 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::logs::v1::LogRecord >&
650 void clear_schema_url();
651 const std::string& schema_url()
const;
652 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
653 void set_schema_url(ArgT0&& arg0, ArgT... args);
654 std::string* mutable_schema_url();
655 PROTOBUF_NODISCARD std::string* release_schema_url();
656 void set_allocated_schema_url(std::string* schema_url);
658 const std::string& _internal_schema_url()
const;
659 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_schema_url(
const std::string& value);
660 std::string* _internal_mutable_schema_url();
664 bool has_scope()
const;
666 bool _internal_has_scope()
const;
669 const ::opentelemetry::proto::common::v1::InstrumentationScope& scope()
const;
670 PROTOBUF_NODISCARD ::opentelemetry::proto::common::v1::InstrumentationScope* release_scope();
674 const ::opentelemetry::proto::common::v1::InstrumentationScope& _internal_scope()
const;
677 void unsafe_arena_set_allocated_scope(
685 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
686 typedef void InternalArenaConstructable_;
687 typedef void DestructorSkippable_;
689 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::logs::v1::LogRecord > log_records_;
690 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_url_;
692 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
695 friend struct ::TableStruct_opentelemetry_2fproto_2flogs_2fv1_2flogs_2eproto;
699 class LogRecord final :
700 public ::PROTOBUF_NAMESPACE_ID::Message {
704 explicit PROTOBUF_CONSTEXPR
LogRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
717 if (
this == &from)
return *
this;
718 if (GetOwningArena() == from.GetOwningArena()
719 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
720 && GetOwningArena() !=
nullptr
730 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
743 return reinterpret_cast<const LogRecord*
>(
753 if (other ==
this)
return;
754 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
755 if (GetOwningArena() !=
nullptr &&
756 GetOwningArena() == other->GetOwningArena()) {
757 #else // PROTOBUF_FORCE_COPY_IN_SWAP
758 if (GetOwningArena() == other->GetOwningArena()) {
759 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
762 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
766 if (other ==
this)
return;
767 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
773 LogRecord*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
774 return CreateMaybeMessage<LogRecord>(arena);
776 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
778 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
780 LogRecord::MergeImpl(*
this, from);
783 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
785 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
791 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
795 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
797 void SetCachedSize(
int size)
const final;
801 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
802 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
803 return "opentelemetry.proto.logs.v1.LogRecord";
806 explicit LogRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena,
807 bool is_message_owned =
false);
811 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
813 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
820 kAttributesFieldNumber = 6,
821 kSeverityTextFieldNumber = 3,
822 kTraceIdFieldNumber = 9,
823 kSpanIdFieldNumber = 10,
824 kEventNameFieldNumber = 12,
825 kBodyFieldNumber = 5,
826 kTimeUnixNanoFieldNumber = 1,
827 kSeverityNumberFieldNumber = 2,
828 kDroppedAttributesCountFieldNumber = 7,
829 kObservedTimeUnixNanoFieldNumber = 11,
830 kFlagsFieldNumber = 8,
833 int attributes_size()
const;
835 int _internal_attributes_size()
const;
837 void clear_attributes();
839 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >*
840 mutable_attributes();
842 const ::opentelemetry::proto::common::v1::KeyValue& _internal_attributes(
int index)
const;
845 const ::opentelemetry::proto::common::v1::KeyValue& attributes(
int index)
const;
847 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >&
851 void clear_severity_text();
852 const std::string& severity_text()
const;
853 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
854 void set_severity_text(ArgT0&& arg0, ArgT... args);
855 std::string* mutable_severity_text();
856 PROTOBUF_NODISCARD std::string* release_severity_text();
857 void set_allocated_severity_text(std::string* severity_text);
859 const std::string& _internal_severity_text()
const;
860 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_severity_text(
const std::string& value);
861 std::string* _internal_mutable_severity_text();
865 void clear_trace_id();
866 const std::string& trace_id()
const;
867 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
868 void set_trace_id(ArgT0&& arg0, ArgT... args);
869 std::string* mutable_trace_id();
870 PROTOBUF_NODISCARD std::string* release_trace_id();
871 void set_allocated_trace_id(std::string* trace_id);
873 const std::string& _internal_trace_id()
const;
874 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_trace_id(
const std::string& value);
875 std::string* _internal_mutable_trace_id();
879 void clear_span_id();
880 const std::string& span_id()
const;
881 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
882 void set_span_id(ArgT0&& arg0, ArgT... args);
883 std::string* mutable_span_id();
884 PROTOBUF_NODISCARD std::string* release_span_id();
885 void set_allocated_span_id(std::string* span_id);
887 const std::string& _internal_span_id()
const;
888 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_span_id(
const std::string& value);
889 std::string* _internal_mutable_span_id();
893 void clear_event_name();
894 const std::string& event_name()
const;
895 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
896 void set_event_name(ArgT0&& arg0, ArgT... args);
897 std::string* mutable_event_name();
898 PROTOBUF_NODISCARD std::string* release_event_name();
899 void set_allocated_event_name(std::string* event_name);
901 const std::string& _internal_event_name()
const;
902 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_event_name(
const std::string& value);
903 std::string* _internal_mutable_event_name();
907 bool has_body()
const;
909 bool _internal_has_body()
const;
912 const ::opentelemetry::proto::common::v1::AnyValue& body()
const;
913 PROTOBUF_NODISCARD ::opentelemetry::proto::common::v1::AnyValue* release_body();
917 const ::opentelemetry::proto::common::v1::AnyValue& _internal_body()
const;
920 void unsafe_arena_set_allocated_body(
925 void clear_time_unix_nano();
926 uint64_t time_unix_nano()
const;
927 void set_time_unix_nano(uint64_t value);
929 uint64_t _internal_time_unix_nano()
const;
930 void _internal_set_time_unix_nano(uint64_t value);
934 void clear_severity_number();
943 void clear_dropped_attributes_count();
944 uint32_t dropped_attributes_count()
const;
945 void set_dropped_attributes_count(uint32_t value);
947 uint32_t _internal_dropped_attributes_count()
const;
948 void _internal_set_dropped_attributes_count(uint32_t value);
952 void clear_observed_time_unix_nano();
953 uint64_t observed_time_unix_nano()
const;
954 void set_observed_time_unix_nano(uint64_t value);
956 uint64_t _internal_observed_time_unix_nano()
const;
957 void _internal_set_observed_time_unix_nano(uint64_t value);
962 uint32_t flags()
const;
963 void set_flags(uint32_t value);
965 uint32_t _internal_flags()
const;
966 void _internal_set_flags(uint32_t value);
973 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
974 typedef void InternalArenaConstructable_;
975 typedef void DestructorSkippable_;
977 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue > attributes_;
978 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr severity_text_;
979 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr trace_id_;
980 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr span_id_;
981 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr event_name_;
983 uint64_t time_unix_nano_;
984 int severity_number_;
985 uint32_t dropped_attributes_count_;
986 uint64_t observed_time_unix_nano_;
988 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
991 friend struct ::TableStruct_opentelemetry_2fproto_2flogs_2fv1_2flogs_2eproto;
999 #pragma GCC diagnostic push
1000 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1005 inline int LogsData::_internal_resource_logs_size()
const {
1006 return _impl_.resource_logs_.size();
1009 return _internal_resource_logs_size();
1012 _impl_.resource_logs_.Clear();
1016 return _impl_.resource_logs_.Mutable(index);
1018 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::logs::v1::ResourceLogs >*
1021 return &
_impl_.resource_logs_;
1023 inline const ::opentelemetry::proto::logs::v1::ResourceLogs& LogsData::_internal_resource_logs(
int index)
const {
1024 return _impl_.resource_logs_.Get(index);
1028 return _internal_resource_logs(index);
1030 inline ::opentelemetry::proto::logs::v1::ResourceLogs* LogsData::_internal_add_resource_logs() {
1031 return _impl_.resource_logs_.Add();
1038 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::logs::v1::ResourceLogs >&
1041 return _impl_.resource_logs_;
1049 inline bool ResourceLogs::_internal_has_resource()
const {
1053 return _internal_has_resource();
1055 inline const ::opentelemetry::proto::resource::v1::Resource& ResourceLogs::_internal_resource()
const {
1056 const ::opentelemetry::proto::resource::v1::Resource* p =
_impl_.resource_;
1062 return _internal_resource();
1066 if (GetArenaForAllocation() ==
nullptr) {
1067 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.resource_);
1069 _impl_.resource_ = resource;
1080 _impl_.resource_ =
nullptr;
1081 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1082 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1083 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1084 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1085 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
1086 if (GetArenaForAllocation() !=
nullptr) {
1087 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1089 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1096 _impl_.resource_ =
nullptr;
1099 inline ::opentelemetry::proto::resource::v1::Resource* ResourceLogs::_internal_mutable_resource() {
1101 if (
_impl_.resource_ ==
nullptr) {
1102 auto* p = CreateMaybeMessage<::opentelemetry::proto::resource::v1::Resource>(GetArenaForAllocation());
1113 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1114 if (message_arena ==
nullptr) {
1115 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.resource_);
1118 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1119 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1120 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(resource));
1121 if (message_arena != submessage_arena) {
1122 resource = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1123 message_arena, resource, submessage_arena);
1129 _impl_.resource_ = resource;
1134 inline int ResourceLogs::_internal_scope_logs_size()
const {
1135 return _impl_.scope_logs_.size();
1138 return _internal_scope_logs_size();
1141 _impl_.scope_logs_.Clear();
1145 return _impl_.scope_logs_.Mutable(index);
1147 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::logs::v1::ScopeLogs >*
1150 return &
_impl_.scope_logs_;
1152 inline const ::opentelemetry::proto::logs::v1::ScopeLogs& ResourceLogs::_internal_scope_logs(
int index)
const {
1153 return _impl_.scope_logs_.Get(index);
1157 return _internal_scope_logs(index);
1159 inline ::opentelemetry::proto::logs::v1::ScopeLogs* ResourceLogs::_internal_add_scope_logs() {
1160 return _impl_.scope_logs_.Add();
1167 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::logs::v1::ScopeLogs >&
1170 return _impl_.scope_logs_;
1175 _impl_.schema_url_.ClearToEmpty();
1179 return _internal_schema_url();
1181 template <
typename ArgT0,
typename... ArgT>
1182 inline PROTOBUF_ALWAYS_INLINE
1185 _impl_.schema_url_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1189 std::string* _s = _internal_mutable_schema_url();
1193 inline const std::string& ResourceLogs::_internal_schema_url()
const {
1194 return _impl_.schema_url_.Get();
1196 inline void ResourceLogs::_internal_set_schema_url(
const std::string& value) {
1198 _impl_.schema_url_.Set(value, GetArenaForAllocation());
1200 inline std::string* ResourceLogs::_internal_mutable_schema_url() {
1202 return _impl_.schema_url_.Mutable(GetArenaForAllocation());
1206 return _impl_.schema_url_.Release();
1209 if (schema_url !=
nullptr) {
1214 _impl_.schema_url_.SetAllocated(schema_url, GetArenaForAllocation());
1215 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1216 if (
_impl_.schema_url_.IsDefault()) {
1217 _impl_.schema_url_.Set(
"", GetArenaForAllocation());
1219 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1228 inline bool ScopeLogs::_internal_has_scope()
const {
1232 return _internal_has_scope();
1234 inline const ::opentelemetry::proto::common::v1::InstrumentationScope& ScopeLogs::_internal_scope()
const {
1235 const ::opentelemetry::proto::common::v1::InstrumentationScope* p =
_impl_.scope_;
1239 inline const ::opentelemetry::proto::common::v1::InstrumentationScope&
ScopeLogs::scope()
const {
1241 return _internal_scope();
1245 if (GetArenaForAllocation() ==
nullptr) {
1246 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.scope_);
1260 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1261 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1262 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1263 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1264 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
1265 if (GetArenaForAllocation() !=
nullptr) {
1266 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1268 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1278 inline ::opentelemetry::proto::common::v1::InstrumentationScope* ScopeLogs::_internal_mutable_scope() {
1280 if (
_impl_.scope_ ==
nullptr) {
1281 auto* p = CreateMaybeMessage<::opentelemetry::proto::common::v1::InstrumentationScope>(GetArenaForAllocation());
1292 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1293 if (message_arena ==
nullptr) {
1294 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.scope_);
1297 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1298 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1299 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(scope));
1300 if (message_arena != submessage_arena) {
1301 scope = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1302 message_arena, scope, submessage_arena);
1313 inline int ScopeLogs::_internal_log_records_size()
const {
1314 return _impl_.log_records_.size();
1317 return _internal_log_records_size();
1320 _impl_.log_records_.Clear();
1324 return _impl_.log_records_.Mutable(index);
1326 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::logs::v1::LogRecord >*
1329 return &
_impl_.log_records_;
1331 inline const ::opentelemetry::proto::logs::v1::LogRecord& ScopeLogs::_internal_log_records(
int index)
const {
1332 return _impl_.log_records_.Get(index);
1336 return _internal_log_records(index);
1338 inline ::opentelemetry::proto::logs::v1::LogRecord* ScopeLogs::_internal_add_log_records() {
1339 return _impl_.log_records_.Add();
1346 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::logs::v1::LogRecord >&
1349 return _impl_.log_records_;
1354 _impl_.schema_url_.ClearToEmpty();
1358 return _internal_schema_url();
1360 template <
typename ArgT0,
typename... ArgT>
1361 inline PROTOBUF_ALWAYS_INLINE
1364 _impl_.schema_url_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1368 std::string* _s = _internal_mutable_schema_url();
1372 inline const std::string& ScopeLogs::_internal_schema_url()
const {
1373 return _impl_.schema_url_.Get();
1375 inline void ScopeLogs::_internal_set_schema_url(
const std::string& value) {
1377 _impl_.schema_url_.Set(value, GetArenaForAllocation());
1379 inline std::string* ScopeLogs::_internal_mutable_schema_url() {
1381 return _impl_.schema_url_.Mutable(GetArenaForAllocation());
1385 return _impl_.schema_url_.Release();
1388 if (schema_url !=
nullptr) {
1393 _impl_.schema_url_.SetAllocated(schema_url, GetArenaForAllocation());
1394 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1395 if (
_impl_.schema_url_.IsDefault()) {
1396 _impl_.schema_url_.Set(
"", GetArenaForAllocation());
1398 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1408 _impl_.time_unix_nano_ = uint64_t{0u};
1410 inline uint64_t LogRecord::_internal_time_unix_nano()
const {
1411 return _impl_.time_unix_nano_;
1415 return _internal_time_unix_nano();
1417 inline void LogRecord::_internal_set_time_unix_nano(uint64_t value) {
1419 _impl_.time_unix_nano_ = value;
1422 _internal_set_time_unix_nano(value);
1428 _impl_.observed_time_unix_nano_ = uint64_t{0u};
1430 inline uint64_t LogRecord::_internal_observed_time_unix_nano()
const {
1431 return _impl_.observed_time_unix_nano_;
1435 return _internal_observed_time_unix_nano();
1437 inline void LogRecord::_internal_set_observed_time_unix_nano(uint64_t value) {
1439 _impl_.observed_time_unix_nano_ = value;
1442 _internal_set_observed_time_unix_nano(value);
1448 _impl_.severity_number_ = 0;
1455 return _internal_severity_number();
1459 _impl_.severity_number_ = value;
1462 _internal_set_severity_number(value);
1468 _impl_.severity_text_.ClearToEmpty();
1472 return _internal_severity_text();
1474 template <
typename ArgT0,
typename... ArgT>
1475 inline PROTOBUF_ALWAYS_INLINE
1478 _impl_.severity_text_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1482 std::string* _s = _internal_mutable_severity_text();
1486 inline const std::string& LogRecord::_internal_severity_text()
const {
1487 return _impl_.severity_text_.Get();
1489 inline void LogRecord::_internal_set_severity_text(
const std::string& value) {
1491 _impl_.severity_text_.Set(value, GetArenaForAllocation());
1493 inline std::string* LogRecord::_internal_mutable_severity_text() {
1495 return _impl_.severity_text_.Mutable(GetArenaForAllocation());
1499 return _impl_.severity_text_.Release();
1502 if (severity_text !=
nullptr) {
1507 _impl_.severity_text_.SetAllocated(severity_text, GetArenaForAllocation());
1508 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1509 if (
_impl_.severity_text_.IsDefault()) {
1510 _impl_.severity_text_.Set(
"", GetArenaForAllocation());
1512 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1517 inline bool LogRecord::_internal_has_body()
const {
1521 return _internal_has_body();
1523 inline const ::opentelemetry::proto::common::v1::AnyValue& LogRecord::_internal_body()
const {
1524 const ::opentelemetry::proto::common::v1::AnyValue* p =
_impl_.body_;
1528 inline const ::opentelemetry::proto::common::v1::AnyValue&
LogRecord::body()
const {
1530 return _internal_body();
1534 if (GetArenaForAllocation() ==
nullptr) {
1535 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.body_);
1549 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1550 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1551 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1552 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1553 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
1554 if (GetArenaForAllocation() !=
nullptr) {
1555 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1557 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1567 inline ::opentelemetry::proto::common::v1::AnyValue* LogRecord::_internal_mutable_body() {
1569 if (
_impl_.body_ ==
nullptr) {
1570 auto* p = CreateMaybeMessage<::opentelemetry::proto::common::v1::AnyValue>(GetArenaForAllocation());
1581 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1582 if (message_arena ==
nullptr) {
1583 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.body_);
1586 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1587 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1588 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(body));
1589 if (message_arena != submessage_arena) {
1590 body = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1591 message_arena, body, submessage_arena);
1602 inline int LogRecord::_internal_attributes_size()
const {
1603 return _impl_.attributes_.size();
1606 return _internal_attributes_size();
1610 return _impl_.attributes_.Mutable(index);
1612 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >*
1615 return &
_impl_.attributes_;
1617 inline const ::opentelemetry::proto::common::v1::KeyValue& LogRecord::_internal_attributes(
int index)
const {
1618 return _impl_.attributes_.Get(index);
1622 return _internal_attributes(index);
1624 inline ::opentelemetry::proto::common::v1::KeyValue* LogRecord::_internal_add_attributes() {
1625 return _impl_.attributes_.Add();
1632 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >&
1635 return _impl_.attributes_;
1640 _impl_.dropped_attributes_count_ = 0u;
1642 inline uint32_t LogRecord::_internal_dropped_attributes_count()
const {
1643 return _impl_.dropped_attributes_count_;
1647 return _internal_dropped_attributes_count();
1649 inline void LogRecord::_internal_set_dropped_attributes_count(uint32_t value) {
1651 _impl_.dropped_attributes_count_ = value;
1654 _internal_set_dropped_attributes_count(value);
1662 inline uint32_t LogRecord::_internal_flags()
const {
1667 return _internal_flags();
1669 inline void LogRecord::_internal_set_flags(uint32_t value) {
1674 _internal_set_flags(value);
1680 _impl_.trace_id_.ClearToEmpty();
1684 return _internal_trace_id();
1686 template <
typename ArgT0,
typename... ArgT>
1687 inline PROTOBUF_ALWAYS_INLINE
1690 _impl_.trace_id_.SetBytes(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1694 std::string* _s = _internal_mutable_trace_id();
1698 inline const std::string& LogRecord::_internal_trace_id()
const {
1699 return _impl_.trace_id_.Get();
1701 inline void LogRecord::_internal_set_trace_id(
const std::string& value) {
1703 _impl_.trace_id_.Set(value, GetArenaForAllocation());
1705 inline std::string* LogRecord::_internal_mutable_trace_id() {
1707 return _impl_.trace_id_.Mutable(GetArenaForAllocation());
1711 return _impl_.trace_id_.Release();
1714 if (trace_id !=
nullptr) {
1719 _impl_.trace_id_.SetAllocated(trace_id, GetArenaForAllocation());
1720 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1721 if (
_impl_.trace_id_.IsDefault()) {
1722 _impl_.trace_id_.Set(
"", GetArenaForAllocation());
1724 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1730 _impl_.span_id_.ClearToEmpty();
1734 return _internal_span_id();
1736 template <
typename ArgT0,
typename... ArgT>
1737 inline PROTOBUF_ALWAYS_INLINE
1740 _impl_.span_id_.SetBytes(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1744 std::string* _s = _internal_mutable_span_id();
1748 inline const std::string& LogRecord::_internal_span_id()
const {
1749 return _impl_.span_id_.Get();
1751 inline void LogRecord::_internal_set_span_id(
const std::string& value) {
1753 _impl_.span_id_.Set(value, GetArenaForAllocation());
1755 inline std::string* LogRecord::_internal_mutable_span_id() {
1757 return _impl_.span_id_.Mutable(GetArenaForAllocation());
1761 return _impl_.span_id_.Release();
1764 if (span_id !=
nullptr) {
1769 _impl_.span_id_.SetAllocated(span_id, GetArenaForAllocation());
1770 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1771 if (
_impl_.span_id_.IsDefault()) {
1772 _impl_.span_id_.Set(
"", GetArenaForAllocation());
1774 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1780 _impl_.event_name_.ClearToEmpty();
1784 return _internal_event_name();
1786 template <
typename ArgT0,
typename... ArgT>
1787 inline PROTOBUF_ALWAYS_INLINE
1790 _impl_.event_name_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1794 std::string* _s = _internal_mutable_event_name();
1798 inline const std::string& LogRecord::_internal_event_name()
const {
1799 return _impl_.event_name_.Get();
1801 inline void LogRecord::_internal_set_event_name(
const std::string& value) {
1803 _impl_.event_name_.Set(value, GetArenaForAllocation());
1805 inline std::string* LogRecord::_internal_mutable_event_name() {
1807 return _impl_.event_name_.Mutable(GetArenaForAllocation());
1811 return _impl_.event_name_.Release();
1814 if (event_name !=
nullptr) {
1819 _impl_.event_name_.SetAllocated(event_name, GetArenaForAllocation());
1820 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1821 if (
_impl_.event_name_.IsDefault()) {
1822 _impl_.event_name_.Set(
"", GetArenaForAllocation());
1824 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1829 #pragma GCC diagnostic pop
1845 PROTOBUF_NAMESPACE_OPEN
1849 inline const EnumDescriptor* GetEnumDescriptor< ::opentelemetry::proto::logs::v1::SeverityNumber>() {
1854 inline const EnumDescriptor* GetEnumDescriptor< ::opentelemetry::proto::logs::v1::LogRecordFlags>() {
1858 PROTOBUF_NAMESPACE_CLOSE
1862 #include <google/protobuf/port_undef.inc>
1863 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_opentelemetry_2fproto_2flogs_2fv1_2flogs_2eproto