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

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

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


inline constexpr SyncEntity_CollaborationMetadata_PerFieldAttribution::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        attribution_name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        last_update_obfuscated_gaia_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        mtime_{::int64_t{0}} {}

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

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

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


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

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

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

constexpr Attachment::ParseTableT_ Attachment::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Attachment, _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::Attachment>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional int64 modification_time_unix_epoch_millis = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(Attachment, _impl_.modification_time_unix_epoch_millis_)}},
      // optional string temporary_blob_id = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(Attachment, _impl_.temporary_blob_id_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string temporary_blob_id = 1;
      {PROTOBUF_FIELD_OFFSET(Attachment, _impl_.temporary_blob_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int64 modification_time_unix_epoch_millis = 2;
      {PROTOBUF_FIELD_OFFSET(Attachment, _impl_.modification_time_unix_epoch_millis_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr Attachment::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        temporary_blob_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        modification_time_unix_epoch_millis_{::int64_t{0}} {}

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

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

constexpr SyncEntity_CollaborationMetadata::ParseTableT_ SyncEntity_CollaborationMetadata::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SyncEntity_CollaborationMetadata, _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
      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::SyncEntity_CollaborationMetadata>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .sync_pb.SyncEntity.CollaborationMetadata.PerFieldAttribution per_field_attributions = 4;
      {::_pbi::TcParser::FastMtR1,
       {34, 0, 2,
        PROTOBUF_FIELD_OFFSET(SyncEntity_CollaborationMetadata, _impl_.per_field_attributions_)}},
      // optional string collaboration_id = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 1, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity_CollaborationMetadata, _impl_.collaboration_id_)}},
      // optional .sync_pb.SyncEntity.CollaborationMetadata.Attribution creation_attribution = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 2, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity_CollaborationMetadata, _impl_.creation_attribution_)}},
      // optional .sync_pb.SyncEntity.CollaborationMetadata.Attribution last_update_attribution = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 3, 1,
        PROTOBUF_FIELD_OFFSET(SyncEntity_CollaborationMetadata, _impl_.last_update_attribution_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string collaboration_id = 1;
      {PROTOBUF_FIELD_OFFSET(SyncEntity_CollaborationMetadata, _impl_.collaboration_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .sync_pb.SyncEntity.CollaborationMetadata.Attribution creation_attribution = 2;
      {PROTOBUF_FIELD_OFFSET(SyncEntity_CollaborationMetadata, _impl_.creation_attribution_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .sync_pb.SyncEntity.CollaborationMetadata.Attribution last_update_attribution = 3;
      {PROTOBUF_FIELD_OFFSET(SyncEntity_CollaborationMetadata, _impl_.last_update_attribution_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .sync_pb.SyncEntity.CollaborationMetadata.PerFieldAttribution per_field_attributions = 4;
      {PROTOBUF_FIELD_OFFSET(SyncEntity_CollaborationMetadata, _impl_.per_field_attributions_), _Internal::kHasBitsOffset + 0, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::SyncEntity_CollaborationMetadata_Attribution>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::SyncEntity_CollaborationMetadata_Attribution_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::SyncEntity_CollaborationMetadata_Attribution>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::SyncEntity_CollaborationMetadata_Attribution_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::SyncEntity_CollaborationMetadata_PerFieldAttribution>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::SyncEntity_CollaborationMetadata_PerFieldAttribution_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr SyncEntity_CollaborationMetadata::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        per_field_attributions_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::sync_pb::SyncEntity_CollaborationMetadata,
            PROTOBUF_FIELD_OFFSET(::sync_pb::SyncEntity_CollaborationMetadata, _impl_.per_field_attributions_)>()
         }
        ,
        collaboration_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        creation_attribution_{nullptr},
        last_update_attribution_{nullptr} {}

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

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

constexpr SyncEntity::ParseTableT_ SyncEntity::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_._has_bits_),
      0, // no _extensions_
      29, 248,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      3800120580,  // skipmap
      offsetof(ParseTableT_, field_entries),
      20,  // num_field_entries
      5,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::sync_pb::SyncEntity>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional string id_string = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.id_string_)}},
      // optional string parent_id_string = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.parent_id_string_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional int64 version = 4;
      {::_pbi::TcParser::FastV64S1,
       {32, 14, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.version_)}},
      // optional int64 mtime = 5;
      {::_pbi::TcParser::FastV64S1,
       {40, 15, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.mtime_)}},
      // optional int64 ctime = 6;
      {::_pbi::TcParser::FastV64S1,
       {48, 16, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.ctime_)}},
      // optional string name = 7;
      {::_pbi::TcParser::FastBS1,
       {58, 2, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.name_)}},
      // optional string non_unique_name = 8;
      {::_pbi::TcParser::FastBS1,
       {66, 3, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.non_unique_name_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional string server_defined_unique_tag = 10;
      {::_pbi::TcParser::FastBS1,
       {82, 4, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.server_defined_unique_tag_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional int64 position_in_parent = 15 [deprecated = true];
      {::_pbi::TcParser::FastV64S1,
       {120, 17, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.position_in_parent_)}},
      // optional string insert_after_item_id = 16 [deprecated = true];
      {::_pbi::TcParser::FastBS2,
       {386, 5, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.insert_after_item_id_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional bool deleted = 18 [default = false];
      {::_pbi::TcParser::FastV8S2,
       {400, 18, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.deleted_)}},
      // optional string originator_cache_guid = 19;
      {::_pbi::TcParser::FastBS2,
       {410, 6, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.originator_cache_guid_)}},
      // optional string originator_client_item_id = 20;
      {::_pbi::TcParser::FastBS2,
       {418, 7, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.originator_client_item_id_)}},
      // optional .sync_pb.EntitySpecifics specifics = 21;
      {::_pbi::TcParser::FastMtS2,
       {426, 9, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.specifics_)}},
      // optional bool folder = 22 [default = false];
      {::_pbi::TcParser::FastV8S2,
       {432, 19, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.folder_)}},
      // optional string client_tag_hash = 23;
      {::_pbi::TcParser::FastBS2,
       {442, 8, 0,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.client_tag_hash_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional .sync_pb.UniquePosition unique_position = 25;
      {::_pbi::TcParser::FastMtS2,
       {458, 10, 1,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.unique_position_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional .sync_pb.SyncEntity.CollaborationMetadata collaboration = 27;
      {::_pbi::TcParser::FastMtS2,
       {474, 11, 2,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.collaboration_)}},
      // optional .sync_pb.DeletionOrigin deletion_origin = 28;
      {::_pbi::TcParser::FastMtS2,
       {482, 12, 3,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.deletion_origin_)}},
      // optional .sync_pb.Attachment attachment = 29;
      {::_pbi::TcParser::FastMtS2,
       {490, 13, 4,
        PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.attachment_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string id_string = 1;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.id_string_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string parent_id_string = 2;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.parent_id_string_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int64 version = 4;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.version_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 mtime = 5;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.mtime_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 ctime = 6;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.ctime_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional string name = 7;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.name_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string non_unique_name = 8;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.non_unique_name_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string server_defined_unique_tag = 10;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.server_defined_unique_tag_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int64 position_in_parent = 15 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.position_in_parent_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional string insert_after_item_id = 16 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.insert_after_item_id_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bool deleted = 18 [default = false];
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.deleted_), _Internal::kHasBitsOffset + 18, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional string originator_cache_guid = 19;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.originator_cache_guid_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string originator_client_item_id = 20;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.originator_client_item_id_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .sync_pb.EntitySpecifics specifics = 21;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.specifics_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional bool folder = 22 [default = false];
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.folder_), _Internal::kHasBitsOffset + 19, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional string client_tag_hash = 23;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.client_tag_hash_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .sync_pb.UniquePosition unique_position = 25;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.unique_position_), _Internal::kHasBitsOffset + 10, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .sync_pb.SyncEntity.CollaborationMetadata collaboration = 27;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.collaboration_), _Internal::kHasBitsOffset + 11, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .sync_pb.DeletionOrigin deletion_origin = 28;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.deletion_origin_), _Internal::kHasBitsOffset + 12, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .sync_pb.Attachment attachment = 29;
      {PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.attachment_), _Internal::kHasBitsOffset + 13, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::EntitySpecifics>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::EntitySpecifics_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::UniquePosition>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::UniquePosition_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::SyncEntity_CollaborationMetadata>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::SyncEntity_CollaborationMetadata_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::DeletionOrigin>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::DeletionOrigin_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::Attachment>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::Attachment_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr SyncEntity::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        id_string_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        parent_id_string_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        non_unique_name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        server_defined_unique_tag_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        insert_after_item_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        originator_cache_guid_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        originator_client_item_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        client_tag_hash_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        specifics_{nullptr},
        unique_position_{nullptr},
        collaboration_{nullptr},
        deletion_origin_{nullptr},
        attachment_{nullptr},
        version_{::int64_t{0}},
        mtime_{::int64_t{0}},
        ctime_{::int64_t{0}},
        position_in_parent_{::int64_t{0}},
        deleted_{false},
        folder_{false} {}

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

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Attachment_class_data_ =
    Attachment::InternalGenerateClassData_(Attachment_globals_._default);

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

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

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

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

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

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Attachment::ByteSizeLong(const MessageLite& base) {
  const Attachment& this_ = static_cast<const Attachment&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Attachment::ByteSizeLong() const {
  const Attachment& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.Attachment)
  ::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 temporary_blob_id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_temporary_blob_id());
    }
    // optional int64 modification_time_unix_epoch_millis = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_modification_time_unix_epoch_millis());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void Attachment::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Attachment*>(&to_msg);
  auto& from = static_cast<const Attachment&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.Attachment)
  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_temporary_blob_id(from._internal_temporary_blob_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.modification_time_unix_epoch_millis_ = from._impl_.modification_time_unix_epoch_millis_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SyncEntity_CollaborationMetadata_Attribution* 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.SyncEntity.CollaborationMetadata.Attribution)
}
PROTOBUF_NDEBUG_INLINE SyncEntity_CollaborationMetadata_Attribution::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        obfuscated_gaia_id_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SyncEntity_CollaborationMetadata_Attribution_class_data_ =
    SyncEntity_CollaborationMetadata_Attribution::InternalGenerateClassData_(SyncEntity_CollaborationMetadata_Attribution_globals_._default);

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

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

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

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

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

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

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

   {
    // optional string obfuscated_gaia_id = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_obfuscated_gaia_id());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void SyncEntity_CollaborationMetadata_Attribution::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SyncEntity_CollaborationMetadata_Attribution*>(&to_msg);
  auto& from = static_cast<const SyncEntity_CollaborationMetadata_Attribution&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.SyncEntity.CollaborationMetadata.Attribution)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


void SyncEntity_CollaborationMetadata_Attribution::InternalSwap(SyncEntity_CollaborationMetadata_Attribution* 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_.obfuscated_gaia_id_, &other->_impl_.obfuscated_gaia_id_, arena);
}

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

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

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

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

  // @@protoc_insertion_point(copy_constructor:sync_pb.SyncEntity.CollaborationMetadata.PerFieldAttribution)
}
PROTOBUF_NDEBUG_INLINE SyncEntity_CollaborationMetadata_PerFieldAttribution::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        attribution_name_(arena),
        last_update_obfuscated_gaia_id_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SyncEntity_CollaborationMetadata_PerFieldAttribution_class_data_ =
    SyncEntity_CollaborationMetadata_PerFieldAttribution::InternalGenerateClassData_(SyncEntity_CollaborationMetadata_PerFieldAttribution_globals_._default);

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

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

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

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

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

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // optional string attribution_name = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_attribution_name());
    }
    // optional string last_update_obfuscated_gaia_id = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_last_update_obfuscated_gaia_id());
    }
    // optional int64 mtime = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_mtime());
    }
  }
  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 SyncEntity_CollaborationMetadata_PerFieldAttribution::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SyncEntity_CollaborationMetadata_PerFieldAttribution*>(&to_msg);
  auto& from = static_cast<const SyncEntity_CollaborationMetadata_PerFieldAttribution&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.SyncEntity.CollaborationMetadata.PerFieldAttribution)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_attribution_name(from._internal_attribution_name());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_last_update_obfuscated_gaia_id(from._internal_last_update_obfuscated_gaia_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.mtime_ = from._impl_.mtime_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SyncEntity_CollaborationMetadata_PerFieldAttribution::InternalSwap(SyncEntity_CollaborationMetadata_PerFieldAttribution* 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_.attribution_name_, &other->_impl_.attribution_name_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.last_update_obfuscated_gaia_id_, &other->_impl_.last_update_obfuscated_gaia_id_, arena);
  swap(_impl_.mtime_, other->_impl_.mtime_);
}

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SyncEntity_CollaborationMetadata* 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_.creation_attribution_ = (CheckHasBit(cached_has_bits, 0x00000004U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.creation_attribution_)
                : nullptr;
  _impl_.last_update_attribution_ = (CheckHasBit(cached_has_bits, 0x00000008U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.last_update_attribution_)
                : nullptr;

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SyncEntity_CollaborationMetadata_class_data_ =
    SyncEntity_CollaborationMetadata::InternalGenerateClassData_(SyncEntity_CollaborationMetadata_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SyncEntity_CollaborationMetadata::GetClassData() const {
  return SyncEntity_CollaborationMetadata_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SyncEntity_CollaborationMetadata::GetClassData() const {
  return SyncEntity_CollaborationMetadata_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SyncEntity_CollaborationMetadata::ParseTableT_
    SyncEntity_CollaborationMetadata::_table_ =
        SyncEntity_CollaborationMetadata::InternalGenerateParseTable_(SyncEntity_CollaborationMetadata_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void SyncEntity_CollaborationMetadata::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.SyncEntity.CollaborationMetadata)
  ::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, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.per_field_attributions_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.collaboration_id_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.creation_attribution_ != nullptr);
      _impl_.creation_attribution_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(_impl_.last_update_attribution_ != nullptr);
      _impl_.last_update_attribution_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // optional .sync_pb.SyncEntity.CollaborationMetadata.Attribution creation_attribution = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.creation_attribution_, this_._impl_.creation_attribution_->GetCachedSize(), target,
        stream);
  }

  // optional .sync_pb.SyncEntity.CollaborationMetadata.Attribution last_update_attribution = 3;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.last_update_attribution_, this_._impl_.last_update_attribution_->GetCachedSize(), target,
        stream);
  }

  // repeated .sync_pb.SyncEntity.CollaborationMetadata.PerFieldAttribution per_field_attributions = 4;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_per_field_attributions_size());
         i < n; i++) {
      const auto& repfield = this_._internal_per_field_attributions().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              4, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

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

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    // repeated .sync_pb.SyncEntity.CollaborationMetadata.PerFieldAttribution per_field_attributions = 4;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_per_field_attributions_size();
      for (const auto& msg : this_._internal_per_field_attributions()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // optional string collaboration_id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_collaboration_id());
    }
    // optional .sync_pb.SyncEntity.CollaborationMetadata.Attribution creation_attribution = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.creation_attribution_);
    }
    // optional .sync_pb.SyncEntity.CollaborationMetadata.Attribution last_update_attribution = 3;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.last_update_attribution_);
    }
  }
  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 SyncEntity_CollaborationMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SyncEntity_CollaborationMetadata*>(&to_msg);
  auto& from = static_cast<const SyncEntity_CollaborationMetadata&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.SyncEntity.CollaborationMetadata)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_per_field_attributions()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_per_field_attributions());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_collaboration_id(from._internal_collaboration_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.creation_attribution_ != nullptr);
      if (_this->_impl_.creation_attribution_ == nullptr) {
        _this->_impl_.creation_attribution_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.creation_attribution_);
      } else {
        _this->_impl_.creation_attribution_->MergeFrom(*from._impl_.creation_attribution_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(from._impl_.last_update_attribution_ != nullptr);
      if (_this->_impl_.last_update_attribution_ == nullptr) {
        _this->_impl_.last_update_attribution_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.last_update_attribution_);
      } else {
        _this->_impl_.last_update_attribution_->MergeFrom(*from._impl_.last_update_attribution_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SyncEntity_CollaborationMetadata::InternalSwap(SyncEntity_CollaborationMetadata* 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_.per_field_attributions_.InternalSwap(&other->_impl_.per_field_attributions_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.collaboration_id_, &other->_impl_.collaboration_id_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(SyncEntity_CollaborationMetadata, _impl_.last_update_attribution_)
      + sizeof(SyncEntity_CollaborationMetadata::_impl_.last_update_attribution_)
      - PROTOBUF_FIELD_OFFSET(SyncEntity_CollaborationMetadata, _impl_.creation_attribution_)>(
          reinterpret_cast<char*>(&_impl_.creation_attribution_),
          reinterpret_cast<char*>(&other->_impl_.creation_attribution_));
}

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

void SyncEntity::clear_specifics() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.specifics_ != nullptr) _impl_.specifics_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000200U);
}
void SyncEntity::clear_unique_position() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.unique_position_ != nullptr) _impl_.unique_position_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000400U);
}
void SyncEntity::clear_deletion_origin() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.deletion_origin_ != nullptr) _impl_.deletion_origin_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00001000U);
}
SyncEntity::SyncEntity(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SyncEntity_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.SyncEntity)
}
PROTOBUF_NDEBUG_INLINE SyncEntity::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::SyncEntity& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        id_string_(arena, from.id_string_),
        parent_id_string_(arena, from.parent_id_string_),
        name_(arena, from.name_),
        non_unique_name_(arena, from.non_unique_name_),
        server_defined_unique_tag_(arena, from.server_defined_unique_tag_),
        insert_after_item_id_(arena, from.insert_after_item_id_),
        originator_cache_guid_(arena, from.originator_cache_guid_),
        originator_client_item_id_(arena, from.originator_client_item_id_),
        client_tag_hash_(arena, from.client_tag_hash_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SyncEntity* 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_.specifics_ = (CheckHasBit(cached_has_bits, 0x00000200U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.specifics_)
                : nullptr;
  _impl_.unique_position_ = (CheckHasBit(cached_has_bits, 0x00000400U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.unique_position_)
                : nullptr;
  _impl_.collaboration_ = (CheckHasBit(cached_has_bits, 0x00000800U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.collaboration_)
                : nullptr;
  _impl_.deletion_origin_ = (CheckHasBit(cached_has_bits, 0x00001000U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.deletion_origin_)
                : nullptr;
  _impl_.attachment_ = (CheckHasBit(cached_has_bits, 0x00002000U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachment_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, version_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, version_),
           offsetof(Impl_, folder_) -
               offsetof(Impl_, version_) +
               sizeof(Impl_::folder_));

  // @@protoc_insertion_point(copy_constructor:sync_pb.SyncEntity)
}
PROTOBUF_NDEBUG_INLINE SyncEntity::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        id_string_(arena),
        parent_id_string_(arena),
        name_(arena),
        non_unique_name_(arena),
        server_defined_unique_tag_(arena),
        insert_after_item_id_(arena),
        originator_cache_guid_(arena),
        originator_client_item_id_(arena),
        client_tag_hash_(arena) {}

inline void SyncEntity::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, specifics_),
           0,
           offsetof(Impl_, folder_) -
               offsetof(Impl_, specifics_) +
               sizeof(Impl_::folder_));
}
SyncEntity::~SyncEntity() {
  // @@protoc_insertion_point(destructor:sync_pb.SyncEntity)
  SharedDtor(*this);
}
inline void SyncEntity::SharedDtor(MessageLite& self) {
  SyncEntity& this_ = static_cast<SyncEntity&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.id_string_.Destroy();
  this_._impl_.parent_id_string_.Destroy();
  this_._impl_.name_.Destroy();
  this_._impl_.non_unique_name_.Destroy();
  this_._impl_.server_defined_unique_tag_.Destroy();
  this_._impl_.insert_after_item_id_.Destroy();
  this_._impl_.originator_cache_guid_.Destroy();
  this_._impl_.originator_client_item_id_.Destroy();
  this_._impl_.client_tag_hash_.Destroy();
  delete this_._impl_.specifics_;
  delete this_._impl_.unique_position_;
  delete this_._impl_.collaboration_;
  delete this_._impl_.deletion_origin_;
  delete this_._impl_.attachment_;
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SyncEntity_class_data_ =
    SyncEntity::InternalGenerateClassData_(SyncEntity_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SyncEntity::GetClassData() const {
  return SyncEntity_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SyncEntity::GetClassData() const {
  return SyncEntity_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SyncEntity::ParseTableT_
    SyncEntity::_table_ =
        SyncEntity::InternalGenerateParseTable_(SyncEntity_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void SyncEntity::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.SyncEntity)
  ::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_.id_string_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.parent_id_string_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.name_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.non_unique_name_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.server_defined_unique_tag_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _impl_.insert_after_item_id_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _impl_.originator_cache_guid_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _impl_.originator_client_item_id_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _impl_.client_tag_hash_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      ABSL_DCHECK(_impl_.specifics_ != nullptr);
      _impl_.specifics_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      ABSL_DCHECK(_impl_.unique_position_ != nullptr);
      _impl_.unique_position_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      ABSL_DCHECK(_impl_.collaboration_ != nullptr);
      _impl_.collaboration_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      ABSL_DCHECK(_impl_.deletion_origin_ != nullptr);
      _impl_.deletion_origin_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      ABSL_DCHECK(_impl_.attachment_ != nullptr);
      _impl_.attachment_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000c000U)) {
    ::memset(&_impl_.version_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.mtime_) -
        reinterpret_cast<char*>(&_impl_.version_)) + sizeof(_impl_.mtime_));
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000f0000U)) {
    ::memset(&_impl_.ctime_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.folder_) -
        reinterpret_cast<char*>(&_impl_.ctime_)) + sizeof(_impl_.folder_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

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

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

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

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

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

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

  // optional int64 position_in_parent = 15 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00020000U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<15>(
            stream, this_._internal_position_in_parent(), target);
  }

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

  // optional bool deleted = 18 [default = false];
  if (CheckHasBit(cached_has_bits, 0x00040000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        18, this_._internal_deleted(), target);
  }

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

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

  // optional .sync_pb.EntitySpecifics specifics = 21;
  if (CheckHasBit(cached_has_bits, 0x00000200U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        21, *this_._impl_.specifics_, this_._impl_.specifics_->GetCachedSize(), target,
        stream);
  }

  // optional bool folder = 22 [default = false];
  if (CheckHasBit(cached_has_bits, 0x00080000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        22, this_._internal_folder(), target);
  }

  // optional string client_tag_hash = 23;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    const ::std::string& _s = this_._internal_client_tag_hash();
    target = stream->WriteStringMaybeAliased(23, _s, target);
  }

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

  // optional .sync_pb.SyncEntity.CollaborationMetadata collaboration = 27;
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        27, *this_._impl_.collaboration_, this_._impl_.collaboration_->GetCachedSize(), target,
        stream);
  }

  // optional .sync_pb.DeletionOrigin deletion_origin = 28;
  if (CheckHasBit(cached_has_bits, 0x00001000U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        28, *this_._impl_.deletion_origin_, this_._impl_.deletion_origin_->GetCachedSize(), target,
        stream);
  }

  // optional .sync_pb.Attachment attachment = 29;
  if (CheckHasBit(cached_has_bits, 0x00002000U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        29, *this_._impl_.attachment_, this_._impl_.attachment_->GetCachedSize(), target,
        stream);
  }

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

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += ::absl::popcount(0x000c0000U & cached_has_bits) * 3;
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    // optional string id_string = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_id_string());
    }
    // optional string parent_id_string = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_parent_id_string());
    }
    // optional string name = 7;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_name());
    }
    // optional string non_unique_name = 8;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_non_unique_name());
    }
    // optional string server_defined_unique_tag = 10;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_server_defined_unique_tag());
    }
    // optional string insert_after_item_id = 16 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_insert_after_item_id());
    }
    // optional string originator_cache_guid = 19;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_originator_cache_guid());
    }
    // optional string originator_client_item_id = 20;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_originator_client_item_id());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    // optional string client_tag_hash = 23;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_client_tag_hash());
    }
    // optional .sync_pb.EntitySpecifics specifics = 21;
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.specifics_);
    }
    // optional .sync_pb.UniquePosition unique_position = 25;
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.unique_position_);
    }
    // optional .sync_pb.SyncEntity.CollaborationMetadata collaboration = 27;
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.collaboration_);
    }
    // optional .sync_pb.DeletionOrigin deletion_origin = 28;
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.deletion_origin_);
    }
    // optional .sync_pb.Attachment attachment = 29;
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachment_);
    }
    // optional int64 version = 4;
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_version());
    }
    // optional int64 mtime = 5;
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_mtime());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00030000U)) {
    // optional int64 ctime = 6;
    if (CheckHasBit(cached_has_bits, 0x00010000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_ctime());
    }
    // optional int64 position_in_parent = 15 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00020000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_position_in_parent());
    }
  }
  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 SyncEntity::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SyncEntity*>(&to_msg);
  auto& from = static_cast<const SyncEntity&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.SyncEntity)
  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_set_id_string(from._internal_id_string());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_parent_id_string(from._internal_parent_id_string());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_name(from._internal_name());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_non_unique_name(from._internal_non_unique_name());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_internal_set_server_defined_unique_tag(from._internal_server_defined_unique_tag());
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_internal_set_insert_after_item_id(from._internal_insert_after_item_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_internal_set_originator_cache_guid(from._internal_originator_cache_guid());
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_internal_set_originator_client_item_id(from._internal_originator_client_item_id());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _this->_internal_set_client_tag_hash(from._internal_client_tag_hash());
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      ABSL_DCHECK(from._impl_.specifics_ != nullptr);
      if (_this->_impl_.specifics_ == nullptr) {
        _this->_impl_.specifics_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.specifics_);
      } else {
        _this->_impl_.specifics_->MergeFrom(*from._impl_.specifics_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      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, 0x00000800U)) {
      ABSL_DCHECK(from._impl_.collaboration_ != nullptr);
      if (_this->_impl_.collaboration_ == nullptr) {
        _this->_impl_.collaboration_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.collaboration_);
      } else {
        _this->_impl_.collaboration_->MergeFrom(*from._impl_.collaboration_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      ABSL_DCHECK(from._impl_.deletion_origin_ != nullptr);
      if (_this->_impl_.deletion_origin_ == nullptr) {
        _this->_impl_.deletion_origin_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.deletion_origin_);
      } else {
        _this->_impl_.deletion_origin_->MergeFrom(*from._impl_.deletion_origin_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      ABSL_DCHECK(from._impl_.attachment_ != nullptr);
      if (_this->_impl_.attachment_ == nullptr) {
        _this->_impl_.attachment_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachment_);
      } else {
        _this->_impl_.attachment_->MergeFrom(*from._impl_.attachment_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      _this->_impl_.version_ = from._impl_.version_;
    }
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      _this->_impl_.mtime_ = from._impl_.mtime_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000f0000U)) {
    if (CheckHasBit(cached_has_bits, 0x00010000U)) {
      _this->_impl_.ctime_ = from._impl_.ctime_;
    }
    if (CheckHasBit(cached_has_bits, 0x00020000U)) {
      _this->_impl_.position_in_parent_ = from._impl_.position_in_parent_;
    }
    if (CheckHasBit(cached_has_bits, 0x00040000U)) {
      _this->_impl_.deleted_ = from._impl_.deleted_;
    }
    if (CheckHasBit(cached_has_bits, 0x00080000U)) {
      _this->_impl_.folder_ = from._impl_.folder_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SyncEntity::InternalSwap(SyncEntity* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  auto* arena = GetArena();
  ABSL_DCHECK_EQ(arena, other->GetArena());
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_string_, &other->_impl_.id_string_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_id_string_, &other->_impl_.parent_id_string_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.non_unique_name_, &other->_impl_.non_unique_name_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.server_defined_unique_tag_, &other->_impl_.server_defined_unique_tag_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.insert_after_item_id_, &other->_impl_.insert_after_item_id_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.originator_cache_guid_, &other->_impl_.originator_cache_guid_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.originator_client_item_id_, &other->_impl_.originator_client_item_id_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.client_tag_hash_, &other->_impl_.client_tag_hash_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.folder_)
      + sizeof(SyncEntity::_impl_.folder_)
      - PROTOBUF_FIELD_OFFSET(SyncEntity, _impl_.specifics_)>(
          reinterpret_cast<char*>(&_impl_.specifics_),
          reinterpret_cast<char*>(&other->_impl_.specifics_));
}

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