// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: client/v3beta/dto/group/event/group_event.proto

#include "client/v3beta/dto/group/event/group_event.pb.h"

#include <algorithm>

#include <herogoogle/protobuf/io/coded_stream.h>
#include <herogoogle/protobuf/extension_set.h>
#include <herogoogle/protobuf/wire_format_lite.h>
#include <herogoogle/protobuf/descriptor.h>
#include <herogoogle/protobuf/generated_message_reflection.h>
#include <herogoogle/protobuf/reflection_ops.h>
#include <herogoogle/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)


PROTOBUF_PRAGMA_INIT_SEG
namespace heroim {
namespace client {
namespace v3beta {
namespace dto {
namespace group {
namespace model {
namespace event {
constexpr GroupCreatedEvent::GroupCreatedEvent(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : productid_(&::herogoogle::protobuf::internal::fixed_address_empty_string)
  , user_(nullptr)
  , group_(nullptr){}
struct GroupCreatedEventDefaultTypeInternal {
  constexpr GroupCreatedEventDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~GroupCreatedEventDefaultTypeInternal() {}
  union {
    GroupCreatedEvent _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GroupCreatedEventDefaultTypeInternal _GroupCreatedEvent_default_instance_;
constexpr GroupJoinApplyEvent::GroupJoinApplyEvent(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : productid_(&::herogoogle::protobuf::internal::fixed_address_empty_string)
  , acttoken_(&::herogoogle::protobuf::internal::fixed_address_empty_string)
  , user_(nullptr)
  , group_(nullptr){}
struct GroupJoinApplyEventDefaultTypeInternal {
  constexpr GroupJoinApplyEventDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~GroupJoinApplyEventDefaultTypeInternal() {}
  union {
    GroupJoinApplyEvent _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GroupJoinApplyEventDefaultTypeInternal _GroupJoinApplyEvent_default_instance_;
constexpr GroupJoinInviteEvent::GroupJoinInviteEvent(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : productid_(&::herogoogle::protobuf::internal::fixed_address_empty_string)
  , acttoken_(&::herogoogle::protobuf::internal::fixed_address_empty_string)
  , user_(nullptr)
  , distuser_(nullptr)
  , group_(nullptr){}
struct GroupJoinInviteEventDefaultTypeInternal {
  constexpr GroupJoinInviteEventDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~GroupJoinInviteEventDefaultTypeInternal() {}
  union {
    GroupJoinInviteEvent _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GroupJoinInviteEventDefaultTypeInternal _GroupJoinInviteEvent_default_instance_;
constexpr GroupQuitedEvent::GroupQuitedEvent(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : productid_(&::herogoogle::protobuf::internal::fixed_address_empty_string)
  , user_(nullptr)
  , group_(nullptr){}
struct GroupQuitedEventDefaultTypeInternal {
  constexpr GroupQuitedEventDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~GroupQuitedEventDefaultTypeInternal() {}
  union {
    GroupQuitedEvent _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GroupQuitedEventDefaultTypeInternal _GroupQuitedEvent_default_instance_;
constexpr GroupJoinedEvent::GroupJoinedEvent(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : productid_(&::herogoogle::protobuf::internal::fixed_address_empty_string)
  , user_(nullptr)
  , group_(nullptr)
  , source_(0)
{}
struct GroupJoinedEventDefaultTypeInternal {
  constexpr GroupJoinedEventDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~GroupJoinedEventDefaultTypeInternal() {}
  union {
    GroupJoinedEvent _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GroupJoinedEventDefaultTypeInternal _GroupJoinedEvent_default_instance_;
constexpr GroupMemberRemovedEvent::GroupMemberRemovedEvent(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : productid_(&::herogoogle::protobuf::internal::fixed_address_empty_string)
  , user_(nullptr)
  , distuser_(nullptr)
  , group_(nullptr){}
struct GroupMemberRemovedEventDefaultTypeInternal {
  constexpr GroupMemberRemovedEventDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~GroupMemberRemovedEventDefaultTypeInternal() {}
  union {
    GroupMemberRemovedEvent _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GroupMemberRemovedEventDefaultTypeInternal _GroupMemberRemovedEvent_default_instance_;
constexpr GroupDismissedEvent::GroupDismissedEvent(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : productid_(&::herogoogle::protobuf::internal::fixed_address_empty_string)
  , group_(nullptr)
  , user_(nullptr){}
struct GroupDismissedEventDefaultTypeInternal {
  constexpr GroupDismissedEventDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~GroupDismissedEventDefaultTypeInternal() {}
  union {
    GroupDismissedEvent _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GroupDismissedEventDefaultTypeInternal _GroupDismissedEvent_default_instance_;
constexpr GroupProfileChangedEvent::GroupProfileChangedEvent(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : productid_(&::herogoogle::protobuf::internal::fixed_address_empty_string)
  , group_(nullptr)
  , user_(nullptr){}
struct GroupProfileChangedEventDefaultTypeInternal {
  constexpr GroupProfileChangedEventDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~GroupProfileChangedEventDefaultTypeInternal() {}
  union {
    GroupProfileChangedEvent _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GroupProfileChangedEventDefaultTypeInternal _GroupProfileChangedEvent_default_instance_;
}  // namespace event
}  // namespace model
}  // namespace group
}  // namespace dto
}  // namespace v3beta
}  // namespace client
}  // namespace heroim
static ::herogoogle::protobuf::Metadata file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto[8];
static const ::herogoogle::protobuf::EnumDescriptor* file_level_enum_descriptors_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto[1];
static constexpr ::herogoogle::protobuf::ServiceDescriptor const** file_level_service_descriptors_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto = nullptr;

const ::herogoogle::protobuf::uint32 TableStruct_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupCreatedEvent, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupCreatedEvent, productid_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupCreatedEvent, user_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupCreatedEvent, group_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinApplyEvent, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinApplyEvent, productid_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinApplyEvent, user_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinApplyEvent, group_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinApplyEvent, acttoken_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinInviteEvent, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinInviteEvent, productid_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinInviteEvent, user_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinInviteEvent, distuser_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinInviteEvent, group_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinInviteEvent, acttoken_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupQuitedEvent, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupQuitedEvent, productid_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupQuitedEvent, user_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupQuitedEvent, group_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinedEvent, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinedEvent, productid_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinedEvent, user_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinedEvent, group_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupJoinedEvent, source_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupMemberRemovedEvent, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupMemberRemovedEvent, productid_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupMemberRemovedEvent, user_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupMemberRemovedEvent, distuser_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupMemberRemovedEvent, group_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupDismissedEvent, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupDismissedEvent, productid_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupDismissedEvent, group_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupDismissedEvent, user_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupProfileChangedEvent, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupProfileChangedEvent, productid_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupProfileChangedEvent, group_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::model::event::GroupProfileChangedEvent, user_),
};
static const ::herogoogle::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, -1, sizeof(::heroim::client::v3beta::dto::group::model::event::GroupCreatedEvent)},
  { 9, -1, -1, sizeof(::heroim::client::v3beta::dto::group::model::event::GroupJoinApplyEvent)},
  { 19, -1, -1, sizeof(::heroim::client::v3beta::dto::group::model::event::GroupJoinInviteEvent)},
  { 30, -1, -1, sizeof(::heroim::client::v3beta::dto::group::model::event::GroupQuitedEvent)},
  { 39, -1, -1, sizeof(::heroim::client::v3beta::dto::group::model::event::GroupJoinedEvent)},
  { 49, -1, -1, sizeof(::heroim::client::v3beta::dto::group::model::event::GroupMemberRemovedEvent)},
  { 59, -1, -1, sizeof(::heroim::client::v3beta::dto::group::model::event::GroupDismissedEvent)},
  { 68, -1, -1, sizeof(::heroim::client::v3beta::dto::group::model::event::GroupProfileChangedEvent)},
};

static ::herogoogle::protobuf::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::group::model::event::_GroupCreatedEvent_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::group::model::event::_GroupJoinApplyEvent_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::group::model::event::_GroupJoinInviteEvent_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::group::model::event::_GroupQuitedEvent_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::group::model::event::_GroupJoinedEvent_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::group::model::event::_GroupMemberRemovedEvent_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::group::model::event::_GroupDismissedEvent_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::group::model::event::_GroupProfileChangedEvent_default_instance_),
};
#ifdef _MSC_VER
#  pragma warning(disable : 4125)
#endif  /* _MSC_VER */
const char descriptor_table_protodef_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n/client/v3beta/dto/group/event/group_ev"
  "ent.proto\022*heroim.client.v3beta.dto.grou"
  "p.model.event\032-client/v3beta/dto/user/mo"
  "del/user_model.proto\032/client/v3beta/dto/"
  "group/model/group_model.proto\"\247\001\n\021GroupC"
  "reatedEvent\022\021\n\tproductId\030\001 \001(\t\022=\n\004user\030\002"
  " \001(\0132/.heroim.client.v3beta.dto.user.mod"
  "el.UserSimple\022@\n\005group\030\003 \001(\01321.heroim.cl"
  "ient.v3beta.dto.group.model.GroupSimple\""
  "\273\001\n\023GroupJoinApplyEvent\022\021\n\tproductId\030\001 \001"
  "(\t\022=\n\004user\030\002 \001(\0132/.heroim.client.v3beta."
  "dto.user.model.UserSimple\022@\n\005group\030\003 \001(\013"
  "21.heroim.client.v3beta.dto.group.model."
  "GroupSimple\022\020\n\010actToken\030\004 \001(\t\"\377\001\n\024GroupJ"
  "oinInviteEvent\022\021\n\tproductId\030\001 \001(\t\022=\n\004use"
  "r\030\002 \001(\0132/.heroim.client.v3beta.dto.user."
  "model.UserSimple\022A\n\010distUser\030\003 \001(\0132/.her"
  "oim.client.v3beta.dto.user.model.UserSim"
  "ple\022@\n\005group\030\004 \001(\01321.heroim.client.v3bet"
  "a.dto.group.model.GroupSimple\022\020\n\010actToke"
  "n\030\005 \001(\t\"\246\001\n\020GroupQuitedEvent\022\021\n\tproductI"
  "d\030\001 \001(\t\022=\n\004user\030\002 \001(\0132/.heroim.client.v3"
  "beta.dto.user.model.UserSimple\022@\n\005group\030"
  "\003 \001(\01321.heroim.client.v3beta.dto.group.m"
  "odel.GroupSimple\"\272\002\n\020GroupJoinedEvent\022\021\n"
  "\tproductId\030\001 \001(\t\022=\n\004user\030\002 \001(\0132/.heroim."
  "client.v3beta.dto.user.model.UserSimple\022"
  "@\n\005group\030\003 \001(\01321.heroim.client.v3beta.dt"
  "o.group.model.GroupSimple\022W\n\006source\030\004 \001("
  "\0162G.heroim.client.v3beta.dto.group.model"
  ".event.GroupJoinedEvent.SourceType\"9\n\nSo"
  "urceType\022\n\n\006System\020\000\022\010\n\004Join\020\001\022\t\n\005Apply\020"
  "\002\022\n\n\006Invite\020\003\"\360\001\n\027GroupMemberRemovedEven"
  "t\022\021\n\tproductId\030\001 \001(\t\022=\n\004user\030\002 \001(\0132/.her"
  "oim.client.v3beta.dto.user.model.UserSim"
  "ple\022A\n\010distUser\030\003 \001(\0132/.heroim.client.v3"
  "beta.dto.user.model.UserSimple\022@\n\005group\030"
  "\004 \001(\01321.heroim.client.v3beta.dto.group.m"
  "odel.GroupSimple\"\251\001\n\023GroupDismissedEvent"
  "\022\021\n\tproductId\030\001 \001(\t\022@\n\005group\030\002 \001(\01321.her"
  "oim.client.v3beta.dto.group.model.GroupS"
  "imple\022=\n\004user\030\003 \001(\0132/.heroim.client.v3be"
  "ta.dto.user.model.UserSimple\"\256\001\n\030GroupPr"
  "ofileChangedEvent\022\021\n\tproductId\030\001 \001(\t\022@\n\005"
  "group\030\002 \001(\01321.heroim.client.v3beta.dto.g"
  "roup.model.GroupSimple\022=\n\004user\030\003 \001(\0132/.h"
  "eroim.client.v3beta.dto.user.model.UserS"
  "impleB^\n(com.hero.csdk.api.v3beta.dto.gr"
  "oup.eventP\001Z(heroim/api/client/v3beta/dt"
  "o/group/event\242\002\005IMSdkb\006proto3"
  ;
static const ::herogoogle::protobuf::internal::DescriptorTable*const descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_deps[2] = {
  &::descriptor_table_client_2fv3beta_2fdto_2fgroup_2fmodel_2fgroup_5fmodel_2eproto,
  &::descriptor_table_client_2fv3beta_2fdto_2fuser_2fmodel_2fuser_5fmodel_2eproto,
};
static ::herogoogle::protobuf::internal::once_flag descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_once;
const ::herogoogle::protobuf::internal::DescriptorTable descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto = {
  false, false, 1989, descriptor_table_protodef_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto, "client/v3beta/dto/group/event/group_event.proto", 
  &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_once, descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_deps, 2, 8,
  schemas, file_default_instances, TableStruct_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto::offsets,
  file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto, file_level_enum_descriptors_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto, file_level_service_descriptors_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::herogoogle::protobuf::internal::DescriptorTable* descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_getter() {
  return &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto;
}

// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::herogoogle::protobuf::internal::AddDescriptorsRunner dynamic_init_dummy_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto(&descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto);
namespace heroim {
namespace client {
namespace v3beta {
namespace dto {
namespace group {
namespace model {
namespace event {
const ::herogoogle::protobuf::EnumDescriptor* GroupJoinedEvent_SourceType_descriptor() {
  ::herogoogle::protobuf::internal::AssignDescriptors(&descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto);
  return file_level_enum_descriptors_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto[0];
}
bool GroupJoinedEvent_SourceType_IsValid(int value) {
  switch (value) {
    case 0:
    case 1:
    case 2:
    case 3:
      return true;
    default:
      return false;
  }
}

#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
constexpr GroupJoinedEvent_SourceType GroupJoinedEvent::System;
constexpr GroupJoinedEvent_SourceType GroupJoinedEvent::Join;
constexpr GroupJoinedEvent_SourceType GroupJoinedEvent::Apply;
constexpr GroupJoinedEvent_SourceType GroupJoinedEvent::Invite;
constexpr GroupJoinedEvent_SourceType GroupJoinedEvent::SourceType_MIN;
constexpr GroupJoinedEvent_SourceType GroupJoinedEvent::SourceType_MAX;
constexpr int GroupJoinedEvent::SourceType_ARRAYSIZE;
#endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)

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

class GroupCreatedEvent::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::user::model::UserSimple& user(const GroupCreatedEvent* msg);
  static const ::heroim::client::v3beta::dto::group::model::GroupSimple& group(const GroupCreatedEvent* msg);
};

const ::heroim::client::v3beta::dto::user::model::UserSimple&
GroupCreatedEvent::_Internal::user(const GroupCreatedEvent* msg) {
  return *msg->user_;
}
const ::heroim::client::v3beta::dto::group::model::GroupSimple&
GroupCreatedEvent::_Internal::group(const GroupCreatedEvent* msg) {
  return *msg->group_;
}
void GroupCreatedEvent::clear_user() {
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
}
void GroupCreatedEvent::clear_group() {
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
}
GroupCreatedEvent::GroupCreatedEvent(::herogoogle::protobuf::Arena* arena,
                         bool is_message_owned)
  : ::herogoogle::protobuf::Message(arena, is_message_owned) {
  SharedCtor();
  if (!is_message_owned) {
    RegisterArenaDtor(arena);
  }
  // @@protoc_insertion_point(arena_constructor:heroim.client.v3beta.dto.group.model.event.GroupCreatedEvent)
}
GroupCreatedEvent::GroupCreatedEvent(const GroupCreatedEvent& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_productid().empty()) {
    productid_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_productid(), 
      GetArenaForAllocation());
  }
  if (from._internal_has_user()) {
    user_ = new ::heroim::client::v3beta::dto::user::model::UserSimple(*from.user_);
  } else {
    user_ = nullptr;
  }
  if (from._internal_has_group()) {
    group_ = new ::heroim::client::v3beta::dto::group::model::GroupSimple(*from.group_);
  } else {
    group_ = nullptr;
  }
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.group.model.event.GroupCreatedEvent)
}

void GroupCreatedEvent::SharedCtor() {
productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&user_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&group_) -
    reinterpret_cast<char*>(&user_)) + sizeof(group_));
}

GroupCreatedEvent::~GroupCreatedEvent() {
  // @@protoc_insertion_point(destructor:heroim.client.v3beta.dto.group.model.event.GroupCreatedEvent)
  if (GetArenaForAllocation() != nullptr) return;
  SharedDtor();
  _internal_metadata_.Delete<::herogoogle::protobuf::UnknownFieldSet>();
}

inline void GroupCreatedEvent::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  productid_.DestroyNoArena(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (this != internal_default_instance()) delete user_;
  if (this != internal_default_instance()) delete group_;
}

void GroupCreatedEvent::ArenaDtor(void* object) {
  GroupCreatedEvent* _this = reinterpret_cast< GroupCreatedEvent* >(object);
  (void)_this;
}
void GroupCreatedEvent::RegisterArenaDtor(::herogoogle::protobuf::Arena*) {
}
void GroupCreatedEvent::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void GroupCreatedEvent::Clear() {
// @@protoc_insertion_point(message_clear_start:heroim.client.v3beta.dto.group.model.event.GroupCreatedEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  productid_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* GroupCreatedEvent::_InternalParse(const char* ptr, ::herogoogle::protobuf::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::herogoogle::protobuf::uint32 tag;
    ptr = ::herogoogle::protobuf::internal::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string productId = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          auto str = _internal_mutable_productid();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.group.model.event.GroupCreatedEvent.productId"));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_user(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.group.model.GroupSimple group = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_group(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::herogoogle::protobuf::uint8* GroupCreatedEvent::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.group.model.event.GroupCreatedEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_productid().data(), static_cast<int>(this->_internal_productid().length()),
      ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
      "heroim.client.v3beta.dto.group.model.event.GroupCreatedEvent.productId");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_productid(), target);
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
  if (this->_internal_has_user()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        2, _Internal::user(this), target, stream);
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 3;
  if (this->_internal_has_group()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        3, _Internal::group(this), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::herogoogle::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(::herogoogle::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:heroim.client.v3beta.dto.group.model.event.GroupCreatedEvent)
  return target;
}

size_t GroupCreatedEvent::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.group.model.event.GroupCreatedEvent)
  size_t total_size = 0;

  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::StringSize(
        this->_internal_productid());
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
  if (this->_internal_has_user()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *user_);
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 3;
  if (this->_internal_has_group()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *group_);
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::herogoogle::protobuf::Message::ClassData GroupCreatedEvent::_class_data_ = {
    ::herogoogle::protobuf::Message::CopyWithSizeCheck,
    GroupCreatedEvent::MergeImpl
};
const ::herogoogle::protobuf::Message::ClassData*GroupCreatedEvent::GetClassData() const { return &_class_data_; }

void GroupCreatedEvent::MergeImpl(::herogoogle::protobuf::Message* to,
                      const ::herogoogle::protobuf::Message& from) {
  static_cast<GroupCreatedEvent *>(to)->MergeFrom(
      static_cast<const GroupCreatedEvent &>(from));
}


void GroupCreatedEvent::MergeFrom(const GroupCreatedEvent& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:heroim.client.v3beta.dto.group.model.event.GroupCreatedEvent)
  GOOGLE_DCHECK_NE(&from, this);
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_productid().empty()) {
    _internal_set_productid(from._internal_productid());
  }
  if (from._internal_has_user()) {
    _internal_mutable_user()->::heroim::client::v3beta::dto::user::model::UserSimple::MergeFrom(from._internal_user());
  }
  if (from._internal_has_group()) {
    _internal_mutable_group()->::heroim::client::v3beta::dto::group::model::GroupSimple::MergeFrom(from._internal_group());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

void GroupCreatedEvent::CopyFrom(const GroupCreatedEvent& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:heroim.client.v3beta.dto.group.model.event.GroupCreatedEvent)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool GroupCreatedEvent::IsInitialized() const {
  return true;
}

void GroupCreatedEvent::InternalSwap(GroupCreatedEvent* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::herogoogle::protobuf::internal::ArenaStringPtr::InternalSwap(
      &::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(),
      &productid_, lhs_arena,
      &other->productid_, rhs_arena
  );
  ::herogoogle::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(GroupCreatedEvent, group_)
      + sizeof(GroupCreatedEvent::group_)
      - PROTOBUF_FIELD_OFFSET(GroupCreatedEvent, user_)>(
          reinterpret_cast<char*>(&user_),
          reinterpret_cast<char*>(&other->user_));
}

::herogoogle::protobuf::Metadata GroupCreatedEvent::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto[0]);
}

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

class GroupJoinApplyEvent::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::user::model::UserSimple& user(const GroupJoinApplyEvent* msg);
  static const ::heroim::client::v3beta::dto::group::model::GroupSimple& group(const GroupJoinApplyEvent* msg);
};

const ::heroim::client::v3beta::dto::user::model::UserSimple&
GroupJoinApplyEvent::_Internal::user(const GroupJoinApplyEvent* msg) {
  return *msg->user_;
}
const ::heroim::client::v3beta::dto::group::model::GroupSimple&
GroupJoinApplyEvent::_Internal::group(const GroupJoinApplyEvent* msg) {
  return *msg->group_;
}
void GroupJoinApplyEvent::clear_user() {
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
}
void GroupJoinApplyEvent::clear_group() {
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
}
GroupJoinApplyEvent::GroupJoinApplyEvent(::herogoogle::protobuf::Arena* arena,
                         bool is_message_owned)
  : ::herogoogle::protobuf::Message(arena, is_message_owned) {
  SharedCtor();
  if (!is_message_owned) {
    RegisterArenaDtor(arena);
  }
  // @@protoc_insertion_point(arena_constructor:heroim.client.v3beta.dto.group.model.event.GroupJoinApplyEvent)
}
GroupJoinApplyEvent::GroupJoinApplyEvent(const GroupJoinApplyEvent& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_productid().empty()) {
    productid_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_productid(), 
      GetArenaForAllocation());
  }
  acttoken_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_acttoken().empty()) {
    acttoken_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_acttoken(), 
      GetArenaForAllocation());
  }
  if (from._internal_has_user()) {
    user_ = new ::heroim::client::v3beta::dto::user::model::UserSimple(*from.user_);
  } else {
    user_ = nullptr;
  }
  if (from._internal_has_group()) {
    group_ = new ::heroim::client::v3beta::dto::group::model::GroupSimple(*from.group_);
  } else {
    group_ = nullptr;
  }
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.group.model.event.GroupJoinApplyEvent)
}

void GroupJoinApplyEvent::SharedCtor() {
productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
acttoken_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&user_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&group_) -
    reinterpret_cast<char*>(&user_)) + sizeof(group_));
}

GroupJoinApplyEvent::~GroupJoinApplyEvent() {
  // @@protoc_insertion_point(destructor:heroim.client.v3beta.dto.group.model.event.GroupJoinApplyEvent)
  if (GetArenaForAllocation() != nullptr) return;
  SharedDtor();
  _internal_metadata_.Delete<::herogoogle::protobuf::UnknownFieldSet>();
}

inline void GroupJoinApplyEvent::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  productid_.DestroyNoArena(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  acttoken_.DestroyNoArena(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (this != internal_default_instance()) delete user_;
  if (this != internal_default_instance()) delete group_;
}

void GroupJoinApplyEvent::ArenaDtor(void* object) {
  GroupJoinApplyEvent* _this = reinterpret_cast< GroupJoinApplyEvent* >(object);
  (void)_this;
}
void GroupJoinApplyEvent::RegisterArenaDtor(::herogoogle::protobuf::Arena*) {
}
void GroupJoinApplyEvent::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void GroupJoinApplyEvent::Clear() {
// @@protoc_insertion_point(message_clear_start:heroim.client.v3beta.dto.group.model.event.GroupJoinApplyEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  productid_.ClearToEmpty();
  acttoken_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* GroupJoinApplyEvent::_InternalParse(const char* ptr, ::herogoogle::protobuf::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::herogoogle::protobuf::uint32 tag;
    ptr = ::herogoogle::protobuf::internal::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string productId = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          auto str = _internal_mutable_productid();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.group.model.event.GroupJoinApplyEvent.productId"));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_user(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.group.model.GroupSimple group = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_group(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // string actToken = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 34)) {
          auto str = _internal_mutable_acttoken();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.group.model.event.GroupJoinApplyEvent.actToken"));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::herogoogle::protobuf::uint8* GroupJoinApplyEvent::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.group.model.event.GroupJoinApplyEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_productid().data(), static_cast<int>(this->_internal_productid().length()),
      ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
      "heroim.client.v3beta.dto.group.model.event.GroupJoinApplyEvent.productId");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_productid(), target);
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
  if (this->_internal_has_user()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        2, _Internal::user(this), target, stream);
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 3;
  if (this->_internal_has_group()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        3, _Internal::group(this), target, stream);
  }

  // string actToken = 4;
  if (!this->_internal_acttoken().empty()) {
    ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_acttoken().data(), static_cast<int>(this->_internal_acttoken().length()),
      ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
      "heroim.client.v3beta.dto.group.model.event.GroupJoinApplyEvent.actToken");
    target = stream->WriteStringMaybeAliased(
        4, this->_internal_acttoken(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::herogoogle::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(::herogoogle::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:heroim.client.v3beta.dto.group.model.event.GroupJoinApplyEvent)
  return target;
}

size_t GroupJoinApplyEvent::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.group.model.event.GroupJoinApplyEvent)
  size_t total_size = 0;

  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::StringSize(
        this->_internal_productid());
  }

  // string actToken = 4;
  if (!this->_internal_acttoken().empty()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::StringSize(
        this->_internal_acttoken());
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
  if (this->_internal_has_user()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *user_);
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 3;
  if (this->_internal_has_group()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *group_);
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::herogoogle::protobuf::Message::ClassData GroupJoinApplyEvent::_class_data_ = {
    ::herogoogle::protobuf::Message::CopyWithSizeCheck,
    GroupJoinApplyEvent::MergeImpl
};
const ::herogoogle::protobuf::Message::ClassData*GroupJoinApplyEvent::GetClassData() const { return &_class_data_; }

void GroupJoinApplyEvent::MergeImpl(::herogoogle::protobuf::Message* to,
                      const ::herogoogle::protobuf::Message& from) {
  static_cast<GroupJoinApplyEvent *>(to)->MergeFrom(
      static_cast<const GroupJoinApplyEvent &>(from));
}


void GroupJoinApplyEvent::MergeFrom(const GroupJoinApplyEvent& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:heroim.client.v3beta.dto.group.model.event.GroupJoinApplyEvent)
  GOOGLE_DCHECK_NE(&from, this);
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_productid().empty()) {
    _internal_set_productid(from._internal_productid());
  }
  if (!from._internal_acttoken().empty()) {
    _internal_set_acttoken(from._internal_acttoken());
  }
  if (from._internal_has_user()) {
    _internal_mutable_user()->::heroim::client::v3beta::dto::user::model::UserSimple::MergeFrom(from._internal_user());
  }
  if (from._internal_has_group()) {
    _internal_mutable_group()->::heroim::client::v3beta::dto::group::model::GroupSimple::MergeFrom(from._internal_group());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

void GroupJoinApplyEvent::CopyFrom(const GroupJoinApplyEvent& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:heroim.client.v3beta.dto.group.model.event.GroupJoinApplyEvent)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool GroupJoinApplyEvent::IsInitialized() const {
  return true;
}

void GroupJoinApplyEvent::InternalSwap(GroupJoinApplyEvent* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::herogoogle::protobuf::internal::ArenaStringPtr::InternalSwap(
      &::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(),
      &productid_, lhs_arena,
      &other->productid_, rhs_arena
  );
  ::herogoogle::protobuf::internal::ArenaStringPtr::InternalSwap(
      &::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(),
      &acttoken_, lhs_arena,
      &other->acttoken_, rhs_arena
  );
  ::herogoogle::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(GroupJoinApplyEvent, group_)
      + sizeof(GroupJoinApplyEvent::group_)
      - PROTOBUF_FIELD_OFFSET(GroupJoinApplyEvent, user_)>(
          reinterpret_cast<char*>(&user_),
          reinterpret_cast<char*>(&other->user_));
}

::herogoogle::protobuf::Metadata GroupJoinApplyEvent::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto[1]);
}

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

class GroupJoinInviteEvent::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::user::model::UserSimple& user(const GroupJoinInviteEvent* msg);
  static const ::heroim::client::v3beta::dto::user::model::UserSimple& distuser(const GroupJoinInviteEvent* msg);
  static const ::heroim::client::v3beta::dto::group::model::GroupSimple& group(const GroupJoinInviteEvent* msg);
};

const ::heroim::client::v3beta::dto::user::model::UserSimple&
GroupJoinInviteEvent::_Internal::user(const GroupJoinInviteEvent* msg) {
  return *msg->user_;
}
const ::heroim::client::v3beta::dto::user::model::UserSimple&
GroupJoinInviteEvent::_Internal::distuser(const GroupJoinInviteEvent* msg) {
  return *msg->distuser_;
}
const ::heroim::client::v3beta::dto::group::model::GroupSimple&
GroupJoinInviteEvent::_Internal::group(const GroupJoinInviteEvent* msg) {
  return *msg->group_;
}
void GroupJoinInviteEvent::clear_user() {
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
}
void GroupJoinInviteEvent::clear_distuser() {
  if (GetArenaForAllocation() == nullptr && distuser_ != nullptr) {
    delete distuser_;
  }
  distuser_ = nullptr;
}
void GroupJoinInviteEvent::clear_group() {
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
}
GroupJoinInviteEvent::GroupJoinInviteEvent(::herogoogle::protobuf::Arena* arena,
                         bool is_message_owned)
  : ::herogoogle::protobuf::Message(arena, is_message_owned) {
  SharedCtor();
  if (!is_message_owned) {
    RegisterArenaDtor(arena);
  }
  // @@protoc_insertion_point(arena_constructor:heroim.client.v3beta.dto.group.model.event.GroupJoinInviteEvent)
}
GroupJoinInviteEvent::GroupJoinInviteEvent(const GroupJoinInviteEvent& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_productid().empty()) {
    productid_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_productid(), 
      GetArenaForAllocation());
  }
  acttoken_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_acttoken().empty()) {
    acttoken_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_acttoken(), 
      GetArenaForAllocation());
  }
  if (from._internal_has_user()) {
    user_ = new ::heroim::client::v3beta::dto::user::model::UserSimple(*from.user_);
  } else {
    user_ = nullptr;
  }
  if (from._internal_has_distuser()) {
    distuser_ = new ::heroim::client::v3beta::dto::user::model::UserSimple(*from.distuser_);
  } else {
    distuser_ = nullptr;
  }
  if (from._internal_has_group()) {
    group_ = new ::heroim::client::v3beta::dto::group::model::GroupSimple(*from.group_);
  } else {
    group_ = nullptr;
  }
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.group.model.event.GroupJoinInviteEvent)
}

void GroupJoinInviteEvent::SharedCtor() {
productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
acttoken_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&user_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&group_) -
    reinterpret_cast<char*>(&user_)) + sizeof(group_));
}

GroupJoinInviteEvent::~GroupJoinInviteEvent() {
  // @@protoc_insertion_point(destructor:heroim.client.v3beta.dto.group.model.event.GroupJoinInviteEvent)
  if (GetArenaForAllocation() != nullptr) return;
  SharedDtor();
  _internal_metadata_.Delete<::herogoogle::protobuf::UnknownFieldSet>();
}

inline void GroupJoinInviteEvent::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  productid_.DestroyNoArena(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  acttoken_.DestroyNoArena(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (this != internal_default_instance()) delete user_;
  if (this != internal_default_instance()) delete distuser_;
  if (this != internal_default_instance()) delete group_;
}

void GroupJoinInviteEvent::ArenaDtor(void* object) {
  GroupJoinInviteEvent* _this = reinterpret_cast< GroupJoinInviteEvent* >(object);
  (void)_this;
}
void GroupJoinInviteEvent::RegisterArenaDtor(::herogoogle::protobuf::Arena*) {
}
void GroupJoinInviteEvent::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void GroupJoinInviteEvent::Clear() {
// @@protoc_insertion_point(message_clear_start:heroim.client.v3beta.dto.group.model.event.GroupJoinInviteEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  productid_.ClearToEmpty();
  acttoken_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
  if (GetArenaForAllocation() == nullptr && distuser_ != nullptr) {
    delete distuser_;
  }
  distuser_ = nullptr;
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* GroupJoinInviteEvent::_InternalParse(const char* ptr, ::herogoogle::protobuf::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::herogoogle::protobuf::uint32 tag;
    ptr = ::herogoogle::protobuf::internal::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string productId = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          auto str = _internal_mutable_productid();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.group.model.event.GroupJoinInviteEvent.productId"));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_user(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.user.model.UserSimple distUser = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_distuser(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.group.model.GroupSimple group = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 34)) {
          ptr = ctx->ParseMessage(_internal_mutable_group(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // string actToken = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 42)) {
          auto str = _internal_mutable_acttoken();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.group.model.event.GroupJoinInviteEvent.actToken"));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::herogoogle::protobuf::uint8* GroupJoinInviteEvent::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.group.model.event.GroupJoinInviteEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_productid().data(), static_cast<int>(this->_internal_productid().length()),
      ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
      "heroim.client.v3beta.dto.group.model.event.GroupJoinInviteEvent.productId");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_productid(), target);
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
  if (this->_internal_has_user()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        2, _Internal::user(this), target, stream);
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple distUser = 3;
  if (this->_internal_has_distuser()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        3, _Internal::distuser(this), target, stream);
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 4;
  if (this->_internal_has_group()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        4, _Internal::group(this), target, stream);
  }

  // string actToken = 5;
  if (!this->_internal_acttoken().empty()) {
    ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_acttoken().data(), static_cast<int>(this->_internal_acttoken().length()),
      ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
      "heroim.client.v3beta.dto.group.model.event.GroupJoinInviteEvent.actToken");
    target = stream->WriteStringMaybeAliased(
        5, this->_internal_acttoken(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::herogoogle::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(::herogoogle::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:heroim.client.v3beta.dto.group.model.event.GroupJoinInviteEvent)
  return target;
}

size_t GroupJoinInviteEvent::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.group.model.event.GroupJoinInviteEvent)
  size_t total_size = 0;

  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::StringSize(
        this->_internal_productid());
  }

  // string actToken = 5;
  if (!this->_internal_acttoken().empty()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::StringSize(
        this->_internal_acttoken());
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
  if (this->_internal_has_user()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *user_);
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple distUser = 3;
  if (this->_internal_has_distuser()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *distuser_);
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 4;
  if (this->_internal_has_group()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *group_);
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::herogoogle::protobuf::Message::ClassData GroupJoinInviteEvent::_class_data_ = {
    ::herogoogle::protobuf::Message::CopyWithSizeCheck,
    GroupJoinInviteEvent::MergeImpl
};
const ::herogoogle::protobuf::Message::ClassData*GroupJoinInviteEvent::GetClassData() const { return &_class_data_; }

void GroupJoinInviteEvent::MergeImpl(::herogoogle::protobuf::Message* to,
                      const ::herogoogle::protobuf::Message& from) {
  static_cast<GroupJoinInviteEvent *>(to)->MergeFrom(
      static_cast<const GroupJoinInviteEvent &>(from));
}


void GroupJoinInviteEvent::MergeFrom(const GroupJoinInviteEvent& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:heroim.client.v3beta.dto.group.model.event.GroupJoinInviteEvent)
  GOOGLE_DCHECK_NE(&from, this);
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_productid().empty()) {
    _internal_set_productid(from._internal_productid());
  }
  if (!from._internal_acttoken().empty()) {
    _internal_set_acttoken(from._internal_acttoken());
  }
  if (from._internal_has_user()) {
    _internal_mutable_user()->::heroim::client::v3beta::dto::user::model::UserSimple::MergeFrom(from._internal_user());
  }
  if (from._internal_has_distuser()) {
    _internal_mutable_distuser()->::heroim::client::v3beta::dto::user::model::UserSimple::MergeFrom(from._internal_distuser());
  }
  if (from._internal_has_group()) {
    _internal_mutable_group()->::heroim::client::v3beta::dto::group::model::GroupSimple::MergeFrom(from._internal_group());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

void GroupJoinInviteEvent::CopyFrom(const GroupJoinInviteEvent& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:heroim.client.v3beta.dto.group.model.event.GroupJoinInviteEvent)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool GroupJoinInviteEvent::IsInitialized() const {
  return true;
}

void GroupJoinInviteEvent::InternalSwap(GroupJoinInviteEvent* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::herogoogle::protobuf::internal::ArenaStringPtr::InternalSwap(
      &::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(),
      &productid_, lhs_arena,
      &other->productid_, rhs_arena
  );
  ::herogoogle::protobuf::internal::ArenaStringPtr::InternalSwap(
      &::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(),
      &acttoken_, lhs_arena,
      &other->acttoken_, rhs_arena
  );
  ::herogoogle::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(GroupJoinInviteEvent, group_)
      + sizeof(GroupJoinInviteEvent::group_)
      - PROTOBUF_FIELD_OFFSET(GroupJoinInviteEvent, user_)>(
          reinterpret_cast<char*>(&user_),
          reinterpret_cast<char*>(&other->user_));
}

::herogoogle::protobuf::Metadata GroupJoinInviteEvent::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto[2]);
}

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

class GroupQuitedEvent::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::user::model::UserSimple& user(const GroupQuitedEvent* msg);
  static const ::heroim::client::v3beta::dto::group::model::GroupSimple& group(const GroupQuitedEvent* msg);
};

const ::heroim::client::v3beta::dto::user::model::UserSimple&
GroupQuitedEvent::_Internal::user(const GroupQuitedEvent* msg) {
  return *msg->user_;
}
const ::heroim::client::v3beta::dto::group::model::GroupSimple&
GroupQuitedEvent::_Internal::group(const GroupQuitedEvent* msg) {
  return *msg->group_;
}
void GroupQuitedEvent::clear_user() {
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
}
void GroupQuitedEvent::clear_group() {
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
}
GroupQuitedEvent::GroupQuitedEvent(::herogoogle::protobuf::Arena* arena,
                         bool is_message_owned)
  : ::herogoogle::protobuf::Message(arena, is_message_owned) {
  SharedCtor();
  if (!is_message_owned) {
    RegisterArenaDtor(arena);
  }
  // @@protoc_insertion_point(arena_constructor:heroim.client.v3beta.dto.group.model.event.GroupQuitedEvent)
}
GroupQuitedEvent::GroupQuitedEvent(const GroupQuitedEvent& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_productid().empty()) {
    productid_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_productid(), 
      GetArenaForAllocation());
  }
  if (from._internal_has_user()) {
    user_ = new ::heroim::client::v3beta::dto::user::model::UserSimple(*from.user_);
  } else {
    user_ = nullptr;
  }
  if (from._internal_has_group()) {
    group_ = new ::heroim::client::v3beta::dto::group::model::GroupSimple(*from.group_);
  } else {
    group_ = nullptr;
  }
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.group.model.event.GroupQuitedEvent)
}

void GroupQuitedEvent::SharedCtor() {
productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&user_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&group_) -
    reinterpret_cast<char*>(&user_)) + sizeof(group_));
}

GroupQuitedEvent::~GroupQuitedEvent() {
  // @@protoc_insertion_point(destructor:heroim.client.v3beta.dto.group.model.event.GroupQuitedEvent)
  if (GetArenaForAllocation() != nullptr) return;
  SharedDtor();
  _internal_metadata_.Delete<::herogoogle::protobuf::UnknownFieldSet>();
}

inline void GroupQuitedEvent::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  productid_.DestroyNoArena(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (this != internal_default_instance()) delete user_;
  if (this != internal_default_instance()) delete group_;
}

void GroupQuitedEvent::ArenaDtor(void* object) {
  GroupQuitedEvent* _this = reinterpret_cast< GroupQuitedEvent* >(object);
  (void)_this;
}
void GroupQuitedEvent::RegisterArenaDtor(::herogoogle::protobuf::Arena*) {
}
void GroupQuitedEvent::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void GroupQuitedEvent::Clear() {
// @@protoc_insertion_point(message_clear_start:heroim.client.v3beta.dto.group.model.event.GroupQuitedEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  productid_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* GroupQuitedEvent::_InternalParse(const char* ptr, ::herogoogle::protobuf::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::herogoogle::protobuf::uint32 tag;
    ptr = ::herogoogle::protobuf::internal::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string productId = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          auto str = _internal_mutable_productid();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.group.model.event.GroupQuitedEvent.productId"));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_user(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.group.model.GroupSimple group = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_group(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::herogoogle::protobuf::uint8* GroupQuitedEvent::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.group.model.event.GroupQuitedEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_productid().data(), static_cast<int>(this->_internal_productid().length()),
      ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
      "heroim.client.v3beta.dto.group.model.event.GroupQuitedEvent.productId");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_productid(), target);
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
  if (this->_internal_has_user()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        2, _Internal::user(this), target, stream);
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 3;
  if (this->_internal_has_group()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        3, _Internal::group(this), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::herogoogle::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(::herogoogle::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:heroim.client.v3beta.dto.group.model.event.GroupQuitedEvent)
  return target;
}

size_t GroupQuitedEvent::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.group.model.event.GroupQuitedEvent)
  size_t total_size = 0;

  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::StringSize(
        this->_internal_productid());
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
  if (this->_internal_has_user()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *user_);
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 3;
  if (this->_internal_has_group()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *group_);
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::herogoogle::protobuf::Message::ClassData GroupQuitedEvent::_class_data_ = {
    ::herogoogle::protobuf::Message::CopyWithSizeCheck,
    GroupQuitedEvent::MergeImpl
};
const ::herogoogle::protobuf::Message::ClassData*GroupQuitedEvent::GetClassData() const { return &_class_data_; }

void GroupQuitedEvent::MergeImpl(::herogoogle::protobuf::Message* to,
                      const ::herogoogle::protobuf::Message& from) {
  static_cast<GroupQuitedEvent *>(to)->MergeFrom(
      static_cast<const GroupQuitedEvent &>(from));
}


void GroupQuitedEvent::MergeFrom(const GroupQuitedEvent& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:heroim.client.v3beta.dto.group.model.event.GroupQuitedEvent)
  GOOGLE_DCHECK_NE(&from, this);
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_productid().empty()) {
    _internal_set_productid(from._internal_productid());
  }
  if (from._internal_has_user()) {
    _internal_mutable_user()->::heroim::client::v3beta::dto::user::model::UserSimple::MergeFrom(from._internal_user());
  }
  if (from._internal_has_group()) {
    _internal_mutable_group()->::heroim::client::v3beta::dto::group::model::GroupSimple::MergeFrom(from._internal_group());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

void GroupQuitedEvent::CopyFrom(const GroupQuitedEvent& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:heroim.client.v3beta.dto.group.model.event.GroupQuitedEvent)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool GroupQuitedEvent::IsInitialized() const {
  return true;
}

void GroupQuitedEvent::InternalSwap(GroupQuitedEvent* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::herogoogle::protobuf::internal::ArenaStringPtr::InternalSwap(
      &::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(),
      &productid_, lhs_arena,
      &other->productid_, rhs_arena
  );
  ::herogoogle::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(GroupQuitedEvent, group_)
      + sizeof(GroupQuitedEvent::group_)
      - PROTOBUF_FIELD_OFFSET(GroupQuitedEvent, user_)>(
          reinterpret_cast<char*>(&user_),
          reinterpret_cast<char*>(&other->user_));
}

::herogoogle::protobuf::Metadata GroupQuitedEvent::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto[3]);
}

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

class GroupJoinedEvent::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::user::model::UserSimple& user(const GroupJoinedEvent* msg);
  static const ::heroim::client::v3beta::dto::group::model::GroupSimple& group(const GroupJoinedEvent* msg);
};

const ::heroim::client::v3beta::dto::user::model::UserSimple&
GroupJoinedEvent::_Internal::user(const GroupJoinedEvent* msg) {
  return *msg->user_;
}
const ::heroim::client::v3beta::dto::group::model::GroupSimple&
GroupJoinedEvent::_Internal::group(const GroupJoinedEvent* msg) {
  return *msg->group_;
}
void GroupJoinedEvent::clear_user() {
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
}
void GroupJoinedEvent::clear_group() {
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
}
GroupJoinedEvent::GroupJoinedEvent(::herogoogle::protobuf::Arena* arena,
                         bool is_message_owned)
  : ::herogoogle::protobuf::Message(arena, is_message_owned) {
  SharedCtor();
  if (!is_message_owned) {
    RegisterArenaDtor(arena);
  }
  // @@protoc_insertion_point(arena_constructor:heroim.client.v3beta.dto.group.model.event.GroupJoinedEvent)
}
GroupJoinedEvent::GroupJoinedEvent(const GroupJoinedEvent& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_productid().empty()) {
    productid_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_productid(), 
      GetArenaForAllocation());
  }
  if (from._internal_has_user()) {
    user_ = new ::heroim::client::v3beta::dto::user::model::UserSimple(*from.user_);
  } else {
    user_ = nullptr;
  }
  if (from._internal_has_group()) {
    group_ = new ::heroim::client::v3beta::dto::group::model::GroupSimple(*from.group_);
  } else {
    group_ = nullptr;
  }
  source_ = from.source_;
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.group.model.event.GroupJoinedEvent)
}

void GroupJoinedEvent::SharedCtor() {
productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&user_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&source_) -
    reinterpret_cast<char*>(&user_)) + sizeof(source_));
}

GroupJoinedEvent::~GroupJoinedEvent() {
  // @@protoc_insertion_point(destructor:heroim.client.v3beta.dto.group.model.event.GroupJoinedEvent)
  if (GetArenaForAllocation() != nullptr) return;
  SharedDtor();
  _internal_metadata_.Delete<::herogoogle::protobuf::UnknownFieldSet>();
}

inline void GroupJoinedEvent::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  productid_.DestroyNoArena(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (this != internal_default_instance()) delete user_;
  if (this != internal_default_instance()) delete group_;
}

void GroupJoinedEvent::ArenaDtor(void* object) {
  GroupJoinedEvent* _this = reinterpret_cast< GroupJoinedEvent* >(object);
  (void)_this;
}
void GroupJoinedEvent::RegisterArenaDtor(::herogoogle::protobuf::Arena*) {
}
void GroupJoinedEvent::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void GroupJoinedEvent::Clear() {
// @@protoc_insertion_point(message_clear_start:heroim.client.v3beta.dto.group.model.event.GroupJoinedEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  productid_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
  source_ = 0;
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* GroupJoinedEvent::_InternalParse(const char* ptr, ::herogoogle::protobuf::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::herogoogle::protobuf::uint32 tag;
    ptr = ::herogoogle::protobuf::internal::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string productId = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          auto str = _internal_mutable_productid();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.group.model.event.GroupJoinedEvent.productId"));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_user(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.group.model.GroupSimple group = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_group(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.group.model.event.GroupJoinedEvent.SourceType source = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 32)) {
          ::herogoogle::protobuf::uint64 val = ::herogoogle::protobuf::internal::ReadVarint64(&ptr);
          CHK_(ptr);
          _internal_set_source(static_cast<::heroim::client::v3beta::dto::group::model::event::GroupJoinedEvent_SourceType>(val));
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::herogoogle::protobuf::uint8* GroupJoinedEvent::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.group.model.event.GroupJoinedEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_productid().data(), static_cast<int>(this->_internal_productid().length()),
      ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
      "heroim.client.v3beta.dto.group.model.event.GroupJoinedEvent.productId");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_productid(), target);
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
  if (this->_internal_has_user()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        2, _Internal::user(this), target, stream);
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 3;
  if (this->_internal_has_group()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        3, _Internal::group(this), target, stream);
  }

  // .heroim.client.v3beta.dto.group.model.event.GroupJoinedEvent.SourceType source = 4;
  if (this->_internal_source() != 0) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::WriteEnumToArray(
      4, this->_internal_source(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::herogoogle::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(::herogoogle::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:heroim.client.v3beta.dto.group.model.event.GroupJoinedEvent)
  return target;
}

size_t GroupJoinedEvent::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.group.model.event.GroupJoinedEvent)
  size_t total_size = 0;

  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::StringSize(
        this->_internal_productid());
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
  if (this->_internal_has_user()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *user_);
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 3;
  if (this->_internal_has_group()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *group_);
  }

  // .heroim.client.v3beta.dto.group.model.event.GroupJoinedEvent.SourceType source = 4;
  if (this->_internal_source() != 0) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::EnumSize(this->_internal_source());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::herogoogle::protobuf::Message::ClassData GroupJoinedEvent::_class_data_ = {
    ::herogoogle::protobuf::Message::CopyWithSizeCheck,
    GroupJoinedEvent::MergeImpl
};
const ::herogoogle::protobuf::Message::ClassData*GroupJoinedEvent::GetClassData() const { return &_class_data_; }

void GroupJoinedEvent::MergeImpl(::herogoogle::protobuf::Message* to,
                      const ::herogoogle::protobuf::Message& from) {
  static_cast<GroupJoinedEvent *>(to)->MergeFrom(
      static_cast<const GroupJoinedEvent &>(from));
}


void GroupJoinedEvent::MergeFrom(const GroupJoinedEvent& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:heroim.client.v3beta.dto.group.model.event.GroupJoinedEvent)
  GOOGLE_DCHECK_NE(&from, this);
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_productid().empty()) {
    _internal_set_productid(from._internal_productid());
  }
  if (from._internal_has_user()) {
    _internal_mutable_user()->::heroim::client::v3beta::dto::user::model::UserSimple::MergeFrom(from._internal_user());
  }
  if (from._internal_has_group()) {
    _internal_mutable_group()->::heroim::client::v3beta::dto::group::model::GroupSimple::MergeFrom(from._internal_group());
  }
  if (from._internal_source() != 0) {
    _internal_set_source(from._internal_source());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

void GroupJoinedEvent::CopyFrom(const GroupJoinedEvent& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:heroim.client.v3beta.dto.group.model.event.GroupJoinedEvent)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool GroupJoinedEvent::IsInitialized() const {
  return true;
}

void GroupJoinedEvent::InternalSwap(GroupJoinedEvent* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::herogoogle::protobuf::internal::ArenaStringPtr::InternalSwap(
      &::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(),
      &productid_, lhs_arena,
      &other->productid_, rhs_arena
  );
  ::herogoogle::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(GroupJoinedEvent, source_)
      + sizeof(GroupJoinedEvent::source_)
      - PROTOBUF_FIELD_OFFSET(GroupJoinedEvent, user_)>(
          reinterpret_cast<char*>(&user_),
          reinterpret_cast<char*>(&other->user_));
}

::herogoogle::protobuf::Metadata GroupJoinedEvent::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto[4]);
}

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

class GroupMemberRemovedEvent::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::user::model::UserSimple& user(const GroupMemberRemovedEvent* msg);
  static const ::heroim::client::v3beta::dto::user::model::UserSimple& distuser(const GroupMemberRemovedEvent* msg);
  static const ::heroim::client::v3beta::dto::group::model::GroupSimple& group(const GroupMemberRemovedEvent* msg);
};

const ::heroim::client::v3beta::dto::user::model::UserSimple&
GroupMemberRemovedEvent::_Internal::user(const GroupMemberRemovedEvent* msg) {
  return *msg->user_;
}
const ::heroim::client::v3beta::dto::user::model::UserSimple&
GroupMemberRemovedEvent::_Internal::distuser(const GroupMemberRemovedEvent* msg) {
  return *msg->distuser_;
}
const ::heroim::client::v3beta::dto::group::model::GroupSimple&
GroupMemberRemovedEvent::_Internal::group(const GroupMemberRemovedEvent* msg) {
  return *msg->group_;
}
void GroupMemberRemovedEvent::clear_user() {
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
}
void GroupMemberRemovedEvent::clear_distuser() {
  if (GetArenaForAllocation() == nullptr && distuser_ != nullptr) {
    delete distuser_;
  }
  distuser_ = nullptr;
}
void GroupMemberRemovedEvent::clear_group() {
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
}
GroupMemberRemovedEvent::GroupMemberRemovedEvent(::herogoogle::protobuf::Arena* arena,
                         bool is_message_owned)
  : ::herogoogle::protobuf::Message(arena, is_message_owned) {
  SharedCtor();
  if (!is_message_owned) {
    RegisterArenaDtor(arena);
  }
  // @@protoc_insertion_point(arena_constructor:heroim.client.v3beta.dto.group.model.event.GroupMemberRemovedEvent)
}
GroupMemberRemovedEvent::GroupMemberRemovedEvent(const GroupMemberRemovedEvent& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_productid().empty()) {
    productid_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_productid(), 
      GetArenaForAllocation());
  }
  if (from._internal_has_user()) {
    user_ = new ::heroim::client::v3beta::dto::user::model::UserSimple(*from.user_);
  } else {
    user_ = nullptr;
  }
  if (from._internal_has_distuser()) {
    distuser_ = new ::heroim::client::v3beta::dto::user::model::UserSimple(*from.distuser_);
  } else {
    distuser_ = nullptr;
  }
  if (from._internal_has_group()) {
    group_ = new ::heroim::client::v3beta::dto::group::model::GroupSimple(*from.group_);
  } else {
    group_ = nullptr;
  }
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.group.model.event.GroupMemberRemovedEvent)
}

void GroupMemberRemovedEvent::SharedCtor() {
productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&user_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&group_) -
    reinterpret_cast<char*>(&user_)) + sizeof(group_));
}

GroupMemberRemovedEvent::~GroupMemberRemovedEvent() {
  // @@protoc_insertion_point(destructor:heroim.client.v3beta.dto.group.model.event.GroupMemberRemovedEvent)
  if (GetArenaForAllocation() != nullptr) return;
  SharedDtor();
  _internal_metadata_.Delete<::herogoogle::protobuf::UnknownFieldSet>();
}

inline void GroupMemberRemovedEvent::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  productid_.DestroyNoArena(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (this != internal_default_instance()) delete user_;
  if (this != internal_default_instance()) delete distuser_;
  if (this != internal_default_instance()) delete group_;
}

void GroupMemberRemovedEvent::ArenaDtor(void* object) {
  GroupMemberRemovedEvent* _this = reinterpret_cast< GroupMemberRemovedEvent* >(object);
  (void)_this;
}
void GroupMemberRemovedEvent::RegisterArenaDtor(::herogoogle::protobuf::Arena*) {
}
void GroupMemberRemovedEvent::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void GroupMemberRemovedEvent::Clear() {
// @@protoc_insertion_point(message_clear_start:heroim.client.v3beta.dto.group.model.event.GroupMemberRemovedEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  productid_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
  if (GetArenaForAllocation() == nullptr && distuser_ != nullptr) {
    delete distuser_;
  }
  distuser_ = nullptr;
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* GroupMemberRemovedEvent::_InternalParse(const char* ptr, ::herogoogle::protobuf::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::herogoogle::protobuf::uint32 tag;
    ptr = ::herogoogle::protobuf::internal::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string productId = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          auto str = _internal_mutable_productid();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.group.model.event.GroupMemberRemovedEvent.productId"));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_user(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.user.model.UserSimple distUser = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_distuser(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.group.model.GroupSimple group = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 34)) {
          ptr = ctx->ParseMessage(_internal_mutable_group(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::herogoogle::protobuf::uint8* GroupMemberRemovedEvent::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.group.model.event.GroupMemberRemovedEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_productid().data(), static_cast<int>(this->_internal_productid().length()),
      ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
      "heroim.client.v3beta.dto.group.model.event.GroupMemberRemovedEvent.productId");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_productid(), target);
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
  if (this->_internal_has_user()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        2, _Internal::user(this), target, stream);
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple distUser = 3;
  if (this->_internal_has_distuser()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        3, _Internal::distuser(this), target, stream);
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 4;
  if (this->_internal_has_group()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        4, _Internal::group(this), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::herogoogle::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(::herogoogle::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:heroim.client.v3beta.dto.group.model.event.GroupMemberRemovedEvent)
  return target;
}

size_t GroupMemberRemovedEvent::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.group.model.event.GroupMemberRemovedEvent)
  size_t total_size = 0;

  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::StringSize(
        this->_internal_productid());
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 2;
  if (this->_internal_has_user()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *user_);
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple distUser = 3;
  if (this->_internal_has_distuser()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *distuser_);
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 4;
  if (this->_internal_has_group()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *group_);
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::herogoogle::protobuf::Message::ClassData GroupMemberRemovedEvent::_class_data_ = {
    ::herogoogle::protobuf::Message::CopyWithSizeCheck,
    GroupMemberRemovedEvent::MergeImpl
};
const ::herogoogle::protobuf::Message::ClassData*GroupMemberRemovedEvent::GetClassData() const { return &_class_data_; }

void GroupMemberRemovedEvent::MergeImpl(::herogoogle::protobuf::Message* to,
                      const ::herogoogle::protobuf::Message& from) {
  static_cast<GroupMemberRemovedEvent *>(to)->MergeFrom(
      static_cast<const GroupMemberRemovedEvent &>(from));
}


void GroupMemberRemovedEvent::MergeFrom(const GroupMemberRemovedEvent& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:heroim.client.v3beta.dto.group.model.event.GroupMemberRemovedEvent)
  GOOGLE_DCHECK_NE(&from, this);
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_productid().empty()) {
    _internal_set_productid(from._internal_productid());
  }
  if (from._internal_has_user()) {
    _internal_mutable_user()->::heroim::client::v3beta::dto::user::model::UserSimple::MergeFrom(from._internal_user());
  }
  if (from._internal_has_distuser()) {
    _internal_mutable_distuser()->::heroim::client::v3beta::dto::user::model::UserSimple::MergeFrom(from._internal_distuser());
  }
  if (from._internal_has_group()) {
    _internal_mutable_group()->::heroim::client::v3beta::dto::group::model::GroupSimple::MergeFrom(from._internal_group());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

void GroupMemberRemovedEvent::CopyFrom(const GroupMemberRemovedEvent& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:heroim.client.v3beta.dto.group.model.event.GroupMemberRemovedEvent)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool GroupMemberRemovedEvent::IsInitialized() const {
  return true;
}

void GroupMemberRemovedEvent::InternalSwap(GroupMemberRemovedEvent* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::herogoogle::protobuf::internal::ArenaStringPtr::InternalSwap(
      &::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(),
      &productid_, lhs_arena,
      &other->productid_, rhs_arena
  );
  ::herogoogle::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(GroupMemberRemovedEvent, group_)
      + sizeof(GroupMemberRemovedEvent::group_)
      - PROTOBUF_FIELD_OFFSET(GroupMemberRemovedEvent, user_)>(
          reinterpret_cast<char*>(&user_),
          reinterpret_cast<char*>(&other->user_));
}

::herogoogle::protobuf::Metadata GroupMemberRemovedEvent::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto[5]);
}

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

class GroupDismissedEvent::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::group::model::GroupSimple& group(const GroupDismissedEvent* msg);
  static const ::heroim::client::v3beta::dto::user::model::UserSimple& user(const GroupDismissedEvent* msg);
};

const ::heroim::client::v3beta::dto::group::model::GroupSimple&
GroupDismissedEvent::_Internal::group(const GroupDismissedEvent* msg) {
  return *msg->group_;
}
const ::heroim::client::v3beta::dto::user::model::UserSimple&
GroupDismissedEvent::_Internal::user(const GroupDismissedEvent* msg) {
  return *msg->user_;
}
void GroupDismissedEvent::clear_group() {
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
}
void GroupDismissedEvent::clear_user() {
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
}
GroupDismissedEvent::GroupDismissedEvent(::herogoogle::protobuf::Arena* arena,
                         bool is_message_owned)
  : ::herogoogle::protobuf::Message(arena, is_message_owned) {
  SharedCtor();
  if (!is_message_owned) {
    RegisterArenaDtor(arena);
  }
  // @@protoc_insertion_point(arena_constructor:heroim.client.v3beta.dto.group.model.event.GroupDismissedEvent)
}
GroupDismissedEvent::GroupDismissedEvent(const GroupDismissedEvent& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_productid().empty()) {
    productid_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_productid(), 
      GetArenaForAllocation());
  }
  if (from._internal_has_group()) {
    group_ = new ::heroim::client::v3beta::dto::group::model::GroupSimple(*from.group_);
  } else {
    group_ = nullptr;
  }
  if (from._internal_has_user()) {
    user_ = new ::heroim::client::v3beta::dto::user::model::UserSimple(*from.user_);
  } else {
    user_ = nullptr;
  }
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.group.model.event.GroupDismissedEvent)
}

void GroupDismissedEvent::SharedCtor() {
productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&group_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&user_) -
    reinterpret_cast<char*>(&group_)) + sizeof(user_));
}

GroupDismissedEvent::~GroupDismissedEvent() {
  // @@protoc_insertion_point(destructor:heroim.client.v3beta.dto.group.model.event.GroupDismissedEvent)
  if (GetArenaForAllocation() != nullptr) return;
  SharedDtor();
  _internal_metadata_.Delete<::herogoogle::protobuf::UnknownFieldSet>();
}

inline void GroupDismissedEvent::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  productid_.DestroyNoArena(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (this != internal_default_instance()) delete group_;
  if (this != internal_default_instance()) delete user_;
}

void GroupDismissedEvent::ArenaDtor(void* object) {
  GroupDismissedEvent* _this = reinterpret_cast< GroupDismissedEvent* >(object);
  (void)_this;
}
void GroupDismissedEvent::RegisterArenaDtor(::herogoogle::protobuf::Arena*) {
}
void GroupDismissedEvent::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void GroupDismissedEvent::Clear() {
// @@protoc_insertion_point(message_clear_start:heroim.client.v3beta.dto.group.model.event.GroupDismissedEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  productid_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* GroupDismissedEvent::_InternalParse(const char* ptr, ::herogoogle::protobuf::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::herogoogle::protobuf::uint32 tag;
    ptr = ::herogoogle::protobuf::internal::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string productId = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          auto str = _internal_mutable_productid();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.group.model.event.GroupDismissedEvent.productId"));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.group.model.GroupSimple group = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_group(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.user.model.UserSimple user = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_user(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::herogoogle::protobuf::uint8* GroupDismissedEvent::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.group.model.event.GroupDismissedEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_productid().data(), static_cast<int>(this->_internal_productid().length()),
      ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
      "heroim.client.v3beta.dto.group.model.event.GroupDismissedEvent.productId");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_productid(), target);
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 2;
  if (this->_internal_has_group()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        2, _Internal::group(this), target, stream);
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 3;
  if (this->_internal_has_user()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        3, _Internal::user(this), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::herogoogle::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(::herogoogle::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:heroim.client.v3beta.dto.group.model.event.GroupDismissedEvent)
  return target;
}

size_t GroupDismissedEvent::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.group.model.event.GroupDismissedEvent)
  size_t total_size = 0;

  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::StringSize(
        this->_internal_productid());
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 2;
  if (this->_internal_has_group()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *group_);
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 3;
  if (this->_internal_has_user()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *user_);
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::herogoogle::protobuf::Message::ClassData GroupDismissedEvent::_class_data_ = {
    ::herogoogle::protobuf::Message::CopyWithSizeCheck,
    GroupDismissedEvent::MergeImpl
};
const ::herogoogle::protobuf::Message::ClassData*GroupDismissedEvent::GetClassData() const { return &_class_data_; }

void GroupDismissedEvent::MergeImpl(::herogoogle::protobuf::Message* to,
                      const ::herogoogle::protobuf::Message& from) {
  static_cast<GroupDismissedEvent *>(to)->MergeFrom(
      static_cast<const GroupDismissedEvent &>(from));
}


void GroupDismissedEvent::MergeFrom(const GroupDismissedEvent& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:heroim.client.v3beta.dto.group.model.event.GroupDismissedEvent)
  GOOGLE_DCHECK_NE(&from, this);
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_productid().empty()) {
    _internal_set_productid(from._internal_productid());
  }
  if (from._internal_has_group()) {
    _internal_mutable_group()->::heroim::client::v3beta::dto::group::model::GroupSimple::MergeFrom(from._internal_group());
  }
  if (from._internal_has_user()) {
    _internal_mutable_user()->::heroim::client::v3beta::dto::user::model::UserSimple::MergeFrom(from._internal_user());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

void GroupDismissedEvent::CopyFrom(const GroupDismissedEvent& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:heroim.client.v3beta.dto.group.model.event.GroupDismissedEvent)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool GroupDismissedEvent::IsInitialized() const {
  return true;
}

void GroupDismissedEvent::InternalSwap(GroupDismissedEvent* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::herogoogle::protobuf::internal::ArenaStringPtr::InternalSwap(
      &::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(),
      &productid_, lhs_arena,
      &other->productid_, rhs_arena
  );
  ::herogoogle::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(GroupDismissedEvent, user_)
      + sizeof(GroupDismissedEvent::user_)
      - PROTOBUF_FIELD_OFFSET(GroupDismissedEvent, group_)>(
          reinterpret_cast<char*>(&group_),
          reinterpret_cast<char*>(&other->group_));
}

::herogoogle::protobuf::Metadata GroupDismissedEvent::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto[6]);
}

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

class GroupProfileChangedEvent::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::group::model::GroupSimple& group(const GroupProfileChangedEvent* msg);
  static const ::heroim::client::v3beta::dto::user::model::UserSimple& user(const GroupProfileChangedEvent* msg);
};

const ::heroim::client::v3beta::dto::group::model::GroupSimple&
GroupProfileChangedEvent::_Internal::group(const GroupProfileChangedEvent* msg) {
  return *msg->group_;
}
const ::heroim::client::v3beta::dto::user::model::UserSimple&
GroupProfileChangedEvent::_Internal::user(const GroupProfileChangedEvent* msg) {
  return *msg->user_;
}
void GroupProfileChangedEvent::clear_group() {
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
}
void GroupProfileChangedEvent::clear_user() {
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
}
GroupProfileChangedEvent::GroupProfileChangedEvent(::herogoogle::protobuf::Arena* arena,
                         bool is_message_owned)
  : ::herogoogle::protobuf::Message(arena, is_message_owned) {
  SharedCtor();
  if (!is_message_owned) {
    RegisterArenaDtor(arena);
  }
  // @@protoc_insertion_point(arena_constructor:heroim.client.v3beta.dto.group.model.event.GroupProfileChangedEvent)
}
GroupProfileChangedEvent::GroupProfileChangedEvent(const GroupProfileChangedEvent& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_productid().empty()) {
    productid_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_productid(), 
      GetArenaForAllocation());
  }
  if (from._internal_has_group()) {
    group_ = new ::heroim::client::v3beta::dto::group::model::GroupSimple(*from.group_);
  } else {
    group_ = nullptr;
  }
  if (from._internal_has_user()) {
    user_ = new ::heroim::client::v3beta::dto::user::model::UserSimple(*from.user_);
  } else {
    user_ = nullptr;
  }
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.group.model.event.GroupProfileChangedEvent)
}

void GroupProfileChangedEvent::SharedCtor() {
productid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&group_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&user_) -
    reinterpret_cast<char*>(&group_)) + sizeof(user_));
}

GroupProfileChangedEvent::~GroupProfileChangedEvent() {
  // @@protoc_insertion_point(destructor:heroim.client.v3beta.dto.group.model.event.GroupProfileChangedEvent)
  if (GetArenaForAllocation() != nullptr) return;
  SharedDtor();
  _internal_metadata_.Delete<::herogoogle::protobuf::UnknownFieldSet>();
}

inline void GroupProfileChangedEvent::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  productid_.DestroyNoArena(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (this != internal_default_instance()) delete group_;
  if (this != internal_default_instance()) delete user_;
}

void GroupProfileChangedEvent::ArenaDtor(void* object) {
  GroupProfileChangedEvent* _this = reinterpret_cast< GroupProfileChangedEvent* >(object);
  (void)_this;
}
void GroupProfileChangedEvent::RegisterArenaDtor(::herogoogle::protobuf::Arena*) {
}
void GroupProfileChangedEvent::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void GroupProfileChangedEvent::Clear() {
// @@protoc_insertion_point(message_clear_start:heroim.client.v3beta.dto.group.model.event.GroupProfileChangedEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  productid_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* GroupProfileChangedEvent::_InternalParse(const char* ptr, ::herogoogle::protobuf::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::herogoogle::protobuf::uint32 tag;
    ptr = ::herogoogle::protobuf::internal::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string productId = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          auto str = _internal_mutable_productid();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.group.model.event.GroupProfileChangedEvent.productId"));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.group.model.GroupSimple group = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_group(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.user.model.UserSimple user = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_user(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::herogoogle::protobuf::uint8* GroupProfileChangedEvent::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.group.model.event.GroupProfileChangedEvent)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_productid().data(), static_cast<int>(this->_internal_productid().length()),
      ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
      "heroim.client.v3beta.dto.group.model.event.GroupProfileChangedEvent.productId");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_productid(), target);
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 2;
  if (this->_internal_has_group()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        2, _Internal::group(this), target, stream);
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 3;
  if (this->_internal_has_user()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        3, _Internal::user(this), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::herogoogle::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(::herogoogle::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:heroim.client.v3beta.dto.group.model.event.GroupProfileChangedEvent)
  return target;
}

size_t GroupProfileChangedEvent::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.group.model.event.GroupProfileChangedEvent)
  size_t total_size = 0;

  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // string productId = 1;
  if (!this->_internal_productid().empty()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::StringSize(
        this->_internal_productid());
  }

  // .heroim.client.v3beta.dto.group.model.GroupSimple group = 2;
  if (this->_internal_has_group()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *group_);
  }

  // .heroim.client.v3beta.dto.user.model.UserSimple user = 3;
  if (this->_internal_has_user()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *user_);
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::herogoogle::protobuf::Message::ClassData GroupProfileChangedEvent::_class_data_ = {
    ::herogoogle::protobuf::Message::CopyWithSizeCheck,
    GroupProfileChangedEvent::MergeImpl
};
const ::herogoogle::protobuf::Message::ClassData*GroupProfileChangedEvent::GetClassData() const { return &_class_data_; }

void GroupProfileChangedEvent::MergeImpl(::herogoogle::protobuf::Message* to,
                      const ::herogoogle::protobuf::Message& from) {
  static_cast<GroupProfileChangedEvent *>(to)->MergeFrom(
      static_cast<const GroupProfileChangedEvent &>(from));
}


void GroupProfileChangedEvent::MergeFrom(const GroupProfileChangedEvent& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:heroim.client.v3beta.dto.group.model.event.GroupProfileChangedEvent)
  GOOGLE_DCHECK_NE(&from, this);
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_productid().empty()) {
    _internal_set_productid(from._internal_productid());
  }
  if (from._internal_has_group()) {
    _internal_mutable_group()->::heroim::client::v3beta::dto::group::model::GroupSimple::MergeFrom(from._internal_group());
  }
  if (from._internal_has_user()) {
    _internal_mutable_user()->::heroim::client::v3beta::dto::user::model::UserSimple::MergeFrom(from._internal_user());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

void GroupProfileChangedEvent::CopyFrom(const GroupProfileChangedEvent& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:heroim.client.v3beta.dto.group.model.event.GroupProfileChangedEvent)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool GroupProfileChangedEvent::IsInitialized() const {
  return true;
}

void GroupProfileChangedEvent::InternalSwap(GroupProfileChangedEvent* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::herogoogle::protobuf::internal::ArenaStringPtr::InternalSwap(
      &::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(),
      &productid_, lhs_arena,
      &other->productid_, rhs_arena
  );
  ::herogoogle::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(GroupProfileChangedEvent, user_)
      + sizeof(GroupProfileChangedEvent::user_)
      - PROTOBUF_FIELD_OFFSET(GroupProfileChangedEvent, group_)>(
          reinterpret_cast<char*>(&group_),
          reinterpret_cast<char*>(&other->group_));
}

::herogoogle::protobuf::Metadata GroupProfileChangedEvent::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fevent_2fgroup_5fevent_2eproto[7]);
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace event
}  // namespace model
}  // namespace group
}  // namespace dto
}  // namespace v3beta
}  // namespace client
}  // namespace heroim
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::group::model::event::GroupCreatedEvent* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::group::model::event::GroupCreatedEvent >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::group::model::event::GroupCreatedEvent >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::group::model::event::GroupJoinApplyEvent* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::group::model::event::GroupJoinApplyEvent >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::group::model::event::GroupJoinApplyEvent >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::group::model::event::GroupJoinInviteEvent* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::group::model::event::GroupJoinInviteEvent >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::group::model::event::GroupJoinInviteEvent >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::group::model::event::GroupQuitedEvent* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::group::model::event::GroupQuitedEvent >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::group::model::event::GroupQuitedEvent >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::group::model::event::GroupJoinedEvent* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::group::model::event::GroupJoinedEvent >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::group::model::event::GroupJoinedEvent >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::group::model::event::GroupMemberRemovedEvent* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::group::model::event::GroupMemberRemovedEvent >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::group::model::event::GroupMemberRemovedEvent >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::group::model::event::GroupDismissedEvent* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::group::model::event::GroupDismissedEvent >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::group::model::event::GroupDismissedEvent >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::group::model::event::GroupProfileChangedEvent* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::group::model::event::GroupProfileChangedEvent >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::group::model::event::GroupProfileChangedEvent >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)

