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

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

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


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

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

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

constexpr BookmarkSpecifics::ParseTableT_ BookmarkSpecifics::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_._has_bits_),
      0, // no _extensions_
      17, 120,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294842816,  // skipmap
      offsetof(ParseTableT_, field_entries),
      12,  // 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::BookmarkSpecifics>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional .sync_pb.UniquePosition unique_position = 16;
      {::_pbi::TcParser::FastMtS2,
       {386, 8, 1,
        PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.unique_position_)}},
      // optional string url = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 1, 0,
        PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.url_)}},
      // optional bytes favicon = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 2, 0,
        PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.favicon_)}},
      // optional string legacy_canonicalized_title = 3;
      {::_pbi::TcParser::FastBS1,
       {26, 3, 0,
        PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.legacy_canonicalized_title_)}},
      // optional int64 creation_time_us = 4;
      {::_pbi::TcParser::FastV64S1,
       {32, 9, 0,
        PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.creation_time_us_)}},
      // optional string icon_url = 5;
      {::_pbi::TcParser::FastBS1,
       {42, 4, 0,
        PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.icon_url_)}},
      // repeated .sync_pb.MetaInfo meta_info = 6;
      {::_pbi::TcParser::FastMtR1,
       {50, 0, 0,
        PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.meta_info_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional string guid = 10;
      {::_pbi::TcParser::FastBS1,
       {82, 5, 0,
        PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.guid_)}},
      // optional string full_title = 11;
      {::_pbi::TcParser::FastBS1,
       {90, 6, 0,
        PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.full_title_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional string parent_guid = 14;
      {::_pbi::TcParser::FastBS1,
       {114, 7, 0,
        PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.parent_guid_)}},
      // optional .sync_pb.BookmarkSpecifics.Type type = 15;
      {::_pbi::TcParser::FastEr0S1,
       {120, 11, 2,
        PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.type_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string url = 1;
      {PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bytes favicon = 2;
      {PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.favicon_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string legacy_canonicalized_title = 3;
      {PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.legacy_canonicalized_title_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int64 creation_time_us = 4;
      {PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.creation_time_us_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional string icon_url = 5;
      {PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.icon_url_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // repeated .sync_pb.MetaInfo meta_info = 6;
      {PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.meta_info_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional string guid = 10;
      {PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.guid_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string full_title = 11;
      {PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.full_title_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string parent_guid = 14;
      {PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.parent_guid_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .sync_pb.BookmarkSpecifics.Type type = 15;
      {PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.type_), _Internal::kHasBitsOffset + 11, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional .sync_pb.UniquePosition unique_position = 16;
      {PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.unique_position_), _Internal::kHasBitsOffset + 8, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional int64 last_used_time_us = 17;
      {PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.last_used_time_us_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::MetaInfo>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::MetaInfo_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::UniquePosition>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::UniquePosition_globals_},
        #endif
        {0, 2},
    }},
    {{
    }},
  };
}


inline constexpr BookmarkSpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        meta_info_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::BookmarkSpecifics,
            PROTOBUF_FIELD_OFFSET(::sync_pb::BookmarkSpecifics, _impl_.meta_info_)>()
         }
        ,
        url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        favicon_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        legacy_canonicalized_title_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        icon_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        guid_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        full_title_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        parent_guid_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        unique_position_{nullptr},
        creation_time_us_{::int64_t{0}},
        last_used_time_us_{::int64_t{0}},
        type_{static_cast< ::sync_pb::BookmarkSpecifics_Type >(0)} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST BookmarkSpecificsGlobalsTypeInternal BookmarkSpecifics_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* BookmarkSpecifics_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return BookmarkSpecifics_globals_.GetClassData();
#else
  return BookmarkSpecifics_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace sync_pb
namespace sync_pb {
PROTOBUF_CONSTINIT const uint32_t BookmarkSpecifics_Type_internal_data_[] = {
    196608u, 0u, };
static const char BookmarkSpecifics_Type_names[] = {
    "FOLDER"
    "UNSPECIFIED"
    "URL"
};

static const ::google::protobuf::internal::EnumEntry BookmarkSpecifics_Type_entries[] = {
    {{&BookmarkSpecifics_Type_names[0], 6}, 2},
    {{&BookmarkSpecifics_Type_names[6], 11}, 0},
    {{&BookmarkSpecifics_Type_names[17], 3}, 1},
};

static const int BookmarkSpecifics_Type_entries_by_number[] = {
    1,  // 0 -> UNSPECIFIED
    2,  // 1 -> URL
    0,  // 2 -> FOLDER
};

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

const ::std::string& BookmarkSpecifics_Type_Name(BookmarkSpecifics_Type value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      BookmarkSpecifics_Type_entries, BookmarkSpecifics_Type_entries_by_number, 3,
      BookmarkSpecifics_Type_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(BookmarkSpecifics_Type_entries,
                                  BookmarkSpecifics_Type_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : BookmarkSpecifics_Type_strings[idx].get();
}
// ===================================================================

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite MetaInfo_class_data_ =
    MetaInfo::InternalGenerateClassData_(MetaInfo_globals_._default);

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

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

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

  // optional string value = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    const ::std::string& _s = this_._internal_value();
    target = stream->WriteStringMaybeAliased(2, _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.MetaInfo)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t MetaInfo::ByteSizeLong(const MessageLite& base) {
  const MetaInfo& this_ = static_cast<const MetaInfo&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t MetaInfo::ByteSizeLong() const {
  const MetaInfo& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.MetaInfo)
  ::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 key = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_key());
    }
    // optional string value = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_value());
    }
  }
  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 MetaInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<MetaInfo*>(&to_msg);
  auto& from = static_cast<const MetaInfo&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.MetaInfo)
  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_key(from._internal_key());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_value(from._internal_value());
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void MetaInfo::InternalSwap(MetaInfo* 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_.key_, &other->_impl_.key_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena);
}

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

void BookmarkSpecifics::clear_unique_position() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.unique_position_ != nullptr) _impl_.unique_position_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000100U);
}
BookmarkSpecifics::BookmarkSpecifics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, BookmarkSpecifics_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.BookmarkSpecifics)
}
PROTOBUF_NDEBUG_INLINE BookmarkSpecifics::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::BookmarkSpecifics& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        meta_info_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::sync_pb::BookmarkSpecifics,
              PROTOBUF_FIELD_OFFSET(::sync_pb::BookmarkSpecifics, _impl_.meta_info_)>()
          , from.meta_info_
        }
        ,
        url_(arena, from.url_),
        favicon_(arena, from.favicon_),
        legacy_canonicalized_title_(arena, from.legacy_canonicalized_title_),
        icon_url_(arena, from.icon_url_),
        guid_(arena, from.guid_),
        full_title_(arena, from.full_title_),
        parent_guid_(arena, from.parent_guid_) {}

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

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

  // @@protoc_insertion_point(copy_constructor:sync_pb.BookmarkSpecifics)
}
PROTOBUF_NDEBUG_INLINE BookmarkSpecifics::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        meta_info_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::BookmarkSpecifics,
            PROTOBUF_FIELD_OFFSET(::sync_pb::BookmarkSpecifics, _impl_.meta_info_)>()
         }
        ,
        url_(arena),
        favicon_(arena),
        legacy_canonicalized_title_(arena),
        icon_url_(arena),
        guid_(arena),
        full_title_(arena),
        parent_guid_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite BookmarkSpecifics_class_data_ =
    BookmarkSpecifics::InternalGenerateClassData_(BookmarkSpecifics_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.meta_info_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.favicon_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.legacy_canonicalized_title_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.icon_url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _impl_.guid_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _impl_.full_title_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _impl_.parent_guid_.ClearNonDefaultToEmpty();
    }
  }
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    ABSL_DCHECK(_impl_.unique_position_ != nullptr);
    _impl_.unique_position_->Clear();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000e00U)) {
    ::memset(&_impl_.creation_time_us_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.type_) -
        reinterpret_cast<char*>(&_impl_.creation_time_us_)) + sizeof(_impl_.type_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // optional bytes favicon = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    const ::std::string& _s = this_._internal_favicon();
    target = stream->WriteBytesMaybeAliased(2, _s, target);
  }

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

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

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

  // repeated .sync_pb.MetaInfo meta_info = 6;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_meta_info_size());
         i < n; i++) {
      const auto& repfield = this_._internal_meta_info().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              6, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

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

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

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

  // optional .sync_pb.BookmarkSpecifics.Type type = 15;
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        15, this_._internal_type(), target);
  }

  // optional .sync_pb.UniquePosition unique_position = 16;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        16, *this_._impl_.unique_position_, this_._impl_.unique_position_->GetCachedSize(), target,
        stream);
  }

  // optional int64 last_used_time_us = 17;
  if (CheckHasBit(cached_has_bits, 0x00000400U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        17, this_._internal_last_used_time_us(), 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.BookmarkSpecifics)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t BookmarkSpecifics::ByteSizeLong(const MessageLite& base) {
  const BookmarkSpecifics& this_ = static_cast<const BookmarkSpecifics&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t BookmarkSpecifics::ByteSizeLong() const {
  const BookmarkSpecifics& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.BookmarkSpecifics)
  ::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, 0x000000ffU)) {
    // repeated .sync_pb.MetaInfo meta_info = 6;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_meta_info_size();
      for (const auto& msg : this_._internal_meta_info()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // optional string url = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_url());
    }
    // optional bytes favicon = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_favicon());
    }
    // optional string legacy_canonicalized_title = 3;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_legacy_canonicalized_title());
    }
    // optional string icon_url = 5;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_icon_url());
    }
    // optional string guid = 10;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_guid());
    }
    // optional string full_title = 11;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_full_title());
    }
    // optional string parent_guid = 14;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_parent_guid());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) {
    // optional .sync_pb.UniquePosition unique_position = 16;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.unique_position_);
    }
    // optional int64 creation_time_us = 4;
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_creation_time_us());
    }
    // optional int64 last_used_time_us = 17;
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
                                      this_._internal_last_used_time_us());
    }
    // optional .sync_pb.BookmarkSpecifics.Type type = 15;
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_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 BookmarkSpecifics::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<BookmarkSpecifics*>(&to_msg);
  auto& from = static_cast<const BookmarkSpecifics&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.BookmarkSpecifics)
  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_meta_info()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_meta_info());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_url(from._internal_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_favicon(from._internal_favicon());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_legacy_canonicalized_title(from._internal_legacy_canonicalized_title());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_internal_set_icon_url(from._internal_icon_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_internal_set_guid(from._internal_guid());
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_internal_set_full_title(from._internal_full_title());
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_internal_set_parent_guid(from._internal_parent_guid());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      ABSL_DCHECK(from._impl_.unique_position_ != nullptr);
      if (_this->_impl_.unique_position_ == nullptr) {
        _this->_impl_.unique_position_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.unique_position_);
      } else {
        _this->_impl_.unique_position_->MergeFrom(*from._impl_.unique_position_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _this->_impl_.creation_time_us_ = from._impl_.creation_time_us_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _this->_impl_.last_used_time_us_ = from._impl_.last_used_time_us_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _this->_impl_.type_ = from._impl_.type_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void BookmarkSpecifics::InternalSwap(BookmarkSpecifics* 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_.meta_info_.InternalSwap(&other->_impl_.meta_info_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.favicon_, &other->_impl_.favicon_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.legacy_canonicalized_title_, &other->_impl_.legacy_canonicalized_title_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.icon_url_, &other->_impl_.icon_url_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.guid_, &other->_impl_.guid_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.full_title_, &other->_impl_.full_title_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_guid_, &other->_impl_.parent_guid_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.type_)
      + sizeof(BookmarkSpecifics::_impl_.type_)
      - PROTOBUF_FIELD_OFFSET(BookmarkSpecifics, _impl_.unique_position_)>(
          reinterpret_cast<char*>(&_impl_.unique_position_),
          reinterpret_cast<char*>(&other->_impl_.unique_position_));
}

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