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

#include "third_party/metrics_proto/private_metrics/private_metrics.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 private_metrics {
class PrivateMetricReportHeader::_Internal {
 public:
  using HasBits = decltype(::std::declval<PrivateMetricReportHeader>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(PrivateMetricReportHeader, _impl_._has_bits_);
};

constexpr PrivateMetricReportHeader::ParseTableT_ PrivateMetricReportHeader::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PrivateMetricReportHeader, _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<::private_metrics::PrivateMetricReportHeader>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // fixed64 epoch_id = 2;
      {::_pbi::TcParser::FastF64S1,
       {17, 1, 0,
        PROTOBUF_FIELD_OFFSET(PrivateMetricReportHeader, _impl_.epoch_id_)}},
      // bytes key_id = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(PrivateMetricReportHeader, _impl_.key_id_)}},
    }}, {{
      65535, 65535
    }}, {{
      // bytes key_id = 1;
      {PROTOBUF_FIELD_OFFSET(PrivateMetricReportHeader, _impl_.key_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // fixed64 epoch_id = 2;
      {PROTOBUF_FIELD_OFFSET(PrivateMetricReportHeader, _impl_.epoch_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


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

template <typename>
constexpr PrivateMetricReportHeader::PrivateMetricReportHeader(::_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 PrivateMetricReportHeader::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) PrivateMetricReportHeader(arena);
}
constexpr auto PrivateMetricReportHeader::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PrivateMetricReportHeader), alignof(PrivateMetricReportHeader));
}
constexpr auto PrivateMetricReportHeader::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
          &PrivateMetricReportHeader::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<PrivateMetricReportHeader>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &PrivateMetricReportHeader::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<PrivateMetricReportHeader>(), &PrivateMetricReportHeader::ByteSizeLong,
              &PrivateMetricReportHeader::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(PrivateMetricReportHeader, _impl_._cached_size_),
          true,
      },
      "private_metrics.PrivateMetricReportHeader",
  };
}
struct PrivateMetricReportHeaderGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr PrivateMetricReportHeaderGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 PrivateMetricReportHeader_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(PrivateMetricReportHeader::InternalGenerateClassData_(
            _default, &PrivateMetricReportHeader_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<PrivateMetricReportHeader>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~PrivateMetricReportHeaderGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) PrivateMetricReportHeader _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<PrivateMetricReportHeader>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(PrivateMetricReportHeaderGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

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

constexpr EncryptedPrivateMetricReport::ParseTableT_ EncryptedPrivateMetricReport::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_._has_bits_),
      0, // no _extensions_
      6, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967232,  // skipmap
      offsetof(ParseTableT_, field_entries),
      6,  // 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<::private_metrics::EncryptedPrivateMetricReport>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // bytes encrypted_report = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_.encrypted_report_)}},
      // bytes serialized_report_header = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_.serialized_report_header_)}},
      // .private_metrics.PrivateMetricReportHeader report_header = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 4, 0,
        PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_.report_header_)}},
      // .private_metrics.EncryptedPrivateMetricReport.ReportType report_type = 4;
      {::_pbi::TcParser::FastEr0S1,
       {32, 5, 1,
        PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_.report_type_)}},
      // bytes encrypted_symmetric_key = 5;
      {::_pbi::TcParser::FastBS1,
       {42, 2, 0,
        PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_.encrypted_symmetric_key_)}},
      // bytes encapsulated_public_key = 6;
      {::_pbi::TcParser::FastBS1,
       {50, 3, 0,
        PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_.encapsulated_public_key_)}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // bytes encrypted_report = 1;
      {PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_.encrypted_report_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // bytes serialized_report_header = 2;
      {PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_.serialized_report_header_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // .private_metrics.PrivateMetricReportHeader report_header = 3;
      {PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_.report_header_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .private_metrics.EncryptedPrivateMetricReport.ReportType report_type = 4;
      {PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_.report_type_), _Internal::kHasBitsOffset + 5, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // bytes encrypted_symmetric_key = 5;
      {PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_.encrypted_symmetric_key_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // bytes encapsulated_public_key = 6;
      {PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_.encapsulated_public_key_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::private_metrics::PrivateMetricReportHeader>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::private_metrics::PrivateMetricReportHeader_globals_},
        #endif
        {0, 1},
    }},
    {{
    }},
  };
}


inline constexpr EncryptedPrivateMetricReport::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        encrypted_report_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        serialized_report_header_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        encrypted_symmetric_key_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        encapsulated_public_key_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        report_header_{nullptr},
        report_type_{static_cast< ::private_metrics::EncryptedPrivateMetricReport_ReportType >(0)} {}

template <typename>
constexpr EncryptedPrivateMetricReport::EncryptedPrivateMetricReport(::_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 EncryptedPrivateMetricReport::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) EncryptedPrivateMetricReport(arena);
}
constexpr auto EncryptedPrivateMetricReport::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EncryptedPrivateMetricReport), alignof(EncryptedPrivateMetricReport));
}
constexpr auto EncryptedPrivateMetricReport::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
          &EncryptedPrivateMetricReport::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<EncryptedPrivateMetricReport>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &EncryptedPrivateMetricReport::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<EncryptedPrivateMetricReport>(), &EncryptedPrivateMetricReport::ByteSizeLong,
              &EncryptedPrivateMetricReport::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_._cached_size_),
          true,
      },
      "private_metrics.EncryptedPrivateMetricReport",
  };
}
struct EncryptedPrivateMetricReportGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr EncryptedPrivateMetricReportGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 EncryptedPrivateMetricReport_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(EncryptedPrivateMetricReport::InternalGenerateClassData_(
            _default, &EncryptedPrivateMetricReport_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<EncryptedPrivateMetricReport>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~EncryptedPrivateMetricReportGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) EncryptedPrivateMetricReport _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<EncryptedPrivateMetricReport>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReportGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

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

constexpr PrivateMetricReport_Event::ParseTableT_ PrivateMetricReport_Event::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PrivateMetricReport_Event, _impl_._has_bits_),
      0, // no _extensions_
      2, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // 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<::private_metrics::PrivateMetricReport_Event>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated fixed64 k_anonymity_buckets = 1;
      {::_pbi::TcParser::FastF64P1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(PrivateMetricReport_Event, _impl_.k_anonymity_buckets_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated fixed64 k_anonymity_buckets = 1;
      {PROTOBUF_FIELD_OFFSET(PrivateMetricReport_Event, _impl_.k_anonymity_buckets_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedFixed64)},
      // .dwa.DeidentifiedWebAnalyticsEvent dwa_event = 2;
      {PROTOBUF_FIELD_OFFSET(PrivateMetricReport_Event, _impl_.data_.dwa_event_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::dwa::DeidentifiedWebAnalyticsEvent>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::dwa::DeidentifiedWebAnalyticsEvent_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr PrivateMetricReport_Event::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        k_anonymity_buckets_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::private_metrics::PrivateMetricReport_Event,
            PROTOBUF_FIELD_OFFSET(::private_metrics::PrivateMetricReport_Event, _impl_.k_anonymity_buckets_)>()
         }
        ,
        data_{},
        _oneof_case_{} {}

template <typename>
constexpr PrivateMetricReport_Event::PrivateMetricReport_Event(::_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 PrivateMetricReport_Event::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) PrivateMetricReport_Event(arena);
}
constexpr auto PrivateMetricReport_Event::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PrivateMetricReport_Event), alignof(PrivateMetricReport_Event));
}
constexpr auto PrivateMetricReport_Event::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
          &PrivateMetricReport_Event::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<PrivateMetricReport_Event>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &PrivateMetricReport_Event::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<PrivateMetricReport_Event>(), &PrivateMetricReport_Event::ByteSizeLong,
              &PrivateMetricReport_Event::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(PrivateMetricReport_Event, _impl_._cached_size_),
          true,
      },
      "private_metrics.PrivateMetricReport.Event",
  };
}
struct PrivateMetricReport_EventGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr PrivateMetricReport_EventGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 PrivateMetricReport_Event_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(PrivateMetricReport_Event::InternalGenerateClassData_(
            _default, &PrivateMetricReport_Event_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<PrivateMetricReport_Event>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~PrivateMetricReport_EventGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) PrivateMetricReport_Event _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<PrivateMetricReport_Event>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(PrivateMetricReport_EventGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

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

constexpr PrivateMetricEndpointPayload::ParseTableT_ PrivateMetricEndpointPayload::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PrivateMetricEndpointPayload, _impl_._has_bits_),
      0, // no _extensions_
      3, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      3,  // 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<::private_metrics::PrivateMetricEndpointPayload>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .private_metrics.PrivateMetricEndpointPayload.ReportType report_type = 3;
      {::_pbi::TcParser::FastEvS1,
       {24, 0, 2,
        PROTOBUF_FIELD_OFFSET(PrivateMetricEndpointPayload, _impl_.report_type_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .private_metrics.EncryptedPrivateMetricReport encrypted_private_metric_report = 1;
      {PROTOBUF_FIELD_OFFSET(PrivateMetricEndpointPayload, _impl_.payload_.encrypted_private_metric_report_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .private_metrics.PrivateUserMetrics private_uma_report = 2;
      {PROTOBUF_FIELD_OFFSET(PrivateMetricEndpointPayload, _impl_.payload_.private_uma_report_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .private_metrics.PrivateMetricEndpointPayload.ReportType report_type = 3;
      {PROTOBUF_FIELD_OFFSET(PrivateMetricEndpointPayload, _impl_.report_type_), _Internal::kHasBitsOffset + 0, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnum)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::private_metrics::EncryptedPrivateMetricReport>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::private_metrics::EncryptedPrivateMetricReport_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::private_metrics::PrivateUserMetrics>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::private_metrics::PrivateUserMetrics_globals_},
        #endif
        {::_pbi::FieldAuxEnumData{}, ::private_metrics::PrivateMetricEndpointPayload_ReportType_internal_data_},
    }},
    {{
    }},
  };
}


inline constexpr PrivateMetricEndpointPayload::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        report_type_{static_cast< ::private_metrics::PrivateMetricEndpointPayload_ReportType >(1)},
        payload_{},
        _oneof_case_{} {}

template <typename>
constexpr PrivateMetricEndpointPayload::PrivateMetricEndpointPayload(::_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 PrivateMetricEndpointPayload::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) PrivateMetricEndpointPayload(arena);
}
constexpr auto PrivateMetricEndpointPayload::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PrivateMetricEndpointPayload), alignof(PrivateMetricEndpointPayload));
}
constexpr auto PrivateMetricEndpointPayload::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
          &PrivateMetricEndpointPayload::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<PrivateMetricEndpointPayload>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &PrivateMetricEndpointPayload::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<PrivateMetricEndpointPayload>(), &PrivateMetricEndpointPayload::ByteSizeLong,
              &PrivateMetricEndpointPayload::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(PrivateMetricEndpointPayload, _impl_._cached_size_),
          true,
      },
      "private_metrics.PrivateMetricEndpointPayload",
  };
}
struct PrivateMetricEndpointPayloadGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr PrivateMetricEndpointPayloadGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 PrivateMetricEndpointPayload_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(PrivateMetricEndpointPayload::InternalGenerateClassData_(
            _default, &PrivateMetricEndpointPayload_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<PrivateMetricEndpointPayload>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~PrivateMetricEndpointPayloadGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) PrivateMetricEndpointPayload _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<PrivateMetricEndpointPayload>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(PrivateMetricEndpointPayloadGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

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

constexpr PrivateMetricReport::ParseTableT_ PrivateMetricReport::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PrivateMetricReport, _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
      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<::private_metrics::PrivateMetricReport>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // fixed64 ephemeral_id = 1;
      {::_pbi::TcParser::FastF64S1,
       {9, 1, 0,
        PROTOBUF_FIELD_OFFSET(PrivateMetricReport, _impl_.ephemeral_id_)}},
      // repeated .private_metrics.PrivateMetricReport.Event events = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(PrivateMetricReport, _impl_.events_)}},
      // fixed64 epoch_id = 3;
      {::_pbi::TcParser::FastF64S1,
       {25, 2, 0,
        PROTOBUF_FIELD_OFFSET(PrivateMetricReport, _impl_.epoch_id_)}},
    }}, {{
      65535, 65535
    }}, {{
      // fixed64 ephemeral_id = 1;
      {PROTOBUF_FIELD_OFFSET(PrivateMetricReport, _impl_.ephemeral_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)},
      // repeated .private_metrics.PrivateMetricReport.Event events = 2;
      {PROTOBUF_FIELD_OFFSET(PrivateMetricReport, _impl_.events_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // fixed64 epoch_id = 3;
      {PROTOBUF_FIELD_OFFSET(PrivateMetricReport, _impl_.epoch_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::private_metrics::PrivateMetricReport_Event>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::private_metrics::PrivateMetricReport_Event_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr PrivateMetricReport::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        events_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::private_metrics::PrivateMetricReport,
            PROTOBUF_FIELD_OFFSET(::private_metrics::PrivateMetricReport, _impl_.events_)>()
         }
        ,
        ephemeral_id_{::uint64_t{0u}},
        epoch_id_{::uint64_t{0u}} {}

template <typename>
constexpr PrivateMetricReport::PrivateMetricReport(::_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 PrivateMetricReport::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) PrivateMetricReport(arena);
}
constexpr auto PrivateMetricReport::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PrivateMetricReport), alignof(PrivateMetricReport));
}
constexpr auto PrivateMetricReport::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
          &PrivateMetricReport::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<PrivateMetricReport>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &PrivateMetricReport::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<PrivateMetricReport>(), &PrivateMetricReport::ByteSizeLong,
              &PrivateMetricReport::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(PrivateMetricReport, _impl_._cached_size_),
          true,
      },
      "private_metrics.PrivateMetricReport",
  };
}
struct PrivateMetricReportGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr PrivateMetricReportGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 PrivateMetricReport_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(PrivateMetricReport::InternalGenerateClassData_(
            _default, &PrivateMetricReport_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<PrivateMetricReport>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~PrivateMetricReportGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) PrivateMetricReport _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<PrivateMetricReport>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(PrivateMetricReportGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST PrivateMetricReportGlobalsTypeInternal PrivateMetricReport_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* PrivateMetricReport_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return PrivateMetricReport_globals_.GetClassData();
#else
  return PrivateMetricReport_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace private_metrics
namespace private_metrics {
PROTOBUF_CONSTINIT const uint32_t EncryptedPrivateMetricReport_ReportType_internal_data_[] = {
    131072u, 0u, };
static const char EncryptedPrivateMetricReport_ReportType_names[] = {
    "DWA"
    "REPORT_TYPE_INVALID"
};

static const ::google::protobuf::internal::EnumEntry EncryptedPrivateMetricReport_ReportType_entries[] = {
    {{&EncryptedPrivateMetricReport_ReportType_names[0], 3}, 1},
    {{&EncryptedPrivateMetricReport_ReportType_names[3], 19}, 0},
};

static const int EncryptedPrivateMetricReport_ReportType_entries_by_number[] = {
    1,  // 0 -> REPORT_TYPE_INVALID
    0,  // 1 -> DWA
};

bool EncryptedPrivateMetricReport_ReportType_Parse(::absl::string_view name,
                                  EncryptedPrivateMetricReport_ReportType* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      EncryptedPrivateMetricReport_ReportType_entries, 2, name, &int_value);
  if (success) {
    *value = static_cast<EncryptedPrivateMetricReport_ReportType>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    EncryptedPrivateMetricReport_ReportType_strings[2] = {};

const ::std::string& EncryptedPrivateMetricReport_ReportType_Name(EncryptedPrivateMetricReport_ReportType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      EncryptedPrivateMetricReport_ReportType_entries, EncryptedPrivateMetricReport_ReportType_entries_by_number, 2,
      EncryptedPrivateMetricReport_ReportType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(EncryptedPrivateMetricReport_ReportType_entries,
                                  EncryptedPrivateMetricReport_ReportType_entries_by_number,
                                  2, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : EncryptedPrivateMetricReport_ReportType_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t PrivateMetricEndpointPayload_ReportType_internal_data_[] = {
    131073u, 32u, 2u, };
static const char PrivateMetricEndpointPayload_ReportType_names[] = {
    "DWA"
    "PUMA"
    "REPORT_TYPE_INVALID"
};

static const ::google::protobuf::internal::EnumEntry PrivateMetricEndpointPayload_ReportType_entries[] = {
    {{&PrivateMetricEndpointPayload_ReportType_names[0], 3}, 2},
    {{&PrivateMetricEndpointPayload_ReportType_names[3], 4}, 4},
    {{&PrivateMetricEndpointPayload_ReportType_names[7], 19}, 1},
};

static const int PrivateMetricEndpointPayload_ReportType_entries_by_number[] = {
    2,  // 1 -> REPORT_TYPE_INVALID
    0,  // 2 -> DWA
    1,  // 4 -> PUMA
};

bool PrivateMetricEndpointPayload_ReportType_Parse(::absl::string_view name,
                                  PrivateMetricEndpointPayload_ReportType* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      PrivateMetricEndpointPayload_ReportType_entries, 3, name, &int_value);
  if (success) {
    *value = static_cast<PrivateMetricEndpointPayload_ReportType>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    PrivateMetricEndpointPayload_ReportType_strings[3] = {};

const ::std::string& PrivateMetricEndpointPayload_ReportType_Name(PrivateMetricEndpointPayload_ReportType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      PrivateMetricEndpointPayload_ReportType_entries, PrivateMetricEndpointPayload_ReportType_entries_by_number, 3,
      PrivateMetricEndpointPayload_ReportType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(PrivateMetricEndpointPayload_ReportType_entries,
                                  PrivateMetricEndpointPayload_ReportType_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PrivateMetricEndpointPayload_ReportType_strings[idx].get();
}
// ===================================================================

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

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

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

  // @@protoc_insertion_point(copy_constructor:private_metrics.PrivateMetricReportHeader)
}
PROTOBUF_NDEBUG_INLINE PrivateMetricReportHeader::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        key_id_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite PrivateMetricReportHeader_class_data_ =
    PrivateMetricReportHeader::InternalGenerateClassData_(PrivateMetricReportHeader_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PrivateMetricReportHeader::GetClassData() const {
  return PrivateMetricReportHeader_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PrivateMetricReportHeader::GetClassData() const {
  return PrivateMetricReportHeader_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const PrivateMetricReportHeader::ParseTableT_
    PrivateMetricReportHeader::_table_ =
        PrivateMetricReportHeader::InternalGenerateParseTable_(PrivateMetricReportHeader_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void PrivateMetricReportHeader::Clear() {
// @@protoc_insertion_point(message_clear_start:private_metrics.PrivateMetricReportHeader)
  ::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_.key_id_.ClearNonDefaultToEmpty();
  }
  _impl_.epoch_id_ = ::uint64_t{0u};
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // fixed64 epoch_id = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFixed64ToArray(
        2, this_._internal_epoch_id(), 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:private_metrics.PrivateMetricReportHeader)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t PrivateMetricReportHeader::ByteSizeLong(const MessageLite& base) {
  const PrivateMetricReportHeader& this_ = static_cast<const PrivateMetricReportHeader&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t PrivateMetricReportHeader::ByteSizeLong() const {
  const PrivateMetricReportHeader& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:private_metrics.PrivateMetricReportHeader)
  ::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;
   {
    // bytes key_id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_key_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 PrivateMetricReportHeader::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PrivateMetricReportHeader*>(&to_msg);
  auto& from = static_cast<const PrivateMetricReportHeader&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:private_metrics.PrivateMetricReportHeader)
  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_key_id(from._internal_key_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.epoch_id_ = from._impl_.epoch_id_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void PrivateMetricReportHeader::InternalSwap(PrivateMetricReportHeader* 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_.key_id_, &other->_impl_.key_id_, arena);
  swap(_impl_.epoch_id_, other->_impl_.epoch_id_);
}

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

EncryptedPrivateMetricReport::EncryptedPrivateMetricReport(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, EncryptedPrivateMetricReport_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:private_metrics.EncryptedPrivateMetricReport)
}
PROTOBUF_NDEBUG_INLINE EncryptedPrivateMetricReport::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::private_metrics::EncryptedPrivateMetricReport& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        encrypted_report_(arena, from.encrypted_report_),
        serialized_report_header_(arena, from.serialized_report_header_),
        encrypted_symmetric_key_(arena, from.encrypted_symmetric_key_),
        encapsulated_public_key_(arena, from.encapsulated_public_key_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  EncryptedPrivateMetricReport* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  _impl_.report_header_ = (CheckHasBit(cached_has_bits, 0x00000010U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.report_header_)
                : nullptr;
  _impl_.report_type_ = from._impl_.report_type_;

  // @@protoc_insertion_point(copy_constructor:private_metrics.EncryptedPrivateMetricReport)
}
PROTOBUF_NDEBUG_INLINE EncryptedPrivateMetricReport::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        encrypted_report_(arena),
        serialized_report_header_(arena),
        encrypted_symmetric_key_(arena),
        encapsulated_public_key_(arena) {}

inline void EncryptedPrivateMetricReport::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, report_header_),
           0,
           offsetof(Impl_, report_type_) -
               offsetof(Impl_, report_header_) +
               sizeof(Impl_::report_type_));
}
EncryptedPrivateMetricReport::~EncryptedPrivateMetricReport() {
  // @@protoc_insertion_point(destructor:private_metrics.EncryptedPrivateMetricReport)
  SharedDtor(*this);
}
inline void EncryptedPrivateMetricReport::SharedDtor(MessageLite& self) {
  EncryptedPrivateMetricReport& this_ = static_cast<EncryptedPrivateMetricReport&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.encrypted_report_.Destroy();
  this_._impl_.serialized_report_header_.Destroy();
  this_._impl_.encrypted_symmetric_key_.Destroy();
  this_._impl_.encapsulated_public_key_.Destroy();
  delete this_._impl_.report_header_;
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite EncryptedPrivateMetricReport_class_data_ =
    EncryptedPrivateMetricReport::InternalGenerateClassData_(EncryptedPrivateMetricReport_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
EncryptedPrivateMetricReport::GetClassData() const {
  return EncryptedPrivateMetricReport_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
EncryptedPrivateMetricReport::GetClassData() const {
  return EncryptedPrivateMetricReport_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const EncryptedPrivateMetricReport::ParseTableT_
    EncryptedPrivateMetricReport::_table_ =
        EncryptedPrivateMetricReport::InternalGenerateParseTable_(EncryptedPrivateMetricReport_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void EncryptedPrivateMetricReport::Clear() {
// @@protoc_insertion_point(message_clear_start:private_metrics.EncryptedPrivateMetricReport)
  ::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, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.encrypted_report_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.serialized_report_header_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.encrypted_symmetric_key_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.encapsulated_public_key_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      ABSL_DCHECK(_impl_.report_header_ != nullptr);
      _impl_.report_header_->Clear();
    }
  }
  _impl_.report_type_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // bytes serialized_report_header = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    const ::std::string& _s = this_._internal_serialized_report_header();
    target = stream->WriteBytesMaybeAliased(2, _s, target);
  }

  // .private_metrics.PrivateMetricReportHeader report_header = 3;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.report_header_, this_._impl_.report_header_->GetCachedSize(), target,
        stream);
  }

  // .private_metrics.EncryptedPrivateMetricReport.ReportType report_type = 4;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        4, this_._internal_report_type(), target);
  }

  // bytes encrypted_symmetric_key = 5;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    const ::std::string& _s = this_._internal_encrypted_symmetric_key();
    target = stream->WriteBytesMaybeAliased(5, _s, target);
  }

  // bytes encapsulated_public_key = 6;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    const ::std::string& _s = this_._internal_encapsulated_public_key();
    target = stream->WriteBytesMaybeAliased(6, _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:private_metrics.EncryptedPrivateMetricReport)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t EncryptedPrivateMetricReport::ByteSizeLong(const MessageLite& base) {
  const EncryptedPrivateMetricReport& this_ = static_cast<const EncryptedPrivateMetricReport&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t EncryptedPrivateMetricReport::ByteSizeLong() const {
  const EncryptedPrivateMetricReport& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:private_metrics.EncryptedPrivateMetricReport)
  ::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, 0x0000003fU)) {
    // bytes encrypted_report = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_encrypted_report());
    }
    // bytes serialized_report_header = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_serialized_report_header());
    }
    // bytes encrypted_symmetric_key = 5;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_encrypted_symmetric_key());
    }
    // bytes encapsulated_public_key = 6;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_encapsulated_public_key());
    }
    // .private_metrics.PrivateMetricReportHeader report_header = 3;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.report_header_);
    }
    // .private_metrics.EncryptedPrivateMetricReport.ReportType report_type = 4;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_report_type());
    }
  }
  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 EncryptedPrivateMetricReport::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<EncryptedPrivateMetricReport*>(&to_msg);
  auto& from = static_cast<const EncryptedPrivateMetricReport&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:private_metrics.EncryptedPrivateMetricReport)
  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, 0x0000003fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_encrypted_report(from._internal_encrypted_report());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_serialized_report_header(from._internal_serialized_report_header());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_encrypted_symmetric_key(from._internal_encrypted_symmetric_key());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_encapsulated_public_key(from._internal_encapsulated_public_key());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      ABSL_DCHECK(from._impl_.report_header_ != nullptr);
      if (_this->_impl_.report_header_ == nullptr) {
        _this->_impl_.report_header_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.report_header_);
      } else {
        _this->_impl_.report_header_->MergeFrom(*from._impl_.report_header_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.report_type_ = from._impl_.report_type_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void EncryptedPrivateMetricReport::InternalSwap(EncryptedPrivateMetricReport* 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_.encrypted_report_, &other->_impl_.encrypted_report_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.serialized_report_header_, &other->_impl_.serialized_report_header_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.encrypted_symmetric_key_, &other->_impl_.encrypted_symmetric_key_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.encapsulated_public_key_, &other->_impl_.encapsulated_public_key_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_.report_type_)
      + sizeof(EncryptedPrivateMetricReport::_impl_.report_type_)
      - PROTOBUF_FIELD_OFFSET(EncryptedPrivateMetricReport, _impl_.report_header_)>(
          reinterpret_cast<char*>(&_impl_.report_header_),
          reinterpret_cast<char*>(&other->_impl_.report_header_));
}

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

void PrivateMetricReport_Event::set_allocated_dwa_event(::dwa::DeidentifiedWebAnalyticsEvent* PROTOBUF_NULLABLE dwa_event) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_data();
  if (dwa_event) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(dwa_event)->GetArena();
    if (message_arena != submessage_arena) {
      dwa_event = ::google::protobuf::internal::GetOwnedMessage(message_arena, dwa_event, submessage_arena);
    }
    set_has_dwa_event();
    _impl_.data_.dwa_event_ = dwa_event;
  }
  // @@protoc_insertion_point(field_set_allocated:private_metrics.PrivateMetricReport.Event.dwa_event)
}
void PrivateMetricReport_Event::clear_dwa_event() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (data_case() == kDwaEvent) {
    if (GetArena() == nullptr) {
      delete _impl_.data_.dwa_event_;
    } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
      if (_impl_.data_.dwa_event_ != nullptr) {
        _impl_.data_.dwa_event_->Clear();
      }
    }
    clear_has_data();
  }
}
PrivateMetricReport_Event::PrivateMetricReport_Event(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PrivateMetricReport_Event_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:private_metrics.PrivateMetricReport.Event)
}
PROTOBUF_NDEBUG_INLINE PrivateMetricReport_Event::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::private_metrics::PrivateMetricReport_Event& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        k_anonymity_buckets_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::private_metrics::PrivateMetricReport_Event,
              PROTOBUF_FIELD_OFFSET(::private_metrics::PrivateMetricReport_Event, _impl_.k_anonymity_buckets_)>()
          , from.k_anonymity_buckets_
        }
        ,
        data_{},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  PrivateMetricReport_Event* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  switch (data_case()) {
    case DATA_NOT_SET:
      break;
      case kDwaEvent:
        _impl_.data_.dwa_event_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.data_.dwa_event_);
        break;
  }

  // @@protoc_insertion_point(copy_constructor:private_metrics.PrivateMetricReport.Event)
}
PROTOBUF_NDEBUG_INLINE PrivateMetricReport_Event::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        k_anonymity_buckets_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::private_metrics::PrivateMetricReport_Event,
            PROTOBUF_FIELD_OFFSET(::private_metrics::PrivateMetricReport_Event, _impl_.k_anonymity_buckets_)>()
         }
        ,
        data_{},
        _oneof_case_{} {}

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

void PrivateMetricReport_Event::clear_data() {
// @@protoc_insertion_point(one_of_clear_start:private_metrics.PrivateMetricReport.Event)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (data_case()) {
    case kDwaEvent: {
      if (GetArena() == nullptr) {
        delete _impl_.data_.dwa_event_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.data_.dwa_event_ != nullptr) {
          _impl_.data_.dwa_event_->Clear();
        }
      }
      break;
    }
    case DATA_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = DATA_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite PrivateMetricReport_Event_class_data_ =
    PrivateMetricReport_Event::InternalGenerateClassData_(PrivateMetricReport_Event_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PrivateMetricReport_Event::GetClassData() const {
  return PrivateMetricReport_Event_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PrivateMetricReport_Event::GetClassData() const {
  return PrivateMetricReport_Event_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const PrivateMetricReport_Event::ParseTableT_
    PrivateMetricReport_Event::_table_ =
        PrivateMetricReport_Event::InternalGenerateParseTable_(PrivateMetricReport_Event_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void PrivateMetricReport_Event::Clear() {
// @@protoc_insertion_point(message_clear_start:private_metrics.PrivateMetricReport.Event)
  ::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_.k_anonymity_buckets_.Clear();
  }
  clear_data();
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated fixed64 k_anonymity_buckets = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (this_._internal_k_anonymity_buckets_size() > 0) {
      target = stream->WriteFixedPacked(1, this_._internal_k_anonymity_buckets(), target);
    }
  }

  // .dwa.DeidentifiedWebAnalyticsEvent dwa_event = 2;
  if (this_.data_case() == kDwaEvent) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.data_.dwa_event_, this_._impl_.data_.dwa_event_->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:private_metrics.PrivateMetricReport.Event)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t PrivateMetricReport_Event::ByteSizeLong(const MessageLite& base) {
  const PrivateMetricReport_Event& this_ = static_cast<const PrivateMetricReport_Event&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t PrivateMetricReport_Event::ByteSizeLong() const {
  const PrivateMetricReport_Event& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:private_metrics.PrivateMetricReport.Event)
  ::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 fixed64 k_anonymity_buckets = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ::size_t data_size = ::size_t{8} *
          ::_pbi::FromIntSize(this_._internal_k_anonymity_buckets_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;
    }
  }
  switch (this_.data_case()) {
    // .dwa.DeidentifiedWebAnalyticsEvent dwa_event = 2;
    case kDwaEvent: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.data_.dwa_event_);
      break;
    }
    case DATA_NOT_SET: {
      break;
    }
  }
  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 PrivateMetricReport_Event::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PrivateMetricReport_Event*>(&to_msg);
  auto& from = static_cast<const PrivateMetricReport_Event&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:private_metrics.PrivateMetricReport.Event)
  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_k_anonymity_buckets()->MergeFrom(from._internal_k_anonymity_buckets());
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  if (const uint32_t oneof_from_case =
          from._impl_._oneof_case_[0]) {
    const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
    const bool oneof_needs_init = oneof_to_case != oneof_from_case;
    if (oneof_needs_init) {
      if (oneof_to_case != 0) {
        _this->clear_data();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kDwaEvent: {
        if (oneof_needs_init) {
          _this->_impl_.data_.dwa_event_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.data_.dwa_event_);
        } else {
          _this->_impl_.data_.dwa_event_->MergeFrom(*from._impl_.data_.dwa_event_);
        }
        break;
      }
      case DATA_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void PrivateMetricReport_Event::CopyFrom(const PrivateMetricReport_Event& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:private_metrics.PrivateMetricReport.Event)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void PrivateMetricReport_Event::InternalSwap(PrivateMetricReport_Event* 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_.k_anonymity_buckets_.InternalSwap(&other->_impl_.k_anonymity_buckets_);
  swap(_impl_.data_, other->_impl_.data_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  PrivateMetricReport* 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_, ephemeral_id_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, ephemeral_id_),
           offsetof(Impl_, epoch_id_) -
               offsetof(Impl_, ephemeral_id_) +
               sizeof(Impl_::epoch_id_));

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

inline void PrivateMetricReport::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, ephemeral_id_),
           0,
           offsetof(Impl_, epoch_id_) -
               offsetof(Impl_, ephemeral_id_) +
               sizeof(Impl_::epoch_id_));
}
PrivateMetricReport::~PrivateMetricReport() {
  // @@protoc_insertion_point(destructor:private_metrics.PrivateMetricReport)
  SharedDtor(*this);
}
inline void PrivateMetricReport::SharedDtor(MessageLite& self) {
  PrivateMetricReport& this_ = static_cast<PrivateMetricReport&>(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 PrivateMetricReport_class_data_ =
    PrivateMetricReport::InternalGenerateClassData_(PrivateMetricReport_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PrivateMetricReport::GetClassData() const {
  return PrivateMetricReport_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PrivateMetricReport::GetClassData() const {
  return PrivateMetricReport_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const PrivateMetricReport::ParseTableT_
    PrivateMetricReport::_table_ =
        PrivateMetricReport::InternalGenerateParseTable_(PrivateMetricReport_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void PrivateMetricReport::Clear() {
// @@protoc_insertion_point(message_clear_start:private_metrics.PrivateMetricReport)
  ::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_.events_.Clear();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
    ::memset(&_impl_.ephemeral_id_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.epoch_id_) -
        reinterpret_cast<char*>(&_impl_.ephemeral_id_)) + sizeof(_impl_.epoch_id_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // fixed64 ephemeral_id = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFixed64ToArray(
        1, this_._internal_ephemeral_id(), target);
  }

  // repeated .private_metrics.PrivateMetricReport.Event events = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_events_size());
         i < n; i++) {
      const auto& repfield = this_._internal_events().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // fixed64 epoch_id = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFixed64ToArray(
        3, this_._internal_epoch_id(), 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:private_metrics.PrivateMetricReport)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t PrivateMetricReport::ByteSizeLong(const MessageLite& base) {
  const PrivateMetricReport& this_ = static_cast<const PrivateMetricReport&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t PrivateMetricReport::ByteSizeLong() const {
  const PrivateMetricReport& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:private_metrics.PrivateMetricReport)
  ::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 += ::absl::popcount(0x00000006U & cached_has_bits) * 9;
   {
    // repeated .private_metrics.PrivateMetricReport.Event events = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_events_size();
      for (const auto& msg : this_._internal_events()) {
        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 PrivateMetricReport::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PrivateMetricReport*>(&to_msg);
  auto& from = static_cast<const PrivateMetricReport&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:private_metrics.PrivateMetricReport)
  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_events()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_events());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.ephemeral_id_ = from._impl_.ephemeral_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.epoch_id_ = from._impl_.epoch_id_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void PrivateMetricReport::InternalSwap(PrivateMetricReport* 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_.events_.InternalSwap(&other->_impl_.events_);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(PrivateMetricReport, _impl_.epoch_id_)
      + sizeof(PrivateMetricReport::_impl_.epoch_id_)
      - PROTOBUF_FIELD_OFFSET(PrivateMetricReport, _impl_.ephemeral_id_)>(
          reinterpret_cast<char*>(&_impl_.ephemeral_id_),
          reinterpret_cast<char*>(&other->_impl_.ephemeral_id_));
}

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

void PrivateMetricEndpointPayload::set_allocated_encrypted_private_metric_report(::private_metrics::EncryptedPrivateMetricReport* PROTOBUF_NULLABLE encrypted_private_metric_report) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_payload();
  if (encrypted_private_metric_report) {
    ::google::protobuf::Arena* submessage_arena = encrypted_private_metric_report->GetArena();
    if (message_arena != submessage_arena) {
      encrypted_private_metric_report = ::google::protobuf::internal::GetOwnedMessage(message_arena, encrypted_private_metric_report, submessage_arena);
    }
    set_has_encrypted_private_metric_report();
    _impl_.payload_.encrypted_private_metric_report_ = encrypted_private_metric_report;
  }
  // @@protoc_insertion_point(field_set_allocated:private_metrics.PrivateMetricEndpointPayload.encrypted_private_metric_report)
}
void PrivateMetricEndpointPayload::set_allocated_private_uma_report(::private_metrics::PrivateUserMetrics* PROTOBUF_NULLABLE private_uma_report) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_payload();
  if (private_uma_report) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(private_uma_report)->GetArena();
    if (message_arena != submessage_arena) {
      private_uma_report = ::google::protobuf::internal::GetOwnedMessage(message_arena, private_uma_report, submessage_arena);
    }
    set_has_private_uma_report();
    _impl_.payload_.private_uma_report_ = private_uma_report;
  }
  // @@protoc_insertion_point(field_set_allocated:private_metrics.PrivateMetricEndpointPayload.private_uma_report)
}
void PrivateMetricEndpointPayload::clear_private_uma_report() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (payload_case() == kPrivateUmaReport) {
    if (GetArena() == nullptr) {
      delete _impl_.payload_.private_uma_report_;
    } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
      if (_impl_.payload_.private_uma_report_ != nullptr) {
        _impl_.payload_.private_uma_report_->Clear();
      }
    }
    clear_has_payload();
  }
}
PrivateMetricEndpointPayload::PrivateMetricEndpointPayload(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PrivateMetricEndpointPayload_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:private_metrics.PrivateMetricEndpointPayload)
}
PROTOBUF_NDEBUG_INLINE PrivateMetricEndpointPayload::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::private_metrics::PrivateMetricEndpointPayload& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        payload_{},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  PrivateMetricEndpointPayload* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  _impl_.report_type_ = from._impl_.report_type_;
  switch (payload_case()) {
    case PAYLOAD_NOT_SET:
      break;
      case kEncryptedPrivateMetricReport:
        _impl_.payload_.encrypted_private_metric_report_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.payload_.encrypted_private_metric_report_);
        break;
      case kPrivateUmaReport:
        _impl_.payload_.private_uma_report_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.payload_.private_uma_report_);
        break;
  }

  // @@protoc_insertion_point(copy_constructor:private_metrics.PrivateMetricEndpointPayload)
}
PROTOBUF_NDEBUG_INLINE PrivateMetricEndpointPayload::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        report_type_{static_cast< ::private_metrics::PrivateMetricEndpointPayload_ReportType >(1)},
        payload_{},
        _oneof_case_{} {}

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

void PrivateMetricEndpointPayload::clear_payload() {
// @@protoc_insertion_point(one_of_clear_start:private_metrics.PrivateMetricEndpointPayload)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (payload_case()) {
    case kEncryptedPrivateMetricReport: {
      if (GetArena() == nullptr) {
        delete _impl_.payload_.encrypted_private_metric_report_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.payload_.encrypted_private_metric_report_ != nullptr) {
          _impl_.payload_.encrypted_private_metric_report_->Clear();
        }
      }
      break;
    }
    case kPrivateUmaReport: {
      if (GetArena() == nullptr) {
        delete _impl_.payload_.private_uma_report_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.payload_.private_uma_report_ != nullptr) {
          _impl_.payload_.private_uma_report_->Clear();
        }
      }
      break;
    }
    case PAYLOAD_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = PAYLOAD_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite PrivateMetricEndpointPayload_class_data_ =
    PrivateMetricEndpointPayload::InternalGenerateClassData_(PrivateMetricEndpointPayload_globals_._default);

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

  _impl_.report_type_ = 1;
  clear_payload();
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  switch (this_.payload_case()) {
    case kEncryptedPrivateMetricReport: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          1, *this_._impl_.payload_.encrypted_private_metric_report_, this_._impl_.payload_.encrypted_private_metric_report_->GetCachedSize(), target,
          stream);
      break;
    }
    case kPrivateUmaReport: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          2, *this_._impl_.payload_.private_uma_report_, this_._impl_.payload_.private_uma_report_->GetCachedSize(), target,
          stream);
      break;
    }
    default:
      break;
  }
  cached_has_bits = this_._impl_._has_bits_[0];
  // .private_metrics.PrivateMetricEndpointPayload.ReportType report_type = 3;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        3, this_._internal_report_type(), 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:private_metrics.PrivateMetricEndpointPayload)
  return target;
}

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

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

   {
    // .private_metrics.PrivateMetricEndpointPayload.ReportType report_type = 3;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_report_type());
    }
  }
  switch (this_.payload_case()) {
    // .private_metrics.EncryptedPrivateMetricReport encrypted_private_metric_report = 1;
    case kEncryptedPrivateMetricReport: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.payload_.encrypted_private_metric_report_);
      break;
    }
    // .private_metrics.PrivateUserMetrics private_uma_report = 2;
    case kPrivateUmaReport: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.payload_.private_uma_report_);
      break;
    }
    case PAYLOAD_NOT_SET: {
      break;
    }
  }
  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 PrivateMetricEndpointPayload::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PrivateMetricEndpointPayload*>(&to_msg);
  auto& from = static_cast<const PrivateMetricEndpointPayload&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:private_metrics.PrivateMetricEndpointPayload)
  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->_impl_.report_type_ = from._impl_.report_type_;
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  if (const uint32_t oneof_from_case =
          from._impl_._oneof_case_[0]) {
    const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
    const bool oneof_needs_init = oneof_to_case != oneof_from_case;
    if (oneof_needs_init) {
      if (oneof_to_case != 0) {
        _this->clear_payload();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kEncryptedPrivateMetricReport: {
        if (oneof_needs_init) {
          _this->_impl_.payload_.encrypted_private_metric_report_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.payload_.encrypted_private_metric_report_);
        } else {
          _this->_impl_.payload_.encrypted_private_metric_report_->MergeFrom(*from._impl_.payload_.encrypted_private_metric_report_);
        }
        break;
      }
      case kPrivateUmaReport: {
        if (oneof_needs_init) {
          _this->_impl_.payload_.private_uma_report_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.payload_.private_uma_report_);
        } else {
          _this->_impl_.payload_.private_uma_report_->MergeFrom(*from._impl_.payload_.private_uma_report_);
        }
        break;
      }
      case PAYLOAD_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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