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

#include "components/sync/protocol/history_specifics.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 sync_pb {
class HistorySpecifics_RedirectEntry::_Internal {
 public:
  using HasBits = decltype(::std::declval<HistorySpecifics_RedirectEntry>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(HistorySpecifics_RedirectEntry, _impl_._has_bits_);
};

constexpr HistorySpecifics_RedirectEntry::ParseTableT_ HistorySpecifics_RedirectEntry::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(HistorySpecifics_RedirectEntry, _impl_._has_bits_),
      0, // no _extensions_
      5, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967264,  // skipmap
      offsetof(ParseTableT_, field_entries),
      5,  // 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<::sync_pb::HistorySpecifics_RedirectEntry>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional int64 originator_visit_id = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 2, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics_RedirectEntry, _impl_.originator_visit_id_)}},
      // optional string url = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics_RedirectEntry, _impl_.url_)}},
      // optional string title = 3;
      {::_pbi::TcParser::FastBS1,
       {26, 1, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics_RedirectEntry, _impl_.title_)}},
      // optional bool hidden = 4;
      {::_pbi::TcParser::FastV8S1,
       {32, 3, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics_RedirectEntry, _impl_.hidden_)}},
      // optional .sync_pb.SyncEnums.PageTransitionRedirectType redirect_type = 5;
      {::_pbi::TcParser::FastEr1S1,
       {40, 4, 2,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics_RedirectEntry, _impl_.redirect_type_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int64 originator_visit_id = 1;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics_RedirectEntry, _impl_.originator_visit_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional string url = 2;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics_RedirectEntry, _impl_.url_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string title = 3;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics_RedirectEntry, _impl_.title_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bool hidden = 4;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics_RedirectEntry, _impl_.hidden_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional .sync_pb.SyncEnums.PageTransitionRedirectType redirect_type = 5;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics_RedirectEntry, _impl_.redirect_type_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
    }},
    {{
        {1, 2},
    }},
    {{
    }},
  };
}


inline constexpr HistorySpecifics_RedirectEntry::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()),
        title_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        originator_visit_id_{::int64_t{0}},
        hidden_{false},
        redirect_type_{static_cast< ::sync_pb::SyncEnums_PageTransitionRedirectType >(1)} {}

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

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

constexpr HistorySpecifics_PageTransition::ParseTableT_ HistorySpecifics_PageTransition::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(HistorySpecifics_PageTransition, _impl_._has_bits_),
      0, // no _extensions_
      5, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967264,  // skipmap
      offsetof(ParseTableT_, field_entries),
      5,  // 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<::sync_pb::HistorySpecifics_PageTransition>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional .sync_pb.SyncEnums.PageTransition core_transition = 1 [default = LINK];
      {::_pbi::TcParser::FastEr0S1,
       {8, 0, 10,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics_PageTransition, _impl_.core_transition_)}},
      // optional bool blocked = 2;
      {::_pbi::TcParser::FastV8S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics_PageTransition, _impl_.blocked_)}},
      // optional bool forward_back = 3;
      {::_pbi::TcParser::FastV8S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics_PageTransition, _impl_.forward_back_)}},
      // optional bool from_address_bar = 4;
      {::_pbi::TcParser::FastV8S1,
       {32, 3, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics_PageTransition, _impl_.from_address_bar_)}},
      // optional bool home_page = 5;
      {::_pbi::TcParser::FastV8S1,
       {40, 4, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics_PageTransition, _impl_.home_page_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .sync_pb.SyncEnums.PageTransition core_transition = 1 [default = LINK];
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics_PageTransition, _impl_.core_transition_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional bool blocked = 2;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics_PageTransition, _impl_.blocked_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool forward_back = 3;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics_PageTransition, _impl_.forward_back_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool from_address_bar = 4;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics_PageTransition, _impl_.from_address_bar_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool home_page = 5;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics_PageTransition, _impl_.home_page_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
    }},
    {{
        {0, 10},
    }},
    {{
    }},
  };
}


inline constexpr HistorySpecifics_PageTransition::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        core_transition_{static_cast< ::sync_pb::SyncEnums_PageTransition >(0)},
        blocked_{false},
        forward_back_{false},
        from_address_bar_{false},
        home_page_{false} {}

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

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

constexpr HistorySpecifics_Category::ParseTableT_ HistorySpecifics_Category::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(HistorySpecifics_Category, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::HistorySpecifics_Category>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional int32 weight = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics_Category, _impl_.weight_)}},
      // optional string id = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics_Category, _impl_.id_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string id = 1;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics_Category, _impl_.id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int32 weight = 2;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics_Category, _impl_.weight_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr HistorySpecifics_Category::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        weight_{0} {}

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

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

constexpr HistorySpecifics::ParseTableT_ HistorySpecifics::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_._has_bits_),
      0, // no _extensions_
      26, 248,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4227858432,  // skipmap
      offsetof(ParseTableT_, field_entries),
      26,  // 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<::sync_pb::HistorySpecifics>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional int64 visit_time_windows_epoch_micros = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 9, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.visit_time_windows_epoch_micros_)}},
      // optional string originator_cache_guid = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 3, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.originator_cache_guid_)}},
      // repeated .sync_pb.HistorySpecifics.RedirectEntry redirect_entries = 3;
      {::_pbi::TcParser::FastMtR1,
       {26, 0, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.redirect_entries_)}},
      // optional .sync_pb.HistorySpecifics.PageTransition page_transition = 4;
      {::_pbi::TcParser::FastMtS1,
       {34, 8, 1,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.page_transition_)}},
      // optional int64 originator_referring_visit_id = 5;
      {::_pbi::TcParser::FastV64S1,
       {40, 10, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.originator_referring_visit_id_)}},
      // optional int64 originator_opener_visit_id = 6;
      {::_pbi::TcParser::FastV64S1,
       {48, 11, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.originator_opener_visit_id_)}},
      // optional int64 visit_duration_micros = 7;
      {::_pbi::TcParser::FastV64S1,
       {56, 12, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.visit_duration_micros_)}},
      // optional .sync_pb.SyncEnums.BrowserType browser_type = 8;
      {::_pbi::TcParser::FastEr0S1,
       {64, 13, 4,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.browser_type_)}},
      // optional int32 window_id = 9;
      {::_pbi::TcParser::FastV32S1,
       {72, 14, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.window_id_)}},
      // optional int32 tab_id = 10;
      {::_pbi::TcParser::FastV32S1,
       {80, 17, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.tab_id_)}},
      // optional int64 task_id = 11;
      {::_pbi::TcParser::FastV64S1,
       {88, 15, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.task_id_)}},
      // optional int64 root_task_id = 12;
      {::_pbi::TcParser::FastV64S1,
       {96, 16, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.root_task_id_)}},
      // optional int64 parent_task_id = 13;
      {::_pbi::TcParser::FastV64S1,
       {104, 19, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.parent_task_id_)}},
      // optional int32 http_response_code = 14;
      {::_pbi::TcParser::FastV32S1,
       {112, 18, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.http_response_code_)}},
      // optional string page_language = 15;
      {::_pbi::TcParser::FastBS1,
       {122, 4, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.page_language_)}},
      // optional .sync_pb.SyncEnums.PasswordState password_state = 16;
      {::_pbi::TcParser::FastEr0S2,
       {384, 20, 2,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.password_state_)}},
      // optional string favicon_url = 17;
      {::_pbi::TcParser::FastBS2,
       {394, 5, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.favicon_url_)}},
      // optional string referrer_url = 18;
      {::_pbi::TcParser::FastBS2,
       {402, 6, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.referrer_url_)}},
      // optional bool redirect_chain_start_incomplete = 19;
      {::_pbi::TcParser::FastV8S2,
       {408, 21, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.redirect_chain_start_incomplete_)}},
      // optional bool redirect_chain_end_incomplete = 20;
      {::_pbi::TcParser::FastV8S2,
       {416, 22, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.redirect_chain_end_incomplete_)}},
      // optional bool redirect_chain_middle_trimmed = 21;
      {::_pbi::TcParser::FastV8S2,
       {424, 23, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.redirect_chain_middle_trimmed_)}},
      // optional int64 originator_cluster_id = 22;
      {::_pbi::TcParser::FastV64S2,
       {432, 25, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.originator_cluster_id_)}},
      // optional bool has_url_keyed_image = 23;
      {::_pbi::TcParser::FastV8S2,
       {440, 24, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.has_url_keyed_image_)}},
      // repeated .sync_pb.HistorySpecifics.Category categories = 24;
      {::_pbi::TcParser::FastMtR2,
       {450, 1, 2,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.categories_)}},
      // repeated string related_searches = 25;
      {::_pbi::TcParser::FastBR2,
       {458, 2, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.related_searches_)}},
      // optional string app_id = 26;
      {::_pbi::TcParser::FastBS2,
       {466, 7, 0,
        PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.app_id_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int64 visit_time_windows_epoch_micros = 1;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.visit_time_windows_epoch_micros_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional string originator_cache_guid = 2;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.originator_cache_guid_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // repeated .sync_pb.HistorySpecifics.RedirectEntry redirect_entries = 3;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.redirect_entries_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .sync_pb.HistorySpecifics.PageTransition page_transition = 4;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.page_transition_), _Internal::kHasBitsOffset + 8, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional int64 originator_referring_visit_id = 5;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.originator_referring_visit_id_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 originator_opener_visit_id = 6;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.originator_opener_visit_id_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 visit_duration_micros = 7;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.visit_duration_micros_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional .sync_pb.SyncEnums.BrowserType browser_type = 8;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.browser_type_), _Internal::kHasBitsOffset + 13, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional int32 window_id = 9;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.window_id_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int32 tab_id = 10;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.tab_id_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int64 task_id = 11;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.task_id_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 root_task_id = 12;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.root_task_id_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 parent_task_id = 13;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.parent_task_id_), _Internal::kHasBitsOffset + 19, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int32 http_response_code = 14;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.http_response_code_), _Internal::kHasBitsOffset + 18, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional string page_language = 15;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.page_language_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .sync_pb.SyncEnums.PasswordState password_state = 16;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.password_state_), _Internal::kHasBitsOffset + 20, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional string favicon_url = 17;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.favicon_url_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string referrer_url = 18;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.referrer_url_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bool redirect_chain_start_incomplete = 19;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.redirect_chain_start_incomplete_), _Internal::kHasBitsOffset + 21, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool redirect_chain_end_incomplete = 20;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.redirect_chain_end_incomplete_), _Internal::kHasBitsOffset + 22, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool redirect_chain_middle_trimmed = 21;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.redirect_chain_middle_trimmed_), _Internal::kHasBitsOffset + 23, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional int64 originator_cluster_id = 22;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.originator_cluster_id_), _Internal::kHasBitsOffset + 25, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional bool has_url_keyed_image = 23;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.has_url_keyed_image_), _Internal::kHasBitsOffset + 24, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // repeated .sync_pb.HistorySpecifics.Category categories = 24;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.categories_), _Internal::kHasBitsOffset + 1, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated string related_searches = 25;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.related_searches_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)},
      // optional string app_id = 26;
      {PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.app_id_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::HistorySpecifics_RedirectEntry>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::HistorySpecifics_RedirectEntry_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::HistorySpecifics_PageTransition>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::HistorySpecifics_PageTransition_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::HistorySpecifics_Category>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::HistorySpecifics_Category_globals_},
        #endif
        {0, 4},
        {0, 2},
    }},
    {{
    }},
  };
}


inline constexpr HistorySpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        redirect_entries_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::HistorySpecifics,
            PROTOBUF_FIELD_OFFSET(::sync_pb::HistorySpecifics, _impl_.redirect_entries_)>()
         }
        ,
        categories_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::HistorySpecifics,
            PROTOBUF_FIELD_OFFSET(::sync_pb::HistorySpecifics, _impl_.categories_)>()
         }
        ,
        related_searches_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::HistorySpecifics,
            PROTOBUF_FIELD_OFFSET(::sync_pb::HistorySpecifics, _impl_.related_searches_)>()
         }
        ,
        originator_cache_guid_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        page_language_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        favicon_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        referrer_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        app_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        page_transition_{nullptr},
        visit_time_windows_epoch_micros_{::int64_t{0}},
        originator_referring_visit_id_{::int64_t{0}},
        originator_opener_visit_id_{::int64_t{0}},
        visit_duration_micros_{::int64_t{0}},
        browser_type_{static_cast< ::sync_pb::SyncEnums_BrowserType >(0)},
        window_id_{0},
        task_id_{::int64_t{0}},
        root_task_id_{::int64_t{0}},
        tab_id_{0},
        http_response_code_{0},
        parent_task_id_{::int64_t{0}},
        password_state_{static_cast< ::sync_pb::SyncEnums_PasswordState >(0)},
        redirect_chain_start_incomplete_{false},
        redirect_chain_end_incomplete_{false},
        redirect_chain_middle_trimmed_{false},
        has_url_keyed_image_{false},
        originator_cluster_id_{::int64_t{0}} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST HistorySpecificsGlobalsTypeInternal HistorySpecifics_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* HistorySpecifics_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return HistorySpecifics_globals_.GetClassData();
#else
  return HistorySpecifics_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace sync_pb
namespace sync_pb {
// ===================================================================

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

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

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

  // @@protoc_insertion_point(copy_constructor:sync_pb.HistorySpecifics.RedirectEntry)
}
PROTOBUF_NDEBUG_INLINE HistorySpecifics_RedirectEntry::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        url_(arena),
        title_(arena),
        redirect_type_{static_cast< ::sync_pb::SyncEnums_PageTransitionRedirectType >(1)} {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite HistorySpecifics_RedirectEntry_class_data_ =
    HistorySpecifics_RedirectEntry::InternalGenerateClassData_(HistorySpecifics_RedirectEntry_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.title_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000001cU)) {
    ::memset(&_impl_.originator_visit_id_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.hidden_) -
        reinterpret_cast<char*>(&_impl_.originator_visit_id_)) + sizeof(_impl_.hidden_));
    _impl_.redirect_type_ = 1;
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

  // optional string title = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    const ::std::string& _s = this_._internal_title();
    target = stream->WriteStringMaybeAliased(3, _s, target);
  }

  // optional bool hidden = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        4, this_._internal_hidden(), target);
  }

  // optional .sync_pb.SyncEnums.PageTransitionRedirectType redirect_type = 5;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        5, this_._internal_redirect_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:sync_pb.HistorySpecifics.RedirectEntry)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += static_cast<bool>(0x00000008U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x00000017U)) {
    // optional string url = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_url());
    }
    // optional string title = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_title());
    }
    // optional int64 originator_visit_id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_originator_visit_id());
    }
    // optional .sync_pb.SyncEnums.PageTransitionRedirectType redirect_type = 5;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_redirect_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 HistorySpecifics_RedirectEntry::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<HistorySpecifics_RedirectEntry*>(&to_msg);
  auto& from = static_cast<const HistorySpecifics_RedirectEntry&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.HistorySpecifics.RedirectEntry)
  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, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_url(from._internal_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_title(from._internal_title());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.originator_visit_id_ = from._impl_.originator_visit_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.hidden_ = from._impl_.hidden_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.redirect_type_ = from._impl_.redirect_type_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void HistorySpecifics_RedirectEntry::CopyFrom(const HistorySpecifics_RedirectEntry& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.HistorySpecifics.RedirectEntry)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void HistorySpecifics_RedirectEntry::InternalSwap(HistorySpecifics_RedirectEntry* 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);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.title_, &other->_impl_.title_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(HistorySpecifics_RedirectEntry, _impl_.redirect_type_)
      + sizeof(HistorySpecifics_RedirectEntry::_impl_.redirect_type_)
      - PROTOBUF_FIELD_OFFSET(HistorySpecifics_RedirectEntry, _impl_.originator_visit_id_)>(
          reinterpret_cast<char*>(&_impl_.originator_visit_id_),
          reinterpret_cast<char*>(&other->_impl_.originator_visit_id_));
}

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

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

inline void HistorySpecifics_PageTransition::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, core_transition_),
           0,
           offsetof(Impl_, home_page_) -
               offsetof(Impl_, core_transition_) +
               sizeof(Impl_::home_page_));
}
HistorySpecifics_PageTransition::~HistorySpecifics_PageTransition() {
  // @@protoc_insertion_point(destructor:sync_pb.HistorySpecifics.PageTransition)
  SharedDtor(*this);
}
inline void HistorySpecifics_PageTransition::SharedDtor(MessageLite& self) {
  HistorySpecifics_PageTransition& this_ = static_cast<HistorySpecifics_PageTransition&>(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 HistorySpecifics_PageTransition_class_data_ =
    HistorySpecifics_PageTransition::InternalGenerateClassData_(HistorySpecifics_PageTransition_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
HistorySpecifics_PageTransition::GetClassData() const {
  return HistorySpecifics_PageTransition_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
HistorySpecifics_PageTransition::GetClassData() const {
  return HistorySpecifics_PageTransition_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const HistorySpecifics_PageTransition::ParseTableT_
    HistorySpecifics_PageTransition::_table_ =
        HistorySpecifics_PageTransition::InternalGenerateParseTable_(HistorySpecifics_PageTransition_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void HistorySpecifics_PageTransition::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.HistorySpecifics.PageTransition)
  ::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)) {
    ::memset(&_impl_.core_transition_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.home_page_) -
        reinterpret_cast<char*>(&_impl_.core_transition_)) + sizeof(_impl_.home_page_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .sync_pb.SyncEnums.PageTransition core_transition = 1 [default = LINK];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this_._internal_core_transition(), target);
  }

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

  // optional bool forward_back = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        3, this_._internal_forward_back(), target);
  }

  // optional bool from_address_bar = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        4, this_._internal_from_address_bar(), target);
  }

  // optional bool home_page = 5;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        5, this_._internal_home_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:sync_pb.HistorySpecifics.PageTransition)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t HistorySpecifics_PageTransition::ByteSizeLong(const MessageLite& base) {
  const HistorySpecifics_PageTransition& this_ = static_cast<const HistorySpecifics_PageTransition&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t HistorySpecifics_PageTransition::ByteSizeLong() const {
  const HistorySpecifics_PageTransition& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.HistorySpecifics.PageTransition)
  ::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(0x0000001eU & cached_has_bits) * 2;
   {
    // optional .sync_pb.SyncEnums.PageTransition core_transition = 1 [default = LINK];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_core_transition());
    }
  }
  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 HistorySpecifics_PageTransition::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<HistorySpecifics_PageTransition*>(&to_msg);
  auto& from = static_cast<const HistorySpecifics_PageTransition&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.HistorySpecifics.PageTransition)
  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, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_impl_.core_transition_ = from._impl_.core_transition_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.blocked_ = from._impl_.blocked_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.forward_back_ = from._impl_.forward_back_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.from_address_bar_ = from._impl_.from_address_bar_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.home_page_ = from._impl_.home_page_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void HistorySpecifics_PageTransition::CopyFrom(const HistorySpecifics_PageTransition& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.HistorySpecifics.PageTransition)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


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

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

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

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

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

  // @@protoc_insertion_point(copy_constructor:sync_pb.HistorySpecifics.Category)
}
PROTOBUF_NDEBUG_INLINE HistorySpecifics_Category::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        id_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite HistorySpecifics_Category_class_data_ =
    HistorySpecifics_Category::InternalGenerateClassData_(HistorySpecifics_Category_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
HistorySpecifics_Category::GetClassData() const {
  return HistorySpecifics_Category_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
HistorySpecifics_Category::GetClassData() const {
  return HistorySpecifics_Category_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const HistorySpecifics_Category::ParseTableT_
    HistorySpecifics_Category::_table_ =
        HistorySpecifics_Category::InternalGenerateParseTable_(HistorySpecifics_Category_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void HistorySpecifics_Category::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.HistorySpecifics.Category)
  ::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_.id_.ClearNonDefaultToEmpty();
  }
  _impl_.weight_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // optional int32 weight = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
            stream, this_._internal_weight(), 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:sync_pb.HistorySpecifics.Category)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t HistorySpecifics_Category::ByteSizeLong(const MessageLite& base) {
  const HistorySpecifics_Category& this_ = static_cast<const HistorySpecifics_Category&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t HistorySpecifics_Category::ByteSizeLong() const {
  const HistorySpecifics_Category& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.HistorySpecifics.Category)
  ::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, 0x00000003U)) {
    // optional string id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_id());
    }
    // optional int32 weight = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_weight());
    }
  }
  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 HistorySpecifics_Category::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<HistorySpecifics_Category*>(&to_msg);
  auto& from = static_cast<const HistorySpecifics_Category&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.HistorySpecifics.Category)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

void HistorySpecifics_Category::CopyFrom(const HistorySpecifics_Category& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.HistorySpecifics.Category)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


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

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

HistorySpecifics::HistorySpecifics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, HistorySpecifics_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.HistorySpecifics)
}
PROTOBUF_NDEBUG_INLINE HistorySpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::sync_pb::HistorySpecifics& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        redirect_entries_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::sync_pb::HistorySpecifics,
              PROTOBUF_FIELD_OFFSET(::sync_pb::HistorySpecifics, _impl_.redirect_entries_)>()
          , from.redirect_entries_
        }
        ,
        categories_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::sync_pb::HistorySpecifics,
              PROTOBUF_FIELD_OFFSET(::sync_pb::HistorySpecifics, _impl_.categories_)>()
          , from.categories_
        }
        ,
        related_searches_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::sync_pb::HistorySpecifics,
              PROTOBUF_FIELD_OFFSET(::sync_pb::HistorySpecifics, _impl_.related_searches_)>()
          , from.related_searches_
        }
        ,
        originator_cache_guid_(arena, from.originator_cache_guid_),
        page_language_(arena, from.page_language_),
        favicon_url_(arena, from.favicon_url_),
        referrer_url_(arena, from.referrer_url_),
        app_id_(arena, from.app_id_) {}

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

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

  // @@protoc_insertion_point(copy_constructor:sync_pb.HistorySpecifics)
}
PROTOBUF_NDEBUG_INLINE HistorySpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        redirect_entries_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::HistorySpecifics,
            PROTOBUF_FIELD_OFFSET(::sync_pb::HistorySpecifics, _impl_.redirect_entries_)>()
         }
        ,
        categories_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::HistorySpecifics,
            PROTOBUF_FIELD_OFFSET(::sync_pb::HistorySpecifics, _impl_.categories_)>()
         }
        ,
        related_searches_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::HistorySpecifics,
            PROTOBUF_FIELD_OFFSET(::sync_pb::HistorySpecifics, _impl_.related_searches_)>()
         }
        ,
        originator_cache_guid_(arena),
        page_language_(arena),
        favicon_url_(arena),
        referrer_url_(arena),
        app_id_(arena) {}

inline void HistorySpecifics::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, page_transition_),
           0,
           offsetof(Impl_, originator_cluster_id_) -
               offsetof(Impl_, page_transition_) +
               sizeof(Impl_::originator_cluster_id_));
}
HistorySpecifics::~HistorySpecifics() {
  // @@protoc_insertion_point(destructor:sync_pb.HistorySpecifics)
  SharedDtor(*this);
}
inline void HistorySpecifics::SharedDtor(MessageLite& self) {
  HistorySpecifics& this_ = static_cast<HistorySpecifics&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.originator_cache_guid_.Destroy();
  this_._impl_.page_language_.Destroy();
  this_._impl_.favicon_url_.Destroy();
  this_._impl_.referrer_url_.Destroy();
  this_._impl_.app_id_.Destroy();
  delete this_._impl_.page_transition_;
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite HistorySpecifics_class_data_ =
    HistorySpecifics::InternalGenerateClassData_(HistorySpecifics_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
HistorySpecifics::GetClassData() const {
  return HistorySpecifics_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
HistorySpecifics::GetClassData() const {
  return HistorySpecifics_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const HistorySpecifics::ParseTableT_
    HistorySpecifics::_table_ =
        HistorySpecifics::InternalGenerateParseTable_(HistorySpecifics_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void HistorySpecifics::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.HistorySpecifics)
  ::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_.redirect_entries_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.categories_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.related_searches_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.originator_cache_guid_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.page_language_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _impl_.favicon_url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _impl_.referrer_url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _impl_.app_id_.ClearNonDefaultToEmpty();
    }
  }
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    ABSL_DCHECK(_impl_.page_transition_ != nullptr);
    _impl_.page_transition_->Clear();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000fe00U)) {
    ::memset(&_impl_.visit_time_windows_epoch_micros_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.task_id_) -
        reinterpret_cast<char*>(&_impl_.visit_time_windows_epoch_micros_)) + sizeof(_impl_.task_id_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) {
    ::memset(&_impl_.root_task_id_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.redirect_chain_middle_trimmed_) -
        reinterpret_cast<char*>(&_impl_.root_task_id_)) + sizeof(_impl_.redirect_chain_middle_trimmed_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x03000000U)) {
    ::memset(&_impl_.has_url_keyed_image_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.originator_cluster_id_) -
        reinterpret_cast<char*>(&_impl_.has_url_keyed_image_)) + sizeof(_impl_.originator_cluster_id_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // optional string originator_cache_guid = 2;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    const ::std::string& _s = this_._internal_originator_cache_guid();
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // repeated .sync_pb.HistorySpecifics.RedirectEntry redirect_entries = 3;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_redirect_entries_size());
         i < n; i++) {
      const auto& repfield = this_._internal_redirect_entries().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              3, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // optional .sync_pb.HistorySpecifics.PageTransition page_transition = 4;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        4, *this_._impl_.page_transition_, this_._impl_.page_transition_->GetCachedSize(), target,
        stream);
  }

  // optional int64 originator_referring_visit_id = 5;
  if (CheckHasBit(cached_has_bits, 0x00000400U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
            stream, this_._internal_originator_referring_visit_id(), target);
  }

  // optional int64 originator_opener_visit_id = 6;
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
            stream, this_._internal_originator_opener_visit_id(), target);
  }

  // optional int64 visit_duration_micros = 7;
  if (CheckHasBit(cached_has_bits, 0x00001000U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>(
            stream, this_._internal_visit_duration_micros(), target);
  }

  // optional .sync_pb.SyncEnums.BrowserType browser_type = 8;
  if (CheckHasBit(cached_has_bits, 0x00002000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        8, this_._internal_browser_type(), target);
  }

  // optional int32 window_id = 9;
  if (CheckHasBit(cached_has_bits, 0x00004000U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>(
            stream, this_._internal_window_id(), target);
  }

  // optional int32 tab_id = 10;
  if (CheckHasBit(cached_has_bits, 0x00020000U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<10>(
            stream, this_._internal_tab_id(), target);
  }

  // optional int64 task_id = 11;
  if (CheckHasBit(cached_has_bits, 0x00008000U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<11>(
            stream, this_._internal_task_id(), target);
  }

  // optional int64 root_task_id = 12;
  if (CheckHasBit(cached_has_bits, 0x00010000U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<12>(
            stream, this_._internal_root_task_id(), target);
  }

  // optional int64 parent_task_id = 13;
  if (CheckHasBit(cached_has_bits, 0x00080000U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<13>(
            stream, this_._internal_parent_task_id(), target);
  }

  // optional int32 http_response_code = 14;
  if (CheckHasBit(cached_has_bits, 0x00040000U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<14>(
            stream, this_._internal_http_response_code(), target);
  }

  // optional string page_language = 15;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    const ::std::string& _s = this_._internal_page_language();
    target = stream->WriteStringMaybeAliased(15, _s, target);
  }

  // optional .sync_pb.SyncEnums.PasswordState password_state = 16;
  if (CheckHasBit(cached_has_bits, 0x00100000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        16, this_._internal_password_state(), target);
  }

  // optional string favicon_url = 17;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    const ::std::string& _s = this_._internal_favicon_url();
    target = stream->WriteStringMaybeAliased(17, _s, target);
  }

  // optional string referrer_url = 18;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    const ::std::string& _s = this_._internal_referrer_url();
    target = stream->WriteStringMaybeAliased(18, _s, target);
  }

  // optional bool redirect_chain_start_incomplete = 19;
  if (CheckHasBit(cached_has_bits, 0x00200000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        19, this_._internal_redirect_chain_start_incomplete(), target);
  }

  // optional bool redirect_chain_end_incomplete = 20;
  if (CheckHasBit(cached_has_bits, 0x00400000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        20, this_._internal_redirect_chain_end_incomplete(), target);
  }

  // optional bool redirect_chain_middle_trimmed = 21;
  if (CheckHasBit(cached_has_bits, 0x00800000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        21, this_._internal_redirect_chain_middle_trimmed(), target);
  }

  // optional int64 originator_cluster_id = 22;
  if (CheckHasBit(cached_has_bits, 0x02000000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        22, this_._internal_originator_cluster_id(), target);
  }

  // optional bool has_url_keyed_image = 23;
  if (CheckHasBit(cached_has_bits, 0x01000000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        23, this_._internal_has_url_keyed_image(), target);
  }

  // repeated .sync_pb.HistorySpecifics.Category categories = 24;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_categories_size());
         i < n; i++) {
      const auto& repfield = this_._internal_categories().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              24, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // repeated string related_searches = 25;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    for (int i = 0, n = this_._internal_related_searches_size(); i < n; ++i) {
      const auto& s = this_._internal_related_searches().Get(i);
      target = stream->WriteString(25, s, target);
    }
  }

  // optional string app_id = 26;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    const ::std::string& _s = this_._internal_app_id();
    target = stream->WriteStringMaybeAliased(26, _s, target);
  }

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t HistorySpecifics::ByteSizeLong(const MessageLite& base) {
  const HistorySpecifics& this_ = static_cast<const HistorySpecifics&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t HistorySpecifics::ByteSizeLong() const {
  const HistorySpecifics& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.HistorySpecifics)
  ::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(0x01e00000U & cached_has_bits) * 3;
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    // repeated .sync_pb.HistorySpecifics.RedirectEntry redirect_entries = 3;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_redirect_entries_size();
      for (const auto& msg : this_._internal_redirect_entries()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .sync_pb.HistorySpecifics.Category categories = 24;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 2UL * this_._internal_categories_size();
      for (const auto& msg : this_._internal_categories()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated string related_searches = 25;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size +=
          2 * ::google::protobuf::internal::FromIntSize(this_._internal_related_searches().size());
      for (int i = 0, n = this_._internal_related_searches().size(); i < n; ++i) {
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
            this_._internal_related_searches().Get(i));
      }
    }
    // optional string originator_cache_guid = 2;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_originator_cache_guid());
    }
    // optional string page_language = 15;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_page_language());
    }
    // optional string favicon_url = 17;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_favicon_url());
    }
    // optional string referrer_url = 18;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_referrer_url());
    }
    // optional string app_id = 26;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_app_id());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    // optional .sync_pb.HistorySpecifics.PageTransition page_transition = 4;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.page_transition_);
    }
    // optional int64 visit_time_windows_epoch_micros = 1;
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_visit_time_windows_epoch_micros());
    }
    // optional int64 originator_referring_visit_id = 5;
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_originator_referring_visit_id());
    }
    // optional int64 originator_opener_visit_id = 6;
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_originator_opener_visit_id());
    }
    // optional int64 visit_duration_micros = 7;
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_visit_duration_micros());
    }
    // optional .sync_pb.SyncEnums.BrowserType browser_type = 8;
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_browser_type());
    }
    // optional int32 window_id = 9;
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_window_id());
    }
    // optional int64 task_id = 11;
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_task_id());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x001f0000U)) {
    // optional int64 root_task_id = 12;
    if (CheckHasBit(cached_has_bits, 0x00010000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_root_task_id());
    }
    // optional int32 tab_id = 10;
    if (CheckHasBit(cached_has_bits, 0x00020000U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_tab_id());
    }
    // optional int32 http_response_code = 14;
    if (CheckHasBit(cached_has_bits, 0x00040000U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_http_response_code());
    }
    // optional int64 parent_task_id = 13;
    if (CheckHasBit(cached_has_bits, 0x00080000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_parent_task_id());
    }
    // optional .sync_pb.SyncEnums.PasswordState password_state = 16;
    if (CheckHasBit(cached_has_bits, 0x00100000U)) {
      total_size += 2 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_password_state());
    }
  }
   {
    // optional int64 originator_cluster_id = 22;
    if (CheckHasBit(cached_has_bits, 0x02000000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
                                      this_._internal_originator_cluster_id());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void HistorySpecifics::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<HistorySpecifics*>(&to_msg);
  auto& from = static_cast<const HistorySpecifics&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.HistorySpecifics)
  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_redirect_entries()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_redirect_entries());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_categories()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_categories());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_mutable_related_searches()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_related_searches());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_originator_cache_guid(from._internal_originator_cache_guid());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_internal_set_page_language(from._internal_page_language());
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_internal_set_favicon_url(from._internal_favicon_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_internal_set_referrer_url(from._internal_referrer_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_internal_set_app_id(from._internal_app_id());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      ABSL_DCHECK(from._impl_.page_transition_ != nullptr);
      if (_this->_impl_.page_transition_ == nullptr) {
        _this->_impl_.page_transition_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.page_transition_);
      } else {
        _this->_impl_.page_transition_->MergeFrom(*from._impl_.page_transition_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _this->_impl_.visit_time_windows_epoch_micros_ = from._impl_.visit_time_windows_epoch_micros_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _this->_impl_.originator_referring_visit_id_ = from._impl_.originator_referring_visit_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _this->_impl_.originator_opener_visit_id_ = from._impl_.originator_opener_visit_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      _this->_impl_.visit_duration_micros_ = from._impl_.visit_duration_micros_;
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      _this->_impl_.browser_type_ = from._impl_.browser_type_;
    }
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      _this->_impl_.window_id_ = from._impl_.window_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      _this->_impl_.task_id_ = from._impl_.task_id_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) {
    if (CheckHasBit(cached_has_bits, 0x00010000U)) {
      _this->_impl_.root_task_id_ = from._impl_.root_task_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00020000U)) {
      _this->_impl_.tab_id_ = from._impl_.tab_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00040000U)) {
      _this->_impl_.http_response_code_ = from._impl_.http_response_code_;
    }
    if (CheckHasBit(cached_has_bits, 0x00080000U)) {
      _this->_impl_.parent_task_id_ = from._impl_.parent_task_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00100000U)) {
      _this->_impl_.password_state_ = from._impl_.password_state_;
    }
    if (CheckHasBit(cached_has_bits, 0x00200000U)) {
      _this->_impl_.redirect_chain_start_incomplete_ = from._impl_.redirect_chain_start_incomplete_;
    }
    if (CheckHasBit(cached_has_bits, 0x00400000U)) {
      _this->_impl_.redirect_chain_end_incomplete_ = from._impl_.redirect_chain_end_incomplete_;
    }
    if (CheckHasBit(cached_has_bits, 0x00800000U)) {
      _this->_impl_.redirect_chain_middle_trimmed_ = from._impl_.redirect_chain_middle_trimmed_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x03000000U)) {
    if (CheckHasBit(cached_has_bits, 0x01000000U)) {
      _this->_impl_.has_url_keyed_image_ = from._impl_.has_url_keyed_image_;
    }
    if (CheckHasBit(cached_has_bits, 0x02000000U)) {
      _this->_impl_.originator_cluster_id_ = from._impl_.originator_cluster_id_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void HistorySpecifics::InternalSwap(HistorySpecifics* 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_.redirect_entries_.InternalSwap(&other->_impl_.redirect_entries_);
  _impl_.categories_.InternalSwap(&other->_impl_.categories_);
  _impl_.related_searches_.InternalSwap(&other->_impl_.related_searches_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.originator_cache_guid_, &other->_impl_.originator_cache_guid_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.page_language_, &other->_impl_.page_language_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.favicon_url_, &other->_impl_.favicon_url_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.referrer_url_, &other->_impl_.referrer_url_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.app_id_, &other->_impl_.app_id_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.originator_cluster_id_)
      + sizeof(HistorySpecifics::_impl_.originator_cluster_id_)
      - PROTOBUF_FIELD_OFFSET(HistorySpecifics, _impl_.page_transition_)>(
          reinterpret_cast<char*>(&_impl_.page_transition_),
          reinterpret_cast<char*>(&other->_impl_.page_transition_));
}

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