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

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

constexpr GroupMember::ParseTableT_ GroupMember::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(GroupMember, _impl_._has_bits_),
      0, // no _extensions_
      8, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967040,  // skipmap
      offsetof(ParseTableT_, field_entries),
      8,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::data_sharing_pb::GroupMember>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional int64 last_updated_time_unix_epoch_millis = 8;
      {::_pbi::TcParser::FastV64S1,
       {64, 6, 0,
        PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.last_updated_time_unix_epoch_millis_)}},
      // optional string gaia_id = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.gaia_id_)}},
      // optional string display_name = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.display_name_)}},
      // optional string email = 3;
      {::_pbi::TcParser::FastBS1,
       {26, 2, 0,
        PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.email_)}},
      // optional .data_sharing_pb.MemberRole role = 4;
      {::_pbi::TcParser::FastEr0S1,
       {32, 7, 4,
        PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.role_)}},
      // optional string avatar_url = 5;
      {::_pbi::TcParser::FastBS1,
       {42, 3, 0,
        PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.avatar_url_)}},
      // optional string given_name = 6;
      {::_pbi::TcParser::FastBS1,
       {50, 4, 0,
        PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.given_name_)}},
      // optional int64 creation_time_unix_epoch_millis = 7;
      {::_pbi::TcParser::FastV64S1,
       {56, 5, 0,
        PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.creation_time_unix_epoch_millis_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string gaia_id = 1;
      {PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.gaia_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string display_name = 2;
      {PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.display_name_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string email = 3;
      {PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.email_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional .data_sharing_pb.MemberRole role = 4;
      {PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.role_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // optional string avatar_url = 5;
      {PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.avatar_url_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string given_name = 6;
      {PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.given_name_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional int64 creation_time_unix_epoch_millis = 7;
      {PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.creation_time_unix_epoch_millis_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // optional int64 last_updated_time_unix_epoch_millis = 8;
      {PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.last_updated_time_unix_epoch_millis_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    {{
        {0, 4},
    }},
    {{
    }},
  };
}


inline constexpr GroupMember::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        gaia_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        display_name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        email_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        avatar_url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        given_name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        creation_time_unix_epoch_millis_{::int64_t{0}},
        last_updated_time_unix_epoch_millis_{::int64_t{0}},
        role_{static_cast< ::data_sharing_pb::MemberRole >(0)} {}

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

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

constexpr GroupData::ParseTableT_ GroupData::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(GroupData, _impl_._has_bits_),
      0, // no _extensions_
      6, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967232,  // skipmap
      offsetof(ParseTableT_, field_entries),
      6,  // 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<::data_sharing_pb::GroupData>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional string group_id = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 2, 0,
        PROTOBUF_FIELD_OFFSET(GroupData, _impl_.group_id_)}},
      // optional string display_name = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 3, 0,
        PROTOBUF_FIELD_OFFSET(GroupData, _impl_.display_name_)}},
      // repeated .data_sharing_pb.GroupMember members = 3;
      {::_pbi::TcParser::FastMtR1,
       {26, 0, 0,
        PROTOBUF_FIELD_OFFSET(GroupData, _impl_.members_)}},
      // optional string access_token = 4;
      {::_pbi::TcParser::FastBS1,
       {34, 4, 0,
        PROTOBUF_FIELD_OFFSET(GroupData, _impl_.access_token_)}},
      // repeated .data_sharing_pb.GroupMember former_members = 5;
      {::_pbi::TcParser::FastMtR1,
       {42, 1, 1,
        PROTOBUF_FIELD_OFFSET(GroupData, _impl_.former_members_)}},
      // optional .sync_pb.CollaborationGroupMetadata collaboration_group_metadata = 6;
      {::_pbi::TcParser::FastMtS1,
       {50, 5, 2,
        PROTOBUF_FIELD_OFFSET(GroupData, _impl_.collaboration_group_metadata_)}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string group_id = 1;
      {PROTOBUF_FIELD_OFFSET(GroupData, _impl_.group_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string display_name = 2;
      {PROTOBUF_FIELD_OFFSET(GroupData, _impl_.display_name_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // repeated .data_sharing_pb.GroupMember members = 3;
      {PROTOBUF_FIELD_OFFSET(GroupData, _impl_.members_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional string access_token = 4;
      {PROTOBUF_FIELD_OFFSET(GroupData, _impl_.access_token_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // repeated .data_sharing_pb.GroupMember former_members = 5;
      {PROTOBUF_FIELD_OFFSET(GroupData, _impl_.former_members_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .sync_pb.CollaborationGroupMetadata collaboration_group_metadata = 6;
      {PROTOBUF_FIELD_OFFSET(GroupData, _impl_.collaboration_group_metadata_), _Internal::kHasBitsOffset + 5, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::data_sharing_pb::GroupMember>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::data_sharing_pb::GroupMember_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::data_sharing_pb::GroupMember>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::data_sharing_pb::GroupMember_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::sync_pb::CollaborationGroupMetadata>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::sync_pb::CollaborationGroupMetadata_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr GroupData::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        members_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::data_sharing_pb::GroupData,
            PROTOBUF_FIELD_OFFSET(::data_sharing_pb::GroupData, _impl_.members_)>()
         }
        ,
        former_members_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::data_sharing_pb::GroupData,
            PROTOBUF_FIELD_OFFSET(::data_sharing_pb::GroupData, _impl_.former_members_)>()
         }
        ,
        group_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        display_name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        access_token_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        collaboration_group_metadata_{nullptr} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GroupDataGlobalsTypeInternal GroupData_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* GroupData_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return GroupData_globals_.GetClassData();
#else
  return GroupData_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace data_sharing_pb
namespace data_sharing_pb {
PROTOBUF_CONSTINIT const uint32_t MemberRole_internal_data_[] = {
    327680u, 0u, };
static const char MemberRole_names[] = {
    "MEMBER_ROLE_FORMER_MEMBER"
    "MEMBER_ROLE_INVITEE"
    "MEMBER_ROLE_MEMBER"
    "MEMBER_ROLE_OWNER"
    "MEMBER_ROLE_UNSPECIFIED"
};

static const ::google::protobuf::internal::EnumEntry MemberRole_entries[] = {
    {{&MemberRole_names[0], 25}, 4},
    {{&MemberRole_names[25], 19}, 3},
    {{&MemberRole_names[44], 18}, 2},
    {{&MemberRole_names[62], 17}, 1},
    {{&MemberRole_names[79], 23}, 0},
};

static const int MemberRole_entries_by_number[] = {
    4,  // 0 -> MEMBER_ROLE_UNSPECIFIED
    3,  // 1 -> MEMBER_ROLE_OWNER
    2,  // 2 -> MEMBER_ROLE_MEMBER
    1,  // 3 -> MEMBER_ROLE_INVITEE
    0,  // 4 -> MEMBER_ROLE_FORMER_MEMBER
};

bool MemberRole_Parse(::absl::string_view name,
                                  MemberRole* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      MemberRole_entries, 5, name, &int_value);
  if (success) {
    *value = static_cast<MemberRole>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    MemberRole_strings[5] = {};

const ::std::string& MemberRole_Name(MemberRole value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      MemberRole_entries, MemberRole_entries_by_number, 5,
      MemberRole_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(MemberRole_entries,
                                  MemberRole_entries_by_number,
                                  5, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : MemberRole_strings[idx].get();
}
// ===================================================================

GroupMember::GroupMember(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, GroupMember_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:data_sharing_pb.GroupMember)
}
PROTOBUF_NDEBUG_INLINE GroupMember::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::data_sharing_pb::GroupMember& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        gaia_id_(arena, from.gaia_id_),
        display_name_(arena, from.display_name_),
        email_(arena, from.email_),
        avatar_url_(arena, from.avatar_url_),
        given_name_(arena, from.given_name_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  GroupMember* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, creation_time_unix_epoch_millis_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, creation_time_unix_epoch_millis_),
           offsetof(Impl_, role_) -
               offsetof(Impl_, creation_time_unix_epoch_millis_) +
               sizeof(Impl_::role_));

  // @@protoc_insertion_point(copy_constructor:data_sharing_pb.GroupMember)
}
PROTOBUF_NDEBUG_INLINE GroupMember::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        gaia_id_(arena),
        display_name_(arena),
        email_(arena),
        avatar_url_(arena),
        given_name_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite GroupMember_class_data_ =
    GroupMember::InternalGenerateClassData_(GroupMember_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.gaia_id_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.display_name_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.email_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.avatar_url_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.given_name_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000000e0U)) {
    ::memset(&_impl_.creation_time_unix_epoch_millis_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.role_) -
        reinterpret_cast<char*>(&_impl_.creation_time_unix_epoch_millis_)) + sizeof(_impl_.role_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

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

  // optional .data_sharing_pb.MemberRole role = 4;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        4, this_._internal_role(), target);
  }

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

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

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

  // optional int64 last_updated_time_unix_epoch_millis = 8;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<8>(
            stream, this_._internal_last_updated_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:data_sharing_pb.GroupMember)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    // optional string gaia_id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_gaia_id());
    }
    // optional string display_name = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_display_name());
    }
    // optional string email = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_email());
    }
    // optional string avatar_url = 5;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_avatar_url());
    }
    // optional string given_name = 6;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_given_name());
    }
    // optional int64 creation_time_unix_epoch_millis = 7;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_creation_time_unix_epoch_millis());
    }
    // optional int64 last_updated_time_unix_epoch_millis = 8;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_last_updated_time_unix_epoch_millis());
    }
    // optional .data_sharing_pb.MemberRole role = 4;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_role());
    }
  }
  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 GroupMember::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<GroupMember*>(&to_msg);
  auto& from = static_cast<const GroupMember&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:data_sharing_pb.GroupMember)
  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_gaia_id(from._internal_gaia_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_display_name(from._internal_display_name());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_email(from._internal_email());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_avatar_url(from._internal_avatar_url());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_internal_set_given_name(from._internal_given_name());
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.creation_time_unix_epoch_millis_ = from._impl_.creation_time_unix_epoch_millis_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.last_updated_time_unix_epoch_millis_ = from._impl_.last_updated_time_unix_epoch_millis_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_impl_.role_ = from._impl_.role_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void GroupMember::InternalSwap(GroupMember* 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_.gaia_id_, &other->_impl_.gaia_id_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.display_name_, &other->_impl_.display_name_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, &other->_impl_.email_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.avatar_url_, &other->_impl_.avatar_url_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.given_name_, &other->_impl_.given_name_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.role_)
      + sizeof(GroupMember::_impl_.role_)
      - PROTOBUF_FIELD_OFFSET(GroupMember, _impl_.creation_time_unix_epoch_millis_)>(
          reinterpret_cast<char*>(&_impl_.creation_time_unix_epoch_millis_),
          reinterpret_cast<char*>(&other->_impl_.creation_time_unix_epoch_millis_));
}

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

void GroupData::clear_collaboration_group_metadata() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.collaboration_group_metadata_ != nullptr) _impl_.collaboration_group_metadata_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
}
GroupData::GroupData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, GroupData_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:data_sharing_pb.GroupData)
}
PROTOBUF_NDEBUG_INLINE GroupData::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::data_sharing_pb::GroupData& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        members_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::data_sharing_pb::GroupData,
              PROTOBUF_FIELD_OFFSET(::data_sharing_pb::GroupData, _impl_.members_)>()
          , from.members_
        }
        ,
        former_members_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::data_sharing_pb::GroupData,
              PROTOBUF_FIELD_OFFSET(::data_sharing_pb::GroupData, _impl_.former_members_)>()
          , from.former_members_
        }
        ,
        group_id_(arena, from.group_id_),
        display_name_(arena, from.display_name_),
        access_token_(arena, from.access_token_) {}

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

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

  // @@protoc_insertion_point(copy_constructor:data_sharing_pb.GroupData)
}
PROTOBUF_NDEBUG_INLINE GroupData::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        members_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::data_sharing_pb::GroupData,
            PROTOBUF_FIELD_OFFSET(::data_sharing_pb::GroupData, _impl_.members_)>()
         }
        ,
        former_members_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::data_sharing_pb::GroupData,
            PROTOBUF_FIELD_OFFSET(::data_sharing_pb::GroupData, _impl_.former_members_)>()
         }
        ,
        group_id_(arena),
        display_name_(arena),
        access_token_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite GroupData_class_data_ =
    GroupData::InternalGenerateClassData_(GroupData_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
GroupData::GetClassData() const {
  return GroupData_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
GroupData::GetClassData() const {
  return GroupData_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GroupData::ParseTableT_
    GroupData::_table_ =
        GroupData::InternalGenerateParseTable_(GroupData_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void GroupData::Clear() {
// @@protoc_insertion_point(message_clear_start:data_sharing_pb.GroupData)
  ::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, 0x0000003fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.members_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.former_members_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.group_id_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.display_name_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.access_token_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      ABSL_DCHECK(_impl_.collaboration_group_metadata_ != nullptr);
      _impl_.collaboration_group_metadata_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

  // repeated .data_sharing_pb.GroupMember members = 3;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_members_size());
         i < n; i++) {
      const auto& repfield = this_._internal_members().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              3, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

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

  // repeated .data_sharing_pb.GroupMember former_members = 5;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_former_members_size());
         i < n; i++) {
      const auto& repfield = this_._internal_former_members().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              5, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // optional .sync_pb.CollaborationGroupMetadata collaboration_group_metadata = 6;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        6, *this_._impl_.collaboration_group_metadata_, this_._impl_.collaboration_group_metadata_->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:data_sharing_pb.GroupData)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
    // repeated .data_sharing_pb.GroupMember members = 3;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_members_size();
      for (const auto& msg : this_._internal_members()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .data_sharing_pb.GroupMember former_members = 5;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1UL * this_._internal_former_members_size();
      for (const auto& msg : this_._internal_former_members()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // optional string group_id = 1;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_group_id());
    }
    // optional string display_name = 2;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_display_name());
    }
    // optional string access_token = 4;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_access_token());
    }
    // optional .sync_pb.CollaborationGroupMetadata collaboration_group_metadata = 6;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.collaboration_group_metadata_);
    }
  }
  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 GroupData::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<GroupData*>(&to_msg);
  auto& from = static_cast<const GroupData&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:data_sharing_pb.GroupData)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_members()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_members());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_former_members()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_former_members());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_group_id(from._internal_group_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_display_name(from._internal_display_name());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_internal_set_access_token(from._internal_access_token());
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      ABSL_DCHECK(from._impl_.collaboration_group_metadata_ != nullptr);
      if (_this->_impl_.collaboration_group_metadata_ == nullptr) {
        _this->_impl_.collaboration_group_metadata_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.collaboration_group_metadata_);
      } else {
        _this->_impl_.collaboration_group_metadata_->MergeFrom(*from._impl_.collaboration_group_metadata_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void GroupData::InternalSwap(GroupData* 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_.members_.InternalSwap(&other->_impl_.members_);
  _impl_.former_members_.InternalSwap(&other->_impl_.former_members_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.group_id_, &other->_impl_.group_id_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.display_name_, &other->_impl_.display_name_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.access_token_, &other->_impl_.access_token_, arena);
  swap(_impl_.collaboration_group_metadata_, other->_impl_.collaboration_group_metadata_);
}

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