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

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

constexpr ReplacedNavigation::ParseTableT_ ReplacedNavigation::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ReplacedNavigation, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::ReplacedNavigation>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional string first_committed_url = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(ReplacedNavigation, _impl_.first_committed_url_)}},
      // optional int64 first_timestamp_msec = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(ReplacedNavigation, _impl_.first_timestamp_msec_)}},
      // optional .sync_pb.SyncEnums.PageTransition first_page_transition = 3;
      {::_pbi::TcParser::FastEr0S1,
       {24, 2, 10,
        PROTOBUF_FIELD_OFFSET(ReplacedNavigation, _impl_.first_page_transition_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string first_committed_url = 1;
      {PROTOBUF_FIELD_OFFSET(ReplacedNavigation, _impl_.first_committed_url_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int64 first_timestamp_msec = 2;
      {PROTOBUF_FIELD_OFFSET(ReplacedNavigation, _impl_.first_timestamp_msec_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional .sync_pb.SyncEnums.PageTransition first_page_transition = 3;
      {PROTOBUF_FIELD_OFFSET(ReplacedNavigation, _impl_.first_page_transition_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
    }},
    {{
        {0, 10},
    }},
    {{
    }},
  };
}


inline constexpr ReplacedNavigation::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        first_committed_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        first_timestamp_msec_{::int64_t{0}},
        first_page_transition_{static_cast< ::sync_pb::SyncEnums_PageTransition >(0)} {}

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

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

constexpr NavigationRedirect::ParseTableT_ NavigationRedirect::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NavigationRedirect, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      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::NavigationRedirect>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional string url = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(NavigationRedirect, _impl_.url_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string url = 1;
      {PROTOBUF_FIELD_OFFSET(NavigationRedirect, _impl_.url_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr NavigationRedirect::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()) {}

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

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

constexpr TabNavigation::ParseTableT_ TabNavigation::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_._has_bits_),
      0, // no _extensions_
      30, 248,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      3221487633,  // skipmap
      offsetof(ParseTableT_, field_entries),
      27,  // num_field_entries
      6,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::TabNavigation>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional string virtual_url = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 2, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.virtual_url_)}},
      // optional string referrer = 3;
      {::_pbi::TcParser::FastBS1,
       {26, 3, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.referrer_)}},
      // optional string title = 4;
      {::_pbi::TcParser::FastBS1,
       {34, 4, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.title_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional .sync_pb.SyncEnums.PageTransition page_transition = 6 [default = LINK];
      {::_pbi::TcParser::FastEr0S1,
       {48, 10, 10,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.page_transition_)}},
      // optional .sync_pb.SyncEnums.PageTransitionRedirectType redirect_type = 7;
      {::_pbi::TcParser::FastEr1S1,
       {56, 25, 2,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.redirect_type_)}},
      // optional int32 unique_id = 8;
      {::_pbi::TcParser::FastV32S1,
       {64, 11, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.unique_id_)}},
      // optional int64 timestamp_msec = 9;
      {::_pbi::TcParser::FastV64S1,
       {72, 12, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.timestamp_msec_)}},
      // optional bool navigation_forward_back = 10;
      {::_pbi::TcParser::FastV8S1,
       {80, 13, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.navigation_forward_back_)}},
      // optional bool navigation_from_address_bar = 11;
      {::_pbi::TcParser::FastV8S1,
       {88, 14, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.navigation_from_address_bar_)}},
      // optional bool navigation_home_page = 12;
      {::_pbi::TcParser::FastV8S1,
       {96, 15, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.navigation_home_page_)}},
      // optional bool navigation_chain_start = 13 [deprecated = true];
      {::_pbi::TcParser::FastV8S1,
       {104, 16, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.navigation_chain_start_)}},
      // optional bool navigation_chain_end = 14 [deprecated = true];
      {::_pbi::TcParser::FastV8S1,
       {112, 17, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.navigation_chain_end_)}},
      // optional int64 global_id = 15;
      {::_pbi::TcParser::FastV64S1,
       {120, 19, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.global_id_)}},
      // optional string search_terms = 16 [deprecated = true];
      {::_pbi::TcParser::FastBS2,
       {386, 5, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.search_terms_)}},
      // optional string favicon_url = 17;
      {::_pbi::TcParser::FastBS2,
       {394, 6, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.favicon_url_)}},
      // optional .sync_pb.TabNavigation.BlockedState blocked_state = 18 [default = STATE_ALLOWED, deprecated = true];
      {::_pbi::TcParser::FastEr1S2,
       {400, 26, 2,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.blocked_state_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional int32 http_status_code = 20;
      {::_pbi::TcParser::FastV32S2,
       {416, 20, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.http_status_code_)}},
      // optional int32 obsolete_referrer_policy = 21 [deprecated = true];
      {::_pbi::TcParser::FastV32S2,
       {424, 21, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.obsolete_referrer_policy_)}},
      // optional bool is_restored = 22 [deprecated = true];
      {::_pbi::TcParser::FastV8S2,
       {432, 18, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.is_restored_)}},
      // repeated .sync_pb.NavigationRedirect navigation_redirect = 23 [deprecated = true];
      {::_pbi::TcParser::FastMtR2,
       {442, 0, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.navigation_redirect_)}},
      // optional string last_navigation_redirect_url = 24 [deprecated = true];
      {::_pbi::TcParser::FastBS2,
       {450, 7, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.last_navigation_redirect_url_)}},
      // optional int32 correct_referrer_policy = 25 [default = 1];
      {::_pbi::TcParser::FastV32S2,
       {456, 24, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.correct_referrer_policy_)}},
      // optional .sync_pb.SyncEnums.PasswordState password_state = 26;
      {::_pbi::TcParser::FastEr0S2,
       {464, 23, 2,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.password_state_)}},
      // optional int64 task_id = 27 [deprecated = true];
      {::_pbi::TcParser::FastV64S2,
       {472, 22, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.task_id_)}},
      // repeated int64 ancestor_task_id = 28 [deprecated = true];
      {::_pbi::TcParser::FastV64R2,
       {480, 1, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.ancestor_task_id_)}},
      // optional .sync_pb.ReplacedNavigation replaced_navigation = 29 [deprecated = true];
      {::_pbi::TcParser::FastMtS2,
       {490, 9, 1,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.replaced_navigation_)}},
      // optional string page_language = 30 [deprecated = true];
      {::_pbi::TcParser::FastBS2,
       {498, 8, 0,
        PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.page_language_)}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string virtual_url = 2;
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.virtual_url_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string referrer = 3;
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.referrer_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string title = 4;
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.title_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .sync_pb.SyncEnums.PageTransition page_transition = 6 [default = LINK];
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.page_transition_), _Internal::kHasBitsOffset + 10, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional .sync_pb.SyncEnums.PageTransitionRedirectType redirect_type = 7;
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.redirect_type_), _Internal::kHasBitsOffset + 25, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional int32 unique_id = 8;
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.unique_id_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int64 timestamp_msec = 9;
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.timestamp_msec_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional bool navigation_forward_back = 10;
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.navigation_forward_back_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool navigation_from_address_bar = 11;
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.navigation_from_address_bar_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool navigation_home_page = 12;
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.navigation_home_page_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool navigation_chain_start = 13 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.navigation_chain_start_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool navigation_chain_end = 14 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.navigation_chain_end_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional int64 global_id = 15;
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.global_id_), _Internal::kHasBitsOffset + 19, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional string search_terms = 16 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.search_terms_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string favicon_url = 17;
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.favicon_url_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .sync_pb.TabNavigation.BlockedState blocked_state = 18 [default = STATE_ALLOWED, deprecated = true];
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.blocked_state_), _Internal::kHasBitsOffset + 26, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional int32 http_status_code = 20;
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.http_status_code_), _Internal::kHasBitsOffset + 20, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int32 obsolete_referrer_policy = 21 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.obsolete_referrer_policy_), _Internal::kHasBitsOffset + 21, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional bool is_restored = 22 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.is_restored_), _Internal::kHasBitsOffset + 18, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // repeated .sync_pb.NavigationRedirect navigation_redirect = 23 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.navigation_redirect_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional string last_navigation_redirect_url = 24 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.last_navigation_redirect_url_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int32 correct_referrer_policy = 25 [default = 1];
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.correct_referrer_policy_), _Internal::kHasBitsOffset + 24, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional .sync_pb.SyncEnums.PasswordState password_state = 26;
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.password_state_), _Internal::kHasBitsOffset + 23, 5, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional int64 task_id = 27 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.task_id_), _Internal::kHasBitsOffset + 22, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // repeated int64 ancestor_task_id = 28 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.ancestor_task_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kInt64)},
      // optional .sync_pb.ReplacedNavigation replaced_navigation = 29 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.replaced_navigation_), _Internal::kHasBitsOffset + 9, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional string page_language = 30 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.page_language_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::NavigationRedirect>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::NavigationRedirect_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::ReplacedNavigation>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::ReplacedNavigation_globals_},
        #endif
        {0, 10},
        {1, 2},
        {1, 2},
        {0, 2},
    }},
    {{
    }},
  };
}


inline constexpr TabNavigation::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        navigation_redirect_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::TabNavigation,
            PROTOBUF_FIELD_OFFSET(::sync_pb::TabNavigation, _impl_.navigation_redirect_)>()
         }
        ,
        ancestor_task_id_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::TabNavigation,
            PROTOBUF_FIELD_OFFSET(::sync_pb::TabNavigation, _impl_.ancestor_task_id_)>()
         }
        ,
        virtual_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        referrer_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        title_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        search_terms_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        favicon_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        last_navigation_redirect_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        page_language_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        replaced_navigation_{nullptr},
        page_transition_{static_cast< ::sync_pb::SyncEnums_PageTransition >(0)},
        unique_id_{0},
        timestamp_msec_{::int64_t{0}},
        navigation_forward_back_{false},
        navigation_from_address_bar_{false},
        navigation_home_page_{false},
        navigation_chain_start_{false},
        navigation_chain_end_{false},
        is_restored_{false},
        global_id_{::int64_t{0}},
        http_status_code_{0},
        obsolete_referrer_policy_{0},
        task_id_{::int64_t{0}},
        password_state_{static_cast< ::sync_pb::SyncEnums_PasswordState >(0)},
        correct_referrer_policy_{1},
        redirect_type_{static_cast< ::sync_pb::SyncEnums_PageTransitionRedirectType >(1)},
        blocked_state_{static_cast< ::sync_pb::TabNavigation_BlockedState >(1)} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST TabNavigationGlobalsTypeInternal TabNavigation_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* TabNavigation_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return TabNavigation_globals_.GetClassData();
#else
  return TabNavigation_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace sync_pb
namespace sync_pb {
PROTOBUF_CONSTINIT const uint32_t TabNavigation_BlockedState_internal_data_[] = {
    131073u, 0u, };
static const char TabNavigation_BlockedState_names[] = {
    "STATE_ALLOWED"
    "STATE_BLOCKED"
};

static const ::google::protobuf::internal::EnumEntry TabNavigation_BlockedState_entries[] = {
    {{&TabNavigation_BlockedState_names[0], 13}, 1},
    {{&TabNavigation_BlockedState_names[13], 13}, 2},
};

static const int TabNavigation_BlockedState_entries_by_number[] = {
    0,  // 1 -> STATE_ALLOWED
    1,  // 2 -> STATE_BLOCKED
};

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

const ::std::string& TabNavigation_BlockedState_Name(TabNavigation_BlockedState value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      TabNavigation_BlockedState_entries, TabNavigation_BlockedState_entries_by_number, 2,
      TabNavigation_BlockedState_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(TabNavigation_BlockedState_entries,
                                  TabNavigation_BlockedState_entries_by_number,
                                  2, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : TabNavigation_BlockedState_strings[idx].get();
}
// ===================================================================

TabNavigation::TabNavigation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, TabNavigation_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.TabNavigation)
}
PROTOBUF_NDEBUG_INLINE TabNavigation::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::TabNavigation& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        navigation_redirect_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::sync_pb::TabNavigation,
              PROTOBUF_FIELD_OFFSET(::sync_pb::TabNavigation, _impl_.navigation_redirect_)>()
          , from.navigation_redirect_
        }
        ,
        ancestor_task_id_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::sync_pb::TabNavigation,
              PROTOBUF_FIELD_OFFSET(::sync_pb::TabNavigation, _impl_.ancestor_task_id_)>()
          , from.ancestor_task_id_
        }
        ,
        virtual_url_(arena, from.virtual_url_),
        referrer_(arena, from.referrer_),
        title_(arena, from.title_),
        search_terms_(arena, from.search_terms_),
        favicon_url_(arena, from.favicon_url_),
        last_navigation_redirect_url_(arena, from.last_navigation_redirect_url_),
        page_language_(arena, from.page_language_) {}

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

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

  // @@protoc_insertion_point(copy_constructor:sync_pb.TabNavigation)
}
PROTOBUF_NDEBUG_INLINE TabNavigation::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        navigation_redirect_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::TabNavigation,
            PROTOBUF_FIELD_OFFSET(::sync_pb::TabNavigation, _impl_.navigation_redirect_)>()
         }
        ,
        ancestor_task_id_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::TabNavigation,
            PROTOBUF_FIELD_OFFSET(::sync_pb::TabNavigation, _impl_.ancestor_task_id_)>()
         }
        ,
        virtual_url_(arena),
        referrer_(arena),
        title_(arena),
        search_terms_(arena),
        favicon_url_(arena),
        last_navigation_redirect_url_(arena),
        page_language_(arena),
        correct_referrer_policy_{1},
        redirect_type_{static_cast< ::sync_pb::SyncEnums_PageTransitionRedirectType >(1)},
        blocked_state_{static_cast< ::sync_pb::TabNavigation_BlockedState >(1)} {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite TabNavigation_class_data_ =
    TabNavigation::InternalGenerateClassData_(TabNavigation_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TabNavigation::GetClassData() const {
  return TabNavigation_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TabNavigation::GetClassData() const {
  return TabNavigation_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const TabNavigation::ParseTableT_
    TabNavigation::_table_ =
        TabNavigation::InternalGenerateParseTable_(TabNavigation_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void TabNavigation::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.TabNavigation)
  ::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_.navigation_redirect_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.ancestor_task_id_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.virtual_url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.referrer_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.title_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _impl_.search_terms_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _impl_.favicon_url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _impl_.last_navigation_redirect_url_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _impl_.page_language_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      ABSL_DCHECK(_impl_.replaced_navigation_ != nullptr);
      _impl_.replaced_navigation_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000fc00U)) {
    ::memset(&_impl_.page_transition_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.navigation_home_page_) -
        reinterpret_cast<char*>(&_impl_.page_transition_)) + sizeof(_impl_.navigation_home_page_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) {
    ::memset(&_impl_.navigation_chain_start_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.password_state_) -
        reinterpret_cast<char*>(&_impl_.navigation_chain_start_)) + sizeof(_impl_.password_state_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x07000000U)) {
    _impl_.correct_referrer_policy_ = 1;
    _impl_.redirect_type_ = 1;
    _impl_.blocked_state_ = 1;
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional string virtual_url = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    const ::std::string& _s = this_._internal_virtual_url();
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

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

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

  // optional .sync_pb.SyncEnums.PageTransition page_transition = 6 [default = LINK];
  if (CheckHasBit(cached_has_bits, 0x00000400U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        6, this_._internal_page_transition(), target);
  }

  // optional .sync_pb.SyncEnums.PageTransitionRedirectType redirect_type = 7;
  if (CheckHasBit(cached_has_bits, 0x02000000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        7, this_._internal_redirect_type(), target);
  }

  // optional int32 unique_id = 8;
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>(
            stream, this_._internal_unique_id(), target);
  }

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

  // optional bool navigation_forward_back = 10;
  if (CheckHasBit(cached_has_bits, 0x00002000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        10, this_._internal_navigation_forward_back(), target);
  }

  // optional bool navigation_from_address_bar = 11;
  if (CheckHasBit(cached_has_bits, 0x00004000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        11, this_._internal_navigation_from_address_bar(), target);
  }

  // optional bool navigation_home_page = 12;
  if (CheckHasBit(cached_has_bits, 0x00008000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        12, this_._internal_navigation_home_page(), target);
  }

  // optional bool navigation_chain_start = 13 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00010000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        13, this_._internal_navigation_chain_start(), target);
  }

  // optional bool navigation_chain_end = 14 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00020000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        14, this_._internal_navigation_chain_end(), target);
  }

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

  // optional string search_terms = 16 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    const ::std::string& _s = this_._internal_search_terms();
    target = stream->WriteStringMaybeAliased(16, _s, target);
  }

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

  // optional .sync_pb.TabNavigation.BlockedState blocked_state = 18 [default = STATE_ALLOWED, deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x04000000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        18, this_._internal_blocked_state(), target);
  }

  // optional int32 http_status_code = 20;
  if (CheckHasBit(cached_has_bits, 0x00100000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        20, this_._internal_http_status_code(), target);
  }

  // optional int32 obsolete_referrer_policy = 21 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00200000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        21, this_._internal_obsolete_referrer_policy(), target);
  }

  // optional bool is_restored = 22 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00040000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        22, this_._internal_is_restored(), target);
  }

  // repeated .sync_pb.NavigationRedirect navigation_redirect = 23 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_navigation_redirect_size());
         i < n; i++) {
      const auto& repfield = this_._internal_navigation_redirect().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              23, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // optional string last_navigation_redirect_url = 24 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    const ::std::string& _s = this_._internal_last_navigation_redirect_url();
    target = stream->WriteStringMaybeAliased(24, _s, target);
  }

  // optional int32 correct_referrer_policy = 25 [default = 1];
  if (CheckHasBit(cached_has_bits, 0x01000000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        25, this_._internal_correct_referrer_policy(), target);
  }

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

  // optional int64 task_id = 27 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00400000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        27, this_._internal_task_id(), target);
  }

  // repeated int64 ancestor_task_id = 28 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (int i = 0, n = this_._internal_ancestor_task_id_size(); i < n; ++i) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteInt64ToArray(
          28, this_._internal_ancestor_task_id().Get(i), target);
    }
  }

  // optional .sync_pb.ReplacedNavigation replaced_navigation = 29 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000200U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        29, *this_._impl_.replaced_navigation_, this_._impl_.replaced_navigation_->GetCachedSize(), target,
        stream);
  }

  // optional string page_language = 30 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    const ::std::string& _s = this_._internal_page_language();
    target = stream->WriteStringMaybeAliased(30, _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.TabNavigation)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t TabNavigation::ByteSizeLong(const MessageLite& base) {
  const TabNavigation& this_ = static_cast<const TabNavigation&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t TabNavigation::ByteSizeLong() const {
  const TabNavigation& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.TabNavigation)
  ::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>(0x00040000U & cached_has_bits) * 3;
  total_size += ::absl::popcount(0x0003e000U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    // repeated .sync_pb.NavigationRedirect navigation_redirect = 23 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 2UL * this_._internal_navigation_redirect_size();
      for (const auto& msg : this_._internal_navigation_redirect()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated int64 ancestor_task_id = 28 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ::size_t data_size = ::_pbi::WireFormatLite::Int64Size(
          this_._internal_ancestor_task_id());
      ::size_t tag_size = ::size_t{2} *
          ::_pbi::FromIntSize(this_._internal_ancestor_task_id_size());
      total_size += tag_size + data_size;
    }
    // optional string virtual_url = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_virtual_url());
    }
    // optional string referrer = 3;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_referrer());
    }
    // optional string title = 4;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_title());
    }
    // optional string search_terms = 16 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_search_terms());
    }
    // optional string favicon_url = 17;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_favicon_url());
    }
    // optional string last_navigation_redirect_url = 24 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_last_navigation_redirect_url());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) {
    // optional string page_language = 30 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_page_language());
    }
    // optional .sync_pb.ReplacedNavigation replaced_navigation = 29 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.replaced_navigation_);
    }
    // optional .sync_pb.SyncEnums.PageTransition page_transition = 6 [default = LINK];
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_page_transition());
    }
    // optional int32 unique_id = 8;
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_unique_id());
    }
    // optional int64 timestamp_msec = 9;
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_timestamp_msec());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00f80000U)) {
    // optional int64 global_id = 15;
    if (CheckHasBit(cached_has_bits, 0x00080000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_global_id());
    }
    // optional int32 http_status_code = 20;
    if (CheckHasBit(cached_has_bits, 0x00100000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                      this_._internal_http_status_code());
    }
    // optional int32 obsolete_referrer_policy = 21 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00200000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                      this_._internal_obsolete_referrer_policy());
    }
    // optional int64 task_id = 27 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00400000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
                                      this_._internal_task_id());
    }
    // optional .sync_pb.SyncEnums.PasswordState password_state = 26;
    if (CheckHasBit(cached_has_bits, 0x00800000U)) {
      total_size += 2 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_password_state());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x07000000U)) {
    // optional int32 correct_referrer_policy = 25 [default = 1];
    if (CheckHasBit(cached_has_bits, 0x01000000U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
                                      this_._internal_correct_referrer_policy());
    }
    // optional .sync_pb.SyncEnums.PageTransitionRedirectType redirect_type = 7;
    if (CheckHasBit(cached_has_bits, 0x02000000U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_redirect_type());
    }
    // optional .sync_pb.TabNavigation.BlockedState blocked_state = 18 [default = STATE_ALLOWED, deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x04000000U)) {
      total_size += 2 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_blocked_state());
    }
  }
  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 TabNavigation::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<TabNavigation*>(&to_msg);
  auto& from = static_cast<const TabNavigation&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.TabNavigation)
  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_navigation_redirect()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_navigation_redirect());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_ancestor_task_id()->MergeFrom(from._internal_ancestor_task_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_virtual_url(from._internal_virtual_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_referrer(from._internal_referrer());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_internal_set_title(from._internal_title());
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_internal_set_search_terms(from._internal_search_terms());
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_internal_set_favicon_url(from._internal_favicon_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_internal_set_last_navigation_redirect_url(from._internal_last_navigation_redirect_url());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _this->_internal_set_page_language(from._internal_page_language());
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      ABSL_DCHECK(from._impl_.replaced_navigation_ != nullptr);
      if (_this->_impl_.replaced_navigation_ == nullptr) {
        _this->_impl_.replaced_navigation_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.replaced_navigation_);
      } else {
        _this->_impl_.replaced_navigation_->MergeFrom(*from._impl_.replaced_navigation_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _this->_impl_.page_transition_ = from._impl_.page_transition_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _this->_impl_.unique_id_ = from._impl_.unique_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      _this->_impl_.timestamp_msec_ = from._impl_.timestamp_msec_;
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      _this->_impl_.navigation_forward_back_ = from._impl_.navigation_forward_back_;
    }
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      _this->_impl_.navigation_from_address_bar_ = from._impl_.navigation_from_address_bar_;
    }
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      _this->_impl_.navigation_home_page_ = from._impl_.navigation_home_page_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) {
    if (CheckHasBit(cached_has_bits, 0x00010000U)) {
      _this->_impl_.navigation_chain_start_ = from._impl_.navigation_chain_start_;
    }
    if (CheckHasBit(cached_has_bits, 0x00020000U)) {
      _this->_impl_.navigation_chain_end_ = from._impl_.navigation_chain_end_;
    }
    if (CheckHasBit(cached_has_bits, 0x00040000U)) {
      _this->_impl_.is_restored_ = from._impl_.is_restored_;
    }
    if (CheckHasBit(cached_has_bits, 0x00080000U)) {
      _this->_impl_.global_id_ = from._impl_.global_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00100000U)) {
      _this->_impl_.http_status_code_ = from._impl_.http_status_code_;
    }
    if (CheckHasBit(cached_has_bits, 0x00200000U)) {
      _this->_impl_.obsolete_referrer_policy_ = from._impl_.obsolete_referrer_policy_;
    }
    if (CheckHasBit(cached_has_bits, 0x00400000U)) {
      _this->_impl_.task_id_ = from._impl_.task_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00800000U)) {
      _this->_impl_.password_state_ = from._impl_.password_state_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x07000000U)) {
    if (CheckHasBit(cached_has_bits, 0x01000000U)) {
      _this->_impl_.correct_referrer_policy_ = from._impl_.correct_referrer_policy_;
    }
    if (CheckHasBit(cached_has_bits, 0x02000000U)) {
      _this->_impl_.redirect_type_ = from._impl_.redirect_type_;
    }
    if (CheckHasBit(cached_has_bits, 0x04000000U)) {
      _this->_impl_.blocked_state_ = from._impl_.blocked_state_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void TabNavigation::InternalSwap(TabNavigation* 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_.navigation_redirect_.InternalSwap(&other->_impl_.navigation_redirect_);
  _impl_.ancestor_task_id_.InternalSwap(&other->_impl_.ancestor_task_id_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.virtual_url_, &other->_impl_.virtual_url_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.referrer_, &other->_impl_.referrer_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.title_, &other->_impl_.title_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.search_terms_, &other->_impl_.search_terms_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.favicon_url_, &other->_impl_.favicon_url_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.last_navigation_redirect_url_, &other->_impl_.last_navigation_redirect_url_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.page_language_, &other->_impl_.page_language_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.blocked_state_)
      + sizeof(TabNavigation::_impl_.blocked_state_)
      - PROTOBUF_FIELD_OFFSET(TabNavigation, _impl_.replaced_navigation_)>(
          reinterpret_cast<char*>(&_impl_.replaced_navigation_),
          reinterpret_cast<char*>(&other->_impl_.replaced_navigation_));
}

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

NavigationRedirect::NavigationRedirect(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NavigationRedirect_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.NavigationRedirect)
}
PROTOBUF_NDEBUG_INLINE NavigationRedirect::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::NavigationRedirect& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        url_(arena, from.url_) {}

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite NavigationRedirect_class_data_ =
    NavigationRedirect::InternalGenerateClassData_(NavigationRedirect_globals_._default);

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional string url = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_url();
    target = stream->WriteStringMaybeAliased(1, _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.NavigationRedirect)
  return target;
}

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

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

   {
    // optional string url = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_url());
    }
  }
  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 NavigationRedirect::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NavigationRedirect*>(&to_msg);
  auto& from = static_cast<const NavigationRedirect&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.NavigationRedirect)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


void NavigationRedirect::InternalSwap(NavigationRedirect* 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);
}

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

ReplacedNavigation::ReplacedNavigation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ReplacedNavigation_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.ReplacedNavigation)
}
PROTOBUF_NDEBUG_INLINE ReplacedNavigation::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::ReplacedNavigation& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        first_committed_url_(arena, from.first_committed_url_) {}

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite ReplacedNavigation_class_data_ =
    ReplacedNavigation::InternalGenerateClassData_(ReplacedNavigation_globals_._default);

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

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

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

  // optional int64 first_timestamp_msec = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
            stream, this_._internal_first_timestamp_msec(), target);
  }

  // optional .sync_pb.SyncEnums.PageTransition first_page_transition = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        3, this_._internal_first_page_transition(), 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.ReplacedNavigation)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // optional string first_committed_url = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_first_committed_url());
    }
    // optional int64 first_timestamp_msec = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_first_timestamp_msec());
    }
    // optional .sync_pb.SyncEnums.PageTransition first_page_transition = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_first_page_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 ReplacedNavigation::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ReplacedNavigation*>(&to_msg);
  auto& from = static_cast<const ReplacedNavigation&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.ReplacedNavigation)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


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

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