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

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

constexpr SavedTabGroupTab::ParseTableT_ SavedTabGroupTab::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SavedTabGroupTab, _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
      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::SavedTabGroupTab>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional string title = 4;
      {::_pbi::TcParser::FastBS1,
       {34, 2, 0,
        PROTOBUF_FIELD_OFFSET(SavedTabGroupTab, _impl_.title_)}},
      // optional string group_guid = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(SavedTabGroupTab, _impl_.group_guid_)}},
      // optional int64 position = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 3, 0,
        PROTOBUF_FIELD_OFFSET(SavedTabGroupTab, _impl_.position_)}},
      // optional string url = 3;
      {::_pbi::TcParser::FastBS1,
       {26, 1, 0,
        PROTOBUF_FIELD_OFFSET(SavedTabGroupTab, _impl_.url_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string group_guid = 1;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroupTab, _impl_.group_guid_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int64 position = 2;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroupTab, _impl_.position_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional string url = 3;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroupTab, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string title = 4;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroupTab, _impl_.title_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr SavedTabGroupTab::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        group_guid_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        title_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        position_{::int64_t{0}} {}

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

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

constexpr SavedTabGroup::ParseTableT_ SavedTabGroup::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SavedTabGroup, _impl_._has_bits_),
      0, // no _extensions_
      7, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967184,  // skipmap
      offsetof(ParseTableT_, field_entries),
      6,  // 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::SavedTabGroup>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional int64 position = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 2, 0,
        PROTOBUF_FIELD_OFFSET(SavedTabGroup, _impl_.position_)}},
      // optional string title = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(SavedTabGroup, _impl_.title_)}},
      // optional .sync_pb.SavedTabGroup.SavedTabGroupColor color = 3;
      {::_pbi::TcParser::FastEr0S1,
       {24, 5, 9,
        PROTOBUF_FIELD_OFFSET(SavedTabGroup, _impl_.color_)}},
      // optional int64 pinned_position = 4;
      {::_pbi::TcParser::FastV64S1,
       {32, 3, 0,
        PROTOBUF_FIELD_OFFSET(SavedTabGroup, _impl_.pinned_position_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional string bookmark_node_id = 6;
      {::_pbi::TcParser::FastBS1,
       {50, 1, 0,
        PROTOBUF_FIELD_OFFSET(SavedTabGroup, _impl_.bookmark_node_id_)}},
      // optional int64 projects_position = 7;
      {::_pbi::TcParser::FastV64S1,
       {56, 4, 0,
        PROTOBUF_FIELD_OFFSET(SavedTabGroup, _impl_.projects_position_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int64 position = 1;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroup, _impl_.position_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional string title = 2;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroup, _impl_.title_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .sync_pb.SavedTabGroup.SavedTabGroupColor color = 3;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroup, _impl_.color_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional int64 pinned_position = 4;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroup, _impl_.pinned_position_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional string bookmark_node_id = 6;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroup, _impl_.bookmark_node_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int64 projects_position = 7;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroup, _impl_.projects_position_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    {{
        {0, 9},
    }},
    {{
    }},
  };
}


inline constexpr SavedTabGroup::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        title_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        bookmark_node_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        position_{::int64_t{0}},
        pinned_position_{::int64_t{0}},
        projects_position_{::int64_t{0}},
        color_{static_cast< ::sync_pb::SavedTabGroup_SavedTabGroupColor >(0)} {}

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

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

constexpr SavedTabGroupSpecifics::ParseTableT_ SavedTabGroupSpecifics::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SavedTabGroupSpecifics, _impl_._has_bits_),
      0, // no _extensions_
      7, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967168,  // skipmap
      offsetof(ParseTableT_, field_entries),
      7,  // num_field_entries
      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::SavedTabGroupSpecifics>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional string guid = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(SavedTabGroupSpecifics, _impl_.guid_)}},
      // optional int64 creation_time_windows_epoch_micros = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 2, 0,
        PROTOBUF_FIELD_OFFSET(SavedTabGroupSpecifics, _impl_.creation_time_windows_epoch_micros_)}},
      // optional int64 update_time_windows_epoch_micros = 3;
      {::_pbi::TcParser::FastV64S1,
       {24, 3, 0,
        PROTOBUF_FIELD_OFFSET(SavedTabGroupSpecifics, _impl_.update_time_windows_epoch_micros_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional .sync_pb.AttributionMetadata attribution_metadata = 6;
      {::_pbi::TcParser::FastMtS1,
       {50, 1, 2,
        PROTOBUF_FIELD_OFFSET(SavedTabGroupSpecifics, _impl_.attribution_metadata_)}},
      // optional int32 version = 7;
      {::_pbi::TcParser::FastV32S1,
       {56, 4, 0,
        PROTOBUF_FIELD_OFFSET(SavedTabGroupSpecifics, _impl_.version_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string guid = 1;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroupSpecifics, _impl_.guid_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int64 creation_time_windows_epoch_micros = 2;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroupSpecifics, _impl_.creation_time_windows_epoch_micros_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 update_time_windows_epoch_micros = 3;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroupSpecifics, _impl_.update_time_windows_epoch_micros_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // .sync_pb.SavedTabGroup group = 4;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroupSpecifics, _impl_.entity_.group_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .sync_pb.SavedTabGroupTab tab = 5;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroupSpecifics, _impl_.entity_.tab_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .sync_pb.AttributionMetadata attribution_metadata = 6;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroupSpecifics, _impl_.attribution_metadata_), _Internal::kHasBitsOffset + 1, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional int32 version = 7;
      {PROTOBUF_FIELD_OFFSET(SavedTabGroupSpecifics, _impl_.version_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::SavedTabGroup>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::SavedTabGroup_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::SavedTabGroupTab>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::SavedTabGroupTab_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::AttributionMetadata>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::AttributionMetadata_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr SavedTabGroupSpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        guid_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        attribution_metadata_{nullptr},
        creation_time_windows_epoch_micros_{::int64_t{0}},
        update_time_windows_epoch_micros_{::int64_t{0}},
        version_{0},
        entity_{},
        _oneof_case_{} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SavedTabGroupSpecificsGlobalsTypeInternal SavedTabGroupSpecifics_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* SavedTabGroupSpecifics_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return SavedTabGroupSpecifics_globals_.GetClassData();
#else
  return SavedTabGroupSpecifics_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace sync_pb
namespace sync_pb {
PROTOBUF_CONSTINIT const uint32_t SavedTabGroup_SavedTabGroupColor_internal_data_[] = {
    655360u, 0u, };
static const char SavedTabGroup_SavedTabGroupColor_names[] = {
    "SAVED_TAB_GROUP_COLOR_BLUE"
    "SAVED_TAB_GROUP_COLOR_CYAN"
    "SAVED_TAB_GROUP_COLOR_GREEN"
    "SAVED_TAB_GROUP_COLOR_GREY"
    "SAVED_TAB_GROUP_COLOR_ORANGE"
    "SAVED_TAB_GROUP_COLOR_PINK"
    "SAVED_TAB_GROUP_COLOR_PURPLE"
    "SAVED_TAB_GROUP_COLOR_RED"
    "SAVED_TAB_GROUP_COLOR_UNSPECIFIED"
    "SAVED_TAB_GROUP_COLOR_YELLOW"
};

static const ::google::protobuf::internal::EnumEntry SavedTabGroup_SavedTabGroupColor_entries[] = {
    {{&SavedTabGroup_SavedTabGroupColor_names[0], 26}, 2},
    {{&SavedTabGroup_SavedTabGroupColor_names[26], 26}, 8},
    {{&SavedTabGroup_SavedTabGroupColor_names[52], 27}, 5},
    {{&SavedTabGroup_SavedTabGroupColor_names[79], 26}, 1},
    {{&SavedTabGroup_SavedTabGroupColor_names[105], 28}, 9},
    {{&SavedTabGroup_SavedTabGroupColor_names[133], 26}, 6},
    {{&SavedTabGroup_SavedTabGroupColor_names[159], 28}, 7},
    {{&SavedTabGroup_SavedTabGroupColor_names[187], 25}, 3},
    {{&SavedTabGroup_SavedTabGroupColor_names[212], 33}, 0},
    {{&SavedTabGroup_SavedTabGroupColor_names[245], 28}, 4},
};

static const int SavedTabGroup_SavedTabGroupColor_entries_by_number[] = {
    8,  // 0 -> SAVED_TAB_GROUP_COLOR_UNSPECIFIED
    3,  // 1 -> SAVED_TAB_GROUP_COLOR_GREY
    0,  // 2 -> SAVED_TAB_GROUP_COLOR_BLUE
    7,  // 3 -> SAVED_TAB_GROUP_COLOR_RED
    9,  // 4 -> SAVED_TAB_GROUP_COLOR_YELLOW
    2,  // 5 -> SAVED_TAB_GROUP_COLOR_GREEN
    5,  // 6 -> SAVED_TAB_GROUP_COLOR_PINK
    6,  // 7 -> SAVED_TAB_GROUP_COLOR_PURPLE
    1,  // 8 -> SAVED_TAB_GROUP_COLOR_CYAN
    4,  // 9 -> SAVED_TAB_GROUP_COLOR_ORANGE
};

bool SavedTabGroup_SavedTabGroupColor_Parse(::absl::string_view name,
                                  SavedTabGroup_SavedTabGroupColor* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      SavedTabGroup_SavedTabGroupColor_entries, 10, name, &int_value);
  if (success) {
    *value = static_cast<SavedTabGroup_SavedTabGroupColor>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    SavedTabGroup_SavedTabGroupColor_strings[10] = {};

const ::std::string& SavedTabGroup_SavedTabGroupColor_Name(SavedTabGroup_SavedTabGroupColor value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      SavedTabGroup_SavedTabGroupColor_entries, SavedTabGroup_SavedTabGroupColor_entries_by_number, 10,
      SavedTabGroup_SavedTabGroupColor_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(SavedTabGroup_SavedTabGroupColor_entries,
                                  SavedTabGroup_SavedTabGroupColor_entries_by_number,
                                  10, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SavedTabGroup_SavedTabGroupColor_strings[idx].get();
}
// ===================================================================

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SavedTabGroup_class_data_ =
    SavedTabGroup::InternalGenerateClassData_(SavedTabGroup_globals_._default);

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

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

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

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

  // optional .sync_pb.SavedTabGroup.SavedTabGroupColor color = 3;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        3, this_._internal_color(), target);
  }

  // optional int64 pinned_position = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
            stream, this_._internal_pinned_position(), target);
  }

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

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SavedTabGroup::ByteSizeLong(const MessageLite& base) {
  const SavedTabGroup& this_ = static_cast<const SavedTabGroup&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SavedTabGroup::ByteSizeLong() const {
  const SavedTabGroup& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.SavedTabGroup)
  ::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, 0x0000003fU)) {
    // optional string title = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_title());
    }
    // optional string bookmark_node_id = 6;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_bookmark_node_id());
    }
    // optional int64 position = 1;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_position());
    }
    // optional int64 pinned_position = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_pinned_position());
    }
    // optional int64 projects_position = 7;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_projects_position());
    }
    // optional .sync_pb.SavedTabGroup.SavedTabGroupColor color = 3;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_color());
    }
  }
  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 SavedTabGroup::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SavedTabGroup*>(&to_msg);
  auto& from = static_cast<const SavedTabGroup&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.SavedTabGroup)
  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, 0x0000003fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_title(from._internal_title());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_bookmark_node_id(from._internal_bookmark_node_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.position_ = from._impl_.position_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.pinned_position_ = from._impl_.pinned_position_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.projects_position_ = from._impl_.projects_position_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.color_ = from._impl_.color_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SavedTabGroupTab_class_data_ =
    SavedTabGroupTab::InternalGenerateClassData_(SavedTabGroupTab_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.group_guid_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.title_.ClearNonDefaultToEmpty();
    }
  }
  _impl_.position_ = ::int64_t{0};
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

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

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

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SavedTabGroupTab::ByteSizeLong(const MessageLite& base) {
  const SavedTabGroupTab& this_ = static_cast<const SavedTabGroupTab&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SavedTabGroupTab::ByteSizeLong() const {
  const SavedTabGroupTab& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.SavedTabGroupTab)
  ::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)) {
    // optional string group_guid = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_group_guid());
    }
    // optional string url = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_url());
    }
    // optional string title = 4;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_title());
    }
    // optional int64 position = 2;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_position());
    }
  }
  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 SavedTabGroupTab::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SavedTabGroupTab*>(&to_msg);
  auto& from = static_cast<const SavedTabGroupTab&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.SavedTabGroupTab)
  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_set_group_guid(from._internal_group_guid());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_url(from._internal_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_title(from._internal_title());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.position_ = from._impl_.position_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SavedTabGroupTab::InternalSwap(SavedTabGroupTab* 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_.group_guid_, &other->_impl_.group_guid_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.title_, &other->_impl_.title_, arena);
  swap(_impl_.position_, other->_impl_.position_);
}

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

void SavedTabGroupSpecifics::set_allocated_group(::sync_pb::SavedTabGroup* PROTOBUF_NULLABLE group) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_entity();
  if (group) {
    ::google::protobuf::Arena* submessage_arena = group->GetArena();
    if (message_arena != submessage_arena) {
      group = ::google::protobuf::internal::GetOwnedMessage(message_arena, group, submessage_arena);
    }
    set_has_group();
    _impl_.entity_.group_ = group;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.SavedTabGroupSpecifics.group)
}
void SavedTabGroupSpecifics::set_allocated_tab(::sync_pb::SavedTabGroupTab* PROTOBUF_NULLABLE tab) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_entity();
  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_.entity_.tab_ = tab;
  }
  // @@protoc_insertion_point(field_set_allocated:sync_pb.SavedTabGroupSpecifics.tab)
}
void SavedTabGroupSpecifics::clear_attribution_metadata() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.attribution_metadata_ != nullptr) _impl_.attribution_metadata_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
SavedTabGroupSpecifics::SavedTabGroupSpecifics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SavedTabGroupSpecifics_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.SavedTabGroupSpecifics)
}
PROTOBUF_NDEBUG_INLINE SavedTabGroupSpecifics::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::SavedTabGroupSpecifics& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        guid_(arena, from.guid_),
        entity_{},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SavedTabGroupSpecifics* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  _impl_.attribution_metadata_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attribution_metadata_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, creation_time_windows_epoch_micros_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, creation_time_windows_epoch_micros_),
           offsetof(Impl_, version_) -
               offsetof(Impl_, creation_time_windows_epoch_micros_) +
               sizeof(Impl_::version_));
  switch (entity_case()) {
    case ENTITY_NOT_SET:
      break;
      case kGroup:
        _impl_.entity_.group_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.entity_.group_);
        break;
      case kTab:
        _impl_.entity_.tab_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.entity_.tab_);
        break;
  }

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

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

void SavedTabGroupSpecifics::clear_entity() {
// @@protoc_insertion_point(one_of_clear_start:sync_pb.SavedTabGroupSpecifics)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (entity_case()) {
    case kGroup: {
      if (GetArena() == nullptr) {
        delete _impl_.entity_.group_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.entity_.group_ != nullptr) {
          _impl_.entity_.group_->Clear();
        }
      }
      break;
    }
    case kTab: {
      if (GetArena() == nullptr) {
        delete _impl_.entity_.tab_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.entity_.tab_ != nullptr) {
          _impl_.entity_.tab_->Clear();
        }
      }
      break;
    }
    case ENTITY_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = ENTITY_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SavedTabGroupSpecifics_class_data_ =
    SavedTabGroupSpecifics::InternalGenerateClassData_(SavedTabGroupSpecifics_globals_._default);

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

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

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

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

  // optional int64 update_time_windows_epoch_micros = 3;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
            stream, this_._internal_update_time_windows_epoch_micros(), target);
  }

  switch (this_.entity_case()) {
    case kGroup: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          4, *this_._impl_.entity_.group_, this_._impl_.entity_.group_->GetCachedSize(), target,
          stream);
      break;
    }
    case kTab: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          5, *this_._impl_.entity_.tab_, this_._impl_.entity_.tab_->GetCachedSize(), target,
          stream);
      break;
    }
    default:
      break;
  }
  // optional .sync_pb.AttributionMetadata attribution_metadata = 6;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        6, *this_._impl_.attribution_metadata_, this_._impl_.attribution_metadata_->GetCachedSize(), target,
        stream);
  }

  // optional int32 version = 7;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>(
            stream, this_._internal_version(), 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.SavedTabGroupSpecifics)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SavedTabGroupSpecifics::ByteSizeLong(const MessageLite& base) {
  const SavedTabGroupSpecifics& this_ = static_cast<const SavedTabGroupSpecifics&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SavedTabGroupSpecifics::ByteSizeLong() const {
  const SavedTabGroupSpecifics& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.SavedTabGroupSpecifics)
  ::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)) {
    // optional string guid = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_guid());
    }
    // optional .sync_pb.AttributionMetadata attribution_metadata = 6;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attribution_metadata_);
    }
    // optional int64 creation_time_windows_epoch_micros = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_creation_time_windows_epoch_micros());
    }
    // optional int64 update_time_windows_epoch_micros = 3;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_update_time_windows_epoch_micros());
    }
    // optional int32 version = 7;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_version());
    }
  }
  switch (this_.entity_case()) {
    // .sync_pb.SavedTabGroup group = 4;
    case kGroup: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.entity_.group_);
      break;
    }
    // .sync_pb.SavedTabGroupTab tab = 5;
    case kTab: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.entity_.tab_);
      break;
    }
    case ENTITY_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 SavedTabGroupSpecifics::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SavedTabGroupSpecifics*>(&to_msg);
  auto& from = static_cast<const SavedTabGroupSpecifics&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.SavedTabGroupSpecifics)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_guid(from._internal_guid());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.attribution_metadata_ != nullptr);
      if (_this->_impl_.attribution_metadata_ == nullptr) {
        _this->_impl_.attribution_metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attribution_metadata_);
      } else {
        _this->_impl_.attribution_metadata_->MergeFrom(*from._impl_.attribution_metadata_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.creation_time_windows_epoch_micros_ = from._impl_.creation_time_windows_epoch_micros_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.update_time_windows_epoch_micros_ = from._impl_.update_time_windows_epoch_micros_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.version_ = from._impl_.version_;
    }
  }
  _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_entity();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kGroup: {
        if (oneof_needs_init) {
          _this->_impl_.entity_.group_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.entity_.group_);
        } else {
          _this->_impl_.entity_.group_->MergeFrom(*from._impl_.entity_.group_);
        }
        break;
      }
      case kTab: {
        if (oneof_needs_init) {
          _this->_impl_.entity_.tab_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.entity_.tab_);
        } else {
          _this->_impl_.entity_.tab_->MergeFrom(*from._impl_.entity_.tab_);
        }
        break;
      }
      case ENTITY_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SavedTabGroupSpecifics::InternalSwap(SavedTabGroupSpecifics* 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_.guid_, &other->_impl_.guid_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(SavedTabGroupSpecifics, _impl_.version_)
      + sizeof(SavedTabGroupSpecifics::_impl_.version_)
      - PROTOBUF_FIELD_OFFSET(SavedTabGroupSpecifics, _impl_.attribution_metadata_)>(
          reinterpret_cast<char*>(&_impl_.attribution_metadata_),
          reinterpret_cast<char*>(&other->_impl_.attribution_metadata_));
  swap(_impl_.entity_, other->_impl_.entity_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

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