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

#ifndef PROTOBUF_common_2fmsg_2fResponse_2eproto__INCLUDED
#define PROTOBUF_common_2fmsg_2fResponse_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/ResponseMsgType.pb.h"
// @@protoc_insertion_point(includes)

// Internal implementation detail -- do not call these.
void protobuf_AddDesc_common_2fmsg_2fResponse_2eproto();
void protobuf_InitDefaults_common_2fmsg_2fResponse_2eproto();
void protobuf_AssignDesc_common_2fmsg_2fResponse_2eproto();
void protobuf_ShutdownFile_common_2fmsg_2fResponse_2eproto();

class PBResponse;

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

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

  PBResponse(const PBResponse& from);

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

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

  static const PBResponse* internal_default_instance();

  void Swap(PBResponse* other);

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

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

  PBResponse* New(::google::protobuf::Arena* arena) const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const PBResponse& from);
  void MergeFrom(const PBResponse& 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(PBResponse* other);
  void UnsafeMergeFrom(const PBResponse& 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 .ResponseMsgType responseMsgType = 1;
  void clear_responsemsgtype();
  static const int kResponseMsgTypeFieldNumber = 1;
  ::ResponseMsgType responsemsgtype() const;
  void set_responsemsgtype(::ResponseMsgType 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 responseTime = 3;
  void clear_responsetime();
  static const int kResponseTimeFieldNumber = 3;
  ::google::protobuf::int64 responsetime() const;
  void set_responsetime(::google::protobuf::int64 value);

  // optional string responseCode = 4;
  void clear_responsecode();
  static const int kResponseCodeFieldNumber = 4;
  const ::std::string& responsecode() const;
  void set_responsecode(const ::std::string& value);
  void set_responsecode(const char* value);
  void set_responsecode(const char* value, size_t size);
  ::std::string* mutable_responsecode();
  ::std::string* release_responsecode();
  void set_allocated_responsecode(::std::string* responsecode);

  // optional string responseMsg = 5;
  void clear_responsemsg();
  static const int kResponseMsgFieldNumber = 5;
  const ::std::string& responsemsg() const;
  void set_responsemsg(const ::std::string& value);
  void set_responsemsg(const char* value);
  void set_responsemsg(const char* value, size_t size);
  ::std::string* mutable_responsemsg();
  ::std::string* release_responsemsg();
  void set_allocated_responsemsg(::std::string* responsemsg);

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

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

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  ::google::protobuf::internal::ArenaStringPtr requestid_;
  ::google::protobuf::internal::ArenaStringPtr responsecode_;
  ::google::protobuf::internal::ArenaStringPtr responsemsg_;
  ::google::protobuf::Any* payload_;
  ::google::protobuf::int64 responsetime_;
  int responsemsgtype_;
  mutable int _cached_size_;
  friend void  protobuf_InitDefaults_common_2fmsg_2fResponse_2eproto_impl();
  friend void  protobuf_AddDesc_common_2fmsg_2fResponse_2eproto_impl();
  friend void protobuf_AssignDesc_common_2fmsg_2fResponse_2eproto();
  friend void protobuf_ShutdownFile_common_2fmsg_2fResponse_2eproto();

  void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<PBResponse> PBResponse_default_instance_;

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


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

#if !PROTOBUF_INLINE_NOT_IN_HEADERS
// PBResponse

// optional .ResponseMsgType responseMsgType = 1;
inline void PBResponse::clear_responsemsgtype() {
  responsemsgtype_ = 0;
}
inline ::ResponseMsgType PBResponse::responsemsgtype() const {
  // @@protoc_insertion_point(field_get:PBResponse.responseMsgType)
  return static_cast< ::ResponseMsgType >(responsemsgtype_);
}
inline void PBResponse::set_responsemsgtype(::ResponseMsgType value) {
  
  responsemsgtype_ = value;
  // @@protoc_insertion_point(field_set:PBResponse.responseMsgType)
}

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

// optional int64 responseTime = 3;
inline void PBResponse::clear_responsetime() {
  responsetime_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 PBResponse::responsetime() const {
  // @@protoc_insertion_point(field_get:PBResponse.responseTime)
  return responsetime_;
}
inline void PBResponse::set_responsetime(::google::protobuf::int64 value) {
  
  responsetime_ = value;
  // @@protoc_insertion_point(field_set:PBResponse.responseTime)
}

// optional string responseCode = 4;
inline void PBResponse::clear_responsecode() {
  responsecode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& PBResponse::responsecode() const {
  // @@protoc_insertion_point(field_get:PBResponse.responseCode)
  return responsecode_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void PBResponse::set_responsecode(const ::std::string& value) {
  
  responsecode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:PBResponse.responseCode)
}
inline void PBResponse::set_responsecode(const char* value) {
  
  responsecode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:PBResponse.responseCode)
}
inline void PBResponse::set_responsecode(const char* value, size_t size) {
  
  responsecode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:PBResponse.responseCode)
}
inline ::std::string* PBResponse::mutable_responsecode() {
  
  // @@protoc_insertion_point(field_mutable:PBResponse.responseCode)
  return responsecode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* PBResponse::release_responsecode() {
  // @@protoc_insertion_point(field_release:PBResponse.responseCode)
  
  return responsecode_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void PBResponse::set_allocated_responsecode(::std::string* responsecode) {
  if (responsecode != NULL) {
    
  } else {
    
  }
  responsecode_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), responsecode);
  // @@protoc_insertion_point(field_set_allocated:PBResponse.responseCode)
}

// optional string responseMsg = 5;
inline void PBResponse::clear_responsemsg() {
  responsemsg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& PBResponse::responsemsg() const {
  // @@protoc_insertion_point(field_get:PBResponse.responseMsg)
  return responsemsg_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void PBResponse::set_responsemsg(const ::std::string& value) {
  
  responsemsg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:PBResponse.responseMsg)
}
inline void PBResponse::set_responsemsg(const char* value) {
  
  responsemsg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:PBResponse.responseMsg)
}
inline void PBResponse::set_responsemsg(const char* value, size_t size) {
  
  responsemsg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:PBResponse.responseMsg)
}
inline ::std::string* PBResponse::mutable_responsemsg() {
  
  // @@protoc_insertion_point(field_mutable:PBResponse.responseMsg)
  return responsemsg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* PBResponse::release_responsemsg() {
  // @@protoc_insertion_point(field_release:PBResponse.responseMsg)
  
  return responsemsg_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void PBResponse::set_allocated_responsemsg(::std::string* responsemsg) {
  if (responsemsg != NULL) {
    
  } else {
    
  }
  responsemsg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), responsemsg);
  // @@protoc_insertion_point(field_set_allocated:PBResponse.responseMsg)
}

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

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

// @@protoc_insertion_point(namespace_scope)

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_common_2fmsg_2fResponse_2eproto__INCLUDED
