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

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

constexpr Report_SourceCounts::ParseTableT_ Report_SourceCounts::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Report_SourceCounts, _impl_._has_bits_),
      0, // no _extensions_
      7, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967168,  // skipmap
      offsetof(ParseTableT_, field_entries),
      7,  // num_field_entries
      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<::ukm::Report_SourceCounts>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // int32 observed = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(Report_SourceCounts, _impl_.observed_)}},
      // int32 navigation_sources = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(Report_SourceCounts, _impl_.navigation_sources_)}},
      // int32 unmatched_sources = 3;
      {::_pbi::TcParser::FastV32S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(Report_SourceCounts, _impl_.unmatched_sources_)}},
      // int32 carryover_sources = 4;
      {::_pbi::TcParser::FastV32S1,
       {32, 3, 0,
        PROTOBUF_FIELD_OFFSET(Report_SourceCounts, _impl_.carryover_sources_)}},
      // int32 deferred_sources = 5;
      {::_pbi::TcParser::FastV32S1,
       {40, 4, 0,
        PROTOBUF_FIELD_OFFSET(Report_SourceCounts, _impl_.deferred_sources_)}},
      // int32 entryless_sources = 6;
      {::_pbi::TcParser::FastV32S1,
       {48, 5, 0,
        PROTOBUF_FIELD_OFFSET(Report_SourceCounts, _impl_.entryless_sources_)}},
      // int32 pruned_sources_age_seconds = 7;
      {::_pbi::TcParser::FastV32S1,
       {56, 6, 0,
        PROTOBUF_FIELD_OFFSET(Report_SourceCounts, _impl_.pruned_sources_age_seconds_)}},
    }}, {{
      65535, 65535
    }}, {{
      // int32 observed = 1;
      {PROTOBUF_FIELD_OFFSET(Report_SourceCounts, _impl_.observed_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 navigation_sources = 2;
      {PROTOBUF_FIELD_OFFSET(Report_SourceCounts, _impl_.navigation_sources_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 unmatched_sources = 3;
      {PROTOBUF_FIELD_OFFSET(Report_SourceCounts, _impl_.unmatched_sources_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 carryover_sources = 4;
      {PROTOBUF_FIELD_OFFSET(Report_SourceCounts, _impl_.carryover_sources_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 deferred_sources = 5;
      {PROTOBUF_FIELD_OFFSET(Report_SourceCounts, _impl_.deferred_sources_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 entryless_sources = 6;
      {PROTOBUF_FIELD_OFFSET(Report_SourceCounts, _impl_.entryless_sources_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 pruned_sources_age_seconds = 7;
      {PROTOBUF_FIELD_OFFSET(Report_SourceCounts, _impl_.pruned_sources_age_seconds_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr Report_SourceCounts::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        observed_{0},
        navigation_sources_{0},
        unmatched_sources_{0},
        carryover_sources_{0},
        deferred_sources_{0},
        entryless_sources_{0},
        pruned_sources_age_seconds_{0} {}

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

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

constexpr Report_DownsamplingRate::ParseTableT_ Report_DownsamplingRate::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Report_DownsamplingRate, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::ukm::Report_DownsamplingRate>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // fixed64 event_hash = 1;
      {::_pbi::TcParser::FastF64S1,
       {9, 0, 0,
        PROTOBUF_FIELD_OFFSET(Report_DownsamplingRate, _impl_.event_hash_)}},
      // uint32 standard_rate = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(Report_DownsamplingRate, _impl_.standard_rate_)}},
      // uint32 custom_rate = 3;
      {::_pbi::TcParser::FastV32S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(Report_DownsamplingRate, _impl_.custom_rate_)}},
    }}, {{
      65535, 65535
    }}, {{
      // fixed64 event_hash = 1;
      {PROTOBUF_FIELD_OFFSET(Report_DownsamplingRate, _impl_.event_hash_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)},
      // uint32 standard_rate = 2;
      {PROTOBUF_FIELD_OFFSET(Report_DownsamplingRate, _impl_.standard_rate_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // uint32 custom_rate = 3;
      {PROTOBUF_FIELD_OFFSET(Report_DownsamplingRate, _impl_.custom_rate_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr Report_DownsamplingRate::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        event_hash_{::uint64_t{0u}},
        standard_rate_{0u},
        custom_rate_{0u} {}

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

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

constexpr Report::ParseTableT_ Report::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Report, _impl_._has_bits_),
      0, // no _extensions_
      14, 120,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294950912,  // skipmap
      offsetof(ParseTableT_, field_entries),
      14,  // num_field_entries
      10,  // 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<::ukm::Report>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // fixed64 client_id = 1;
      {::_pbi::TcParser::FastF64S1,
       {9, 8, 0,
        PROTOBUF_FIELD_OFFSET(Report, _impl_.client_id_)}},
      // .metrics.SystemProfileProto system_profile = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 5, 0,
        PROTOBUF_FIELD_OFFSET(Report, _impl_.system_profile_)}},
      // repeated .ukm.Source sources = 3;
      {::_pbi::TcParser::FastMtR1,
       {26, 0, 1,
        PROTOBUF_FIELD_OFFSET(Report, _impl_.sources_)}},
      // repeated .ukm.Entry entries = 4;
      {::_pbi::TcParser::FastMtR1,
       {34, 1, 2,
        PROTOBUF_FIELD_OFFSET(Report, _impl_.entries_)}},
      // int32 session_id = 5;
      {::_pbi::TcParser::FastV32S1,
       {40, 9, 0,
        PROTOBUF_FIELD_OFFSET(Report, _impl_.session_id_)}},
      // int32 report_id = 6;
      {::_pbi::TcParser::FastV32S1,
       {48, 10, 0,
        PROTOBUF_FIELD_OFFSET(Report, _impl_.report_id_)}},
      // repeated .ukm.Aggregate aggregates = 7;
      {::_pbi::TcParser::FastMtR1,
       {58, 2, 3,
        PROTOBUF_FIELD_OFFSET(Report, _impl_.aggregates_)}},
      // bool is_continuous = 8;
      {::_pbi::TcParser::FastV8S1,
       {64, 11, 0,
        PROTOBUF_FIELD_OFFSET(Report, _impl_.is_continuous_)}},
      // .ukm.Report.LogRotationReason log_rotation_reason = 9;
      {::_pbi::TcParser::FastEr0S1,
       {72, 12, 3,
        PROTOBUF_FIELD_OFFSET(Report, _impl_.log_rotation_reason_)}},
      // .ukm.Report.SourceCounts source_counts = 10;
      {::_pbi::TcParser::FastMtS1,
       {82, 6, 4,
        PROTOBUF_FIELD_OFFSET(Report, _impl_.source_counts_)}},
      // .metrics.UserDemographicsProto user_demographics = 11;
      {::_pbi::TcParser::FastMtS1,
       {90, 7, 5,
        PROTOBUF_FIELD_OFFSET(Report, _impl_.user_demographics_)}},
      // .metrics.ChromeUserMetricsExtension.Product product = 12 [default = CHROME];
      {::_pbi::TcParser::FastEvS1,
       {96, 13, 9,
        PROTOBUF_FIELD_OFFSET(Report, _impl_.product_)}},
      // repeated .ukm.HighLevelWebFeatures web_features = 13;
      {::_pbi::TcParser::FastMtR1,
       {106, 3, 6,
        PROTOBUF_FIELD_OFFSET(Report, _impl_.web_features_)}},
      // repeated .ukm.Report.DownsamplingRate downsampling_rates = 14;
      {::_pbi::TcParser::FastMtR1,
       {114, 4, 7,
        PROTOBUF_FIELD_OFFSET(Report, _impl_.downsampling_rates_)}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // fixed64 client_id = 1;
      {PROTOBUF_FIELD_OFFSET(Report, _impl_.client_id_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)},
      // .metrics.SystemProfileProto system_profile = 2;
      {PROTOBUF_FIELD_OFFSET(Report, _impl_.system_profile_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .ukm.Source sources = 3;
      {PROTOBUF_FIELD_OFFSET(Report, _impl_.sources_), _Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .ukm.Entry entries = 4;
      {PROTOBUF_FIELD_OFFSET(Report, _impl_.entries_), _Internal::kHasBitsOffset + 1, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // int32 session_id = 5;
      {PROTOBUF_FIELD_OFFSET(Report, _impl_.session_id_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 report_id = 6;
      {PROTOBUF_FIELD_OFFSET(Report, _impl_.report_id_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // repeated .ukm.Aggregate aggregates = 7;
      {PROTOBUF_FIELD_OFFSET(Report, _impl_.aggregates_), _Internal::kHasBitsOffset + 2, 3, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // bool is_continuous = 8;
      {PROTOBUF_FIELD_OFFSET(Report, _impl_.is_continuous_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // .ukm.Report.LogRotationReason log_rotation_reason = 9;
      {PROTOBUF_FIELD_OFFSET(Report, _impl_.log_rotation_reason_), _Internal::kHasBitsOffset + 12, 8, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // .ukm.Report.SourceCounts source_counts = 10;
      {PROTOBUF_FIELD_OFFSET(Report, _impl_.source_counts_), _Internal::kHasBitsOffset + 6, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .metrics.UserDemographicsProto user_demographics = 11;
      {PROTOBUF_FIELD_OFFSET(Report, _impl_.user_demographics_), _Internal::kHasBitsOffset + 7, 5, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .metrics.ChromeUserMetricsExtension.Product product = 12 [default = CHROME];
      {PROTOBUF_FIELD_OFFSET(Report, _impl_.product_), _Internal::kHasBitsOffset + 13, 9, (0 | ::_fl::kFcOptional | ::_fl::kEnum)},
      // repeated .ukm.HighLevelWebFeatures web_features = 13;
      {PROTOBUF_FIELD_OFFSET(Report, _impl_.web_features_), _Internal::kHasBitsOffset + 3, 6, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .ukm.Report.DownsamplingRate downsampling_rates = 14;
      {PROTOBUF_FIELD_OFFSET(Report, _impl_.downsampling_rates_), _Internal::kHasBitsOffset + 4, 7, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::SystemProfileProto>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::SystemProfileProto_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::ukm::Source>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::ukm::Source_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::ukm::Entry>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::ukm::Entry_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::ukm::Aggregate>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::ukm::Aggregate_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::ukm::Report_SourceCounts>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::ukm::Report_SourceCounts_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::metrics::UserDemographicsProto>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::metrics::UserDemographicsProto_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::ukm::HighLevelWebFeatures>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::ukm::HighLevelWebFeatures_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::ukm::Report_DownsamplingRate>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::ukm::Report_DownsamplingRate_globals_},
        #endif
        {0, 3},
        {::_pbi::FieldAuxEnumData{}, ::metrics::ChromeUserMetricsExtension_Product_internal_data_},
    }},
    {{
    }},
  };
}


inline constexpr Report::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        sources_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::ukm::Report,
            PROTOBUF_FIELD_OFFSET(::ukm::Report, _impl_.sources_)>()
         }
        ,
        entries_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::ukm::Report,
            PROTOBUF_FIELD_OFFSET(::ukm::Report, _impl_.entries_)>()
         }
        ,
        aggregates_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::ukm::Report,
            PROTOBUF_FIELD_OFFSET(::ukm::Report, _impl_.aggregates_)>()
         }
        ,
        web_features_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::ukm::Report,
            PROTOBUF_FIELD_OFFSET(::ukm::Report, _impl_.web_features_)>()
         }
        ,
        downsampling_rates_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::ukm::Report,
            PROTOBUF_FIELD_OFFSET(::ukm::Report, _impl_.downsampling_rates_)>()
         }
        ,
        system_profile_{nullptr},
        source_counts_{nullptr},
        user_demographics_{nullptr},
        client_id_{::uint64_t{0u}},
        session_id_{0},
        report_id_{0},
        is_continuous_{false},
        log_rotation_reason_{static_cast< ::ukm::Report_LogRotationReason >(0)},
        product_{static_cast< ::metrics::ChromeUserMetricsExtension_Product >(0)} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ReportGlobalsTypeInternal Report_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* Report_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return Report_globals_.GetClassData();
#else
  return Report_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace ukm
namespace ukm {
PROTOBUF_CONSTINIT const uint32_t Report_LogRotationReason_internal_data_[] = {
    262144u, 0u, };
static const char Report_LogRotationReason_names[] = {
    "BACKGROUNDED"
    "SCHEDULED_ROTATION"
    "SHUTDOWN"
    "UNKNOWN"
};

static const ::google::protobuf::internal::EnumEntry Report_LogRotationReason_entries[] = {
    {{&Report_LogRotationReason_names[0], 12}, 2},
    {{&Report_LogRotationReason_names[12], 18}, 1},
    {{&Report_LogRotationReason_names[30], 8}, 3},
    {{&Report_LogRotationReason_names[38], 7}, 0},
};

static const int Report_LogRotationReason_entries_by_number[] = {
    3,  // 0 -> UNKNOWN
    1,  // 1 -> SCHEDULED_ROTATION
    0,  // 2 -> BACKGROUNDED
    2,  // 3 -> SHUTDOWN
};

bool Report_LogRotationReason_Parse(::absl::string_view name,
                                  Report_LogRotationReason* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      Report_LogRotationReason_entries, 4, name, &int_value);
  if (success) {
    *value = static_cast<Report_LogRotationReason>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    Report_LogRotationReason_strings[4] = {};

const ::std::string& Report_LogRotationReason_Name(Report_LogRotationReason value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      Report_LogRotationReason_entries, Report_LogRotationReason_entries_by_number, 4,
      Report_LogRotationReason_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(Report_LogRotationReason_entries,
                                  Report_LogRotationReason_entries_by_number,
                                  4, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Report_LogRotationReason_strings[idx].get();
}
// ===================================================================

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

inline void Report_SourceCounts::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, observed_),
           0,
           offsetof(Impl_, pruned_sources_age_seconds_) -
               offsetof(Impl_, observed_) +
               sizeof(Impl_::pruned_sources_age_seconds_));
}
Report_SourceCounts::~Report_SourceCounts() {
  // @@protoc_insertion_point(destructor:ukm.Report.SourceCounts)
  SharedDtor(*this);
}
inline void Report_SourceCounts::SharedDtor(MessageLite& self) {
  Report_SourceCounts& this_ = static_cast<Report_SourceCounts&>(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 Report_SourceCounts_class_data_ =
    Report_SourceCounts::InternalGenerateClassData_(Report_SourceCounts_globals_._default);

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

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

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

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

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

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

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

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

  // int32 entryless_sources = 6;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>(
            stream, this_._internal_entryless_sources(), target);
  }

  // int32 pruned_sources_age_seconds = 7;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>(
            stream, this_._internal_pruned_sources_age_seconds(), 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:ukm.Report.SourceCounts)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Report_SourceCounts::ByteSizeLong(const MessageLite& base) {
  const Report_SourceCounts& this_ = static_cast<const Report_SourceCounts&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Report_SourceCounts::ByteSizeLong() const {
  const Report_SourceCounts& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:ukm.Report.SourceCounts)
  ::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, 0x0000007fU)) {
    // int32 observed = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_observed());
    }
    // int32 navigation_sources = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_navigation_sources());
    }
    // int32 unmatched_sources = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_unmatched_sources());
    }
    // int32 carryover_sources = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_carryover_sources());
    }
    // int32 deferred_sources = 5;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_deferred_sources());
    }
    // int32 entryless_sources = 6;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_entryless_sources());
    }
    // int32 pruned_sources_age_seconds = 7;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_pruned_sources_age_seconds());
    }
  }
  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 Report_SourceCounts::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Report_SourceCounts*>(&to_msg);
  auto& from = static_cast<const Report_SourceCounts&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:ukm.Report.SourceCounts)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_impl_.observed_ = from._impl_.observed_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.navigation_sources_ = from._impl_.navigation_sources_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.unmatched_sources_ = from._impl_.unmatched_sources_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.carryover_sources_ = from._impl_.carryover_sources_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.deferred_sources_ = from._impl_.deferred_sources_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.entryless_sources_ = from._impl_.entryless_sources_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.pruned_sources_age_seconds_ = from._impl_.pruned_sources_age_seconds_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void Report_SourceCounts::CopyFrom(const Report_SourceCounts& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:ukm.Report.SourceCounts)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


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

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

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

inline void Report_DownsamplingRate::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, event_hash_),
           0,
           offsetof(Impl_, custom_rate_) -
               offsetof(Impl_, event_hash_) +
               sizeof(Impl_::custom_rate_));
}
Report_DownsamplingRate::~Report_DownsamplingRate() {
  // @@protoc_insertion_point(destructor:ukm.Report.DownsamplingRate)
  SharedDtor(*this);
}
inline void Report_DownsamplingRate::SharedDtor(MessageLite& self) {
  Report_DownsamplingRate& this_ = static_cast<Report_DownsamplingRate&>(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 Report_DownsamplingRate_class_data_ =
    Report_DownsamplingRate::InternalGenerateClassData_(Report_DownsamplingRate_globals_._default);

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

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

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

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

  // uint32 standard_rate = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        2, this_._internal_standard_rate(), target);
  }

  // uint32 custom_rate = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        3, this_._internal_custom_rate(), 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:ukm.Report.DownsamplingRate)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Report_DownsamplingRate::ByteSizeLong(const MessageLite& base) {
  const Report_DownsamplingRate& this_ = static_cast<const Report_DownsamplingRate&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Report_DownsamplingRate::ByteSizeLong() const {
  const Report_DownsamplingRate& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:ukm.Report.DownsamplingRate)
  ::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>(0x00000001U & cached_has_bits) * 9;
  if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
    // uint32 standard_rate = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_standard_rate());
    }
    // uint32 custom_rate = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_custom_rate());
    }
  }
  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 Report_DownsamplingRate::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Report_DownsamplingRate*>(&to_msg);
  auto& from = static_cast<const Report_DownsamplingRate&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:ukm.Report.DownsamplingRate)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

void Report_DownsamplingRate::CopyFrom(const Report_DownsamplingRate& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:ukm.Report.DownsamplingRate)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


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

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

void Report::clear_system_profile() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.system_profile_ != nullptr) _impl_.system_profile_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
}
void Report::clear_user_demographics() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.user_demographics_ != nullptr) _impl_.user_demographics_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000080U);
}
void Report::clear_sources() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.sources_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
void Report::clear_entries() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.entries_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
void Report::clear_web_features() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.web_features_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
void Report::clear_aggregates() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.aggregates_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
Report::Report(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, Report_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:ukm.Report)
}
PROTOBUF_NDEBUG_INLINE Report::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::ukm::Report& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        sources_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::ukm::Report,
              PROTOBUF_FIELD_OFFSET(::ukm::Report, _impl_.sources_)>()
          , from.sources_
        }
        ,
        entries_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::ukm::Report,
              PROTOBUF_FIELD_OFFSET(::ukm::Report, _impl_.entries_)>()
          , from.entries_
        }
        ,
        aggregates_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::ukm::Report,
              PROTOBUF_FIELD_OFFSET(::ukm::Report, _impl_.aggregates_)>()
          , from.aggregates_
        }
        ,
        web_features_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::ukm::Report,
              PROTOBUF_FIELD_OFFSET(::ukm::Report, _impl_.web_features_)>()
          , from.web_features_
        }
        ,
        downsampling_rates_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::ukm::Report,
              PROTOBUF_FIELD_OFFSET(::ukm::Report, _impl_.downsampling_rates_)>()
          , from.downsampling_rates_
        }
     {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Report* 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_.system_profile_ = (CheckHasBit(cached_has_bits, 0x00000020U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.system_profile_)
                : nullptr;
  _impl_.source_counts_ = (CheckHasBit(cached_has_bits, 0x00000040U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.source_counts_)
                : nullptr;
  _impl_.user_demographics_ = (CheckHasBit(cached_has_bits, 0x00000080U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.user_demographics_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, client_id_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, client_id_),
           offsetof(Impl_, product_) -
               offsetof(Impl_, client_id_) +
               sizeof(Impl_::product_));

  // @@protoc_insertion_point(copy_constructor:ukm.Report)
}
PROTOBUF_NDEBUG_INLINE Report::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        sources_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::ukm::Report,
            PROTOBUF_FIELD_OFFSET(::ukm::Report, _impl_.sources_)>()
         }
        ,
        entries_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::ukm::Report,
            PROTOBUF_FIELD_OFFSET(::ukm::Report, _impl_.entries_)>()
         }
        ,
        aggregates_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::ukm::Report,
            PROTOBUF_FIELD_OFFSET(::ukm::Report, _impl_.aggregates_)>()
         }
        ,
        web_features_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::ukm::Report,
            PROTOBUF_FIELD_OFFSET(::ukm::Report, _impl_.web_features_)>()
         }
        ,
        downsampling_rates_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::ukm::Report,
            PROTOBUF_FIELD_OFFSET(::ukm::Report, _impl_.downsampling_rates_)>()
         }
     {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Report_class_data_ =
    Report::InternalGenerateClassData_(Report_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Report::GetClassData() const {
  return Report_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Report::GetClassData() const {
  return Report_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Report::ParseTableT_
    Report::_table_ =
        Report::InternalGenerateParseTable_(Report_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Report::Clear() {
// @@protoc_insertion_point(message_clear_start:ukm.Report)
  ::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, 0x000000ffU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.sources_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.entries_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.aggregates_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.web_features_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.downsampling_rates_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      ABSL_DCHECK(_impl_.system_profile_ != nullptr);
      _impl_.system_profile_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      ABSL_DCHECK(_impl_.source_counts_ != nullptr);
      _impl_.source_counts_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      ABSL_DCHECK(_impl_.user_demographics_ != nullptr);
      _impl_.user_demographics_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) {
    ::memset(&_impl_.client_id_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.product_) -
        reinterpret_cast<char*>(&_impl_.client_id_)) + sizeof(_impl_.product_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // .metrics.SystemProfileProto system_profile = 2;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.system_profile_, this_._impl_.system_profile_->GetCachedSize(), target,
        stream);
  }

  // repeated .ukm.Source sources = 3;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_sources_size());
         i < n; i++) {
      const auto& repfield = this_._internal_sources().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              3, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // repeated .ukm.Entry entries = 4;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_entries_size());
         i < n; i++) {
      const auto& repfield = this_._internal_entries().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              4, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // int32 session_id = 5;
  if (CheckHasBit(cached_has_bits, 0x00000200U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>(
            stream, this_._internal_session_id(), target);
  }

  // int32 report_id = 6;
  if (CheckHasBit(cached_has_bits, 0x00000400U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>(
            stream, this_._internal_report_id(), target);
  }

  // repeated .ukm.Aggregate aggregates = 7;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_aggregates_size());
         i < n; i++) {
      const auto& repfield = this_._internal_aggregates().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              7, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // bool is_continuous = 8;
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        8, this_._internal_is_continuous(), target);
  }

  // .ukm.Report.LogRotationReason log_rotation_reason = 9;
  if (CheckHasBit(cached_has_bits, 0x00001000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        9, this_._internal_log_rotation_reason(), target);
  }

  // .ukm.Report.SourceCounts source_counts = 10;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        10, *this_._impl_.source_counts_, this_._impl_.source_counts_->GetCachedSize(), target,
        stream);
  }

  // .metrics.UserDemographicsProto user_demographics = 11;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        11, *this_._impl_.user_demographics_, this_._impl_.user_demographics_->GetCachedSize(), target,
        stream);
  }

  // .metrics.ChromeUserMetricsExtension.Product product = 12 [default = CHROME];
  if (CheckHasBit(cached_has_bits, 0x00002000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        12, this_._internal_product(), target);
  }

  // repeated .ukm.HighLevelWebFeatures web_features = 13;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_web_features_size());
         i < n; i++) {
      const auto& repfield = this_._internal_web_features().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              13, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // repeated .ukm.Report.DownsamplingRate downsampling_rates = 14;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_downsampling_rates_size());
         i < n; i++) {
      const auto& repfield = this_._internal_downsampling_rates().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              14, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Report::ByteSizeLong(const MessageLite& base) {
  const Report& this_ = static_cast<const Report&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Report::ByteSizeLong() const {
  const Report& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:ukm.Report)
  ::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>(0x00000100U & cached_has_bits) * 9;
  total_size += static_cast<bool>(0x00000800U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    // repeated .ukm.Source sources = 3;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_sources_size();
      for (const auto& msg : this_._internal_sources()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .ukm.Entry entries = 4;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1UL * this_._internal_entries_size();
      for (const auto& msg : this_._internal_entries()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .ukm.Aggregate aggregates = 7;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1UL * this_._internal_aggregates_size();
      for (const auto& msg : this_._internal_aggregates()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .ukm.HighLevelWebFeatures web_features = 13;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1UL * this_._internal_web_features_size();
      for (const auto& msg : this_._internal_web_features()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .ukm.Report.DownsamplingRate downsampling_rates = 14;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1UL * this_._internal_downsampling_rates_size();
      for (const auto& msg : this_._internal_downsampling_rates()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // .metrics.SystemProfileProto system_profile = 2;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.system_profile_);
    }
    // .ukm.Report.SourceCounts source_counts = 10;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.source_counts_);
    }
    // .metrics.UserDemographicsProto user_demographics = 11;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.user_demographics_);
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00003600U)) {
    // int32 session_id = 5;
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_session_id());
    }
    // int32 report_id = 6;
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_report_id());
    }
    // .ukm.Report.LogRotationReason log_rotation_reason = 9;
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_log_rotation_reason());
    }
    // .metrics.ChromeUserMetricsExtension.Product product = 12 [default = CHROME];
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_product());
    }
  }
  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 Report::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Report*>(&to_msg);
  auto& from = static_cast<const Report&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:ukm.Report)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_sources()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_sources());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_entries()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_entries());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_mutable_aggregates()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_aggregates());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_mutable_web_features()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_web_features());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_internal_mutable_downsampling_rates()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_downsampling_rates());
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      ABSL_DCHECK(from._impl_.system_profile_ != nullptr);
      if (_this->_impl_.system_profile_ == nullptr) {
        _this->_impl_.system_profile_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.system_profile_);
      } else {
        _this->_impl_.system_profile_->MergeFrom(*from._impl_.system_profile_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      ABSL_DCHECK(from._impl_.source_counts_ != nullptr);
      if (_this->_impl_.source_counts_ == nullptr) {
        _this->_impl_.source_counts_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.source_counts_);
      } else {
        _this->_impl_.source_counts_->MergeFrom(*from._impl_.source_counts_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      ABSL_DCHECK(from._impl_.user_demographics_ != nullptr);
      if (_this->_impl_.user_demographics_ == nullptr) {
        _this->_impl_.user_demographics_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.user_demographics_);
      } else {
        _this->_impl_.user_demographics_->MergeFrom(*from._impl_.user_demographics_);
      }
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _this->_impl_.client_id_ = from._impl_.client_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _this->_impl_.session_id_ = from._impl_.session_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _this->_impl_.report_id_ = from._impl_.report_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _this->_impl_.is_continuous_ = from._impl_.is_continuous_;
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      _this->_impl_.log_rotation_reason_ = from._impl_.log_rotation_reason_;
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      _this->_impl_.product_ = from._impl_.product_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void Report::InternalSwap(Report* 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_.sources_.InternalSwap(&other->_impl_.sources_);
  _impl_.entries_.InternalSwap(&other->_impl_.entries_);
  _impl_.aggregates_.InternalSwap(&other->_impl_.aggregates_);
  _impl_.web_features_.InternalSwap(&other->_impl_.web_features_);
  _impl_.downsampling_rates_.InternalSwap(&other->_impl_.downsampling_rates_);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Report, _impl_.product_)
      + sizeof(Report::_impl_.product_)
      - PROTOBUF_FIELD_OFFSET(Report, _impl_.system_profile_)>(
          reinterpret_cast<char*>(&_impl_.system_profile_),
          reinterpret_cast<char*>(&other->_impl_.system_profile_));
}

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