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

#include "client/v3beta/dto/group/group_dto.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 {
constexpr GroupFindRequest::GroupFindRequest(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : base_(nullptr)
  , groupkey_(nullptr){}
struct GroupFindRequestDefaultTypeInternal {
  constexpr GroupFindRequestDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~GroupFindRequestDefaultTypeInternal() {}
  union {
    GroupFindRequest _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GroupFindRequestDefaultTypeInternal _GroupFindRequest_default_instance_;
constexpr GroupFindResponse::GroupFindResponse(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : group_(nullptr){}
struct GroupFindResponseDefaultTypeInternal {
  constexpr GroupFindResponseDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~GroupFindResponseDefaultTypeInternal() {}
  union {
    GroupFindResponse _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GroupFindResponseDefaultTypeInternal _GroupFindResponse_default_instance_;
constexpr GroupListJoinedRequest::GroupListJoinedRequest(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : base_(nullptr){}
struct GroupListJoinedRequestDefaultTypeInternal {
  constexpr GroupListJoinedRequestDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~GroupListJoinedRequestDefaultTypeInternal() {}
  union {
    GroupListJoinedRequest _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GroupListJoinedRequestDefaultTypeInternal _GroupListJoinedRequest_default_instance_;
constexpr GroupListJoinedResponse_Item::GroupListJoinedResponse_Item(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : group_(nullptr){}
struct GroupListJoinedResponse_ItemDefaultTypeInternal {
  constexpr GroupListJoinedResponse_ItemDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~GroupListJoinedResponse_ItemDefaultTypeInternal() {}
  union {
    GroupListJoinedResponse_Item _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GroupListJoinedResponse_ItemDefaultTypeInternal _GroupListJoinedResponse_Item_default_instance_;
constexpr GroupListJoinedResponse::GroupListJoinedResponse(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : items_(){}
struct GroupListJoinedResponseDefaultTypeInternal {
  constexpr GroupListJoinedResponseDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~GroupListJoinedResponseDefaultTypeInternal() {}
  union {
    GroupListJoinedResponse _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GroupListJoinedResponseDefaultTypeInternal _GroupListJoinedResponse_default_instance_;
}  // namespace group
}  // namespace dto
}  // namespace v3beta
}  // namespace client
}  // namespace heroim
static ::herogoogle::protobuf::Metadata file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto[5];
static constexpr ::herogoogle::protobuf::EnumDescriptor const** file_level_enum_descriptors_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto = nullptr;
static constexpr ::herogoogle::protobuf::ServiceDescriptor const** file_level_service_descriptors_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto = nullptr;

const ::herogoogle::protobuf::uint32 TableStruct_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::GroupFindRequest, _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::GroupFindRequest, base_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::GroupFindRequest, groupkey_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::GroupFindResponse, _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::GroupFindResponse, group_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::GroupListJoinedRequest, _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::GroupListJoinedRequest, base_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::GroupListJoinedResponse_Item, _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::GroupListJoinedResponse_Item, group_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::group::GroupListJoinedResponse, _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::GroupListJoinedResponse, items_),
};
static const ::herogoogle::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, -1, sizeof(::heroim::client::v3beta::dto::group::GroupFindRequest)},
  { 8, -1, -1, sizeof(::heroim::client::v3beta::dto::group::GroupFindResponse)},
  { 15, -1, -1, sizeof(::heroim::client::v3beta::dto::group::GroupListJoinedRequest)},
  { 22, -1, -1, sizeof(::heroim::client::v3beta::dto::group::GroupListJoinedResponse_Item)},
  { 29, -1, -1, sizeof(::heroim::client::v3beta::dto::group::GroupListJoinedResponse)},
};

static ::herogoogle::protobuf::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::group::_GroupFindRequest_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::group::_GroupFindResponse_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::group::_GroupListJoinedRequest_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::group::_GroupListJoinedResponse_Item_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::group::_GroupListJoinedResponse_default_instance_),
};
#ifdef _MSC_VER
#  pragma warning(disable : 4125)
#endif  /* _MSC_VER */
const char descriptor_table_protodef_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n\'client/v3beta/dto/group/group_dto.prot"
  "o\022\036heroim.client.v3beta.dto.group\032/clien"
  "t/v3beta/dto/group/model/group_model.pro"
  "to\032\"client/v3beta/dto/shared/api.proto\"\217"
  "\001\n\020GroupFindRequest\0229\n\004base\030\001 \001(\0132+.hero"
  "im.client.v3beta.dto.shared.APIRequest\022@"
  "\n\010groupKey\030\002 \001(\0132..heroim.client.v3beta."
  "dto.group.model.GroupKey\"O\n\021GroupFindRes"
  "ponse\022:\n\005group\030\001 \001(\0132+.heroim.client.v3b"
  "eta.dto.group.model.Group\"S\n\026GroupListJo"
  "inedRequest\0229\n\004base\030\001 \001(\0132+.heroim.clien"
  "t.v3beta.dto.shared.APIRequest\"\252\001\n\027Group"
  "ListJoinedResponse\022K\n\005items\030\001 \003(\0132<.hero"
  "im.client.v3beta.dto.group.GroupListJoin"
  "edResponse.Item\032B\n\004Item\022:\n\005group\030\001 \001(\0132+"
  ".heroim.client.v3beta.dto.group.model.Gr"
  "oupBR\n\"com.hero.csdk.api.v3beta.dto.grou"
  "pP\001Z\"heroim/api/client/v3beta/dto/group\242"
  "\002\005IMSdkb\006proto3"
  ;
static const ::herogoogle::protobuf::internal::DescriptorTable*const descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto_deps[2] = {
  &::descriptor_table_client_2fv3beta_2fdto_2fgroup_2fmodel_2fgroup_5fmodel_2eproto,
  &::descriptor_table_client_2fv3beta_2fdto_2fshared_2fapi_2eproto,
};
static ::herogoogle::protobuf::internal::once_flag descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto_once;
const ::herogoogle::protobuf::internal::DescriptorTable descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto = {
  false, false, 735, descriptor_table_protodef_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto, "client/v3beta/dto/group/group_dto.proto", 
  &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto_once, descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto_deps, 2, 5,
  schemas, file_default_instances, TableStruct_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto::offsets,
  file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto, file_level_enum_descriptors_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto, file_level_service_descriptors_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::herogoogle::protobuf::internal::DescriptorTable* descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto_getter() {
  return &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto;
}

// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::herogoogle::protobuf::internal::AddDescriptorsRunner dynamic_init_dummy_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto(&descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto);
namespace heroim {
namespace client {
namespace v3beta {
namespace dto {
namespace group {

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

class GroupFindRequest::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::shared::APIRequest& base(const GroupFindRequest* msg);
  static const ::heroim::client::v3beta::dto::group::model::GroupKey& groupkey(const GroupFindRequest* msg);
};

const ::heroim::client::v3beta::dto::shared::APIRequest&
GroupFindRequest::_Internal::base(const GroupFindRequest* msg) {
  return *msg->base_;
}
const ::heroim::client::v3beta::dto::group::model::GroupKey&
GroupFindRequest::_Internal::groupkey(const GroupFindRequest* msg) {
  return *msg->groupkey_;
}
void GroupFindRequest::clear_base() {
  if (GetArenaForAllocation() == nullptr && base_ != nullptr) {
    delete base_;
  }
  base_ = nullptr;
}
void GroupFindRequest::clear_groupkey() {
  if (GetArenaForAllocation() == nullptr && groupkey_ != nullptr) {
    delete groupkey_;
  }
  groupkey_ = nullptr;
}
GroupFindRequest::GroupFindRequest(::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.GroupFindRequest)
}
GroupFindRequest::GroupFindRequest(const GroupFindRequest& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  if (from._internal_has_base()) {
    base_ = new ::heroim::client::v3beta::dto::shared::APIRequest(*from.base_);
  } else {
    base_ = nullptr;
  }
  if (from._internal_has_groupkey()) {
    groupkey_ = new ::heroim::client::v3beta::dto::group::model::GroupKey(*from.groupkey_);
  } else {
    groupkey_ = nullptr;
  }
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.group.GroupFindRequest)
}

void GroupFindRequest::SharedCtor() {
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&base_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&groupkey_) -
    reinterpret_cast<char*>(&base_)) + sizeof(groupkey_));
}

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

inline void GroupFindRequest::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  if (this != internal_default_instance()) delete base_;
  if (this != internal_default_instance()) delete groupkey_;
}

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

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

  if (GetArenaForAllocation() == nullptr && base_ != nullptr) {
    delete base_;
  }
  base_ = nullptr;
  if (GetArenaForAllocation() == nullptr && groupkey_ != nullptr) {
    delete groupkey_;
  }
  groupkey_ = nullptr;
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* GroupFindRequest::_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) {
      // .heroim.client.v3beta.dto.shared.APIRequest base = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_base(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.group.model.GroupKey groupKey = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_groupkey(), 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* GroupFindRequest::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.group.GroupFindRequest)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // .heroim.client.v3beta.dto.shared.APIRequest base = 1;
  if (this->_internal_has_base()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        1, _Internal::base(this), target, stream);
  }

  // .heroim.client.v3beta.dto.group.model.GroupKey groupKey = 2;
  if (this->_internal_has_groupkey()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        2, _Internal::groupkey(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.GroupFindRequest)
  return target;
}

size_t GroupFindRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.group.GroupFindRequest)
  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;

  // .heroim.client.v3beta.dto.shared.APIRequest base = 1;
  if (this->_internal_has_base()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *base_);
  }

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

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

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

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


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

  if (from._internal_has_base()) {
    _internal_mutable_base()->::heroim::client::v3beta::dto::shared::APIRequest::MergeFrom(from._internal_base());
  }
  if (from._internal_has_groupkey()) {
    _internal_mutable_groupkey()->::heroim::client::v3beta::dto::group::model::GroupKey::MergeFrom(from._internal_groupkey());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void GroupFindRequest::InternalSwap(GroupFindRequest* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::herogoogle::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(GroupFindRequest, groupkey_)
      + sizeof(GroupFindRequest::groupkey_)
      - PROTOBUF_FIELD_OFFSET(GroupFindRequest, base_)>(
          reinterpret_cast<char*>(&base_),
          reinterpret_cast<char*>(&other->base_));
}

::herogoogle::protobuf::Metadata GroupFindRequest::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto[0]);
}

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

class GroupFindResponse::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::group::model::Group& group(const GroupFindResponse* msg);
};

const ::heroim::client::v3beta::dto::group::model::Group&
GroupFindResponse::_Internal::group(const GroupFindResponse* msg) {
  return *msg->group_;
}
void GroupFindResponse::clear_group() {
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
}
GroupFindResponse::GroupFindResponse(::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.GroupFindResponse)
}
GroupFindResponse::GroupFindResponse(const GroupFindResponse& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  if (from._internal_has_group()) {
    group_ = new ::heroim::client::v3beta::dto::group::model::Group(*from.group_);
  } else {
    group_ = nullptr;
  }
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.group.GroupFindResponse)
}

void GroupFindResponse::SharedCtor() {
group_ = nullptr;
}

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

inline void GroupFindResponse::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  if (this != internal_default_instance()) delete group_;
}

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

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

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

const char* GroupFindResponse::_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) {
      // .heroim.client.v3beta.dto.group.model.Group group = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          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* GroupFindResponse::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.group.GroupFindResponse)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // .heroim.client.v3beta.dto.group.model.Group group = 1;
  if (this->_internal_has_group()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        1, _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.GroupFindResponse)
  return target;
}

size_t GroupFindResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.group.GroupFindResponse)
  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;

  // .heroim.client.v3beta.dto.group.model.Group group = 1;
  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 GroupFindResponse::_class_data_ = {
    ::herogoogle::protobuf::Message::CopyWithSizeCheck,
    GroupFindResponse::MergeImpl
};
const ::herogoogle::protobuf::Message::ClassData*GroupFindResponse::GetClassData() const { return &_class_data_; }

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


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

  if (from._internal_has_group()) {
    _internal_mutable_group()->::heroim::client::v3beta::dto::group::model::Group::MergeFrom(from._internal_group());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void GroupFindResponse::InternalSwap(GroupFindResponse* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(group_, other->group_);
}

::herogoogle::protobuf::Metadata GroupFindResponse::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto[1]);
}

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

class GroupListJoinedRequest::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::shared::APIRequest& base(const GroupListJoinedRequest* msg);
};

const ::heroim::client::v3beta::dto::shared::APIRequest&
GroupListJoinedRequest::_Internal::base(const GroupListJoinedRequest* msg) {
  return *msg->base_;
}
void GroupListJoinedRequest::clear_base() {
  if (GetArenaForAllocation() == nullptr && base_ != nullptr) {
    delete base_;
  }
  base_ = nullptr;
}
GroupListJoinedRequest::GroupListJoinedRequest(::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.GroupListJoinedRequest)
}
GroupListJoinedRequest::GroupListJoinedRequest(const GroupListJoinedRequest& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  if (from._internal_has_base()) {
    base_ = new ::heroim::client::v3beta::dto::shared::APIRequest(*from.base_);
  } else {
    base_ = nullptr;
  }
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.group.GroupListJoinedRequest)
}

void GroupListJoinedRequest::SharedCtor() {
base_ = nullptr;
}

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

inline void GroupListJoinedRequest::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  if (this != internal_default_instance()) delete base_;
}

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

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

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

const char* GroupListJoinedRequest::_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) {
      // .heroim.client.v3beta.dto.shared.APIRequest base = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_base(), 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* GroupListJoinedRequest::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.group.GroupListJoinedRequest)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // .heroim.client.v3beta.dto.shared.APIRequest base = 1;
  if (this->_internal_has_base()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        1, _Internal::base(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.GroupListJoinedRequest)
  return target;
}

size_t GroupListJoinedRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.group.GroupListJoinedRequest)
  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;

  // .heroim.client.v3beta.dto.shared.APIRequest base = 1;
  if (this->_internal_has_base()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *base_);
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

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

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


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

  if (from._internal_has_base()) {
    _internal_mutable_base()->::heroim::client::v3beta::dto::shared::APIRequest::MergeFrom(from._internal_base());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void GroupListJoinedRequest::InternalSwap(GroupListJoinedRequest* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(base_, other->base_);
}

::herogoogle::protobuf::Metadata GroupListJoinedRequest::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto[2]);
}

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

class GroupListJoinedResponse_Item::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::group::model::Group& group(const GroupListJoinedResponse_Item* msg);
};

const ::heroim::client::v3beta::dto::group::model::Group&
GroupListJoinedResponse_Item::_Internal::group(const GroupListJoinedResponse_Item* msg) {
  return *msg->group_;
}
void GroupListJoinedResponse_Item::clear_group() {
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
}
GroupListJoinedResponse_Item::GroupListJoinedResponse_Item(::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.GroupListJoinedResponse.Item)
}
GroupListJoinedResponse_Item::GroupListJoinedResponse_Item(const GroupListJoinedResponse_Item& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  if (from._internal_has_group()) {
    group_ = new ::heroim::client::v3beta::dto::group::model::Group(*from.group_);
  } else {
    group_ = nullptr;
  }
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.group.GroupListJoinedResponse.Item)
}

void GroupListJoinedResponse_Item::SharedCtor() {
group_ = nullptr;
}

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

inline void GroupListJoinedResponse_Item::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  if (this != internal_default_instance()) delete group_;
}

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

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

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

const char* GroupListJoinedResponse_Item::_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) {
      // .heroim.client.v3beta.dto.group.model.Group group = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          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* GroupListJoinedResponse_Item::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.group.GroupListJoinedResponse.Item)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // .heroim.client.v3beta.dto.group.model.Group group = 1;
  if (this->_internal_has_group()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        1, _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.GroupListJoinedResponse.Item)
  return target;
}

size_t GroupListJoinedResponse_Item::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.group.GroupListJoinedResponse.Item)
  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;

  // .heroim.client.v3beta.dto.group.model.Group group = 1;
  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 GroupListJoinedResponse_Item::_class_data_ = {
    ::herogoogle::protobuf::Message::CopyWithSizeCheck,
    GroupListJoinedResponse_Item::MergeImpl
};
const ::herogoogle::protobuf::Message::ClassData*GroupListJoinedResponse_Item::GetClassData() const { return &_class_data_; }

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


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

  if (from._internal_has_group()) {
    _internal_mutable_group()->::heroim::client::v3beta::dto::group::model::Group::MergeFrom(from._internal_group());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void GroupListJoinedResponse_Item::InternalSwap(GroupListJoinedResponse_Item* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(group_, other->group_);
}

::herogoogle::protobuf::Metadata GroupListJoinedResponse_Item::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto[3]);
}

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

class GroupListJoinedResponse::_Internal {
 public:
};

GroupListJoinedResponse::GroupListJoinedResponse(::herogoogle::protobuf::Arena* arena,
                         bool is_message_owned)
  : ::herogoogle::protobuf::Message(arena, is_message_owned),
  items_(arena) {
  SharedCtor();
  if (!is_message_owned) {
    RegisterArenaDtor(arena);
  }
  // @@protoc_insertion_point(arena_constructor:heroim.client.v3beta.dto.group.GroupListJoinedResponse)
}
GroupListJoinedResponse::GroupListJoinedResponse(const GroupListJoinedResponse& from)
  : ::herogoogle::protobuf::Message(),
      items_(from.items_) {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.group.GroupListJoinedResponse)
}

void GroupListJoinedResponse::SharedCtor() {
}

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

inline void GroupListJoinedResponse::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}

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

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

  items_.Clear();
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* GroupListJoinedResponse::_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) {
      // repeated .heroim.client.v3beta.dto.group.GroupListJoinedResponse.Item items = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_items(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::herogoogle::protobuf::internal::ExpectTag<10>(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* GroupListJoinedResponse::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.group.GroupListJoinedResponse)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated .heroim.client.v3beta.dto.group.GroupListJoinedResponse.Item items = 1;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->_internal_items_size()); i < n; i++) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(1, this->_internal_items(i), 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.GroupListJoinedResponse)
  return target;
}

size_t GroupListJoinedResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.group.GroupListJoinedResponse)
  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;

  // repeated .heroim.client.v3beta.dto.group.GroupListJoinedResponse.Item items = 1;
  total_size += 1UL * this->_internal_items_size();
  for (const auto& msg : this->items_) {
    total_size +=
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(msg);
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

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

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


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

  items_.MergeFrom(from.items_);
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void GroupListJoinedResponse::InternalSwap(GroupListJoinedResponse* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  items_.InternalSwap(&other->items_);
}

::herogoogle::protobuf::Metadata GroupListJoinedResponse::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fgroup_2fgroup_5fdto_2eproto[4]);
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace group
}  // namespace dto
}  // namespace v3beta
}  // namespace client
}  // namespace heroim
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::group::GroupFindRequest* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::group::GroupFindRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::group::GroupFindRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::group::GroupFindResponse* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::group::GroupFindResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::group::GroupFindResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::group::GroupListJoinedRequest* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::group::GroupListJoinedRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::group::GroupListJoinedRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::group::GroupListJoinedResponse_Item* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::group::GroupListJoinedResponse_Item >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::group::GroupListJoinedResponse_Item >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::group::GroupListJoinedResponse* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::group::GroupListJoinedResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::group::GroupListJoinedResponse >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)

