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

#include "client/v3beta/dto/message/session_dto.pb.h"

#include <algorithm>

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


PROTOBUF_PRAGMA_INIT_SEG
namespace heroim {
namespace client {
namespace v3beta {
namespace dto {
namespace message {
constexpr SessionListRequest::SessionListRequest(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : base_(nullptr){}
struct SessionListRequestDefaultTypeInternal {
  constexpr SessionListRequestDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~SessionListRequestDefaultTypeInternal() {}
  union {
    SessionListRequest _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SessionListRequestDefaultTypeInternal _SessionListRequest_default_instance_;
constexpr SessionListResponse::SessionListResponse(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : list_(){}
struct SessionListResponseDefaultTypeInternal {
  constexpr SessionListResponseDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~SessionListResponseDefaultTypeInternal() {}
  union {
    SessionListResponse _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SessionListResponseDefaultTypeInternal _SessionListResponse_default_instance_;
constexpr SessionListItem::SessionListItem(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : sessionkey_(nullptr)
  , user_(nullptr)
  , group_(nullptr)
  , last_(nullptr)
  , sort_(nullptr)
  , channel_(nullptr)
  , updatetime_(int64_t{0}){}
struct SessionListItemDefaultTypeInternal {
  constexpr SessionListItemDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~SessionListItemDefaultTypeInternal() {}
  union {
    SessionListItem _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SessionListItemDefaultTypeInternal _SessionListItem_default_instance_;
constexpr SessionDeleteRequest::SessionDeleteRequest(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : base_(nullptr)
  , sessionkey_(nullptr){}
struct SessionDeleteRequestDefaultTypeInternal {
  constexpr SessionDeleteRequestDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~SessionDeleteRequestDefaultTypeInternal() {}
  union {
    SessionDeleteRequest _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SessionDeleteRequestDefaultTypeInternal _SessionDeleteRequest_default_instance_;
constexpr SessionDeleteResponse::SessionDeleteResponse(
  ::herogoogle::protobuf::internal::ConstantInitialized){}
struct SessionDeleteResponseDefaultTypeInternal {
  constexpr SessionDeleteResponseDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~SessionDeleteResponseDefaultTypeInternal() {}
  union {
    SessionDeleteResponse _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SessionDeleteResponseDefaultTypeInternal _SessionDeleteResponse_default_instance_;
constexpr SessionSortRequest::SessionSortRequest(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : base_(nullptr)
  , sessionkey_(nullptr)
  , status_(0)
{}
struct SessionSortRequestDefaultTypeInternal {
  constexpr SessionSortRequestDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~SessionSortRequestDefaultTypeInternal() {}
  union {
    SessionSortRequest _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SessionSortRequestDefaultTypeInternal _SessionSortRequest_default_instance_;
constexpr SessionSortResponse::SessionSortResponse(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : time_(int64_t{0}){}
struct SessionSortResponseDefaultTypeInternal {
  constexpr SessionSortResponseDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~SessionSortResponseDefaultTypeInternal() {}
  union {
    SessionSortResponse _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SessionSortResponseDefaultTypeInternal _SessionSortResponse_default_instance_;
}  // namespace message
}  // namespace dto
}  // namespace v3beta
}  // namespace client
}  // namespace heroim
static ::herogoogle::protobuf::Metadata file_level_metadata_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto[7];
static const ::herogoogle::protobuf::EnumDescriptor* file_level_enum_descriptors_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto[2];
static constexpr ::herogoogle::protobuf::ServiceDescriptor const** file_level_service_descriptors_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto = nullptr;

const ::herogoogle::protobuf::uint32 TableStruct_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionListRequest, _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::message::SessionListRequest, base_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionListResponse, _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::message::SessionListResponse, list_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionListItem, _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::message::SessionListItem, sessionkey_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionListItem, user_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionListItem, group_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionListItem, last_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionListItem, sort_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionListItem, channel_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionListItem, updatetime_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionDeleteRequest, _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::message::SessionDeleteRequest, base_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionDeleteRequest, sessionkey_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionDeleteResponse, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionSortRequest, _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::message::SessionSortRequest, base_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionSortRequest, sessionkey_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionSortRequest, status_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::message::SessionSortResponse, _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::message::SessionSortResponse, time_),
};
static const ::herogoogle::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, -1, sizeof(::heroim::client::v3beta::dto::message::SessionListRequest)},
  { 7, -1, -1, sizeof(::heroim::client::v3beta::dto::message::SessionListResponse)},
  { 14, -1, -1, sizeof(::heroim::client::v3beta::dto::message::SessionListItem)},
  { 27, -1, -1, sizeof(::heroim::client::v3beta::dto::message::SessionDeleteRequest)},
  { 35, -1, -1, sizeof(::heroim::client::v3beta::dto::message::SessionDeleteResponse)},
  { 41, -1, -1, sizeof(::heroim::client::v3beta::dto::message::SessionSortRequest)},
  { 50, -1, -1, sizeof(::heroim::client::v3beta::dto::message::SessionSortResponse)},
};

static ::herogoogle::protobuf::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::message::_SessionListRequest_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::message::_SessionListResponse_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::message::_SessionListItem_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::message::_SessionDeleteRequest_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::message::_SessionDeleteResponse_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::message::_SessionSortRequest_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::message::_SessionSortResponse_default_instance_),
};
#ifdef _MSC_VER
#  pragma warning(disable : 4125)
#endif  /* _MSC_VER */
const char descriptor_table_protodef_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n+client/v3beta/dto/message/session_dto."
  "proto\022 heroim.client.v3beta.dto.message\032"
  "3client/v3beta/dto/message/model/message"
  "_model.proto\032-client/v3beta/dto/user/mod"
  "el/user_model.proto\032/client/v3beta/dto/g"
  "roup/model/group_model.proto\0323client/v3b"
  "eta/dto/channel/model/channel_model.prot"
  "o\032\"client/v3beta/dto/shared/api.proto\"O\n"
  "\022SessionListRequest\0229\n\004base\030\001 \001(\0132+.hero"
  "im.client.v3beta.dto.shared.APIRequest\"V"
  "\n\023SessionListResponse\022\?\n\004list\030\001 \003(\01321.he"
  "roim.client.v3beta.dto.message.SessionLi"
  "stItem\"\252\003\n\017SessionListItem\022F\n\nsessionKey"
  "\030\001 \001(\01322.heroim.client.v3beta.dto.messag"
  "e.model.SessionKey\0227\n\004user\030\002 \001(\0132).heroi"
  "m.client.v3beta.dto.user.model.User\022:\n\005g"
  "roup\030\003 \001(\0132+.heroim.client.v3beta.dto.gr"
  "oup.model.Group\022=\n\004last\030\004 \001(\0132/.heroim.c"
  "lient.v3beta.dto.message.model.Message\022E"
  "\n\004sort\030\005 \001(\01327.heroim.client.v3beta.dto."
  "message.model.UserSessionSort\022@\n\007channel"
  "\030\006 \001(\0132/.heroim.client.v3beta.dto.channe"
  "l.model.Channel\022\022\n\nupdateTime\030\007 \001(\003\"\231\001\n\024"
  "SessionDeleteRequest\0229\n\004base\030\001 \001(\0132+.her"
  "oim.client.v3beta.dto.shared.APIRequest\022"
  "F\n\nsessionKey\030\002 \001(\01322.heroim.client.v3be"
  "ta.dto.message.model.SessionKey\"\027\n\025Sessi"
  "onDeleteResponse\"\207\002\n\022SessionSortRequest\022"
  "9\n\004base\030\001 \001(\0132+.heroim.client.v3beta.dto"
  ".shared.APIRequest\022F\n\nsessionKey\030\002 \001(\01322"
  ".heroim.client.v3beta.dto.message.model."
  "SessionKey\022K\n\006status\030\003 \001(\0162;.heroim.clie"
  "nt.v3beta.dto.message.SessionSortRequest"
  ".Status\"!\n\006Status\022\013\n\007Disable\020\000\022\n\n\006Enable"
  "\020\001\"#\n\023SessionSortResponse\022\014\n\004time\030\001 \001(\003*"
  "2\n\016QueryDirection\022\010\n\004None\020\000\022\n\n\006Newest\020\001\022"
  "\n\n\006Oldest\020\002B\213\001\n$com.hero.csdk.api.v3beta"
  ".dto.messageP\001Z$heroim/api/client/v3beta"
  "/dto/message\242\002\005IMSdk\252\0022Im.CSDK.Unity.cha"
  "t.entry.Runtime.entry2.v3.messageb\006proto"
  "3"
  ;
static const ::herogoogle::protobuf::internal::DescriptorTable*const descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_deps[5] = {
  &::descriptor_table_client_2fv3beta_2fdto_2fchannel_2fmodel_2fchannel_5fmodel_2eproto,
  &::descriptor_table_client_2fv3beta_2fdto_2fgroup_2fmodel_2fgroup_5fmodel_2eproto,
  &::descriptor_table_client_2fv3beta_2fdto_2fmessage_2fmodel_2fmessage_5fmodel_2eproto,
  &::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_2fmessage_2fsession_5fdto_2eproto_once;
const ::herogoogle::protobuf::internal::DescriptorTable descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto = {
  false, false, 1601, descriptor_table_protodef_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto, "client/v3beta/dto/message/session_dto.proto", 
  &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_once, descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_deps, 5, 7,
  schemas, file_default_instances, TableStruct_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto::offsets,
  file_level_metadata_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto, file_level_enum_descriptors_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto, file_level_service_descriptors_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::herogoogle::protobuf::internal::DescriptorTable* descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_getter() {
  return &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto;
}

// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::herogoogle::protobuf::internal::AddDescriptorsRunner dynamic_init_dummy_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto(&descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto);
namespace heroim {
namespace client {
namespace v3beta {
namespace dto {
namespace message {
const ::herogoogle::protobuf::EnumDescriptor* SessionSortRequest_Status_descriptor() {
  ::herogoogle::protobuf::internal::AssignDescriptors(&descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto);
  return file_level_enum_descriptors_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto[0];
}
bool SessionSortRequest_Status_IsValid(int value) {
  switch (value) {
    case 0:
    case 1:
      return true;
    default:
      return false;
  }
}

#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
constexpr SessionSortRequest_Status SessionSortRequest::Disable;
constexpr SessionSortRequest_Status SessionSortRequest::Enable;
constexpr SessionSortRequest_Status SessionSortRequest::Status_MIN;
constexpr SessionSortRequest_Status SessionSortRequest::Status_MAX;
constexpr int SessionSortRequest::Status_ARRAYSIZE;
#endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
const ::herogoogle::protobuf::EnumDescriptor* QueryDirection_descriptor() {
  ::herogoogle::protobuf::internal::AssignDescriptors(&descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto);
  return file_level_enum_descriptors_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto[1];
}
bool QueryDirection_IsValid(int value) {
  switch (value) {
    case 0:
    case 1:
    case 2:
      return true;
    default:
      return false;
  }
}


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

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

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

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

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

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

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

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

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

const char* SessionListRequest::_InternalParse(const char* ptr, ::herogoogle::protobuf::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::herogoogle::protobuf::uint32 tag;
    ptr = ::herogoogle::protobuf::internal::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // .heroim.client.v3beta.dto.shared.APIRequest base = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_base(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

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

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

size_t SessionListRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.message.SessionListRequest)
  size_t total_size = 0;

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

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

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

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

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


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

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

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

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

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

::herogoogle::protobuf::Metadata SessionListRequest::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto[0]);
}

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

class SessionListResponse::_Internal {
 public:
};

SessionListResponse::SessionListResponse(::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.message.SessionListResponse)
}
SessionListResponse::SessionListResponse(const SessionListResponse& 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.message.SessionListResponse)
}

void SessionListResponse::SharedCtor() {
}

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

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

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

void SessionListResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:heroim.client.v3beta.dto.message.SessionListResponse)
  ::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* SessionListResponse::_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.message.SessionListItem 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* SessionListResponse::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.message.SessionListResponse)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated .heroim.client.v3beta.dto.message.SessionListItem 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.message.SessionListResponse)
  return target;
}

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

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


void SessionListResponse::MergeFrom(const SessionListResponse& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:heroim.client.v3beta.dto.message.SessionListResponse)
  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 SessionListResponse::CopyFrom(const SessionListResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:heroim.client.v3beta.dto.message.SessionListResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

::herogoogle::protobuf::Metadata SessionListResponse::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto[1]);
}

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

class SessionListItem::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::message::model::SessionKey& sessionkey(const SessionListItem* msg);
  static const ::heroim::client::v3beta::dto::user::model::User& user(const SessionListItem* msg);
  static const ::heroim::client::v3beta::dto::group::model::Group& group(const SessionListItem* msg);
  static const ::heroim::client::v3beta::dto::message::model::Message& last(const SessionListItem* msg);
  static const ::heroim::client::v3beta::dto::message::model::UserSessionSort& sort(const SessionListItem* msg);
  static const ::heroim::client::v3beta::dto::channel::model::Channel& channel(const SessionListItem* msg);
};

const ::heroim::client::v3beta::dto::message::model::SessionKey&
SessionListItem::_Internal::sessionkey(const SessionListItem* msg) {
  return *msg->sessionkey_;
}
const ::heroim::client::v3beta::dto::user::model::User&
SessionListItem::_Internal::user(const SessionListItem* msg) {
  return *msg->user_;
}
const ::heroim::client::v3beta::dto::group::model::Group&
SessionListItem::_Internal::group(const SessionListItem* msg) {
  return *msg->group_;
}
const ::heroim::client::v3beta::dto::message::model::Message&
SessionListItem::_Internal::last(const SessionListItem* msg) {
  return *msg->last_;
}
const ::heroim::client::v3beta::dto::message::model::UserSessionSort&
SessionListItem::_Internal::sort(const SessionListItem* msg) {
  return *msg->sort_;
}
const ::heroim::client::v3beta::dto::channel::model::Channel&
SessionListItem::_Internal::channel(const SessionListItem* msg) {
  return *msg->channel_;
}
void SessionListItem::clear_sessionkey() {
  if (GetArenaForAllocation() == nullptr && sessionkey_ != nullptr) {
    delete sessionkey_;
  }
  sessionkey_ = nullptr;
}
void SessionListItem::clear_user() {
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
}
void SessionListItem::clear_group() {
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
}
void SessionListItem::clear_last() {
  if (GetArenaForAllocation() == nullptr && last_ != nullptr) {
    delete last_;
  }
  last_ = nullptr;
}
void SessionListItem::clear_sort() {
  if (GetArenaForAllocation() == nullptr && sort_ != nullptr) {
    delete sort_;
  }
  sort_ = nullptr;
}
void SessionListItem::clear_channel() {
  if (GetArenaForAllocation() == nullptr && channel_ != nullptr) {
    delete channel_;
  }
  channel_ = nullptr;
}
SessionListItem::SessionListItem(::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.message.SessionListItem)
}
SessionListItem::SessionListItem(const SessionListItem& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  if (from._internal_has_sessionkey()) {
    sessionkey_ = new ::heroim::client::v3beta::dto::message::model::SessionKey(*from.sessionkey_);
  } else {
    sessionkey_ = nullptr;
  }
  if (from._internal_has_user()) {
    user_ = new ::heroim::client::v3beta::dto::user::model::User(*from.user_);
  } else {
    user_ = nullptr;
  }
  if (from._internal_has_group()) {
    group_ = new ::heroim::client::v3beta::dto::group::model::Group(*from.group_);
  } else {
    group_ = nullptr;
  }
  if (from._internal_has_last()) {
    last_ = new ::heroim::client::v3beta::dto::message::model::Message(*from.last_);
  } else {
    last_ = nullptr;
  }
  if (from._internal_has_sort()) {
    sort_ = new ::heroim::client::v3beta::dto::message::model::UserSessionSort(*from.sort_);
  } else {
    sort_ = nullptr;
  }
  if (from._internal_has_channel()) {
    channel_ = new ::heroim::client::v3beta::dto::channel::model::Channel(*from.channel_);
  } else {
    channel_ = nullptr;
  }
  updatetime_ = from.updatetime_;
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.message.SessionListItem)
}

void SessionListItem::SharedCtor() {
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&sessionkey_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&updatetime_) -
    reinterpret_cast<char*>(&sessionkey_)) + sizeof(updatetime_));
}

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

inline void SessionListItem::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  if (this != internal_default_instance()) delete sessionkey_;
  if (this != internal_default_instance()) delete user_;
  if (this != internal_default_instance()) delete group_;
  if (this != internal_default_instance()) delete last_;
  if (this != internal_default_instance()) delete sort_;
  if (this != internal_default_instance()) delete channel_;
}

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

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

  if (GetArenaForAllocation() == nullptr && sessionkey_ != nullptr) {
    delete sessionkey_;
  }
  sessionkey_ = nullptr;
  if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
    delete user_;
  }
  user_ = nullptr;
  if (GetArenaForAllocation() == nullptr && group_ != nullptr) {
    delete group_;
  }
  group_ = nullptr;
  if (GetArenaForAllocation() == nullptr && last_ != nullptr) {
    delete last_;
  }
  last_ = nullptr;
  if (GetArenaForAllocation() == nullptr && sort_ != nullptr) {
    delete sort_;
  }
  sort_ = nullptr;
  if (GetArenaForAllocation() == nullptr && channel_ != nullptr) {
    delete channel_;
  }
  channel_ = nullptr;
  updatetime_ = int64_t{0};
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* SessionListItem::_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.message.model.SessionKey sessionKey = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_sessionkey(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.user.model.User user = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_user(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.group.model.Group group = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_group(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.message.model.Message last = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 34)) {
          ptr = ctx->ParseMessage(_internal_mutable_last(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.message.model.UserSessionSort sort = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 42)) {
          ptr = ctx->ParseMessage(_internal_mutable_sort(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.channel.model.Channel channel = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 50)) {
          ptr = ctx->ParseMessage(_internal_mutable_channel(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // int64 updateTime = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 56)) {
          updatetime_ = ::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* SessionListItem::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.message.SessionListItem)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // .heroim.client.v3beta.dto.message.model.SessionKey sessionKey = 1;
  if (this->_internal_has_sessionkey()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        1, _Internal::sessionkey(this), target, stream);
  }

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

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

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

  // .heroim.client.v3beta.dto.message.model.UserSessionSort sort = 5;
  if (this->_internal_has_sort()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        5, _Internal::sort(this), target, stream);
  }

  // .heroim.client.v3beta.dto.channel.model.Channel channel = 6;
  if (this->_internal_has_channel()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        6, _Internal::channel(this), target, stream);
  }

  // int64 updateTime = 7;
  if (this->_internal_updatetime() != 0) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_updatetime(), 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.message.SessionListItem)
  return target;
}

size_t SessionListItem::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.message.SessionListItem)
  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.message.model.SessionKey sessionKey = 1;
  if (this->_internal_has_sessionkey()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *sessionkey_);
  }

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

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

  // .heroim.client.v3beta.dto.message.model.Message last = 4;
  if (this->_internal_has_last()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *last_);
  }

  // .heroim.client.v3beta.dto.message.model.UserSessionSort sort = 5;
  if (this->_internal_has_sort()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *sort_);
  }

  // .heroim.client.v3beta.dto.channel.model.Channel channel = 6;
  if (this->_internal_has_channel()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *channel_);
  }

  // int64 updateTime = 7;
  if (this->_internal_updatetime() != 0) {
    total_size += ::herogoogle::protobuf::internal::WireFormatLite::Int64SizePlusOne(this->_internal_updatetime());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

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

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


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

  if (from._internal_has_sessionkey()) {
    _internal_mutable_sessionkey()->::heroim::client::v3beta::dto::message::model::SessionKey::MergeFrom(from._internal_sessionkey());
  }
  if (from._internal_has_user()) {
    _internal_mutable_user()->::heroim::client::v3beta::dto::user::model::User::MergeFrom(from._internal_user());
  }
  if (from._internal_has_group()) {
    _internal_mutable_group()->::heroim::client::v3beta::dto::group::model::Group::MergeFrom(from._internal_group());
  }
  if (from._internal_has_last()) {
    _internal_mutable_last()->::heroim::client::v3beta::dto::message::model::Message::MergeFrom(from._internal_last());
  }
  if (from._internal_has_sort()) {
    _internal_mutable_sort()->::heroim::client::v3beta::dto::message::model::UserSessionSort::MergeFrom(from._internal_sort());
  }
  if (from._internal_has_channel()) {
    _internal_mutable_channel()->::heroim::client::v3beta::dto::channel::model::Channel::MergeFrom(from._internal_channel());
  }
  if (from._internal_updatetime() != 0) {
    _internal_set_updatetime(from._internal_updatetime());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

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

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

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

::herogoogle::protobuf::Metadata SessionListItem::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto[2]);
}

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

class SessionDeleteRequest::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::shared::APIRequest& base(const SessionDeleteRequest* msg);
  static const ::heroim::client::v3beta::dto::message::model::SessionKey& sessionkey(const SessionDeleteRequest* msg);
};

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

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

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

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

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

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

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

const char* SessionDeleteRequest::_InternalParse(const char* ptr, ::herogoogle::protobuf::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::herogoogle::protobuf::uint32 tag;
    ptr = ::herogoogle::protobuf::internal::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // .heroim.client.v3beta.dto.shared.APIRequest base = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_base(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.message.model.SessionKey sessionKey = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_sessionkey(), 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* SessionDeleteRequest::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.message.SessionDeleteRequest)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

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

  // .heroim.client.v3beta.dto.message.model.SessionKey sessionKey = 2;
  if (this->_internal_has_sessionkey()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        2, _Internal::sessionkey(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.message.SessionDeleteRequest)
  return target;
}

size_t SessionDeleteRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.message.SessionDeleteRequest)
  size_t total_size = 0;

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

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

  // .heroim.client.v3beta.dto.message.model.SessionKey sessionKey = 2;
  if (this->_internal_has_sessionkey()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *sessionkey_);
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

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

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


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

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

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

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

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

::herogoogle::protobuf::Metadata SessionDeleteRequest::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto[3]);
}

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

class SessionDeleteResponse::_Internal {
 public:
};

SessionDeleteResponse::SessionDeleteResponse(::herogoogle::protobuf::Arena* arena,
                         bool is_message_owned)
  : ::herogoogle::protobuf::internal::ZeroFieldsBase(arena, is_message_owned) {
  // @@protoc_insertion_point(arena_constructor:heroim.client.v3beta.dto.message.SessionDeleteResponse)
}
SessionDeleteResponse::SessionDeleteResponse(const SessionDeleteResponse& from)
  : ::herogoogle::protobuf::internal::ZeroFieldsBase() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.message.SessionDeleteResponse)
}





const ::herogoogle::protobuf::Message::ClassData SessionDeleteResponse::_class_data_ = {
    ::herogoogle::protobuf::internal::ZeroFieldsBase::CopyImpl,
    ::herogoogle::protobuf::internal::ZeroFieldsBase::MergeImpl,
};
const ::herogoogle::protobuf::Message::ClassData*SessionDeleteResponse::GetClassData() const { return &_class_data_; }







::herogoogle::protobuf::Metadata SessionDeleteResponse::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto[4]);
}

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

class SessionSortRequest::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::shared::APIRequest& base(const SessionSortRequest* msg);
  static const ::heroim::client::v3beta::dto::message::model::SessionKey& sessionkey(const SessionSortRequest* msg);
};

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

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

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

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

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

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

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

const char* SessionSortRequest::_InternalParse(const char* ptr, ::herogoogle::protobuf::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::herogoogle::protobuf::uint32 tag;
    ptr = ::herogoogle::protobuf::internal::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // .heroim.client.v3beta.dto.shared.APIRequest base = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_base(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.message.model.SessionKey sessionKey = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_sessionkey(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.message.SessionSortRequest.Status status = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 24)) {
          ::herogoogle::protobuf::uint64 val = ::herogoogle::protobuf::internal::ReadVarint64(&ptr);
          CHK_(ptr);
          _internal_set_status(static_cast<::heroim::client::v3beta::dto::message::SessionSortRequest_Status>(val));
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

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

  // .heroim.client.v3beta.dto.message.model.SessionKey sessionKey = 2;
  if (this->_internal_has_sessionkey()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        2, _Internal::sessionkey(this), target, stream);
  }

  // .heroim.client.v3beta.dto.message.SessionSortRequest.Status status = 3;
  if (this->_internal_status() != 0) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::WriteEnumToArray(
      3, this->_internal_status(), 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.message.SessionSortRequest)
  return target;
}

size_t SessionSortRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.message.SessionSortRequest)
  size_t total_size = 0;

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

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

  // .heroim.client.v3beta.dto.message.model.SessionKey sessionKey = 2;
  if (this->_internal_has_sessionkey()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *sessionkey_);
  }

  // .heroim.client.v3beta.dto.message.SessionSortRequest.Status status = 3;
  if (this->_internal_status() != 0) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::EnumSize(this->_internal_status());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

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

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


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

  if (from._internal_has_base()) {
    _internal_mutable_base()->::heroim::client::v3beta::dto::shared::APIRequest::MergeFrom(from._internal_base());
  }
  if (from._internal_has_sessionkey()) {
    _internal_mutable_sessionkey()->::heroim::client::v3beta::dto::message::model::SessionKey::MergeFrom(from._internal_sessionkey());
  }
  if (from._internal_status() != 0) {
    _internal_set_status(from._internal_status());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

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

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

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

::herogoogle::protobuf::Metadata SessionSortRequest::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto[5]);
}

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

class SessionSortResponse::_Internal {
 public:
};

SessionSortResponse::SessionSortResponse(::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.message.SessionSortResponse)
}
SessionSortResponse::SessionSortResponse(const SessionSortResponse& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  time_ = from.time_;
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.message.SessionSortResponse)
}

void SessionSortResponse::SharedCtor() {
time_ = int64_t{0};
}

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

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

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

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

  time_ = int64_t{0};
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

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

  // int64 time = 1;
  if (this->_internal_time() != 0) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_time(), 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.message.SessionSortResponse)
  return target;
}

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

  // int64 time = 1;
  if (this->_internal_time() != 0) {
    total_size += ::herogoogle::protobuf::internal::WireFormatLite::Int64SizePlusOne(this->_internal_time());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

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

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


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

  if (from._internal_time() != 0) {
    _internal_set_time(from._internal_time());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

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

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

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

::herogoogle::protobuf::Metadata SessionSortResponse::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fmessage_2fsession_5fdto_2eproto[6]);
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace message
}  // namespace dto
}  // namespace v3beta
}  // namespace client
}  // namespace heroim
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::message::SessionListRequest* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::message::SessionListRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::message::SessionListRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::message::SessionListResponse* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::message::SessionListResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::message::SessionListResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::message::SessionListItem* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::message::SessionListItem >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::message::SessionListItem >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::message::SessionDeleteRequest* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::message::SessionDeleteRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::message::SessionDeleteRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::message::SessionDeleteResponse* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::message::SessionDeleteResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::message::SessionDeleteResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::message::SessionSortRequest* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::message::SessionSortRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::message::SessionSortRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::message::SessionSortResponse* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::message::SessionSortResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::message::SessionSortResponse >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)

