4 #ifndef GOOGLE_PROTOBUF_INCLUDED_opentelemetry_2fproto_2fcollector_2fprofiles_2fv1development_2fprofiles_5fservice_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_opentelemetry_2fproto_2fcollector_2fprofiles_2fv1development_2fprofiles_5fservice_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/unknown_field_set.h>
33 #include "opentelemetry/proto/profiles/v1development/profiles.pb.h"
35 #include <google/protobuf/port_def.inc>
36 #define PROTOBUF_INTERNAL_EXPORT_opentelemetry_2fproto_2fcollector_2fprofiles_2fv1development_2fprofiles_5fservice_2eproto
37 PROTOBUF_NAMESPACE_OPEN
41 PROTOBUF_NAMESPACE_CLOSE
52 namespace v1development {
53 class ExportProfilesPartialSuccess;
54 struct ExportProfilesPartialSuccessDefaultTypeInternal;
56 class ExportProfilesServiceRequest;
57 struct ExportProfilesServiceRequestDefaultTypeInternal;
59 class ExportProfilesServiceResponse;
60 struct ExportProfilesServiceResponseDefaultTypeInternal;
67 PROTOBUF_NAMESPACE_OPEN
71 PROTOBUF_NAMESPACE_CLOSE
76 namespace v1development {
81 public ::PROTOBUF_NAMESPACE_ID::Message {
98 if (
this == &from)
return *
this;
99 if (GetOwningArena() == from.GetOwningArena()
100 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
101 && GetOwningArena() !=
nullptr
111 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
134 if (other ==
this)
return;
135 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
136 if (GetOwningArena() !=
nullptr &&
137 GetOwningArena() == other->GetOwningArena()) {
138 #else // PROTOBUF_FORCE_COPY_IN_SWAP
139 if (GetOwningArena() == other->GetOwningArena()) {
140 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
143 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
147 if (other ==
this)
return;
148 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
155 return CreateMaybeMessage<ExportProfilesServiceRequest>(arena);
157 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
159 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
161 ExportProfilesServiceRequest::MergeImpl(*
this, from);
164 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
166 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
172 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
176 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
178 void SetCachedSize(
int size)
const final;
182 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
183 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
184 return "opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceRequest";
188 bool is_message_owned =
false);
192 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
194 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
207 int _internal_resource_profiles_size()
const;
211 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::profiles::v1development::ResourceProfiles >*
214 const ::opentelemetry::proto::profiles::v1development::ResourceProfiles& _internal_resource_profiles(
int index)
const;
217 const ::opentelemetry::proto::profiles::v1development::ResourceProfiles&
resource_profiles(
int index)
const;
219 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::profiles::v1development::ResourceProfiles >&
225 bool _internal_has_dictionary()
const;
228 const ::opentelemetry::proto::profiles::v1development::ProfilesDictionary&
dictionary()
const;
229 PROTOBUF_NODISCARD ::opentelemetry::proto::profiles::v1development::ProfilesDictionary*
release_dictionary();
233 const ::opentelemetry::proto::profiles::v1development::ProfilesDictionary& _internal_dictionary()
const;
244 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
245 typedef void InternalArenaConstructable_;
246 typedef void DestructorSkippable_;
248 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::profiles::v1development::ResourceProfiles > resource_profiles_;
250 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
253 friend struct ::TableStruct_opentelemetry_2fproto_2fcollector_2fprofiles_2fv1development_2fprofiles_5fservice_2eproto;
258 public ::PROTOBUF_NAMESPACE_ID::Message {
275 if (
this == &from)
return *
this;
276 if (GetOwningArena() == from.GetOwningArena()
277 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
278 && GetOwningArena() !=
nullptr
288 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
311 if (other ==
this)
return;
312 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
313 if (GetOwningArena() !=
nullptr &&
314 GetOwningArena() == other->GetOwningArena()) {
315 #else // PROTOBUF_FORCE_COPY_IN_SWAP
316 if (GetOwningArena() == other->GetOwningArena()) {
317 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
320 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
324 if (other ==
this)
return;
325 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
332 return CreateMaybeMessage<ExportProfilesServiceResponse>(arena);
334 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
336 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
338 ExportProfilesServiceResponse::MergeImpl(*
this, from);
341 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
343 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
349 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
353 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
355 void SetCachedSize(
int size)
const final;
359 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
360 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
361 return "opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceResponse";
365 bool is_message_owned =
false);
369 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
371 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
378 kPartialSuccessFieldNumber = 1,
381 bool has_partial_success()
const;
383 bool _internal_has_partial_success()
const;
385 void clear_partial_success();
386 const ::opentelemetry::proto::collector::profiles::v1development::ExportProfilesPartialSuccess& partial_success()
const;
387 PROTOBUF_NODISCARD ::opentelemetry::proto::collector::profiles::v1development::ExportProfilesPartialSuccess* release_partial_success();
391 const ::opentelemetry::proto::collector::profiles::v1development::ExportProfilesPartialSuccess& _internal_partial_success()
const;
394 void unsafe_arena_set_allocated_partial_success(
402 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
403 typedef void InternalArenaConstructable_;
404 typedef void DestructorSkippable_;
407 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
410 friend struct ::TableStruct_opentelemetry_2fproto_2fcollector_2fprofiles_2fv1development_2fprofiles_5fservice_2eproto;
415 public ::PROTOBUF_NAMESPACE_ID::Message {
432 if (
this == &from)
return *
this;
433 if (GetOwningArena() == from.GetOwningArena()
434 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
435 && GetOwningArena() !=
nullptr
445 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
468 if (other ==
this)
return;
469 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
470 if (GetOwningArena() !=
nullptr &&
471 GetOwningArena() == other->GetOwningArena()) {
472 #else // PROTOBUF_FORCE_COPY_IN_SWAP
473 if (GetOwningArena() == other->GetOwningArena()) {
474 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
477 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
481 if (other ==
this)
return;
482 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
489 return CreateMaybeMessage<ExportProfilesPartialSuccess>(arena);
491 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
493 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
495 ExportProfilesPartialSuccess::MergeImpl(*
this, from);
498 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
500 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
506 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
510 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
512 void SetCachedSize(
int size)
const final;
516 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
517 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
518 return "opentelemetry.proto.collector.profiles.v1development.ExportProfilesPartialSuccess";
522 bool is_message_owned =
false);
526 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
528 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
535 kErrorMessageFieldNumber = 2,
536 kRejectedProfilesFieldNumber = 1,
539 void clear_error_message();
540 const std::string& error_message()
const;
541 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
542 void set_error_message(ArgT0&& arg0, ArgT... args);
543 std::string* mutable_error_message();
544 PROTOBUF_NODISCARD std::string* release_error_message();
545 void set_allocated_error_message(std::string* error_message);
547 const std::string& _internal_error_message()
const;
548 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_error_message(
const std::string& value);
549 std::string* _internal_mutable_error_message();
553 void clear_rejected_profiles();
554 int64_t rejected_profiles()
const;
555 void set_rejected_profiles(int64_t value);
557 int64_t _internal_rejected_profiles()
const;
558 void _internal_set_rejected_profiles(int64_t value);
565 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
566 typedef void InternalArenaConstructable_;
567 typedef void DestructorSkippable_;
569 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_message_;
570 int64_t rejected_profiles_;
571 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
574 friend struct ::TableStruct_opentelemetry_2fproto_2fcollector_2fprofiles_2fv1development_2fprofiles_5fservice_2eproto;
582 #pragma GCC diagnostic push
583 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
588 inline int ExportProfilesServiceRequest::_internal_resource_profiles_size()
const {
589 return _impl_.resource_profiles_.size();
592 return _internal_resource_profiles_size();
596 return _impl_.resource_profiles_.Mutable(index);
598 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::profiles::v1development::ResourceProfiles >*
601 return &
_impl_.resource_profiles_;
603 inline const ::opentelemetry::proto::profiles::v1development::ResourceProfiles& ExportProfilesServiceRequest::_internal_resource_profiles(
int index)
const {
604 return _impl_.resource_profiles_.Get(index);
608 return _internal_resource_profiles(index);
610 inline ::opentelemetry::proto::profiles::v1development::ResourceProfiles* ExportProfilesServiceRequest::_internal_add_resource_profiles() {
611 return _impl_.resource_profiles_.Add();
618 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::profiles::v1development::ResourceProfiles >&
621 return _impl_.resource_profiles_;
625 inline bool ExportProfilesServiceRequest::_internal_has_dictionary()
const {
629 return _internal_has_dictionary();
631 inline const ::opentelemetry::proto::profiles::v1development::ProfilesDictionary& ExportProfilesServiceRequest::_internal_dictionary()
const {
632 const ::opentelemetry::proto::profiles::v1development::ProfilesDictionary* p =
_impl_.dictionary_;
638 return _internal_dictionary();
642 if (GetArenaForAllocation() ==
nullptr) {
643 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.dictionary_);
656 _impl_.dictionary_ =
nullptr;
657 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
658 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
659 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
660 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
661 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
662 if (GetArenaForAllocation() !=
nullptr) {
663 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
665 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
672 _impl_.dictionary_ =
nullptr;
675 inline ::opentelemetry::proto::profiles::v1development::ProfilesDictionary* ExportProfilesServiceRequest::_internal_mutable_dictionary() {
677 if (
_impl_.dictionary_ ==
nullptr) {
678 auto* p = CreateMaybeMessage<::opentelemetry::proto::profiles::v1development::ProfilesDictionary>(GetArenaForAllocation());
681 return _impl_.dictionary_;
689 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
690 if (message_arena ==
nullptr) {
691 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.dictionary_);
694 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
695 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
696 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
dictionary));
697 if (message_arena != submessage_arena) {
698 dictionary = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
714 inline bool ExportProfilesServiceResponse::_internal_has_partial_success()
const {
718 return _internal_has_partial_success();
721 if (GetArenaForAllocation() ==
nullptr &&
_impl_.partial_success_ !=
nullptr) {
722 delete _impl_.partial_success_;
724 _impl_.partial_success_ =
nullptr;
726 inline const ::opentelemetry::proto::collector::profiles::v1development::ExportProfilesPartialSuccess& ExportProfilesServiceResponse::_internal_partial_success()
const {
727 const ::opentelemetry::proto::collector::profiles::v1development::ExportProfilesPartialSuccess* p =
_impl_.partial_success_;
733 return _internal_partial_success();
737 if (GetArenaForAllocation() ==
nullptr) {
738 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.partial_success_);
740 _impl_.partial_success_ = partial_success;
741 if (partial_success) {
751 _impl_.partial_success_ =
nullptr;
752 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
753 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
754 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
755 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
756 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
757 if (GetArenaForAllocation() !=
nullptr) {
758 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
760 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
767 _impl_.partial_success_ =
nullptr;
770 inline ::opentelemetry::proto::collector::profiles::v1development::ExportProfilesPartialSuccess* ExportProfilesServiceResponse::_internal_mutable_partial_success() {
772 if (
_impl_.partial_success_ ==
nullptr) {
773 auto* p = CreateMaybeMessage<::opentelemetry::proto::collector::profiles::v1development::ExportProfilesPartialSuccess>(GetArenaForAllocation());
774 _impl_.partial_success_ = p;
776 return _impl_.partial_success_;
784 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
785 if (message_arena ==
nullptr) {
786 delete _impl_.partial_success_;
788 if (partial_success) {
789 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
790 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(partial_success);
791 if (message_arena != submessage_arena) {
792 partial_success = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
793 message_arena, partial_success, submessage_arena);
799 _impl_.partial_success_ = partial_success;
809 _impl_.rejected_profiles_ = int64_t{0};
811 inline int64_t ExportProfilesPartialSuccess::_internal_rejected_profiles()
const {
812 return _impl_.rejected_profiles_;
816 return _internal_rejected_profiles();
818 inline void ExportProfilesPartialSuccess::_internal_set_rejected_profiles(int64_t value) {
820 _impl_.rejected_profiles_ = value;
823 _internal_set_rejected_profiles(value);
829 _impl_.error_message_.ClearToEmpty();
833 return _internal_error_message();
835 template <
typename ArgT0,
typename... ArgT>
836 inline PROTOBUF_ALWAYS_INLINE
839 _impl_.error_message_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
843 std::string* _s = _internal_mutable_error_message();
847 inline const std::string& ExportProfilesPartialSuccess::_internal_error_message()
const {
848 return _impl_.error_message_.Get();
850 inline void ExportProfilesPartialSuccess::_internal_set_error_message(
const std::string& value) {
852 _impl_.error_message_.Set(value, GetArenaForAllocation());
854 inline std::string* ExportProfilesPartialSuccess::_internal_mutable_error_message() {
856 return _impl_.error_message_.Mutable(GetArenaForAllocation());
860 return _impl_.error_message_.Release();
863 if (error_message !=
nullptr) {
868 _impl_.error_message_.SetAllocated(error_message, GetArenaForAllocation());
869 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
870 if (
_impl_.error_message_.IsDefault()) {
871 _impl_.error_message_.Set(
"", GetArenaForAllocation());
873 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
878 #pragma GCC diagnostic pop
895 #include <google/protobuf/port_undef.inc>
896 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_opentelemetry_2fproto_2fcollector_2fprofiles_2fv1development_2fprofiles_5fservice_2eproto