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

#ifndef GOOGLE_PROTOBUF_INCLUDED_client_2fv3beta_2fdto_2fsocket_2fpacket_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_client_2fv3beta_2fdto_2fsocket_2fpacket_2eproto

#include <limits>
#include <string>


#include <herogoogle/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3018000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3018000 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif


#include <herogoogle/protobuf/io/coded_stream.h>
#include <herogoogle/protobuf/arena.h>
#include <herogoogle/protobuf/arenastring.h>
#include <herogoogle/protobuf/generated_message_table_driven.h>
#include <herogoogle/protobuf/generated_message_util.h>
#include <herogoogle/protobuf/metadata_lite.h>
#include <herogoogle/protobuf/generated_message_reflection.h>
#include <herogoogle/protobuf/message.h>
#include <herogoogle/protobuf/repeated_field.h>  // IWYU pragma: export
#include <herogoogle/protobuf/extension_set.h>  // IWYU pragma: export
#include <herogoogle/protobuf/generated_enum_reflection.h>
#include <herogoogle/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)

#define PROTOBUF_INTERNAL_EXPORT_client_2fv3beta_2fdto_2fsocket_2fpacket_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
}  // namespace internal
PROTOBUF_NAMESPACE_CLOSE

// Internal implementation detail -- do not use these members.
struct TableStruct_client_2fv3beta_2fdto_2fsocket_2fpacket_2eproto {
  static const ::herogoogle::protobuf::internal::ParseTableField entries[]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::herogoogle::protobuf::internal::AuxiliaryParseTableField aux[]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::herogoogle::protobuf::internal::ParseTable schema[1]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::herogoogle::protobuf::internal::FieldMetadata field_metadata[];
  static const ::herogoogle::protobuf::internal::SerializationTable serialization_table[];
  static const ::herogoogle::protobuf::uint32 offsets[];
};
extern const ::herogoogle::protobuf::internal::DescriptorTable descriptor_table_client_2fv3beta_2fdto_2fsocket_2fpacket_2eproto;
namespace heroim {
namespace client {
namespace v3beta {
namespace dto {
namespace socket {
class Proto;
struct ProtoDefaultTypeInternal;
extern ProtoDefaultTypeInternal _Proto_default_instance_;
}  // namespace socket
}  // namespace dto
}  // namespace v3beta
}  // namespace client
}  // namespace heroim
PROTOBUF_NAMESPACE_OPEN
template<> ::heroim::client::v3beta::dto::socket::Proto* Arena::CreateMaybeMessage<::heroim::client::v3beta::dto::socket::Proto>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace heroim {
namespace client {
namespace v3beta {
namespace dto {
namespace socket {

enum Proto_Operation : int {
  Proto_Operation_OpHandshake = 0,
  Proto_Operation_OpHandshakeReply = 1,
  Proto_Operation_OpHeartbeat = 2,
  Proto_Operation_OpHeartbeatReply = 3,
  Proto_Operation_OpSendMsg = 4,
  Proto_Operation_OpSendMsgReply = 5,
  Proto_Operation_OpDisconnectReply = 6,
  Proto_Operation_OpAuth = 7,
  Proto_Operation_OpAuthReply = 8,
  Proto_Operation_OpRaw = 9,
  Proto_Operation_OpSub = 14,
  Proto_Operation_OpSubReply = 15,
  Proto_Operation_OpUnsub = 16,
  Proto_Operation_OpUnsubReply = 17,
  Proto_Operation_OpJoinRoom = 18,
  Proto_Operation_OpJoinRoomReply = 19,
  Proto_Operation_OpQuitRoom = 20,
  Proto_Operation_OpQuitRoomReply = 21,
  Proto_Operation_OpSysNotify = 1000,
  Proto_Operation_OpSysCommand = 1002,
  Proto_Operation_OpMsgRemind = 1003,
  Proto_Operation_OpMsgPackage = 1005,
  Proto_Operation_Proto_Operation_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::herogoogle::protobuf::int32>::min(),
  Proto_Operation_Proto_Operation_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::herogoogle::protobuf::int32>::max()
};
bool Proto_Operation_IsValid(int value);
constexpr Proto_Operation Proto_Operation_Operation_MIN = Proto_Operation_OpHandshake;
constexpr Proto_Operation Proto_Operation_Operation_MAX = Proto_Operation_OpMsgPackage;
constexpr int Proto_Operation_Operation_ARRAYSIZE = Proto_Operation_Operation_MAX + 1;

const ::herogoogle::protobuf::EnumDescriptor* Proto_Operation_descriptor();
template<typename T>
inline const std::string& Proto_Operation_Name(T enum_t_value) {
  static_assert(::std::is_same<T, Proto_Operation>::value ||
    ::std::is_integral<T>::value,
    "Incorrect type passed to function Proto_Operation_Name.");
  return ::herogoogle::protobuf::internal::NameOfEnum(
    Proto_Operation_descriptor(), enum_t_value);
}
inline bool Proto_Operation_Parse(
    ::herogoogle::protobuf::ConstStringParam name, Proto_Operation* value) {
  return ::herogoogle::protobuf::internal::ParseNamedEnum<Proto_Operation>(
    Proto_Operation_descriptor(), name, value);
}
// ===================================================================

class Proto final :
    public ::herogoogle::protobuf::Message /* @@protoc_insertion_point(class_definition:heroim.client.v3beta.dto.socket.Proto) */ {
 public:
  inline Proto() : Proto(nullptr) {}
  ~Proto() override;
  explicit constexpr Proto(::herogoogle::protobuf::internal::ConstantInitialized);

  Proto(const Proto& from);
  Proto(Proto&& from) noexcept
    : Proto() {
    *this = ::std::move(from);
  }

  inline Proto& operator=(const Proto& from) {
    CopyFrom(from);
    return *this;
  }
  inline Proto& operator=(Proto&& from) noexcept {
    if (this == &from) return *this;
    if (GetOwningArena() == from.GetOwningArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetOwningArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  static const ::herogoogle::protobuf::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::herogoogle::protobuf::Descriptor* GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::herogoogle::protobuf::Reflection* GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const Proto& default_instance() {
    return *internal_default_instance();
  }
  static inline const Proto* internal_default_instance() {
    return reinterpret_cast<const Proto*>(
               &_Proto_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    0;

  friend void swap(Proto& a, Proto& b) {
    a.Swap(&b);
  }
  inline void Swap(Proto* other) {
    if (other == this) return;
    if (GetOwningArena() == other->GetOwningArena()) {
      InternalSwap(other);
    } else {
      ::herogoogle::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(Proto* other) {
    if (other == this) return;
    GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  inline Proto* New() const final {
    return new Proto();
  }

  Proto* New(::herogoogle::protobuf::Arena* arena) const final {
    return CreateMaybeMessage<Proto>(arena);
  }
  using ::herogoogle::protobuf::Message::CopyFrom;
  void CopyFrom(const Proto& from);
  using ::herogoogle::protobuf::Message::MergeFrom;
  void MergeFrom(const Proto& from);
  private:
  static void MergeImpl(::herogoogle::protobuf::Message* to, const ::herogoogle::protobuf::Message& from);
  public:
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::herogoogle::protobuf::internal::ParseContext* ctx) final;
  ::herogoogle::protobuf::uint8* _InternalSerialize(
      ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _cached_size_.Get(); }

  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(Proto* other);
  friend class ::herogoogle::protobuf::internal::AnyMetadata;
  static ::herogoogle::protobuf::StringPiece FullMessageName() {
    return "heroim.client.v3beta.dto.socket.Proto";
  }
  protected:
  explicit Proto(::herogoogle::protobuf::Arena* arena,
                       bool is_message_owned = false);
  private:
  static void ArenaDtor(void* object);
  inline void RegisterArenaDtor(::herogoogle::protobuf::Arena* arena);
  public:

  static const ClassData _class_data_;
  const ::herogoogle::protobuf::Message::ClassData*GetClassData() const final;

  ::herogoogle::protobuf::Metadata GetMetadata() const final;

  // nested types ----------------------------------------------------

  typedef Proto_Operation Operation;
  static constexpr Operation OpHandshake =
    Proto_Operation_OpHandshake;
  static constexpr Operation OpHandshakeReply =
    Proto_Operation_OpHandshakeReply;
  static constexpr Operation OpHeartbeat =
    Proto_Operation_OpHeartbeat;
  static constexpr Operation OpHeartbeatReply =
    Proto_Operation_OpHeartbeatReply;
  static constexpr Operation OpSendMsg =
    Proto_Operation_OpSendMsg;
  static constexpr Operation OpSendMsgReply =
    Proto_Operation_OpSendMsgReply;
  static constexpr Operation OpDisconnectReply =
    Proto_Operation_OpDisconnectReply;
  static constexpr Operation OpAuth =
    Proto_Operation_OpAuth;
  static constexpr Operation OpAuthReply =
    Proto_Operation_OpAuthReply;
  static constexpr Operation OpRaw =
    Proto_Operation_OpRaw;
  static constexpr Operation OpSub =
    Proto_Operation_OpSub;
  static constexpr Operation OpSubReply =
    Proto_Operation_OpSubReply;
  static constexpr Operation OpUnsub =
    Proto_Operation_OpUnsub;
  static constexpr Operation OpUnsubReply =
    Proto_Operation_OpUnsubReply;
  static constexpr Operation OpJoinRoom =
    Proto_Operation_OpJoinRoom;
  static constexpr Operation OpJoinRoomReply =
    Proto_Operation_OpJoinRoomReply;
  static constexpr Operation OpQuitRoom =
    Proto_Operation_OpQuitRoom;
  static constexpr Operation OpQuitRoomReply =
    Proto_Operation_OpQuitRoomReply;
  static constexpr Operation OpSysNotify =
    Proto_Operation_OpSysNotify;
  static constexpr Operation OpSysCommand =
    Proto_Operation_OpSysCommand;
  static constexpr Operation OpMsgRemind =
    Proto_Operation_OpMsgRemind;
  static constexpr Operation OpMsgPackage =
    Proto_Operation_OpMsgPackage;
  static inline bool Operation_IsValid(int value) {
    return Proto_Operation_IsValid(value);
  }
  static constexpr Operation Operation_MIN =
    Proto_Operation_Operation_MIN;
  static constexpr Operation Operation_MAX =
    Proto_Operation_Operation_MAX;
  static constexpr int Operation_ARRAYSIZE =
    Proto_Operation_Operation_ARRAYSIZE;
  static inline const ::herogoogle::protobuf::EnumDescriptor*
  Operation_descriptor() {
    return Proto_Operation_descriptor();
  }
  template<typename T>
  static inline const std::string& Operation_Name(T enum_t_value) {
    static_assert(::std::is_same<T, Operation>::value ||
      ::std::is_integral<T>::value,
      "Incorrect type passed to function Operation_Name.");
    return Proto_Operation_Name(enum_t_value);
  }
  static inline bool Operation_Parse(::herogoogle::protobuf::ConstStringParam name,
      Operation* value) {
    return Proto_Operation_Parse(name, value);
  }

  // accessors -------------------------------------------------------

  enum : int {
    kProductIdFieldNumber = 4,
    kBodyFieldNumber = 5,
    kVerFieldNumber = 1,
    kOpFieldNumber = 2,
    kSeqFieldNumber = 3,
  };
  // string productId = 4;
  void clear_productid();
  const std::string& productid() const;
  template <typename ArgT0 = const std::string&, typename... ArgT>
  void set_productid(ArgT0&& arg0, ArgT... args);
  std::string* mutable_productid();
  PROTOBUF_MUST_USE_RESULT std::string* release_productid();
  void set_allocated_productid(std::string* productid);
  private:
  const std::string& _internal_productid() const;
  inline GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE void _internal_set_productid(const std::string& value);
  std::string* _internal_mutable_productid();
  public:

  // bytes body = 5;
  void clear_body();
  const std::string& body() const;
  template <typename ArgT0 = const std::string&, typename... ArgT>
  void set_body(ArgT0&& arg0, ArgT... args);
  std::string* mutable_body();
  PROTOBUF_MUST_USE_RESULT std::string* release_body();
  void set_allocated_body(std::string* body);
  private:
  const std::string& _internal_body() const;
  inline GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE void _internal_set_body(const std::string& value);
  std::string* _internal_mutable_body();
  public:

  // int32 ver = 1;
  void clear_ver();
  ::herogoogle::protobuf::int32 ver() const;
  void set_ver(::herogoogle::protobuf::int32 value);
  private:
  ::herogoogle::protobuf::int32 _internal_ver() const;
  void _internal_set_ver(::herogoogle::protobuf::int32 value);
  public:

  // int32 op = 2;
  void clear_op();
  ::herogoogle::protobuf::int32 op() const;
  void set_op(::herogoogle::protobuf::int32 value);
  private:
  ::herogoogle::protobuf::int32 _internal_op() const;
  void _internal_set_op(::herogoogle::protobuf::int32 value);
  public:

  // int32 seq = 3;
  void clear_seq();
  ::herogoogle::protobuf::int32 seq() const;
  void set_seq(::herogoogle::protobuf::int32 value);
  private:
  ::herogoogle::protobuf::int32 _internal_seq() const;
  void _internal_set_seq(::herogoogle::protobuf::int32 value);
  public:

  // @@protoc_insertion_point(class_scope:heroim.client.v3beta.dto.socket.Proto)
 private:
  class _Internal;

  template <typename T> friend class ::herogoogle::protobuf::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  ::herogoogle::protobuf::internal::ArenaStringPtr productid_;
  ::herogoogle::protobuf::internal::ArenaStringPtr body_;
  ::herogoogle::protobuf::int32 ver_;
  ::herogoogle::protobuf::int32 op_;
  ::herogoogle::protobuf::int32 seq_;
  mutable ::herogoogle::protobuf::internal::CachedSize _cached_size_;
  friend struct ::TableStruct_client_2fv3beta_2fdto_2fsocket_2fpacket_2eproto;
};
// ===================================================================


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

#ifdef __GNUC__
  #pragma GCC diagnostic push
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// Proto

// int32 ver = 1;
inline void Proto::clear_ver() {
  ver_ = 0;
}
inline ::herogoogle::protobuf::int32 Proto::_internal_ver() const {
  return ver_;
}
inline ::herogoogle::protobuf::int32 Proto::ver() const {
  // @@protoc_insertion_point(field_get:heroim.client.v3beta.dto.socket.Proto.ver)
  return _internal_ver();
}
inline void Proto::_internal_set_ver(::herogoogle::protobuf::int32 value) {
  
  ver_ = value;
}
inline void Proto::set_ver(::herogoogle::protobuf::int32 value) {
  _internal_set_ver(value);
  // @@protoc_insertion_point(field_set:heroim.client.v3beta.dto.socket.Proto.ver)
}

// int32 op = 2;
inline void Proto::clear_op() {
  op_ = 0;
}
inline ::herogoogle::protobuf::int32 Proto::_internal_op() const {
  return op_;
}
inline ::herogoogle::protobuf::int32 Proto::op() const {
  // @@protoc_insertion_point(field_get:heroim.client.v3beta.dto.socket.Proto.op)
  return _internal_op();
}
inline void Proto::_internal_set_op(::herogoogle::protobuf::int32 value) {
  
  op_ = value;
}
inline void Proto::set_op(::herogoogle::protobuf::int32 value) {
  _internal_set_op(value);
  // @@protoc_insertion_point(field_set:heroim.client.v3beta.dto.socket.Proto.op)
}

// int32 seq = 3;
inline void Proto::clear_seq() {
  seq_ = 0;
}
inline ::herogoogle::protobuf::int32 Proto::_internal_seq() const {
  return seq_;
}
inline ::herogoogle::protobuf::int32 Proto::seq() const {
  // @@protoc_insertion_point(field_get:heroim.client.v3beta.dto.socket.Proto.seq)
  return _internal_seq();
}
inline void Proto::_internal_set_seq(::herogoogle::protobuf::int32 value) {
  
  seq_ = value;
}
inline void Proto::set_seq(::herogoogle::protobuf::int32 value) {
  _internal_set_seq(value);
  // @@protoc_insertion_point(field_set:heroim.client.v3beta.dto.socket.Proto.seq)
}

// string productId = 4;
inline void Proto::clear_productid() {
  productid_.ClearToEmpty();
}
inline const std::string& Proto::productid() const {
  // @@protoc_insertion_point(field_get:heroim.client.v3beta.dto.socket.Proto.productId)
  return _internal_productid();
}
template <typename ArgT0, typename... ArgT>
inline GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE
void Proto::set_productid(ArgT0&& arg0, ArgT... args) {
 
 productid_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:heroim.client.v3beta.dto.socket.Proto.productId)
}
inline std::string* Proto::mutable_productid() {
  std::string* _s = _internal_mutable_productid();
  // @@protoc_insertion_point(field_mutable:heroim.client.v3beta.dto.socket.Proto.productId)
  return _s;
}
inline const std::string& Proto::_internal_productid() const {
  return productid_.Get();
}
inline void Proto::_internal_set_productid(const std::string& value) {
  
  productid_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* Proto::_internal_mutable_productid() {
  
  return productid_.Mutable(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* Proto::release_productid() {
  // @@protoc_insertion_point(field_release:heroim.client.v3beta.dto.socket.Proto.productId)
  return productid_.Release(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
}
inline void Proto::set_allocated_productid(std::string* productid) {
  if (productid != nullptr) {
    
  } else {
    
  }
  productid_.SetAllocated(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(), productid,
      GetArenaForAllocation());
  // @@protoc_insertion_point(field_set_allocated:heroim.client.v3beta.dto.socket.Proto.productId)
}

// bytes body = 5;
inline void Proto::clear_body() {
  body_.ClearToEmpty();
}
inline const std::string& Proto::body() const {
  // @@protoc_insertion_point(field_get:heroim.client.v3beta.dto.socket.Proto.body)
  return _internal_body();
}
template <typename ArgT0, typename... ArgT>
inline GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE
void Proto::set_body(ArgT0&& arg0, ArgT... args) {
 
 body_.SetBytes(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:heroim.client.v3beta.dto.socket.Proto.body)
}
inline std::string* Proto::mutable_body() {
  std::string* _s = _internal_mutable_body();
  // @@protoc_insertion_point(field_mutable:heroim.client.v3beta.dto.socket.Proto.body)
  return _s;
}
inline const std::string& Proto::_internal_body() const {
  return body_.Get();
}
inline void Proto::_internal_set_body(const std::string& value) {
  
  body_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* Proto::_internal_mutable_body() {
  
  return body_.Mutable(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* Proto::release_body() {
  // @@protoc_insertion_point(field_release:heroim.client.v3beta.dto.socket.Proto.body)
  return body_.Release(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
}
inline void Proto::set_allocated_body(std::string* body) {
  if (body != nullptr) {
    
  } else {
    
  }
  body_.SetAllocated(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(), body,
      GetArenaForAllocation());
  // @@protoc_insertion_point(field_set_allocated:heroim.client.v3beta.dto.socket.Proto.body)
}

#ifdef __GNUC__
  #pragma GCC diagnostic pop
#endif  // __GNUC__

// @@protoc_insertion_point(namespace_scope)

}  // namespace socket
}  // namespace dto
}  // namespace v3beta
}  // namespace client
}  // namespace heroim

PROTOBUF_NAMESPACE_OPEN

template <> struct is_proto_enum< ::heroim::client::v3beta::dto::socket::Proto_Operation> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::heroim::client::v3beta::dto::socket::Proto_Operation>() {
  return ::heroim::client::v3beta::dto::socket::Proto_Operation_descriptor();
}

PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)


#endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_client_2fv3beta_2fdto_2fsocket_2fpacket_2eproto
