github.com/craicoverflow/tyk@v2.9.6-rc3+incompatible/coprocess/bindings/cpp/coprocess_mini_request_object.pb.cc (about) 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: coprocess_mini_request_object.proto 3 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION 5 #include "coprocess_mini_request_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* MiniRequestObject_descriptor_ = NULL; 25 const ::google::protobuf::internal::GeneratedMessageReflection* 26 MiniRequestObject_reflection_ = NULL; 27 const ::google::protobuf::Descriptor* MiniRequestObject_HeadersEntry_descriptor_ = NULL; 28 const ::google::protobuf::Descriptor* MiniRequestObject_SetHeadersEntry_descriptor_ = NULL; 29 const ::google::protobuf::Descriptor* MiniRequestObject_ParamsEntry_descriptor_ = NULL; 30 const ::google::protobuf::Descriptor* MiniRequestObject_AddParamsEntry_descriptor_ = NULL; 31 const ::google::protobuf::Descriptor* MiniRequestObject_ExtendedParamsEntry_descriptor_ = NULL; 32 33 } // namespace 34 35 36 void protobuf_AssignDesc_coprocess_5fmini_5frequest_5fobject_2eproto() GOOGLE_ATTRIBUTE_COLD; 37 void protobuf_AssignDesc_coprocess_5fmini_5frequest_5fobject_2eproto() { 38 protobuf_AddDesc_coprocess_5fmini_5frequest_5fobject_2eproto(); 39 const ::google::protobuf::FileDescriptor* file = 40 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( 41 "coprocess_mini_request_object.proto"); 42 GOOGLE_CHECK(file != NULL); 43 MiniRequestObject_descriptor_ = file->message_type(0); 44 static const int MiniRequestObject_offsets_[10] = { 45 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiniRequestObject, headers_), 46 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiniRequestObject, set_headers_), 47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiniRequestObject, delete_headers_), 48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiniRequestObject, body_), 49 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiniRequestObject, url_), 50 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiniRequestObject, params_), 51 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiniRequestObject, add_params_), 52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiniRequestObject, extended_params_), 53 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiniRequestObject, delete_params_), 54 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiniRequestObject, return_overrides_), 55 }; 56 MiniRequestObject_reflection_ = 57 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 58 MiniRequestObject_descriptor_, 59 MiniRequestObject::internal_default_instance(), 60 MiniRequestObject_offsets_, 61 -1, 62 -1, 63 -1, 64 sizeof(MiniRequestObject), 65 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiniRequestObject, _internal_metadata_)); 66 MiniRequestObject_HeadersEntry_descriptor_ = MiniRequestObject_descriptor_->nested_type(0); 67 MiniRequestObject_SetHeadersEntry_descriptor_ = MiniRequestObject_descriptor_->nested_type(1); 68 MiniRequestObject_ParamsEntry_descriptor_ = MiniRequestObject_descriptor_->nested_type(2); 69 MiniRequestObject_AddParamsEntry_descriptor_ = MiniRequestObject_descriptor_->nested_type(3); 70 MiniRequestObject_ExtendedParamsEntry_descriptor_ = MiniRequestObject_descriptor_->nested_type(4); 71 } 72 73 namespace { 74 75 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); 76 void protobuf_AssignDescriptorsOnce() { 77 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, 78 &protobuf_AssignDesc_coprocess_5fmini_5frequest_5fobject_2eproto); 79 } 80 81 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; 82 void protobuf_RegisterTypes(const ::std::string&) { 83 protobuf_AssignDescriptorsOnce(); 84 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 85 MiniRequestObject_descriptor_, MiniRequestObject::internal_default_instance()); 86 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 87 MiniRequestObject_HeadersEntry_descriptor_, 88 ::google::protobuf::internal::MapEntry< 89 ::std::string, 90 ::std::string, 91 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 92 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 93 0>::CreateDefaultInstance( 94 MiniRequestObject_HeadersEntry_descriptor_)); 95 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 96 MiniRequestObject_SetHeadersEntry_descriptor_, 97 ::google::protobuf::internal::MapEntry< 98 ::std::string, 99 ::std::string, 100 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 101 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 102 0>::CreateDefaultInstance( 103 MiniRequestObject_SetHeadersEntry_descriptor_)); 104 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 105 MiniRequestObject_ParamsEntry_descriptor_, 106 ::google::protobuf::internal::MapEntry< 107 ::std::string, 108 ::std::string, 109 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 110 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 111 0>::CreateDefaultInstance( 112 MiniRequestObject_ParamsEntry_descriptor_)); 113 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 114 MiniRequestObject_AddParamsEntry_descriptor_, 115 ::google::protobuf::internal::MapEntry< 116 ::std::string, 117 ::std::string, 118 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 119 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 120 0>::CreateDefaultInstance( 121 MiniRequestObject_AddParamsEntry_descriptor_)); 122 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 123 MiniRequestObject_ExtendedParamsEntry_descriptor_, 124 ::google::protobuf::internal::MapEntry< 125 ::std::string, 126 ::std::string, 127 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 128 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 129 0>::CreateDefaultInstance( 130 MiniRequestObject_ExtendedParamsEntry_descriptor_)); 131 } 132 133 } // namespace 134 135 void protobuf_ShutdownFile_coprocess_5fmini_5frequest_5fobject_2eproto() { 136 MiniRequestObject_default_instance_.Shutdown(); 137 delete MiniRequestObject_reflection_; 138 } 139 140 void protobuf_InitDefaults_coprocess_5fmini_5frequest_5fobject_2eproto_impl() { 141 GOOGLE_PROTOBUF_VERIFY_VERSION; 142 143 ::coprocess::protobuf_InitDefaults_coprocess_5freturn_5foverrides_2eproto(); 144 ::google::protobuf::internal::GetEmptyString(); 145 MiniRequestObject_default_instance_.DefaultConstruct(); 146 ::google::protobuf::internal::GetEmptyString(); 147 ::google::protobuf::internal::GetEmptyString(); 148 ::google::protobuf::internal::GetEmptyString(); 149 MiniRequestObject_default_instance_.get_mutable()->InitAsDefaultInstance(); 150 } 151 152 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_coprocess_5fmini_5frequest_5fobject_2eproto_once_); 153 void protobuf_InitDefaults_coprocess_5fmini_5frequest_5fobject_2eproto() { 154 ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_coprocess_5fmini_5frequest_5fobject_2eproto_once_, 155 &protobuf_InitDefaults_coprocess_5fmini_5frequest_5fobject_2eproto_impl); 156 } 157 void protobuf_AddDesc_coprocess_5fmini_5frequest_5fobject_2eproto_impl() { 158 GOOGLE_PROTOBUF_VERIFY_VERSION; 159 160 protobuf_InitDefaults_coprocess_5fmini_5frequest_5fobject_2eproto(); 161 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( 162 "\n#coprocess_mini_request_object.proto\022\tc" 163 "oprocess\032 coprocess_return_overrides.pro" 164 "to\"\323\005\n\021MiniRequestObject\022:\n\007headers\030\001 \003(" 165 "\0132).coprocess.MiniRequestObject.HeadersE" 166 "ntry\022A\n\013set_headers\030\002 \003(\0132,.coprocess.Mi" 167 "niRequestObject.SetHeadersEntry\022\026\n\016delet" 168 "e_headers\030\003 \003(\t\022\014\n\004body\030\004 \001(\t\022\013\n\003url\030\005 \001" 169 "(\t\0228\n\006params\030\006 \003(\0132(.coprocess.MiniReque" 170 "stObject.ParamsEntry\022\?\n\nadd_params\030\007 \003(\013" 171 "2+.coprocess.MiniRequestObject.AddParams" 172 "Entry\022I\n\017extended_params\030\010 \003(\01320.coproce" 173 "ss.MiniRequestObject.ExtendedParamsEntry" 174 "\022\025\n\rdelete_params\030\t \003(\t\0224\n\020return_overri" 175 "des\030\n \001(\0132\032.coprocess.ReturnOverrides\032.\n" 176 "\014HeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" 177 "\t:\0028\001\0321\n\017SetHeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n" 178 "\005value\030\002 \001(\t:\0028\001\032-\n\013ParamsEntry\022\013\n\003key\030\001" 179 " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0320\n\016AddParamsEntr" 180 "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0325\n\023Ext" 181 "endedParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" 182 " \001(\t:\0028\001b\006proto3", 816); 183 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( 184 "coprocess_mini_request_object.proto", &protobuf_RegisterTypes); 185 ::coprocess::protobuf_AddDesc_coprocess_5freturn_5foverrides_2eproto(); 186 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_coprocess_5fmini_5frequest_5fobject_2eproto); 187 } 188 189 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_coprocess_5fmini_5frequest_5fobject_2eproto_once_); 190 void protobuf_AddDesc_coprocess_5fmini_5frequest_5fobject_2eproto() { 191 ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_coprocess_5fmini_5frequest_5fobject_2eproto_once_, 192 &protobuf_AddDesc_coprocess_5fmini_5frequest_5fobject_2eproto_impl); 193 } 194 // Force AddDescriptors() to be called at static initialization time. 195 struct StaticDescriptorInitializer_coprocess_5fmini_5frequest_5fobject_2eproto { 196 StaticDescriptorInitializer_coprocess_5fmini_5frequest_5fobject_2eproto() { 197 protobuf_AddDesc_coprocess_5fmini_5frequest_5fobject_2eproto(); 198 } 199 } static_descriptor_initializer_coprocess_5fmini_5frequest_5fobject_2eproto_; 200 201 namespace { 202 203 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; 204 static void MergeFromFail(int line) { 205 ::google::protobuf::internal::MergeFromFail(__FILE__, line); 206 } 207 208 } // namespace 209 210 211 // =================================================================== 212 213 #if !defined(_MSC_VER) || _MSC_VER >= 1900 214 const int MiniRequestObject::kHeadersFieldNumber; 215 const int MiniRequestObject::kSetHeadersFieldNumber; 216 const int MiniRequestObject::kDeleteHeadersFieldNumber; 217 const int MiniRequestObject::kBodyFieldNumber; 218 const int MiniRequestObject::kUrlFieldNumber; 219 const int MiniRequestObject::kParamsFieldNumber; 220 const int MiniRequestObject::kAddParamsFieldNumber; 221 const int MiniRequestObject::kExtendedParamsFieldNumber; 222 const int MiniRequestObject::kDeleteParamsFieldNumber; 223 const int MiniRequestObject::kReturnOverridesFieldNumber; 224 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 225 226 MiniRequestObject::MiniRequestObject() 227 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 228 if (this != internal_default_instance()) protobuf_InitDefaults_coprocess_5fmini_5frequest_5fobject_2eproto(); 229 SharedCtor(); 230 // @@protoc_insertion_point(constructor:coprocess.MiniRequestObject) 231 } 232 233 void MiniRequestObject::InitAsDefaultInstance() { 234 return_overrides_ = const_cast< ::coprocess::ReturnOverrides*>( 235 ::coprocess::ReturnOverrides::internal_default_instance()); 236 } 237 238 MiniRequestObject::MiniRequestObject(const MiniRequestObject& from) 239 : ::google::protobuf::Message(), 240 _internal_metadata_(NULL) { 241 SharedCtor(); 242 UnsafeMergeFrom(from); 243 // @@protoc_insertion_point(copy_constructor:coprocess.MiniRequestObject) 244 } 245 246 void MiniRequestObject::SharedCtor() { 247 headers_.SetAssignDescriptorCallback( 248 protobuf_AssignDescriptorsOnce); 249 headers_.SetEntryDescriptor( 250 &::coprocess::MiniRequestObject_HeadersEntry_descriptor_); 251 set_headers_.SetAssignDescriptorCallback( 252 protobuf_AssignDescriptorsOnce); 253 set_headers_.SetEntryDescriptor( 254 &::coprocess::MiniRequestObject_SetHeadersEntry_descriptor_); 255 params_.SetAssignDescriptorCallback( 256 protobuf_AssignDescriptorsOnce); 257 params_.SetEntryDescriptor( 258 &::coprocess::MiniRequestObject_ParamsEntry_descriptor_); 259 add_params_.SetAssignDescriptorCallback( 260 protobuf_AssignDescriptorsOnce); 261 add_params_.SetEntryDescriptor( 262 &::coprocess::MiniRequestObject_AddParamsEntry_descriptor_); 263 extended_params_.SetAssignDescriptorCallback( 264 protobuf_AssignDescriptorsOnce); 265 extended_params_.SetEntryDescriptor( 266 &::coprocess::MiniRequestObject_ExtendedParamsEntry_descriptor_); 267 body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 268 url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 269 return_overrides_ = NULL; 270 _cached_size_ = 0; 271 } 272 273 MiniRequestObject::~MiniRequestObject() { 274 // @@protoc_insertion_point(destructor:coprocess.MiniRequestObject) 275 SharedDtor(); 276 } 277 278 void MiniRequestObject::SharedDtor() { 279 body_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 280 url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 281 if (this != &MiniRequestObject_default_instance_.get()) { 282 delete return_overrides_; 283 } 284 } 285 286 void MiniRequestObject::SetCachedSize(int size) const { 287 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 288 _cached_size_ = size; 289 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 290 } 291 const ::google::protobuf::Descriptor* MiniRequestObject::descriptor() { 292 protobuf_AssignDescriptorsOnce(); 293 return MiniRequestObject_descriptor_; 294 } 295 296 const MiniRequestObject& MiniRequestObject::default_instance() { 297 protobuf_InitDefaults_coprocess_5fmini_5frequest_5fobject_2eproto(); 298 return *internal_default_instance(); 299 } 300 301 ::google::protobuf::internal::ExplicitlyConstructed<MiniRequestObject> MiniRequestObject_default_instance_; 302 303 MiniRequestObject* MiniRequestObject::New(::google::protobuf::Arena* arena) const { 304 MiniRequestObject* n = new MiniRequestObject; 305 if (arena != NULL) { 306 arena->Own(n); 307 } 308 return n; 309 } 310 311 void MiniRequestObject::Clear() { 312 // @@protoc_insertion_point(message_clear_start:coprocess.MiniRequestObject) 313 body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 314 url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 315 if (GetArenaNoVirtual() == NULL && return_overrides_ != NULL) delete return_overrides_; 316 return_overrides_ = NULL; 317 headers_.Clear(); 318 set_headers_.Clear(); 319 delete_headers_.Clear(); 320 params_.Clear(); 321 add_params_.Clear(); 322 extended_params_.Clear(); 323 delete_params_.Clear(); 324 } 325 326 bool MiniRequestObject::MergePartialFromCodedStream( 327 ::google::protobuf::io::CodedInputStream* input) { 328 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 329 ::google::protobuf::uint32 tag; 330 // @@protoc_insertion_point(parse_start:coprocess.MiniRequestObject) 331 for (;;) { 332 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 333 tag = p.first; 334 if (!p.second) goto handle_unusual; 335 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 336 // map<string, string> headers = 1; 337 case 1: { 338 if (tag == 10) { 339 DO_(input->IncrementRecursionDepth()); 340 parse_loop_headers: 341 MiniRequestObject_HeadersEntry::Parser< ::google::protobuf::internal::MapField< 342 ::std::string, ::std::string, 343 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 344 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 345 0 >, 346 ::google::protobuf::Map< ::std::string, ::std::string > > parser(&headers_); 347 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( 348 input, &parser)); 349 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 350 parser.key().data(), parser.key().length(), 351 ::google::protobuf::internal::WireFormatLite::PARSE, 352 "coprocess.MiniRequestObject.HeadersEntry.key")); 353 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 354 parser.value().data(), parser.value().length(), 355 ::google::protobuf::internal::WireFormatLite::PARSE, 356 "coprocess.MiniRequestObject.HeadersEntry.value")); 357 } else { 358 goto handle_unusual; 359 } 360 if (input->ExpectTag(10)) goto parse_loop_headers; 361 if (input->ExpectTag(18)) goto parse_loop_set_headers; 362 input->UnsafeDecrementRecursionDepth(); 363 break; 364 } 365 366 // map<string, string> set_headers = 2; 367 case 2: { 368 if (tag == 18) { 369 DO_(input->IncrementRecursionDepth()); 370 parse_loop_set_headers: 371 MiniRequestObject_SetHeadersEntry::Parser< ::google::protobuf::internal::MapField< 372 ::std::string, ::std::string, 373 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 374 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 375 0 >, 376 ::google::protobuf::Map< ::std::string, ::std::string > > parser(&set_headers_); 377 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( 378 input, &parser)); 379 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 380 parser.key().data(), parser.key().length(), 381 ::google::protobuf::internal::WireFormatLite::PARSE, 382 "coprocess.MiniRequestObject.SetHeadersEntry.key")); 383 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 384 parser.value().data(), parser.value().length(), 385 ::google::protobuf::internal::WireFormatLite::PARSE, 386 "coprocess.MiniRequestObject.SetHeadersEntry.value")); 387 } else { 388 goto handle_unusual; 389 } 390 if (input->ExpectTag(18)) goto parse_loop_set_headers; 391 input->UnsafeDecrementRecursionDepth(); 392 if (input->ExpectTag(26)) goto parse_delete_headers; 393 break; 394 } 395 396 // repeated string delete_headers = 3; 397 case 3: { 398 if (tag == 26) { 399 parse_delete_headers: 400 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 401 input, this->add_delete_headers())); 402 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 403 this->delete_headers(this->delete_headers_size() - 1).data(), 404 this->delete_headers(this->delete_headers_size() - 1).length(), 405 ::google::protobuf::internal::WireFormatLite::PARSE, 406 "coprocess.MiniRequestObject.delete_headers")); 407 } else { 408 goto handle_unusual; 409 } 410 if (input->ExpectTag(26)) goto parse_delete_headers; 411 if (input->ExpectTag(34)) goto parse_body; 412 break; 413 } 414 415 // optional string body = 4; 416 case 4: { 417 if (tag == 34) { 418 parse_body: 419 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 420 input, this->mutable_body())); 421 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 422 this->body().data(), this->body().length(), 423 ::google::protobuf::internal::WireFormatLite::PARSE, 424 "coprocess.MiniRequestObject.body")); 425 } else { 426 goto handle_unusual; 427 } 428 if (input->ExpectTag(42)) goto parse_url; 429 break; 430 } 431 432 // optional string url = 5; 433 case 5: { 434 if (tag == 42) { 435 parse_url: 436 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 437 input, this->mutable_url())); 438 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 439 this->url().data(), this->url().length(), 440 ::google::protobuf::internal::WireFormatLite::PARSE, 441 "coprocess.MiniRequestObject.url")); 442 } else { 443 goto handle_unusual; 444 } 445 if (input->ExpectTag(50)) goto parse_params; 446 break; 447 } 448 449 // map<string, string> params = 6; 450 case 6: { 451 if (tag == 50) { 452 parse_params: 453 DO_(input->IncrementRecursionDepth()); 454 parse_loop_params: 455 MiniRequestObject_ParamsEntry::Parser< ::google::protobuf::internal::MapField< 456 ::std::string, ::std::string, 457 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 458 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 459 0 >, 460 ::google::protobuf::Map< ::std::string, ::std::string > > parser(¶ms_); 461 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( 462 input, &parser)); 463 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 464 parser.key().data(), parser.key().length(), 465 ::google::protobuf::internal::WireFormatLite::PARSE, 466 "coprocess.MiniRequestObject.ParamsEntry.key")); 467 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 468 parser.value().data(), parser.value().length(), 469 ::google::protobuf::internal::WireFormatLite::PARSE, 470 "coprocess.MiniRequestObject.ParamsEntry.value")); 471 } else { 472 goto handle_unusual; 473 } 474 if (input->ExpectTag(50)) goto parse_loop_params; 475 if (input->ExpectTag(58)) goto parse_loop_add_params; 476 input->UnsafeDecrementRecursionDepth(); 477 break; 478 } 479 480 // map<string, string> add_params = 7; 481 case 7: { 482 if (tag == 58) { 483 DO_(input->IncrementRecursionDepth()); 484 parse_loop_add_params: 485 MiniRequestObject_AddParamsEntry::Parser< ::google::protobuf::internal::MapField< 486 ::std::string, ::std::string, 487 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 488 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 489 0 >, 490 ::google::protobuf::Map< ::std::string, ::std::string > > parser(&add_params_); 491 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( 492 input, &parser)); 493 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 494 parser.key().data(), parser.key().length(), 495 ::google::protobuf::internal::WireFormatLite::PARSE, 496 "coprocess.MiniRequestObject.AddParamsEntry.key")); 497 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 498 parser.value().data(), parser.value().length(), 499 ::google::protobuf::internal::WireFormatLite::PARSE, 500 "coprocess.MiniRequestObject.AddParamsEntry.value")); 501 } else { 502 goto handle_unusual; 503 } 504 if (input->ExpectTag(58)) goto parse_loop_add_params; 505 if (input->ExpectTag(66)) goto parse_loop_extended_params; 506 input->UnsafeDecrementRecursionDepth(); 507 break; 508 } 509 510 // map<string, string> extended_params = 8; 511 case 8: { 512 if (tag == 66) { 513 DO_(input->IncrementRecursionDepth()); 514 parse_loop_extended_params: 515 MiniRequestObject_ExtendedParamsEntry::Parser< ::google::protobuf::internal::MapField< 516 ::std::string, ::std::string, 517 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 518 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 519 0 >, 520 ::google::protobuf::Map< ::std::string, ::std::string > > parser(&extended_params_); 521 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( 522 input, &parser)); 523 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 524 parser.key().data(), parser.key().length(), 525 ::google::protobuf::internal::WireFormatLite::PARSE, 526 "coprocess.MiniRequestObject.ExtendedParamsEntry.key")); 527 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 528 parser.value().data(), parser.value().length(), 529 ::google::protobuf::internal::WireFormatLite::PARSE, 530 "coprocess.MiniRequestObject.ExtendedParamsEntry.value")); 531 } else { 532 goto handle_unusual; 533 } 534 if (input->ExpectTag(66)) goto parse_loop_extended_params; 535 input->UnsafeDecrementRecursionDepth(); 536 if (input->ExpectTag(74)) goto parse_delete_params; 537 break; 538 } 539 540 // repeated string delete_params = 9; 541 case 9: { 542 if (tag == 74) { 543 parse_delete_params: 544 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 545 input, this->add_delete_params())); 546 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 547 this->delete_params(this->delete_params_size() - 1).data(), 548 this->delete_params(this->delete_params_size() - 1).length(), 549 ::google::protobuf::internal::WireFormatLite::PARSE, 550 "coprocess.MiniRequestObject.delete_params")); 551 } else { 552 goto handle_unusual; 553 } 554 if (input->ExpectTag(74)) goto parse_delete_params; 555 if (input->ExpectTag(82)) goto parse_return_overrides; 556 break; 557 } 558 559 // optional .coprocess.ReturnOverrides return_overrides = 10; 560 case 10: { 561 if (tag == 82) { 562 parse_return_overrides: 563 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( 564 input, mutable_return_overrides())); 565 } else { 566 goto handle_unusual; 567 } 568 if (input->ExpectAtEnd()) goto success; 569 break; 570 } 571 572 default: { 573 handle_unusual: 574 if (tag == 0 || 575 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 576 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 577 goto success; 578 } 579 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 580 break; 581 } 582 } 583 } 584 success: 585 // @@protoc_insertion_point(parse_success:coprocess.MiniRequestObject) 586 return true; 587 failure: 588 // @@protoc_insertion_point(parse_failure:coprocess.MiniRequestObject) 589 return false; 590 #undef DO_ 591 } 592 593 void MiniRequestObject::SerializeWithCachedSizes( 594 ::google::protobuf::io::CodedOutputStream* output) const { 595 // @@protoc_insertion_point(serialize_start:coprocess.MiniRequestObject) 596 // map<string, string> headers = 1; 597 if (!this->headers().empty()) { 598 typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer 599 ConstPtr; 600 typedef ConstPtr SortItem; 601 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; 602 struct Utf8Check { 603 static void Check(ConstPtr p) { 604 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 605 p->first.data(), p->first.length(), 606 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 607 "coprocess.MiniRequestObject.HeadersEntry.key"); 608 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 609 p->second.data(), p->second.length(), 610 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 611 "coprocess.MiniRequestObject.HeadersEntry.value"); 612 } 613 }; 614 615 if (output->IsSerializationDeterminstic() && 616 this->headers().size() > 1) { 617 ::google::protobuf::scoped_array<SortItem> items( 618 new SortItem[this->headers().size()]); 619 typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; 620 size_type n = 0; 621 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 622 it = this->headers().begin(); 623 it != this->headers().end(); ++it, ++n) { 624 items[n] = SortItem(&*it); 625 } 626 ::std::sort(&items[0], &items[n], Less()); 627 ::google::protobuf::scoped_ptr<MiniRequestObject_HeadersEntry> entry; 628 for (size_type i = 0; i < n; i++) { 629 entry.reset(headers_.NewEntryWrapper( 630 items[i]->first, items[i]->second)); 631 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 632 1, *entry, output); 633 Utf8Check::Check(items[i]); 634 } 635 } else { 636 ::google::protobuf::scoped_ptr<MiniRequestObject_HeadersEntry> entry; 637 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 638 it = this->headers().begin(); 639 it != this->headers().end(); ++it) { 640 entry.reset(headers_.NewEntryWrapper( 641 it->first, it->second)); 642 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 643 1, *entry, output); 644 Utf8Check::Check(&*it); 645 } 646 } 647 } 648 649 // map<string, string> set_headers = 2; 650 if (!this->set_headers().empty()) { 651 typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer 652 ConstPtr; 653 typedef ConstPtr SortItem; 654 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; 655 struct Utf8Check { 656 static void Check(ConstPtr p) { 657 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 658 p->first.data(), p->first.length(), 659 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 660 "coprocess.MiniRequestObject.SetHeadersEntry.key"); 661 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 662 p->second.data(), p->second.length(), 663 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 664 "coprocess.MiniRequestObject.SetHeadersEntry.value"); 665 } 666 }; 667 668 if (output->IsSerializationDeterminstic() && 669 this->set_headers().size() > 1) { 670 ::google::protobuf::scoped_array<SortItem> items( 671 new SortItem[this->set_headers().size()]); 672 typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; 673 size_type n = 0; 674 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 675 it = this->set_headers().begin(); 676 it != this->set_headers().end(); ++it, ++n) { 677 items[n] = SortItem(&*it); 678 } 679 ::std::sort(&items[0], &items[n], Less()); 680 ::google::protobuf::scoped_ptr<MiniRequestObject_SetHeadersEntry> entry; 681 for (size_type i = 0; i < n; i++) { 682 entry.reset(set_headers_.NewEntryWrapper( 683 items[i]->first, items[i]->second)); 684 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 685 2, *entry, output); 686 Utf8Check::Check(items[i]); 687 } 688 } else { 689 ::google::protobuf::scoped_ptr<MiniRequestObject_SetHeadersEntry> entry; 690 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 691 it = this->set_headers().begin(); 692 it != this->set_headers().end(); ++it) { 693 entry.reset(set_headers_.NewEntryWrapper( 694 it->first, it->second)); 695 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 696 2, *entry, output); 697 Utf8Check::Check(&*it); 698 } 699 } 700 } 701 702 // repeated string delete_headers = 3; 703 for (int i = 0; i < this->delete_headers_size(); i++) { 704 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 705 this->delete_headers(i).data(), this->delete_headers(i).length(), 706 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 707 "coprocess.MiniRequestObject.delete_headers"); 708 ::google::protobuf::internal::WireFormatLite::WriteString( 709 3, this->delete_headers(i), output); 710 } 711 712 // optional string body = 4; 713 if (this->body().size() > 0) { 714 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 715 this->body().data(), this->body().length(), 716 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 717 "coprocess.MiniRequestObject.body"); 718 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 719 4, this->body(), output); 720 } 721 722 // optional string url = 5; 723 if (this->url().size() > 0) { 724 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 725 this->url().data(), this->url().length(), 726 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 727 "coprocess.MiniRequestObject.url"); 728 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 729 5, this->url(), output); 730 } 731 732 // map<string, string> params = 6; 733 if (!this->params().empty()) { 734 typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer 735 ConstPtr; 736 typedef ConstPtr SortItem; 737 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; 738 struct Utf8Check { 739 static void Check(ConstPtr p) { 740 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 741 p->first.data(), p->first.length(), 742 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 743 "coprocess.MiniRequestObject.ParamsEntry.key"); 744 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 745 p->second.data(), p->second.length(), 746 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 747 "coprocess.MiniRequestObject.ParamsEntry.value"); 748 } 749 }; 750 751 if (output->IsSerializationDeterminstic() && 752 this->params().size() > 1) { 753 ::google::protobuf::scoped_array<SortItem> items( 754 new SortItem[this->params().size()]); 755 typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; 756 size_type n = 0; 757 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 758 it = this->params().begin(); 759 it != this->params().end(); ++it, ++n) { 760 items[n] = SortItem(&*it); 761 } 762 ::std::sort(&items[0], &items[n], Less()); 763 ::google::protobuf::scoped_ptr<MiniRequestObject_ParamsEntry> entry; 764 for (size_type i = 0; i < n; i++) { 765 entry.reset(params_.NewEntryWrapper( 766 items[i]->first, items[i]->second)); 767 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 768 6, *entry, output); 769 Utf8Check::Check(items[i]); 770 } 771 } else { 772 ::google::protobuf::scoped_ptr<MiniRequestObject_ParamsEntry> entry; 773 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 774 it = this->params().begin(); 775 it != this->params().end(); ++it) { 776 entry.reset(params_.NewEntryWrapper( 777 it->first, it->second)); 778 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 779 6, *entry, output); 780 Utf8Check::Check(&*it); 781 } 782 } 783 } 784 785 // map<string, string> add_params = 7; 786 if (!this->add_params().empty()) { 787 typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer 788 ConstPtr; 789 typedef ConstPtr SortItem; 790 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; 791 struct Utf8Check { 792 static void Check(ConstPtr p) { 793 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 794 p->first.data(), p->first.length(), 795 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 796 "coprocess.MiniRequestObject.AddParamsEntry.key"); 797 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 798 p->second.data(), p->second.length(), 799 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 800 "coprocess.MiniRequestObject.AddParamsEntry.value"); 801 } 802 }; 803 804 if (output->IsSerializationDeterminstic() && 805 this->add_params().size() > 1) { 806 ::google::protobuf::scoped_array<SortItem> items( 807 new SortItem[this->add_params().size()]); 808 typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; 809 size_type n = 0; 810 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 811 it = this->add_params().begin(); 812 it != this->add_params().end(); ++it, ++n) { 813 items[n] = SortItem(&*it); 814 } 815 ::std::sort(&items[0], &items[n], Less()); 816 ::google::protobuf::scoped_ptr<MiniRequestObject_AddParamsEntry> entry; 817 for (size_type i = 0; i < n; i++) { 818 entry.reset(add_params_.NewEntryWrapper( 819 items[i]->first, items[i]->second)); 820 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 821 7, *entry, output); 822 Utf8Check::Check(items[i]); 823 } 824 } else { 825 ::google::protobuf::scoped_ptr<MiniRequestObject_AddParamsEntry> entry; 826 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 827 it = this->add_params().begin(); 828 it != this->add_params().end(); ++it) { 829 entry.reset(add_params_.NewEntryWrapper( 830 it->first, it->second)); 831 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 832 7, *entry, output); 833 Utf8Check::Check(&*it); 834 } 835 } 836 } 837 838 // map<string, string> extended_params = 8; 839 if (!this->extended_params().empty()) { 840 typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer 841 ConstPtr; 842 typedef ConstPtr SortItem; 843 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; 844 struct Utf8Check { 845 static void Check(ConstPtr p) { 846 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 847 p->first.data(), p->first.length(), 848 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 849 "coprocess.MiniRequestObject.ExtendedParamsEntry.key"); 850 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 851 p->second.data(), p->second.length(), 852 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 853 "coprocess.MiniRequestObject.ExtendedParamsEntry.value"); 854 } 855 }; 856 857 if (output->IsSerializationDeterminstic() && 858 this->extended_params().size() > 1) { 859 ::google::protobuf::scoped_array<SortItem> items( 860 new SortItem[this->extended_params().size()]); 861 typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; 862 size_type n = 0; 863 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 864 it = this->extended_params().begin(); 865 it != this->extended_params().end(); ++it, ++n) { 866 items[n] = SortItem(&*it); 867 } 868 ::std::sort(&items[0], &items[n], Less()); 869 ::google::protobuf::scoped_ptr<MiniRequestObject_ExtendedParamsEntry> entry; 870 for (size_type i = 0; i < n; i++) { 871 entry.reset(extended_params_.NewEntryWrapper( 872 items[i]->first, items[i]->second)); 873 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 874 8, *entry, output); 875 Utf8Check::Check(items[i]); 876 } 877 } else { 878 ::google::protobuf::scoped_ptr<MiniRequestObject_ExtendedParamsEntry> entry; 879 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 880 it = this->extended_params().begin(); 881 it != this->extended_params().end(); ++it) { 882 entry.reset(extended_params_.NewEntryWrapper( 883 it->first, it->second)); 884 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 885 8, *entry, output); 886 Utf8Check::Check(&*it); 887 } 888 } 889 } 890 891 // repeated string delete_params = 9; 892 for (int i = 0; i < this->delete_params_size(); i++) { 893 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 894 this->delete_params(i).data(), this->delete_params(i).length(), 895 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 896 "coprocess.MiniRequestObject.delete_params"); 897 ::google::protobuf::internal::WireFormatLite::WriteString( 898 9, this->delete_params(i), output); 899 } 900 901 // optional .coprocess.ReturnOverrides return_overrides = 10; 902 if (this->has_return_overrides()) { 903 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 904 10, *this->return_overrides_, output); 905 } 906 907 // @@protoc_insertion_point(serialize_end:coprocess.MiniRequestObject) 908 } 909 910 ::google::protobuf::uint8* MiniRequestObject::InternalSerializeWithCachedSizesToArray( 911 bool deterministic, ::google::protobuf::uint8* target) const { 912 (void)deterministic; // Unused 913 // @@protoc_insertion_point(serialize_to_array_start:coprocess.MiniRequestObject) 914 // map<string, string> headers = 1; 915 if (!this->headers().empty()) { 916 typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer 917 ConstPtr; 918 typedef ConstPtr SortItem; 919 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; 920 struct Utf8Check { 921 static void Check(ConstPtr p) { 922 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 923 p->first.data(), p->first.length(), 924 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 925 "coprocess.MiniRequestObject.HeadersEntry.key"); 926 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 927 p->second.data(), p->second.length(), 928 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 929 "coprocess.MiniRequestObject.HeadersEntry.value"); 930 } 931 }; 932 933 if (deterministic && 934 this->headers().size() > 1) { 935 ::google::protobuf::scoped_array<SortItem> items( 936 new SortItem[this->headers().size()]); 937 typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; 938 size_type n = 0; 939 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 940 it = this->headers().begin(); 941 it != this->headers().end(); ++it, ++n) { 942 items[n] = SortItem(&*it); 943 } 944 ::std::sort(&items[0], &items[n], Less()); 945 ::google::protobuf::scoped_ptr<MiniRequestObject_HeadersEntry> entry; 946 for (size_type i = 0; i < n; i++) { 947 entry.reset(headers_.NewEntryWrapper( 948 items[i]->first, items[i]->second)); 949 target = ::google::protobuf::internal::WireFormatLite:: 950 InternalWriteMessageNoVirtualToArray( 951 1, *entry, deterministic, target); 952 ; 953 Utf8Check::Check(items[i]); 954 } 955 } else { 956 ::google::protobuf::scoped_ptr<MiniRequestObject_HeadersEntry> entry; 957 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 958 it = this->headers().begin(); 959 it != this->headers().end(); ++it) { 960 entry.reset(headers_.NewEntryWrapper( 961 it->first, it->second)); 962 target = ::google::protobuf::internal::WireFormatLite:: 963 InternalWriteMessageNoVirtualToArray( 964 1, *entry, deterministic, target); 965 ; 966 Utf8Check::Check(&*it); 967 } 968 } 969 } 970 971 // map<string, string> set_headers = 2; 972 if (!this->set_headers().empty()) { 973 typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer 974 ConstPtr; 975 typedef ConstPtr SortItem; 976 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; 977 struct Utf8Check { 978 static void Check(ConstPtr p) { 979 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 980 p->first.data(), p->first.length(), 981 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 982 "coprocess.MiniRequestObject.SetHeadersEntry.key"); 983 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 984 p->second.data(), p->second.length(), 985 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 986 "coprocess.MiniRequestObject.SetHeadersEntry.value"); 987 } 988 }; 989 990 if (deterministic && 991 this->set_headers().size() > 1) { 992 ::google::protobuf::scoped_array<SortItem> items( 993 new SortItem[this->set_headers().size()]); 994 typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; 995 size_type n = 0; 996 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 997 it = this->set_headers().begin(); 998 it != this->set_headers().end(); ++it, ++n) { 999 items[n] = SortItem(&*it); 1000 } 1001 ::std::sort(&items[0], &items[n], Less()); 1002 ::google::protobuf::scoped_ptr<MiniRequestObject_SetHeadersEntry> entry; 1003 for (size_type i = 0; i < n; i++) { 1004 entry.reset(set_headers_.NewEntryWrapper( 1005 items[i]->first, items[i]->second)); 1006 target = ::google::protobuf::internal::WireFormatLite:: 1007 InternalWriteMessageNoVirtualToArray( 1008 2, *entry, deterministic, target); 1009 ; 1010 Utf8Check::Check(items[i]); 1011 } 1012 } else { 1013 ::google::protobuf::scoped_ptr<MiniRequestObject_SetHeadersEntry> entry; 1014 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 1015 it = this->set_headers().begin(); 1016 it != this->set_headers().end(); ++it) { 1017 entry.reset(set_headers_.NewEntryWrapper( 1018 it->first, it->second)); 1019 target = ::google::protobuf::internal::WireFormatLite:: 1020 InternalWriteMessageNoVirtualToArray( 1021 2, *entry, deterministic, target); 1022 ; 1023 Utf8Check::Check(&*it); 1024 } 1025 } 1026 } 1027 1028 // repeated string delete_headers = 3; 1029 for (int i = 0; i < this->delete_headers_size(); i++) { 1030 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1031 this->delete_headers(i).data(), this->delete_headers(i).length(), 1032 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1033 "coprocess.MiniRequestObject.delete_headers"); 1034 target = ::google::protobuf::internal::WireFormatLite:: 1035 WriteStringToArray(3, this->delete_headers(i), target); 1036 } 1037 1038 // optional string body = 4; 1039 if (this->body().size() > 0) { 1040 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1041 this->body().data(), this->body().length(), 1042 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1043 "coprocess.MiniRequestObject.body"); 1044 target = 1045 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1046 4, this->body(), target); 1047 } 1048 1049 // optional string url = 5; 1050 if (this->url().size() > 0) { 1051 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1052 this->url().data(), this->url().length(), 1053 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1054 "coprocess.MiniRequestObject.url"); 1055 target = 1056 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1057 5, this->url(), target); 1058 } 1059 1060 // map<string, string> params = 6; 1061 if (!this->params().empty()) { 1062 typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer 1063 ConstPtr; 1064 typedef ConstPtr SortItem; 1065 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; 1066 struct Utf8Check { 1067 static void Check(ConstPtr p) { 1068 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1069 p->first.data(), p->first.length(), 1070 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1071 "coprocess.MiniRequestObject.ParamsEntry.key"); 1072 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1073 p->second.data(), p->second.length(), 1074 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1075 "coprocess.MiniRequestObject.ParamsEntry.value"); 1076 } 1077 }; 1078 1079 if (deterministic && 1080 this->params().size() > 1) { 1081 ::google::protobuf::scoped_array<SortItem> items( 1082 new SortItem[this->params().size()]); 1083 typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; 1084 size_type n = 0; 1085 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 1086 it = this->params().begin(); 1087 it != this->params().end(); ++it, ++n) { 1088 items[n] = SortItem(&*it); 1089 } 1090 ::std::sort(&items[0], &items[n], Less()); 1091 ::google::protobuf::scoped_ptr<MiniRequestObject_ParamsEntry> entry; 1092 for (size_type i = 0; i < n; i++) { 1093 entry.reset(params_.NewEntryWrapper( 1094 items[i]->first, items[i]->second)); 1095 target = ::google::protobuf::internal::WireFormatLite:: 1096 InternalWriteMessageNoVirtualToArray( 1097 6, *entry, deterministic, target); 1098 ; 1099 Utf8Check::Check(items[i]); 1100 } 1101 } else { 1102 ::google::protobuf::scoped_ptr<MiniRequestObject_ParamsEntry> entry; 1103 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 1104 it = this->params().begin(); 1105 it != this->params().end(); ++it) { 1106 entry.reset(params_.NewEntryWrapper( 1107 it->first, it->second)); 1108 target = ::google::protobuf::internal::WireFormatLite:: 1109 InternalWriteMessageNoVirtualToArray( 1110 6, *entry, deterministic, target); 1111 ; 1112 Utf8Check::Check(&*it); 1113 } 1114 } 1115 } 1116 1117 // map<string, string> add_params = 7; 1118 if (!this->add_params().empty()) { 1119 typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer 1120 ConstPtr; 1121 typedef ConstPtr SortItem; 1122 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; 1123 struct Utf8Check { 1124 static void Check(ConstPtr p) { 1125 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1126 p->first.data(), p->first.length(), 1127 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1128 "coprocess.MiniRequestObject.AddParamsEntry.key"); 1129 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1130 p->second.data(), p->second.length(), 1131 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1132 "coprocess.MiniRequestObject.AddParamsEntry.value"); 1133 } 1134 }; 1135 1136 if (deterministic && 1137 this->add_params().size() > 1) { 1138 ::google::protobuf::scoped_array<SortItem> items( 1139 new SortItem[this->add_params().size()]); 1140 typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; 1141 size_type n = 0; 1142 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 1143 it = this->add_params().begin(); 1144 it != this->add_params().end(); ++it, ++n) { 1145 items[n] = SortItem(&*it); 1146 } 1147 ::std::sort(&items[0], &items[n], Less()); 1148 ::google::protobuf::scoped_ptr<MiniRequestObject_AddParamsEntry> entry; 1149 for (size_type i = 0; i < n; i++) { 1150 entry.reset(add_params_.NewEntryWrapper( 1151 items[i]->first, items[i]->second)); 1152 target = ::google::protobuf::internal::WireFormatLite:: 1153 InternalWriteMessageNoVirtualToArray( 1154 7, *entry, deterministic, target); 1155 ; 1156 Utf8Check::Check(items[i]); 1157 } 1158 } else { 1159 ::google::protobuf::scoped_ptr<MiniRequestObject_AddParamsEntry> entry; 1160 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 1161 it = this->add_params().begin(); 1162 it != this->add_params().end(); ++it) { 1163 entry.reset(add_params_.NewEntryWrapper( 1164 it->first, it->second)); 1165 target = ::google::protobuf::internal::WireFormatLite:: 1166 InternalWriteMessageNoVirtualToArray( 1167 7, *entry, deterministic, target); 1168 ; 1169 Utf8Check::Check(&*it); 1170 } 1171 } 1172 } 1173 1174 // map<string, string> extended_params = 8; 1175 if (!this->extended_params().empty()) { 1176 typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer 1177 ConstPtr; 1178 typedef ConstPtr SortItem; 1179 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; 1180 struct Utf8Check { 1181 static void Check(ConstPtr p) { 1182 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1183 p->first.data(), p->first.length(), 1184 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1185 "coprocess.MiniRequestObject.ExtendedParamsEntry.key"); 1186 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1187 p->second.data(), p->second.length(), 1188 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1189 "coprocess.MiniRequestObject.ExtendedParamsEntry.value"); 1190 } 1191 }; 1192 1193 if (deterministic && 1194 this->extended_params().size() > 1) { 1195 ::google::protobuf::scoped_array<SortItem> items( 1196 new SortItem[this->extended_params().size()]); 1197 typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; 1198 size_type n = 0; 1199 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 1200 it = this->extended_params().begin(); 1201 it != this->extended_params().end(); ++it, ++n) { 1202 items[n] = SortItem(&*it); 1203 } 1204 ::std::sort(&items[0], &items[n], Less()); 1205 ::google::protobuf::scoped_ptr<MiniRequestObject_ExtendedParamsEntry> entry; 1206 for (size_type i = 0; i < n; i++) { 1207 entry.reset(extended_params_.NewEntryWrapper( 1208 items[i]->first, items[i]->second)); 1209 target = ::google::protobuf::internal::WireFormatLite:: 1210 InternalWriteMessageNoVirtualToArray( 1211 8, *entry, deterministic, target); 1212 ; 1213 Utf8Check::Check(items[i]); 1214 } 1215 } else { 1216 ::google::protobuf::scoped_ptr<MiniRequestObject_ExtendedParamsEntry> entry; 1217 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 1218 it = this->extended_params().begin(); 1219 it != this->extended_params().end(); ++it) { 1220 entry.reset(extended_params_.NewEntryWrapper( 1221 it->first, it->second)); 1222 target = ::google::protobuf::internal::WireFormatLite:: 1223 InternalWriteMessageNoVirtualToArray( 1224 8, *entry, deterministic, target); 1225 ; 1226 Utf8Check::Check(&*it); 1227 } 1228 } 1229 } 1230 1231 // repeated string delete_params = 9; 1232 for (int i = 0; i < this->delete_params_size(); i++) { 1233 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1234 this->delete_params(i).data(), this->delete_params(i).length(), 1235 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1236 "coprocess.MiniRequestObject.delete_params"); 1237 target = ::google::protobuf::internal::WireFormatLite:: 1238 WriteStringToArray(9, this->delete_params(i), target); 1239 } 1240 1241 // optional .coprocess.ReturnOverrides return_overrides = 10; 1242 if (this->has_return_overrides()) { 1243 target = ::google::protobuf::internal::WireFormatLite:: 1244 InternalWriteMessageNoVirtualToArray( 1245 10, *this->return_overrides_, false, target); 1246 } 1247 1248 // @@protoc_insertion_point(serialize_to_array_end:coprocess.MiniRequestObject) 1249 return target; 1250 } 1251 1252 size_t MiniRequestObject::ByteSizeLong() const { 1253 // @@protoc_insertion_point(message_byte_size_start:coprocess.MiniRequestObject) 1254 size_t total_size = 0; 1255 1256 // optional string body = 4; 1257 if (this->body().size() > 0) { 1258 total_size += 1 + 1259 ::google::protobuf::internal::WireFormatLite::StringSize( 1260 this->body()); 1261 } 1262 1263 // optional string url = 5; 1264 if (this->url().size() > 0) { 1265 total_size += 1 + 1266 ::google::protobuf::internal::WireFormatLite::StringSize( 1267 this->url()); 1268 } 1269 1270 // optional .coprocess.ReturnOverrides return_overrides = 10; 1271 if (this->has_return_overrides()) { 1272 total_size += 1 + 1273 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 1274 *this->return_overrides_); 1275 } 1276 1277 // map<string, string> headers = 1; 1278 total_size += 1 * 1279 ::google::protobuf::internal::FromIntSize(this->headers_size()); 1280 { 1281 ::google::protobuf::scoped_ptr<MiniRequestObject_HeadersEntry> entry; 1282 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 1283 it = this->headers().begin(); 1284 it != this->headers().end(); ++it) { 1285 entry.reset(headers_.NewEntryWrapper(it->first, it->second)); 1286 total_size += ::google::protobuf::internal::WireFormatLite:: 1287 MessageSizeNoVirtual(*entry); 1288 } 1289 } 1290 1291 // map<string, string> set_headers = 2; 1292 total_size += 1 * 1293 ::google::protobuf::internal::FromIntSize(this->set_headers_size()); 1294 { 1295 ::google::protobuf::scoped_ptr<MiniRequestObject_SetHeadersEntry> entry; 1296 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 1297 it = this->set_headers().begin(); 1298 it != this->set_headers().end(); ++it) { 1299 entry.reset(set_headers_.NewEntryWrapper(it->first, it->second)); 1300 total_size += ::google::protobuf::internal::WireFormatLite:: 1301 MessageSizeNoVirtual(*entry); 1302 } 1303 } 1304 1305 // repeated string delete_headers = 3; 1306 total_size += 1 * 1307 ::google::protobuf::internal::FromIntSize(this->delete_headers_size()); 1308 for (int i = 0; i < this->delete_headers_size(); i++) { 1309 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( 1310 this->delete_headers(i)); 1311 } 1312 1313 // map<string, string> params = 6; 1314 total_size += 1 * 1315 ::google::protobuf::internal::FromIntSize(this->params_size()); 1316 { 1317 ::google::protobuf::scoped_ptr<MiniRequestObject_ParamsEntry> entry; 1318 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 1319 it = this->params().begin(); 1320 it != this->params().end(); ++it) { 1321 entry.reset(params_.NewEntryWrapper(it->first, it->second)); 1322 total_size += ::google::protobuf::internal::WireFormatLite:: 1323 MessageSizeNoVirtual(*entry); 1324 } 1325 } 1326 1327 // map<string, string> add_params = 7; 1328 total_size += 1 * 1329 ::google::protobuf::internal::FromIntSize(this->add_params_size()); 1330 { 1331 ::google::protobuf::scoped_ptr<MiniRequestObject_AddParamsEntry> entry; 1332 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 1333 it = this->add_params().begin(); 1334 it != this->add_params().end(); ++it) { 1335 entry.reset(add_params_.NewEntryWrapper(it->first, it->second)); 1336 total_size += ::google::protobuf::internal::WireFormatLite:: 1337 MessageSizeNoVirtual(*entry); 1338 } 1339 } 1340 1341 // map<string, string> extended_params = 8; 1342 total_size += 1 * 1343 ::google::protobuf::internal::FromIntSize(this->extended_params_size()); 1344 { 1345 ::google::protobuf::scoped_ptr<MiniRequestObject_ExtendedParamsEntry> entry; 1346 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 1347 it = this->extended_params().begin(); 1348 it != this->extended_params().end(); ++it) { 1349 entry.reset(extended_params_.NewEntryWrapper(it->first, it->second)); 1350 total_size += ::google::protobuf::internal::WireFormatLite:: 1351 MessageSizeNoVirtual(*entry); 1352 } 1353 } 1354 1355 // repeated string delete_params = 9; 1356 total_size += 1 * 1357 ::google::protobuf::internal::FromIntSize(this->delete_params_size()); 1358 for (int i = 0; i < this->delete_params_size(); i++) { 1359 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( 1360 this->delete_params(i)); 1361 } 1362 1363 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 1364 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1365 _cached_size_ = cached_size; 1366 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1367 return total_size; 1368 } 1369 1370 void MiniRequestObject::MergeFrom(const ::google::protobuf::Message& from) { 1371 // @@protoc_insertion_point(generalized_merge_from_start:coprocess.MiniRequestObject) 1372 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1373 const MiniRequestObject* source = 1374 ::google::protobuf::internal::DynamicCastToGenerated<const MiniRequestObject>( 1375 &from); 1376 if (source == NULL) { 1377 // @@protoc_insertion_point(generalized_merge_from_cast_fail:coprocess.MiniRequestObject) 1378 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1379 } else { 1380 // @@protoc_insertion_point(generalized_merge_from_cast_success:coprocess.MiniRequestObject) 1381 UnsafeMergeFrom(*source); 1382 } 1383 } 1384 1385 void MiniRequestObject::MergeFrom(const MiniRequestObject& from) { 1386 // @@protoc_insertion_point(class_specific_merge_from_start:coprocess.MiniRequestObject) 1387 if (GOOGLE_PREDICT_TRUE(&from != this)) { 1388 UnsafeMergeFrom(from); 1389 } else { 1390 MergeFromFail(__LINE__); 1391 } 1392 } 1393 1394 void MiniRequestObject::UnsafeMergeFrom(const MiniRequestObject& from) { 1395 GOOGLE_DCHECK(&from != this); 1396 headers_.MergeFrom(from.headers_); 1397 set_headers_.MergeFrom(from.set_headers_); 1398 delete_headers_.UnsafeMergeFrom(from.delete_headers_); 1399 params_.MergeFrom(from.params_); 1400 add_params_.MergeFrom(from.add_params_); 1401 extended_params_.MergeFrom(from.extended_params_); 1402 delete_params_.UnsafeMergeFrom(from.delete_params_); 1403 if (from.body().size() > 0) { 1404 1405 body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.body_); 1406 } 1407 if (from.url().size() > 0) { 1408 1409 url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_); 1410 } 1411 if (from.has_return_overrides()) { 1412 mutable_return_overrides()->::coprocess::ReturnOverrides::MergeFrom(from.return_overrides()); 1413 } 1414 } 1415 1416 void MiniRequestObject::CopyFrom(const ::google::protobuf::Message& from) { 1417 // @@protoc_insertion_point(generalized_copy_from_start:coprocess.MiniRequestObject) 1418 if (&from == this) return; 1419 Clear(); 1420 MergeFrom(from); 1421 } 1422 1423 void MiniRequestObject::CopyFrom(const MiniRequestObject& from) { 1424 // @@protoc_insertion_point(class_specific_copy_from_start:coprocess.MiniRequestObject) 1425 if (&from == this) return; 1426 Clear(); 1427 UnsafeMergeFrom(from); 1428 } 1429 1430 bool MiniRequestObject::IsInitialized() const { 1431 1432 return true; 1433 } 1434 1435 void MiniRequestObject::Swap(MiniRequestObject* other) { 1436 if (other == this) return; 1437 InternalSwap(other); 1438 } 1439 void MiniRequestObject::InternalSwap(MiniRequestObject* other) { 1440 headers_.Swap(&other->headers_); 1441 set_headers_.Swap(&other->set_headers_); 1442 delete_headers_.UnsafeArenaSwap(&other->delete_headers_); 1443 body_.Swap(&other->body_); 1444 url_.Swap(&other->url_); 1445 params_.Swap(&other->params_); 1446 add_params_.Swap(&other->add_params_); 1447 extended_params_.Swap(&other->extended_params_); 1448 delete_params_.UnsafeArenaSwap(&other->delete_params_); 1449 std::swap(return_overrides_, other->return_overrides_); 1450 _internal_metadata_.Swap(&other->_internal_metadata_); 1451 std::swap(_cached_size_, other->_cached_size_); 1452 } 1453 1454 ::google::protobuf::Metadata MiniRequestObject::GetMetadata() const { 1455 protobuf_AssignDescriptorsOnce(); 1456 ::google::protobuf::Metadata metadata; 1457 metadata.descriptor = MiniRequestObject_descriptor_; 1458 metadata.reflection = MiniRequestObject_reflection_; 1459 return metadata; 1460 } 1461 1462 #if PROTOBUF_INLINE_NOT_IN_HEADERS 1463 // MiniRequestObject 1464 1465 // map<string, string> headers = 1; 1466 int MiniRequestObject::headers_size() const { 1467 return headers_.size(); 1468 } 1469 void MiniRequestObject::clear_headers() { 1470 headers_.Clear(); 1471 } 1472 const ::google::protobuf::Map< ::std::string, ::std::string >& 1473 MiniRequestObject::headers() const { 1474 // @@protoc_insertion_point(field_map:coprocess.MiniRequestObject.headers) 1475 return headers_.GetMap(); 1476 } 1477 ::google::protobuf::Map< ::std::string, ::std::string >* 1478 MiniRequestObject::mutable_headers() { 1479 // @@protoc_insertion_point(field_mutable_map:coprocess.MiniRequestObject.headers) 1480 return headers_.MutableMap(); 1481 } 1482 1483 // map<string, string> set_headers = 2; 1484 int MiniRequestObject::set_headers_size() const { 1485 return set_headers_.size(); 1486 } 1487 void MiniRequestObject::clear_set_headers() { 1488 set_headers_.Clear(); 1489 } 1490 const ::google::protobuf::Map< ::std::string, ::std::string >& 1491 MiniRequestObject::set_headers() const { 1492 // @@protoc_insertion_point(field_map:coprocess.MiniRequestObject.set_headers) 1493 return set_headers_.GetMap(); 1494 } 1495 ::google::protobuf::Map< ::std::string, ::std::string >* 1496 MiniRequestObject::mutable_set_headers() { 1497 // @@protoc_insertion_point(field_mutable_map:coprocess.MiniRequestObject.set_headers) 1498 return set_headers_.MutableMap(); 1499 } 1500 1501 // repeated string delete_headers = 3; 1502 int MiniRequestObject::delete_headers_size() const { 1503 return delete_headers_.size(); 1504 } 1505 void MiniRequestObject::clear_delete_headers() { 1506 delete_headers_.Clear(); 1507 } 1508 const ::std::string& MiniRequestObject::delete_headers(int index) const { 1509 // @@protoc_insertion_point(field_get:coprocess.MiniRequestObject.delete_headers) 1510 return delete_headers_.Get(index); 1511 } 1512 ::std::string* MiniRequestObject::mutable_delete_headers(int index) { 1513 // @@protoc_insertion_point(field_mutable:coprocess.MiniRequestObject.delete_headers) 1514 return delete_headers_.Mutable(index); 1515 } 1516 void MiniRequestObject::set_delete_headers(int index, const ::std::string& value) { 1517 // @@protoc_insertion_point(field_set:coprocess.MiniRequestObject.delete_headers) 1518 delete_headers_.Mutable(index)->assign(value); 1519 } 1520 void MiniRequestObject::set_delete_headers(int index, const char* value) { 1521 delete_headers_.Mutable(index)->assign(value); 1522 // @@protoc_insertion_point(field_set_char:coprocess.MiniRequestObject.delete_headers) 1523 } 1524 void MiniRequestObject::set_delete_headers(int index, const char* value, size_t size) { 1525 delete_headers_.Mutable(index)->assign( 1526 reinterpret_cast<const char*>(value), size); 1527 // @@protoc_insertion_point(field_set_pointer:coprocess.MiniRequestObject.delete_headers) 1528 } 1529 ::std::string* MiniRequestObject::add_delete_headers() { 1530 // @@protoc_insertion_point(field_add_mutable:coprocess.MiniRequestObject.delete_headers) 1531 return delete_headers_.Add(); 1532 } 1533 void MiniRequestObject::add_delete_headers(const ::std::string& value) { 1534 delete_headers_.Add()->assign(value); 1535 // @@protoc_insertion_point(field_add:coprocess.MiniRequestObject.delete_headers) 1536 } 1537 void MiniRequestObject::add_delete_headers(const char* value) { 1538 delete_headers_.Add()->assign(value); 1539 // @@protoc_insertion_point(field_add_char:coprocess.MiniRequestObject.delete_headers) 1540 } 1541 void MiniRequestObject::add_delete_headers(const char* value, size_t size) { 1542 delete_headers_.Add()->assign(reinterpret_cast<const char*>(value), size); 1543 // @@protoc_insertion_point(field_add_pointer:coprocess.MiniRequestObject.delete_headers) 1544 } 1545 const ::google::protobuf::RepeatedPtrField< ::std::string>& 1546 MiniRequestObject::delete_headers() const { 1547 // @@protoc_insertion_point(field_list:coprocess.MiniRequestObject.delete_headers) 1548 return delete_headers_; 1549 } 1550 ::google::protobuf::RepeatedPtrField< ::std::string>* 1551 MiniRequestObject::mutable_delete_headers() { 1552 // @@protoc_insertion_point(field_mutable_list:coprocess.MiniRequestObject.delete_headers) 1553 return &delete_headers_; 1554 } 1555 1556 // optional string body = 4; 1557 void MiniRequestObject::clear_body() { 1558 body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1559 } 1560 const ::std::string& MiniRequestObject::body() const { 1561 // @@protoc_insertion_point(field_get:coprocess.MiniRequestObject.body) 1562 return body_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1563 } 1564 void MiniRequestObject::set_body(const ::std::string& value) { 1565 1566 body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1567 // @@protoc_insertion_point(field_set:coprocess.MiniRequestObject.body) 1568 } 1569 void MiniRequestObject::set_body(const char* value) { 1570 1571 body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1572 // @@protoc_insertion_point(field_set_char:coprocess.MiniRequestObject.body) 1573 } 1574 void MiniRequestObject::set_body(const char* value, size_t size) { 1575 1576 body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1577 ::std::string(reinterpret_cast<const char*>(value), size)); 1578 // @@protoc_insertion_point(field_set_pointer:coprocess.MiniRequestObject.body) 1579 } 1580 ::std::string* MiniRequestObject::mutable_body() { 1581 1582 // @@protoc_insertion_point(field_mutable:coprocess.MiniRequestObject.body) 1583 return body_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1584 } 1585 ::std::string* MiniRequestObject::release_body() { 1586 // @@protoc_insertion_point(field_release:coprocess.MiniRequestObject.body) 1587 1588 return body_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1589 } 1590 void MiniRequestObject::set_allocated_body(::std::string* body) { 1591 if (body != NULL) { 1592 1593 } else { 1594 1595 } 1596 body_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body); 1597 // @@protoc_insertion_point(field_set_allocated:coprocess.MiniRequestObject.body) 1598 } 1599 1600 // optional string url = 5; 1601 void MiniRequestObject::clear_url() { 1602 url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1603 } 1604 const ::std::string& MiniRequestObject::url() const { 1605 // @@protoc_insertion_point(field_get:coprocess.MiniRequestObject.url) 1606 return url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1607 } 1608 void MiniRequestObject::set_url(const ::std::string& value) { 1609 1610 url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1611 // @@protoc_insertion_point(field_set:coprocess.MiniRequestObject.url) 1612 } 1613 void MiniRequestObject::set_url(const char* value) { 1614 1615 url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1616 // @@protoc_insertion_point(field_set_char:coprocess.MiniRequestObject.url) 1617 } 1618 void MiniRequestObject::set_url(const char* value, size_t size) { 1619 1620 url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1621 ::std::string(reinterpret_cast<const char*>(value), size)); 1622 // @@protoc_insertion_point(field_set_pointer:coprocess.MiniRequestObject.url) 1623 } 1624 ::std::string* MiniRequestObject::mutable_url() { 1625 1626 // @@protoc_insertion_point(field_mutable:coprocess.MiniRequestObject.url) 1627 return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1628 } 1629 ::std::string* MiniRequestObject::release_url() { 1630 // @@protoc_insertion_point(field_release:coprocess.MiniRequestObject.url) 1631 1632 return url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1633 } 1634 void MiniRequestObject::set_allocated_url(::std::string* url) { 1635 if (url != NULL) { 1636 1637 } else { 1638 1639 } 1640 url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url); 1641 // @@protoc_insertion_point(field_set_allocated:coprocess.MiniRequestObject.url) 1642 } 1643 1644 // map<string, string> params = 6; 1645 int MiniRequestObject::params_size() const { 1646 return params_.size(); 1647 } 1648 void MiniRequestObject::clear_params() { 1649 params_.Clear(); 1650 } 1651 const ::google::protobuf::Map< ::std::string, ::std::string >& 1652 MiniRequestObject::params() const { 1653 // @@protoc_insertion_point(field_map:coprocess.MiniRequestObject.params) 1654 return params_.GetMap(); 1655 } 1656 ::google::protobuf::Map< ::std::string, ::std::string >* 1657 MiniRequestObject::mutable_params() { 1658 // @@protoc_insertion_point(field_mutable_map:coprocess.MiniRequestObject.params) 1659 return params_.MutableMap(); 1660 } 1661 1662 // map<string, string> add_params = 7; 1663 int MiniRequestObject::add_params_size() const { 1664 return add_params_.size(); 1665 } 1666 void MiniRequestObject::clear_add_params() { 1667 add_params_.Clear(); 1668 } 1669 const ::google::protobuf::Map< ::std::string, ::std::string >& 1670 MiniRequestObject::add_params() const { 1671 // @@protoc_insertion_point(field_map:coprocess.MiniRequestObject.add_params) 1672 return add_params_.GetMap(); 1673 } 1674 ::google::protobuf::Map< ::std::string, ::std::string >* 1675 MiniRequestObject::mutable_add_params() { 1676 // @@protoc_insertion_point(field_mutable_map:coprocess.MiniRequestObject.add_params) 1677 return add_params_.MutableMap(); 1678 } 1679 1680 // map<string, string> extended_params = 8; 1681 int MiniRequestObject::extended_params_size() const { 1682 return extended_params_.size(); 1683 } 1684 void MiniRequestObject::clear_extended_params() { 1685 extended_params_.Clear(); 1686 } 1687 const ::google::protobuf::Map< ::std::string, ::std::string >& 1688 MiniRequestObject::extended_params() const { 1689 // @@protoc_insertion_point(field_map:coprocess.MiniRequestObject.extended_params) 1690 return extended_params_.GetMap(); 1691 } 1692 ::google::protobuf::Map< ::std::string, ::std::string >* 1693 MiniRequestObject::mutable_extended_params() { 1694 // @@protoc_insertion_point(field_mutable_map:coprocess.MiniRequestObject.extended_params) 1695 return extended_params_.MutableMap(); 1696 } 1697 1698 // repeated string delete_params = 9; 1699 int MiniRequestObject::delete_params_size() const { 1700 return delete_params_.size(); 1701 } 1702 void MiniRequestObject::clear_delete_params() { 1703 delete_params_.Clear(); 1704 } 1705 const ::std::string& MiniRequestObject::delete_params(int index) const { 1706 // @@protoc_insertion_point(field_get:coprocess.MiniRequestObject.delete_params) 1707 return delete_params_.Get(index); 1708 } 1709 ::std::string* MiniRequestObject::mutable_delete_params(int index) { 1710 // @@protoc_insertion_point(field_mutable:coprocess.MiniRequestObject.delete_params) 1711 return delete_params_.Mutable(index); 1712 } 1713 void MiniRequestObject::set_delete_params(int index, const ::std::string& value) { 1714 // @@protoc_insertion_point(field_set:coprocess.MiniRequestObject.delete_params) 1715 delete_params_.Mutable(index)->assign(value); 1716 } 1717 void MiniRequestObject::set_delete_params(int index, const char* value) { 1718 delete_params_.Mutable(index)->assign(value); 1719 // @@protoc_insertion_point(field_set_char:coprocess.MiniRequestObject.delete_params) 1720 } 1721 void MiniRequestObject::set_delete_params(int index, const char* value, size_t size) { 1722 delete_params_.Mutable(index)->assign( 1723 reinterpret_cast<const char*>(value), size); 1724 // @@protoc_insertion_point(field_set_pointer:coprocess.MiniRequestObject.delete_params) 1725 } 1726 ::std::string* MiniRequestObject::add_delete_params() { 1727 // @@protoc_insertion_point(field_add_mutable:coprocess.MiniRequestObject.delete_params) 1728 return delete_params_.Add(); 1729 } 1730 void MiniRequestObject::add_delete_params(const ::std::string& value) { 1731 delete_params_.Add()->assign(value); 1732 // @@protoc_insertion_point(field_add:coprocess.MiniRequestObject.delete_params) 1733 } 1734 void MiniRequestObject::add_delete_params(const char* value) { 1735 delete_params_.Add()->assign(value); 1736 // @@protoc_insertion_point(field_add_char:coprocess.MiniRequestObject.delete_params) 1737 } 1738 void MiniRequestObject::add_delete_params(const char* value, size_t size) { 1739 delete_params_.Add()->assign(reinterpret_cast<const char*>(value), size); 1740 // @@protoc_insertion_point(field_add_pointer:coprocess.MiniRequestObject.delete_params) 1741 } 1742 const ::google::protobuf::RepeatedPtrField< ::std::string>& 1743 MiniRequestObject::delete_params() const { 1744 // @@protoc_insertion_point(field_list:coprocess.MiniRequestObject.delete_params) 1745 return delete_params_; 1746 } 1747 ::google::protobuf::RepeatedPtrField< ::std::string>* 1748 MiniRequestObject::mutable_delete_params() { 1749 // @@protoc_insertion_point(field_mutable_list:coprocess.MiniRequestObject.delete_params) 1750 return &delete_params_; 1751 } 1752 1753 // optional .coprocess.ReturnOverrides return_overrides = 10; 1754 bool MiniRequestObject::has_return_overrides() const { 1755 return this != internal_default_instance() && return_overrides_ != NULL; 1756 } 1757 void MiniRequestObject::clear_return_overrides() { 1758 if (GetArenaNoVirtual() == NULL && return_overrides_ != NULL) delete return_overrides_; 1759 return_overrides_ = NULL; 1760 } 1761 const ::coprocess::ReturnOverrides& MiniRequestObject::return_overrides() const { 1762 // @@protoc_insertion_point(field_get:coprocess.MiniRequestObject.return_overrides) 1763 return return_overrides_ != NULL ? *return_overrides_ 1764 : *::coprocess::ReturnOverrides::internal_default_instance(); 1765 } 1766 ::coprocess::ReturnOverrides* MiniRequestObject::mutable_return_overrides() { 1767 1768 if (return_overrides_ == NULL) { 1769 return_overrides_ = new ::coprocess::ReturnOverrides; 1770 } 1771 // @@protoc_insertion_point(field_mutable:coprocess.MiniRequestObject.return_overrides) 1772 return return_overrides_; 1773 } 1774 ::coprocess::ReturnOverrides* MiniRequestObject::release_return_overrides() { 1775 // @@protoc_insertion_point(field_release:coprocess.MiniRequestObject.return_overrides) 1776 1777 ::coprocess::ReturnOverrides* temp = return_overrides_; 1778 return_overrides_ = NULL; 1779 return temp; 1780 } 1781 void MiniRequestObject::set_allocated_return_overrides(::coprocess::ReturnOverrides* return_overrides) { 1782 delete return_overrides_; 1783 return_overrides_ = return_overrides; 1784 if (return_overrides) { 1785 1786 } else { 1787 1788 } 1789 // @@protoc_insertion_point(field_set_allocated:coprocess.MiniRequestObject.return_overrides) 1790 } 1791 1792 inline const MiniRequestObject* MiniRequestObject::internal_default_instance() { 1793 return &MiniRequestObject_default_instance_.get(); 1794 } 1795 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 1796 1797 // @@protoc_insertion_point(namespace_scope) 1798 1799 } // namespace coprocess 1800 1801 // @@protoc_insertion_point(global_scope)