// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: mod-user.proto

#include "mod-user.pb.h"

#include <algorithm>

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

PROTOBUF_PRAGMA_INIT_SEG

namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;

PROTOBUF_CONSTEXPR RetUserElement::RetUserElement(
    ::_pbi::ConstantInitialized)
  : username_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , id_(0)
  , role_(0)

  , immutable_(false){}
struct RetUserElementDefaultTypeInternal {
  PROTOBUF_CONSTEXPR RetUserElementDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~RetUserElementDefaultTypeInternal() {}
  union {
    RetUserElement _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RetUserElementDefaultTypeInternal _RetUserElement_default_instance_;
PROTOBUF_CONSTEXPR ReqUserAdd::ReqUserAdd(
    ::_pbi::ConstantInitialized)
  : username_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , pwd_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , role_(0)
{}
struct ReqUserAddDefaultTypeInternal {
  PROTOBUF_CONSTEXPR ReqUserAddDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~ReqUserAddDefaultTypeInternal() {}
  union {
    ReqUserAdd _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReqUserAddDefaultTypeInternal _ReqUserAdd_default_instance_;
PROTOBUF_CONSTEXPR ReqUserUpdate::ReqUserUpdate(
    ::_pbi::ConstantInitialized)
  : oldpwd_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , newpwd_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , id_(0){}
struct ReqUserUpdateDefaultTypeInternal {
  PROTOBUF_CONSTEXPR ReqUserUpdateDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~ReqUserUpdateDefaultTypeInternal() {}
  union {
    ReqUserUpdate _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReqUserUpdateDefaultTypeInternal _ReqUserUpdate_default_instance_;
PROTOBUF_CONSTEXPR ReqUserDel::ReqUserDel(
    ::_pbi::ConstantInitialized)
  : id_()
  , _id_cached_byte_size_(0)
  , uid_(0){}
struct ReqUserDelDefaultTypeInternal {
  PROTOBUF_CONSTEXPR ReqUserDelDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~ReqUserDelDefaultTypeInternal() {}
  union {
    ReqUserDel _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReqUserDelDefaultTypeInternal _ReqUserDel_default_instance_;
PROTOBUF_CONSTEXPR ReqUserLogin::ReqUserLogin(
    ::_pbi::ConstantInitialized)
  : username_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , pwd_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){}
struct ReqUserLoginDefaultTypeInternal {
  PROTOBUF_CONSTEXPR ReqUserLoginDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~ReqUserLoginDefaultTypeInternal() {}
  union {
    ReqUserLogin _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReqUserLoginDefaultTypeInternal _ReqUserLogin_default_instance_;
static ::_pb::Metadata file_level_metadata_mod_2duser_2eproto[5];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_mod_2duser_2eproto[2];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_mod_2duser_2eproto = nullptr;

const uint32_t TableStruct_mod_2duser_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::RetUserElement, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::RetUserElement, id_),
  PROTOBUF_FIELD_OFFSET(::RetUserElement, username_),
  PROTOBUF_FIELD_OFFSET(::RetUserElement, role_),
  PROTOBUF_FIELD_OFFSET(::RetUserElement, immutable_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::ReqUserAdd, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::ReqUserAdd, username_),
  PROTOBUF_FIELD_OFFSET(::ReqUserAdd, pwd_),
  PROTOBUF_FIELD_OFFSET(::ReqUserAdd, role_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::ReqUserUpdate, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::ReqUserUpdate, id_),
  PROTOBUF_FIELD_OFFSET(::ReqUserUpdate, oldpwd_),
  PROTOBUF_FIELD_OFFSET(::ReqUserUpdate, newpwd_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::ReqUserDel, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::ReqUserDel, id_),
  PROTOBUF_FIELD_OFFSET(::ReqUserDel, uid_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::ReqUserLogin, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::ReqUserLogin, username_),
  PROTOBUF_FIELD_OFFSET(::ReqUserLogin, pwd_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, -1, sizeof(::RetUserElement)},
  { 10, -1, -1, sizeof(::ReqUserAdd)},
  { 19, -1, -1, sizeof(::ReqUserUpdate)},
  { 28, -1, -1, sizeof(::ReqUserDel)},
  { 36, -1, -1, sizeof(::ReqUserLogin)},
};

static const ::_pb::Message* const file_default_instances[] = {
  &::_RetUserElement_default_instance_._instance,
  &::_ReqUserAdd_default_instance_._instance,
  &::_ReqUserUpdate_default_instance_._instance,
  &::_ReqUserDel_default_instance_._instance,
  &::_ReqUserLogin_default_instance_._instance,
};

const char descriptor_table_protodef_mod_2duser_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n\016mod-user.proto\"\216\001\n\016RetUserElement\022\n\n\002i"
  "d\030\001 \001(\005\022\020\n\010username\030\002 \001(\t\022\"\n\004role\030\003 \001(\0162"
  "\024.RetUserElement.Role\022\021\n\timmutable\030\004 \001(\010"
  "\"\'\n\004Role\022\010\n\004None\020\000\022\t\n\005Admin\020\001\022\n\n\006Normal\020"
  "\002\"t\n\nReqUserAdd\022\020\n\010username\030\001 \001(\t\022\013\n\003pwd"
  "\030\002 \001(\t\022\036\n\004role\030\003 \001(\0162\020.ReqUserAdd.Role\"\'"
  "\n\004Role\022\010\n\004None\020\000\022\t\n\005Admin\020\001\022\n\n\006Normal\020\002\""
  ";\n\rReqUserUpdate\022\n\n\002id\030\001 \001(\005\022\016\n\006oldPwd\030\002"
  " \001(\t\022\016\n\006NewPwd\030\003 \001(\t\"%\n\nReqUserDel\022\n\n\002id"
  "\030\001 \003(\005\022\013\n\003uid\030\002 \001(\005\"-\n\014ReqUserLogin\022\020\n\010u"
  "sername\030\001 \001(\t\022\013\n\003pwd\030\002 \001(\tB\014Z\n../protogo"
  "b\006proto3"
  ;
static ::_pbi::once_flag descriptor_table_mod_2duser_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_mod_2duser_2eproto = {
    false, false, 448, descriptor_table_protodef_mod_2duser_2eproto,
    "mod-user.proto",
    &descriptor_table_mod_2duser_2eproto_once, nullptr, 0, 5,
    schemas, file_default_instances, TableStruct_mod_2duser_2eproto::offsets,
    file_level_metadata_mod_2duser_2eproto, file_level_enum_descriptors_mod_2duser_2eproto,
    file_level_service_descriptors_mod_2duser_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_mod_2duser_2eproto_getter() {
  return &descriptor_table_mod_2duser_2eproto;
}

// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_mod_2duser_2eproto(&descriptor_table_mod_2duser_2eproto);
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* RetUserElement_Role_descriptor() {
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_mod_2duser_2eproto);
  return file_level_enum_descriptors_mod_2duser_2eproto[0];
}
bool RetUserElement_Role_IsValid(int value) {
  switch (value) {
    case 0:
    case 1:
    case 2:
      return true;
    default:
      return false;
  }
}

#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr RetUserElement_Role RetUserElement::None;
constexpr RetUserElement_Role RetUserElement::Admin;
constexpr RetUserElement_Role RetUserElement::Normal;
constexpr RetUserElement_Role RetUserElement::Role_MIN;
constexpr RetUserElement_Role RetUserElement::Role_MAX;
constexpr int RetUserElement::Role_ARRAYSIZE;
#endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ReqUserAdd_Role_descriptor() {
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_mod_2duser_2eproto);
  return file_level_enum_descriptors_mod_2duser_2eproto[1];
}
bool ReqUserAdd_Role_IsValid(int value) {
  switch (value) {
    case 0:
    case 1:
    case 2:
      return true;
    default:
      return false;
  }
}

#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr ReqUserAdd_Role ReqUserAdd::None;
constexpr ReqUserAdd_Role ReqUserAdd::Admin;
constexpr ReqUserAdd_Role ReqUserAdd::Normal;
constexpr ReqUserAdd_Role ReqUserAdd::Role_MIN;
constexpr ReqUserAdd_Role ReqUserAdd::Role_MAX;
constexpr int ReqUserAdd::Role_ARRAYSIZE;
#endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))

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

class RetUserElement::_Internal {
 public:
};

RetUserElement::RetUserElement(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:RetUserElement)
}
RetUserElement::RetUserElement(const RetUserElement& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  username_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    username_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_username().empty()) {
    username_.Set(from._internal_username(), 
      GetArenaForAllocation());
  }
  ::memcpy(&id_, &from.id_,
    static_cast<size_t>(reinterpret_cast<char*>(&immutable_) -
    reinterpret_cast<char*>(&id_)) + sizeof(immutable_));
  // @@protoc_insertion_point(copy_constructor:RetUserElement)
}

inline void RetUserElement::SharedCtor() {
username_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  username_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&id_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&immutable_) -
    reinterpret_cast<char*>(&id_)) + sizeof(immutable_));
}

RetUserElement::~RetUserElement() {
  // @@protoc_insertion_point(destructor:RetUserElement)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void RetUserElement::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  username_.Destroy();
}

void RetUserElement::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void RetUserElement::Clear() {
// @@protoc_insertion_point(message_clear_start:RetUserElement)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  username_.ClearToEmpty();
  ::memset(&id_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&immutable_) -
      reinterpret_cast<char*>(&id_)) + sizeof(immutable_));
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* RetUserElement::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // int32 id = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
          id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // string username = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_username();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "RetUserElement.username"));
        } else
          goto handle_unusual;
        continue;
      // .RetUserElement.Role role = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
          uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
          _internal_set_role(static_cast<::RetUserElement_Role>(val));
        } else
          goto handle_unusual;
        continue;
      // bool immutable = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
          immutable_ = ::PROTOBUF_NAMESPACE_ID::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* RetUserElement::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:RetUserElement)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // int32 id = 1;
  if (this->_internal_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target);
  }

  // string username = 2;
  if (!this->_internal_username().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_username().data(), static_cast<int>(this->_internal_username().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "RetUserElement.username");
    target = stream->WriteStringMaybeAliased(
        2, this->_internal_username(), target);
  }

  // .RetUserElement.Role role = 3;
  if (this->_internal_role() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
      3, this->_internal_role(), target);
  }

  // bool immutable = 4;
  if (this->_internal_immutable() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_immutable(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:RetUserElement)
  return target;
}

size_t RetUserElement::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:RetUserElement)
  size_t total_size = 0;

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

  // string username = 2;
  if (!this->_internal_username().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_username());
  }

  // int32 id = 1;
  if (this->_internal_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_id());
  }

  // .RetUserElement.Role role = 3;
  if (this->_internal_role() != 0) {
    total_size += 1 +
      ::_pbi::WireFormatLite::EnumSize(this->_internal_role());
  }

  // bool immutable = 4;
  if (this->_internal_immutable() != 0) {
    total_size += 1 + 1;
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RetUserElement::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    RetUserElement::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RetUserElement::GetClassData() const { return &_class_data_; }

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


void RetUserElement::MergeFrom(const RetUserElement& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:RetUserElement)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_username().empty()) {
    _internal_set_username(from._internal_username());
  }
  if (from._internal_id() != 0) {
    _internal_set_id(from._internal_id());
  }
  if (from._internal_role() != 0) {
    _internal_set_role(from._internal_role());
  }
  if (from._internal_immutable() != 0) {
    _internal_set_immutable(from._internal_immutable());
  }
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void RetUserElement::InternalSwap(RetUserElement* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &username_, lhs_arena,
      &other->username_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(RetUserElement, immutable_)
      + sizeof(RetUserElement::immutable_)
      - PROTOBUF_FIELD_OFFSET(RetUserElement, id_)>(
          reinterpret_cast<char*>(&id_),
          reinterpret_cast<char*>(&other->id_));
}

::PROTOBUF_NAMESPACE_ID::Metadata RetUserElement::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_mod_2duser_2eproto_getter, &descriptor_table_mod_2duser_2eproto_once,
      file_level_metadata_mod_2duser_2eproto[0]);
}

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

class ReqUserAdd::_Internal {
 public:
};

ReqUserAdd::ReqUserAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:ReqUserAdd)
}
ReqUserAdd::ReqUserAdd(const ReqUserAdd& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  username_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    username_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_username().empty()) {
    username_.Set(from._internal_username(), 
      GetArenaForAllocation());
  }
  pwd_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    pwd_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_pwd().empty()) {
    pwd_.Set(from._internal_pwd(), 
      GetArenaForAllocation());
  }
  role_ = from.role_;
  // @@protoc_insertion_point(copy_constructor:ReqUserAdd)
}

inline void ReqUserAdd::SharedCtor() {
username_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  username_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
pwd_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  pwd_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
role_ = 0;
}

ReqUserAdd::~ReqUserAdd() {
  // @@protoc_insertion_point(destructor:ReqUserAdd)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void ReqUserAdd::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  username_.Destroy();
  pwd_.Destroy();
}

void ReqUserAdd::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void ReqUserAdd::Clear() {
// @@protoc_insertion_point(message_clear_start:ReqUserAdd)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  username_.ClearToEmpty();
  pwd_.ClearToEmpty();
  role_ = 0;
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* ReqUserAdd::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string username = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_username();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "ReqUserAdd.username"));
        } else
          goto handle_unusual;
        continue;
      // string pwd = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_pwd();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "ReqUserAdd.pwd"));
        } else
          goto handle_unusual;
        continue;
      // .ReqUserAdd.Role role = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
          uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
          _internal_set_role(static_cast<::ReqUserAdd_Role>(val));
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* ReqUserAdd::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:ReqUserAdd)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string username = 1;
  if (!this->_internal_username().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_username().data(), static_cast<int>(this->_internal_username().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "ReqUserAdd.username");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_username(), target);
  }

  // string pwd = 2;
  if (!this->_internal_pwd().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_pwd().data(), static_cast<int>(this->_internal_pwd().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "ReqUserAdd.pwd");
    target = stream->WriteStringMaybeAliased(
        2, this->_internal_pwd(), target);
  }

  // .ReqUserAdd.Role role = 3;
  if (this->_internal_role() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
      3, this->_internal_role(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:ReqUserAdd)
  return target;
}

size_t ReqUserAdd::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ReqUserAdd)
  size_t total_size = 0;

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

  // string username = 1;
  if (!this->_internal_username().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_username());
  }

  // string pwd = 2;
  if (!this->_internal_pwd().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_pwd());
  }

  // .ReqUserAdd.Role role = 3;
  if (this->_internal_role() != 0) {
    total_size += 1 +
      ::_pbi::WireFormatLite::EnumSize(this->_internal_role());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReqUserAdd::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    ReqUserAdd::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReqUserAdd::GetClassData() const { return &_class_data_; }

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


void ReqUserAdd::MergeFrom(const ReqUserAdd& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:ReqUserAdd)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_username().empty()) {
    _internal_set_username(from._internal_username());
  }
  if (!from._internal_pwd().empty()) {
    _internal_set_pwd(from._internal_pwd());
  }
  if (from._internal_role() != 0) {
    _internal_set_role(from._internal_role());
  }
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void ReqUserAdd::InternalSwap(ReqUserAdd* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &username_, lhs_arena,
      &other->username_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &pwd_, lhs_arena,
      &other->pwd_, rhs_arena
  );
  swap(role_, other->role_);
}

::PROTOBUF_NAMESPACE_ID::Metadata ReqUserAdd::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_mod_2duser_2eproto_getter, &descriptor_table_mod_2duser_2eproto_once,
      file_level_metadata_mod_2duser_2eproto[1]);
}

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

class ReqUserUpdate::_Internal {
 public:
};

ReqUserUpdate::ReqUserUpdate(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:ReqUserUpdate)
}
ReqUserUpdate::ReqUserUpdate(const ReqUserUpdate& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  oldpwd_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    oldpwd_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_oldpwd().empty()) {
    oldpwd_.Set(from._internal_oldpwd(), 
      GetArenaForAllocation());
  }
  newpwd_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    newpwd_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_newpwd().empty()) {
    newpwd_.Set(from._internal_newpwd(), 
      GetArenaForAllocation());
  }
  id_ = from.id_;
  // @@protoc_insertion_point(copy_constructor:ReqUserUpdate)
}

inline void ReqUserUpdate::SharedCtor() {
oldpwd_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  oldpwd_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
newpwd_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  newpwd_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
id_ = 0;
}

ReqUserUpdate::~ReqUserUpdate() {
  // @@protoc_insertion_point(destructor:ReqUserUpdate)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void ReqUserUpdate::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  oldpwd_.Destroy();
  newpwd_.Destroy();
}

void ReqUserUpdate::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void ReqUserUpdate::Clear() {
// @@protoc_insertion_point(message_clear_start:ReqUserUpdate)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  oldpwd_.ClearToEmpty();
  newpwd_.ClearToEmpty();
  id_ = 0;
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* ReqUserUpdate::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // int32 id = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
          id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // string oldPwd = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_oldpwd();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "ReqUserUpdate.oldPwd"));
        } else
          goto handle_unusual;
        continue;
      // string NewPwd = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
          auto str = _internal_mutable_newpwd();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "ReqUserUpdate.NewPwd"));
        } 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* ReqUserUpdate::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:ReqUserUpdate)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // int32 id = 1;
  if (this->_internal_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target);
  }

  // string oldPwd = 2;
  if (!this->_internal_oldpwd().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_oldpwd().data(), static_cast<int>(this->_internal_oldpwd().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "ReqUserUpdate.oldPwd");
    target = stream->WriteStringMaybeAliased(
        2, this->_internal_oldpwd(), target);
  }

  // string NewPwd = 3;
  if (!this->_internal_newpwd().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_newpwd().data(), static_cast<int>(this->_internal_newpwd().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "ReqUserUpdate.NewPwd");
    target = stream->WriteStringMaybeAliased(
        3, this->_internal_newpwd(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:ReqUserUpdate)
  return target;
}

size_t ReqUserUpdate::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ReqUserUpdate)
  size_t total_size = 0;

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

  // string oldPwd = 2;
  if (!this->_internal_oldpwd().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_oldpwd());
  }

  // string NewPwd = 3;
  if (!this->_internal_newpwd().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_newpwd());
  }

  // int32 id = 1;
  if (this->_internal_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_id());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReqUserUpdate::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    ReqUserUpdate::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReqUserUpdate::GetClassData() const { return &_class_data_; }

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


void ReqUserUpdate::MergeFrom(const ReqUserUpdate& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:ReqUserUpdate)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_oldpwd().empty()) {
    _internal_set_oldpwd(from._internal_oldpwd());
  }
  if (!from._internal_newpwd().empty()) {
    _internal_set_newpwd(from._internal_newpwd());
  }
  if (from._internal_id() != 0) {
    _internal_set_id(from._internal_id());
  }
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void ReqUserUpdate::InternalSwap(ReqUserUpdate* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &oldpwd_, lhs_arena,
      &other->oldpwd_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &newpwd_, lhs_arena,
      &other->newpwd_, rhs_arena
  );
  swap(id_, other->id_);
}

::PROTOBUF_NAMESPACE_ID::Metadata ReqUserUpdate::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_mod_2duser_2eproto_getter, &descriptor_table_mod_2duser_2eproto_once,
      file_level_metadata_mod_2duser_2eproto[2]);
}

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

class ReqUserDel::_Internal {
 public:
};

ReqUserDel::ReqUserDel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  id_(arena) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:ReqUserDel)
}
ReqUserDel::ReqUserDel(const ReqUserDel& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      id_(from.id_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  uid_ = from.uid_;
  // @@protoc_insertion_point(copy_constructor:ReqUserDel)
}

inline void ReqUserDel::SharedCtor() {
uid_ = 0;
}

ReqUserDel::~ReqUserDel() {
  // @@protoc_insertion_point(destructor:ReqUserDel)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

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

void ReqUserDel::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void ReqUserDel::Clear() {
// @@protoc_insertion_point(message_clear_start:ReqUserDel)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  id_.Clear();
  uid_ = 0;
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* ReqUserDel::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // repeated int32 id = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_id(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 8) {
          _internal_add_id(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // int32 uid = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
          uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* ReqUserDel::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:ReqUserDel)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated int32 id = 1;
  {
    int byte_size = _id_cached_byte_size_.load(std::memory_order_relaxed);
    if (byte_size > 0) {
      target = stream->WriteInt32Packed(
          1, _internal_id(), byte_size, target);
    }
  }

  // int32 uid = 2;
  if (this->_internal_uid() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:ReqUserDel)
  return target;
}

size_t ReqUserDel::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ReqUserDel)
  size_t total_size = 0;

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

  // repeated int32 id = 1;
  {
    size_t data_size = ::_pbi::WireFormatLite::
      Int32Size(this->id_);
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    int cached_size = ::_pbi::ToCachedSize(data_size);
    _id_cached_byte_size_.store(cached_size,
                                    std::memory_order_relaxed);
    total_size += data_size;
  }

  // int32 uid = 2;
  if (this->_internal_uid() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReqUserDel::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    ReqUserDel::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReqUserDel::GetClassData() const { return &_class_data_; }

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


void ReqUserDel::MergeFrom(const ReqUserDel& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:ReqUserDel)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  id_.MergeFrom(from.id_);
  if (from._internal_uid() != 0) {
    _internal_set_uid(from._internal_uid());
  }
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void ReqUserDel::InternalSwap(ReqUserDel* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  id_.InternalSwap(&other->id_);
  swap(uid_, other->uid_);
}

::PROTOBUF_NAMESPACE_ID::Metadata ReqUserDel::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_mod_2duser_2eproto_getter, &descriptor_table_mod_2duser_2eproto_once,
      file_level_metadata_mod_2duser_2eproto[3]);
}

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

class ReqUserLogin::_Internal {
 public:
};

ReqUserLogin::ReqUserLogin(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:ReqUserLogin)
}
ReqUserLogin::ReqUserLogin(const ReqUserLogin& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  username_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    username_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_username().empty()) {
    username_.Set(from._internal_username(), 
      GetArenaForAllocation());
  }
  pwd_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    pwd_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_pwd().empty()) {
    pwd_.Set(from._internal_pwd(), 
      GetArenaForAllocation());
  }
  // @@protoc_insertion_point(copy_constructor:ReqUserLogin)
}

inline void ReqUserLogin::SharedCtor() {
username_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  username_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
pwd_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  pwd_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

ReqUserLogin::~ReqUserLogin() {
  // @@protoc_insertion_point(destructor:ReqUserLogin)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void ReqUserLogin::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  username_.Destroy();
  pwd_.Destroy();
}

void ReqUserLogin::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void ReqUserLogin::Clear() {
// @@protoc_insertion_point(message_clear_start:ReqUserLogin)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  username_.ClearToEmpty();
  pwd_.ClearToEmpty();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* ReqUserLogin::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string username = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_username();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "ReqUserLogin.username"));
        } else
          goto handle_unusual;
        continue;
      // string pwd = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_pwd();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "ReqUserLogin.pwd"));
        } 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* ReqUserLogin::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:ReqUserLogin)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string username = 1;
  if (!this->_internal_username().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_username().data(), static_cast<int>(this->_internal_username().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "ReqUserLogin.username");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_username(), target);
  }

  // string pwd = 2;
  if (!this->_internal_pwd().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_pwd().data(), static_cast<int>(this->_internal_pwd().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "ReqUserLogin.pwd");
    target = stream->WriteStringMaybeAliased(
        2, this->_internal_pwd(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:ReqUserLogin)
  return target;
}

size_t ReqUserLogin::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ReqUserLogin)
  size_t total_size = 0;

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

  // string username = 1;
  if (!this->_internal_username().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_username());
  }

  // string pwd = 2;
  if (!this->_internal_pwd().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_pwd());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReqUserLogin::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    ReqUserLogin::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReqUserLogin::GetClassData() const { return &_class_data_; }

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


void ReqUserLogin::MergeFrom(const ReqUserLogin& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:ReqUserLogin)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_username().empty()) {
    _internal_set_username(from._internal_username());
  }
  if (!from._internal_pwd().empty()) {
    _internal_set_pwd(from._internal_pwd());
  }
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void ReqUserLogin::InternalSwap(ReqUserLogin* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &username_, lhs_arena,
      &other->username_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &pwd_, lhs_arena,
      &other->pwd_, rhs_arena
  );
}

::PROTOBUF_NAMESPACE_ID::Metadata ReqUserLogin::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_mod_2duser_2eproto_getter, &descriptor_table_mod_2duser_2eproto_once,
      file_level_metadata_mod_2duser_2eproto[4]);
}

// @@protoc_insertion_point(namespace_scope)
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::RetUserElement*
Arena::CreateMaybeMessage< ::RetUserElement >(Arena* arena) {
  return Arena::CreateMessageInternal< ::RetUserElement >(arena);
}
template<> PROTOBUF_NOINLINE ::ReqUserAdd*
Arena::CreateMaybeMessage< ::ReqUserAdd >(Arena* arena) {
  return Arena::CreateMessageInternal< ::ReqUserAdd >(arena);
}
template<> PROTOBUF_NOINLINE ::ReqUserUpdate*
Arena::CreateMaybeMessage< ::ReqUserUpdate >(Arena* arena) {
  return Arena::CreateMessageInternal< ::ReqUserUpdate >(arena);
}
template<> PROTOBUF_NOINLINE ::ReqUserDel*
Arena::CreateMaybeMessage< ::ReqUserDel >(Arena* arena) {
  return Arena::CreateMessageInternal< ::ReqUserDel >(arena);
}
template<> PROTOBUF_NOINLINE ::ReqUserLogin*
Arena::CreateMaybeMessage< ::ReqUserLogin >(Arena* arena) {
  return Arena::CreateMessageInternal< ::ReqUserLogin >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
