// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: third_party/metrics_proto/call_stack_profile.proto
// Protobuf C++ Version: 7.35.1

#include "third_party/metrics_proto/call_stack_profile.pb.h"

#include <algorithm>
#include <type_traits>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/generated_message_tctable_impl.h"
#include "google/protobuf/internal_visibility.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/wire_format_lite.h"
#include "google/protobuf/io/zero_copy_stream_impl_lite.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
namespace metrics {
class CallStackProfile_ModuleIdentifier::_Internal {
 public:
  using HasBits = decltype(::std::declval<CallStackProfile_ModuleIdentifier>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(CallStackProfile_ModuleIdentifier, _impl_._has_bits_);
};

constexpr CallStackProfile_ModuleIdentifier::ParseTableT_ CallStackProfile_ModuleIdentifier::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(CallStackProfile_ModuleIdentifier, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::metrics::CallStackProfile_ModuleIdentifier>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // fixed64 name_md5_prefix = 2;
      {::_pbi::TcParser::FastF64S1,
       {17, 1, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_ModuleIdentifier, _impl_.name_md5_prefix_)}},
      // string build_id = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_ModuleIdentifier, _impl_.build_id_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string build_id = 1;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_ModuleIdentifier, _impl_.build_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // fixed64 name_md5_prefix = 2;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_ModuleIdentifier, _impl_.name_md5_prefix_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr CallStackProfile_ModuleIdentifier::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        build_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        name_md5_prefix_{::uint64_t{0u}} {}

template <typename>
constexpr CallStackProfile_ModuleIdentifier::CallStackProfile_ModuleIdentifier(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL CallStackProfile_ModuleIdentifier::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) CallStackProfile_ModuleIdentifier(arena);
}
constexpr auto CallStackProfile_ModuleIdentifier::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CallStackProfile_ModuleIdentifier), alignof(CallStackProfile_ModuleIdentifier));
}
constexpr auto CallStackProfile_ModuleIdentifier::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &CallStackProfile_ModuleIdentifier::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<CallStackProfile_ModuleIdentifier>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &CallStackProfile_ModuleIdentifier::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<CallStackProfile_ModuleIdentifier>(), &CallStackProfile_ModuleIdentifier::ByteSizeLong,
              &CallStackProfile_ModuleIdentifier::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(CallStackProfile_ModuleIdentifier, _impl_._cached_size_),
          true,
      },
      "metrics.CallStackProfile.ModuleIdentifier",
  };
}
struct CallStackProfile_ModuleIdentifierGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr CallStackProfile_ModuleIdentifierGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 CallStackProfile_ModuleIdentifier_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(CallStackProfile_ModuleIdentifier::InternalGenerateClassData_(
            _default, &CallStackProfile_ModuleIdentifier_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile_ModuleIdentifier>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~CallStackProfile_ModuleIdentifierGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) CallStackProfile_ModuleIdentifier _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile_ModuleIdentifier>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(CallStackProfile_ModuleIdentifierGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CallStackProfile_ModuleIdentifierGlobalsTypeInternal CallStackProfile_ModuleIdentifier_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* CallStackProfile_ModuleIdentifier_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return CallStackProfile_ModuleIdentifier_globals_.GetClassData();
#else
  return CallStackProfile_ModuleIdentifier_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class CallStackProfile_MetadataItem::_Internal {
 public:
  using HasBits = decltype(::std::declval<CallStackProfile_MetadataItem>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(CallStackProfile_MetadataItem, _impl_._has_bits_);
};

constexpr CallStackProfile_MetadataItem::ParseTableT_ CallStackProfile_MetadataItem::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(CallStackProfile_MetadataItem, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::metrics::CallStackProfile_MetadataItem>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // int32 name_hash_index = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 2, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_MetadataItem, _impl_.name_hash_index_)}},
      // sint64 value = 2;
      {::_pbi::TcParser::FastZ64S1,
       {16, 0, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_MetadataItem, _impl_.value_)}},
      // sint64 key = 3;
      {::_pbi::TcParser::FastZ64S1,
       {24, 1, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_MetadataItem, _impl_.key_)}},
    }}, {{
      65535, 65535
    }}, {{
      // int32 name_hash_index = 1;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_MetadataItem, _impl_.name_hash_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // sint64 value = 2;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_MetadataItem, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kSInt64)},
      // sint64 key = 3;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_MetadataItem, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kSInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr CallStackProfile_MetadataItem::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        value_{::int64_t{0}},
        key_{::int64_t{0}},
        name_hash_index_{0} {}

template <typename>
constexpr CallStackProfile_MetadataItem::CallStackProfile_MetadataItem(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL CallStackProfile_MetadataItem::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) CallStackProfile_MetadataItem(arena);
}
constexpr auto CallStackProfile_MetadataItem::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CallStackProfile_MetadataItem), alignof(CallStackProfile_MetadataItem));
}
constexpr auto CallStackProfile_MetadataItem::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &CallStackProfile_MetadataItem::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<CallStackProfile_MetadataItem>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &CallStackProfile_MetadataItem::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<CallStackProfile_MetadataItem>(), &CallStackProfile_MetadataItem::ByteSizeLong,
              &CallStackProfile_MetadataItem::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(CallStackProfile_MetadataItem, _impl_._cached_size_),
          true,
      },
      "metrics.CallStackProfile.MetadataItem",
  };
}
struct CallStackProfile_MetadataItemGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr CallStackProfile_MetadataItemGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 CallStackProfile_MetadataItem_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(CallStackProfile_MetadataItem::InternalGenerateClassData_(
            _default, &CallStackProfile_MetadataItem_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile_MetadataItem>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~CallStackProfile_MetadataItemGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) CallStackProfile_MetadataItem _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile_MetadataItem>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(CallStackProfile_MetadataItemGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CallStackProfile_MetadataItemGlobalsTypeInternal CallStackProfile_MetadataItem_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* CallStackProfile_MetadataItem_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return CallStackProfile_MetadataItem_globals_.GetClassData();
#else
  return CallStackProfile_MetadataItem_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class CallStackProfile_Location::_Internal {
 public:
  using HasBits = decltype(::std::declval<CallStackProfile_Location>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(CallStackProfile_Location, _impl_._has_bits_);
};

constexpr CallStackProfile_Location::ParseTableT_ CallStackProfile_Location::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(CallStackProfile_Location, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::metrics::CallStackProfile_Location>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // uint64 address = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_Location, _impl_.address_)}},
      // int32 module_id_index = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 2, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_Location, _impl_.module_id_index_)}},
      // string function_name = 3;
      {::_pbi::TcParser::FastBS1,
       {26, 0, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_Location, _impl_.function_name_)}},
    }}, {{
      65535, 65535
    }}, {{
      // uint64 address = 1;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_Location, _impl_.address_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // int32 module_id_index = 2;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_Location, _impl_.module_id_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // string function_name = 3;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_Location, _impl_.function_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr CallStackProfile_Location::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        function_name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        address_{::uint64_t{0u}},
        module_id_index_{0} {}

template <typename>
constexpr CallStackProfile_Location::CallStackProfile_Location(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL CallStackProfile_Location::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) CallStackProfile_Location(arena);
}
constexpr auto CallStackProfile_Location::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CallStackProfile_Location), alignof(CallStackProfile_Location));
}
constexpr auto CallStackProfile_Location::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &CallStackProfile_Location::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<CallStackProfile_Location>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &CallStackProfile_Location::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<CallStackProfile_Location>(), &CallStackProfile_Location::ByteSizeLong,
              &CallStackProfile_Location::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(CallStackProfile_Location, _impl_._cached_size_),
          true,
      },
      "metrics.CallStackProfile.Location",
  };
}
struct CallStackProfile_LocationGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr CallStackProfile_LocationGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 CallStackProfile_Location_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(CallStackProfile_Location::InternalGenerateClassData_(
            _default, &CallStackProfile_Location_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile_Location>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~CallStackProfile_LocationGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) CallStackProfile_Location _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile_Location>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(CallStackProfile_LocationGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CallStackProfile_LocationGlobalsTypeInternal CallStackProfile_Location_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* CallStackProfile_Location_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return CallStackProfile_Location_globals_.GetClassData();
#else
  return CallStackProfile_Location_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class CallStackProfile_StackSample::_Internal {
 public:
  using HasBits = decltype(::std::declval<CallStackProfile_StackSample>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_._has_bits_);
};

constexpr CallStackProfile_StackSample::ParseTableT_ CallStackProfile_StackSample::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_._has_bits_),
      0, // no _extensions_
      7, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967168,  // skipmap
      offsetof(ParseTableT_, field_entries),
      7,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::metrics::CallStackProfile_StackSample>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // int32 stack_index = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.stack_index_)}},
      // int32 sample_time_offset_ms = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 2, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.sample_time_offset_ms_)}},
      // bool continued_work = 3;
      {::_pbi::TcParser::FastV8S1,
       {24, 3, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.continued_work_)}},
      // int32 async_backtrace_index = 4;
      {::_pbi::TcParser::FastV32S1,
       {32, 4, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.async_backtrace_index_)}},
      // repeated .metrics.CallStackProfile.MetadataItem metadata = 5;
      {::_pbi::TcParser::FastMtR1,
       {42, 0, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.metadata_)}},
      // int64 weight = 6;
      {::_pbi::TcParser::FastV64S1,
       {48, 5, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.weight_)}},
      // int64 count = 7 [default = 1];
      {::_pbi::TcParser::FastV64S1,
       {56, 6, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.count_)}},
    }}, {{
      65535, 65535
    }}, {{
      // int32 stack_index = 1;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.stack_index_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 sample_time_offset_ms = 2;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.sample_time_offset_ms_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // bool continued_work = 3;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.continued_work_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // int32 async_backtrace_index = 4;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.async_backtrace_index_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // repeated .metrics.CallStackProfile.MetadataItem metadata = 5;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // int64 weight = 6;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.weight_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // int64 count = 7 [default = 1];
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.count_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::CallStackProfile_MetadataItem>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::CallStackProfile_MetadataItem_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr CallStackProfile_StackSample::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        metadata_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile_StackSample,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile_StackSample, _impl_.metadata_)>()
         }
        ,
        stack_index_{0},
        sample_time_offset_ms_{0},
        continued_work_{false},
        async_backtrace_index_{0},
        weight_{::int64_t{0}},
        count_{::int64_t{1}} {}

template <typename>
constexpr CallStackProfile_StackSample::CallStackProfile_StackSample(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL CallStackProfile_StackSample::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) CallStackProfile_StackSample(arena);
}
constexpr auto CallStackProfile_StackSample::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CallStackProfile_StackSample), alignof(CallStackProfile_StackSample));
}
constexpr auto CallStackProfile_StackSample::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &CallStackProfile_StackSample::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<CallStackProfile_StackSample>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &CallStackProfile_StackSample::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<CallStackProfile_StackSample>(), &CallStackProfile_StackSample::ByteSizeLong,
              &CallStackProfile_StackSample::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_._cached_size_),
          true,
      },
      "metrics.CallStackProfile.StackSample",
  };
}
struct CallStackProfile_StackSampleGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr CallStackProfile_StackSampleGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 CallStackProfile_StackSample_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(CallStackProfile_StackSample::InternalGenerateClassData_(
            _default, &CallStackProfile_StackSample_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile_StackSample>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~CallStackProfile_StackSampleGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) CallStackProfile_StackSample _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile_StackSample>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSampleGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CallStackProfile_StackSampleGlobalsTypeInternal CallStackProfile_StackSample_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* CallStackProfile_StackSample_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return CallStackProfile_StackSample_globals_.GetClassData();
#else
  return CallStackProfile_StackSample_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class CallStackProfile_Stack::_Internal {
 public:
  using HasBits = decltype(::std::declval<CallStackProfile_Stack>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(CallStackProfile_Stack, _impl_._has_bits_);
};

constexpr CallStackProfile_Stack::ParseTableT_ CallStackProfile_Stack::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(CallStackProfile_Stack, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::metrics::CallStackProfile_Stack>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .metrics.CallStackProfile.Location frame = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_Stack, _impl_.frame_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .metrics.CallStackProfile.Location frame = 1;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_Stack, _impl_.frame_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::CallStackProfile_Location>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::CallStackProfile_Location_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr CallStackProfile_Stack::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        frame_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile_Stack,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile_Stack, _impl_.frame_)>()
         }
     {}

template <typename>
constexpr CallStackProfile_Stack::CallStackProfile_Stack(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL CallStackProfile_Stack::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) CallStackProfile_Stack(arena);
}
constexpr auto CallStackProfile_Stack::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CallStackProfile_Stack), alignof(CallStackProfile_Stack));
}
constexpr auto CallStackProfile_Stack::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &CallStackProfile_Stack::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<CallStackProfile_Stack>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &CallStackProfile_Stack::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<CallStackProfile_Stack>(), &CallStackProfile_Stack::ByteSizeLong,
              &CallStackProfile_Stack::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(CallStackProfile_Stack, _impl_._cached_size_),
          true,
      },
      "metrics.CallStackProfile.Stack",
  };
}
struct CallStackProfile_StackGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr CallStackProfile_StackGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 CallStackProfile_Stack_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(CallStackProfile_Stack::InternalGenerateClassData_(
            _default, &CallStackProfile_Stack_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile_Stack>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~CallStackProfile_StackGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) CallStackProfile_Stack _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile_Stack>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(CallStackProfile_StackGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CallStackProfile_StackGlobalsTypeInternal CallStackProfile_Stack_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* CallStackProfile_Stack_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return CallStackProfile_Stack_globals_.GetClassData();
#else
  return CallStackProfile_Stack_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class CallStackProfile_Sample::_Internal {
 public:
  using HasBits = decltype(::std::declval<CallStackProfile_Sample>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(CallStackProfile_Sample, _impl_._has_bits_);
};

constexpr CallStackProfile_Sample::ParseTableT_ CallStackProfile_Sample::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(CallStackProfile_Sample, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      2,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::metrics::CallStackProfile_Sample>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // repeated .metrics.CallStackProfile.Location frame = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_Sample, _impl_.frame_)}},
      // int64 count = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 2, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_Sample, _impl_.count_)}},
      // repeated .metrics.ProcessPhase process_phase = 3;
      {::_pbi::TcParser::FastEr0P1,
       {26, 1, 4,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_Sample, _impl_.process_phase_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .metrics.CallStackProfile.Location frame = 1;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_Sample, _impl_.frame_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // int64 count = 2;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_Sample, _impl_.count_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // repeated .metrics.ProcessPhase process_phase = 3;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_Sample, _impl_.process_phase_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnumRange)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::CallStackProfile_Location>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::CallStackProfile_Location_globals_},
        #endif
        {0, 4},
    }},
    {{
    }},
  };
}


inline constexpr CallStackProfile_Sample::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        frame_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile_Sample,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile_Sample, _impl_.frame_)>()
         }
        ,
        process_phase_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile_Sample,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile_Sample, _impl_.process_phase_)>()
         }
        ,
        _process_phase_cached_byte_size_{0},
        count_{::int64_t{0}} {}

template <typename>
constexpr CallStackProfile_Sample::CallStackProfile_Sample(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL CallStackProfile_Sample::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) CallStackProfile_Sample(arena);
}
constexpr auto CallStackProfile_Sample::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CallStackProfile_Sample), alignof(CallStackProfile_Sample));
}
constexpr auto CallStackProfile_Sample::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &CallStackProfile_Sample::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<CallStackProfile_Sample>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &CallStackProfile_Sample::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<CallStackProfile_Sample>(), &CallStackProfile_Sample::ByteSizeLong,
              &CallStackProfile_Sample::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(CallStackProfile_Sample, _impl_._cached_size_),
          true,
      },
      "metrics.CallStackProfile.Sample",
  };
}
struct CallStackProfile_SampleGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr CallStackProfile_SampleGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 CallStackProfile_Sample_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(CallStackProfile_Sample::InternalGenerateClassData_(
            _default, &CallStackProfile_Sample_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile_Sample>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~CallStackProfile_SampleGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) CallStackProfile_Sample _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile_Sample>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(CallStackProfile_SampleGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CallStackProfile_SampleGlobalsTypeInternal CallStackProfile_Sample_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* CallStackProfile_Sample_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return CallStackProfile_Sample_globals_.GetClassData();
#else
  return CallStackProfile_Sample_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class CallStackProfile_AsyncBacktrace::_Internal {
 public:
  using HasBits = decltype(::std::declval<CallStackProfile_AsyncBacktrace>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(CallStackProfile_AsyncBacktrace, _impl_._has_bits_);
};

constexpr CallStackProfile_AsyncBacktrace::ParseTableT_ CallStackProfile_AsyncBacktrace::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(CallStackProfile_AsyncBacktrace, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::metrics::CallStackProfile_AsyncBacktrace>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .metrics.CallStackProfile.Location location = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile_AsyncBacktrace, _impl_.location_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .metrics.CallStackProfile.Location location = 1;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile_AsyncBacktrace, _impl_.location_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::CallStackProfile_Location>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::CallStackProfile_Location_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr CallStackProfile_AsyncBacktrace::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        location_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile_AsyncBacktrace,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile_AsyncBacktrace, _impl_.location_)>()
         }
     {}

template <typename>
constexpr CallStackProfile_AsyncBacktrace::CallStackProfile_AsyncBacktrace(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL CallStackProfile_AsyncBacktrace::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) CallStackProfile_AsyncBacktrace(arena);
}
constexpr auto CallStackProfile_AsyncBacktrace::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CallStackProfile_AsyncBacktrace), alignof(CallStackProfile_AsyncBacktrace));
}
constexpr auto CallStackProfile_AsyncBacktrace::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &CallStackProfile_AsyncBacktrace::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<CallStackProfile_AsyncBacktrace>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &CallStackProfile_AsyncBacktrace::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<CallStackProfile_AsyncBacktrace>(), &CallStackProfile_AsyncBacktrace::ByteSizeLong,
              &CallStackProfile_AsyncBacktrace::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(CallStackProfile_AsyncBacktrace, _impl_._cached_size_),
          true,
      },
      "metrics.CallStackProfile.AsyncBacktrace",
  };
}
struct CallStackProfile_AsyncBacktraceGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr CallStackProfile_AsyncBacktraceGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 CallStackProfile_AsyncBacktrace_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(CallStackProfile_AsyncBacktrace::InternalGenerateClassData_(
            _default, &CallStackProfile_AsyncBacktrace_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile_AsyncBacktrace>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~CallStackProfile_AsyncBacktraceGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) CallStackProfile_AsyncBacktrace _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile_AsyncBacktrace>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(CallStackProfile_AsyncBacktraceGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CallStackProfile_AsyncBacktraceGlobalsTypeInternal CallStackProfile_AsyncBacktrace_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* CallStackProfile_AsyncBacktrace_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return CallStackProfile_AsyncBacktrace_globals_.GetClassData();
#else
  return CallStackProfile_AsyncBacktrace_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class CallStackProfile::_Internal {
 public:
  using HasBits = decltype(::std::declval<CallStackProfile>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_._has_bits_);
};

constexpr CallStackProfile::ParseTableT_ CallStackProfile::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_._has_bits_),
      0, // no _extensions_
      10, 120,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294966272,  // skipmap
      offsetof(ParseTableT_, field_entries),
      10,  // num_field_entries
      6,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::metrics::CallStackProfile>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // repeated .metrics.CallStackProfile.Sample DEPRECATED_sample = 1 [deprecated = true];
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.deprecated_sample_)}},
      // repeated .metrics.CallStackProfile.ModuleIdentifier module_id = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.module_id_)}},
      // int32 profile_duration_ms = 3;
      {::_pbi::TcParser::FastV32S1,
       {24, 7, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.profile_duration_ms_)}},
      // int32 sampling_period_ms = 4;
      {::_pbi::TcParser::FastV32S1,
       {32, 8, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.sampling_period_ms_)}},
      // repeated fixed64 metadata_name_hash = 5;
      {::_pbi::TcParser::FastF64P1,
       {42, 2, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.metadata_name_hash_)}},
      // repeated .metrics.CallStackProfile.MetadataItem profile_metadata = 6;
      {::_pbi::TcParser::FastMtR1,
       {50, 3, 2,
        PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.profile_metadata_)}},
      // repeated .metrics.CallStackProfile.AsyncBacktrace async_backtrace = 7;
      {::_pbi::TcParser::FastMtR1,
       {58, 4, 3,
        PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.async_backtrace_)}},
      // repeated .metrics.CallStackProfile.Stack stack = 8;
      {::_pbi::TcParser::FastMtR1,
       {66, 5, 4,
        PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.stack_)}},
      // repeated .metrics.CallStackProfile.StackSample stack_sample = 9;
      {::_pbi::TcParser::FastMtR1,
       {74, 6, 5,
        PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.stack_sample_)}},
      // int64 profile_time_offset_ms = 10;
      {::_pbi::TcParser::FastV64S1,
       {80, 9, 0,
        PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.profile_time_offset_ms_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .metrics.CallStackProfile.Sample DEPRECATED_sample = 1 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.deprecated_sample_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .metrics.CallStackProfile.ModuleIdentifier module_id = 2;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.module_id_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // int32 profile_duration_ms = 3;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.profile_duration_ms_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 sampling_period_ms = 4;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.sampling_period_ms_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // repeated fixed64 metadata_name_hash = 5;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.metadata_name_hash_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedFixed64)},
      // repeated .metrics.CallStackProfile.MetadataItem profile_metadata = 6;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.profile_metadata_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .metrics.CallStackProfile.AsyncBacktrace async_backtrace = 7;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.async_backtrace_), _Internal::kHasBitsOffset + 4, 3, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .metrics.CallStackProfile.Stack stack = 8;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.stack_), _Internal::kHasBitsOffset + 5, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .metrics.CallStackProfile.StackSample stack_sample = 9;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.stack_sample_), _Internal::kHasBitsOffset + 6, 5, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // int64 profile_time_offset_ms = 10;
      {PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.profile_time_offset_ms_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::CallStackProfile_Sample>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::CallStackProfile_Sample_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::CallStackProfile_ModuleIdentifier>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::CallStackProfile_ModuleIdentifier_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::CallStackProfile_MetadataItem>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::CallStackProfile_MetadataItem_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::CallStackProfile_AsyncBacktrace>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::CallStackProfile_AsyncBacktrace_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::CallStackProfile_Stack>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::CallStackProfile_Stack_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::CallStackProfile_StackSample>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::CallStackProfile_StackSample_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr CallStackProfile::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        deprecated_sample_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.deprecated_sample_)>()
         }
        ,
        module_id_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.module_id_)>()
         }
        ,
        metadata_name_hash_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.metadata_name_hash_)>()
         }
        ,
        profile_metadata_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.profile_metadata_)>()
         }
        ,
        async_backtrace_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.async_backtrace_)>()
         }
        ,
        stack_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.stack_)>()
         }
        ,
        stack_sample_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.stack_sample_)>()
         }
        ,
        profile_duration_ms_{0},
        sampling_period_ms_{0},
        profile_time_offset_ms_{::int64_t{0}} {}

template <typename>
constexpr CallStackProfile::CallStackProfile(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL CallStackProfile::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) CallStackProfile(arena);
}
constexpr auto CallStackProfile::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CallStackProfile), alignof(CallStackProfile));
}
constexpr auto CallStackProfile::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &CallStackProfile::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<CallStackProfile>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &CallStackProfile::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<CallStackProfile>(), &CallStackProfile::ByteSizeLong,
              &CallStackProfile::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_._cached_size_),
          true,
      },
      "metrics.CallStackProfile",
  };
}
struct CallStackProfileGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr CallStackProfileGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 CallStackProfile_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(CallStackProfile::InternalGenerateClassData_(
            _default, &CallStackProfile_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~CallStackProfileGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) CallStackProfile _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<CallStackProfile>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(CallStackProfileGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CallStackProfileGlobalsTypeInternal CallStackProfile_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* CallStackProfile_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return CallStackProfile_globals_.GetClassData();
#else
  return CallStackProfile_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace metrics
namespace metrics {
// ===================================================================

CallStackProfile_ModuleIdentifier::CallStackProfile_ModuleIdentifier(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_ModuleIdentifier_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:metrics.CallStackProfile.ModuleIdentifier)
}
PROTOBUF_NDEBUG_INLINE CallStackProfile_ModuleIdentifier::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::metrics::CallStackProfile_ModuleIdentifier& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        build_id_(arena, from.build_id_) {}

CallStackProfile_ModuleIdentifier::CallStackProfile_ModuleIdentifier(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const CallStackProfile_ModuleIdentifier& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_ModuleIdentifier_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  CallStackProfile_ModuleIdentifier* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  _impl_.name_md5_prefix_ = from._impl_.name_md5_prefix_;

  // @@protoc_insertion_point(copy_constructor:metrics.CallStackProfile.ModuleIdentifier)
}
PROTOBUF_NDEBUG_INLINE CallStackProfile_ModuleIdentifier::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        build_id_(arena) {}

inline void CallStackProfile_ModuleIdentifier::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.name_md5_prefix_ = {};
}
CallStackProfile_ModuleIdentifier::~CallStackProfile_ModuleIdentifier() {
  // @@protoc_insertion_point(destructor:metrics.CallStackProfile.ModuleIdentifier)
  SharedDtor(*this);
}
inline void CallStackProfile_ModuleIdentifier::SharedDtor(MessageLite& self) {
  CallStackProfile_ModuleIdentifier& this_ = static_cast<CallStackProfile_ModuleIdentifier&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.build_id_.Destroy();
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite CallStackProfile_ModuleIdentifier_class_data_ =
    CallStackProfile_ModuleIdentifier::InternalGenerateClassData_(CallStackProfile_ModuleIdentifier_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile_ModuleIdentifier::GetClassData() const {
  return CallStackProfile_ModuleIdentifier_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile_ModuleIdentifier::GetClassData() const {
  return CallStackProfile_ModuleIdentifier_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CallStackProfile_ModuleIdentifier::ParseTableT_
    CallStackProfile_ModuleIdentifier::_table_ =
        CallStackProfile_ModuleIdentifier::InternalGenerateParseTable_(CallStackProfile_ModuleIdentifier_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void CallStackProfile_ModuleIdentifier::Clear() {
// @@protoc_insertion_point(message_clear_start:metrics.CallStackProfile.ModuleIdentifier)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.build_id_.ClearNonDefaultToEmpty();
  }
  _impl_.name_md5_prefix_ = ::uint64_t{0u};
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL CallStackProfile_ModuleIdentifier::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const CallStackProfile_ModuleIdentifier& this_ = static_cast<const CallStackProfile_ModuleIdentifier&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL CallStackProfile_ModuleIdentifier::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const CallStackProfile_ModuleIdentifier& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:metrics.CallStackProfile.ModuleIdentifier)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // string build_id = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_build_id();
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // fixed64 name_md5_prefix = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFixed64ToArray(
        2, this_._internal_name_md5_prefix(), target);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:metrics.CallStackProfile.ModuleIdentifier)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t CallStackProfile_ModuleIdentifier::ByteSizeLong(const MessageLite& base) {
  const CallStackProfile_ModuleIdentifier& this_ = static_cast<const CallStackProfile_ModuleIdentifier&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t CallStackProfile_ModuleIdentifier::ByteSizeLong() const {
  const CallStackProfile_ModuleIdentifier& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:metrics.CallStackProfile.ModuleIdentifier)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += static_cast<bool>(0x00000002U & cached_has_bits) * 9;
   {
    // string build_id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_build_id());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void CallStackProfile_ModuleIdentifier::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<CallStackProfile_ModuleIdentifier*>(&to_msg);
  auto& from = static_cast<const CallStackProfile_ModuleIdentifier&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CallStackProfile.ModuleIdentifier)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_build_id(from._internal_build_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.name_md5_prefix_ = from._impl_.name_md5_prefix_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void CallStackProfile_ModuleIdentifier::CopyFrom(const CallStackProfile_ModuleIdentifier& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CallStackProfile.ModuleIdentifier)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void CallStackProfile_ModuleIdentifier::InternalSwap(CallStackProfile_ModuleIdentifier* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  auto* arena = GetArena();
  ABSL_DCHECK_EQ(arena, other->GetArena());
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.build_id_, &other->_impl_.build_id_, arena);
  swap(_impl_.name_md5_prefix_, other->_impl_.name_md5_prefix_);
}

// ===================================================================

CallStackProfile_Location::CallStackProfile_Location(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_Location_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:metrics.CallStackProfile.Location)
}
PROTOBUF_NDEBUG_INLINE CallStackProfile_Location::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::metrics::CallStackProfile_Location& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        function_name_(arena, from.function_name_) {}

CallStackProfile_Location::CallStackProfile_Location(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const CallStackProfile_Location& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_Location_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  CallStackProfile_Location* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, address_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, address_),
           offsetof(Impl_, module_id_index_) -
               offsetof(Impl_, address_) +
               sizeof(Impl_::module_id_index_));

  // @@protoc_insertion_point(copy_constructor:metrics.CallStackProfile.Location)
}
PROTOBUF_NDEBUG_INLINE CallStackProfile_Location::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        function_name_(arena) {}

inline void CallStackProfile_Location::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, address_),
           0,
           offsetof(Impl_, module_id_index_) -
               offsetof(Impl_, address_) +
               sizeof(Impl_::module_id_index_));
}
CallStackProfile_Location::~CallStackProfile_Location() {
  // @@protoc_insertion_point(destructor:metrics.CallStackProfile.Location)
  SharedDtor(*this);
}
inline void CallStackProfile_Location::SharedDtor(MessageLite& self) {
  CallStackProfile_Location& this_ = static_cast<CallStackProfile_Location&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.function_name_.Destroy();
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite CallStackProfile_Location_class_data_ =
    CallStackProfile_Location::InternalGenerateClassData_(CallStackProfile_Location_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile_Location::GetClassData() const {
  return CallStackProfile_Location_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile_Location::GetClassData() const {
  return CallStackProfile_Location_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CallStackProfile_Location::ParseTableT_
    CallStackProfile_Location::_table_ =
        CallStackProfile_Location::InternalGenerateParseTable_(CallStackProfile_Location_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void CallStackProfile_Location::Clear() {
// @@protoc_insertion_point(message_clear_start:metrics.CallStackProfile.Location)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.function_name_.ClearNonDefaultToEmpty();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
    ::memset(&_impl_.address_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.module_id_index_) -
        reinterpret_cast<char*>(&_impl_.address_)) + sizeof(_impl_.module_id_index_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL CallStackProfile_Location::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const CallStackProfile_Location& this_ = static_cast<const CallStackProfile_Location&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL CallStackProfile_Location::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const CallStackProfile_Location& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:metrics.CallStackProfile.Location)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // uint64 address = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        1, this_._internal_address(), target);
  }

  // int32 module_id_index = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
            stream, this_._internal_module_id_index(), target);
  }

  // string function_name = 3;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_function_name();
    target = stream->WriteStringMaybeAliased(3, _s, target);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:metrics.CallStackProfile.Location)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t CallStackProfile_Location::ByteSizeLong(const MessageLite& base) {
  const CallStackProfile_Location& this_ = static_cast<const CallStackProfile_Location&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t CallStackProfile_Location::ByteSizeLong() const {
  const CallStackProfile_Location& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:metrics.CallStackProfile.Location)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // string function_name = 3;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_function_name());
    }
    // uint64 address = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_address());
    }
    // int32 module_id_index = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_module_id_index());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void CallStackProfile_Location::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<CallStackProfile_Location*>(&to_msg);
  auto& from = static_cast<const CallStackProfile_Location&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CallStackProfile.Location)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_function_name(from._internal_function_name());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.address_ = from._impl_.address_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.module_id_index_ = from._impl_.module_id_index_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void CallStackProfile_Location::CopyFrom(const CallStackProfile_Location& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CallStackProfile.Location)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void CallStackProfile_Location::InternalSwap(CallStackProfile_Location* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  auto* arena = GetArena();
  ABSL_DCHECK_EQ(arena, other->GetArena());
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.function_name_, &other->_impl_.function_name_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(CallStackProfile_Location, _impl_.module_id_index_)
      + sizeof(CallStackProfile_Location::_impl_.module_id_index_)
      - PROTOBUF_FIELD_OFFSET(CallStackProfile_Location, _impl_.address_)>(
          reinterpret_cast<char*>(&_impl_.address_),
          reinterpret_cast<char*>(&other->_impl_.address_));
}

// ===================================================================

CallStackProfile_Stack::CallStackProfile_Stack(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_Stack_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:metrics.CallStackProfile.Stack)
}
PROTOBUF_NDEBUG_INLINE CallStackProfile_Stack::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::metrics::CallStackProfile_Stack& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        frame_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::CallStackProfile_Stack,
              PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile_Stack, _impl_.frame_)>()
          , from.frame_
        }
     {}

CallStackProfile_Stack::CallStackProfile_Stack(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const CallStackProfile_Stack& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_Stack_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  CallStackProfile_Stack* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);

  // @@protoc_insertion_point(copy_constructor:metrics.CallStackProfile.Stack)
}
PROTOBUF_NDEBUG_INLINE CallStackProfile_Stack::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        frame_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile_Stack,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile_Stack, _impl_.frame_)>()
         }
     {}

inline void CallStackProfile_Stack::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
CallStackProfile_Stack::~CallStackProfile_Stack() {
  // @@protoc_insertion_point(destructor:metrics.CallStackProfile.Stack)
  SharedDtor(*this);
}
inline void CallStackProfile_Stack::SharedDtor(MessageLite& self) {
  CallStackProfile_Stack& this_ = static_cast<CallStackProfile_Stack&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite CallStackProfile_Stack_class_data_ =
    CallStackProfile_Stack::InternalGenerateClassData_(CallStackProfile_Stack_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile_Stack::GetClassData() const {
  return CallStackProfile_Stack_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile_Stack::GetClassData() const {
  return CallStackProfile_Stack_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CallStackProfile_Stack::ParseTableT_
    CallStackProfile_Stack::_table_ =
        CallStackProfile_Stack::InternalGenerateParseTable_(CallStackProfile_Stack_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void CallStackProfile_Stack::Clear() {
// @@protoc_insertion_point(message_clear_start:metrics.CallStackProfile.Stack)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.frame_.Clear();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL CallStackProfile_Stack::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const CallStackProfile_Stack& this_ = static_cast<const CallStackProfile_Stack&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL CallStackProfile_Stack::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const CallStackProfile_Stack& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:metrics.CallStackProfile.Stack)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .metrics.CallStackProfile.Location frame = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_frame_size());
         i < n; i++) {
      const auto& repfield = this_._internal_frame().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              1, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:metrics.CallStackProfile.Stack)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t CallStackProfile_Stack::ByteSizeLong(const MessageLite& base) {
  const CallStackProfile_Stack& this_ = static_cast<const CallStackProfile_Stack&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t CallStackProfile_Stack::ByteSizeLong() const {
  const CallStackProfile_Stack& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:metrics.CallStackProfile.Stack)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
   {
    // repeated .metrics.CallStackProfile.Location frame = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_frame_size();
      for (const auto& msg : this_._internal_frame()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void CallStackProfile_Stack::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<CallStackProfile_Stack*>(&to_msg);
  auto& from = static_cast<const CallStackProfile_Stack&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CallStackProfile.Stack)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _this->_internal_mutable_frame()->InternalMergeFromWithArena(
        ::google::protobuf::MessageLite::internal_visibility(), arena,
        from._internal_frame());
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void CallStackProfile_Stack::CopyFrom(const CallStackProfile_Stack& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CallStackProfile.Stack)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void CallStackProfile_Stack::InternalSwap(CallStackProfile_Stack* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.frame_.InternalSwap(&other->_impl_.frame_);
}

// ===================================================================

CallStackProfile_MetadataItem::CallStackProfile_MetadataItem(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_MetadataItem_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:metrics.CallStackProfile.MetadataItem)
}
CallStackProfile_MetadataItem::CallStackProfile_MetadataItem(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CallStackProfile_MetadataItem& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_MetadataItem_get_class_data()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}
PROTOBUF_NDEBUG_INLINE CallStackProfile_MetadataItem::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

inline void CallStackProfile_MetadataItem::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, value_),
           0,
           offsetof(Impl_, name_hash_index_) -
               offsetof(Impl_, value_) +
               sizeof(Impl_::name_hash_index_));
}
CallStackProfile_MetadataItem::~CallStackProfile_MetadataItem() {
  // @@protoc_insertion_point(destructor:metrics.CallStackProfile.MetadataItem)
  SharedDtor(*this);
}
inline void CallStackProfile_MetadataItem::SharedDtor(MessageLite& self) {
  CallStackProfile_MetadataItem& this_ = static_cast<CallStackProfile_MetadataItem&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite CallStackProfile_MetadataItem_class_data_ =
    CallStackProfile_MetadataItem::InternalGenerateClassData_(CallStackProfile_MetadataItem_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile_MetadataItem::GetClassData() const {
  return CallStackProfile_MetadataItem_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile_MetadataItem::GetClassData() const {
  return CallStackProfile_MetadataItem_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CallStackProfile_MetadataItem::ParseTableT_
    CallStackProfile_MetadataItem::_table_ =
        CallStackProfile_MetadataItem::InternalGenerateParseTable_(CallStackProfile_MetadataItem_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void CallStackProfile_MetadataItem::Clear() {
// @@protoc_insertion_point(message_clear_start:metrics.CallStackProfile.MetadataItem)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    ::memset(&_impl_.value_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.name_hash_index_) -
        reinterpret_cast<char*>(&_impl_.value_)) + sizeof(_impl_.name_hash_index_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL CallStackProfile_MetadataItem::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const CallStackProfile_MetadataItem& this_ = static_cast<const CallStackProfile_MetadataItem&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL CallStackProfile_MetadataItem::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const CallStackProfile_MetadataItem& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:metrics.CallStackProfile.MetadataItem)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // int32 name_hash_index = 1;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
            stream, this_._internal_name_hash_index(), target);
  }

  // sint64 value = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteSInt64ToArray(
        2, this_._internal_value(), target);
  }

  // sint64 key = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteSInt64ToArray(
        3, this_._internal_key(), target);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:metrics.CallStackProfile.MetadataItem)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t CallStackProfile_MetadataItem::ByteSizeLong(const MessageLite& base) {
  const CallStackProfile_MetadataItem& this_ = static_cast<const CallStackProfile_MetadataItem&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t CallStackProfile_MetadataItem::ByteSizeLong() const {
  const CallStackProfile_MetadataItem& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:metrics.CallStackProfile.MetadataItem)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // sint64 value = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::SInt64SizePlusOne(
          this_._internal_value());
    }
    // sint64 key = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::SInt64SizePlusOne(
          this_._internal_key());
    }
    // int32 name_hash_index = 1;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_name_hash_index());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void CallStackProfile_MetadataItem::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<CallStackProfile_MetadataItem*>(&to_msg);
  auto& from = static_cast<const CallStackProfile_MetadataItem&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CallStackProfile.MetadataItem)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_impl_.value_ = from._impl_.value_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.key_ = from._impl_.key_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.name_hash_index_ = from._impl_.name_hash_index_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void CallStackProfile_MetadataItem::CopyFrom(const CallStackProfile_MetadataItem& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CallStackProfile.MetadataItem)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void CallStackProfile_MetadataItem::InternalSwap(CallStackProfile_MetadataItem* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(CallStackProfile_MetadataItem, _impl_.name_hash_index_)
      + sizeof(CallStackProfile_MetadataItem::_impl_.name_hash_index_)
      - PROTOBUF_FIELD_OFFSET(CallStackProfile_MetadataItem, _impl_.value_)>(
          reinterpret_cast<char*>(&_impl_.value_),
          reinterpret_cast<char*>(&other->_impl_.value_));
}

// ===================================================================

CallStackProfile_AsyncBacktrace::CallStackProfile_AsyncBacktrace(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_AsyncBacktrace_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:metrics.CallStackProfile.AsyncBacktrace)
}
PROTOBUF_NDEBUG_INLINE CallStackProfile_AsyncBacktrace::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::metrics::CallStackProfile_AsyncBacktrace& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        location_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::CallStackProfile_AsyncBacktrace,
              PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile_AsyncBacktrace, _impl_.location_)>()
          , from.location_
        }
     {}

CallStackProfile_AsyncBacktrace::CallStackProfile_AsyncBacktrace(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const CallStackProfile_AsyncBacktrace& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_AsyncBacktrace_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  CallStackProfile_AsyncBacktrace* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);

  // @@protoc_insertion_point(copy_constructor:metrics.CallStackProfile.AsyncBacktrace)
}
PROTOBUF_NDEBUG_INLINE CallStackProfile_AsyncBacktrace::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        location_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile_AsyncBacktrace,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile_AsyncBacktrace, _impl_.location_)>()
         }
     {}

inline void CallStackProfile_AsyncBacktrace::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
CallStackProfile_AsyncBacktrace::~CallStackProfile_AsyncBacktrace() {
  // @@protoc_insertion_point(destructor:metrics.CallStackProfile.AsyncBacktrace)
  SharedDtor(*this);
}
inline void CallStackProfile_AsyncBacktrace::SharedDtor(MessageLite& self) {
  CallStackProfile_AsyncBacktrace& this_ = static_cast<CallStackProfile_AsyncBacktrace&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite CallStackProfile_AsyncBacktrace_class_data_ =
    CallStackProfile_AsyncBacktrace::InternalGenerateClassData_(CallStackProfile_AsyncBacktrace_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile_AsyncBacktrace::GetClassData() const {
  return CallStackProfile_AsyncBacktrace_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile_AsyncBacktrace::GetClassData() const {
  return CallStackProfile_AsyncBacktrace_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CallStackProfile_AsyncBacktrace::ParseTableT_
    CallStackProfile_AsyncBacktrace::_table_ =
        CallStackProfile_AsyncBacktrace::InternalGenerateParseTable_(CallStackProfile_AsyncBacktrace_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void CallStackProfile_AsyncBacktrace::Clear() {
// @@protoc_insertion_point(message_clear_start:metrics.CallStackProfile.AsyncBacktrace)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.location_.Clear();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL CallStackProfile_AsyncBacktrace::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const CallStackProfile_AsyncBacktrace& this_ = static_cast<const CallStackProfile_AsyncBacktrace&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL CallStackProfile_AsyncBacktrace::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const CallStackProfile_AsyncBacktrace& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:metrics.CallStackProfile.AsyncBacktrace)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .metrics.CallStackProfile.Location location = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_location_size());
         i < n; i++) {
      const auto& repfield = this_._internal_location().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              1, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:metrics.CallStackProfile.AsyncBacktrace)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t CallStackProfile_AsyncBacktrace::ByteSizeLong(const MessageLite& base) {
  const CallStackProfile_AsyncBacktrace& this_ = static_cast<const CallStackProfile_AsyncBacktrace&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t CallStackProfile_AsyncBacktrace::ByteSizeLong() const {
  const CallStackProfile_AsyncBacktrace& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:metrics.CallStackProfile.AsyncBacktrace)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
   {
    // repeated .metrics.CallStackProfile.Location location = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_location_size();
      for (const auto& msg : this_._internal_location()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void CallStackProfile_AsyncBacktrace::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<CallStackProfile_AsyncBacktrace*>(&to_msg);
  auto& from = static_cast<const CallStackProfile_AsyncBacktrace&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CallStackProfile.AsyncBacktrace)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _this->_internal_mutable_location()->InternalMergeFromWithArena(
        ::google::protobuf::MessageLite::internal_visibility(), arena,
        from._internal_location());
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void CallStackProfile_AsyncBacktrace::CopyFrom(const CallStackProfile_AsyncBacktrace& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CallStackProfile.AsyncBacktrace)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void CallStackProfile_AsyncBacktrace::InternalSwap(CallStackProfile_AsyncBacktrace* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.location_.InternalSwap(&other->_impl_.location_);
}

// ===================================================================

CallStackProfile_Sample::CallStackProfile_Sample(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_Sample_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:metrics.CallStackProfile.Sample)
}
PROTOBUF_NDEBUG_INLINE CallStackProfile_Sample::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::metrics::CallStackProfile_Sample& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        frame_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::CallStackProfile_Sample,
              PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile_Sample, _impl_.frame_)>()
          , from.frame_
        }
        ,
        process_phase_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::CallStackProfile_Sample,
              PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile_Sample, _impl_.process_phase_)>()
          , from.process_phase_
        }
        ,
        _process_phase_cached_byte_size_{0} {}

CallStackProfile_Sample::CallStackProfile_Sample(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const CallStackProfile_Sample& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_Sample_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  CallStackProfile_Sample* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  _impl_.count_ = from._impl_.count_;

  // @@protoc_insertion_point(copy_constructor:metrics.CallStackProfile.Sample)
}
PROTOBUF_NDEBUG_INLINE CallStackProfile_Sample::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        frame_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile_Sample,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile_Sample, _impl_.frame_)>()
         }
        ,
        process_phase_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile_Sample,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile_Sample, _impl_.process_phase_)>()
         }
        ,
        _process_phase_cached_byte_size_{0} {}

inline void CallStackProfile_Sample::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.count_ = {};
}
CallStackProfile_Sample::~CallStackProfile_Sample() {
  // @@protoc_insertion_point(destructor:metrics.CallStackProfile.Sample)
  SharedDtor(*this);
}
inline void CallStackProfile_Sample::SharedDtor(MessageLite& self) {
  CallStackProfile_Sample& this_ = static_cast<CallStackProfile_Sample&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite CallStackProfile_Sample_class_data_ =
    CallStackProfile_Sample::InternalGenerateClassData_(CallStackProfile_Sample_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile_Sample::GetClassData() const {
  return CallStackProfile_Sample_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile_Sample::GetClassData() const {
  return CallStackProfile_Sample_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CallStackProfile_Sample::ParseTableT_
    CallStackProfile_Sample::_table_ =
        CallStackProfile_Sample::InternalGenerateParseTable_(CallStackProfile_Sample_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void CallStackProfile_Sample::Clear() {
// @@protoc_insertion_point(message_clear_start:metrics.CallStackProfile.Sample)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.frame_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.process_phase_.Clear();
    }
  }
  _impl_.count_ = ::int64_t{0};
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL CallStackProfile_Sample::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const CallStackProfile_Sample& this_ = static_cast<const CallStackProfile_Sample&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL CallStackProfile_Sample::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const CallStackProfile_Sample& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:metrics.CallStackProfile.Sample)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .metrics.CallStackProfile.Location frame = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_frame_size());
         i < n; i++) {
      const auto& repfield = this_._internal_frame().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              1, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // int64 count = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
            stream, this_._internal_count(), target);
  }

  // repeated .metrics.ProcessPhase process_phase = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    {
      ::size_t byte_size = this_._impl_._process_phase_cached_byte_size_.Get();
      if (byte_size > 0) {
        target = stream->WriteEnumPacked(
            3, this_._internal_process_phase(), byte_size, target);
      }
    }
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:metrics.CallStackProfile.Sample)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t CallStackProfile_Sample::ByteSizeLong(const MessageLite& base) {
  const CallStackProfile_Sample& this_ = static_cast<const CallStackProfile_Sample&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t CallStackProfile_Sample::ByteSizeLong() const {
  const CallStackProfile_Sample& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:metrics.CallStackProfile.Sample)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // repeated .metrics.CallStackProfile.Location frame = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_frame_size();
      for (const auto& msg : this_._internal_frame()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .metrics.ProcessPhase process_phase = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize(
          this_._internal_process_phase(), 1, this_._impl_._process_phase_cached_byte_size_);
    }
    // int64 count = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_count());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void CallStackProfile_Sample::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<CallStackProfile_Sample*>(&to_msg);
  auto& from = static_cast<const CallStackProfile_Sample&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CallStackProfile.Sample)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_frame()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_frame());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_process_phase()->MergeFrom(from._internal_process_phase());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.count_ = from._impl_.count_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void CallStackProfile_Sample::CopyFrom(const CallStackProfile_Sample& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CallStackProfile.Sample)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void CallStackProfile_Sample::InternalSwap(CallStackProfile_Sample* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.frame_.InternalSwap(&other->_impl_.frame_);
  _impl_.process_phase_.InternalSwap(&other->_impl_.process_phase_);
  swap(_impl_.count_, other->_impl_.count_);
}

// ===================================================================

CallStackProfile_StackSample::CallStackProfile_StackSample(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_StackSample_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:metrics.CallStackProfile.StackSample)
}
PROTOBUF_NDEBUG_INLINE CallStackProfile_StackSample::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::metrics::CallStackProfile_StackSample& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        metadata_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::CallStackProfile_StackSample,
              PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile_StackSample, _impl_.metadata_)>()
          , from.metadata_
        }
     {}

CallStackProfile_StackSample::CallStackProfile_StackSample(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const CallStackProfile_StackSample& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_StackSample_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  CallStackProfile_StackSample* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, stack_index_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, stack_index_),
           offsetof(Impl_, count_) -
               offsetof(Impl_, stack_index_) +
               sizeof(Impl_::count_));

  // @@protoc_insertion_point(copy_constructor:metrics.CallStackProfile.StackSample)
}
PROTOBUF_NDEBUG_INLINE CallStackProfile_StackSample::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        metadata_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile_StackSample,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile_StackSample, _impl_.metadata_)>()
         }
        ,
        count_{::int64_t{1}} {}

inline void CallStackProfile_StackSample::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, stack_index_),
           0,
           offsetof(Impl_, weight_) -
               offsetof(Impl_, stack_index_) +
               sizeof(Impl_::weight_));
}
CallStackProfile_StackSample::~CallStackProfile_StackSample() {
  // @@protoc_insertion_point(destructor:metrics.CallStackProfile.StackSample)
  SharedDtor(*this);
}
inline void CallStackProfile_StackSample::SharedDtor(MessageLite& self) {
  CallStackProfile_StackSample& this_ = static_cast<CallStackProfile_StackSample&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite CallStackProfile_StackSample_class_data_ =
    CallStackProfile_StackSample::InternalGenerateClassData_(CallStackProfile_StackSample_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile_StackSample::GetClassData() const {
  return CallStackProfile_StackSample_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile_StackSample::GetClassData() const {
  return CallStackProfile_StackSample_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CallStackProfile_StackSample::ParseTableT_
    CallStackProfile_StackSample::_table_ =
        CallStackProfile_StackSample::InternalGenerateParseTable_(CallStackProfile_StackSample_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void CallStackProfile_StackSample::Clear() {
// @@protoc_insertion_point(message_clear_start:metrics.CallStackProfile.StackSample)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.metadata_.Clear();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000007eU)) {
    ::memset(&_impl_.stack_index_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.weight_) -
        reinterpret_cast<char*>(&_impl_.stack_index_)) + sizeof(_impl_.weight_));
    _impl_.count_ = ::int64_t{1};
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL CallStackProfile_StackSample::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const CallStackProfile_StackSample& this_ = static_cast<const CallStackProfile_StackSample&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL CallStackProfile_StackSample::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const CallStackProfile_StackSample& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:metrics.CallStackProfile.StackSample)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // int32 stack_index = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
            stream, this_._internal_stack_index(), target);
  }

  // int32 sample_time_offset_ms = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
            stream, this_._internal_sample_time_offset_ms(), target);
  }

  // bool continued_work = 3;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        3, this_._internal_continued_work(), target);
  }

  // int32 async_backtrace_index = 4;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>(
            stream, this_._internal_async_backtrace_index(), target);
  }

  // repeated .metrics.CallStackProfile.MetadataItem metadata = 5;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_metadata_size());
         i < n; i++) {
      const auto& repfield = this_._internal_metadata().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              5, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // int64 weight = 6;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
            stream, this_._internal_weight(), target);
  }

  // int64 count = 7 [default = 1];
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>(
            stream, this_._internal_count(), target);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:metrics.CallStackProfile.StackSample)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t CallStackProfile_StackSample::ByteSizeLong(const MessageLite& base) {
  const CallStackProfile_StackSample& this_ = static_cast<const CallStackProfile_StackSample&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t CallStackProfile_StackSample::ByteSizeLong() const {
  const CallStackProfile_StackSample& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:metrics.CallStackProfile.StackSample)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += static_cast<bool>(0x00000008U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x00000077U)) {
    // repeated .metrics.CallStackProfile.MetadataItem metadata = 5;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_metadata_size();
      for (const auto& msg : this_._internal_metadata()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // int32 stack_index = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_stack_index());
    }
    // int32 sample_time_offset_ms = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_sample_time_offset_ms());
    }
    // int32 async_backtrace_index = 4;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_async_backtrace_index());
    }
    // int64 weight = 6;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_weight());
    }
    // int64 count = 7 [default = 1];
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_count());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void CallStackProfile_StackSample::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<CallStackProfile_StackSample*>(&to_msg);
  auto& from = static_cast<const CallStackProfile_StackSample&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CallStackProfile.StackSample)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_metadata()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_metadata());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.stack_index_ = from._impl_.stack_index_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.sample_time_offset_ms_ = from._impl_.sample_time_offset_ms_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.continued_work_ = from._impl_.continued_work_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.async_backtrace_index_ = from._impl_.async_backtrace_index_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.weight_ = from._impl_.weight_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.count_ = from._impl_.count_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void CallStackProfile_StackSample::CopyFrom(const CallStackProfile_StackSample& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CallStackProfile.StackSample)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void CallStackProfile_StackSample::InternalSwap(CallStackProfile_StackSample* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.metadata_.InternalSwap(&other->_impl_.metadata_);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.count_)
      + sizeof(CallStackProfile_StackSample::_impl_.count_)
      - PROTOBUF_FIELD_OFFSET(CallStackProfile_StackSample, _impl_.stack_index_)>(
          reinterpret_cast<char*>(&_impl_.stack_index_),
          reinterpret_cast<char*>(&other->_impl_.stack_index_));
}

// ===================================================================

CallStackProfile::CallStackProfile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:metrics.CallStackProfile)
}
PROTOBUF_NDEBUG_INLINE CallStackProfile::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::metrics::CallStackProfile& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        deprecated_sample_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::CallStackProfile,
              PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.deprecated_sample_)>()
          , from.deprecated_sample_
        }
        ,
        module_id_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::CallStackProfile,
              PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.module_id_)>()
          , from.module_id_
        }
        ,
        metadata_name_hash_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::CallStackProfile,
              PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.metadata_name_hash_)>()
          , from.metadata_name_hash_
        }
        ,
        profile_metadata_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::CallStackProfile,
              PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.profile_metadata_)>()
          , from.profile_metadata_
        }
        ,
        async_backtrace_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::CallStackProfile,
              PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.async_backtrace_)>()
          , from.async_backtrace_
        }
        ,
        stack_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::CallStackProfile,
              PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.stack_)>()
          , from.stack_
        }
        ,
        stack_sample_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::CallStackProfile,
              PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.stack_sample_)>()
          , from.stack_sample_
        }
     {}

CallStackProfile::CallStackProfile(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const CallStackProfile& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, CallStackProfile_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  CallStackProfile* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, profile_duration_ms_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, profile_duration_ms_),
           offsetof(Impl_, profile_time_offset_ms_) -
               offsetof(Impl_, profile_duration_ms_) +
               sizeof(Impl_::profile_time_offset_ms_));

  // @@protoc_insertion_point(copy_constructor:metrics.CallStackProfile)
}
PROTOBUF_NDEBUG_INLINE CallStackProfile::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        deprecated_sample_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.deprecated_sample_)>()
         }
        ,
        module_id_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.module_id_)>()
         }
        ,
        metadata_name_hash_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.metadata_name_hash_)>()
         }
        ,
        profile_metadata_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.profile_metadata_)>()
         }
        ,
        async_backtrace_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.async_backtrace_)>()
         }
        ,
        stack_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.stack_)>()
         }
        ,
        stack_sample_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::CallStackProfile,
            PROTOBUF_FIELD_OFFSET(::metrics::CallStackProfile, _impl_.stack_sample_)>()
         }
     {}

inline void CallStackProfile::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, profile_duration_ms_),
           0,
           offsetof(Impl_, profile_time_offset_ms_) -
               offsetof(Impl_, profile_duration_ms_) +
               sizeof(Impl_::profile_time_offset_ms_));
}
CallStackProfile::~CallStackProfile() {
  // @@protoc_insertion_point(destructor:metrics.CallStackProfile)
  SharedDtor(*this);
}
inline void CallStackProfile::SharedDtor(MessageLite& self) {
  CallStackProfile& this_ = static_cast<CallStackProfile&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite CallStackProfile_class_data_ =
    CallStackProfile::InternalGenerateClassData_(CallStackProfile_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile::GetClassData() const {
  return CallStackProfile_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
CallStackProfile::GetClassData() const {
  return CallStackProfile_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CallStackProfile::ParseTableT_
    CallStackProfile::_table_ =
        CallStackProfile::InternalGenerateParseTable_(CallStackProfile_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void CallStackProfile::Clear() {
// @@protoc_insertion_point(message_clear_start:metrics.CallStackProfile)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.deprecated_sample_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.module_id_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.metadata_name_hash_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.profile_metadata_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.async_backtrace_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _impl_.stack_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _impl_.stack_sample_.Clear();
    }
  }
  _impl_.profile_duration_ms_ = 0;
  if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
    ::memset(&_impl_.sampling_period_ms_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.profile_time_offset_ms_) -
        reinterpret_cast<char*>(&_impl_.sampling_period_ms_)) + sizeof(_impl_.profile_time_offset_ms_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL CallStackProfile::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const CallStackProfile& this_ = static_cast<const CallStackProfile&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL CallStackProfile::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const CallStackProfile& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:metrics.CallStackProfile)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .metrics.CallStackProfile.Sample DEPRECATED_sample = 1 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_deprecated_sample_size());
         i < n; i++) {
      const auto& repfield = this_._internal_deprecated_sample().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              1, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // repeated .metrics.CallStackProfile.ModuleIdentifier module_id = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_module_id_size());
         i < n; i++) {
      const auto& repfield = this_._internal_module_id().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // int32 profile_duration_ms = 3;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
            stream, this_._internal_profile_duration_ms(), target);
  }

  // int32 sampling_period_ms = 4;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>(
            stream, this_._internal_sampling_period_ms(), target);
  }

  // repeated fixed64 metadata_name_hash = 5;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (this_._internal_metadata_name_hash_size() > 0) {
      target = stream->WriteFixedPacked(5, this_._internal_metadata_name_hash(), target);
    }
  }

  // repeated .metrics.CallStackProfile.MetadataItem profile_metadata = 6;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_profile_metadata_size());
         i < n; i++) {
      const auto& repfield = this_._internal_profile_metadata().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              6, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // repeated .metrics.CallStackProfile.AsyncBacktrace async_backtrace = 7;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_async_backtrace_size());
         i < n; i++) {
      const auto& repfield = this_._internal_async_backtrace().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              7, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // repeated .metrics.CallStackProfile.Stack stack = 8;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_stack_size());
         i < n; i++) {
      const auto& repfield = this_._internal_stack().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              8, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // repeated .metrics.CallStackProfile.StackSample stack_sample = 9;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_stack_sample_size());
         i < n; i++) {
      const auto& repfield = this_._internal_stack_sample().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              9, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // int64 profile_time_offset_ms = 10;
  if (CheckHasBit(cached_has_bits, 0x00000200U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<10>(
            stream, this_._internal_profile_time_offset_ms(), target);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:metrics.CallStackProfile)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t CallStackProfile::ByteSizeLong(const MessageLite& base) {
  const CallStackProfile& this_ = static_cast<const CallStackProfile&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t CallStackProfile::ByteSizeLong() const {
  const CallStackProfile& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:metrics.CallStackProfile)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    // repeated .metrics.CallStackProfile.Sample DEPRECATED_sample = 1 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_deprecated_sample_size();
      for (const auto& msg : this_._internal_deprecated_sample()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .metrics.CallStackProfile.ModuleIdentifier module_id = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1UL * this_._internal_module_id_size();
      for (const auto& msg : this_._internal_module_id()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated fixed64 metadata_name_hash = 5;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ::size_t data_size = ::size_t{8} *
          ::_pbi::FromIntSize(this_._internal_metadata_name_hash_size());
      ::size_t tag_size = data_size == 0
          ? 0
          : 1 + ::_pbi::WireFormatLite::Int32Size(
                              static_cast<::int32_t>(data_size));
      total_size += tag_size + data_size;
    }
    // repeated .metrics.CallStackProfile.MetadataItem profile_metadata = 6;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1UL * this_._internal_profile_metadata_size();
      for (const auto& msg : this_._internal_profile_metadata()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .metrics.CallStackProfile.AsyncBacktrace async_backtrace = 7;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1UL * this_._internal_async_backtrace_size();
      for (const auto& msg : this_._internal_async_backtrace()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .metrics.CallStackProfile.Stack stack = 8;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 1UL * this_._internal_stack_size();
      for (const auto& msg : this_._internal_stack()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .metrics.CallStackProfile.StackSample stack_sample = 9;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += 1UL * this_._internal_stack_sample_size();
      for (const auto& msg : this_._internal_stack_sample()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // int32 profile_duration_ms = 3;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_profile_duration_ms());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
    // int32 sampling_period_ms = 4;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_sampling_period_ms());
    }
    // int64 profile_time_offset_ms = 10;
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_profile_time_offset_ms());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void CallStackProfile::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<CallStackProfile*>(&to_msg);
  auto& from = static_cast<const CallStackProfile&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.CallStackProfile)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_deprecated_sample()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_deprecated_sample());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_module_id()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_module_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_mutable_metadata_name_hash()->MergeFrom(from._internal_metadata_name_hash());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_mutable_profile_metadata()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_profile_metadata());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_internal_mutable_async_backtrace()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_async_backtrace());
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_internal_mutable_stack()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_stack());
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_internal_mutable_stack_sample()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_stack_sample());
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_impl_.profile_duration_ms_ = from._impl_.profile_duration_ms_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _this->_impl_.sampling_period_ms_ = from._impl_.sampling_period_ms_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _this->_impl_.profile_time_offset_ms_ = from._impl_.profile_time_offset_ms_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void CallStackProfile::CopyFrom(const CallStackProfile& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:metrics.CallStackProfile)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void CallStackProfile::InternalSwap(CallStackProfile* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.deprecated_sample_.InternalSwap(&other->_impl_.deprecated_sample_);
  _impl_.module_id_.InternalSwap(&other->_impl_.module_id_);
  _impl_.metadata_name_hash_.InternalSwap(&other->_impl_.metadata_name_hash_);
  _impl_.profile_metadata_.InternalSwap(&other->_impl_.profile_metadata_);
  _impl_.async_backtrace_.InternalSwap(&other->_impl_.async_backtrace_);
  _impl_.stack_.InternalSwap(&other->_impl_.stack_);
  _impl_.stack_sample_.InternalSwap(&other->_impl_.stack_sample_);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.profile_time_offset_ms_)
      + sizeof(CallStackProfile::_impl_.profile_time_offset_ms_)
      - PROTOBUF_FIELD_OFFSET(CallStackProfile, _impl_.profile_duration_ms_)>(
          reinterpret_cast<char*>(&_impl_.profile_duration_ms_),
          reinterpret_cast<char*>(&other->_impl_.profile_duration_ms_));
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace metrics
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
