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

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

constexpr UrlInfo::ParseTableT_ UrlInfo::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(UrlInfo, _impl_._has_bits_),
      0, // no _extensions_
      10, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294966780,  // 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<::ukm::UrlInfo>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // int32 previous_url_count = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(UrlInfo, _impl_.previous_url_count_)}},
      // string url = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(UrlInfo, _impl_.url_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string url = 1;
      {PROTOBUF_FIELD_OFFSET(UrlInfo, _impl_.url_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // int32 previous_url_count = 2;
      {PROTOBUF_FIELD_OFFSET(UrlInfo, _impl_.previous_url_count_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // .ukm.TruncationStatus truncation_status = 10;
      {PROTOBUF_FIELD_OFFSET(UrlInfo, _impl_.truncation_status_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
    }},
    {{
        {0, 3},
    }},
    {{
    }},
  };
}


inline constexpr UrlInfo::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        previous_url_count_{0},
        truncation_status_{static_cast< ::ukm::TruncationStatus >(0)} {}

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

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

constexpr NavigationMetadata::ParseTableT_ NavigationMetadata::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NavigationMetadata, _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<::ukm::NavigationMetadata>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // .ukm.SameOriginStatus same_origin_status = 1;
      {::_pbi::TcParser::FastEr0S1,
       {8, 0, 2,
        PROTOBUF_FIELD_OFFSET(NavigationMetadata, _impl_.same_origin_status_)}},
      // bool is_renderer_initiated = 2;
      {::_pbi::TcParser::FastV8S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(NavigationMetadata, _impl_.is_renderer_initiated_)}},
      // bool is_error_page = 3;
      {::_pbi::TcParser::FastV8S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(NavigationMetadata, _impl_.is_error_page_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .ukm.SameOriginStatus same_origin_status = 1;
      {PROTOBUF_FIELD_OFFSET(NavigationMetadata, _impl_.same_origin_status_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // bool is_renderer_initiated = 2;
      {PROTOBUF_FIELD_OFFSET(NavigationMetadata, _impl_.is_renderer_initiated_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // bool is_error_page = 3;
      {PROTOBUF_FIELD_OFFSET(NavigationMetadata, _impl_.is_error_page_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
    }},
    {{
        {0, 2},
    }},
    {{
    }},
  };
}


inline constexpr NavigationMetadata::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        same_origin_status_{static_cast< ::ukm::SameOriginStatus >(0)},
        is_renderer_initiated_{false},
        is_error_page_{false} {}

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

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

constexpr Source::ParseTableT_ Source::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Source, _impl_._has_bits_),
      0, // no _extensions_
      18, 120,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294705496,  // skipmap
      offsetof(ParseTableT_, field_entries),
      14,  // num_field_entries
      5,  // 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::Source>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .ukm.SourceType type = 16;
      {::_pbi::TcParser::FastEr0S2,
       {384, 12, 15,
        PROTOBUF_FIELD_OFFSET(Source, _impl_.type_)}},
      // int64 id = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 5, 0,
        PROTOBUF_FIELD_OFFSET(Source, _impl_.id_)}},
      // string deprecated_url = 2 [deprecated = true];
      {::_pbi::TcParser::FastBS1,
       {18, 2, 0,
        PROTOBUF_FIELD_OFFSET(Source, _impl_.deprecated_url_)}},
      // int64 navigation_time_msec = 3;
      {::_pbi::TcParser::FastV64S1,
       {24, 6, 0,
        PROTOBUF_FIELD_OFFSET(Source, _impl_.navigation_time_msec_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // string deprecated_initial_url = 6 [deprecated = true];
      {::_pbi::TcParser::FastBS1,
       {50, 3, 0,
        PROTOBUF_FIELD_OFFSET(Source, _impl_.deprecated_initial_url_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // repeated .ukm.UrlInfo urls = 8;
      {::_pbi::TcParser::FastMtR1,
       {66, 0, 0,
        PROTOBUF_FIELD_OFFSET(Source, _impl_.urls_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // int64 tab_id = 10;
      {::_pbi::TcParser::FastV64S1,
       {80, 7, 0,
        PROTOBUF_FIELD_OFFSET(Source, _impl_.tab_id_)}},
      // int64 previous_source_id = 11;
      {::_pbi::TcParser::FastV64S1,
       {88, 8, 0,
        PROTOBUF_FIELD_OFFSET(Source, _impl_.previous_source_id_)}},
      // int64 opener_source_id = 12;
      {::_pbi::TcParser::FastV64S1,
       {96, 9, 0,
        PROTOBUF_FIELD_OFFSET(Source, _impl_.opener_source_id_)}},
      // bool is_same_document_navigation = 13;
      {::_pbi::TcParser::FastV8S1,
       {104, 11, 0,
        PROTOBUF_FIELD_OFFSET(Source, _impl_.is_same_document_navigation_)}},
      // int64 previous_same_document_source_id = 14;
      {::_pbi::TcParser::FastV64S1,
       {112, 10, 0,
        PROTOBUF_FIELD_OFFSET(Source, _impl_.previous_same_document_source_id_)}},
      // repeated .ukm.UrlInfo resolved_urls = 15;
      {::_pbi::TcParser::FastMtR1,
       {122, 1, 1,
        PROTOBUF_FIELD_OFFSET(Source, _impl_.resolved_urls_)}},
    }}, {{
      65535, 65535
    }}, {{
      // int64 id = 1;
      {PROTOBUF_FIELD_OFFSET(Source, _impl_.id_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // string deprecated_url = 2 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(Source, _impl_.deprecated_url_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // int64 navigation_time_msec = 3;
      {PROTOBUF_FIELD_OFFSET(Source, _impl_.navigation_time_msec_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // string deprecated_initial_url = 6 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(Source, _impl_.deprecated_initial_url_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // repeated .ukm.UrlInfo urls = 8;
      {PROTOBUF_FIELD_OFFSET(Source, _impl_.urls_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // int64 tab_id = 10;
      {PROTOBUF_FIELD_OFFSET(Source, _impl_.tab_id_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // int64 previous_source_id = 11;
      {PROTOBUF_FIELD_OFFSET(Source, _impl_.previous_source_id_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // int64 opener_source_id = 12;
      {PROTOBUF_FIELD_OFFSET(Source, _impl_.opener_source_id_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // bool is_same_document_navigation = 13;
      {PROTOBUF_FIELD_OFFSET(Source, _impl_.is_same_document_navigation_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // int64 previous_same_document_source_id = 14;
      {PROTOBUF_FIELD_OFFSET(Source, _impl_.previous_same_document_source_id_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // repeated .ukm.UrlInfo resolved_urls = 15;
      {PROTOBUF_FIELD_OFFSET(Source, _impl_.resolved_urls_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // .ukm.SourceType type = 16;
      {PROTOBUF_FIELD_OFFSET(Source, _impl_.type_), _Internal::kHasBitsOffset + 12, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // .ukm.NavigationMetadata navigation_metadata = 17;
      {PROTOBUF_FIELD_OFFSET(Source, _impl_.navigation_metadata_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .ukm.AndroidActivityType android_activity_type = 18;
      {PROTOBUF_FIELD_OFFSET(Source, _impl_.android_activity_type_), _Internal::kHasBitsOffset + 13, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::ukm::UrlInfo>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::ukm::UrlInfo_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::ukm::UrlInfo>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::ukm::UrlInfo_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::ukm::NavigationMetadata>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::ukm::NavigationMetadata_globals_},
        #endif
        {0, 15},
        {0, 7},
    }},
    {{
    }},
  };
}


inline constexpr Source::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        urls_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::ukm::Source,
            PROTOBUF_FIELD_OFFSET(::ukm::Source, _impl_.urls_)>()
         }
        ,
        resolved_urls_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::ukm::Source,
            PROTOBUF_FIELD_OFFSET(::ukm::Source, _impl_.resolved_urls_)>()
         }
        ,
        deprecated_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        deprecated_initial_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        navigation_metadata_{nullptr},
        id_{::int64_t{0}},
        navigation_time_msec_{::int64_t{0}},
        tab_id_{::int64_t{0}},
        previous_source_id_{::int64_t{0}},
        opener_source_id_{::int64_t{0}},
        previous_same_document_source_id_{::int64_t{0}},
        is_same_document_navigation_{false},
        type_{static_cast< ::ukm::SourceType >(0)},
        android_activity_type_{static_cast< ::ukm::AndroidActivityType >(0)} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SourceGlobalsTypeInternal Source_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* Source_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return Source_globals_.GetClassData();
#else
  return Source_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace ukm
namespace ukm {
PROTOBUF_CONSTINIT const uint32_t SourceType_internal_data_[] = {
    1048576u, 0u, };
static const char SourceType_names[] = {
    "APP_ID"
    "CDM_ID"
    "CHROMEOS_WEBSITE_ID"
    "DEFAULT"
    "DESKTOP_WEB_APP_ID"
    "EXTENSION_ID"
    "HISTORY_ID"
    "IWA_BUNDLE_ID"
    "NAVIGATION_ID"
    "NOTIFICATION_ID"
    "NO_URL_ID"
    "PAYMENT_APP_ID"
    "REDIRECT_ID"
    "WEBAPK_ID"
    "WEB_IDENTITY_ID"
    "WORKER_ID"
};

static const ::google::protobuf::internal::EnumEntry SourceType_entries[] = {
    {{&SourceType_names[0], 6}, 2},
    {{&SourceType_names[6], 6}, 14},
    {{&SourceType_names[12], 19}, 11},
    {{&SourceType_names[31], 7}, 0},
    {{&SourceType_names[38], 18}, 6},
    {{&SourceType_names[56], 12}, 12},
    {{&SourceType_names[68], 10}, 3},
    {{&SourceType_names[78], 13}, 15},
    {{&SourceType_names[91], 13}, 1},
    {{&SourceType_names[104], 15}, 13},
    {{&SourceType_names[119], 9}, 8},
    {{&SourceType_names[128], 14}, 5},
    {{&SourceType_names[142], 11}, 9},
    {{&SourceType_names[153], 9}, 4},
    {{&SourceType_names[162], 15}, 10},
    {{&SourceType_names[177], 9}, 7},
};

static const int SourceType_entries_by_number[] = {
    3,  // 0 -> DEFAULT
    8,  // 1 -> NAVIGATION_ID
    0,  // 2 -> APP_ID
    6,  // 3 -> HISTORY_ID
    13,  // 4 -> WEBAPK_ID
    11,  // 5 -> PAYMENT_APP_ID
    4,  // 6 -> DESKTOP_WEB_APP_ID
    15,  // 7 -> WORKER_ID
    10,  // 8 -> NO_URL_ID
    12,  // 9 -> REDIRECT_ID
    14,  // 10 -> WEB_IDENTITY_ID
    2,  // 11 -> CHROMEOS_WEBSITE_ID
    5,  // 12 -> EXTENSION_ID
    9,  // 13 -> NOTIFICATION_ID
    1,  // 14 -> CDM_ID
    7,  // 15 -> IWA_BUNDLE_ID
};

bool SourceType_Parse(::absl::string_view name,
                                  SourceType* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      SourceType_entries, 16, name, &int_value);
  if (success) {
    *value = static_cast<SourceType>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    SourceType_strings[16] = {};

const ::std::string& SourceType_Name(SourceType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      SourceType_entries, SourceType_entries_by_number, 16,
      SourceType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(SourceType_entries,
                                  SourceType_entries_by_number,
                                  16, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SourceType_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t AndroidActivityType_internal_data_[] = {
    524288u, 0u, };
static const char AndroidActivityType_names[] = {
    "AUTH_TAB"
    "CUSTOM_TAB"
    "DEV_TOOLS"
    "PRE_FIRST_TAB"
    "TABBED"
    "TRUSTED_WEB_ACTIVITY"
    "WEB_APK"
    "WEB_APP"
};

static const ::google::protobuf::internal::EnumEntry AndroidActivityType_entries[] = {
    {{&AndroidActivityType_names[0], 8}, 6},
    {{&AndroidActivityType_names[8], 10}, 1},
    {{&AndroidActivityType_names[18], 9}, 7},
    {{&AndroidActivityType_names[27], 13}, 5},
    {{&AndroidActivityType_names[40], 6}, 0},
    {{&AndroidActivityType_names[46], 20}, 2},
    {{&AndroidActivityType_names[66], 7}, 4},
    {{&AndroidActivityType_names[73], 7}, 3},
};

static const int AndroidActivityType_entries_by_number[] = {
    4,  // 0 -> TABBED
    1,  // 1 -> CUSTOM_TAB
    5,  // 2 -> TRUSTED_WEB_ACTIVITY
    7,  // 3 -> WEB_APP
    6,  // 4 -> WEB_APK
    3,  // 5 -> PRE_FIRST_TAB
    0,  // 6 -> AUTH_TAB
    2,  // 7 -> DEV_TOOLS
};

bool AndroidActivityType_Parse(::absl::string_view name,
                                  AndroidActivityType* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      AndroidActivityType_entries, 8, name, &int_value);
  if (success) {
    *value = static_cast<AndroidActivityType>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    AndroidActivityType_strings[8] = {};

const ::std::string& AndroidActivityType_Name(AndroidActivityType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      AndroidActivityType_entries, AndroidActivityType_entries_by_number, 8,
      AndroidActivityType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(AndroidActivityType_entries,
                                  AndroidActivityType_entries_by_number,
                                  8, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : AndroidActivityType_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t SameOriginStatus_internal_data_[] = {
    196608u, 0u, };
static const char SameOriginStatus_names[] = {
    "CROSS_ORIGIN"
    "SAME_ORIGIN"
    "SAME_ORIGIN_STATUS_UNSET"
};

static const ::google::protobuf::internal::EnumEntry SameOriginStatus_entries[] = {
    {{&SameOriginStatus_names[0], 12}, 2},
    {{&SameOriginStatus_names[12], 11}, 1},
    {{&SameOriginStatus_names[23], 24}, 0},
};

static const int SameOriginStatus_entries_by_number[] = {
    2,  // 0 -> SAME_ORIGIN_STATUS_UNSET
    1,  // 1 -> SAME_ORIGIN
    0,  // 2 -> CROSS_ORIGIN
};

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

const ::std::string& SameOriginStatus_Name(SameOriginStatus value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      SameOriginStatus_entries, SameOriginStatus_entries_by_number, 3,
      SameOriginStatus_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(SameOriginStatus_entries,
                                  SameOriginStatus_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SameOriginStatus_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t UrlScheme_internal_data_[] = {
    524288u, 0u, };
static const char UrlScheme_names[] = {
    "ABOUT"
    "APP"
    "CHROME"
    "CHROME_EXTENSION"
    "FTP"
    "HTTP"
    "HTTPS"
    "URL_SCHEME_UNSUPPORTED"
};

static const ::google::protobuf::internal::EnumEntry UrlScheme_entries[] = {
    {{&UrlScheme_names[0], 5}, 4},
    {{&UrlScheme_names[5], 3}, 7},
    {{&UrlScheme_names[8], 6}, 5},
    {{&UrlScheme_names[14], 16}, 6},
    {{&UrlScheme_names[30], 3}, 3},
    {{&UrlScheme_names[33], 4}, 1},
    {{&UrlScheme_names[37], 5}, 2},
    {{&UrlScheme_names[42], 22}, 0},
};

static const int UrlScheme_entries_by_number[] = {
    7,  // 0 -> URL_SCHEME_UNSUPPORTED
    5,  // 1 -> HTTP
    6,  // 2 -> HTTPS
    4,  // 3 -> FTP
    0,  // 4 -> ABOUT
    2,  // 5 -> CHROME
    3,  // 6 -> CHROME_EXTENSION
    1,  // 7 -> APP
};

bool UrlScheme_Parse(::absl::string_view name,
                                  UrlScheme* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      UrlScheme_entries, 8, name, &int_value);
  if (success) {
    *value = static_cast<UrlScheme>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    UrlScheme_strings[8] = {};

const ::std::string& UrlScheme_Name(UrlScheme value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      UrlScheme_entries, UrlScheme_entries_by_number, 8,
      UrlScheme_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(UrlScheme_entries,
                                  UrlScheme_entries_by_number,
                                  8, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : UrlScheme_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t TruncationStatus_internal_data_[] = {
    262144u, 0u, };
static const char TruncationStatus_names[] = {
    "NOT_TRUNCATED"
    "TRUNCATED_AT_FULL_PATH"
    "TRUNCATED_AT_ORIGIN"
    "TRUNCATED_AT_URL_WITHOUT_QUERY"
};

static const ::google::protobuf::internal::EnumEntry TruncationStatus_entries[] = {
    {{&TruncationStatus_names[0], 13}, 0},
    {{&TruncationStatus_names[13], 22}, 1},
    {{&TruncationStatus_names[35], 19}, 3},
    {{&TruncationStatus_names[54], 30}, 2},
};

static const int TruncationStatus_entries_by_number[] = {
    0,  // 0 -> NOT_TRUNCATED
    1,  // 1 -> TRUNCATED_AT_FULL_PATH
    3,  // 2 -> TRUNCATED_AT_URL_WITHOUT_QUERY
    2,  // 3 -> TRUNCATED_AT_ORIGIN
};

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

const ::std::string& TruncationStatus_Name(TruncationStatus value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      TruncationStatus_entries, TruncationStatus_entries_by_number, 4,
      TruncationStatus_strings);
  (void)kDummy;

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite UrlInfo_class_data_ =
    UrlInfo::InternalGenerateClassData_(UrlInfo_globals_._default);

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

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

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

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

  // .ukm.TruncationStatus truncation_status = 10;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        10, this_._internal_truncation_status(), 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.UrlInfo)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // string url = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_url());
    }
    // int32 previous_url_count = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_previous_url_count());
    }
    // .ukm.TruncationStatus truncation_status = 10;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_truncation_status());
    }
  }
  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 UrlInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<UrlInfo*>(&to_msg);
  auto& from = static_cast<const UrlInfo&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:ukm.UrlInfo)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


void UrlInfo::InternalSwap(UrlInfo* 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_.url_, &other->_impl_.url_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(UrlInfo, _impl_.truncation_status_)
      + sizeof(UrlInfo::_impl_.truncation_status_)
      - PROTOBUF_FIELD_OFFSET(UrlInfo, _impl_.previous_url_count_)>(
          reinterpret_cast<char*>(&_impl_.previous_url_count_),
          reinterpret_cast<char*>(&other->_impl_.previous_url_count_));
}

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

NavigationMetadata::NavigationMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NavigationMetadata_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:ukm.NavigationMetadata)
}
NavigationMetadata::NavigationMetadata(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NavigationMetadata& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NavigationMetadata_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 NavigationMetadata::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

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

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NavigationMetadata::GetClassData() const {
  return NavigationMetadata_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NavigationMetadata::GetClassData() const {
  return NavigationMetadata_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const NavigationMetadata::ParseTableT_
    NavigationMetadata::_table_ =
        NavigationMetadata::InternalGenerateParseTable_(NavigationMetadata_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void NavigationMetadata::Clear() {
// @@protoc_insertion_point(message_clear_start:ukm.NavigationMetadata)
  ::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_.same_origin_status_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.is_error_page_) -
        reinterpret_cast<char*>(&_impl_.same_origin_status_)) + sizeof(_impl_.is_error_page_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .ukm.SameOriginStatus same_origin_status = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this_._internal_same_origin_status(), target);
  }

  // bool is_renderer_initiated = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        2, this_._internal_is_renderer_initiated(), target);
  }

  // bool is_error_page = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        3, this_._internal_is_error_page(), 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.NavigationMetadata)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t NavigationMetadata::ByteSizeLong(const MessageLite& base) {
  const NavigationMetadata& this_ = static_cast<const NavigationMetadata&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t NavigationMetadata::ByteSizeLong() const {
  const NavigationMetadata& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:ukm.NavigationMetadata)
  ::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) * 2;
   {
    // .ukm.SameOriginStatus same_origin_status = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_same_origin_status());
    }
  }
  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 NavigationMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NavigationMetadata*>(&to_msg);
  auto& from = static_cast<const NavigationMetadata&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:ukm.NavigationMetadata)
  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_.same_origin_status_ = from._impl_.same_origin_status_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.is_renderer_initiated_ = from._impl_.is_renderer_initiated_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.is_error_page_ = from._impl_.is_error_page_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void NavigationMetadata::InternalSwap(NavigationMetadata* 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(NavigationMetadata, _impl_.is_error_page_)
      + sizeof(NavigationMetadata::_impl_.is_error_page_)
      - PROTOBUF_FIELD_OFFSET(NavigationMetadata, _impl_.same_origin_status_)>(
          reinterpret_cast<char*>(&_impl_.same_origin_status_),
          reinterpret_cast<char*>(&other->_impl_.same_origin_status_));
}

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Source* 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_.navigation_metadata_ = (CheckHasBit(cached_has_bits, 0x00000010U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.navigation_metadata_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, id_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, id_),
           offsetof(Impl_, android_activity_type_) -
               offsetof(Impl_, id_) +
               sizeof(Impl_::android_activity_type_));

  // @@protoc_insertion_point(copy_constructor:ukm.Source)
}
PROTOBUF_NDEBUG_INLINE Source::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        urls_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::ukm::Source,
            PROTOBUF_FIELD_OFFSET(::ukm::Source, _impl_.urls_)>()
         }
        ,
        resolved_urls_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::ukm::Source,
            PROTOBUF_FIELD_OFFSET(::ukm::Source, _impl_.resolved_urls_)>()
         }
        ,
        deprecated_url_(arena),
        deprecated_initial_url_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Source_class_data_ =
    Source::InternalGenerateClassData_(Source_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Source::GetClassData() const {
  return Source_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Source::GetClassData() const {
  return Source_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Source::ParseTableT_
    Source::_table_ =
        Source::InternalGenerateParseTable_(Source_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Source::Clear() {
// @@protoc_insertion_point(message_clear_start:ukm.Source)
  ::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_.urls_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.resolved_urls_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.deprecated_url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.deprecated_initial_url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      ABSL_DCHECK(_impl_.navigation_metadata_ != nullptr);
      _impl_.navigation_metadata_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000000e0U)) {
    ::memset(&_impl_.id_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.tab_id_) -
        reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.tab_id_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) {
    ::memset(&_impl_.previous_source_id_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.android_activity_type_) -
        reinterpret_cast<char*>(&_impl_.previous_source_id_)) + sizeof(_impl_.android_activity_type_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // int64 id = 1;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
            stream, this_._internal_id(), target);
  }

  // string deprecated_url = 2 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    const ::std::string& _s = this_._internal_deprecated_url();
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // int64 navigation_time_msec = 3;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
            stream, this_._internal_navigation_time_msec(), target);
  }

  // string deprecated_initial_url = 6 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    const ::std::string& _s = this_._internal_deprecated_initial_url();
    target = stream->WriteStringMaybeAliased(6, _s, target);
  }

  // repeated .ukm.UrlInfo urls = 8;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_urls_size());
         i < n; i++) {
      const auto& repfield = this_._internal_urls().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              8, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

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

  // int64 previous_source_id = 11;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<11>(
            stream, this_._internal_previous_source_id(), target);
  }

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

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

  // int64 previous_same_document_source_id = 14;
  if (CheckHasBit(cached_has_bits, 0x00000400U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<14>(
            stream, this_._internal_previous_same_document_source_id(), target);
  }

  // repeated .ukm.UrlInfo resolved_urls = 15;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_resolved_urls_size());
         i < n; i++) {
      const auto& repfield = this_._internal_resolved_urls().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              15, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // .ukm.SourceType type = 16;
  if (CheckHasBit(cached_has_bits, 0x00001000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        16, this_._internal_type(), target);
  }

  // .ukm.NavigationMetadata navigation_metadata = 17;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        17, *this_._impl_.navigation_metadata_, this_._impl_.navigation_metadata_->GetCachedSize(), target,
        stream);
  }

  // .ukm.AndroidActivityType android_activity_type = 18;
  if (CheckHasBit(cached_has_bits, 0x00002000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        18, this_._internal_android_activity_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:ukm.Source)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Source::ByteSizeLong(const MessageLite& base) {
  const Source& this_ = static_cast<const Source&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Source::ByteSizeLong() const {
  const Source& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:ukm.Source)
  ::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>(0x00000800U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    // repeated .ukm.UrlInfo urls = 8;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_urls_size();
      for (const auto& msg : this_._internal_urls()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .ukm.UrlInfo resolved_urls = 15;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1UL * this_._internal_resolved_urls_size();
      for (const auto& msg : this_._internal_resolved_urls()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // string deprecated_url = 2 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_deprecated_url());
    }
    // string deprecated_initial_url = 6 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_deprecated_initial_url());
    }
    // .ukm.NavigationMetadata navigation_metadata = 17;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.navigation_metadata_);
    }
    // int64 id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_id());
    }
    // int64 navigation_time_msec = 3;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_navigation_time_msec());
    }
    // int64 tab_id = 10;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_tab_id());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00003700U)) {
    // int64 previous_source_id = 11;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_previous_source_id());
    }
    // int64 opener_source_id = 12;
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_opener_source_id());
    }
    // int64 previous_same_document_source_id = 14;
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_previous_same_document_source_id());
    }
    // .ukm.SourceType type = 16;
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      total_size += 2 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_type());
    }
    // .ukm.AndroidActivityType android_activity_type = 18;
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      total_size += 2 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_android_activity_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 Source::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Source*>(&to_msg);
  auto& from = static_cast<const Source&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:ukm.Source)
  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_urls()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_urls());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_resolved_urls()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_resolved_urls());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_deprecated_url(from._internal_deprecated_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_deprecated_initial_url(from._internal_deprecated_initial_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      ABSL_DCHECK(from._impl_.navigation_metadata_ != nullptr);
      if (_this->_impl_.navigation_metadata_ == nullptr) {
        _this->_impl_.navigation_metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.navigation_metadata_);
      } else {
        _this->_impl_.navigation_metadata_->MergeFrom(*from._impl_.navigation_metadata_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.id_ = from._impl_.id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.navigation_time_msec_ = from._impl_.navigation_time_msec_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_impl_.tab_id_ = from._impl_.tab_id_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _this->_impl_.previous_source_id_ = from._impl_.previous_source_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _this->_impl_.opener_source_id_ = from._impl_.opener_source_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _this->_impl_.previous_same_document_source_id_ = from._impl_.previous_same_document_source_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _this->_impl_.is_same_document_navigation_ = from._impl_.is_same_document_navigation_;
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      _this->_impl_.type_ = from._impl_.type_;
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      _this->_impl_.android_activity_type_ = from._impl_.android_activity_type_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void Source::InternalSwap(Source* 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]);
  _impl_.urls_.InternalSwap(&other->_impl_.urls_);
  _impl_.resolved_urls_.InternalSwap(&other->_impl_.resolved_urls_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.deprecated_url_, &other->_impl_.deprecated_url_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.deprecated_initial_url_, &other->_impl_.deprecated_initial_url_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Source, _impl_.android_activity_type_)
      + sizeof(Source::_impl_.android_activity_type_)
      - PROTOBUF_FIELD_OFFSET(Source, _impl_.navigation_metadata_)>(
          reinterpret_cast<char*>(&_impl_.navigation_metadata_),
          reinterpret_cast<char*>(&other->_impl_.navigation_metadata_));
}

// @@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"
