github.com/craicoverflow/tyk@v2.9.6-rc3+incompatible/coprocess/bindings/cpp/coprocess_object.pb.cc (about)

     1  // Generated by the protocol buffer compiler.  DO NOT EDIT!
     2  // source: coprocess_object.proto
     3  
     4  #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
     5  #include "coprocess_object.pb.h"
     6  
     7  #include <algorithm>
     8  
     9  #include <google/protobuf/stubs/common.h>
    10  #include <google/protobuf/stubs/port.h>
    11  #include <google/protobuf/stubs/once.h>
    12  #include <google/protobuf/io/coded_stream.h>
    13  #include <google/protobuf/wire_format_lite_inl.h>
    14  #include <google/protobuf/descriptor.h>
    15  #include <google/protobuf/generated_message_reflection.h>
    16  #include <google/protobuf/reflection_ops.h>
    17  #include <google/protobuf/wire_format.h>
    18  // @@protoc_insertion_point(includes)
    19  
    20  namespace coprocess {
    21  
    22  namespace {
    23  
    24  const ::google::protobuf::Descriptor* Object_descriptor_ = NULL;
    25  const ::google::protobuf::internal::GeneratedMessageReflection*
    26    Object_reflection_ = NULL;
    27  const ::google::protobuf::Descriptor* Object_MetadataEntry_descriptor_ = NULL;
    28  const ::google::protobuf::Descriptor* Object_SpecEntry_descriptor_ = NULL;
    29  const ::google::protobuf::Descriptor* Event_descriptor_ = NULL;
    30  const ::google::protobuf::internal::GeneratedMessageReflection*
    31    Event_reflection_ = NULL;
    32  const ::google::protobuf::Descriptor* EventReply_descriptor_ = NULL;
    33  const ::google::protobuf::internal::GeneratedMessageReflection*
    34    EventReply_reflection_ = NULL;
    35  
    36  }  // namespace
    37  
    38  
    39  void protobuf_AssignDesc_coprocess_5fobject_2eproto() GOOGLE_ATTRIBUTE_COLD;
    40  void protobuf_AssignDesc_coprocess_5fobject_2eproto() {
    41    protobuf_AddDesc_coprocess_5fobject_2eproto();
    42    const ::google::protobuf::FileDescriptor* file =
    43      ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
    44        "coprocess_object.proto");
    45    GOOGLE_CHECK(file != NULL);
    46    Object_descriptor_ = file->message_type(0);
    47    static const int Object_offsets_[6] = {
    48      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Object, hook_type_),
    49      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Object, hook_name_),
    50      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Object, request_),
    51      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Object, session_),
    52      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Object, metadata_),
    53      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Object, spec_),
    54    };
    55    Object_reflection_ =
    56      ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
    57        Object_descriptor_,
    58        Object::internal_default_instance(),
    59        Object_offsets_,
    60        -1,
    61        -1,
    62        -1,
    63        sizeof(Object),
    64        GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Object, _internal_metadata_));
    65    Object_MetadataEntry_descriptor_ = Object_descriptor_->nested_type(0);
    66    Object_SpecEntry_descriptor_ = Object_descriptor_->nested_type(1);
    67    Event_descriptor_ = file->message_type(1);
    68    static const int Event_offsets_[1] = {
    69      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Event, payload_),
    70    };
    71    Event_reflection_ =
    72      ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
    73        Event_descriptor_,
    74        Event::internal_default_instance(),
    75        Event_offsets_,
    76        -1,
    77        -1,
    78        -1,
    79        sizeof(Event),
    80        GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Event, _internal_metadata_));
    81    EventReply_descriptor_ = file->message_type(2);
    82    static const int EventReply_offsets_[1] = {
    83    };
    84    EventReply_reflection_ =
    85      ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
    86        EventReply_descriptor_,
    87        EventReply::internal_default_instance(),
    88        EventReply_offsets_,
    89        -1,
    90        -1,
    91        -1,
    92        sizeof(EventReply),
    93        GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EventReply, _internal_metadata_));
    94  }
    95  
    96  namespace {
    97  
    98  GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
    99  void protobuf_AssignDescriptorsOnce() {
   100    ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
   101                   &protobuf_AssignDesc_coprocess_5fobject_2eproto);
   102  }
   103  
   104  void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
   105  void protobuf_RegisterTypes(const ::std::string&) {
   106    protobuf_AssignDescriptorsOnce();
   107    ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
   108        Object_descriptor_, Object::internal_default_instance());
   109    ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
   110          Object_MetadataEntry_descriptor_,
   111          ::google::protobuf::internal::MapEntry<
   112              ::std::string,
   113              ::std::string,
   114              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
   115              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
   116              0>::CreateDefaultInstance(
   117                  Object_MetadataEntry_descriptor_));
   118    ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
   119          Object_SpecEntry_descriptor_,
   120          ::google::protobuf::internal::MapEntry<
   121              ::std::string,
   122              ::std::string,
   123              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
   124              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
   125              0>::CreateDefaultInstance(
   126                  Object_SpecEntry_descriptor_));
   127    ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
   128        Event_descriptor_, Event::internal_default_instance());
   129    ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
   130        EventReply_descriptor_, EventReply::internal_default_instance());
   131  }
   132  
   133  }  // namespace
   134  
   135  void protobuf_ShutdownFile_coprocess_5fobject_2eproto() {
   136    Object_default_instance_.Shutdown();
   137    delete Object_reflection_;
   138    Event_default_instance_.Shutdown();
   139    delete Event_reflection_;
   140    EventReply_default_instance_.Shutdown();
   141    delete EventReply_reflection_;
   142  }
   143  
   144  void protobuf_InitDefaults_coprocess_5fobject_2eproto_impl() {
   145    GOOGLE_PROTOBUF_VERIFY_VERSION;
   146  
   147    ::coprocess::protobuf_InitDefaults_coprocess_5fmini_5frequest_5fobject_2eproto();
   148    ::coprocess::protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto();
   149    ::coprocess::protobuf_InitDefaults_coprocess_5fcommon_2eproto();
   150    ::google::protobuf::internal::GetEmptyString();
   151    Object_default_instance_.DefaultConstruct();
   152    ::google::protobuf::internal::GetEmptyString();
   153    ::google::protobuf::internal::GetEmptyString();
   154    Event_default_instance_.DefaultConstruct();
   155    EventReply_default_instance_.DefaultConstruct();
   156    Object_default_instance_.get_mutable()->InitAsDefaultInstance();
   157    Event_default_instance_.get_mutable()->InitAsDefaultInstance();
   158    EventReply_default_instance_.get_mutable()->InitAsDefaultInstance();
   159  }
   160  
   161  GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_coprocess_5fobject_2eproto_once_);
   162  void protobuf_InitDefaults_coprocess_5fobject_2eproto() {
   163    ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_coprocess_5fobject_2eproto_once_,
   164                   &protobuf_InitDefaults_coprocess_5fobject_2eproto_impl);
   165  }
   166  void protobuf_AddDesc_coprocess_5fobject_2eproto_impl() {
   167    GOOGLE_PROTOBUF_VERIFY_VERSION;
   168  
   169    protobuf_InitDefaults_coprocess_5fobject_2eproto();
   170    ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
   171      "\n\026coprocess_object.proto\022\tcoprocess\032#cop"
   172      "rocess_mini_request_object.proto\032\035coproc"
   173      "ess_session_state.proto\032\026coprocess_commo"
   174      "n.proto\"\330\002\n\006Object\022&\n\thook_type\030\001 \001(\0162\023."
   175      "coprocess.HookType\022\021\n\thook_name\030\002 \001(\t\022-\n"
   176      "\007request\030\003 \001(\0132\034.coprocess.MiniRequestOb"
   177      "ject\022(\n\007session\030\004 \001(\0132\027.coprocess.Sessio"
   178      "nState\0221\n\010metadata\030\005 \003(\0132\037.coprocess.Obj"
   179      "ect.MetadataEntry\022)\n\004spec\030\006 \003(\0132\033.coproc"
   180      "ess.Object.SpecEntry\032/\n\rMetadataEntry\022\013\n"
   181      "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032+\n\tSpecEnt"
   182      "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\030\n\005Ev"
   183      "ent\022\017\n\007payload\030\001 \001(\t\"\014\n\nEventReply2|\n\nDi"
   184      "spatcher\0222\n\010Dispatch\022\021.coprocess.Object\032"
   185      "\021.coprocess.Object\"\000\022:\n\rDispatchEvent\022\020."
   186      "coprocess.Event\032\025.coprocess.EventReply\"\000"
   187      "b\006proto3", 648);
   188    ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
   189      "coprocess_object.proto", &protobuf_RegisterTypes);
   190    ::coprocess::protobuf_AddDesc_coprocess_5fmini_5frequest_5fobject_2eproto();
   191    ::coprocess::protobuf_AddDesc_coprocess_5fsession_5fstate_2eproto();
   192    ::coprocess::protobuf_AddDesc_coprocess_5fcommon_2eproto();
   193    ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_coprocess_5fobject_2eproto);
   194  }
   195  
   196  GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_coprocess_5fobject_2eproto_once_);
   197  void protobuf_AddDesc_coprocess_5fobject_2eproto() {
   198    ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_coprocess_5fobject_2eproto_once_,
   199                   &protobuf_AddDesc_coprocess_5fobject_2eproto_impl);
   200  }
   201  // Force AddDescriptors() to be called at static initialization time.
   202  struct StaticDescriptorInitializer_coprocess_5fobject_2eproto {
   203    StaticDescriptorInitializer_coprocess_5fobject_2eproto() {
   204      protobuf_AddDesc_coprocess_5fobject_2eproto();
   205    }
   206  } static_descriptor_initializer_coprocess_5fobject_2eproto_;
   207  
   208  namespace {
   209  
   210  static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN;
   211  static void MergeFromFail(int line) {
   212    ::google::protobuf::internal::MergeFromFail(__FILE__, line);
   213  }
   214  
   215  }  // namespace
   216  
   217  
   218  // ===================================================================
   219  
   220  #if !defined(_MSC_VER) || _MSC_VER >= 1900
   221  const int Object::kHookTypeFieldNumber;
   222  const int Object::kHookNameFieldNumber;
   223  const int Object::kRequestFieldNumber;
   224  const int Object::kSessionFieldNumber;
   225  const int Object::kMetadataFieldNumber;
   226  const int Object::kSpecFieldNumber;
   227  #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
   228  
   229  Object::Object()
   230    : ::google::protobuf::Message(), _internal_metadata_(NULL) {
   231    if (this != internal_default_instance()) protobuf_InitDefaults_coprocess_5fobject_2eproto();
   232    SharedCtor();
   233    // @@protoc_insertion_point(constructor:coprocess.Object)
   234  }
   235  
   236  void Object::InitAsDefaultInstance() {
   237    request_ = const_cast< ::coprocess::MiniRequestObject*>(
   238        ::coprocess::MiniRequestObject::internal_default_instance());
   239    session_ = const_cast< ::coprocess::SessionState*>(
   240        ::coprocess::SessionState::internal_default_instance());
   241  }
   242  
   243  Object::Object(const Object& from)
   244    : ::google::protobuf::Message(),
   245      _internal_metadata_(NULL) {
   246    SharedCtor();
   247    UnsafeMergeFrom(from);
   248    // @@protoc_insertion_point(copy_constructor:coprocess.Object)
   249  }
   250  
   251  void Object::SharedCtor() {
   252    metadata_.SetAssignDescriptorCallback(
   253        protobuf_AssignDescriptorsOnce);
   254    metadata_.SetEntryDescriptor(
   255        &::coprocess::Object_MetadataEntry_descriptor_);
   256    spec_.SetAssignDescriptorCallback(
   257        protobuf_AssignDescriptorsOnce);
   258    spec_.SetEntryDescriptor(
   259        &::coprocess::Object_SpecEntry_descriptor_);
   260    hook_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   261    request_ = NULL;
   262    session_ = NULL;
   263    hook_type_ = 0;
   264    _cached_size_ = 0;
   265  }
   266  
   267  Object::~Object() {
   268    // @@protoc_insertion_point(destructor:coprocess.Object)
   269    SharedDtor();
   270  }
   271  
   272  void Object::SharedDtor() {
   273    hook_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   274    if (this != &Object_default_instance_.get()) {
   275      delete request_;
   276      delete session_;
   277    }
   278  }
   279  
   280  void Object::SetCachedSize(int size) const {
   281    GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
   282    _cached_size_ = size;
   283    GOOGLE_SAFE_CONCURRENT_WRITES_END();
   284  }
   285  const ::google::protobuf::Descriptor* Object::descriptor() {
   286    protobuf_AssignDescriptorsOnce();
   287    return Object_descriptor_;
   288  }
   289  
   290  const Object& Object::default_instance() {
   291    protobuf_InitDefaults_coprocess_5fobject_2eproto();
   292    return *internal_default_instance();
   293  }
   294  
   295  ::google::protobuf::internal::ExplicitlyConstructed<Object> Object_default_instance_;
   296  
   297  Object* Object::New(::google::protobuf::Arena* arena) const {
   298    Object* n = new Object;
   299    if (arena != NULL) {
   300      arena->Own(n);
   301    }
   302    return n;
   303  }
   304  
   305  void Object::Clear() {
   306  // @@protoc_insertion_point(message_clear_start:coprocess.Object)
   307    hook_type_ = 0;
   308    hook_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   309    if (GetArenaNoVirtual() == NULL && request_ != NULL) delete request_;
   310    request_ = NULL;
   311    if (GetArenaNoVirtual() == NULL && session_ != NULL) delete session_;
   312    session_ = NULL;
   313    metadata_.Clear();
   314    spec_.Clear();
   315  }
   316  
   317  bool Object::MergePartialFromCodedStream(
   318      ::google::protobuf::io::CodedInputStream* input) {
   319  #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
   320    ::google::protobuf::uint32 tag;
   321    // @@protoc_insertion_point(parse_start:coprocess.Object)
   322    for (;;) {
   323      ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
   324      tag = p.first;
   325      if (!p.second) goto handle_unusual;
   326      switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
   327        // optional .coprocess.HookType hook_type = 1;
   328        case 1: {
   329          if (tag == 8) {
   330            int value;
   331            DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
   332                     int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
   333                   input, &value)));
   334            set_hook_type(static_cast< ::coprocess::HookType >(value));
   335          } else {
   336            goto handle_unusual;
   337          }
   338          if (input->ExpectTag(18)) goto parse_hook_name;
   339          break;
   340        }
   341  
   342        // optional string hook_name = 2;
   343        case 2: {
   344          if (tag == 18) {
   345           parse_hook_name:
   346            DO_(::google::protobuf::internal::WireFormatLite::ReadString(
   347                  input, this->mutable_hook_name()));
   348            DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   349              this->hook_name().data(), this->hook_name().length(),
   350              ::google::protobuf::internal::WireFormatLite::PARSE,
   351              "coprocess.Object.hook_name"));
   352          } else {
   353            goto handle_unusual;
   354          }
   355          if (input->ExpectTag(26)) goto parse_request;
   356          break;
   357        }
   358  
   359        // optional .coprocess.MiniRequestObject request = 3;
   360        case 3: {
   361          if (tag == 26) {
   362           parse_request:
   363            DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
   364                 input, mutable_request()));
   365          } else {
   366            goto handle_unusual;
   367          }
   368          if (input->ExpectTag(34)) goto parse_session;
   369          break;
   370        }
   371  
   372        // optional .coprocess.SessionState session = 4;
   373        case 4: {
   374          if (tag == 34) {
   375           parse_session:
   376            DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
   377                 input, mutable_session()));
   378          } else {
   379            goto handle_unusual;
   380          }
   381          if (input->ExpectTag(42)) goto parse_metadata;
   382          break;
   383        }
   384  
   385        // map<string, string> metadata = 5;
   386        case 5: {
   387          if (tag == 42) {
   388           parse_metadata:
   389            DO_(input->IncrementRecursionDepth());
   390           parse_loop_metadata:
   391            Object_MetadataEntry::Parser< ::google::protobuf::internal::MapField<
   392                ::std::string, ::std::string,
   393                ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
   394                ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
   395                0 >,
   396              ::google::protobuf::Map< ::std::string, ::std::string > > parser(&metadata_);
   397            DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
   398                input, &parser));
   399            DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   400              parser.key().data(), parser.key().length(),
   401              ::google::protobuf::internal::WireFormatLite::PARSE,
   402              "coprocess.Object.MetadataEntry.key"));
   403            DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   404              parser.value().data(), parser.value().length(),
   405              ::google::protobuf::internal::WireFormatLite::PARSE,
   406              "coprocess.Object.MetadataEntry.value"));
   407          } else {
   408            goto handle_unusual;
   409          }
   410          if (input->ExpectTag(42)) goto parse_loop_metadata;
   411          if (input->ExpectTag(50)) goto parse_loop_spec;
   412          input->UnsafeDecrementRecursionDepth();
   413          break;
   414        }
   415  
   416        // map<string, string> spec = 6;
   417        case 6: {
   418          if (tag == 50) {
   419            DO_(input->IncrementRecursionDepth());
   420           parse_loop_spec:
   421            Object_SpecEntry::Parser< ::google::protobuf::internal::MapField<
   422                ::std::string, ::std::string,
   423                ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
   424                ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
   425                0 >,
   426              ::google::protobuf::Map< ::std::string, ::std::string > > parser(&spec_);
   427            DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
   428                input, &parser));
   429            DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   430              parser.key().data(), parser.key().length(),
   431              ::google::protobuf::internal::WireFormatLite::PARSE,
   432              "coprocess.Object.SpecEntry.key"));
   433            DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   434              parser.value().data(), parser.value().length(),
   435              ::google::protobuf::internal::WireFormatLite::PARSE,
   436              "coprocess.Object.SpecEntry.value"));
   437          } else {
   438            goto handle_unusual;
   439          }
   440          if (input->ExpectTag(50)) goto parse_loop_spec;
   441          input->UnsafeDecrementRecursionDepth();
   442          if (input->ExpectAtEnd()) goto success;
   443          break;
   444        }
   445  
   446        default: {
   447        handle_unusual:
   448          if (tag == 0 ||
   449              ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
   450              ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
   451            goto success;
   452          }
   453          DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
   454          break;
   455        }
   456      }
   457    }
   458  success:
   459    // @@protoc_insertion_point(parse_success:coprocess.Object)
   460    return true;
   461  failure:
   462    // @@protoc_insertion_point(parse_failure:coprocess.Object)
   463    return false;
   464  #undef DO_
   465  }
   466  
   467  void Object::SerializeWithCachedSizes(
   468      ::google::protobuf::io::CodedOutputStream* output) const {
   469    // @@protoc_insertion_point(serialize_start:coprocess.Object)
   470    // optional .coprocess.HookType hook_type = 1;
   471    if (this->hook_type() != 0) {
   472      ::google::protobuf::internal::WireFormatLite::WriteEnum(
   473        1, this->hook_type(), output);
   474    }
   475  
   476    // optional string hook_name = 2;
   477    if (this->hook_name().size() > 0) {
   478      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   479        this->hook_name().data(), this->hook_name().length(),
   480        ::google::protobuf::internal::WireFormatLite::SERIALIZE,
   481        "coprocess.Object.hook_name");
   482      ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
   483        2, this->hook_name(), output);
   484    }
   485  
   486    // optional .coprocess.MiniRequestObject request = 3;
   487    if (this->has_request()) {
   488      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
   489        3, *this->request_, output);
   490    }
   491  
   492    // optional .coprocess.SessionState session = 4;
   493    if (this->has_session()) {
   494      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
   495        4, *this->session_, output);
   496    }
   497  
   498    // map<string, string> metadata = 5;
   499    if (!this->metadata().empty()) {
   500      typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
   501          ConstPtr;
   502      typedef ConstPtr SortItem;
   503      typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
   504      struct Utf8Check {
   505        static void Check(ConstPtr p) {
   506          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   507            p->first.data(), p->first.length(),
   508            ::google::protobuf::internal::WireFormatLite::SERIALIZE,
   509            "coprocess.Object.MetadataEntry.key");
   510          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   511            p->second.data(), p->second.length(),
   512            ::google::protobuf::internal::WireFormatLite::SERIALIZE,
   513            "coprocess.Object.MetadataEntry.value");
   514        }
   515      };
   516  
   517      if (output->IsSerializationDeterminstic() &&
   518          this->metadata().size() > 1) {
   519        ::google::protobuf::scoped_array<SortItem> items(
   520            new SortItem[this->metadata().size()]);
   521        typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
   522        size_type n = 0;
   523        for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
   524            it = this->metadata().begin();
   525            it != this->metadata().end(); ++it, ++n) {
   526          items[n] = SortItem(&*it);
   527        }
   528        ::std::sort(&items[0], &items[n], Less());
   529        ::google::protobuf::scoped_ptr<Object_MetadataEntry> entry;
   530        for (size_type i = 0; i < n; i++) {
   531          entry.reset(metadata_.NewEntryWrapper(
   532              items[i]->first, items[i]->second));
   533          ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
   534              5, *entry, output);
   535          Utf8Check::Check(items[i]);
   536        }
   537      } else {
   538        ::google::protobuf::scoped_ptr<Object_MetadataEntry> entry;
   539        for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
   540            it = this->metadata().begin();
   541            it != this->metadata().end(); ++it) {
   542          entry.reset(metadata_.NewEntryWrapper(
   543              it->first, it->second));
   544          ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
   545              5, *entry, output);
   546          Utf8Check::Check(&*it);
   547        }
   548      }
   549    }
   550  
   551    // map<string, string> spec = 6;
   552    if (!this->spec().empty()) {
   553      typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
   554          ConstPtr;
   555      typedef ConstPtr SortItem;
   556      typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
   557      struct Utf8Check {
   558        static void Check(ConstPtr p) {
   559          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   560            p->first.data(), p->first.length(),
   561            ::google::protobuf::internal::WireFormatLite::SERIALIZE,
   562            "coprocess.Object.SpecEntry.key");
   563          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   564            p->second.data(), p->second.length(),
   565            ::google::protobuf::internal::WireFormatLite::SERIALIZE,
   566            "coprocess.Object.SpecEntry.value");
   567        }
   568      };
   569  
   570      if (output->IsSerializationDeterminstic() &&
   571          this->spec().size() > 1) {
   572        ::google::protobuf::scoped_array<SortItem> items(
   573            new SortItem[this->spec().size()]);
   574        typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
   575        size_type n = 0;
   576        for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
   577            it = this->spec().begin();
   578            it != this->spec().end(); ++it, ++n) {
   579          items[n] = SortItem(&*it);
   580        }
   581        ::std::sort(&items[0], &items[n], Less());
   582        ::google::protobuf::scoped_ptr<Object_SpecEntry> entry;
   583        for (size_type i = 0; i < n; i++) {
   584          entry.reset(spec_.NewEntryWrapper(
   585              items[i]->first, items[i]->second));
   586          ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
   587              6, *entry, output);
   588          Utf8Check::Check(items[i]);
   589        }
   590      } else {
   591        ::google::protobuf::scoped_ptr<Object_SpecEntry> entry;
   592        for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
   593            it = this->spec().begin();
   594            it != this->spec().end(); ++it) {
   595          entry.reset(spec_.NewEntryWrapper(
   596              it->first, it->second));
   597          ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
   598              6, *entry, output);
   599          Utf8Check::Check(&*it);
   600        }
   601      }
   602    }
   603  
   604    // @@protoc_insertion_point(serialize_end:coprocess.Object)
   605  }
   606  
   607  ::google::protobuf::uint8* Object::InternalSerializeWithCachedSizesToArray(
   608      bool deterministic, ::google::protobuf::uint8* target) const {
   609    (void)deterministic; // Unused
   610    // @@protoc_insertion_point(serialize_to_array_start:coprocess.Object)
   611    // optional .coprocess.HookType hook_type = 1;
   612    if (this->hook_type() != 0) {
   613      target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
   614        1, this->hook_type(), target);
   615    }
   616  
   617    // optional string hook_name = 2;
   618    if (this->hook_name().size() > 0) {
   619      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   620        this->hook_name().data(), this->hook_name().length(),
   621        ::google::protobuf::internal::WireFormatLite::SERIALIZE,
   622        "coprocess.Object.hook_name");
   623      target =
   624        ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
   625          2, this->hook_name(), target);
   626    }
   627  
   628    // optional .coprocess.MiniRequestObject request = 3;
   629    if (this->has_request()) {
   630      target = ::google::protobuf::internal::WireFormatLite::
   631        InternalWriteMessageNoVirtualToArray(
   632          3, *this->request_, false, target);
   633    }
   634  
   635    // optional .coprocess.SessionState session = 4;
   636    if (this->has_session()) {
   637      target = ::google::protobuf::internal::WireFormatLite::
   638        InternalWriteMessageNoVirtualToArray(
   639          4, *this->session_, false, target);
   640    }
   641  
   642    // map<string, string> metadata = 5;
   643    if (!this->metadata().empty()) {
   644      typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
   645          ConstPtr;
   646      typedef ConstPtr SortItem;
   647      typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
   648      struct Utf8Check {
   649        static void Check(ConstPtr p) {
   650          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   651            p->first.data(), p->first.length(),
   652            ::google::protobuf::internal::WireFormatLite::SERIALIZE,
   653            "coprocess.Object.MetadataEntry.key");
   654          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   655            p->second.data(), p->second.length(),
   656            ::google::protobuf::internal::WireFormatLite::SERIALIZE,
   657            "coprocess.Object.MetadataEntry.value");
   658        }
   659      };
   660  
   661      if (deterministic &&
   662          this->metadata().size() > 1) {
   663        ::google::protobuf::scoped_array<SortItem> items(
   664            new SortItem[this->metadata().size()]);
   665        typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
   666        size_type n = 0;
   667        for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
   668            it = this->metadata().begin();
   669            it != this->metadata().end(); ++it, ++n) {
   670          items[n] = SortItem(&*it);
   671        }
   672        ::std::sort(&items[0], &items[n], Less());
   673        ::google::protobuf::scoped_ptr<Object_MetadataEntry> entry;
   674        for (size_type i = 0; i < n; i++) {
   675          entry.reset(metadata_.NewEntryWrapper(
   676              items[i]->first, items[i]->second));
   677          target = ::google::protobuf::internal::WireFormatLite::
   678                     InternalWriteMessageNoVirtualToArray(
   679                         5, *entry, deterministic, target);
   680  ;
   681          Utf8Check::Check(items[i]);
   682        }
   683      } else {
   684        ::google::protobuf::scoped_ptr<Object_MetadataEntry> entry;
   685        for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
   686            it = this->metadata().begin();
   687            it != this->metadata().end(); ++it) {
   688          entry.reset(metadata_.NewEntryWrapper(
   689              it->first, it->second));
   690          target = ::google::protobuf::internal::WireFormatLite::
   691                     InternalWriteMessageNoVirtualToArray(
   692                         5, *entry, deterministic, target);
   693  ;
   694          Utf8Check::Check(&*it);
   695        }
   696      }
   697    }
   698  
   699    // map<string, string> spec = 6;
   700    if (!this->spec().empty()) {
   701      typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
   702          ConstPtr;
   703      typedef ConstPtr SortItem;
   704      typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
   705      struct Utf8Check {
   706        static void Check(ConstPtr p) {
   707          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   708            p->first.data(), p->first.length(),
   709            ::google::protobuf::internal::WireFormatLite::SERIALIZE,
   710            "coprocess.Object.SpecEntry.key");
   711          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   712            p->second.data(), p->second.length(),
   713            ::google::protobuf::internal::WireFormatLite::SERIALIZE,
   714            "coprocess.Object.SpecEntry.value");
   715        }
   716      };
   717  
   718      if (deterministic &&
   719          this->spec().size() > 1) {
   720        ::google::protobuf::scoped_array<SortItem> items(
   721            new SortItem[this->spec().size()]);
   722        typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
   723        size_type n = 0;
   724        for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
   725            it = this->spec().begin();
   726            it != this->spec().end(); ++it, ++n) {
   727          items[n] = SortItem(&*it);
   728        }
   729        ::std::sort(&items[0], &items[n], Less());
   730        ::google::protobuf::scoped_ptr<Object_SpecEntry> entry;
   731        for (size_type i = 0; i < n; i++) {
   732          entry.reset(spec_.NewEntryWrapper(
   733              items[i]->first, items[i]->second));
   734          target = ::google::protobuf::internal::WireFormatLite::
   735                     InternalWriteMessageNoVirtualToArray(
   736                         6, *entry, deterministic, target);
   737  ;
   738          Utf8Check::Check(items[i]);
   739        }
   740      } else {
   741        ::google::protobuf::scoped_ptr<Object_SpecEntry> entry;
   742        for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
   743            it = this->spec().begin();
   744            it != this->spec().end(); ++it) {
   745          entry.reset(spec_.NewEntryWrapper(
   746              it->first, it->second));
   747          target = ::google::protobuf::internal::WireFormatLite::
   748                     InternalWriteMessageNoVirtualToArray(
   749                         6, *entry, deterministic, target);
   750  ;
   751          Utf8Check::Check(&*it);
   752        }
   753      }
   754    }
   755  
   756    // @@protoc_insertion_point(serialize_to_array_end:coprocess.Object)
   757    return target;
   758  }
   759  
   760  size_t Object::ByteSizeLong() const {
   761  // @@protoc_insertion_point(message_byte_size_start:coprocess.Object)
   762    size_t total_size = 0;
   763  
   764    // optional .coprocess.HookType hook_type = 1;
   765    if (this->hook_type() != 0) {
   766      total_size += 1 +
   767        ::google::protobuf::internal::WireFormatLite::EnumSize(this->hook_type());
   768    }
   769  
   770    // optional string hook_name = 2;
   771    if (this->hook_name().size() > 0) {
   772      total_size += 1 +
   773        ::google::protobuf::internal::WireFormatLite::StringSize(
   774          this->hook_name());
   775    }
   776  
   777    // optional .coprocess.MiniRequestObject request = 3;
   778    if (this->has_request()) {
   779      total_size += 1 +
   780        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
   781          *this->request_);
   782    }
   783  
   784    // optional .coprocess.SessionState session = 4;
   785    if (this->has_session()) {
   786      total_size += 1 +
   787        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
   788          *this->session_);
   789    }
   790  
   791    // map<string, string> metadata = 5;
   792    total_size += 1 *
   793        ::google::protobuf::internal::FromIntSize(this->metadata_size());
   794    {
   795      ::google::protobuf::scoped_ptr<Object_MetadataEntry> entry;
   796      for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
   797          it = this->metadata().begin();
   798          it != this->metadata().end(); ++it) {
   799        entry.reset(metadata_.NewEntryWrapper(it->first, it->second));
   800        total_size += ::google::protobuf::internal::WireFormatLite::
   801            MessageSizeNoVirtual(*entry);
   802      }
   803    }
   804  
   805    // map<string, string> spec = 6;
   806    total_size += 1 *
   807        ::google::protobuf::internal::FromIntSize(this->spec_size());
   808    {
   809      ::google::protobuf::scoped_ptr<Object_SpecEntry> entry;
   810      for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
   811          it = this->spec().begin();
   812          it != this->spec().end(); ++it) {
   813        entry.reset(spec_.NewEntryWrapper(it->first, it->second));
   814        total_size += ::google::protobuf::internal::WireFormatLite::
   815            MessageSizeNoVirtual(*entry);
   816      }
   817    }
   818  
   819    int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
   820    GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
   821    _cached_size_ = cached_size;
   822    GOOGLE_SAFE_CONCURRENT_WRITES_END();
   823    return total_size;
   824  }
   825  
   826  void Object::MergeFrom(const ::google::protobuf::Message& from) {
   827  // @@protoc_insertion_point(generalized_merge_from_start:coprocess.Object)
   828    if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
   829    const Object* source =
   830        ::google::protobuf::internal::DynamicCastToGenerated<const Object>(
   831            &from);
   832    if (source == NULL) {
   833    // @@protoc_insertion_point(generalized_merge_from_cast_fail:coprocess.Object)
   834      ::google::protobuf::internal::ReflectionOps::Merge(from, this);
   835    } else {
   836    // @@protoc_insertion_point(generalized_merge_from_cast_success:coprocess.Object)
   837      UnsafeMergeFrom(*source);
   838    }
   839  }
   840  
   841  void Object::MergeFrom(const Object& from) {
   842  // @@protoc_insertion_point(class_specific_merge_from_start:coprocess.Object)
   843    if (GOOGLE_PREDICT_TRUE(&from != this)) {
   844      UnsafeMergeFrom(from);
   845    } else {
   846      MergeFromFail(__LINE__);
   847    }
   848  }
   849  
   850  void Object::UnsafeMergeFrom(const Object& from) {
   851    GOOGLE_DCHECK(&from != this);
   852    metadata_.MergeFrom(from.metadata_);
   853    spec_.MergeFrom(from.spec_);
   854    if (from.hook_type() != 0) {
   855      set_hook_type(from.hook_type());
   856    }
   857    if (from.hook_name().size() > 0) {
   858  
   859      hook_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hook_name_);
   860    }
   861    if (from.has_request()) {
   862      mutable_request()->::coprocess::MiniRequestObject::MergeFrom(from.request());
   863    }
   864    if (from.has_session()) {
   865      mutable_session()->::coprocess::SessionState::MergeFrom(from.session());
   866    }
   867  }
   868  
   869  void Object::CopyFrom(const ::google::protobuf::Message& from) {
   870  // @@protoc_insertion_point(generalized_copy_from_start:coprocess.Object)
   871    if (&from == this) return;
   872    Clear();
   873    MergeFrom(from);
   874  }
   875  
   876  void Object::CopyFrom(const Object& from) {
   877  // @@protoc_insertion_point(class_specific_copy_from_start:coprocess.Object)
   878    if (&from == this) return;
   879    Clear();
   880    UnsafeMergeFrom(from);
   881  }
   882  
   883  bool Object::IsInitialized() const {
   884  
   885    return true;
   886  }
   887  
   888  void Object::Swap(Object* other) {
   889    if (other == this) return;
   890    InternalSwap(other);
   891  }
   892  void Object::InternalSwap(Object* other) {
   893    std::swap(hook_type_, other->hook_type_);
   894    hook_name_.Swap(&other->hook_name_);
   895    std::swap(request_, other->request_);
   896    std::swap(session_, other->session_);
   897    metadata_.Swap(&other->metadata_);
   898    spec_.Swap(&other->spec_);
   899    _internal_metadata_.Swap(&other->_internal_metadata_);
   900    std::swap(_cached_size_, other->_cached_size_);
   901  }
   902  
   903  ::google::protobuf::Metadata Object::GetMetadata() const {
   904    protobuf_AssignDescriptorsOnce();
   905    ::google::protobuf::Metadata metadata;
   906    metadata.descriptor = Object_descriptor_;
   907    metadata.reflection = Object_reflection_;
   908    return metadata;
   909  }
   910  
   911  #if PROTOBUF_INLINE_NOT_IN_HEADERS
   912  // Object
   913  
   914  // optional .coprocess.HookType hook_type = 1;
   915  void Object::clear_hook_type() {
   916    hook_type_ = 0;
   917  }
   918  ::coprocess::HookType Object::hook_type() const {
   919    // @@protoc_insertion_point(field_get:coprocess.Object.hook_type)
   920    return static_cast< ::coprocess::HookType >(hook_type_);
   921  }
   922  void Object::set_hook_type(::coprocess::HookType value) {
   923    
   924    hook_type_ = value;
   925    // @@protoc_insertion_point(field_set:coprocess.Object.hook_type)
   926  }
   927  
   928  // optional string hook_name = 2;
   929  void Object::clear_hook_name() {
   930    hook_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   931  }
   932  const ::std::string& Object::hook_name() const {
   933    // @@protoc_insertion_point(field_get:coprocess.Object.hook_name)
   934    return hook_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   935  }
   936  void Object::set_hook_name(const ::std::string& value) {
   937    
   938    hook_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
   939    // @@protoc_insertion_point(field_set:coprocess.Object.hook_name)
   940  }
   941  void Object::set_hook_name(const char* value) {
   942    
   943    hook_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
   944    // @@protoc_insertion_point(field_set_char:coprocess.Object.hook_name)
   945  }
   946  void Object::set_hook_name(const char* value, size_t size) {
   947    
   948    hook_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
   949        ::std::string(reinterpret_cast<const char*>(value), size));
   950    // @@protoc_insertion_point(field_set_pointer:coprocess.Object.hook_name)
   951  }
   952  ::std::string* Object::mutable_hook_name() {
   953    
   954    // @@protoc_insertion_point(field_mutable:coprocess.Object.hook_name)
   955    return hook_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   956  }
   957  ::std::string* Object::release_hook_name() {
   958    // @@protoc_insertion_point(field_release:coprocess.Object.hook_name)
   959    
   960    return hook_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   961  }
   962  void Object::set_allocated_hook_name(::std::string* hook_name) {
   963    if (hook_name != NULL) {
   964      
   965    } else {
   966      
   967    }
   968    hook_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hook_name);
   969    // @@protoc_insertion_point(field_set_allocated:coprocess.Object.hook_name)
   970  }
   971  
   972  // optional .coprocess.MiniRequestObject request = 3;
   973  bool Object::has_request() const {
   974    return this != internal_default_instance() && request_ != NULL;
   975  }
   976  void Object::clear_request() {
   977    if (GetArenaNoVirtual() == NULL && request_ != NULL) delete request_;
   978    request_ = NULL;
   979  }
   980  const ::coprocess::MiniRequestObject& Object::request() const {
   981    // @@protoc_insertion_point(field_get:coprocess.Object.request)
   982    return request_ != NULL ? *request_
   983                           : *::coprocess::MiniRequestObject::internal_default_instance();
   984  }
   985  ::coprocess::MiniRequestObject* Object::mutable_request() {
   986    
   987    if (request_ == NULL) {
   988      request_ = new ::coprocess::MiniRequestObject;
   989    }
   990    // @@protoc_insertion_point(field_mutable:coprocess.Object.request)
   991    return request_;
   992  }
   993  ::coprocess::MiniRequestObject* Object::release_request() {
   994    // @@protoc_insertion_point(field_release:coprocess.Object.request)
   995    
   996    ::coprocess::MiniRequestObject* temp = request_;
   997    request_ = NULL;
   998    return temp;
   999  }
  1000  void Object::set_allocated_request(::coprocess::MiniRequestObject* request) {
  1001    delete request_;
  1002    request_ = request;
  1003    if (request) {
  1004      
  1005    } else {
  1006      
  1007    }
  1008    // @@protoc_insertion_point(field_set_allocated:coprocess.Object.request)
  1009  }
  1010  
  1011  // optional .coprocess.SessionState session = 4;
  1012  bool Object::has_session() const {
  1013    return this != internal_default_instance() && session_ != NULL;
  1014  }
  1015  void Object::clear_session() {
  1016    if (GetArenaNoVirtual() == NULL && session_ != NULL) delete session_;
  1017    session_ = NULL;
  1018  }
  1019  const ::coprocess::SessionState& Object::session() const {
  1020    // @@protoc_insertion_point(field_get:coprocess.Object.session)
  1021    return session_ != NULL ? *session_
  1022                           : *::coprocess::SessionState::internal_default_instance();
  1023  }
  1024  ::coprocess::SessionState* Object::mutable_session() {
  1025    
  1026    if (session_ == NULL) {
  1027      session_ = new ::coprocess::SessionState;
  1028    }
  1029    // @@protoc_insertion_point(field_mutable:coprocess.Object.session)
  1030    return session_;
  1031  }
  1032  ::coprocess::SessionState* Object::release_session() {
  1033    // @@protoc_insertion_point(field_release:coprocess.Object.session)
  1034    
  1035    ::coprocess::SessionState* temp = session_;
  1036    session_ = NULL;
  1037    return temp;
  1038  }
  1039  void Object::set_allocated_session(::coprocess::SessionState* session) {
  1040    delete session_;
  1041    session_ = session;
  1042    if (session) {
  1043      
  1044    } else {
  1045      
  1046    }
  1047    // @@protoc_insertion_point(field_set_allocated:coprocess.Object.session)
  1048  }
  1049  
  1050  // map<string, string> metadata = 5;
  1051  int Object::metadata_size() const {
  1052    return metadata_.size();
  1053  }
  1054  void Object::clear_metadata() {
  1055    metadata_.Clear();
  1056  }
  1057   const ::google::protobuf::Map< ::std::string, ::std::string >&
  1058  Object::metadata() const {
  1059    // @@protoc_insertion_point(field_map:coprocess.Object.metadata)
  1060    return metadata_.GetMap();
  1061  }
  1062   ::google::protobuf::Map< ::std::string, ::std::string >*
  1063  Object::mutable_metadata() {
  1064    // @@protoc_insertion_point(field_mutable_map:coprocess.Object.metadata)
  1065    return metadata_.MutableMap();
  1066  }
  1067  
  1068  // map<string, string> spec = 6;
  1069  int Object::spec_size() const {
  1070    return spec_.size();
  1071  }
  1072  void Object::clear_spec() {
  1073    spec_.Clear();
  1074  }
  1075   const ::google::protobuf::Map< ::std::string, ::std::string >&
  1076  Object::spec() const {
  1077    // @@protoc_insertion_point(field_map:coprocess.Object.spec)
  1078    return spec_.GetMap();
  1079  }
  1080   ::google::protobuf::Map< ::std::string, ::std::string >*
  1081  Object::mutable_spec() {
  1082    // @@protoc_insertion_point(field_mutable_map:coprocess.Object.spec)
  1083    return spec_.MutableMap();
  1084  }
  1085  
  1086  inline const Object* Object::internal_default_instance() {
  1087    return &Object_default_instance_.get();
  1088  }
  1089  #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
  1090  
  1091  // ===================================================================
  1092  
  1093  #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1094  const int Event::kPayloadFieldNumber;
  1095  #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
  1096  
  1097  Event::Event()
  1098    : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1099    if (this != internal_default_instance()) protobuf_InitDefaults_coprocess_5fobject_2eproto();
  1100    SharedCtor();
  1101    // @@protoc_insertion_point(constructor:coprocess.Event)
  1102  }
  1103  
  1104  void Event::InitAsDefaultInstance() {
  1105  }
  1106  
  1107  Event::Event(const Event& from)
  1108    : ::google::protobuf::Message(),
  1109      _internal_metadata_(NULL) {
  1110    SharedCtor();
  1111    UnsafeMergeFrom(from);
  1112    // @@protoc_insertion_point(copy_constructor:coprocess.Event)
  1113  }
  1114  
  1115  void Event::SharedCtor() {
  1116    payload_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1117    _cached_size_ = 0;
  1118  }
  1119  
  1120  Event::~Event() {
  1121    // @@protoc_insertion_point(destructor:coprocess.Event)
  1122    SharedDtor();
  1123  }
  1124  
  1125  void Event::SharedDtor() {
  1126    payload_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1127  }
  1128  
  1129  void Event::SetCachedSize(int size) const {
  1130    GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1131    _cached_size_ = size;
  1132    GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1133  }
  1134  const ::google::protobuf::Descriptor* Event::descriptor() {
  1135    protobuf_AssignDescriptorsOnce();
  1136    return Event_descriptor_;
  1137  }
  1138  
  1139  const Event& Event::default_instance() {
  1140    protobuf_InitDefaults_coprocess_5fobject_2eproto();
  1141    return *internal_default_instance();
  1142  }
  1143  
  1144  ::google::protobuf::internal::ExplicitlyConstructed<Event> Event_default_instance_;
  1145  
  1146  Event* Event::New(::google::protobuf::Arena* arena) const {
  1147    Event* n = new Event;
  1148    if (arena != NULL) {
  1149      arena->Own(n);
  1150    }
  1151    return n;
  1152  }
  1153  
  1154  void Event::Clear() {
  1155  // @@protoc_insertion_point(message_clear_start:coprocess.Event)
  1156    payload_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1157  }
  1158  
  1159  bool Event::MergePartialFromCodedStream(
  1160      ::google::protobuf::io::CodedInputStream* input) {
  1161  #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1162    ::google::protobuf::uint32 tag;
  1163    // @@protoc_insertion_point(parse_start:coprocess.Event)
  1164    for (;;) {
  1165      ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  1166      tag = p.first;
  1167      if (!p.second) goto handle_unusual;
  1168      switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1169        // optional string payload = 1;
  1170        case 1: {
  1171          if (tag == 10) {
  1172            DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1173                  input, this->mutable_payload()));
  1174            DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1175              this->payload().data(), this->payload().length(),
  1176              ::google::protobuf::internal::WireFormatLite::PARSE,
  1177              "coprocess.Event.payload"));
  1178          } else {
  1179            goto handle_unusual;
  1180          }
  1181          if (input->ExpectAtEnd()) goto success;
  1182          break;
  1183        }
  1184  
  1185        default: {
  1186        handle_unusual:
  1187          if (tag == 0 ||
  1188              ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1189              ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1190            goto success;
  1191          }
  1192          DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
  1193          break;
  1194        }
  1195      }
  1196    }
  1197  success:
  1198    // @@protoc_insertion_point(parse_success:coprocess.Event)
  1199    return true;
  1200  failure:
  1201    // @@protoc_insertion_point(parse_failure:coprocess.Event)
  1202    return false;
  1203  #undef DO_
  1204  }
  1205  
  1206  void Event::SerializeWithCachedSizes(
  1207      ::google::protobuf::io::CodedOutputStream* output) const {
  1208    // @@protoc_insertion_point(serialize_start:coprocess.Event)
  1209    // optional string payload = 1;
  1210    if (this->payload().size() > 0) {
  1211      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1212        this->payload().data(), this->payload().length(),
  1213        ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1214        "coprocess.Event.payload");
  1215      ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1216        1, this->payload(), output);
  1217    }
  1218  
  1219    // @@protoc_insertion_point(serialize_end:coprocess.Event)
  1220  }
  1221  
  1222  ::google::protobuf::uint8* Event::InternalSerializeWithCachedSizesToArray(
  1223      bool deterministic, ::google::protobuf::uint8* target) const {
  1224    (void)deterministic; // Unused
  1225    // @@protoc_insertion_point(serialize_to_array_start:coprocess.Event)
  1226    // optional string payload = 1;
  1227    if (this->payload().size() > 0) {
  1228      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1229        this->payload().data(), this->payload().length(),
  1230        ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1231        "coprocess.Event.payload");
  1232      target =
  1233        ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1234          1, this->payload(), target);
  1235    }
  1236  
  1237    // @@protoc_insertion_point(serialize_to_array_end:coprocess.Event)
  1238    return target;
  1239  }
  1240  
  1241  size_t Event::ByteSizeLong() const {
  1242  // @@protoc_insertion_point(message_byte_size_start:coprocess.Event)
  1243    size_t total_size = 0;
  1244  
  1245    // optional string payload = 1;
  1246    if (this->payload().size() > 0) {
  1247      total_size += 1 +
  1248        ::google::protobuf::internal::WireFormatLite::StringSize(
  1249          this->payload());
  1250    }
  1251  
  1252    int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1253    GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1254    _cached_size_ = cached_size;
  1255    GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1256    return total_size;
  1257  }
  1258  
  1259  void Event::MergeFrom(const ::google::protobuf::Message& from) {
  1260  // @@protoc_insertion_point(generalized_merge_from_start:coprocess.Event)
  1261    if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  1262    const Event* source =
  1263        ::google::protobuf::internal::DynamicCastToGenerated<const Event>(
  1264            &from);
  1265    if (source == NULL) {
  1266    // @@protoc_insertion_point(generalized_merge_from_cast_fail:coprocess.Event)
  1267      ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1268    } else {
  1269    // @@protoc_insertion_point(generalized_merge_from_cast_success:coprocess.Event)
  1270      UnsafeMergeFrom(*source);
  1271    }
  1272  }
  1273  
  1274  void Event::MergeFrom(const Event& from) {
  1275  // @@protoc_insertion_point(class_specific_merge_from_start:coprocess.Event)
  1276    if (GOOGLE_PREDICT_TRUE(&from != this)) {
  1277      UnsafeMergeFrom(from);
  1278    } else {
  1279      MergeFromFail(__LINE__);
  1280    }
  1281  }
  1282  
  1283  void Event::UnsafeMergeFrom(const Event& from) {
  1284    GOOGLE_DCHECK(&from != this);
  1285    if (from.payload().size() > 0) {
  1286  
  1287      payload_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_);
  1288    }
  1289  }
  1290  
  1291  void Event::CopyFrom(const ::google::protobuf::Message& from) {
  1292  // @@protoc_insertion_point(generalized_copy_from_start:coprocess.Event)
  1293    if (&from == this) return;
  1294    Clear();
  1295    MergeFrom(from);
  1296  }
  1297  
  1298  void Event::CopyFrom(const Event& from) {
  1299  // @@protoc_insertion_point(class_specific_copy_from_start:coprocess.Event)
  1300    if (&from == this) return;
  1301    Clear();
  1302    UnsafeMergeFrom(from);
  1303  }
  1304  
  1305  bool Event::IsInitialized() const {
  1306  
  1307    return true;
  1308  }
  1309  
  1310  void Event::Swap(Event* other) {
  1311    if (other == this) return;
  1312    InternalSwap(other);
  1313  }
  1314  void Event::InternalSwap(Event* other) {
  1315    payload_.Swap(&other->payload_);
  1316    _internal_metadata_.Swap(&other->_internal_metadata_);
  1317    std::swap(_cached_size_, other->_cached_size_);
  1318  }
  1319  
  1320  ::google::protobuf::Metadata Event::GetMetadata() const {
  1321    protobuf_AssignDescriptorsOnce();
  1322    ::google::protobuf::Metadata metadata;
  1323    metadata.descriptor = Event_descriptor_;
  1324    metadata.reflection = Event_reflection_;
  1325    return metadata;
  1326  }
  1327  
  1328  #if PROTOBUF_INLINE_NOT_IN_HEADERS
  1329  // Event
  1330  
  1331  // optional string payload = 1;
  1332  void Event::clear_payload() {
  1333    payload_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1334  }
  1335  const ::std::string& Event::payload() const {
  1336    // @@protoc_insertion_point(field_get:coprocess.Event.payload)
  1337    return payload_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1338  }
  1339  void Event::set_payload(const ::std::string& value) {
  1340    
  1341    payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1342    // @@protoc_insertion_point(field_set:coprocess.Event.payload)
  1343  }
  1344  void Event::set_payload(const char* value) {
  1345    
  1346    payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1347    // @@protoc_insertion_point(field_set_char:coprocess.Event.payload)
  1348  }
  1349  void Event::set_payload(const char* value, size_t size) {
  1350    
  1351    payload_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1352        ::std::string(reinterpret_cast<const char*>(value), size));
  1353    // @@protoc_insertion_point(field_set_pointer:coprocess.Event.payload)
  1354  }
  1355  ::std::string* Event::mutable_payload() {
  1356    
  1357    // @@protoc_insertion_point(field_mutable:coprocess.Event.payload)
  1358    return payload_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1359  }
  1360  ::std::string* Event::release_payload() {
  1361    // @@protoc_insertion_point(field_release:coprocess.Event.payload)
  1362    
  1363    return payload_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1364  }
  1365  void Event::set_allocated_payload(::std::string* payload) {
  1366    if (payload != NULL) {
  1367      
  1368    } else {
  1369      
  1370    }
  1371    payload_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), payload);
  1372    // @@protoc_insertion_point(field_set_allocated:coprocess.Event.payload)
  1373  }
  1374  
  1375  inline const Event* Event::internal_default_instance() {
  1376    return &Event_default_instance_.get();
  1377  }
  1378  #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
  1379  
  1380  // ===================================================================
  1381  
  1382  #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1383  #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
  1384  
  1385  EventReply::EventReply()
  1386    : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1387    if (this != internal_default_instance()) protobuf_InitDefaults_coprocess_5fobject_2eproto();
  1388    SharedCtor();
  1389    // @@protoc_insertion_point(constructor:coprocess.EventReply)
  1390  }
  1391  
  1392  void EventReply::InitAsDefaultInstance() {
  1393  }
  1394  
  1395  EventReply::EventReply(const EventReply& from)
  1396    : ::google::protobuf::Message(),
  1397      _internal_metadata_(NULL) {
  1398    SharedCtor();
  1399    UnsafeMergeFrom(from);
  1400    // @@protoc_insertion_point(copy_constructor:coprocess.EventReply)
  1401  }
  1402  
  1403  void EventReply::SharedCtor() {
  1404    _cached_size_ = 0;
  1405  }
  1406  
  1407  EventReply::~EventReply() {
  1408    // @@protoc_insertion_point(destructor:coprocess.EventReply)
  1409    SharedDtor();
  1410  }
  1411  
  1412  void EventReply::SharedDtor() {
  1413  }
  1414  
  1415  void EventReply::SetCachedSize(int size) const {
  1416    GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1417    _cached_size_ = size;
  1418    GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1419  }
  1420  const ::google::protobuf::Descriptor* EventReply::descriptor() {
  1421    protobuf_AssignDescriptorsOnce();
  1422    return EventReply_descriptor_;
  1423  }
  1424  
  1425  const EventReply& EventReply::default_instance() {
  1426    protobuf_InitDefaults_coprocess_5fobject_2eproto();
  1427    return *internal_default_instance();
  1428  }
  1429  
  1430  ::google::protobuf::internal::ExplicitlyConstructed<EventReply> EventReply_default_instance_;
  1431  
  1432  EventReply* EventReply::New(::google::protobuf::Arena* arena) const {
  1433    EventReply* n = new EventReply;
  1434    if (arena != NULL) {
  1435      arena->Own(n);
  1436    }
  1437    return n;
  1438  }
  1439  
  1440  void EventReply::Clear() {
  1441  // @@protoc_insertion_point(message_clear_start:coprocess.EventReply)
  1442  }
  1443  
  1444  bool EventReply::MergePartialFromCodedStream(
  1445      ::google::protobuf::io::CodedInputStream* input) {
  1446  #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1447    ::google::protobuf::uint32 tag;
  1448    // @@protoc_insertion_point(parse_start:coprocess.EventReply)
  1449    for (;;) {
  1450      ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  1451      tag = p.first;
  1452      if (!p.second) goto handle_unusual;
  1453    handle_unusual:
  1454      if (tag == 0 ||
  1455          ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1456          ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1457        goto success;
  1458      }
  1459      DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
  1460    }
  1461  success:
  1462    // @@protoc_insertion_point(parse_success:coprocess.EventReply)
  1463    return true;
  1464  failure:
  1465    // @@protoc_insertion_point(parse_failure:coprocess.EventReply)
  1466    return false;
  1467  #undef DO_
  1468  }
  1469  
  1470  void EventReply::SerializeWithCachedSizes(
  1471      ::google::protobuf::io::CodedOutputStream* output) const {
  1472    // @@protoc_insertion_point(serialize_start:coprocess.EventReply)
  1473    // @@protoc_insertion_point(serialize_end:coprocess.EventReply)
  1474  }
  1475  
  1476  ::google::protobuf::uint8* EventReply::InternalSerializeWithCachedSizesToArray(
  1477      bool deterministic, ::google::protobuf::uint8* target) const {
  1478    (void)deterministic; // Unused
  1479    // @@protoc_insertion_point(serialize_to_array_start:coprocess.EventReply)
  1480    // @@protoc_insertion_point(serialize_to_array_end:coprocess.EventReply)
  1481    return target;
  1482  }
  1483  
  1484  size_t EventReply::ByteSizeLong() const {
  1485  // @@protoc_insertion_point(message_byte_size_start:coprocess.EventReply)
  1486    size_t total_size = 0;
  1487  
  1488    int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1489    GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1490    _cached_size_ = cached_size;
  1491    GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1492    return total_size;
  1493  }
  1494  
  1495  void EventReply::MergeFrom(const ::google::protobuf::Message& from) {
  1496  // @@protoc_insertion_point(generalized_merge_from_start:coprocess.EventReply)
  1497    if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  1498    const EventReply* source =
  1499        ::google::protobuf::internal::DynamicCastToGenerated<const EventReply>(
  1500            &from);
  1501    if (source == NULL) {
  1502    // @@protoc_insertion_point(generalized_merge_from_cast_fail:coprocess.EventReply)
  1503      ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1504    } else {
  1505    // @@protoc_insertion_point(generalized_merge_from_cast_success:coprocess.EventReply)
  1506      UnsafeMergeFrom(*source);
  1507    }
  1508  }
  1509  
  1510  void EventReply::MergeFrom(const EventReply& from) {
  1511  // @@protoc_insertion_point(class_specific_merge_from_start:coprocess.EventReply)
  1512    if (GOOGLE_PREDICT_TRUE(&from != this)) {
  1513      UnsafeMergeFrom(from);
  1514    } else {
  1515      MergeFromFail(__LINE__);
  1516    }
  1517  }
  1518  
  1519  void EventReply::UnsafeMergeFrom(const EventReply& from) {
  1520    GOOGLE_DCHECK(&from != this);
  1521  }
  1522  
  1523  void EventReply::CopyFrom(const ::google::protobuf::Message& from) {
  1524  // @@protoc_insertion_point(generalized_copy_from_start:coprocess.EventReply)
  1525    if (&from == this) return;
  1526    Clear();
  1527    MergeFrom(from);
  1528  }
  1529  
  1530  void EventReply::CopyFrom(const EventReply& from) {
  1531  // @@protoc_insertion_point(class_specific_copy_from_start:coprocess.EventReply)
  1532    if (&from == this) return;
  1533    Clear();
  1534    UnsafeMergeFrom(from);
  1535  }
  1536  
  1537  bool EventReply::IsInitialized() const {
  1538  
  1539    return true;
  1540  }
  1541  
  1542  void EventReply::Swap(EventReply* other) {
  1543    if (other == this) return;
  1544    InternalSwap(other);
  1545  }
  1546  void EventReply::InternalSwap(EventReply* other) {
  1547    _internal_metadata_.Swap(&other->_internal_metadata_);
  1548    std::swap(_cached_size_, other->_cached_size_);
  1549  }
  1550  
  1551  ::google::protobuf::Metadata EventReply::GetMetadata() const {
  1552    protobuf_AssignDescriptorsOnce();
  1553    ::google::protobuf::Metadata metadata;
  1554    metadata.descriptor = EventReply_descriptor_;
  1555    metadata.reflection = EventReply_reflection_;
  1556    return metadata;
  1557  }
  1558  
  1559  #if PROTOBUF_INLINE_NOT_IN_HEADERS
  1560  // EventReply
  1561  
  1562  inline const EventReply* EventReply::internal_default_instance() {
  1563    return &EventReply_default_instance_.get();
  1564  }
  1565  #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
  1566  
  1567  // @@protoc_insertion_point(namespace_scope)
  1568  
  1569  }  // namespace coprocess
  1570  
  1571  // @@protoc_insertion_point(global_scope)