// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: common/msg/Request.proto

#ifndef PROTOBUF_common_2fmsg_2fRequest_2eproto__INCLUDED
#define PROTOBUF_common_2fmsg_2fRequest_2eproto__INCLUDED

#include <string>

#include <google/protobuf/stubs/common.h>

#if GOOGLE_PROTOBUF_VERSION < 3001000
#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 3001000 < GOOGLE_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 <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/unknown_field_set.h>
#include <google/protobuf/any.pb.h>
#include "common/constant/RequestMsgType.pb.h"
// @@protoc_insertion_point(includes)

// Internal implementation detail -- do not call these.
void protobuf_AddDesc_common_2fmsg_2fRequest_2eproto();
void protobuf_InitDefaults_common_2fmsg_2fRequest_2eproto();
void protobuf_AssignDesc_common_2fmsg_2fRequest_2eproto();
void protobuf_ShutdownFile_common_2fmsg_2fRequest_2eproto();

class PBRequest;

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

class PBRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:PBRequest) */ {
 public:
  PBRequest();
  virtual ~PBRequest();

  PBRequest(const PBRequest& from);

  inline PBRequest& operator=(const PBRequest& from) {
    CopyFrom(from);
    return *this;
  }

  static const ::google::protobuf::Descriptor* descriptor();
  static const PBRequest& default_instance();

  static const PBRequest* internal_default_instance();

  void Swap(PBRequest* other);

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

  inline PBRequest* New() const { return New(NULL); }

  PBRequest* New(::google::protobuf::Arena* arena) const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const PBRequest& from);
  void MergeFrom(const PBRequest& from);
  void Clear();
  bool IsInitialized() const;

  size_t ByteSizeLong() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
      bool deterministic, ::google::protobuf::uint8* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
    return InternalSerializeWithCachedSizesToArray(false, output);
  }
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  void InternalSwap(PBRequest* other);
  void UnsafeMergeFrom(const PBRequest& from);
  private:
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
    return _internal_metadata_.arena();
  }
  inline void* MaybeArenaPtr() const {
    return _internal_metadata_.raw_arena_ptr();
  }
  public:

  ::google::protobuf::Metadata GetMetadata() const;

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

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

  // optional .RequestMsgType requestMsgType = 1;
  void clear_requestmsgtype();
  static const int kRequestMsgTypeFieldNumber = 1;
  ::RequestMsgType requestmsgtype() const;
  void set_requestmsgtype(::RequestMsgType value);

  // optional string requestId = 2;
  void clear_requestid();
  static const int kRequestIdFieldNumber = 2;
  const ::std::string& requestid() const;
  void set_requestid(const ::std::string& value);
  void set_requestid(const char* value);
  void set_requestid(const char* value, size_t size);
  ::std::string* mutable_requestid();
  ::std::string* release_requestid();
  void set_allocated_requestid(::std::string* requestid);

  // optional int64 requestTime = 3;
  void clear_requesttime();
  static const int kRequestTimeFieldNumber = 3;
  ::google::protobuf::int64 requesttime() const;
  void set_requesttime(::google::protobuf::int64 value);

  // optional .google.protobuf.Any payload = 4;
  bool has_payload() const;
  void clear_payload();
  static const int kPayloadFieldNumber = 4;
  const ::google::protobuf::Any& payload() const;
  ::google::protobuf::Any* mutable_payload();
  ::google::protobuf::Any* release_payload();
  void set_allocated_payload(::google::protobuf::Any* payload);

  // optional string token = 5;
  void clear_token();
  static const int kTokenFieldNumber = 5;
  const ::std::string& token() const;
  void set_token(const ::std::string& value);
  void set_token(const char* value);
  void set_token(const char* value, size_t size);
  ::std::string* mutable_token();
  ::std::string* release_token();
  void set_allocated_token(::std::string* token);

  // @@protoc_insertion_point(class_scope:PBRequest)
 private:

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  ::google::protobuf::internal::ArenaStringPtr requestid_;
  ::google::protobuf::internal::ArenaStringPtr token_;
  ::google::protobuf::Any* payload_;
  ::google::protobuf::int64 requesttime_;
  int requestmsgtype_;
  mutable int _cached_size_;
  friend void  protobuf_InitDefaults_common_2fmsg_2fRequest_2eproto_impl();
  friend void  protobuf_AddDesc_common_2fmsg_2fRequest_2eproto_impl();
  friend void protobuf_AssignDesc_common_2fmsg_2fRequest_2eproto();
  friend void protobuf_ShutdownFile_common_2fmsg_2fRequest_2eproto();

  void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<PBRequest> PBRequest_default_instance_;

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


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

#if !PROTOBUF_INLINE_NOT_IN_HEADERS
// PBRequest

// optional .RequestMsgType requestMsgType = 1;
inline void PBRequest::clear_requestmsgtype() {
  requestmsgtype_ = 0;
}
inline ::RequestMsgType PBRequest::requestmsgtype() const {
  // @@protoc_insertion_point(field_get:PBRequest.requestMsgType)
  return static_cast< ::RequestMsgType >(requestmsgtype_);
}
inline void PBRequest::set_requestmsgtype(::RequestMsgType value) {
  
  requestmsgtype_ = value;
  // @@protoc_insertion_point(field_set:PBRequest.requestMsgType)
}

// optional string requestId = 2;
inline void PBRequest::clear_requestid() {
  requestid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& PBRequest::requestid() const {
  // @@protoc_insertion_point(field_get:PBRequest.requestId)
  return requestid_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void PBRequest::set_requestid(const ::std::string& value) {
  
  requestid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:PBRequest.requestId)
}
inline void PBRequest::set_requestid(const char* value) {
  
  requestid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:PBRequest.requestId)
}
inline void PBRequest::set_requestid(const char* value, size_t size) {
  
  requestid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:PBRequest.requestId)
}
inline ::std::string* PBRequest::mutable_requestid() {
  
  // @@protoc_insertion_point(field_mutable:PBRequest.requestId)
  return requestid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* PBRequest::release_requestid() {
  // @@protoc_insertion_point(field_release:PBRequest.requestId)
  
  return requestid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void PBRequest::set_allocated_requestid(::std::string* requestid) {
  if (requestid != NULL) {
    
  } else {
    
  }
  requestid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), requestid);
  // @@protoc_insertion_point(field_set_allocated:PBRequest.requestId)
}

// optional int64 requestTime = 3;
inline void PBRequest::clear_requesttime() {
  requesttime_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 PBRequest::requesttime() const {
  // @@protoc_insertion_point(field_get:PBRequest.requestTime)
  return requesttime_;
}
inline void PBRequest::set_requesttime(::google::protobuf::int64 value) {
  
  requesttime_ = value;
  // @@protoc_insertion_point(field_set:PBRequest.requestTime)
}

// optional .google.protobuf.Any payload = 4;
inline bool PBRequest::has_payload() const {
  return this != internal_default_instance() && payload_ != NULL;
}
inline void PBRequest::clear_payload() {
  if (GetArenaNoVirtual() == NULL && payload_ != NULL) delete payload_;
  payload_ = NULL;
}
inline const ::google::protobuf::Any& PBRequest::payload() const {
  // @@protoc_insertion_point(field_get:PBRequest.payload)
  return payload_ != NULL ? *payload_
                         : *::google::protobuf::Any::internal_default_instance();
}
inline ::google::protobuf::Any* PBRequest::mutable_payload() {
  
  if (payload_ == NULL) {
    payload_ = new ::google::protobuf::Any;
  }
  // @@protoc_insertion_point(field_mutable:PBRequest.payload)
  return payload_;
}
inline ::google::protobuf::Any* PBRequest::release_payload() {
  // @@protoc_insertion_point(field_release:PBRequest.payload)
  
  ::google::protobuf::Any* temp = payload_;
  payload_ = NULL;
  return temp;
}
inline void PBRequest::set_allocated_payload(::google::protobuf::Any* payload) {
  delete payload_;
  payload_ = payload;
  if (payload) {
    
  } else {
    
  }
  // @@protoc_insertion_point(field_set_allocated:PBRequest.payload)
}

// optional string token = 5;
inline void PBRequest::clear_token() {
  token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& PBRequest::token() const {
  // @@protoc_insertion_point(field_get:PBRequest.token)
  return token_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void PBRequest::set_token(const ::std::string& value) {
  
  token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:PBRequest.token)
}
inline void PBRequest::set_token(const char* value) {
  
  token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:PBRequest.token)
}
inline void PBRequest::set_token(const char* value, size_t size) {
  
  token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:PBRequest.token)
}
inline ::std::string* PBRequest::mutable_token() {
  
  // @@protoc_insertion_point(field_mutable:PBRequest.token)
  return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* PBRequest::release_token() {
  // @@protoc_insertion_point(field_release:PBRequest.token)
  
  return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void PBRequest::set_allocated_token(::std::string* token) {
  if (token != NULL) {
    
  } else {
    
  }
  token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token);
  // @@protoc_insertion_point(field_set_allocated:PBRequest.token)
}

inline const PBRequest* PBRequest::internal_default_instance() {
  return &PBRequest_default_instance_.get();
}
#endif  // !PROTOBUF_INLINE_NOT_IN_HEADERS

// @@protoc_insertion_point(namespace_scope)

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_common_2fmsg_2fRequest_2eproto__INCLUDED
