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

#include "client/v3beta/dto/search/search.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 search {
constexpr Condition::Condition(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : field_(&::herogoogle::protobuf::internal::fixed_address_empty_string)
  , value_(&::herogoogle::protobuf::internal::fixed_address_empty_string)
  , operation_(0)
{}
struct ConditionDefaultTypeInternal {
  constexpr ConditionDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~ConditionDefaultTypeInternal() {}
  union {
    Condition _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConditionDefaultTypeInternal _Condition_default_instance_;
constexpr SearchUserByConditionRequest::SearchUserByConditionRequest(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : conditions_()
  , base_(nullptr)
  , pageno_(0)
  , pagesize_(0){}
struct SearchUserByConditionRequestDefaultTypeInternal {
  constexpr SearchUserByConditionRequestDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~SearchUserByConditionRequestDefaultTypeInternal() {}
  union {
    SearchUserByConditionRequest _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SearchUserByConditionRequestDefaultTypeInternal _SearchUserByConditionRequest_default_instance_;
constexpr SearchUserByConditionResponse::SearchUserByConditionResponse(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : list_(){}
struct SearchUserByConditionResponseDefaultTypeInternal {
  constexpr SearchUserByConditionResponseDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~SearchUserByConditionResponseDefaultTypeInternal() {}
  union {
    SearchUserByConditionResponse _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SearchUserByConditionResponseDefaultTypeInternal _SearchUserByConditionResponse_default_instance_;
constexpr SearchUserByConditionResponseItem::SearchUserByConditionResponseItem(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : user_(nullptr){}
struct SearchUserByConditionResponseItemDefaultTypeInternal {
  constexpr SearchUserByConditionResponseItemDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~SearchUserByConditionResponseItemDefaultTypeInternal() {}
  union {
    SearchUserByConditionResponseItem _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SearchUserByConditionResponseItemDefaultTypeInternal _SearchUserByConditionResponseItem_default_instance_;
}  // namespace search
}  // namespace dto
}  // namespace v3beta
}  // namespace client
}  // namespace heroim
static ::herogoogle::protobuf::Metadata file_level_metadata_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto[4];
static const ::herogoogle::protobuf::EnumDescriptor* file_level_enum_descriptors_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto[2];
static constexpr ::herogoogle::protobuf::ServiceDescriptor const** file_level_service_descriptors_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto = nullptr;

const ::herogoogle::protobuf::uint32 TableStruct_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::search::Condition, _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::search::Condition, field_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::search::Condition, operation_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::search::Condition, value_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::search::SearchUserByConditionRequest, _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::search::SearchUserByConditionRequest, base_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::search::SearchUserByConditionRequest, conditions_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::search::SearchUserByConditionRequest, pageno_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::search::SearchUserByConditionRequest, pagesize_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::search::SearchUserByConditionResponse, _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::search::SearchUserByConditionResponse, list_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::search::SearchUserByConditionResponseItem, _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::search::SearchUserByConditionResponseItem, user_),
};
static const ::herogoogle::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, -1, sizeof(::heroim::client::v3beta::dto::search::Condition)},
  { 9, -1, -1, sizeof(::heroim::client::v3beta::dto::search::SearchUserByConditionRequest)},
  { 19, -1, -1, sizeof(::heroim::client::v3beta::dto::search::SearchUserByConditionResponse)},
  { 26, -1, -1, sizeof(::heroim::client::v3beta::dto::search::SearchUserByConditionResponseItem)},
};

static ::herogoogle::protobuf::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::search::_Condition_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::search::_SearchUserByConditionRequest_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::search::_SearchUserByConditionResponse_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::search::_SearchUserByConditionResponseItem_default_instance_),
};
#ifdef _MSC_VER
#  pragma warning(disable : 4125)
#endif  /* _MSC_VER */
const char descriptor_table_protodef_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n%client/v3beta/dto/search/search.proto\022"
  "\037heroim.client.v3beta.dto.search\032\"client"
  "/v3beta/dto/shared/api.proto\032-client/v3b"
  "eta/dto/user/model/user_model.proto\"o\n\tC"
  "ondition\022\r\n\005field\030\001 \001(\t\022D\n\toperation\030\002 \001"
  "(\01621.heroim.client.v3beta.dto.search.Com"
  "pareOperation\022\r\n\005value\030\003 \001(\t\"\273\001\n\034SearchU"
  "serByConditionRequest\0229\n\004base\030\001 \001(\0132+.he"
  "roim.client.v3beta.dto.shared.APIRequest"
  "\022>\n\nconditions\030\002 \003(\0132*.heroim.client.v3b"
  "eta.dto.search.Condition\022\016\n\006pageNo\030\003 \001(\005"
  "\022\020\n\010pageSize\030\004 \001(\005\"q\n\035SearchUserByCondit"
  "ionResponse\022P\n\004list\030\001 \003(\0132B.heroim.clien"
  "t.v3beta.dto.search.SearchUserByConditio"
  "nResponseItem\"\\\n!SearchUserByConditionRe"
  "sponseItem\0227\n\004user\030\001 \001(\0132).heroim.client"
  ".v3beta.dto.user.model.User*w\n\020CompareOp"
  "eration\022\017\n\013CompareNone\020\000\022\020\n\014CompareEqual"
  "\020\001\022\023\n\017CompareNotEqual\020\002\022\023\n\017CompareContai"
  "ns\020\003\022\026\n\022CompareNotContains\020\004*=\n\013SearchFi"
  "eld\022\025\n\021SearchFieldRoleId\020\000\022\027\n\023SearchFiel"
  "dRoleName\020\001BT\n#com.hero.csdk.api.v3beta."
  "dto.searchP\001Z#heroim/api/client/v3beta/d"
  "to/search\242\002\005IMSdkb\006proto3"
  ;
static const ::herogoogle::protobuf::internal::DescriptorTable*const descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto_deps[2] = {
  &::descriptor_table_client_2fv3beta_2fdto_2fshared_2fapi_2eproto,
  &::descriptor_table_client_2fv3beta_2fdto_2fuser_2fmodel_2fuser_5fmodel_2eproto,
};
static ::herogoogle::protobuf::internal::once_flag descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto_once;
const ::herogoogle::protobuf::internal::DescriptorTable descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto = {
  false, false, 945, descriptor_table_protodef_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto, "client/v3beta/dto/search/search.proto", 
  &descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto_once, descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto_deps, 2, 4,
  schemas, file_default_instances, TableStruct_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto::offsets,
  file_level_metadata_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto, file_level_enum_descriptors_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto, file_level_service_descriptors_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::herogoogle::protobuf::internal::DescriptorTable* descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto_getter() {
  return &descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto;
}

// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::herogoogle::protobuf::internal::AddDescriptorsRunner dynamic_init_dummy_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto(&descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto);
namespace heroim {
namespace client {
namespace v3beta {
namespace dto {
namespace search {
const ::herogoogle::protobuf::EnumDescriptor* CompareOperation_descriptor() {
  ::herogoogle::protobuf::internal::AssignDescriptors(&descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto);
  return file_level_enum_descriptors_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto[0];
}
bool CompareOperation_IsValid(int value) {
  switch (value) {
    case 0:
    case 1:
    case 2:
    case 3:
    case 4:
      return true;
    default:
      return false;
  }
}

const ::herogoogle::protobuf::EnumDescriptor* SearchField_descriptor() {
  ::herogoogle::protobuf::internal::AssignDescriptors(&descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto);
  return file_level_enum_descriptors_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto[1];
}
bool SearchField_IsValid(int value) {
  switch (value) {
    case 0:
    case 1:
      return true;
    default:
      return false;
  }
}


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

class Condition::_Internal {
 public:
};

Condition::Condition(::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.search.Condition)
}
Condition::Condition(const Condition& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  field_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_field().empty()) {
    field_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_field(), 
      GetArenaForAllocation());
  }
  value_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_value().empty()) {
    value_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_value(), 
      GetArenaForAllocation());
  }
  operation_ = from.operation_;
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.search.Condition)
}

void Condition::SharedCtor() {
field_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
value_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
operation_ = 0;
}

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

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

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

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

  field_.ClearToEmpty();
  value_.ClearToEmpty();
  operation_ = 0;
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* Condition::_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 field = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          auto str = _internal_mutable_field();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.search.Condition.field"));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.search.CompareOperation operation = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 16)) {
          ::herogoogle::protobuf::uint64 val = ::herogoogle::protobuf::internal::ReadVarint64(&ptr);
          CHK_(ptr);
          _internal_set_operation(static_cast<::heroim::client::v3beta::dto::search::CompareOperation>(val));
        } else
          goto handle_unusual;
        continue;
      // string value = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 26)) {
          auto str = _internal_mutable_value();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.search.Condition.value"));
          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* Condition::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.search.Condition)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

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

  // .heroim.client.v3beta.dto.search.CompareOperation operation = 2;
  if (this->_internal_operation() != 0) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::WriteEnumToArray(
      2, this->_internal_operation(), target);
  }

  // string value = 3;
  if (!this->_internal_value().empty()) {
    ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_value().data(), static_cast<int>(this->_internal_value().length()),
      ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
      "heroim.client.v3beta.dto.search.Condition.value");
    target = stream->WriteStringMaybeAliased(
        3, this->_internal_value(), 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.search.Condition)
  return target;
}

size_t Condition::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.search.Condition)
  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 field = 1;
  if (!this->_internal_field().empty()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::StringSize(
        this->_internal_field());
  }

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

  // .heroim.client.v3beta.dto.search.CompareOperation operation = 2;
  if (this->_internal_operation() != 0) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::EnumSize(this->_internal_operation());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

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

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


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

  if (!from._internal_field().empty()) {
    _internal_set_field(from._internal_field());
  }
  if (!from._internal_value().empty()) {
    _internal_set_value(from._internal_value());
  }
  if (from._internal_operation() != 0) {
    _internal_set_operation(from._internal_operation());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void Condition::InternalSwap(Condition* 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(),
      &field_, lhs_arena,
      &other->field_, rhs_arena
  );
  ::herogoogle::protobuf::internal::ArenaStringPtr::InternalSwap(
      &::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(),
      &value_, lhs_arena,
      &other->value_, rhs_arena
  );
  swap(operation_, other->operation_);
}

::herogoogle::protobuf::Metadata Condition::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto[0]);
}

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

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

const ::heroim::client::v3beta::dto::shared::APIRequest&
SearchUserByConditionRequest::_Internal::base(const SearchUserByConditionRequest* msg) {
  return *msg->base_;
}
void SearchUserByConditionRequest::clear_base() {
  if (GetArenaForAllocation() == nullptr && base_ != nullptr) {
    delete base_;
  }
  base_ = nullptr;
}
SearchUserByConditionRequest::SearchUserByConditionRequest(::herogoogle::protobuf::Arena* arena,
                         bool is_message_owned)
  : ::herogoogle::protobuf::Message(arena, is_message_owned),
  conditions_(arena) {
  SharedCtor();
  if (!is_message_owned) {
    RegisterArenaDtor(arena);
  }
  // @@protoc_insertion_point(arena_constructor:heroim.client.v3beta.dto.search.SearchUserByConditionRequest)
}
SearchUserByConditionRequest::SearchUserByConditionRequest(const SearchUserByConditionRequest& from)
  : ::herogoogle::protobuf::Message(),
      conditions_(from.conditions_) {
  _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;
  }
  ::memcpy(&pageno_, &from.pageno_,
    static_cast<size_t>(reinterpret_cast<char*>(&pagesize_) -
    reinterpret_cast<char*>(&pageno_)) + sizeof(pagesize_));
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.search.SearchUserByConditionRequest)
}

void SearchUserByConditionRequest::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*>(&pagesize_) -
    reinterpret_cast<char*>(&base_)) + sizeof(pagesize_));
}

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

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

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

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

  conditions_.Clear();
  if (GetArenaForAllocation() == nullptr && base_ != nullptr) {
    delete base_;
  }
  base_ = nullptr;
  ::memset(&pageno_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&pagesize_) -
      reinterpret_cast<char*>(&pageno_)) + sizeof(pagesize_));
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* SearchUserByConditionRequest::_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;
      // repeated .heroim.client.v3beta.dto.search.Condition conditions = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 18)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_conditions(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::herogoogle::protobuf::internal::ExpectTag<18>(ptr));
        } else
          goto handle_unusual;
        continue;
      // int32 pageNo = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 24)) {
          pageno_ = ::herogoogle::protobuf::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // int32 pageSize = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 32)) {
          pagesize_ = ::herogoogle::protobuf::internal::ReadVarint64(&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* SearchUserByConditionRequest::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.search.SearchUserByConditionRequest)
  ::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);
  }

  // repeated .heroim.client.v3beta.dto.search.Condition conditions = 2;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->_internal_conditions_size()); i < n; i++) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(2, this->_internal_conditions(i), target, stream);
  }

  // int32 pageNo = 3;
  if (this->_internal_pageno() != 0) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_pageno(), target);
  }

  // int32 pageSize = 4;
  if (this->_internal_pagesize() != 0) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_pagesize(), 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.search.SearchUserByConditionRequest)
  return target;
}

size_t SearchUserByConditionRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.search.SearchUserByConditionRequest)
  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.search.Condition conditions = 2;
  total_size += 1UL * this->_internal_conditions_size();
  for (const auto& msg : this->conditions_) {
    total_size +=
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(msg);
  }

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

  // int32 pageNo = 3;
  if (this->_internal_pageno() != 0) {
    total_size += ::herogoogle::protobuf::internal::WireFormatLite::Int32SizePlusOne(this->_internal_pageno());
  }

  // int32 pageSize = 4;
  if (this->_internal_pagesize() != 0) {
    total_size += ::herogoogle::protobuf::internal::WireFormatLite::Int32SizePlusOne(this->_internal_pagesize());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

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

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


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

  conditions_.MergeFrom(from.conditions_);
  if (from._internal_has_base()) {
    _internal_mutable_base()->::heroim::client::v3beta::dto::shared::APIRequest::MergeFrom(from._internal_base());
  }
  if (from._internal_pageno() != 0) {
    _internal_set_pageno(from._internal_pageno());
  }
  if (from._internal_pagesize() != 0) {
    _internal_set_pagesize(from._internal_pagesize());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

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

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

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

::herogoogle::protobuf::Metadata SearchUserByConditionRequest::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto[1]);
}

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

class SearchUserByConditionResponse::_Internal {
 public:
};

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

void SearchUserByConditionResponse::SharedCtor() {
}

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

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

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

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

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

const char* SearchUserByConditionResponse::_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.search.SearchUserByConditionResponseItem list = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_list(), 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* SearchUserByConditionResponse::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.search.SearchUserByConditionResponse)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated .heroim.client.v3beta.dto.search.SearchUserByConditionResponseItem list = 1;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->_internal_list_size()); i < n; i++) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(1, this->_internal_list(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.search.SearchUserByConditionResponse)
  return target;
}

size_t SearchUserByConditionResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.search.SearchUserByConditionResponse)
  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.search.SearchUserByConditionResponseItem list = 1;
  total_size += 1UL * this->_internal_list_size();
  for (const auto& msg : this->list_) {
    total_size +=
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(msg);
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

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

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


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

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

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

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

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

::herogoogle::protobuf::Metadata SearchUserByConditionResponse::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto[2]);
}

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

class SearchUserByConditionResponseItem::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::user::model::User& user(const SearchUserByConditionResponseItem* msg);
};

const ::heroim::client::v3beta::dto::user::model::User&
SearchUserByConditionResponseItem::_Internal::user(const SearchUserByConditionResponseItem* msg) {
  return *msg->user_;
}
void SearchUserByConditionResponseItem::clear_user() {
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
}
SearchUserByConditionResponseItem::SearchUserByConditionResponseItem(::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.search.SearchUserByConditionResponseItem)
}
SearchUserByConditionResponseItem::SearchUserByConditionResponseItem(const SearchUserByConditionResponseItem& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  if (from._internal_has_user()) {
    user_ = new ::heroim::client::v3beta::dto::user::model::User(*from.user_);
  } else {
    user_ = nullptr;
  }
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.search.SearchUserByConditionResponseItem)
}

void SearchUserByConditionResponseItem::SharedCtor() {
user_ = nullptr;
}

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

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

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

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

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

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

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

size_t SearchUserByConditionResponseItem::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.search.SearchUserByConditionResponseItem)
  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.user.model.User user = 1;
  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 SearchUserByConditionResponseItem::_class_data_ = {
    ::herogoogle::protobuf::Message::CopyWithSizeCheck,
    SearchUserByConditionResponseItem::MergeImpl
};
const ::herogoogle::protobuf::Message::ClassData*SearchUserByConditionResponseItem::GetClassData() const { return &_class_data_; }

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


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

  if (from._internal_has_user()) {
    _internal_mutable_user()->::heroim::client::v3beta::dto::user::model::User::MergeFrom(from._internal_user());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

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

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

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

::herogoogle::protobuf::Metadata SearchUserByConditionResponseItem::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fsearch_2fsearch_2eproto[3]);
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace search
}  // namespace dto
}  // namespace v3beta
}  // namespace client
}  // namespace heroim
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::search::Condition* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::search::Condition >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::search::Condition >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::search::SearchUserByConditionRequest* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::search::SearchUserByConditionRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::search::SearchUserByConditionRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::search::SearchUserByConditionResponse* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::search::SearchUserByConditionResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::search::SearchUserByConditionResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::search::SearchUserByConditionResponseItem* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::search::SearchUserByConditionResponseItem >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::search::SearchUserByConditionResponseItem >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)

