// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: client/v3beta/dto/relationship/model/relationship_model.proto

#include "client/v3beta/dto/relationship/model/relationship_model.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 relationship {
namespace model {
constexpr UserFriend_ExtraEntry_DoNotUse::UserFriend_ExtraEntry_DoNotUse(
  ::herogoogle::protobuf::internal::ConstantInitialized){}
struct UserFriend_ExtraEntry_DoNotUseDefaultTypeInternal {
  constexpr UserFriend_ExtraEntry_DoNotUseDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~UserFriend_ExtraEntry_DoNotUseDefaultTypeInternal() {}
  union {
    UserFriend_ExtraEntry_DoNotUse _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UserFriend_ExtraEntry_DoNotUseDefaultTypeInternal _UserFriend_ExtraEntry_DoNotUse_default_instance_;
constexpr UserFriend::UserFriend(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : extra_(::herogoogle::protobuf::internal::ConstantInitialized{})
  , uid_(&::herogoogle::protobuf::internal::fixed_address_empty_string)
  , friendtime_(int64_t{0}){}
struct UserFriendDefaultTypeInternal {
  constexpr UserFriendDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~UserFriendDefaultTypeInternal() {}
  union {
    UserFriend _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UserFriendDefaultTypeInternal _UserFriend_default_instance_;
constexpr UserBlocked_ExtraEntry_DoNotUse::UserBlocked_ExtraEntry_DoNotUse(
  ::herogoogle::protobuf::internal::ConstantInitialized){}
struct UserBlocked_ExtraEntry_DoNotUseDefaultTypeInternal {
  constexpr UserBlocked_ExtraEntry_DoNotUseDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~UserBlocked_ExtraEntry_DoNotUseDefaultTypeInternal() {}
  union {
    UserBlocked_ExtraEntry_DoNotUse _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UserBlocked_ExtraEntry_DoNotUseDefaultTypeInternal _UserBlocked_ExtraEntry_DoNotUse_default_instance_;
constexpr UserBlocked::UserBlocked(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : extra_(::herogoogle::protobuf::internal::ConstantInitialized{})
  , uid_(&::herogoogle::protobuf::internal::fixed_address_empty_string)
  , blocktime_(int64_t{0}){}
struct UserBlockedDefaultTypeInternal {
  constexpr UserBlockedDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~UserBlockedDefaultTypeInternal() {}
  union {
    UserBlocked _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UserBlockedDefaultTypeInternal _UserBlocked_default_instance_;
}  // namespace model
}  // namespace relationship
}  // namespace dto
}  // namespace v3beta
}  // namespace client
}  // namespace heroim
static ::herogoogle::protobuf::Metadata file_level_metadata_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto[4];
static constexpr ::herogoogle::protobuf::EnumDescriptor const** file_level_enum_descriptors_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto = nullptr;
static constexpr ::herogoogle::protobuf::ServiceDescriptor const** file_level_service_descriptors_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto = nullptr;

const ::herogoogle::protobuf::uint32 TableStruct_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::relationship::model::UserFriend_ExtraEntry_DoNotUse, _has_bits_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::relationship::model::UserFriend_ExtraEntry_DoNotUse, _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::relationship::model::UserFriend_ExtraEntry_DoNotUse, key_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::relationship::model::UserFriend_ExtraEntry_DoNotUse, value_),
  0,
  1,
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::relationship::model::UserFriend, _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::relationship::model::UserFriend, uid_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::relationship::model::UserFriend, friendtime_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::relationship::model::UserFriend, extra_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::relationship::model::UserBlocked_ExtraEntry_DoNotUse, _has_bits_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::relationship::model::UserBlocked_ExtraEntry_DoNotUse, _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::relationship::model::UserBlocked_ExtraEntry_DoNotUse, key_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::relationship::model::UserBlocked_ExtraEntry_DoNotUse, value_),
  0,
  1,
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::relationship::model::UserBlocked, _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::relationship::model::UserBlocked, uid_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::relationship::model::UserBlocked, blocktime_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::relationship::model::UserBlocked, extra_),
};
static const ::herogoogle::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, 8, -1, sizeof(::heroim::client::v3beta::dto::relationship::model::UserFriend_ExtraEntry_DoNotUse)},
  { 10, -1, -1, sizeof(::heroim::client::v3beta::dto::relationship::model::UserFriend)},
  { 19, 27, -1, sizeof(::heroim::client::v3beta::dto::relationship::model::UserBlocked_ExtraEntry_DoNotUse)},
  { 29, -1, -1, sizeof(::heroim::client::v3beta::dto::relationship::model::UserBlocked)},
};

static ::herogoogle::protobuf::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::relationship::model::_UserFriend_ExtraEntry_DoNotUse_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::relationship::model::_UserFriend_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::relationship::model::_UserBlocked_ExtraEntry_DoNotUse_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::relationship::model::_UserBlocked_default_instance_),
};
#ifdef _MSC_VER
#  pragma warning(disable : 4125)
#endif  /* _MSC_VER */
const char descriptor_table_protodef_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n=client/v3beta/dto/relationship/model/r"
  "elationship_model.proto\022+heroim.client.v"
  "3beta.dto.relationship.model\"\256\001\n\nUserFri"
  "end\022\013\n\003uid\030\001 \001(\t\022\022\n\nfriendTime\030\002 \001(\003\022Q\n\005"
  "extra\030\003 \003(\0132B.heroim.client.v3beta.dto.r"
  "elationship.model.UserFriend.ExtraEntry\032"
  ",\n\nExtraEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001("
  "\t:\0028\001\"\257\001\n\013UserBlocked\022\013\n\003uid\030\001 \001(\t\022\021\n\tbl"
  "ockTime\030\002 \001(\003\022R\n\005extra\030\003 \003(\0132C.heroim.cl"
  "ient.v3beta.dto.relationship.model.UserB"
  "locked.ExtraEntry\032,\n\nExtraEntry\022\013\n\003key\030\001"
  " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001Bl\n/com.hero.csdk"
  ".api.v3beta.dto.relationship.modelP\001Z/he"
  "roim/api/client/v3beta/dto/relationship/"
  "model\242\002\005IMSdkb\006proto3"
  ;
static ::herogoogle::protobuf::internal::once_flag descriptor_table_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto_once;
const ::herogoogle::protobuf::internal::DescriptorTable descriptor_table_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto = {
  false, false, 581, descriptor_table_protodef_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto, "client/v3beta/dto/relationship/model/relationship_model.proto", 
  &descriptor_table_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto_once, nullptr, 0, 4,
  schemas, file_default_instances, TableStruct_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto::offsets,
  file_level_metadata_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto, file_level_enum_descriptors_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto, file_level_service_descriptors_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::herogoogle::protobuf::internal::DescriptorTable* descriptor_table_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto_getter() {
  return &descriptor_table_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto;
}

// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::herogoogle::protobuf::internal::AddDescriptorsRunner dynamic_init_dummy_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto(&descriptor_table_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto);
namespace heroim {
namespace client {
namespace v3beta {
namespace dto {
namespace relationship {
namespace model {

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

UserFriend_ExtraEntry_DoNotUse::UserFriend_ExtraEntry_DoNotUse() {}
UserFriend_ExtraEntry_DoNotUse::UserFriend_ExtraEntry_DoNotUse(::herogoogle::protobuf::Arena* arena)
    : SuperType(arena) {}
void UserFriend_ExtraEntry_DoNotUse::MergeFrom(const UserFriend_ExtraEntry_DoNotUse& other) {
  MergeFromInternal(other);
}
::herogoogle::protobuf::Metadata UserFriend_ExtraEntry_DoNotUse::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto[0]);
}

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

class UserFriend::_Internal {
 public:
};

UserFriend::UserFriend(::herogoogle::protobuf::Arena* arena,
                         bool is_message_owned)
  : ::herogoogle::protobuf::Message(arena, is_message_owned),
  extra_(arena) {
  SharedCtor();
  if (!is_message_owned) {
    RegisterArenaDtor(arena);
  }
  // @@protoc_insertion_point(arena_constructor:heroim.client.v3beta.dto.relationship.model.UserFriend)
}
UserFriend::UserFriend(const UserFriend& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  extra_.MergeFrom(from.extra_);
  uid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_uid().empty()) {
    uid_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_uid(), 
      GetArenaForAllocation());
  }
  friendtime_ = from.friendtime_;
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.relationship.model.UserFriend)
}

void UserFriend::SharedCtor() {
uid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
friendtime_ = int64_t{0};
}

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

inline void UserFriend::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  uid_.DestroyNoArena(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
}

void UserFriend::ArenaDtor(void* object) {
  UserFriend* _this = reinterpret_cast< UserFriend* >(object);
  (void)_this;
  _this->extra_. ~MapField();
}
inline void UserFriend::RegisterArenaDtor(::herogoogle::protobuf::Arena* arena) {
  if (arena != nullptr) {
    arena->OwnCustomDestructor(this, &UserFriend::ArenaDtor);
  }
}
void UserFriend::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

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

  extra_.Clear();
  uid_.ClearToEmpty();
  friendtime_ = int64_t{0};
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* UserFriend::_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 uid = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          auto str = _internal_mutable_uid();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.relationship.model.UserFriend.uid"));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // int64 friendTime = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 16)) {
          friendtime_ = ::herogoogle::protobuf::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // map<string, string> extra = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 26)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(&extra_, ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::herogoogle::protobuf::internal::ExpectTag<26>(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* UserFriend::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.relationship.model.UserFriend)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

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

  // int64 friendTime = 2;
  if (this->_internal_friendtime() != 0) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_friendtime(), target);
  }

  // map<string, string> extra = 3;
  if (!this->_internal_extra().empty()) {
    typedef ::herogoogle::protobuf::Map< std::string, std::string >::const_pointer
        ConstPtr;
    typedef ConstPtr SortItem;
    typedef ::herogoogle::protobuf::internal::CompareByDerefFirst<SortItem> Less;
    struct Utf8Check {
      static void Check(ConstPtr p) {
        (void)p;
        ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
          p->first.data(), static_cast<int>(p->first.length()),
          ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
          "heroim.client.v3beta.dto.relationship.model.UserFriend.ExtraEntry.key");
        ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
          p->second.data(), static_cast<int>(p->second.length()),
          ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
          "heroim.client.v3beta.dto.relationship.model.UserFriend.ExtraEntry.value");
      }
    };

    if (stream->IsSerializationDeterministic() &&
        this->_internal_extra().size() > 1) {
      ::std::unique_ptr<SortItem[]> items(
          new SortItem[this->_internal_extra().size()]);
      typedef ::herogoogle::protobuf::Map< std::string, std::string >::size_type size_type;
      size_type n = 0;
      for (::herogoogle::protobuf::Map< std::string, std::string >::const_iterator
          it = this->_internal_extra().begin();
          it != this->_internal_extra().end(); ++it, ++n) {
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
      }
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
      for (size_type i = 0; i < n; i++) {
        target = UserFriend_ExtraEntry_DoNotUse::Funcs::InternalSerialize(3, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target, stream);
        Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
      }
    } else {
      for (::herogoogle::protobuf::Map< std::string, std::string >::const_iterator
          it = this->_internal_extra().begin();
          it != this->_internal_extra().end(); ++it) {
        target = UserFriend_ExtraEntry_DoNotUse::Funcs::InternalSerialize(3, it->first, it->second, target, stream);
        Utf8Check::Check(&(*it));
      }
    }
  }

  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.relationship.model.UserFriend)
  return target;
}

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

  // map<string, string> extra = 3;
  total_size += 1 *
      ::herogoogle::protobuf::internal::FromIntSize(this->_internal_extra_size());
  for (::herogoogle::protobuf::Map< std::string, std::string >::const_iterator
      it = this->_internal_extra().begin();
      it != this->_internal_extra().end(); ++it) {
    total_size += UserFriend_ExtraEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
  }

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

  // int64 friendTime = 2;
  if (this->_internal_friendtime() != 0) {
    total_size += ::herogoogle::protobuf::internal::WireFormatLite::Int64SizePlusOne(this->_internal_friendtime());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

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

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


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

  extra_.MergeFrom(from.extra_);
  if (!from._internal_uid().empty()) {
    _internal_set_uid(from._internal_uid());
  }
  if (from._internal_friendtime() != 0) {
    _internal_set_friendtime(from._internal_friendtime());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void UserFriend::InternalSwap(UserFriend* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  extra_.InternalSwap(&other->extra_);
  ::herogoogle::protobuf::internal::ArenaStringPtr::InternalSwap(
      &::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(),
      &uid_, lhs_arena,
      &other->uid_, rhs_arena
  );
  swap(friendtime_, other->friendtime_);
}

::herogoogle::protobuf::Metadata UserFriend::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto[1]);
}

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

UserBlocked_ExtraEntry_DoNotUse::UserBlocked_ExtraEntry_DoNotUse() {}
UserBlocked_ExtraEntry_DoNotUse::UserBlocked_ExtraEntry_DoNotUse(::herogoogle::protobuf::Arena* arena)
    : SuperType(arena) {}
void UserBlocked_ExtraEntry_DoNotUse::MergeFrom(const UserBlocked_ExtraEntry_DoNotUse& other) {
  MergeFromInternal(other);
}
::herogoogle::protobuf::Metadata UserBlocked_ExtraEntry_DoNotUse::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto[2]);
}

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

class UserBlocked::_Internal {
 public:
};

UserBlocked::UserBlocked(::herogoogle::protobuf::Arena* arena,
                         bool is_message_owned)
  : ::herogoogle::protobuf::Message(arena, is_message_owned),
  extra_(arena) {
  SharedCtor();
  if (!is_message_owned) {
    RegisterArenaDtor(arena);
  }
  // @@protoc_insertion_point(arena_constructor:heroim.client.v3beta.dto.relationship.model.UserBlocked)
}
UserBlocked::UserBlocked(const UserBlocked& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  extra_.MergeFrom(from.extra_);
  uid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_uid().empty()) {
    uid_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_uid(), 
      GetArenaForAllocation());
  }
  blocktime_ = from.blocktime_;
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.relationship.model.UserBlocked)
}

void UserBlocked::SharedCtor() {
uid_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
blocktime_ = int64_t{0};
}

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

inline void UserBlocked::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  uid_.DestroyNoArena(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
}

void UserBlocked::ArenaDtor(void* object) {
  UserBlocked* _this = reinterpret_cast< UserBlocked* >(object);
  (void)_this;
  _this->extra_. ~MapField();
}
inline void UserBlocked::RegisterArenaDtor(::herogoogle::protobuf::Arena* arena) {
  if (arena != nullptr) {
    arena->OwnCustomDestructor(this, &UserBlocked::ArenaDtor);
  }
}
void UserBlocked::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

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

  extra_.Clear();
  uid_.ClearToEmpty();
  blocktime_ = int64_t{0};
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* UserBlocked::_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 uid = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          auto str = _internal_mutable_uid();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.relationship.model.UserBlocked.uid"));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // int64 blockTime = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 16)) {
          blocktime_ = ::herogoogle::protobuf::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // map<string, string> extra = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 26)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(&extra_, ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::herogoogle::protobuf::internal::ExpectTag<26>(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* UserBlocked::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.relationship.model.UserBlocked)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

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

  // int64 blockTime = 2;
  if (this->_internal_blocktime() != 0) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_blocktime(), target);
  }

  // map<string, string> extra = 3;
  if (!this->_internal_extra().empty()) {
    typedef ::herogoogle::protobuf::Map< std::string, std::string >::const_pointer
        ConstPtr;
    typedef ConstPtr SortItem;
    typedef ::herogoogle::protobuf::internal::CompareByDerefFirst<SortItem> Less;
    struct Utf8Check {
      static void Check(ConstPtr p) {
        (void)p;
        ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
          p->first.data(), static_cast<int>(p->first.length()),
          ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
          "heroim.client.v3beta.dto.relationship.model.UserBlocked.ExtraEntry.key");
        ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
          p->second.data(), static_cast<int>(p->second.length()),
          ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
          "heroim.client.v3beta.dto.relationship.model.UserBlocked.ExtraEntry.value");
      }
    };

    if (stream->IsSerializationDeterministic() &&
        this->_internal_extra().size() > 1) {
      ::std::unique_ptr<SortItem[]> items(
          new SortItem[this->_internal_extra().size()]);
      typedef ::herogoogle::protobuf::Map< std::string, std::string >::size_type size_type;
      size_type n = 0;
      for (::herogoogle::protobuf::Map< std::string, std::string >::const_iterator
          it = this->_internal_extra().begin();
          it != this->_internal_extra().end(); ++it, ++n) {
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
      }
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
      for (size_type i = 0; i < n; i++) {
        target = UserBlocked_ExtraEntry_DoNotUse::Funcs::InternalSerialize(3, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target, stream);
        Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
      }
    } else {
      for (::herogoogle::protobuf::Map< std::string, std::string >::const_iterator
          it = this->_internal_extra().begin();
          it != this->_internal_extra().end(); ++it) {
        target = UserBlocked_ExtraEntry_DoNotUse::Funcs::InternalSerialize(3, it->first, it->second, target, stream);
        Utf8Check::Check(&(*it));
      }
    }
  }

  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.relationship.model.UserBlocked)
  return target;
}

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

  // map<string, string> extra = 3;
  total_size += 1 *
      ::herogoogle::protobuf::internal::FromIntSize(this->_internal_extra_size());
  for (::herogoogle::protobuf::Map< std::string, std::string >::const_iterator
      it = this->_internal_extra().begin();
      it != this->_internal_extra().end(); ++it) {
    total_size += UserBlocked_ExtraEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
  }

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

  // int64 blockTime = 2;
  if (this->_internal_blocktime() != 0) {
    total_size += ::herogoogle::protobuf::internal::WireFormatLite::Int64SizePlusOne(this->_internal_blocktime());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

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

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


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

  extra_.MergeFrom(from.extra_);
  if (!from._internal_uid().empty()) {
    _internal_set_uid(from._internal_uid());
  }
  if (from._internal_blocktime() != 0) {
    _internal_set_blocktime(from._internal_blocktime());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void UserBlocked::InternalSwap(UserBlocked* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  extra_.InternalSwap(&other->extra_);
  ::herogoogle::protobuf::internal::ArenaStringPtr::InternalSwap(
      &::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(),
      &uid_, lhs_arena,
      &other->uid_, rhs_arena
  );
  swap(blocktime_, other->blocktime_);
}

::herogoogle::protobuf::Metadata UserBlocked::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2frelationship_2fmodel_2frelationship_5fmodel_2eproto[3]);
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace model
}  // namespace relationship
}  // namespace dto
}  // namespace v3beta
}  // namespace client
}  // namespace heroim
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::relationship::model::UserFriend_ExtraEntry_DoNotUse* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::relationship::model::UserFriend_ExtraEntry_DoNotUse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::relationship::model::UserFriend_ExtraEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::relationship::model::UserFriend* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::relationship::model::UserFriend >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::relationship::model::UserFriend >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::relationship::model::UserBlocked_ExtraEntry_DoNotUse* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::relationship::model::UserBlocked_ExtraEntry_DoNotUse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::relationship::model::UserBlocked_ExtraEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::relationship::model::UserBlocked* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::relationship::model::UserBlocked >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::relationship::model::UserBlocked >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)

