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

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

constexpr SessionWindow::ParseTableT_ SessionWindow::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SessionWindow, _impl_._has_bits_),
      0, // no _extensions_
      4, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967280,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // 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::SessionWindow>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated int32 tab = 4;
      {::_pbi::TcParser::FastV32R1,
       {32, 0, 0,
        PROTOBUF_FIELD_OFFSET(SessionWindow, _impl_.tab_)}},
      // optional int32 window_id = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(SessionWindow, _impl_.window_id_)}},
      // optional int32 selected_tab_index = 2 [default = -1];
      {::_pbi::TcParser::FastV32S1,
       {16, 2, 0,
        PROTOBUF_FIELD_OFFSET(SessionWindow, _impl_.selected_tab_index_)}},
      // optional .sync_pb.SyncEnums.BrowserType browser_type = 3 [default = TYPE_TABBED];
      {::_pbi::TcParser::FastEr0S1,
       {24, 3, 4,
        PROTOBUF_FIELD_OFFSET(SessionWindow, _impl_.browser_type_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int32 window_id = 1;
      {PROTOBUF_FIELD_OFFSET(SessionWindow, _impl_.window_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int32 selected_tab_index = 2 [default = -1];
      {PROTOBUF_FIELD_OFFSET(SessionWindow, _impl_.selected_tab_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional .sync_pb.SyncEnums.BrowserType browser_type = 3 [default = TYPE_TABBED];
      {PROTOBUF_FIELD_OFFSET(SessionWindow, _impl_.browser_type_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // repeated int32 tab = 4;
      {PROTOBUF_FIELD_OFFSET(SessionWindow, _impl_.tab_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kInt32)},
    }},
    {{
        {0, 4},
    }},
    {{
    }},
  };
}


inline constexpr SessionWindow::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        tab_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::SessionWindow,
            PROTOBUF_FIELD_OFFSET(::sync_pb::SessionWindow, _impl_.tab_)>()
         }
        ,
        window_id_{0},
        selected_tab_index_{-1},
        browser_type_{static_cast< ::sync_pb::SyncEnums_BrowserType >(1)} {}

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

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

constexpr SessionTabScreenshot::ParseTableT_ SessionTabScreenshot::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SessionTabScreenshot, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::SessionTabScreenshot>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional bytes screenshot_data = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(SessionTabScreenshot, _impl_.screenshot_data_)}},
      // optional string url = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(SessionTabScreenshot, _impl_.url_)}},
      // optional int64 timestamp_unix_epoch_millis = 3;
      {::_pbi::TcParser::FastV64S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(SessionTabScreenshot, _impl_.timestamp_unix_epoch_millis_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional bytes screenshot_data = 1;
      {PROTOBUF_FIELD_OFFSET(SessionTabScreenshot, _impl_.screenshot_data_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string url = 2;
      {PROTOBUF_FIELD_OFFSET(SessionTabScreenshot, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int64 timestamp_unix_epoch_millis = 3;
      {PROTOBUF_FIELD_OFFSET(SessionTabScreenshot, _impl_.timestamp_unix_epoch_millis_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr SessionTabScreenshot::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        screenshot_data_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        timestamp_unix_epoch_millis_{::int64_t{0}} {}

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

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

constexpr SessionHeader::ParseTableT_ SessionHeader::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SessionHeader, _impl_._has_bits_),
      0, // no _extensions_
      6, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967233,  // skipmap
      offsetof(ParseTableT_, field_entries),
      5,  // num_field_entries
      3,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::SessionHeader>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // repeated .sync_pb.SessionWindow window = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(SessionHeader, _impl_.window_)}},
      // optional string client_name = 3;
      {::_pbi::TcParser::FastBS1,
       {26, 1, 0,
        PROTOBUF_FIELD_OFFSET(SessionHeader, _impl_.client_name_)}},
      // optional .sync_pb.SyncEnums.DeviceType device_type = 4 [deprecated = true];
      {::_pbi::TcParser::FastEr0S1,
       {32, 2, 7,
        PROTOBUF_FIELD_OFFSET(SessionHeader, _impl_.device_type_)}},
      // optional .sync_pb.SyncEnums.DeviceFormFactor device_form_factor = 5;
      {::_pbi::TcParser::FastEr0S1,
       {40, 3, 6,
        PROTOBUF_FIELD_OFFSET(SessionHeader, _impl_.device_form_factor_)}},
      // optional int64 session_start_time_unix_epoch_millis = 6;
      {::_pbi::TcParser::FastV64S1,
       {48, 4, 0,
        PROTOBUF_FIELD_OFFSET(SessionHeader, _impl_.session_start_time_unix_epoch_millis_)}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .sync_pb.SessionWindow window = 2;
      {PROTOBUF_FIELD_OFFSET(SessionHeader, _impl_.window_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional string client_name = 3;
      {PROTOBUF_FIELD_OFFSET(SessionHeader, _impl_.client_name_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .sync_pb.SyncEnums.DeviceType device_type = 4 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(SessionHeader, _impl_.device_type_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional .sync_pb.SyncEnums.DeviceFormFactor device_form_factor = 5;
      {PROTOBUF_FIELD_OFFSET(SessionHeader, _impl_.device_form_factor_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional int64 session_start_time_unix_epoch_millis = 6;
      {PROTOBUF_FIELD_OFFSET(SessionHeader, _impl_.session_start_time_unix_epoch_millis_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::SessionWindow>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::SessionWindow_globals_},
        #endif
        {0, 7},
        {0, 6},
    }},
    {{
    }},
  };
}


inline constexpr SessionHeader::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        window_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::SessionHeader,
            PROTOBUF_FIELD_OFFSET(::sync_pb::SessionHeader, _impl_.window_)>()
         }
        ,
        client_name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        device_type_{static_cast< ::sync_pb::SyncEnums_DeviceType >(0)},
        device_form_factor_{static_cast< ::sync_pb::SyncEnums_DeviceFormFactor >(0)},
        session_start_time_unix_epoch_millis_{::int64_t{0}} {}

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

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

constexpr SessionTab::ParseTableT_ SessionTab::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SessionTab, _impl_._has_bits_),
      0, // no _extensions_
      14, 120,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294951424,  // skipmap
      offsetof(ParseTableT_, field_entries),
      13,  // num_field_entries
      3,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::SessionTab>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional int32 tab_id = 1 [default = -1];
      {::_pbi::TcParser::FastV32S1,
       {8, 9, 0,
        PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.tab_id_)}},
      // optional int32 window_id = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 5, 0,
        PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.window_id_)}},
      // optional int32 tab_visual_index = 3 [default = -1];
      {::_pbi::TcParser::FastV32S1,
       {24, 10, 0,
        PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.tab_visual_index_)}},
      // optional int32 current_navigation_index = 4 [default = -1];
      {::_pbi::TcParser::FastV32S1,
       {32, 11, 0,
        PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.current_navigation_index_)}},
      // optional bool pinned = 5 [default = false];
      {::_pbi::TcParser::FastV8S1,
       {40, 6, 0,
        PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.pinned_)}},
      // optional string extension_app_id = 6;
      {::_pbi::TcParser::FastBS1,
       {50, 2, 0,
        PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.extension_app_id_)}},
      // repeated .sync_pb.TabNavigation navigation = 7;
      {::_pbi::TcParser::FastMtR1,
       {58, 0, 0,
        PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.navigation_)}},
      // optional bytes favicon = 8 [deprecated = true];
      {::_pbi::TcParser::FastBS1,
       {66, 3, 0,
        PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.favicon_)}},
      // optional .sync_pb.SessionTab.FaviconType favicon_type = 9 [deprecated = true];
      {::_pbi::TcParser::FastEr1S1,
       {72, 12, 1,
        PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.favicon_type_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional string favicon_source = 11 [deprecated = true];
      {::_pbi::TcParser::FastBS1,
       {90, 4, 0,
        PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.favicon_source_)}},
      // repeated uint64 variation_id = 12 [deprecated = true];
      {::_pbi::TcParser::FastV64R1,
       {96, 1, 0,
        PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.variation_id_)}},
      // optional .sync_pb.SyncEnums.BrowserType browser_type = 13;
      {::_pbi::TcParser::FastEr0S1,
       {104, 8, 4,
        PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.browser_type_)}},
      // optional int64 last_active_time_unix_epoch_millis = 14;
      {::_pbi::TcParser::FastV64S1,
       {112, 7, 0,
        PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.last_active_time_unix_epoch_millis_)}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int32 tab_id = 1 [default = -1];
      {PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.tab_id_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int32 window_id = 2;
      {PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.window_id_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int32 tab_visual_index = 3 [default = -1];
      {PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.tab_visual_index_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int32 current_navigation_index = 4 [default = -1];
      {PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.current_navigation_index_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional bool pinned = 5 [default = false];
      {PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.pinned_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional string extension_app_id = 6;
      {PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.extension_app_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // repeated .sync_pb.TabNavigation navigation = 7;
      {PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.navigation_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional bytes favicon = 8 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.favicon_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .sync_pb.SessionTab.FaviconType favicon_type = 9 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.favicon_type_), _Internal::kHasBitsOffset + 12, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional string favicon_source = 11 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.favicon_source_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // repeated uint64 variation_id = 12 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.variation_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUInt64)},
      // optional .sync_pb.SyncEnums.BrowserType browser_type = 13;
      {PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.browser_type_), _Internal::kHasBitsOffset + 8, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional int64 last_active_time_unix_epoch_millis = 14;
      {PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.last_active_time_unix_epoch_millis_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::TabNavigation>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::TabNavigation_globals_},
        #endif
        {1, 1},
        {0, 4},
    }},
    {{
    }},
  };
}


inline constexpr SessionTab::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        navigation_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::SessionTab,
            PROTOBUF_FIELD_OFFSET(::sync_pb::SessionTab, _impl_.navigation_)>()
         }
        ,
        variation_id_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::SessionTab,
            PROTOBUF_FIELD_OFFSET(::sync_pb::SessionTab, _impl_.variation_id_)>()
         }
        ,
        extension_app_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        favicon_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        favicon_source_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        window_id_{0},
        pinned_{false},
        last_active_time_unix_epoch_millis_{::int64_t{0}},
        browser_type_{static_cast< ::sync_pb::SyncEnums_BrowserType >(0)},
        tab_id_{-1},
        tab_visual_index_{-1},
        current_navigation_index_{-1},
        favicon_type_{static_cast< ::sync_pb::SessionTab_FaviconType >(1)} {}

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

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

constexpr SessionSpecifics::ParseTableT_ SessionSpecifics::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SessionSpecifics, _impl_._has_bits_),
      0, // no _extensions_
      5, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967264,  // skipmap
      offsetof(ParseTableT_, field_entries),
      5,  // num_field_entries
      3,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::SessionSpecifics>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional int32 tab_node_id = 4 [default = -1];
      {::_pbi::TcParser::FastV32S1,
       {32, 1, 0,
        PROTOBUF_FIELD_OFFSET(SessionSpecifics, _impl_.tab_node_id_)}},
      // optional string session_tag = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(SessionSpecifics, _impl_.session_tag_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string session_tag = 1;
      {PROTOBUF_FIELD_OFFSET(SessionSpecifics, _impl_.session_tag_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // .sync_pb.SessionHeader header = 2;
      {PROTOBUF_FIELD_OFFSET(SessionSpecifics, _impl_.content_.header_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .sync_pb.SessionTab tab = 3;
      {PROTOBUF_FIELD_OFFSET(SessionSpecifics, _impl_.content_.tab_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional int32 tab_node_id = 4 [default = -1];
      {PROTOBUF_FIELD_OFFSET(SessionSpecifics, _impl_.tab_node_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // .sync_pb.SessionTabScreenshot tab_screenshot = 5 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(SessionSpecifics, _impl_.content_.tab_screenshot_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::SessionHeader>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::SessionHeader_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::SessionTab>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::SessionTab_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::SessionTabScreenshot>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::SessionTabScreenshot_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr SessionSpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        session_tag_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        tab_node_id_{-1},
        content_{},
        _oneof_case_{} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SessionSpecificsGlobalsTypeInternal SessionSpecifics_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* SessionSpecifics_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return SessionSpecifics_globals_.GetClassData();
#else
  return SessionSpecifics_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace sync_pb
namespace sync_pb {
PROTOBUF_CONSTINIT const uint32_t SessionTab_FaviconType_internal_data_[] = {
    65537u, 0u, };
static const char SessionTab_FaviconType_names[] = {
    "TYPE_WEB_FAVICON"
};

static const ::google::protobuf::internal::EnumEntry SessionTab_FaviconType_entries[] = {
    {{&SessionTab_FaviconType_names[0], 16}, 1},
};

static const int SessionTab_FaviconType_entries_by_number[] = {
    0,  // 1 -> TYPE_WEB_FAVICON
};

bool SessionTab_FaviconType_Parse(::absl::string_view name,
                                  SessionTab_FaviconType* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      SessionTab_FaviconType_entries, 1, name, &int_value);
  if (success) {
    *value = static_cast<SessionTab_FaviconType>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    SessionTab_FaviconType_strings[1] = {};

const ::std::string& SessionTab_FaviconType_Name(SessionTab_FaviconType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      SessionTab_FaviconType_entries, SessionTab_FaviconType_entries_by_number, 1,
      SessionTab_FaviconType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(SessionTab_FaviconType_entries,
                                  SessionTab_FaviconType_entries_by_number,
                                  1, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SessionTab_FaviconType_strings[idx].get();
}
// ===================================================================

void SessionSpecifics::set_allocated_header(::sync_pb::SessionHeader* PROTOBUF_NULLABLE header) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_content();
  if (header) {
    ::google::protobuf::Arena* submessage_arena = header->GetArena();
    if (message_arena != submessage_arena) {
      header = ::google::protobuf::internal::GetOwnedMessage(message_arena, header, submessage_arena);
    }
    set_has_header();
    _impl_.content_.header_ = header;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.SessionSpecifics.header)
}
void SessionSpecifics::set_allocated_tab(::sync_pb::SessionTab* PROTOBUF_NULLABLE tab) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_content();
  if (tab) {
    ::google::protobuf::Arena* submessage_arena = tab->GetArena();
    if (message_arena != submessage_arena) {
      tab = ::google::protobuf::internal::GetOwnedMessage(message_arena, tab, submessage_arena);
    }
    set_has_tab();
    _impl_.content_.tab_ = tab;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.SessionSpecifics.tab)
}
void SessionSpecifics::set_allocated_tab_screenshot(::sync_pb::SessionTabScreenshot* PROTOBUF_NULLABLE tab_screenshot) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_content();
  if (tab_screenshot) {
    ::google::protobuf::Arena* submessage_arena = tab_screenshot->GetArena();
    if (message_arena != submessage_arena) {
      tab_screenshot = ::google::protobuf::internal::GetOwnedMessage(message_arena, tab_screenshot, submessage_arena);
    }
    set_has_tab_screenshot();
    _impl_.content_.tab_screenshot_ = tab_screenshot;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.SessionSpecifics.tab_screenshot)
}
SessionSpecifics::SessionSpecifics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SessionSpecifics_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.SessionSpecifics)
}
PROTOBUF_NDEBUG_INLINE SessionSpecifics::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::SessionSpecifics& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        session_tag_(arena, from.session_tag_),
        content_{},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SessionSpecifics* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  _impl_.tab_node_id_ = from._impl_.tab_node_id_;
  switch (content_case()) {
    case CONTENT_NOT_SET:
      break;
      case kHeader:
        _impl_.content_.header_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.content_.header_);
        break;
      case kTab:
        _impl_.content_.tab_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.content_.tab_);
        break;
      case kTabScreenshot:
        _impl_.content_.tab_screenshot_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.content_.tab_screenshot_);
        break;
  }

  // @@protoc_insertion_point(copy_constructor:sync_pb.SessionSpecifics)
}
PROTOBUF_NDEBUG_INLINE SessionSpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        session_tag_(arena),
        tab_node_id_{-1},
        content_{},
        _oneof_case_{} {}

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

void SessionSpecifics::clear_content() {
// @@protoc_insertion_point(one_of_clear_start:sync_pb.SessionSpecifics)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (content_case()) {
    case kHeader: {
      if (GetArena() == nullptr) {
        delete _impl_.content_.header_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.content_.header_ != nullptr) {
          _impl_.content_.header_->Clear();
        }
      }
      break;
    }
    case kTab: {
      if (GetArena() == nullptr) {
        delete _impl_.content_.tab_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.content_.tab_ != nullptr) {
          _impl_.content_.tab_->Clear();
        }
      }
      break;
    }
    case kTabScreenshot: {
      if (GetArena() == nullptr) {
        delete _impl_.content_.tab_screenshot_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.content_.tab_screenshot_ != nullptr) {
          _impl_.content_.tab_screenshot_->Clear();
        }
      }
      break;
    }
    case CONTENT_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = CONTENT_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SessionSpecifics_class_data_ =
    SessionSpecifics::InternalGenerateClassData_(SessionSpecifics_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SessionSpecifics::GetClassData() const {
  return SessionSpecifics_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SessionSpecifics::GetClassData() const {
  return SessionSpecifics_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SessionSpecifics::ParseTableT_
    SessionSpecifics::_table_ =
        SessionSpecifics::InternalGenerateParseTable_(SessionSpecifics_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void SessionSpecifics::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.SessionSpecifics)
  ::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_.session_tag_.ClearNonDefaultToEmpty();
    }
    _impl_.tab_node_id_ = -1;
  }
  clear_content();
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  switch (this_.content_case()) {
    case kHeader: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          2, *this_._impl_.content_.header_, this_._impl_.content_.header_->GetCachedSize(), target,
          stream);
      break;
    }
    case kTab: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          3, *this_._impl_.content_.tab_, this_._impl_.content_.tab_->GetCachedSize(), target,
          stream);
      break;
    }
    default:
      break;
  }
  // optional int32 tab_node_id = 4 [default = -1];
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>(
            stream, this_._internal_tab_node_id(), target);
  }

  // .sync_pb.SessionTabScreenshot tab_screenshot = 5 [deprecated = true];
  if (this_.content_case() == kTabScreenshot) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        5, *this_._impl_.content_.tab_screenshot_, this_._impl_.content_.tab_screenshot_->GetCachedSize(), target,
        stream);
  }

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SessionSpecifics::ByteSizeLong(const MessageLite& base) {
  const SessionSpecifics& this_ = static_cast<const SessionSpecifics&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SessionSpecifics::ByteSizeLong() const {
  const SessionSpecifics& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.SessionSpecifics)
  ::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 session_tag = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_session_tag());
    }
    // optional int32 tab_node_id = 4 [default = -1];
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_tab_node_id());
    }
  }
  switch (this_.content_case()) {
    // .sync_pb.SessionHeader header = 2;
    case kHeader: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.content_.header_);
      break;
    }
    // .sync_pb.SessionTab tab = 3;
    case kTab: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.content_.tab_);
      break;
    }
    // .sync_pb.SessionTabScreenshot tab_screenshot = 5 [deprecated = true];
    case kTabScreenshot: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.content_.tab_screenshot_);
      break;
    }
    case CONTENT_NOT_SET: {
      break;
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void SessionSpecifics::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SessionSpecifics*>(&to_msg);
  auto& from = static_cast<const SessionSpecifics&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.SessionSpecifics)
  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_session_tag(from._internal_session_tag());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.tab_node_id_ = from._impl_.tab_node_id_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  if (const uint32_t oneof_from_case =
          from._impl_._oneof_case_[0]) {
    const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
    const bool oneof_needs_init = oneof_to_case != oneof_from_case;
    if (oneof_needs_init) {
      if (oneof_to_case != 0) {
        _this->clear_content();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kHeader: {
        if (oneof_needs_init) {
          _this->_impl_.content_.header_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.content_.header_);
        } else {
          _this->_impl_.content_.header_->CheckTypeAndMergeFrom(*from._impl_.content_.header_);
        }
        break;
      }
      case kTab: {
        if (oneof_needs_init) {
          _this->_impl_.content_.tab_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.content_.tab_);
        } else {
          _this->_impl_.content_.tab_->CheckTypeAndMergeFrom(*from._impl_.content_.tab_);
        }
        break;
      }
      case kTabScreenshot: {
        if (oneof_needs_init) {
          _this->_impl_.content_.tab_screenshot_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.content_.tab_screenshot_);
        } else {
          _this->_impl_.content_.tab_screenshot_->CheckTypeAndMergeFrom(*from._impl_.content_.tab_screenshot_);
        }
        break;
      }
      case CONTENT_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SessionSpecifics::InternalSwap(SessionSpecifics* 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_.session_tag_, &other->_impl_.session_tag_, arena);
  swap(_impl_.tab_node_id_, other->_impl_.tab_node_id_);
  swap(_impl_.content_, other->_impl_.content_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

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

SessionHeader::SessionHeader(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SessionHeader_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.SessionHeader)
}
PROTOBUF_NDEBUG_INLINE SessionHeader::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::SessionHeader& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        window_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::sync_pb::SessionHeader,
              PROTOBUF_FIELD_OFFSET(::sync_pb::SessionHeader, _impl_.window_)>()
          , from.window_
        }
        ,
        client_name_(arena, from.client_name_) {}

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SessionHeader_class_data_ =
    SessionHeader::InternalGenerateClassData_(SessionHeader_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SessionHeader::GetClassData() const {
  return SessionHeader_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SessionHeader::GetClassData() const {
  return SessionHeader_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SessionHeader::ParseTableT_
    SessionHeader::_table_ =
        SessionHeader::InternalGenerateParseTable_(SessionHeader_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void SessionHeader::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.SessionHeader)
  ::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_.window_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.client_name_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000001cU)) {
    ::memset(&_impl_.device_type_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.session_start_time_unix_epoch_millis_) -
        reinterpret_cast<char*>(&_impl_.device_type_)) + sizeof(_impl_.session_start_time_unix_epoch_millis_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .sync_pb.SessionWindow window = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_window_size());
         i < n; i++) {
      const auto& repfield = this_._internal_window().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

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

  // optional .sync_pb.SyncEnums.DeviceType device_type = 4 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        4, this_._internal_device_type(), target);
  }

  // optional .sync_pb.SyncEnums.DeviceFormFactor device_form_factor = 5;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        5, this_._internal_device_form_factor(), target);
  }

  // optional int64 session_start_time_unix_epoch_millis = 6;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
            stream, this_._internal_session_start_time_unix_epoch_millis(), 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.SessionHeader)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SessionHeader::ByteSizeLong(const MessageLite& base) {
  const SessionHeader& this_ = static_cast<const SessionHeader&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SessionHeader::ByteSizeLong() const {
  const SessionHeader& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.SessionHeader)
  ::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, 0x0000001fU)) {
    // repeated .sync_pb.SessionWindow window = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_window_size();
      for (const auto& msg : this_._internal_window()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // optional string client_name = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_client_name());
    }
    // optional .sync_pb.SyncEnums.DeviceType device_type = 4 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_device_type());
    }
    // optional .sync_pb.SyncEnums.DeviceFormFactor device_form_factor = 5;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_device_form_factor());
    }
    // optional int64 session_start_time_unix_epoch_millis = 6;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_session_start_time_unix_epoch_millis());
    }
  }
  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 SessionHeader::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SessionHeader*>(&to_msg);
  auto& from = static_cast<const SessionHeader&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.SessionHeader)
  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_mutable_window()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_window());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_client_name(from._internal_client_name());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.device_type_ = from._impl_.device_type_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.device_form_factor_ = from._impl_.device_form_factor_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.session_start_time_unix_epoch_millis_ = from._impl_.session_start_time_unix_epoch_millis_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SessionHeader::InternalSwap(SessionHeader* 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_.window_.InternalSwap(&other->_impl_.window_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.client_name_, &other->_impl_.client_name_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(SessionHeader, _impl_.session_start_time_unix_epoch_millis_)
      + sizeof(SessionHeader::_impl_.session_start_time_unix_epoch_millis_)
      - PROTOBUF_FIELD_OFFSET(SessionHeader, _impl_.device_type_)>(
          reinterpret_cast<char*>(&_impl_.device_type_),
          reinterpret_cast<char*>(&other->_impl_.device_type_));
}

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

SessionWindow::SessionWindow(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SessionWindow_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.SessionWindow)
}
PROTOBUF_NDEBUG_INLINE SessionWindow::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::SessionWindow& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        tab_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::sync_pb::SessionWindow,
              PROTOBUF_FIELD_OFFSET(::sync_pb::SessionWindow, _impl_.tab_)>()
          , from.tab_
        }
     {}

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

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

  // @@protoc_insertion_point(copy_constructor:sync_pb.SessionWindow)
}
PROTOBUF_NDEBUG_INLINE SessionWindow::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        tab_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::SessionWindow,
            PROTOBUF_FIELD_OFFSET(::sync_pb::SessionWindow, _impl_.tab_)>()
         }
        ,
        selected_tab_index_{-1},
        browser_type_{static_cast< ::sync_pb::SyncEnums_BrowserType >(1)} {}

inline void SessionWindow::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.window_id_ = {};
}
SessionWindow::~SessionWindow() {
  // @@protoc_insertion_point(destructor:sync_pb.SessionWindow)
  SharedDtor(*this);
}
inline void SessionWindow::SharedDtor(MessageLite& self) {
  SessionWindow& this_ = static_cast<SessionWindow&>(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 SessionWindow_class_data_ =
    SessionWindow::InternalGenerateClassData_(SessionWindow_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SessionWindow::GetClassData() const {
  return SessionWindow_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SessionWindow::GetClassData() const {
  return SessionWindow_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SessionWindow::ParseTableT_
    SessionWindow::_table_ =
        SessionWindow::InternalGenerateParseTable_(SessionWindow_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void SessionWindow::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.SessionWindow)
  ::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_.tab_.Clear();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) {
    _impl_.window_id_ = 0;
    _impl_.selected_tab_index_ = -1;
    _impl_.browser_type_ = 1;
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // optional int32 selected_tab_index = 2 [default = -1];
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
            stream, this_._internal_selected_tab_index(), target);
  }

  // optional .sync_pb.SyncEnums.BrowserType browser_type = 3 [default = TYPE_TABBED];
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        3, this_._internal_browser_type(), target);
  }

  // repeated int32 tab = 4;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (int i = 0, n = this_._internal_tab_size(); i < n; ++i) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteInt32ToArray(
          4, this_._internal_tab().Get(i), 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.SessionWindow)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SessionWindow::ByteSizeLong(const MessageLite& base) {
  const SessionWindow& this_ = static_cast<const SessionWindow&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SessionWindow::ByteSizeLong() const {
  const SessionWindow& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.SessionWindow)
  ::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, 0x0000000fU)) {
    // repeated int32 tab = 4;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
          this_._internal_tab());
      ::size_t tag_size = ::size_t{1} *
          ::_pbi::FromIntSize(this_._internal_tab_size());
      total_size += tag_size + data_size;
    }
    // optional int32 window_id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_window_id());
    }
    // optional int32 selected_tab_index = 2 [default = -1];
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_selected_tab_index());
    }
    // optional .sync_pb.SyncEnums.BrowserType browser_type = 3 [default = TYPE_TABBED];
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_browser_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 SessionWindow::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SessionWindow*>(&to_msg);
  auto& from = static_cast<const SessionWindow&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.SessionWindow)
  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, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_tab()->MergeFrom(from._internal_tab());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.window_id_ = from._impl_.window_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.selected_tab_index_ = from._impl_.selected_tab_index_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.browser_type_ = from._impl_.browser_type_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

void SessionTab::clear_navigation() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.navigation_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
SessionTab::SessionTab(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SessionTab_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.SessionTab)
}
PROTOBUF_NDEBUG_INLINE SessionTab::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::SessionTab& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        navigation_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::sync_pb::SessionTab,
              PROTOBUF_FIELD_OFFSET(::sync_pb::SessionTab, _impl_.navigation_)>()
          , from.navigation_
        }
        ,
        variation_id_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::sync_pb::SessionTab,
              PROTOBUF_FIELD_OFFSET(::sync_pb::SessionTab, _impl_.variation_id_)>()
          , from.variation_id_
        }
        ,
        extension_app_id_(arena, from.extension_app_id_),
        favicon_(arena, from.favicon_),
        favicon_source_(arena, from.favicon_source_) {}

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

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

  // @@protoc_insertion_point(copy_constructor:sync_pb.SessionTab)
}
PROTOBUF_NDEBUG_INLINE SessionTab::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        navigation_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::SessionTab,
            PROTOBUF_FIELD_OFFSET(::sync_pb::SessionTab, _impl_.navigation_)>()
         }
        ,
        variation_id_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::SessionTab,
            PROTOBUF_FIELD_OFFSET(::sync_pb::SessionTab, _impl_.variation_id_)>()
         }
        ,
        extension_app_id_(arena),
        favicon_(arena),
        favicon_source_(arena),
        tab_id_{-1},
        tab_visual_index_{-1},
        current_navigation_index_{-1},
        favicon_type_{static_cast< ::sync_pb::SessionTab_FaviconType >(1)} {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SessionTab_class_data_ =
    SessionTab::InternalGenerateClassData_(SessionTab_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.navigation_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.variation_id_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.extension_app_id_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.favicon_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.favicon_source_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000000e0U)) {
    ::memset(&_impl_.window_id_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.last_active_time_unix_epoch_millis_) -
        reinterpret_cast<char*>(&_impl_.window_id_)) + sizeof(_impl_.last_active_time_unix_epoch_millis_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) {
    _impl_.browser_type_ = 0;
    _impl_.tab_id_ = -1;
    _impl_.tab_visual_index_ = -1;
    _impl_.current_navigation_index_ = -1;
    _impl_.favicon_type_ = 1;
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional int32 tab_id = 1 [default = -1];
  if (CheckHasBit(cached_has_bits, 0x00000200U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
            stream, this_._internal_tab_id(), target);
  }

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

  // optional int32 tab_visual_index = 3 [default = -1];
  if (CheckHasBit(cached_has_bits, 0x00000400U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
            stream, this_._internal_tab_visual_index(), target);
  }

  // optional int32 current_navigation_index = 4 [default = -1];
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>(
            stream, this_._internal_current_navigation_index(), target);
  }

  // optional bool pinned = 5 [default = false];
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        5, this_._internal_pinned(), target);
  }

  // optional string extension_app_id = 6;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    const ::std::string& _s = this_._internal_extension_app_id();
    target = stream->WriteStringMaybeAliased(6, _s, target);
  }

  // repeated .sync_pb.TabNavigation navigation = 7;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_navigation_size());
         i < n; i++) {
      const auto& repfield = this_._internal_navigation().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              7, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // optional bytes favicon = 8 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    const ::std::string& _s = this_._internal_favicon();
    target = stream->WriteBytesMaybeAliased(8, _s, target);
  }

  // optional .sync_pb.SessionTab.FaviconType favicon_type = 9 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00001000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        9, this_._internal_favicon_type(), target);
  }

  // optional string favicon_source = 11 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    const ::std::string& _s = this_._internal_favicon_source();
    target = stream->WriteStringMaybeAliased(11, _s, target);
  }

  // repeated uint64 variation_id = 12 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (int i = 0, n = this_._internal_variation_id_size(); i < n; ++i) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
          12, this_._internal_variation_id().Get(i), target);
    }
  }

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

  // optional int64 last_active_time_unix_epoch_millis = 14;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<14>(
            stream, this_._internal_last_active_time_unix_epoch_millis(), 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.SessionTab)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SessionTab::ByteSizeLong(const MessageLite& base) {
  const SessionTab& this_ = static_cast<const SessionTab&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SessionTab::ByteSizeLong() const {
  const SessionTab& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.SessionTab)
  ::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>(0x00000040U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x000000bfU)) {
    // repeated .sync_pb.TabNavigation navigation = 7;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_navigation_size();
      for (const auto& msg : this_._internal_navigation()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated uint64 variation_id = 12 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ::size_t data_size = ::_pbi::WireFormatLite::UInt64Size(
          this_._internal_variation_id());
      ::size_t tag_size = ::size_t{1} *
          ::_pbi::FromIntSize(this_._internal_variation_id_size());
      total_size += tag_size + data_size;
    }
    // optional string extension_app_id = 6;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_extension_app_id());
    }
    // optional bytes favicon = 8 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_favicon());
    }
    // optional string favicon_source = 11 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_favicon_source());
    }
    // optional int32 window_id = 2;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_window_id());
    }
    // optional int64 last_active_time_unix_epoch_millis = 14;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_last_active_time_unix_epoch_millis());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) {
    // optional .sync_pb.SyncEnums.BrowserType browser_type = 13;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_browser_type());
    }
    // optional int32 tab_id = 1 [default = -1];
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_tab_id());
    }
    // optional int32 tab_visual_index = 3 [default = -1];
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_tab_visual_index());
    }
    // optional int32 current_navigation_index = 4 [default = -1];
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_current_navigation_index());
    }
    // optional .sync_pb.SessionTab.FaviconType favicon_type = 9 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_favicon_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 SessionTab::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SessionTab*>(&to_msg);
  auto& from = static_cast<const SessionTab&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.SessionTab)
  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()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_navigation());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_variation_id()->MergeFrom(from._internal_variation_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_extension_app_id(from._internal_extension_app_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_favicon(from._internal_favicon());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_internal_set_favicon_source(from._internal_favicon_source());
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.window_id_ = from._impl_.window_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.pinned_ = from._impl_.pinned_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_impl_.last_active_time_unix_epoch_millis_ = from._impl_.last_active_time_unix_epoch_millis_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _this->_impl_.browser_type_ = from._impl_.browser_type_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _this->_impl_.tab_id_ = from._impl_.tab_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _this->_impl_.tab_visual_index_ = from._impl_.tab_visual_index_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _this->_impl_.current_navigation_index_ = from._impl_.current_navigation_index_;
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      _this->_impl_.favicon_type_ = from._impl_.favicon_type_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SessionTab::InternalSwap(SessionTab* 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_.InternalSwap(&other->_impl_.navigation_);
  _impl_.variation_id_.InternalSwap(&other->_impl_.variation_id_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.extension_app_id_, &other->_impl_.extension_app_id_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.favicon_, &other->_impl_.favicon_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.favicon_source_, &other->_impl_.favicon_source_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.favicon_type_)
      + sizeof(SessionTab::_impl_.favicon_type_)
      - PROTOBUF_FIELD_OFFSET(SessionTab, _impl_.window_id_)>(
          reinterpret_cast<char*>(&_impl_.window_id_),
          reinterpret_cast<char*>(&other->_impl_.window_id_));
}

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SessionTabScreenshot_class_data_ =
    SessionTabScreenshot::InternalGenerateClassData_(SessionTabScreenshot_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SessionTabScreenshot::GetClassData() const {
  return SessionTabScreenshot_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SessionTabScreenshot::GetClassData() const {
  return SessionTabScreenshot_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SessionTabScreenshot::ParseTableT_
    SessionTabScreenshot::_table_ =
        SessionTabScreenshot::InternalGenerateParseTable_(SessionTabScreenshot_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void SessionTabScreenshot::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.SessionTabScreenshot)
  ::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_.screenshot_data_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.url_.ClearNonDefaultToEmpty();
    }
  }
  _impl_.timestamp_unix_epoch_millis_ = ::int64_t{0};
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

  // optional int64 timestamp_unix_epoch_millis = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
            stream, this_._internal_timestamp_unix_epoch_millis(), 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.SessionTabScreenshot)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SessionTabScreenshot::ByteSizeLong(const MessageLite& base) {
  const SessionTabScreenshot& this_ = static_cast<const SessionTabScreenshot&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SessionTabScreenshot::ByteSizeLong() const {
  const SessionTabScreenshot& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.SessionTabScreenshot)
  ::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 bytes screenshot_data = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_screenshot_data());
    }
    // optional string url = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_url());
    }
    // optional int64 timestamp_unix_epoch_millis = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_timestamp_unix_epoch_millis());
    }
  }
  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 SessionTabScreenshot::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SessionTabScreenshot*>(&to_msg);
  auto& from = static_cast<const SessionTabScreenshot&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.SessionTabScreenshot)
  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_screenshot_data(from._internal_screenshot_data());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_url(from._internal_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.timestamp_unix_epoch_millis_ = from._impl_.timestamp_unix_epoch_millis_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SessionTabScreenshot::InternalSwap(SessionTabScreenshot* 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_.screenshot_data_, &other->_impl_.screenshot_data_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena);
  swap(_impl_.timestamp_unix_epoch_millis_, other->_impl_.timestamp_unix_epoch_millis_);
}

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