// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: coprocess_object.proto

#ifndef PROTOBUF_coprocess_5fobject_2eproto__INCLUDED
#define PROTOBUF_coprocess_5fobject_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/map.h>
#include <google/protobuf/map_field_inl.h>
#include <google/protobuf/unknown_field_set.h>
#include "coprocess_mini_request_object.pb.h"
#include "coprocess_session_state.pb.h"
#include "coprocess_common.pb.h"
// @@protoc_insertion_point(includes)

namespace coprocess {

// Internal implementation detail -- do not call these.
void protobuf_AddDesc_coprocess_5fobject_2eproto();
void protobuf_InitDefaults_coprocess_5fobject_2eproto();
void protobuf_AssignDesc_coprocess_5fobject_2eproto();
void protobuf_ShutdownFile_coprocess_5fobject_2eproto();

class Event;
class EventReply;
class Object;

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

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

  Object(const Object& from);

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

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

  static const Object* internal_default_instance();

  void Swap(Object* other);

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

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

  Object* New(::google::protobuf::Arena* arena) const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const Object& from);
  void MergeFrom(const Object& 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(Object* other);
  void UnsafeMergeFrom(const Object& 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 .coprocess.HookType hook_type = 1;
  void clear_hook_type();
  static const int kHookTypeFieldNumber = 1;
  ::coprocess::HookType hook_type() const;
  void set_hook_type(::coprocess::HookType value);

  // optional string hook_name = 2;
  void clear_hook_name();
  static const int kHookNameFieldNumber = 2;
  const ::std::string& hook_name() const;
  void set_hook_name(const ::std::string& value);
  void set_hook_name(const char* value);
  void set_hook_name(const char* value, size_t size);
  ::std::string* mutable_hook_name();
  ::std::string* release_hook_name();
  void set_allocated_hook_name(::std::string* hook_name);

  // optional .coprocess.MiniRequestObject request = 3;
  bool has_request() const;
  void clear_request();
  static const int kRequestFieldNumber = 3;
  const ::coprocess::MiniRequestObject& request() const;
  ::coprocess::MiniRequestObject* mutable_request();
  ::coprocess::MiniRequestObject* release_request();
  void set_allocated_request(::coprocess::MiniRequestObject* request);

  // optional .coprocess.SessionState session = 4;
  bool has_session() const;
  void clear_session();
  static const int kSessionFieldNumber = 4;
  const ::coprocess::SessionState& session() const;
  ::coprocess::SessionState* mutable_session();
  ::coprocess::SessionState* release_session();
  void set_allocated_session(::coprocess::SessionState* session);

  // map<string, string> metadata = 5;
  int metadata_size() const;
  void clear_metadata();
  static const int kMetadataFieldNumber = 5;
  const ::google::protobuf::Map< ::std::string, ::std::string >&
      metadata() const;
  ::google::protobuf::Map< ::std::string, ::std::string >*
      mutable_metadata();

  // map<string, string> spec = 6;
  int spec_size() const;
  void clear_spec();
  static const int kSpecFieldNumber = 6;
  const ::google::protobuf::Map< ::std::string, ::std::string >&
      spec() const;
  ::google::protobuf::Map< ::std::string, ::std::string >*
      mutable_spec();

  // @@protoc_insertion_point(class_scope:coprocess.Object)
 private:

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  typedef ::google::protobuf::internal::MapEntryLite<
      ::std::string, ::std::string,
      ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
      ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
      0 >
      Object_MetadataEntry;
  ::google::protobuf::internal::MapField<
      ::std::string, ::std::string,
      ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
      ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
      0 > metadata_;
  typedef ::google::protobuf::internal::MapEntryLite<
      ::std::string, ::std::string,
      ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
      ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
      0 >
      Object_SpecEntry;
  ::google::protobuf::internal::MapField<
      ::std::string, ::std::string,
      ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
      ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
      0 > spec_;
  ::google::protobuf::internal::ArenaStringPtr hook_name_;
  ::coprocess::MiniRequestObject* request_;
  ::coprocess::SessionState* session_;
  int hook_type_;
  mutable int _cached_size_;
  friend void  protobuf_InitDefaults_coprocess_5fobject_2eproto_impl();
  friend void  protobuf_AddDesc_coprocess_5fobject_2eproto_impl();
  friend void protobuf_AssignDesc_coprocess_5fobject_2eproto();
  friend void protobuf_ShutdownFile_coprocess_5fobject_2eproto();

  void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<Object> Object_default_instance_;

// -------------------------------------------------------------------

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

  Event(const Event& from);

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

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

  static const Event* internal_default_instance();

  void Swap(Event* other);

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

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

  Event* New(::google::protobuf::Arena* arena) const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const Event& from);
  void MergeFrom(const Event& 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(Event* other);
  void UnsafeMergeFrom(const Event& 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 string payload = 1;
  void clear_payload();
  static const int kPayloadFieldNumber = 1;
  const ::std::string& payload() const;
  void set_payload(const ::std::string& value);
  void set_payload(const char* value);
  void set_payload(const char* value, size_t size);
  ::std::string* mutable_payload();
  ::std::string* release_payload();
  void set_allocated_payload(::std::string* payload);

  // @@protoc_insertion_point(class_scope:coprocess.Event)
 private:

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  ::google::protobuf::internal::ArenaStringPtr payload_;
  mutable int _cached_size_;
  friend void  protobuf_InitDefaults_coprocess_5fobject_2eproto_impl();
  friend void  protobuf_AddDesc_coprocess_5fobject_2eproto_impl();
  friend void protobuf_AssignDesc_coprocess_5fobject_2eproto();
  friend void protobuf_ShutdownFile_coprocess_5fobject_2eproto();

  void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<Event> Event_default_instance_;

// -------------------------------------------------------------------

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

  EventReply(const EventReply& from);

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

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

  static const EventReply* internal_default_instance();

  void Swap(EventReply* other);

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

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

  EventReply* New(::google::protobuf::Arena* arena) const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const EventReply& from);
  void MergeFrom(const EventReply& 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(EventReply* other);
  void UnsafeMergeFrom(const EventReply& 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 -------------------------------------------------------

  // @@protoc_insertion_point(class_scope:coprocess.EventReply)
 private:

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  mutable int _cached_size_;
  friend void  protobuf_InitDefaults_coprocess_5fobject_2eproto_impl();
  friend void  protobuf_AddDesc_coprocess_5fobject_2eproto_impl();
  friend void protobuf_AssignDesc_coprocess_5fobject_2eproto();
  friend void protobuf_ShutdownFile_coprocess_5fobject_2eproto();

  void InitAsDefaultInstance();
};
extern ::google::protobuf::internal::ExplicitlyConstructed<EventReply> EventReply_default_instance_;

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


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

#if !PROTOBUF_INLINE_NOT_IN_HEADERS
// Object

// optional .coprocess.HookType hook_type = 1;
inline void Object::clear_hook_type() {
  hook_type_ = 0;
}
inline ::coprocess::HookType Object::hook_type() const {
  // @@protoc_insertion_point(field_get:coprocess.Object.hook_type)
  return static_cast< ::coprocess::HookType >(hook_type_);
}
inline void Object::set_hook_type(::coprocess::HookType value) {
  
  hook_type_ = value;
  // @@protoc_insertion_point(field_set:coprocess.Object.hook_type)
}

// optional string hook_name = 2;
inline void Object::clear_hook_name() {
  hook_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& Object::hook_name() const {
  // @@protoc_insertion_point(field_get:coprocess.Object.hook_name)
  return hook_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void Object::set_hook_name(const ::std::string& value) {
  
  hook_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:coprocess.Object.hook_name)
}
inline void Object::set_hook_name(const char* value) {
  
  hook_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:coprocess.Object.hook_name)
}
inline void Object::set_hook_name(const char* value, size_t size) {
  
  hook_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:coprocess.Object.hook_name)
}
inline ::std::string* Object::mutable_hook_name() {
  
  // @@protoc_insertion_point(field_mutable:coprocess.Object.hook_name)
  return hook_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* Object::release_hook_name() {
  // @@protoc_insertion_point(field_release:coprocess.Object.hook_name)
  
  return hook_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void Object::set_allocated_hook_name(::std::string* hook_name) {
  if (hook_name != NULL) {
    
  } else {
    
  }
  hook_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hook_name);
  // @@protoc_insertion_point(field_set_allocated:coprocess.Object.hook_name)
}

// optional .coprocess.MiniRequestObject request = 3;
inline bool Object::has_request() const {
  return this != internal_default_instance() && request_ != NULL;
}
inline void Object::clear_request() {
  if (GetArenaNoVirtual() == NULL && request_ != NULL) delete request_;
  request_ = NULL;
}
inline const ::coprocess::MiniRequestObject& Object::request() const {
  // @@protoc_insertion_point(field_get:coprocess.Object.request)
  return request_ != NULL ? *request_
                         : *::coprocess::MiniRequestObject::internal_default_instance();
}
inline ::coprocess::MiniRequestObject* Object::mutable_request() {
  
  if (request_ == NULL) {
    request_ = new ::coprocess::MiniRequestObject;
  }
  // @@protoc_insertion_point(field_mutable:coprocess.Object.request)
  return request_;
}
inline ::coprocess::MiniRequestObject* Object::release_request() {
  // @@protoc_insertion_point(field_release:coprocess.Object.request)
  
  ::coprocess::MiniRequestObject* temp = request_;
  request_ = NULL;
  return temp;
}
inline void Object::set_allocated_request(::coprocess::MiniRequestObject* request) {
  delete request_;
  request_ = request;
  if (request) {
    
  } else {
    
  }
  // @@protoc_insertion_point(field_set_allocated:coprocess.Object.request)
}

// optional .coprocess.SessionState session = 4;
inline bool Object::has_session() const {
  return this != internal_default_instance() && session_ != NULL;
}
inline void Object::clear_session() {
  if (GetArenaNoVirtual() == NULL && session_ != NULL) delete session_;
  session_ = NULL;
}
inline const ::coprocess::SessionState& Object::session() const {
  // @@protoc_insertion_point(field_get:coprocess.Object.session)
  return session_ != NULL ? *session_
                         : *::coprocess::SessionState::internal_default_instance();
}
inline ::coprocess::SessionState* Object::mutable_session() {
  
  if (session_ == NULL) {
    session_ = new ::coprocess::SessionState;
  }
  // @@protoc_insertion_point(field_mutable:coprocess.Object.session)
  return session_;
}
inline ::coprocess::SessionState* Object::release_session() {
  // @@protoc_insertion_point(field_release:coprocess.Object.session)
  
  ::coprocess::SessionState* temp = session_;
  session_ = NULL;
  return temp;
}
inline void Object::set_allocated_session(::coprocess::SessionState* session) {
  delete session_;
  session_ = session;
  if (session) {
    
  } else {
    
  }
  // @@protoc_insertion_point(field_set_allocated:coprocess.Object.session)
}

// map<string, string> metadata = 5;
inline int Object::metadata_size() const {
  return metadata_.size();
}
inline void Object::clear_metadata() {
  metadata_.Clear();
}
inline const ::google::protobuf::Map< ::std::string, ::std::string >&
Object::metadata() const {
  // @@protoc_insertion_point(field_map:coprocess.Object.metadata)
  return metadata_.GetMap();
}
inline ::google::protobuf::Map< ::std::string, ::std::string >*
Object::mutable_metadata() {
  // @@protoc_insertion_point(field_mutable_map:coprocess.Object.metadata)
  return metadata_.MutableMap();
}

// map<string, string> spec = 6;
inline int Object::spec_size() const {
  return spec_.size();
}
inline void Object::clear_spec() {
  spec_.Clear();
}
inline const ::google::protobuf::Map< ::std::string, ::std::string >&
Object::spec() const {
  // @@protoc_insertion_point(field_map:coprocess.Object.spec)
  return spec_.GetMap();
}
inline ::google::protobuf::Map< ::std::string, ::std::string >*
Object::mutable_spec() {
  // @@protoc_insertion_point(field_mutable_map:coprocess.Object.spec)
  return spec_.MutableMap();
}

inline const Object* Object::internal_default_instance() {
  return &Object_default_instance_.get();
}
// -------------------------------------------------------------------

// Event

// optional string payload = 1;
inline void Event::clear_payload() {
  payload_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& Event::payload() const {
  // @@protoc_insertion_point(field_get:coprocess.Event.payload)
  return payload_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void Event::set_payload(const ::std::string& value) {
  
  payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:coprocess.Event.payload)
}
inline void Event::set_payload(const char* value) {
  
  payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:coprocess.Event.payload)
}
inline void Event::set_payload(const char* value, size_t size) {
  
  payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:coprocess.Event.payload)
}
inline ::std::string* Event::mutable_payload() {
  
  // @@protoc_insertion_point(field_mutable:coprocess.Event.payload)
  return payload_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* Event::release_payload() {
  // @@protoc_insertion_point(field_release:coprocess.Event.payload)
  
  return payload_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void Event::set_allocated_payload(::std::string* payload) {
  if (payload != NULL) {
    
  } else {
    
  }
  payload_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), payload);
  // @@protoc_insertion_point(field_set_allocated:coprocess.Event.payload)
}

inline const Event* Event::internal_default_instance() {
  return &Event_default_instance_.get();
}
// -------------------------------------------------------------------

// EventReply

inline const EventReply* EventReply::internal_default_instance() {
  return &EventReply_default_instance_.get();
}
#endif  // !PROTOBUF_INLINE_NOT_IN_HEADERS
// -------------------------------------------------------------------

// -------------------------------------------------------------------


// @@protoc_insertion_point(namespace_scope)

}  // namespace coprocess

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_coprocess_5fobject_2eproto__INCLUDED
