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

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

constexpr EntityMetadata_CollaborationMetadata_Attribution::ParseTableT_ EntityMetadata_CollaborationMetadata_Attribution::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(EntityMetadata_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::EntityMetadata_CollaborationMetadata_Attribution>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional string obfuscated_gaia_id = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata_CollaborationMetadata_Attribution, _impl_.obfuscated_gaia_id_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string obfuscated_gaia_id = 1;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata_CollaborationMetadata_Attribution, _impl_.obfuscated_gaia_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


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

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

constexpr EntityMetadata_CollaborationMetadata::ParseTableT_ EntityMetadata_CollaborationMetadata::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(EntityMetadata_CollaborationMetadata, _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
      2,  // 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::EntityMetadata_CollaborationMetadata>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional string collaboration_id = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata_CollaborationMetadata, _impl_.collaboration_id_)}},
      // optional .sync_pb.EntityMetadata.CollaborationMetadata.Attribution creation_attribution = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata_CollaborationMetadata, _impl_.creation_attribution_)}},
      // optional .sync_pb.EntityMetadata.CollaborationMetadata.Attribution last_update_attribution = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 2, 1,
        PROTOBUF_FIELD_OFFSET(EntityMetadata_CollaborationMetadata, _impl_.last_update_attribution_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string collaboration_id = 1;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata_CollaborationMetadata, _impl_.collaboration_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .sync_pb.EntityMetadata.CollaborationMetadata.Attribution creation_attribution = 2;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata_CollaborationMetadata, _impl_.creation_attribution_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .sync_pb.EntityMetadata.CollaborationMetadata.Attribution last_update_attribution = 3;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata_CollaborationMetadata, _impl_.last_update_attribution_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::EntityMetadata_CollaborationMetadata_Attribution>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::EntityMetadata_CollaborationMetadata_Attribution_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::EntityMetadata_CollaborationMetadata_Attribution>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::EntityMetadata_CollaborationMetadata_Attribution_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr EntityMetadata_CollaborationMetadata::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        collaboration_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        creation_attribution_{nullptr},
        last_update_attribution_{nullptr} {}

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

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

constexpr EntityMetadata::ParseTableT_ EntityMetadata::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_._has_bits_),
      0, // no _extensions_
      16, 120,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294901760,  // skipmap
      offsetof(ParseTableT_, field_entries),
      16,  // num_field_entries
      4,  // 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::EntityMetadata>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional .sync_pb.DeletionOrigin deletion_origin = 16;
      {::_pbi::TcParser::FastMtS2,
       {386, 8, 3,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.deletion_origin_)}},
      // optional string client_tag_hash = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.client_tag_hash_)}},
      // optional string server_id = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.server_id_)}},
      // optional bool is_deleted = 3;
      {::_pbi::TcParser::FastV8S1,
       {24, 12, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.is_deleted_)}},
      // optional int64 sequence_number = 4;
      {::_pbi::TcParser::FastV64S1,
       {32, 9, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.sequence_number_)}},
      // optional int64 acked_sequence_number = 5;
      {::_pbi::TcParser::FastV64S1,
       {40, 10, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.acked_sequence_number_)}},
      // optional int64 server_version = 6 [default = -1];
      {::_pbi::TcParser::FastV64S1,
       {48, 15, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.server_version_)}},
      // optional int64 creation_time = 7;
      {::_pbi::TcParser::FastV64S1,
       {56, 11, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.creation_time_)}},
      // optional int64 modification_time = 8;
      {::_pbi::TcParser::FastV64S1,
       {64, 14, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.modification_time_)}},
      // optional string specifics_hash = 9;
      {::_pbi::TcParser::FastBS1,
       {74, 2, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.specifics_hash_)}},
      // optional string base_specifics_hash = 10;
      {::_pbi::TcParser::FastBS1,
       {82, 3, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.base_specifics_hash_)}},
      // optional .sync_pb.UniquePosition unique_position = 11;
      {::_pbi::TcParser::FastMtS1,
       {90, 5, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.unique_position_)}},
      // optional fixed32 bookmark_favicon_hash = 12;
      {::_pbi::TcParser::FastF32S1,
       {101, 13, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.bookmark_favicon_hash_)}},
      // optional .sync_pb.EntitySpecifics possibly_trimmed_base_specifics = 13;
      {::_pbi::TcParser::FastMtS1,
       {106, 6, 1,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.possibly_trimmed_base_specifics_)}},
      // optional string deleted_by_version = 14;
      {::_pbi::TcParser::FastBS1,
       {114, 4, 0,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.deleted_by_version_)}},
      // optional .sync_pb.EntityMetadata.CollaborationMetadata collaboration = 15;
      {::_pbi::TcParser::FastMtS1,
       {122, 7, 2,
        PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.collaboration_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string client_tag_hash = 1;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.client_tag_hash_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string server_id = 2;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.server_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bool is_deleted = 3;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.is_deleted_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional int64 sequence_number = 4;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.sequence_number_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 acked_sequence_number = 5;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.acked_sequence_number_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 server_version = 6 [default = -1];
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.server_version_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 creation_time = 7;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.creation_time_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 modification_time = 8;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.modification_time_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional string specifics_hash = 9;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.specifics_hash_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string base_specifics_hash = 10;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.base_specifics_hash_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .sync_pb.UniquePosition unique_position = 11;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.unique_position_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional fixed32 bookmark_favicon_hash = 12;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.bookmark_favicon_hash_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed32)},
      // optional .sync_pb.EntitySpecifics possibly_trimmed_base_specifics = 13;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.possibly_trimmed_base_specifics_), _Internal::kHasBitsOffset + 6, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional string deleted_by_version = 14;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.deleted_by_version_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .sync_pb.EntityMetadata.CollaborationMetadata collaboration = 15;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.collaboration_), _Internal::kHasBitsOffset + 7, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .sync_pb.DeletionOrigin deletion_origin = 16;
      {PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.deletion_origin_), _Internal::kHasBitsOffset + 8, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #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::EntitySpecifics>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::EntitySpecifics_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::EntityMetadata_CollaborationMetadata>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::EntityMetadata_CollaborationMetadata_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::DeletionOrigin>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::DeletionOrigin_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr EntityMetadata::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        client_tag_hash_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        server_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        specifics_hash_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        base_specifics_hash_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        deleted_by_version_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        unique_position_{nullptr},
        possibly_trimmed_base_specifics_{nullptr},
        collaboration_{nullptr},
        deletion_origin_{nullptr},
        sequence_number_{::int64_t{0}},
        acked_sequence_number_{::int64_t{0}},
        creation_time_{::int64_t{0}},
        is_deleted_{false},
        bookmark_favicon_hash_{0u},
        modification_time_{::int64_t{0}},
        server_version_{::int64_t{-1}} {}

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

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

EntityMetadata_CollaborationMetadata_Attribution::EntityMetadata_CollaborationMetadata_Attribution(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, EntityMetadata_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.EntityMetadata.CollaborationMetadata.Attribution)
}
PROTOBUF_NDEBUG_INLINE EntityMetadata_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::EntityMetadata_CollaborationMetadata_Attribution& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        obfuscated_gaia_id_(arena, from.obfuscated_gaia_id_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  EntityMetadata_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.EntityMetadata.CollaborationMetadata.Attribution)
}
PROTOBUF_NDEBUG_INLINE EntityMetadata_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 EntityMetadata_CollaborationMetadata_Attribution::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
EntityMetadata_CollaborationMetadata_Attribution::~EntityMetadata_CollaborationMetadata_Attribution() {
  // @@protoc_insertion_point(destructor:sync_pb.EntityMetadata.CollaborationMetadata.Attribution)
  SharedDtor(*this);
}
inline void EntityMetadata_CollaborationMetadata_Attribution::SharedDtor(MessageLite& self) {
  EntityMetadata_CollaborationMetadata_Attribution& this_ = static_cast<EntityMetadata_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 EntityMetadata_CollaborationMetadata_Attribution_class_data_ =
    EntityMetadata_CollaborationMetadata_Attribution::InternalGenerateClassData_(EntityMetadata_CollaborationMetadata_Attribution_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
EntityMetadata_CollaborationMetadata_Attribution::GetClassData() const {
  return EntityMetadata_CollaborationMetadata_Attribution_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
EntityMetadata_CollaborationMetadata_Attribution::GetClassData() const {
  return EntityMetadata_CollaborationMetadata_Attribution_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const EntityMetadata_CollaborationMetadata_Attribution::ParseTableT_
    EntityMetadata_CollaborationMetadata_Attribution::_table_ =
        EntityMetadata_CollaborationMetadata_Attribution::InternalGenerateParseTable_(EntityMetadata_CollaborationMetadata_Attribution_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void EntityMetadata_CollaborationMetadata_Attribution::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.EntityMetadata.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 EntityMetadata_CollaborationMetadata_Attribution::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const EntityMetadata_CollaborationMetadata_Attribution& this_ = static_cast<const EntityMetadata_CollaborationMetadata_Attribution&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL EntityMetadata_CollaborationMetadata_Attribution::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const EntityMetadata_CollaborationMetadata_Attribution& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:sync_pb.EntityMetadata.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.EntityMetadata.CollaborationMetadata.Attribution)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t EntityMetadata_CollaborationMetadata_Attribution::ByteSizeLong(const MessageLite& base) {
  const EntityMetadata_CollaborationMetadata_Attribution& this_ = static_cast<const EntityMetadata_CollaborationMetadata_Attribution&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t EntityMetadata_CollaborationMetadata_Attribution::ByteSizeLong() const {
  const EntityMetadata_CollaborationMetadata_Attribution& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.EntityMetadata.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 EntityMetadata_CollaborationMetadata_Attribution::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<EntityMetadata_CollaborationMetadata_Attribution*>(&to_msg);
  auto& from = static_cast<const EntityMetadata_CollaborationMetadata_Attribution&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.EntityMetadata.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 EntityMetadata_CollaborationMetadata_Attribution::CopyFrom(const EntityMetadata_CollaborationMetadata_Attribution& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.EntityMetadata.CollaborationMetadata.Attribution)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void EntityMetadata_CollaborationMetadata_Attribution::InternalSwap(EntityMetadata_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);
}

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

EntityMetadata_CollaborationMetadata::EntityMetadata_CollaborationMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, EntityMetadata_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.EntityMetadata.CollaborationMetadata)
}
PROTOBUF_NDEBUG_INLINE EntityMetadata_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::EntityMetadata_CollaborationMetadata& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        collaboration_id_(arena, from.collaboration_id_) {}

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

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

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

inline void EntityMetadata_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_));
}
EntityMetadata_CollaborationMetadata::~EntityMetadata_CollaborationMetadata() {
  // @@protoc_insertion_point(destructor:sync_pb.EntityMetadata.CollaborationMetadata)
  SharedDtor(*this);
}
inline void EntityMetadata_CollaborationMetadata::SharedDtor(MessageLite& self) {
  EntityMetadata_CollaborationMetadata& this_ = static_cast<EntityMetadata_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 EntityMetadata_CollaborationMetadata_class_data_ =
    EntityMetadata_CollaborationMetadata::InternalGenerateClassData_(EntityMetadata_CollaborationMetadata_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
EntityMetadata_CollaborationMetadata::GetClassData() const {
  return EntityMetadata_CollaborationMetadata_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
EntityMetadata_CollaborationMetadata::GetClassData() const {
  return EntityMetadata_CollaborationMetadata_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const EntityMetadata_CollaborationMetadata::ParseTableT_
    EntityMetadata_CollaborationMetadata::_table_ =
        EntityMetadata_CollaborationMetadata::InternalGenerateParseTable_(EntityMetadata_CollaborationMetadata_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void EntityMetadata_CollaborationMetadata::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.EntityMetadata.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, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.collaboration_id_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.creation_attribution_ != nullptr);
      _impl_.creation_attribution_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      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 EntityMetadata_CollaborationMetadata::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const EntityMetadata_CollaborationMetadata& this_ = static_cast<const EntityMetadata_CollaborationMetadata&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL EntityMetadata_CollaborationMetadata::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const EntityMetadata_CollaborationMetadata& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:sync_pb.EntityMetadata.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, 0x00000001U)) {
    const ::std::string& _s = this_._internal_collaboration_id();
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

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

  // optional .sync_pb.EntityMetadata.CollaborationMetadata.Attribution last_update_attribution = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.last_update_attribution_, this_._impl_.last_update_attribution_->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.EntityMetadata.CollaborationMetadata)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t EntityMetadata_CollaborationMetadata::ByteSizeLong(const MessageLite& base) {
  const EntityMetadata_CollaborationMetadata& this_ = static_cast<const EntityMetadata_CollaborationMetadata&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t EntityMetadata_CollaborationMetadata::ByteSizeLong() const {
  const EntityMetadata_CollaborationMetadata& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:sync_pb.EntityMetadata.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, 0x00000007U)) {
    // optional string collaboration_id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_collaboration_id());
    }
    // optional .sync_pb.EntityMetadata.CollaborationMetadata.Attribution creation_attribution = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.creation_attribution_);
    }
    // optional .sync_pb.EntityMetadata.CollaborationMetadata.Attribution last_update_attribution = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      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 EntityMetadata_CollaborationMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<EntityMetadata_CollaborationMetadata*>(&to_msg);
  auto& from = static_cast<const EntityMetadata_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.EntityMetadata.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, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_collaboration_id(from._internal_collaboration_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      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, 0x00000004U)) {
      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 EntityMetadata_CollaborationMetadata::CopyFrom(const EntityMetadata_CollaborationMetadata& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.EntityMetadata.CollaborationMetadata)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


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

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

void EntityMetadata::clear_unique_position() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.unique_position_ != nullptr) _impl_.unique_position_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
}
void EntityMetadata::clear_possibly_trimmed_base_specifics() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.possibly_trimmed_base_specifics_ != nullptr) _impl_.possibly_trimmed_base_specifics_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
}
void EntityMetadata::clear_deletion_origin() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.deletion_origin_ != nullptr) _impl_.deletion_origin_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000100U);
}
EntityMetadata::EntityMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, EntityMetadata_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:sync_pb.EntityMetadata)
}
PROTOBUF_NDEBUG_INLINE EntityMetadata::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::EntityMetadata& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        client_tag_hash_(arena, from.client_tag_hash_),
        server_id_(arena, from.server_id_),
        specifics_hash_(arena, from.specifics_hash_),
        base_specifics_hash_(arena, from.base_specifics_hash_),
        deleted_by_version_(arena, from.deleted_by_version_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  EntityMetadata* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  _impl_.unique_position_ = (CheckHasBit(cached_has_bits, 0x00000020U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.unique_position_)
                : nullptr;
  _impl_.possibly_trimmed_base_specifics_ = (CheckHasBit(cached_has_bits, 0x00000040U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.possibly_trimmed_base_specifics_)
                : nullptr;
  _impl_.collaboration_ = (CheckHasBit(cached_has_bits, 0x00000080U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.collaboration_)
                : nullptr;
  _impl_.deletion_origin_ = (CheckHasBit(cached_has_bits, 0x00000100U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.deletion_origin_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, sequence_number_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, sequence_number_),
           offsetof(Impl_, server_version_) -
               offsetof(Impl_, sequence_number_) +
               sizeof(Impl_::server_version_));

  // @@protoc_insertion_point(copy_constructor:sync_pb.EntityMetadata)
}
PROTOBUF_NDEBUG_INLINE EntityMetadata::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        client_tag_hash_(arena),
        server_id_(arena),
        specifics_hash_(arena),
        base_specifics_hash_(arena),
        deleted_by_version_(arena),
        server_version_{::int64_t{-1}} {}

inline void EntityMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, unique_position_),
           0,
           offsetof(Impl_, modification_time_) -
               offsetof(Impl_, unique_position_) +
               sizeof(Impl_::modification_time_));
}
EntityMetadata::~EntityMetadata() {
  // @@protoc_insertion_point(destructor:sync_pb.EntityMetadata)
  SharedDtor(*this);
}
inline void EntityMetadata::SharedDtor(MessageLite& self) {
  EntityMetadata& this_ = static_cast<EntityMetadata&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.client_tag_hash_.Destroy();
  this_._impl_.server_id_.Destroy();
  this_._impl_.specifics_hash_.Destroy();
  this_._impl_.base_specifics_hash_.Destroy();
  this_._impl_.deleted_by_version_.Destroy();
  delete this_._impl_.unique_position_;
  delete this_._impl_.possibly_trimmed_base_specifics_;
  delete this_._impl_.collaboration_;
  delete this_._impl_.deletion_origin_;
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite EntityMetadata_class_data_ =
    EntityMetadata::InternalGenerateClassData_(EntityMetadata_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
EntityMetadata::GetClassData() const {
  return EntityMetadata_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
EntityMetadata::GetClassData() const {
  return EntityMetadata_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const EntityMetadata::ParseTableT_
    EntityMetadata::_table_ =
        EntityMetadata::InternalGenerateParseTable_(EntityMetadata_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void EntityMetadata::Clear() {
// @@protoc_insertion_point(message_clear_start:sync_pb.EntityMetadata)
  ::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_.client_tag_hash_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.server_id_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.specifics_hash_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.base_specifics_hash_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.deleted_by_version_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      ABSL_DCHECK(_impl_.unique_position_ != nullptr);
      _impl_.unique_position_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      ABSL_DCHECK(_impl_.possibly_trimmed_base_specifics_ != nullptr);
      _impl_.possibly_trimmed_base_specifics_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      ABSL_DCHECK(_impl_.collaboration_ != nullptr);
      _impl_.collaboration_->Clear();
    }
  }
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    ABSL_DCHECK(_impl_.deletion_origin_ != nullptr);
    _impl_.deletion_origin_->Clear();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000fe00U)) {
    ::memset(&_impl_.sequence_number_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.modification_time_) -
        reinterpret_cast<char*>(&_impl_.sequence_number_)) + sizeof(_impl_.modification_time_));
    _impl_.server_version_ = ::int64_t{-1};
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

  // optional bool is_deleted = 3;
  if (CheckHasBit(cached_has_bits, 0x00001000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        3, this_._internal_is_deleted(), target);
  }

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

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

  // optional int64 server_version = 6 [default = -1];
  if (CheckHasBit(cached_has_bits, 0x00008000U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
            stream, this_._internal_server_version(), target);
  }

  // optional int64 creation_time = 7;
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>(
            stream, this_._internal_creation_time(), target);
  }

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

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

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

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

  // optional fixed32 bookmark_favicon_hash = 12;
  if (CheckHasBit(cached_has_bits, 0x00002000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFixed32ToArray(
        12, this_._internal_bookmark_favicon_hash(), target);
  }

  // optional .sync_pb.EntitySpecifics possibly_trimmed_base_specifics = 13;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        13, *this_._impl_.possibly_trimmed_base_specifics_, this_._impl_.possibly_trimmed_base_specifics_->GetCachedSize(), target,
        stream);
  }

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

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

  // optional .sync_pb.DeletionOrigin deletion_origin = 16;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        16, *this_._impl_.deletion_origin_, this_._impl_.deletion_origin_->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.EntityMetadata)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += static_cast<bool>(0x00002000U & cached_has_bits) * 5;
  total_size += static_cast<bool>(0x00001000U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    // optional string client_tag_hash = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_client_tag_hash());
    }
    // optional string server_id = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_server_id());
    }
    // optional string specifics_hash = 9;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_specifics_hash());
    }
    // optional string base_specifics_hash = 10;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_base_specifics_hash());
    }
    // optional string deleted_by_version = 14;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_deleted_by_version());
    }
    // optional .sync_pb.UniquePosition unique_position = 11;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.unique_position_);
    }
    // optional .sync_pb.EntitySpecifics possibly_trimmed_base_specifics = 13;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.possibly_trimmed_base_specifics_);
    }
    // optional .sync_pb.EntityMetadata.CollaborationMetadata collaboration = 15;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.collaboration_);
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000cf00U)) {
    // optional .sync_pb.DeletionOrigin deletion_origin = 16;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      total_size += 2 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.deletion_origin_);
    }
    // optional int64 sequence_number = 4;
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_sequence_number());
    }
    // optional int64 acked_sequence_number = 5;
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_acked_sequence_number());
    }
    // optional int64 creation_time = 7;
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_creation_time());
    }
    // optional int64 modification_time = 8;
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_modification_time());
    }
    // optional int64 server_version = 6 [default = -1];
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_server_version());
    }
  }
  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 EntityMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<EntityMetadata*>(&to_msg);
  auto& from = static_cast<const EntityMetadata&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.EntityMetadata)
  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_client_tag_hash(from._internal_client_tag_hash());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_server_id(from._internal_server_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_specifics_hash(from._internal_specifics_hash());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_base_specifics_hash(from._internal_base_specifics_hash());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_internal_set_deleted_by_version(from._internal_deleted_by_version());
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      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, 0x00000040U)) {
      ABSL_DCHECK(from._impl_.possibly_trimmed_base_specifics_ != nullptr);
      if (_this->_impl_.possibly_trimmed_base_specifics_ == nullptr) {
        _this->_impl_.possibly_trimmed_base_specifics_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.possibly_trimmed_base_specifics_);
      } else {
        _this->_impl_.possibly_trimmed_base_specifics_->MergeFrom(*from._impl_.possibly_trimmed_base_specifics_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      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 (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      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, 0x00000200U)) {
      _this->_impl_.sequence_number_ = from._impl_.sequence_number_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _this->_impl_.acked_sequence_number_ = from._impl_.acked_sequence_number_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _this->_impl_.creation_time_ = from._impl_.creation_time_;
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      _this->_impl_.is_deleted_ = from._impl_.is_deleted_;
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      _this->_impl_.bookmark_favicon_hash_ = from._impl_.bookmark_favicon_hash_;
    }
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      _this->_impl_.modification_time_ = from._impl_.modification_time_;
    }
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      _this->_impl_.server_version_ = from._impl_.server_version_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void EntityMetadata::InternalSwap(EntityMetadata* 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_.client_tag_hash_, &other->_impl_.client_tag_hash_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.server_id_, &other->_impl_.server_id_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.specifics_hash_, &other->_impl_.specifics_hash_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.base_specifics_hash_, &other->_impl_.base_specifics_hash_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.deleted_by_version_, &other->_impl_.deleted_by_version_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.server_version_)
      + sizeof(EntityMetadata::_impl_.server_version_)
      - PROTOBUF_FIELD_OFFSET(EntityMetadata, _impl_.unique_position_)>(
          reinterpret_cast<char*>(&_impl_.unique_position_),
          reinterpret_cast<char*>(&other->_impl_.unique_position_));
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace sync_pb
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
