github.com/craicoverflow/tyk@v2.9.6-rc3+incompatible/coprocess/bindings/cpp/coprocess_session_state.pb.cc (about) 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: coprocess_session_state.proto 3 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION 5 #include "coprocess_session_state.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* AccessSpec_descriptor_ = NULL; 25 const ::google::protobuf::internal::GeneratedMessageReflection* 26 AccessSpec_reflection_ = NULL; 27 const ::google::protobuf::Descriptor* AccessDefinition_descriptor_ = NULL; 28 const ::google::protobuf::internal::GeneratedMessageReflection* 29 AccessDefinition_reflection_ = NULL; 30 const ::google::protobuf::Descriptor* BasicAuthData_descriptor_ = NULL; 31 const ::google::protobuf::internal::GeneratedMessageReflection* 32 BasicAuthData_reflection_ = NULL; 33 const ::google::protobuf::Descriptor* JWTData_descriptor_ = NULL; 34 const ::google::protobuf::internal::GeneratedMessageReflection* 35 JWTData_reflection_ = NULL; 36 const ::google::protobuf::Descriptor* Monitor_descriptor_ = NULL; 37 const ::google::protobuf::internal::GeneratedMessageReflection* 38 Monitor_reflection_ = NULL; 39 const ::google::protobuf::Descriptor* SessionState_descriptor_ = NULL; 40 const ::google::protobuf::internal::GeneratedMessageReflection* 41 SessionState_reflection_ = NULL; 42 const ::google::protobuf::Descriptor* SessionState_AccessRightsEntry_descriptor_ = NULL; 43 const ::google::protobuf::Descriptor* SessionState_OauthKeysEntry_descriptor_ = NULL; 44 45 } // namespace 46 47 48 void protobuf_AssignDesc_coprocess_5fsession_5fstate_2eproto() GOOGLE_ATTRIBUTE_COLD; 49 void protobuf_AssignDesc_coprocess_5fsession_5fstate_2eproto() { 50 protobuf_AddDesc_coprocess_5fsession_5fstate_2eproto(); 51 const ::google::protobuf::FileDescriptor* file = 52 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( 53 "coprocess_session_state.proto"); 54 GOOGLE_CHECK(file != NULL); 55 AccessSpec_descriptor_ = file->message_type(0); 56 static const int AccessSpec_offsets_[2] = { 57 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccessSpec, url_), 58 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccessSpec, methods_), 59 }; 60 AccessSpec_reflection_ = 61 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 62 AccessSpec_descriptor_, 63 AccessSpec::internal_default_instance(), 64 AccessSpec_offsets_, 65 -1, 66 -1, 67 -1, 68 sizeof(AccessSpec), 69 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccessSpec, _internal_metadata_)); 70 AccessDefinition_descriptor_ = file->message_type(1); 71 static const int AccessDefinition_offsets_[4] = { 72 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccessDefinition, api_name_), 73 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccessDefinition, api_id_), 74 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccessDefinition, versions_), 75 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccessDefinition, allowed_urls_), 76 }; 77 AccessDefinition_reflection_ = 78 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 79 AccessDefinition_descriptor_, 80 AccessDefinition::internal_default_instance(), 81 AccessDefinition_offsets_, 82 -1, 83 -1, 84 -1, 85 sizeof(AccessDefinition), 86 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccessDefinition, _internal_metadata_)); 87 BasicAuthData_descriptor_ = file->message_type(2); 88 static const int BasicAuthData_offsets_[2] = { 89 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasicAuthData, password_), 90 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasicAuthData, hash_), 91 }; 92 BasicAuthData_reflection_ = 93 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 94 BasicAuthData_descriptor_, 95 BasicAuthData::internal_default_instance(), 96 BasicAuthData_offsets_, 97 -1, 98 -1, 99 -1, 100 sizeof(BasicAuthData), 101 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BasicAuthData, _internal_metadata_)); 102 JWTData_descriptor_ = file->message_type(3); 103 static const int JWTData_offsets_[1] = { 104 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JWTData, secret_), 105 }; 106 JWTData_reflection_ = 107 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 108 JWTData_descriptor_, 109 JWTData::internal_default_instance(), 110 JWTData_offsets_, 111 -1, 112 -1, 113 -1, 114 sizeof(JWTData), 115 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JWTData, _internal_metadata_)); 116 Monitor_descriptor_ = file->message_type(4); 117 static const int Monitor_offsets_[1] = { 118 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Monitor, trigger_limits_), 119 }; 120 Monitor_reflection_ = 121 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 122 Monitor_descriptor_, 123 Monitor::internal_default_instance(), 124 Monitor_offsets_, 125 -1, 126 -1, 127 -1, 128 sizeof(Monitor), 129 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Monitor, _internal_metadata_)); 130 SessionState_descriptor_ = file->message_type(5); 131 static const int SessionState_offsets_[28] = { 132 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, last_check_), 133 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, allowance_), 134 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, rate_), 135 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, per_), 136 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, expires_), 137 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, quota_max_), 138 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, quota_renews_), 139 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, quota_remaining_), 140 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, quota_renewal_rate_), 141 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, access_rights_), 142 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, org_id_), 143 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, oauth_client_id_), 144 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, oauth_keys_), 145 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, basic_auth_data_), 146 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, jwt_data_), 147 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, hmac_enabled_), 148 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, hmac_secret_), 149 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, is_inactive_), 150 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, apply_policy_id_), 151 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, data_expires_), 152 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, monitor_), 153 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, enable_detailed_recording_), 154 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, metadata_), 155 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, tags_), 156 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, alias_), 157 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, last_updated_), 158 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, id_extractor_deadline_), 159 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, session_lifetime_), 160 }; 161 SessionState_reflection_ = 162 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 163 SessionState_descriptor_, 164 SessionState::internal_default_instance(), 165 SessionState_offsets_, 166 -1, 167 -1, 168 -1, 169 sizeof(SessionState), 170 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SessionState, _internal_metadata_)); 171 SessionState_AccessRightsEntry_descriptor_ = SessionState_descriptor_->nested_type(0); 172 SessionState_OauthKeysEntry_descriptor_ = SessionState_descriptor_->nested_type(1); 173 } 174 175 namespace { 176 177 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); 178 void protobuf_AssignDescriptorsOnce() { 179 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, 180 &protobuf_AssignDesc_coprocess_5fsession_5fstate_2eproto); 181 } 182 183 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; 184 void protobuf_RegisterTypes(const ::std::string&) { 185 protobuf_AssignDescriptorsOnce(); 186 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 187 AccessSpec_descriptor_, AccessSpec::internal_default_instance()); 188 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 189 AccessDefinition_descriptor_, AccessDefinition::internal_default_instance()); 190 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 191 BasicAuthData_descriptor_, BasicAuthData::internal_default_instance()); 192 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 193 JWTData_descriptor_, JWTData::internal_default_instance()); 194 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 195 Monitor_descriptor_, Monitor::internal_default_instance()); 196 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 197 SessionState_descriptor_, SessionState::internal_default_instance()); 198 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 199 SessionState_AccessRightsEntry_descriptor_, 200 ::google::protobuf::internal::MapEntry< 201 ::std::string, 202 ::coprocess::AccessDefinition, 203 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 204 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 205 0>::CreateDefaultInstance( 206 SessionState_AccessRightsEntry_descriptor_)); 207 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 208 SessionState_OauthKeysEntry_descriptor_, 209 ::google::protobuf::internal::MapEntry< 210 ::std::string, 211 ::std::string, 212 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 213 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 214 0>::CreateDefaultInstance( 215 SessionState_OauthKeysEntry_descriptor_)); 216 } 217 218 } // namespace 219 220 void protobuf_ShutdownFile_coprocess_5fsession_5fstate_2eproto() { 221 AccessSpec_default_instance_.Shutdown(); 222 delete AccessSpec_reflection_; 223 AccessDefinition_default_instance_.Shutdown(); 224 delete AccessDefinition_reflection_; 225 BasicAuthData_default_instance_.Shutdown(); 226 delete BasicAuthData_reflection_; 227 JWTData_default_instance_.Shutdown(); 228 delete JWTData_reflection_; 229 Monitor_default_instance_.Shutdown(); 230 delete Monitor_reflection_; 231 SessionState_default_instance_.Shutdown(); 232 delete SessionState_reflection_; 233 } 234 235 void protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto_impl() { 236 GOOGLE_PROTOBUF_VERIFY_VERSION; 237 238 ::google::protobuf::internal::GetEmptyString(); 239 AccessSpec_default_instance_.DefaultConstruct(); 240 ::google::protobuf::internal::GetEmptyString(); 241 AccessDefinition_default_instance_.DefaultConstruct(); 242 ::google::protobuf::internal::GetEmptyString(); 243 BasicAuthData_default_instance_.DefaultConstruct(); 244 ::google::protobuf::internal::GetEmptyString(); 245 JWTData_default_instance_.DefaultConstruct(); 246 Monitor_default_instance_.DefaultConstruct(); 247 ::google::protobuf::internal::GetEmptyString(); 248 SessionState_default_instance_.DefaultConstruct(); 249 ::google::protobuf::internal::GetEmptyString(); 250 AccessSpec_default_instance_.get_mutable()->InitAsDefaultInstance(); 251 AccessDefinition_default_instance_.get_mutable()->InitAsDefaultInstance(); 252 BasicAuthData_default_instance_.get_mutable()->InitAsDefaultInstance(); 253 JWTData_default_instance_.get_mutable()->InitAsDefaultInstance(); 254 Monitor_default_instance_.get_mutable()->InitAsDefaultInstance(); 255 SessionState_default_instance_.get_mutable()->InitAsDefaultInstance(); 256 } 257 258 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto_once_); 259 void protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto() { 260 ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto_once_, 261 &protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto_impl); 262 } 263 void protobuf_AddDesc_coprocess_5fsession_5fstate_2eproto_impl() { 264 GOOGLE_PROTOBUF_VERIFY_VERSION; 265 266 protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto(); 267 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( 268 "\n\035coprocess_session_state.proto\022\tcoproce" 269 "ss\"*\n\nAccessSpec\022\013\n\003url\030\001 \001(\t\022\017\n\007methods" 270 "\030\002 \003(\t\"s\n\020AccessDefinition\022\020\n\010api_name\030\001" 271 " \001(\t\022\016\n\006api_id\030\002 \001(\t\022\020\n\010versions\030\003 \003(\t\022+" 272 "\n\014allowed_urls\030\004 \003(\0132\025.coprocess.AccessS" 273 "pec\"/\n\rBasicAuthData\022\020\n\010password\030\001 \001(\t\022\014" 274 "\n\004hash\030\002 \001(\t\"\031\n\007JWTData\022\016\n\006secret\030\001 \001(\t\"" 275 "!\n\007Monitor\022\026\n\016trigger_limits\030\001 \003(\001\"\370\006\n\014S" 276 "essionState\022\022\n\nlast_check\030\001 \001(\003\022\021\n\tallow" 277 "ance\030\002 \001(\001\022\014\n\004rate\030\003 \001(\001\022\013\n\003per\030\004 \001(\001\022\017\n" 278 "\007expires\030\005 \001(\003\022\021\n\tquota_max\030\006 \001(\003\022\024\n\014quo" 279 "ta_renews\030\007 \001(\003\022\027\n\017quota_remaining\030\010 \001(\003" 280 "\022\032\n\022quota_renewal_rate\030\t \001(\003\022@\n\raccess_r" 281 "ights\030\n \003(\0132).coprocess.SessionState.Acc" 282 "essRightsEntry\022\016\n\006org_id\030\013 \001(\t\022\027\n\017oauth_" 283 "client_id\030\014 \001(\t\022:\n\noauth_keys\030\r \003(\0132&.co" 284 "process.SessionState.OauthKeysEntry\0221\n\017b" 285 "asic_auth_data\030\016 \001(\0132\030.coprocess.BasicAu" 286 "thData\022$\n\010jwt_data\030\017 \001(\0132\022.coprocess.JWT" 287 "Data\022\024\n\014hmac_enabled\030\020 \001(\010\022\023\n\013hmac_secre" 288 "t\030\021 \001(\t\022\023\n\013is_inactive\030\022 \001(\010\022\027\n\017apply_po" 289 "licy_id\030\023 \001(\t\022\024\n\014data_expires\030\024 \001(\003\022#\n\007m" 290 "onitor\030\025 \001(\0132\022.coprocess.Monitor\022!\n\031enab" 291 "le_detailed_recording\030\026 \001(\010\022\020\n\010metadata\030" 292 "\027 \001(\t\022\014\n\004tags\030\030 \003(\t\022\r\n\005alias\030\031 \001(\t\022\024\n\014la" 293 "st_updated\030\032 \001(\t\022\035\n\025id_extractor_deadlin" 294 "e\030\033 \001(\003\022\030\n\020session_lifetime\030\034 \001(\003\032P\n\021Acc" 295 "essRightsEntry\022\013\n\003key\030\001 \001(\t\022*\n\005value\030\002 \001" 296 "(\0132\033.coprocess.AccessDefinition:\0028\001\0320\n\016O" 297 "authKeysEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" 298 "\t:\0028\001b\006proto3", 1213); 299 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( 300 "coprocess_session_state.proto", &protobuf_RegisterTypes); 301 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_coprocess_5fsession_5fstate_2eproto); 302 } 303 304 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_coprocess_5fsession_5fstate_2eproto_once_); 305 void protobuf_AddDesc_coprocess_5fsession_5fstate_2eproto() { 306 ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_coprocess_5fsession_5fstate_2eproto_once_, 307 &protobuf_AddDesc_coprocess_5fsession_5fstate_2eproto_impl); 308 } 309 // Force AddDescriptors() to be called at static initialization time. 310 struct StaticDescriptorInitializer_coprocess_5fsession_5fstate_2eproto { 311 StaticDescriptorInitializer_coprocess_5fsession_5fstate_2eproto() { 312 protobuf_AddDesc_coprocess_5fsession_5fstate_2eproto(); 313 } 314 } static_descriptor_initializer_coprocess_5fsession_5fstate_2eproto_; 315 316 namespace { 317 318 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; 319 static void MergeFromFail(int line) { 320 ::google::protobuf::internal::MergeFromFail(__FILE__, line); 321 } 322 323 } // namespace 324 325 326 // =================================================================== 327 328 #if !defined(_MSC_VER) || _MSC_VER >= 1900 329 const int AccessSpec::kUrlFieldNumber; 330 const int AccessSpec::kMethodsFieldNumber; 331 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 332 333 AccessSpec::AccessSpec() 334 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 335 if (this != internal_default_instance()) protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto(); 336 SharedCtor(); 337 // @@protoc_insertion_point(constructor:coprocess.AccessSpec) 338 } 339 340 void AccessSpec::InitAsDefaultInstance() { 341 } 342 343 AccessSpec::AccessSpec(const AccessSpec& from) 344 : ::google::protobuf::Message(), 345 _internal_metadata_(NULL) { 346 SharedCtor(); 347 UnsafeMergeFrom(from); 348 // @@protoc_insertion_point(copy_constructor:coprocess.AccessSpec) 349 } 350 351 void AccessSpec::SharedCtor() { 352 url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 353 _cached_size_ = 0; 354 } 355 356 AccessSpec::~AccessSpec() { 357 // @@protoc_insertion_point(destructor:coprocess.AccessSpec) 358 SharedDtor(); 359 } 360 361 void AccessSpec::SharedDtor() { 362 url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 363 } 364 365 void AccessSpec::SetCachedSize(int size) const { 366 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 367 _cached_size_ = size; 368 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 369 } 370 const ::google::protobuf::Descriptor* AccessSpec::descriptor() { 371 protobuf_AssignDescriptorsOnce(); 372 return AccessSpec_descriptor_; 373 } 374 375 const AccessSpec& AccessSpec::default_instance() { 376 protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto(); 377 return *internal_default_instance(); 378 } 379 380 ::google::protobuf::internal::ExplicitlyConstructed<AccessSpec> AccessSpec_default_instance_; 381 382 AccessSpec* AccessSpec::New(::google::protobuf::Arena* arena) const { 383 AccessSpec* n = new AccessSpec; 384 if (arena != NULL) { 385 arena->Own(n); 386 } 387 return n; 388 } 389 390 void AccessSpec::Clear() { 391 // @@protoc_insertion_point(message_clear_start:coprocess.AccessSpec) 392 url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 393 methods_.Clear(); 394 } 395 396 bool AccessSpec::MergePartialFromCodedStream( 397 ::google::protobuf::io::CodedInputStream* input) { 398 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 399 ::google::protobuf::uint32 tag; 400 // @@protoc_insertion_point(parse_start:coprocess.AccessSpec) 401 for (;;) { 402 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 403 tag = p.first; 404 if (!p.second) goto handle_unusual; 405 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 406 // optional string url = 1; 407 case 1: { 408 if (tag == 10) { 409 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 410 input, this->mutable_url())); 411 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 412 this->url().data(), this->url().length(), 413 ::google::protobuf::internal::WireFormatLite::PARSE, 414 "coprocess.AccessSpec.url")); 415 } else { 416 goto handle_unusual; 417 } 418 if (input->ExpectTag(18)) goto parse_methods; 419 break; 420 } 421 422 // repeated string methods = 2; 423 case 2: { 424 if (tag == 18) { 425 parse_methods: 426 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 427 input, this->add_methods())); 428 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 429 this->methods(this->methods_size() - 1).data(), 430 this->methods(this->methods_size() - 1).length(), 431 ::google::protobuf::internal::WireFormatLite::PARSE, 432 "coprocess.AccessSpec.methods")); 433 } else { 434 goto handle_unusual; 435 } 436 if (input->ExpectTag(18)) goto parse_methods; 437 if (input->ExpectAtEnd()) goto success; 438 break; 439 } 440 441 default: { 442 handle_unusual: 443 if (tag == 0 || 444 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 445 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 446 goto success; 447 } 448 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 449 break; 450 } 451 } 452 } 453 success: 454 // @@protoc_insertion_point(parse_success:coprocess.AccessSpec) 455 return true; 456 failure: 457 // @@protoc_insertion_point(parse_failure:coprocess.AccessSpec) 458 return false; 459 #undef DO_ 460 } 461 462 void AccessSpec::SerializeWithCachedSizes( 463 ::google::protobuf::io::CodedOutputStream* output) const { 464 // @@protoc_insertion_point(serialize_start:coprocess.AccessSpec) 465 // optional string url = 1; 466 if (this->url().size() > 0) { 467 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 468 this->url().data(), this->url().length(), 469 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 470 "coprocess.AccessSpec.url"); 471 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 472 1, this->url(), output); 473 } 474 475 // repeated string methods = 2; 476 for (int i = 0; i < this->methods_size(); i++) { 477 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 478 this->methods(i).data(), this->methods(i).length(), 479 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 480 "coprocess.AccessSpec.methods"); 481 ::google::protobuf::internal::WireFormatLite::WriteString( 482 2, this->methods(i), output); 483 } 484 485 // @@protoc_insertion_point(serialize_end:coprocess.AccessSpec) 486 } 487 488 ::google::protobuf::uint8* AccessSpec::InternalSerializeWithCachedSizesToArray( 489 bool deterministic, ::google::protobuf::uint8* target) const { 490 (void)deterministic; // Unused 491 // @@protoc_insertion_point(serialize_to_array_start:coprocess.AccessSpec) 492 // optional string url = 1; 493 if (this->url().size() > 0) { 494 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 495 this->url().data(), this->url().length(), 496 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 497 "coprocess.AccessSpec.url"); 498 target = 499 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 500 1, this->url(), target); 501 } 502 503 // repeated string methods = 2; 504 for (int i = 0; i < this->methods_size(); i++) { 505 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 506 this->methods(i).data(), this->methods(i).length(), 507 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 508 "coprocess.AccessSpec.methods"); 509 target = ::google::protobuf::internal::WireFormatLite:: 510 WriteStringToArray(2, this->methods(i), target); 511 } 512 513 // @@protoc_insertion_point(serialize_to_array_end:coprocess.AccessSpec) 514 return target; 515 } 516 517 size_t AccessSpec::ByteSizeLong() const { 518 // @@protoc_insertion_point(message_byte_size_start:coprocess.AccessSpec) 519 size_t total_size = 0; 520 521 // optional string url = 1; 522 if (this->url().size() > 0) { 523 total_size += 1 + 524 ::google::protobuf::internal::WireFormatLite::StringSize( 525 this->url()); 526 } 527 528 // repeated string methods = 2; 529 total_size += 1 * 530 ::google::protobuf::internal::FromIntSize(this->methods_size()); 531 for (int i = 0; i < this->methods_size(); i++) { 532 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( 533 this->methods(i)); 534 } 535 536 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 537 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 538 _cached_size_ = cached_size; 539 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 540 return total_size; 541 } 542 543 void AccessSpec::MergeFrom(const ::google::protobuf::Message& from) { 544 // @@protoc_insertion_point(generalized_merge_from_start:coprocess.AccessSpec) 545 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 546 const AccessSpec* source = 547 ::google::protobuf::internal::DynamicCastToGenerated<const AccessSpec>( 548 &from); 549 if (source == NULL) { 550 // @@protoc_insertion_point(generalized_merge_from_cast_fail:coprocess.AccessSpec) 551 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 552 } else { 553 // @@protoc_insertion_point(generalized_merge_from_cast_success:coprocess.AccessSpec) 554 UnsafeMergeFrom(*source); 555 } 556 } 557 558 void AccessSpec::MergeFrom(const AccessSpec& from) { 559 // @@protoc_insertion_point(class_specific_merge_from_start:coprocess.AccessSpec) 560 if (GOOGLE_PREDICT_TRUE(&from != this)) { 561 UnsafeMergeFrom(from); 562 } else { 563 MergeFromFail(__LINE__); 564 } 565 } 566 567 void AccessSpec::UnsafeMergeFrom(const AccessSpec& from) { 568 GOOGLE_DCHECK(&from != this); 569 methods_.UnsafeMergeFrom(from.methods_); 570 if (from.url().size() > 0) { 571 572 url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_); 573 } 574 } 575 576 void AccessSpec::CopyFrom(const ::google::protobuf::Message& from) { 577 // @@protoc_insertion_point(generalized_copy_from_start:coprocess.AccessSpec) 578 if (&from == this) return; 579 Clear(); 580 MergeFrom(from); 581 } 582 583 void AccessSpec::CopyFrom(const AccessSpec& from) { 584 // @@protoc_insertion_point(class_specific_copy_from_start:coprocess.AccessSpec) 585 if (&from == this) return; 586 Clear(); 587 UnsafeMergeFrom(from); 588 } 589 590 bool AccessSpec::IsInitialized() const { 591 592 return true; 593 } 594 595 void AccessSpec::Swap(AccessSpec* other) { 596 if (other == this) return; 597 InternalSwap(other); 598 } 599 void AccessSpec::InternalSwap(AccessSpec* other) { 600 url_.Swap(&other->url_); 601 methods_.UnsafeArenaSwap(&other->methods_); 602 _internal_metadata_.Swap(&other->_internal_metadata_); 603 std::swap(_cached_size_, other->_cached_size_); 604 } 605 606 ::google::protobuf::Metadata AccessSpec::GetMetadata() const { 607 protobuf_AssignDescriptorsOnce(); 608 ::google::protobuf::Metadata metadata; 609 metadata.descriptor = AccessSpec_descriptor_; 610 metadata.reflection = AccessSpec_reflection_; 611 return metadata; 612 } 613 614 #if PROTOBUF_INLINE_NOT_IN_HEADERS 615 // AccessSpec 616 617 // optional string url = 1; 618 void AccessSpec::clear_url() { 619 url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 620 } 621 const ::std::string& AccessSpec::url() const { 622 // @@protoc_insertion_point(field_get:coprocess.AccessSpec.url) 623 return url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 624 } 625 void AccessSpec::set_url(const ::std::string& value) { 626 627 url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 628 // @@protoc_insertion_point(field_set:coprocess.AccessSpec.url) 629 } 630 void AccessSpec::set_url(const char* value) { 631 632 url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 633 // @@protoc_insertion_point(field_set_char:coprocess.AccessSpec.url) 634 } 635 void AccessSpec::set_url(const char* value, size_t size) { 636 637 url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 638 ::std::string(reinterpret_cast<const char*>(value), size)); 639 // @@protoc_insertion_point(field_set_pointer:coprocess.AccessSpec.url) 640 } 641 ::std::string* AccessSpec::mutable_url() { 642 643 // @@protoc_insertion_point(field_mutable:coprocess.AccessSpec.url) 644 return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 645 } 646 ::std::string* AccessSpec::release_url() { 647 // @@protoc_insertion_point(field_release:coprocess.AccessSpec.url) 648 649 return url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 650 } 651 void AccessSpec::set_allocated_url(::std::string* url) { 652 if (url != NULL) { 653 654 } else { 655 656 } 657 url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url); 658 // @@protoc_insertion_point(field_set_allocated:coprocess.AccessSpec.url) 659 } 660 661 // repeated string methods = 2; 662 int AccessSpec::methods_size() const { 663 return methods_.size(); 664 } 665 void AccessSpec::clear_methods() { 666 methods_.Clear(); 667 } 668 const ::std::string& AccessSpec::methods(int index) const { 669 // @@protoc_insertion_point(field_get:coprocess.AccessSpec.methods) 670 return methods_.Get(index); 671 } 672 ::std::string* AccessSpec::mutable_methods(int index) { 673 // @@protoc_insertion_point(field_mutable:coprocess.AccessSpec.methods) 674 return methods_.Mutable(index); 675 } 676 void AccessSpec::set_methods(int index, const ::std::string& value) { 677 // @@protoc_insertion_point(field_set:coprocess.AccessSpec.methods) 678 methods_.Mutable(index)->assign(value); 679 } 680 void AccessSpec::set_methods(int index, const char* value) { 681 methods_.Mutable(index)->assign(value); 682 // @@protoc_insertion_point(field_set_char:coprocess.AccessSpec.methods) 683 } 684 void AccessSpec::set_methods(int index, const char* value, size_t size) { 685 methods_.Mutable(index)->assign( 686 reinterpret_cast<const char*>(value), size); 687 // @@protoc_insertion_point(field_set_pointer:coprocess.AccessSpec.methods) 688 } 689 ::std::string* AccessSpec::add_methods() { 690 // @@protoc_insertion_point(field_add_mutable:coprocess.AccessSpec.methods) 691 return methods_.Add(); 692 } 693 void AccessSpec::add_methods(const ::std::string& value) { 694 methods_.Add()->assign(value); 695 // @@protoc_insertion_point(field_add:coprocess.AccessSpec.methods) 696 } 697 void AccessSpec::add_methods(const char* value) { 698 methods_.Add()->assign(value); 699 // @@protoc_insertion_point(field_add_char:coprocess.AccessSpec.methods) 700 } 701 void AccessSpec::add_methods(const char* value, size_t size) { 702 methods_.Add()->assign(reinterpret_cast<const char*>(value), size); 703 // @@protoc_insertion_point(field_add_pointer:coprocess.AccessSpec.methods) 704 } 705 const ::google::protobuf::RepeatedPtrField< ::std::string>& 706 AccessSpec::methods() const { 707 // @@protoc_insertion_point(field_list:coprocess.AccessSpec.methods) 708 return methods_; 709 } 710 ::google::protobuf::RepeatedPtrField< ::std::string>* 711 AccessSpec::mutable_methods() { 712 // @@protoc_insertion_point(field_mutable_list:coprocess.AccessSpec.methods) 713 return &methods_; 714 } 715 716 inline const AccessSpec* AccessSpec::internal_default_instance() { 717 return &AccessSpec_default_instance_.get(); 718 } 719 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 720 721 // =================================================================== 722 723 #if !defined(_MSC_VER) || _MSC_VER >= 1900 724 const int AccessDefinition::kApiNameFieldNumber; 725 const int AccessDefinition::kApiIdFieldNumber; 726 const int AccessDefinition::kVersionsFieldNumber; 727 const int AccessDefinition::kAllowedUrlsFieldNumber; 728 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 729 730 AccessDefinition::AccessDefinition() 731 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 732 if (this != internal_default_instance()) protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto(); 733 SharedCtor(); 734 // @@protoc_insertion_point(constructor:coprocess.AccessDefinition) 735 } 736 737 void AccessDefinition::InitAsDefaultInstance() { 738 } 739 740 AccessDefinition::AccessDefinition(const AccessDefinition& from) 741 : ::google::protobuf::Message(), 742 _internal_metadata_(NULL) { 743 SharedCtor(); 744 UnsafeMergeFrom(from); 745 // @@protoc_insertion_point(copy_constructor:coprocess.AccessDefinition) 746 } 747 748 void AccessDefinition::SharedCtor() { 749 api_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 750 api_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 751 _cached_size_ = 0; 752 } 753 754 AccessDefinition::~AccessDefinition() { 755 // @@protoc_insertion_point(destructor:coprocess.AccessDefinition) 756 SharedDtor(); 757 } 758 759 void AccessDefinition::SharedDtor() { 760 api_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 761 api_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 762 } 763 764 void AccessDefinition::SetCachedSize(int size) const { 765 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 766 _cached_size_ = size; 767 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 768 } 769 const ::google::protobuf::Descriptor* AccessDefinition::descriptor() { 770 protobuf_AssignDescriptorsOnce(); 771 return AccessDefinition_descriptor_; 772 } 773 774 const AccessDefinition& AccessDefinition::default_instance() { 775 protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto(); 776 return *internal_default_instance(); 777 } 778 779 ::google::protobuf::internal::ExplicitlyConstructed<AccessDefinition> AccessDefinition_default_instance_; 780 781 AccessDefinition* AccessDefinition::New(::google::protobuf::Arena* arena) const { 782 AccessDefinition* n = new AccessDefinition; 783 if (arena != NULL) { 784 arena->Own(n); 785 } 786 return n; 787 } 788 789 void AccessDefinition::Clear() { 790 // @@protoc_insertion_point(message_clear_start:coprocess.AccessDefinition) 791 api_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 792 api_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 793 versions_.Clear(); 794 allowed_urls_.Clear(); 795 } 796 797 bool AccessDefinition::MergePartialFromCodedStream( 798 ::google::protobuf::io::CodedInputStream* input) { 799 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 800 ::google::protobuf::uint32 tag; 801 // @@protoc_insertion_point(parse_start:coprocess.AccessDefinition) 802 for (;;) { 803 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 804 tag = p.first; 805 if (!p.second) goto handle_unusual; 806 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 807 // optional string api_name = 1; 808 case 1: { 809 if (tag == 10) { 810 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 811 input, this->mutable_api_name())); 812 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 813 this->api_name().data(), this->api_name().length(), 814 ::google::protobuf::internal::WireFormatLite::PARSE, 815 "coprocess.AccessDefinition.api_name")); 816 } else { 817 goto handle_unusual; 818 } 819 if (input->ExpectTag(18)) goto parse_api_id; 820 break; 821 } 822 823 // optional string api_id = 2; 824 case 2: { 825 if (tag == 18) { 826 parse_api_id: 827 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 828 input, this->mutable_api_id())); 829 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 830 this->api_id().data(), this->api_id().length(), 831 ::google::protobuf::internal::WireFormatLite::PARSE, 832 "coprocess.AccessDefinition.api_id")); 833 } else { 834 goto handle_unusual; 835 } 836 if (input->ExpectTag(26)) goto parse_versions; 837 break; 838 } 839 840 // repeated string versions = 3; 841 case 3: { 842 if (tag == 26) { 843 parse_versions: 844 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 845 input, this->add_versions())); 846 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 847 this->versions(this->versions_size() - 1).data(), 848 this->versions(this->versions_size() - 1).length(), 849 ::google::protobuf::internal::WireFormatLite::PARSE, 850 "coprocess.AccessDefinition.versions")); 851 } else { 852 goto handle_unusual; 853 } 854 if (input->ExpectTag(26)) goto parse_versions; 855 if (input->ExpectTag(34)) goto parse_allowed_urls; 856 break; 857 } 858 859 // repeated .coprocess.AccessSpec allowed_urls = 4; 860 case 4: { 861 if (tag == 34) { 862 parse_allowed_urls: 863 DO_(input->IncrementRecursionDepth()); 864 parse_loop_allowed_urls: 865 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( 866 input, add_allowed_urls())); 867 } else { 868 goto handle_unusual; 869 } 870 if (input->ExpectTag(34)) goto parse_loop_allowed_urls; 871 input->UnsafeDecrementRecursionDepth(); 872 if (input->ExpectAtEnd()) goto success; 873 break; 874 } 875 876 default: { 877 handle_unusual: 878 if (tag == 0 || 879 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 880 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 881 goto success; 882 } 883 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 884 break; 885 } 886 } 887 } 888 success: 889 // @@protoc_insertion_point(parse_success:coprocess.AccessDefinition) 890 return true; 891 failure: 892 // @@protoc_insertion_point(parse_failure:coprocess.AccessDefinition) 893 return false; 894 #undef DO_ 895 } 896 897 void AccessDefinition::SerializeWithCachedSizes( 898 ::google::protobuf::io::CodedOutputStream* output) const { 899 // @@protoc_insertion_point(serialize_start:coprocess.AccessDefinition) 900 // optional string api_name = 1; 901 if (this->api_name().size() > 0) { 902 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 903 this->api_name().data(), this->api_name().length(), 904 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 905 "coprocess.AccessDefinition.api_name"); 906 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 907 1, this->api_name(), output); 908 } 909 910 // optional string api_id = 2; 911 if (this->api_id().size() > 0) { 912 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 913 this->api_id().data(), this->api_id().length(), 914 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 915 "coprocess.AccessDefinition.api_id"); 916 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 917 2, this->api_id(), output); 918 } 919 920 // repeated string versions = 3; 921 for (int i = 0; i < this->versions_size(); i++) { 922 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 923 this->versions(i).data(), this->versions(i).length(), 924 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 925 "coprocess.AccessDefinition.versions"); 926 ::google::protobuf::internal::WireFormatLite::WriteString( 927 3, this->versions(i), output); 928 } 929 930 // repeated .coprocess.AccessSpec allowed_urls = 4; 931 for (unsigned int i = 0, n = this->allowed_urls_size(); i < n; i++) { 932 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 933 4, this->allowed_urls(i), output); 934 } 935 936 // @@protoc_insertion_point(serialize_end:coprocess.AccessDefinition) 937 } 938 939 ::google::protobuf::uint8* AccessDefinition::InternalSerializeWithCachedSizesToArray( 940 bool deterministic, ::google::protobuf::uint8* target) const { 941 (void)deterministic; // Unused 942 // @@protoc_insertion_point(serialize_to_array_start:coprocess.AccessDefinition) 943 // optional string api_name = 1; 944 if (this->api_name().size() > 0) { 945 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 946 this->api_name().data(), this->api_name().length(), 947 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 948 "coprocess.AccessDefinition.api_name"); 949 target = 950 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 951 1, this->api_name(), target); 952 } 953 954 // optional string api_id = 2; 955 if (this->api_id().size() > 0) { 956 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 957 this->api_id().data(), this->api_id().length(), 958 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 959 "coprocess.AccessDefinition.api_id"); 960 target = 961 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 962 2, this->api_id(), target); 963 } 964 965 // repeated string versions = 3; 966 for (int i = 0; i < this->versions_size(); i++) { 967 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 968 this->versions(i).data(), this->versions(i).length(), 969 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 970 "coprocess.AccessDefinition.versions"); 971 target = ::google::protobuf::internal::WireFormatLite:: 972 WriteStringToArray(3, this->versions(i), target); 973 } 974 975 // repeated .coprocess.AccessSpec allowed_urls = 4; 976 for (unsigned int i = 0, n = this->allowed_urls_size(); i < n; i++) { 977 target = ::google::protobuf::internal::WireFormatLite:: 978 InternalWriteMessageNoVirtualToArray( 979 4, this->allowed_urls(i), false, target); 980 } 981 982 // @@protoc_insertion_point(serialize_to_array_end:coprocess.AccessDefinition) 983 return target; 984 } 985 986 size_t AccessDefinition::ByteSizeLong() const { 987 // @@protoc_insertion_point(message_byte_size_start:coprocess.AccessDefinition) 988 size_t total_size = 0; 989 990 // optional string api_name = 1; 991 if (this->api_name().size() > 0) { 992 total_size += 1 + 993 ::google::protobuf::internal::WireFormatLite::StringSize( 994 this->api_name()); 995 } 996 997 // optional string api_id = 2; 998 if (this->api_id().size() > 0) { 999 total_size += 1 + 1000 ::google::protobuf::internal::WireFormatLite::StringSize( 1001 this->api_id()); 1002 } 1003 1004 // repeated string versions = 3; 1005 total_size += 1 * 1006 ::google::protobuf::internal::FromIntSize(this->versions_size()); 1007 for (int i = 0; i < this->versions_size(); i++) { 1008 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( 1009 this->versions(i)); 1010 } 1011 1012 // repeated .coprocess.AccessSpec allowed_urls = 4; 1013 { 1014 unsigned int count = this->allowed_urls_size(); 1015 total_size += 1UL * count; 1016 for (unsigned int i = 0; i < count; i++) { 1017 total_size += 1018 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 1019 this->allowed_urls(i)); 1020 } 1021 } 1022 1023 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 1024 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1025 _cached_size_ = cached_size; 1026 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1027 return total_size; 1028 } 1029 1030 void AccessDefinition::MergeFrom(const ::google::protobuf::Message& from) { 1031 // @@protoc_insertion_point(generalized_merge_from_start:coprocess.AccessDefinition) 1032 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1033 const AccessDefinition* source = 1034 ::google::protobuf::internal::DynamicCastToGenerated<const AccessDefinition>( 1035 &from); 1036 if (source == NULL) { 1037 // @@protoc_insertion_point(generalized_merge_from_cast_fail:coprocess.AccessDefinition) 1038 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1039 } else { 1040 // @@protoc_insertion_point(generalized_merge_from_cast_success:coprocess.AccessDefinition) 1041 UnsafeMergeFrom(*source); 1042 } 1043 } 1044 1045 void AccessDefinition::MergeFrom(const AccessDefinition& from) { 1046 // @@protoc_insertion_point(class_specific_merge_from_start:coprocess.AccessDefinition) 1047 if (GOOGLE_PREDICT_TRUE(&from != this)) { 1048 UnsafeMergeFrom(from); 1049 } else { 1050 MergeFromFail(__LINE__); 1051 } 1052 } 1053 1054 void AccessDefinition::UnsafeMergeFrom(const AccessDefinition& from) { 1055 GOOGLE_DCHECK(&from != this); 1056 versions_.UnsafeMergeFrom(from.versions_); 1057 allowed_urls_.MergeFrom(from.allowed_urls_); 1058 if (from.api_name().size() > 0) { 1059 1060 api_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.api_name_); 1061 } 1062 if (from.api_id().size() > 0) { 1063 1064 api_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.api_id_); 1065 } 1066 } 1067 1068 void AccessDefinition::CopyFrom(const ::google::protobuf::Message& from) { 1069 // @@protoc_insertion_point(generalized_copy_from_start:coprocess.AccessDefinition) 1070 if (&from == this) return; 1071 Clear(); 1072 MergeFrom(from); 1073 } 1074 1075 void AccessDefinition::CopyFrom(const AccessDefinition& from) { 1076 // @@protoc_insertion_point(class_specific_copy_from_start:coprocess.AccessDefinition) 1077 if (&from == this) return; 1078 Clear(); 1079 UnsafeMergeFrom(from); 1080 } 1081 1082 bool AccessDefinition::IsInitialized() const { 1083 1084 return true; 1085 } 1086 1087 void AccessDefinition::Swap(AccessDefinition* other) { 1088 if (other == this) return; 1089 InternalSwap(other); 1090 } 1091 void AccessDefinition::InternalSwap(AccessDefinition* other) { 1092 api_name_.Swap(&other->api_name_); 1093 api_id_.Swap(&other->api_id_); 1094 versions_.UnsafeArenaSwap(&other->versions_); 1095 allowed_urls_.UnsafeArenaSwap(&other->allowed_urls_); 1096 _internal_metadata_.Swap(&other->_internal_metadata_); 1097 std::swap(_cached_size_, other->_cached_size_); 1098 } 1099 1100 ::google::protobuf::Metadata AccessDefinition::GetMetadata() const { 1101 protobuf_AssignDescriptorsOnce(); 1102 ::google::protobuf::Metadata metadata; 1103 metadata.descriptor = AccessDefinition_descriptor_; 1104 metadata.reflection = AccessDefinition_reflection_; 1105 return metadata; 1106 } 1107 1108 #if PROTOBUF_INLINE_NOT_IN_HEADERS 1109 // AccessDefinition 1110 1111 // optional string api_name = 1; 1112 void AccessDefinition::clear_api_name() { 1113 api_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1114 } 1115 const ::std::string& AccessDefinition::api_name() const { 1116 // @@protoc_insertion_point(field_get:coprocess.AccessDefinition.api_name) 1117 return api_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1118 } 1119 void AccessDefinition::set_api_name(const ::std::string& value) { 1120 1121 api_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1122 // @@protoc_insertion_point(field_set:coprocess.AccessDefinition.api_name) 1123 } 1124 void AccessDefinition::set_api_name(const char* value) { 1125 1126 api_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1127 // @@protoc_insertion_point(field_set_char:coprocess.AccessDefinition.api_name) 1128 } 1129 void AccessDefinition::set_api_name(const char* value, size_t size) { 1130 1131 api_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1132 ::std::string(reinterpret_cast<const char*>(value), size)); 1133 // @@protoc_insertion_point(field_set_pointer:coprocess.AccessDefinition.api_name) 1134 } 1135 ::std::string* AccessDefinition::mutable_api_name() { 1136 1137 // @@protoc_insertion_point(field_mutable:coprocess.AccessDefinition.api_name) 1138 return api_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1139 } 1140 ::std::string* AccessDefinition::release_api_name() { 1141 // @@protoc_insertion_point(field_release:coprocess.AccessDefinition.api_name) 1142 1143 return api_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1144 } 1145 void AccessDefinition::set_allocated_api_name(::std::string* api_name) { 1146 if (api_name != NULL) { 1147 1148 } else { 1149 1150 } 1151 api_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), api_name); 1152 // @@protoc_insertion_point(field_set_allocated:coprocess.AccessDefinition.api_name) 1153 } 1154 1155 // optional string api_id = 2; 1156 void AccessDefinition::clear_api_id() { 1157 api_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1158 } 1159 const ::std::string& AccessDefinition::api_id() const { 1160 // @@protoc_insertion_point(field_get:coprocess.AccessDefinition.api_id) 1161 return api_id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1162 } 1163 void AccessDefinition::set_api_id(const ::std::string& value) { 1164 1165 api_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1166 // @@protoc_insertion_point(field_set:coprocess.AccessDefinition.api_id) 1167 } 1168 void AccessDefinition::set_api_id(const char* value) { 1169 1170 api_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1171 // @@protoc_insertion_point(field_set_char:coprocess.AccessDefinition.api_id) 1172 } 1173 void AccessDefinition::set_api_id(const char* value, size_t size) { 1174 1175 api_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1176 ::std::string(reinterpret_cast<const char*>(value), size)); 1177 // @@protoc_insertion_point(field_set_pointer:coprocess.AccessDefinition.api_id) 1178 } 1179 ::std::string* AccessDefinition::mutable_api_id() { 1180 1181 // @@protoc_insertion_point(field_mutable:coprocess.AccessDefinition.api_id) 1182 return api_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1183 } 1184 ::std::string* AccessDefinition::release_api_id() { 1185 // @@protoc_insertion_point(field_release:coprocess.AccessDefinition.api_id) 1186 1187 return api_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1188 } 1189 void AccessDefinition::set_allocated_api_id(::std::string* api_id) { 1190 if (api_id != NULL) { 1191 1192 } else { 1193 1194 } 1195 api_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), api_id); 1196 // @@protoc_insertion_point(field_set_allocated:coprocess.AccessDefinition.api_id) 1197 } 1198 1199 // repeated string versions = 3; 1200 int AccessDefinition::versions_size() const { 1201 return versions_.size(); 1202 } 1203 void AccessDefinition::clear_versions() { 1204 versions_.Clear(); 1205 } 1206 const ::std::string& AccessDefinition::versions(int index) const { 1207 // @@protoc_insertion_point(field_get:coprocess.AccessDefinition.versions) 1208 return versions_.Get(index); 1209 } 1210 ::std::string* AccessDefinition::mutable_versions(int index) { 1211 // @@protoc_insertion_point(field_mutable:coprocess.AccessDefinition.versions) 1212 return versions_.Mutable(index); 1213 } 1214 void AccessDefinition::set_versions(int index, const ::std::string& value) { 1215 // @@protoc_insertion_point(field_set:coprocess.AccessDefinition.versions) 1216 versions_.Mutable(index)->assign(value); 1217 } 1218 void AccessDefinition::set_versions(int index, const char* value) { 1219 versions_.Mutable(index)->assign(value); 1220 // @@protoc_insertion_point(field_set_char:coprocess.AccessDefinition.versions) 1221 } 1222 void AccessDefinition::set_versions(int index, const char* value, size_t size) { 1223 versions_.Mutable(index)->assign( 1224 reinterpret_cast<const char*>(value), size); 1225 // @@protoc_insertion_point(field_set_pointer:coprocess.AccessDefinition.versions) 1226 } 1227 ::std::string* AccessDefinition::add_versions() { 1228 // @@protoc_insertion_point(field_add_mutable:coprocess.AccessDefinition.versions) 1229 return versions_.Add(); 1230 } 1231 void AccessDefinition::add_versions(const ::std::string& value) { 1232 versions_.Add()->assign(value); 1233 // @@protoc_insertion_point(field_add:coprocess.AccessDefinition.versions) 1234 } 1235 void AccessDefinition::add_versions(const char* value) { 1236 versions_.Add()->assign(value); 1237 // @@protoc_insertion_point(field_add_char:coprocess.AccessDefinition.versions) 1238 } 1239 void AccessDefinition::add_versions(const char* value, size_t size) { 1240 versions_.Add()->assign(reinterpret_cast<const char*>(value), size); 1241 // @@protoc_insertion_point(field_add_pointer:coprocess.AccessDefinition.versions) 1242 } 1243 const ::google::protobuf::RepeatedPtrField< ::std::string>& 1244 AccessDefinition::versions() const { 1245 // @@protoc_insertion_point(field_list:coprocess.AccessDefinition.versions) 1246 return versions_; 1247 } 1248 ::google::protobuf::RepeatedPtrField< ::std::string>* 1249 AccessDefinition::mutable_versions() { 1250 // @@protoc_insertion_point(field_mutable_list:coprocess.AccessDefinition.versions) 1251 return &versions_; 1252 } 1253 1254 // repeated .coprocess.AccessSpec allowed_urls = 4; 1255 int AccessDefinition::allowed_urls_size() const { 1256 return allowed_urls_.size(); 1257 } 1258 void AccessDefinition::clear_allowed_urls() { 1259 allowed_urls_.Clear(); 1260 } 1261 const ::coprocess::AccessSpec& AccessDefinition::allowed_urls(int index) const { 1262 // @@protoc_insertion_point(field_get:coprocess.AccessDefinition.allowed_urls) 1263 return allowed_urls_.Get(index); 1264 } 1265 ::coprocess::AccessSpec* AccessDefinition::mutable_allowed_urls(int index) { 1266 // @@protoc_insertion_point(field_mutable:coprocess.AccessDefinition.allowed_urls) 1267 return allowed_urls_.Mutable(index); 1268 } 1269 ::coprocess::AccessSpec* AccessDefinition::add_allowed_urls() { 1270 // @@protoc_insertion_point(field_add:coprocess.AccessDefinition.allowed_urls) 1271 return allowed_urls_.Add(); 1272 } 1273 ::google::protobuf::RepeatedPtrField< ::coprocess::AccessSpec >* 1274 AccessDefinition::mutable_allowed_urls() { 1275 // @@protoc_insertion_point(field_mutable_list:coprocess.AccessDefinition.allowed_urls) 1276 return &allowed_urls_; 1277 } 1278 const ::google::protobuf::RepeatedPtrField< ::coprocess::AccessSpec >& 1279 AccessDefinition::allowed_urls() const { 1280 // @@protoc_insertion_point(field_list:coprocess.AccessDefinition.allowed_urls) 1281 return allowed_urls_; 1282 } 1283 1284 inline const AccessDefinition* AccessDefinition::internal_default_instance() { 1285 return &AccessDefinition_default_instance_.get(); 1286 } 1287 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 1288 1289 // =================================================================== 1290 1291 #if !defined(_MSC_VER) || _MSC_VER >= 1900 1292 const int BasicAuthData::kPasswordFieldNumber; 1293 const int BasicAuthData::kHashFieldNumber; 1294 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 1295 1296 BasicAuthData::BasicAuthData() 1297 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 1298 if (this != internal_default_instance()) protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto(); 1299 SharedCtor(); 1300 // @@protoc_insertion_point(constructor:coprocess.BasicAuthData) 1301 } 1302 1303 void BasicAuthData::InitAsDefaultInstance() { 1304 } 1305 1306 BasicAuthData::BasicAuthData(const BasicAuthData& from) 1307 : ::google::protobuf::Message(), 1308 _internal_metadata_(NULL) { 1309 SharedCtor(); 1310 UnsafeMergeFrom(from); 1311 // @@protoc_insertion_point(copy_constructor:coprocess.BasicAuthData) 1312 } 1313 1314 void BasicAuthData::SharedCtor() { 1315 password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1316 hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1317 _cached_size_ = 0; 1318 } 1319 1320 BasicAuthData::~BasicAuthData() { 1321 // @@protoc_insertion_point(destructor:coprocess.BasicAuthData) 1322 SharedDtor(); 1323 } 1324 1325 void BasicAuthData::SharedDtor() { 1326 password_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1327 hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1328 } 1329 1330 void BasicAuthData::SetCachedSize(int size) const { 1331 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1332 _cached_size_ = size; 1333 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1334 } 1335 const ::google::protobuf::Descriptor* BasicAuthData::descriptor() { 1336 protobuf_AssignDescriptorsOnce(); 1337 return BasicAuthData_descriptor_; 1338 } 1339 1340 const BasicAuthData& BasicAuthData::default_instance() { 1341 protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto(); 1342 return *internal_default_instance(); 1343 } 1344 1345 ::google::protobuf::internal::ExplicitlyConstructed<BasicAuthData> BasicAuthData_default_instance_; 1346 1347 BasicAuthData* BasicAuthData::New(::google::protobuf::Arena* arena) const { 1348 BasicAuthData* n = new BasicAuthData; 1349 if (arena != NULL) { 1350 arena->Own(n); 1351 } 1352 return n; 1353 } 1354 1355 void BasicAuthData::Clear() { 1356 // @@protoc_insertion_point(message_clear_start:coprocess.BasicAuthData) 1357 password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1358 hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1359 } 1360 1361 bool BasicAuthData::MergePartialFromCodedStream( 1362 ::google::protobuf::io::CodedInputStream* input) { 1363 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 1364 ::google::protobuf::uint32 tag; 1365 // @@protoc_insertion_point(parse_start:coprocess.BasicAuthData) 1366 for (;;) { 1367 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 1368 tag = p.first; 1369 if (!p.second) goto handle_unusual; 1370 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 1371 // optional string password = 1; 1372 case 1: { 1373 if (tag == 10) { 1374 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1375 input, this->mutable_password())); 1376 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1377 this->password().data(), this->password().length(), 1378 ::google::protobuf::internal::WireFormatLite::PARSE, 1379 "coprocess.BasicAuthData.password")); 1380 } else { 1381 goto handle_unusual; 1382 } 1383 if (input->ExpectTag(18)) goto parse_hash; 1384 break; 1385 } 1386 1387 // optional string hash = 2; 1388 case 2: { 1389 if (tag == 18) { 1390 parse_hash: 1391 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1392 input, this->mutable_hash())); 1393 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1394 this->hash().data(), this->hash().length(), 1395 ::google::protobuf::internal::WireFormatLite::PARSE, 1396 "coprocess.BasicAuthData.hash")); 1397 } else { 1398 goto handle_unusual; 1399 } 1400 if (input->ExpectAtEnd()) goto success; 1401 break; 1402 } 1403 1404 default: { 1405 handle_unusual: 1406 if (tag == 0 || 1407 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1408 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 1409 goto success; 1410 } 1411 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 1412 break; 1413 } 1414 } 1415 } 1416 success: 1417 // @@protoc_insertion_point(parse_success:coprocess.BasicAuthData) 1418 return true; 1419 failure: 1420 // @@protoc_insertion_point(parse_failure:coprocess.BasicAuthData) 1421 return false; 1422 #undef DO_ 1423 } 1424 1425 void BasicAuthData::SerializeWithCachedSizes( 1426 ::google::protobuf::io::CodedOutputStream* output) const { 1427 // @@protoc_insertion_point(serialize_start:coprocess.BasicAuthData) 1428 // optional string password = 1; 1429 if (this->password().size() > 0) { 1430 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1431 this->password().data(), this->password().length(), 1432 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1433 "coprocess.BasicAuthData.password"); 1434 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1435 1, this->password(), output); 1436 } 1437 1438 // optional string hash = 2; 1439 if (this->hash().size() > 0) { 1440 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1441 this->hash().data(), this->hash().length(), 1442 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1443 "coprocess.BasicAuthData.hash"); 1444 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1445 2, this->hash(), output); 1446 } 1447 1448 // @@protoc_insertion_point(serialize_end:coprocess.BasicAuthData) 1449 } 1450 1451 ::google::protobuf::uint8* BasicAuthData::InternalSerializeWithCachedSizesToArray( 1452 bool deterministic, ::google::protobuf::uint8* target) const { 1453 (void)deterministic; // Unused 1454 // @@protoc_insertion_point(serialize_to_array_start:coprocess.BasicAuthData) 1455 // optional string password = 1; 1456 if (this->password().size() > 0) { 1457 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1458 this->password().data(), this->password().length(), 1459 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1460 "coprocess.BasicAuthData.password"); 1461 target = 1462 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1463 1, this->password(), target); 1464 } 1465 1466 // optional string hash = 2; 1467 if (this->hash().size() > 0) { 1468 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1469 this->hash().data(), this->hash().length(), 1470 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1471 "coprocess.BasicAuthData.hash"); 1472 target = 1473 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1474 2, this->hash(), target); 1475 } 1476 1477 // @@protoc_insertion_point(serialize_to_array_end:coprocess.BasicAuthData) 1478 return target; 1479 } 1480 1481 size_t BasicAuthData::ByteSizeLong() const { 1482 // @@protoc_insertion_point(message_byte_size_start:coprocess.BasicAuthData) 1483 size_t total_size = 0; 1484 1485 // optional string password = 1; 1486 if (this->password().size() > 0) { 1487 total_size += 1 + 1488 ::google::protobuf::internal::WireFormatLite::StringSize( 1489 this->password()); 1490 } 1491 1492 // optional string hash = 2; 1493 if (this->hash().size() > 0) { 1494 total_size += 1 + 1495 ::google::protobuf::internal::WireFormatLite::StringSize( 1496 this->hash()); 1497 } 1498 1499 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 1500 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1501 _cached_size_ = cached_size; 1502 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1503 return total_size; 1504 } 1505 1506 void BasicAuthData::MergeFrom(const ::google::protobuf::Message& from) { 1507 // @@protoc_insertion_point(generalized_merge_from_start:coprocess.BasicAuthData) 1508 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1509 const BasicAuthData* source = 1510 ::google::protobuf::internal::DynamicCastToGenerated<const BasicAuthData>( 1511 &from); 1512 if (source == NULL) { 1513 // @@protoc_insertion_point(generalized_merge_from_cast_fail:coprocess.BasicAuthData) 1514 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1515 } else { 1516 // @@protoc_insertion_point(generalized_merge_from_cast_success:coprocess.BasicAuthData) 1517 UnsafeMergeFrom(*source); 1518 } 1519 } 1520 1521 void BasicAuthData::MergeFrom(const BasicAuthData& from) { 1522 // @@protoc_insertion_point(class_specific_merge_from_start:coprocess.BasicAuthData) 1523 if (GOOGLE_PREDICT_TRUE(&from != this)) { 1524 UnsafeMergeFrom(from); 1525 } else { 1526 MergeFromFail(__LINE__); 1527 } 1528 } 1529 1530 void BasicAuthData::UnsafeMergeFrom(const BasicAuthData& from) { 1531 GOOGLE_DCHECK(&from != this); 1532 if (from.password().size() > 0) { 1533 1534 password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_); 1535 } 1536 if (from.hash().size() > 0) { 1537 1538 hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_); 1539 } 1540 } 1541 1542 void BasicAuthData::CopyFrom(const ::google::protobuf::Message& from) { 1543 // @@protoc_insertion_point(generalized_copy_from_start:coprocess.BasicAuthData) 1544 if (&from == this) return; 1545 Clear(); 1546 MergeFrom(from); 1547 } 1548 1549 void BasicAuthData::CopyFrom(const BasicAuthData& from) { 1550 // @@protoc_insertion_point(class_specific_copy_from_start:coprocess.BasicAuthData) 1551 if (&from == this) return; 1552 Clear(); 1553 UnsafeMergeFrom(from); 1554 } 1555 1556 bool BasicAuthData::IsInitialized() const { 1557 1558 return true; 1559 } 1560 1561 void BasicAuthData::Swap(BasicAuthData* other) { 1562 if (other == this) return; 1563 InternalSwap(other); 1564 } 1565 void BasicAuthData::InternalSwap(BasicAuthData* other) { 1566 password_.Swap(&other->password_); 1567 hash_.Swap(&other->hash_); 1568 _internal_metadata_.Swap(&other->_internal_metadata_); 1569 std::swap(_cached_size_, other->_cached_size_); 1570 } 1571 1572 ::google::protobuf::Metadata BasicAuthData::GetMetadata() const { 1573 protobuf_AssignDescriptorsOnce(); 1574 ::google::protobuf::Metadata metadata; 1575 metadata.descriptor = BasicAuthData_descriptor_; 1576 metadata.reflection = BasicAuthData_reflection_; 1577 return metadata; 1578 } 1579 1580 #if PROTOBUF_INLINE_NOT_IN_HEADERS 1581 // BasicAuthData 1582 1583 // optional string password = 1; 1584 void BasicAuthData::clear_password() { 1585 password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1586 } 1587 const ::std::string& BasicAuthData::password() const { 1588 // @@protoc_insertion_point(field_get:coprocess.BasicAuthData.password) 1589 return password_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1590 } 1591 void BasicAuthData::set_password(const ::std::string& value) { 1592 1593 password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1594 // @@protoc_insertion_point(field_set:coprocess.BasicAuthData.password) 1595 } 1596 void BasicAuthData::set_password(const char* value) { 1597 1598 password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1599 // @@protoc_insertion_point(field_set_char:coprocess.BasicAuthData.password) 1600 } 1601 void BasicAuthData::set_password(const char* value, size_t size) { 1602 1603 password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1604 ::std::string(reinterpret_cast<const char*>(value), size)); 1605 // @@protoc_insertion_point(field_set_pointer:coprocess.BasicAuthData.password) 1606 } 1607 ::std::string* BasicAuthData::mutable_password() { 1608 1609 // @@protoc_insertion_point(field_mutable:coprocess.BasicAuthData.password) 1610 return password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1611 } 1612 ::std::string* BasicAuthData::release_password() { 1613 // @@protoc_insertion_point(field_release:coprocess.BasicAuthData.password) 1614 1615 return password_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1616 } 1617 void BasicAuthData::set_allocated_password(::std::string* password) { 1618 if (password != NULL) { 1619 1620 } else { 1621 1622 } 1623 password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), password); 1624 // @@protoc_insertion_point(field_set_allocated:coprocess.BasicAuthData.password) 1625 } 1626 1627 // optional string hash = 2; 1628 void BasicAuthData::clear_hash() { 1629 hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1630 } 1631 const ::std::string& BasicAuthData::hash() const { 1632 // @@protoc_insertion_point(field_get:coprocess.BasicAuthData.hash) 1633 return hash_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1634 } 1635 void BasicAuthData::set_hash(const ::std::string& value) { 1636 1637 hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1638 // @@protoc_insertion_point(field_set:coprocess.BasicAuthData.hash) 1639 } 1640 void BasicAuthData::set_hash(const char* value) { 1641 1642 hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1643 // @@protoc_insertion_point(field_set_char:coprocess.BasicAuthData.hash) 1644 } 1645 void BasicAuthData::set_hash(const char* value, size_t size) { 1646 1647 hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1648 ::std::string(reinterpret_cast<const char*>(value), size)); 1649 // @@protoc_insertion_point(field_set_pointer:coprocess.BasicAuthData.hash) 1650 } 1651 ::std::string* BasicAuthData::mutable_hash() { 1652 1653 // @@protoc_insertion_point(field_mutable:coprocess.BasicAuthData.hash) 1654 return hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1655 } 1656 ::std::string* BasicAuthData::release_hash() { 1657 // @@protoc_insertion_point(field_release:coprocess.BasicAuthData.hash) 1658 1659 return hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1660 } 1661 void BasicAuthData::set_allocated_hash(::std::string* hash) { 1662 if (hash != NULL) { 1663 1664 } else { 1665 1666 } 1667 hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hash); 1668 // @@protoc_insertion_point(field_set_allocated:coprocess.BasicAuthData.hash) 1669 } 1670 1671 inline const BasicAuthData* BasicAuthData::internal_default_instance() { 1672 return &BasicAuthData_default_instance_.get(); 1673 } 1674 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 1675 1676 // =================================================================== 1677 1678 #if !defined(_MSC_VER) || _MSC_VER >= 1900 1679 const int JWTData::kSecretFieldNumber; 1680 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 1681 1682 JWTData::JWTData() 1683 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 1684 if (this != internal_default_instance()) protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto(); 1685 SharedCtor(); 1686 // @@protoc_insertion_point(constructor:coprocess.JWTData) 1687 } 1688 1689 void JWTData::InitAsDefaultInstance() { 1690 } 1691 1692 JWTData::JWTData(const JWTData& from) 1693 : ::google::protobuf::Message(), 1694 _internal_metadata_(NULL) { 1695 SharedCtor(); 1696 UnsafeMergeFrom(from); 1697 // @@protoc_insertion_point(copy_constructor:coprocess.JWTData) 1698 } 1699 1700 void JWTData::SharedCtor() { 1701 secret_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1702 _cached_size_ = 0; 1703 } 1704 1705 JWTData::~JWTData() { 1706 // @@protoc_insertion_point(destructor:coprocess.JWTData) 1707 SharedDtor(); 1708 } 1709 1710 void JWTData::SharedDtor() { 1711 secret_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1712 } 1713 1714 void JWTData::SetCachedSize(int size) const { 1715 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1716 _cached_size_ = size; 1717 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1718 } 1719 const ::google::protobuf::Descriptor* JWTData::descriptor() { 1720 protobuf_AssignDescriptorsOnce(); 1721 return JWTData_descriptor_; 1722 } 1723 1724 const JWTData& JWTData::default_instance() { 1725 protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto(); 1726 return *internal_default_instance(); 1727 } 1728 1729 ::google::protobuf::internal::ExplicitlyConstructed<JWTData> JWTData_default_instance_; 1730 1731 JWTData* JWTData::New(::google::protobuf::Arena* arena) const { 1732 JWTData* n = new JWTData; 1733 if (arena != NULL) { 1734 arena->Own(n); 1735 } 1736 return n; 1737 } 1738 1739 void JWTData::Clear() { 1740 // @@protoc_insertion_point(message_clear_start:coprocess.JWTData) 1741 secret_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1742 } 1743 1744 bool JWTData::MergePartialFromCodedStream( 1745 ::google::protobuf::io::CodedInputStream* input) { 1746 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 1747 ::google::protobuf::uint32 tag; 1748 // @@protoc_insertion_point(parse_start:coprocess.JWTData) 1749 for (;;) { 1750 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 1751 tag = p.first; 1752 if (!p.second) goto handle_unusual; 1753 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 1754 // optional string secret = 1; 1755 case 1: { 1756 if (tag == 10) { 1757 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 1758 input, this->mutable_secret())); 1759 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1760 this->secret().data(), this->secret().length(), 1761 ::google::protobuf::internal::WireFormatLite::PARSE, 1762 "coprocess.JWTData.secret")); 1763 } else { 1764 goto handle_unusual; 1765 } 1766 if (input->ExpectAtEnd()) goto success; 1767 break; 1768 } 1769 1770 default: { 1771 handle_unusual: 1772 if (tag == 0 || 1773 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1774 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 1775 goto success; 1776 } 1777 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 1778 break; 1779 } 1780 } 1781 } 1782 success: 1783 // @@protoc_insertion_point(parse_success:coprocess.JWTData) 1784 return true; 1785 failure: 1786 // @@protoc_insertion_point(parse_failure:coprocess.JWTData) 1787 return false; 1788 #undef DO_ 1789 } 1790 1791 void JWTData::SerializeWithCachedSizes( 1792 ::google::protobuf::io::CodedOutputStream* output) const { 1793 // @@protoc_insertion_point(serialize_start:coprocess.JWTData) 1794 // optional string secret = 1; 1795 if (this->secret().size() > 0) { 1796 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1797 this->secret().data(), this->secret().length(), 1798 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1799 "coprocess.JWTData.secret"); 1800 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1801 1, this->secret(), output); 1802 } 1803 1804 // @@protoc_insertion_point(serialize_end:coprocess.JWTData) 1805 } 1806 1807 ::google::protobuf::uint8* JWTData::InternalSerializeWithCachedSizesToArray( 1808 bool deterministic, ::google::protobuf::uint8* target) const { 1809 (void)deterministic; // Unused 1810 // @@protoc_insertion_point(serialize_to_array_start:coprocess.JWTData) 1811 // optional string secret = 1; 1812 if (this->secret().size() > 0) { 1813 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1814 this->secret().data(), this->secret().length(), 1815 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 1816 "coprocess.JWTData.secret"); 1817 target = 1818 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1819 1, this->secret(), target); 1820 } 1821 1822 // @@protoc_insertion_point(serialize_to_array_end:coprocess.JWTData) 1823 return target; 1824 } 1825 1826 size_t JWTData::ByteSizeLong() const { 1827 // @@protoc_insertion_point(message_byte_size_start:coprocess.JWTData) 1828 size_t total_size = 0; 1829 1830 // optional string secret = 1; 1831 if (this->secret().size() > 0) { 1832 total_size += 1 + 1833 ::google::protobuf::internal::WireFormatLite::StringSize( 1834 this->secret()); 1835 } 1836 1837 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 1838 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1839 _cached_size_ = cached_size; 1840 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1841 return total_size; 1842 } 1843 1844 void JWTData::MergeFrom(const ::google::protobuf::Message& from) { 1845 // @@protoc_insertion_point(generalized_merge_from_start:coprocess.JWTData) 1846 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1847 const JWTData* source = 1848 ::google::protobuf::internal::DynamicCastToGenerated<const JWTData>( 1849 &from); 1850 if (source == NULL) { 1851 // @@protoc_insertion_point(generalized_merge_from_cast_fail:coprocess.JWTData) 1852 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1853 } else { 1854 // @@protoc_insertion_point(generalized_merge_from_cast_success:coprocess.JWTData) 1855 UnsafeMergeFrom(*source); 1856 } 1857 } 1858 1859 void JWTData::MergeFrom(const JWTData& from) { 1860 // @@protoc_insertion_point(class_specific_merge_from_start:coprocess.JWTData) 1861 if (GOOGLE_PREDICT_TRUE(&from != this)) { 1862 UnsafeMergeFrom(from); 1863 } else { 1864 MergeFromFail(__LINE__); 1865 } 1866 } 1867 1868 void JWTData::UnsafeMergeFrom(const JWTData& from) { 1869 GOOGLE_DCHECK(&from != this); 1870 if (from.secret().size() > 0) { 1871 1872 secret_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.secret_); 1873 } 1874 } 1875 1876 void JWTData::CopyFrom(const ::google::protobuf::Message& from) { 1877 // @@protoc_insertion_point(generalized_copy_from_start:coprocess.JWTData) 1878 if (&from == this) return; 1879 Clear(); 1880 MergeFrom(from); 1881 } 1882 1883 void JWTData::CopyFrom(const JWTData& from) { 1884 // @@protoc_insertion_point(class_specific_copy_from_start:coprocess.JWTData) 1885 if (&from == this) return; 1886 Clear(); 1887 UnsafeMergeFrom(from); 1888 } 1889 1890 bool JWTData::IsInitialized() const { 1891 1892 return true; 1893 } 1894 1895 void JWTData::Swap(JWTData* other) { 1896 if (other == this) return; 1897 InternalSwap(other); 1898 } 1899 void JWTData::InternalSwap(JWTData* other) { 1900 secret_.Swap(&other->secret_); 1901 _internal_metadata_.Swap(&other->_internal_metadata_); 1902 std::swap(_cached_size_, other->_cached_size_); 1903 } 1904 1905 ::google::protobuf::Metadata JWTData::GetMetadata() const { 1906 protobuf_AssignDescriptorsOnce(); 1907 ::google::protobuf::Metadata metadata; 1908 metadata.descriptor = JWTData_descriptor_; 1909 metadata.reflection = JWTData_reflection_; 1910 return metadata; 1911 } 1912 1913 #if PROTOBUF_INLINE_NOT_IN_HEADERS 1914 // JWTData 1915 1916 // optional string secret = 1; 1917 void JWTData::clear_secret() { 1918 secret_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1919 } 1920 const ::std::string& JWTData::secret() const { 1921 // @@protoc_insertion_point(field_get:coprocess.JWTData.secret) 1922 return secret_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1923 } 1924 void JWTData::set_secret(const ::std::string& value) { 1925 1926 secret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1927 // @@protoc_insertion_point(field_set:coprocess.JWTData.secret) 1928 } 1929 void JWTData::set_secret(const char* value) { 1930 1931 secret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1932 // @@protoc_insertion_point(field_set_char:coprocess.JWTData.secret) 1933 } 1934 void JWTData::set_secret(const char* value, size_t size) { 1935 1936 secret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1937 ::std::string(reinterpret_cast<const char*>(value), size)); 1938 // @@protoc_insertion_point(field_set_pointer:coprocess.JWTData.secret) 1939 } 1940 ::std::string* JWTData::mutable_secret() { 1941 1942 // @@protoc_insertion_point(field_mutable:coprocess.JWTData.secret) 1943 return secret_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1944 } 1945 ::std::string* JWTData::release_secret() { 1946 // @@protoc_insertion_point(field_release:coprocess.JWTData.secret) 1947 1948 return secret_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1949 } 1950 void JWTData::set_allocated_secret(::std::string* secret) { 1951 if (secret != NULL) { 1952 1953 } else { 1954 1955 } 1956 secret_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), secret); 1957 // @@protoc_insertion_point(field_set_allocated:coprocess.JWTData.secret) 1958 } 1959 1960 inline const JWTData* JWTData::internal_default_instance() { 1961 return &JWTData_default_instance_.get(); 1962 } 1963 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 1964 1965 // =================================================================== 1966 1967 #if !defined(_MSC_VER) || _MSC_VER >= 1900 1968 const int Monitor::kTriggerLimitsFieldNumber; 1969 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 1970 1971 Monitor::Monitor() 1972 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 1973 if (this != internal_default_instance()) protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto(); 1974 SharedCtor(); 1975 // @@protoc_insertion_point(constructor:coprocess.Monitor) 1976 } 1977 1978 void Monitor::InitAsDefaultInstance() { 1979 } 1980 1981 Monitor::Monitor(const Monitor& from) 1982 : ::google::protobuf::Message(), 1983 _internal_metadata_(NULL) { 1984 SharedCtor(); 1985 UnsafeMergeFrom(from); 1986 // @@protoc_insertion_point(copy_constructor:coprocess.Monitor) 1987 } 1988 1989 void Monitor::SharedCtor() { 1990 _cached_size_ = 0; 1991 } 1992 1993 Monitor::~Monitor() { 1994 // @@protoc_insertion_point(destructor:coprocess.Monitor) 1995 SharedDtor(); 1996 } 1997 1998 void Monitor::SharedDtor() { 1999 } 2000 2001 void Monitor::SetCachedSize(int size) const { 2002 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2003 _cached_size_ = size; 2004 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2005 } 2006 const ::google::protobuf::Descriptor* Monitor::descriptor() { 2007 protobuf_AssignDescriptorsOnce(); 2008 return Monitor_descriptor_; 2009 } 2010 2011 const Monitor& Monitor::default_instance() { 2012 protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto(); 2013 return *internal_default_instance(); 2014 } 2015 2016 ::google::protobuf::internal::ExplicitlyConstructed<Monitor> Monitor_default_instance_; 2017 2018 Monitor* Monitor::New(::google::protobuf::Arena* arena) const { 2019 Monitor* n = new Monitor; 2020 if (arena != NULL) { 2021 arena->Own(n); 2022 } 2023 return n; 2024 } 2025 2026 void Monitor::Clear() { 2027 // @@protoc_insertion_point(message_clear_start:coprocess.Monitor) 2028 trigger_limits_.Clear(); 2029 } 2030 2031 bool Monitor::MergePartialFromCodedStream( 2032 ::google::protobuf::io::CodedInputStream* input) { 2033 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 2034 ::google::protobuf::uint32 tag; 2035 // @@protoc_insertion_point(parse_start:coprocess.Monitor) 2036 for (;;) { 2037 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 2038 tag = p.first; 2039 if (!p.second) goto handle_unusual; 2040 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 2041 // repeated double trigger_limits = 1; 2042 case 1: { 2043 if (tag == 10) { 2044 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< 2045 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 2046 input, this->mutable_trigger_limits()))); 2047 } else if (tag == 9) { 2048 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< 2049 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 2050 1, 10, input, this->mutable_trigger_limits()))); 2051 } else { 2052 goto handle_unusual; 2053 } 2054 if (input->ExpectAtEnd()) goto success; 2055 break; 2056 } 2057 2058 default: { 2059 handle_unusual: 2060 if (tag == 0 || 2061 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 2062 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 2063 goto success; 2064 } 2065 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 2066 break; 2067 } 2068 } 2069 } 2070 success: 2071 // @@protoc_insertion_point(parse_success:coprocess.Monitor) 2072 return true; 2073 failure: 2074 // @@protoc_insertion_point(parse_failure:coprocess.Monitor) 2075 return false; 2076 #undef DO_ 2077 } 2078 2079 void Monitor::SerializeWithCachedSizes( 2080 ::google::protobuf::io::CodedOutputStream* output) const { 2081 // @@protoc_insertion_point(serialize_start:coprocess.Monitor) 2082 // repeated double trigger_limits = 1; 2083 if (this->trigger_limits_size() > 0) { 2084 ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); 2085 output->WriteVarint32(_trigger_limits_cached_byte_size_); 2086 } 2087 for (int i = 0; i < this->trigger_limits_size(); i++) { 2088 ::google::protobuf::internal::WireFormatLite::WriteDoubleNoTag( 2089 this->trigger_limits(i), output); 2090 } 2091 2092 // @@protoc_insertion_point(serialize_end:coprocess.Monitor) 2093 } 2094 2095 ::google::protobuf::uint8* Monitor::InternalSerializeWithCachedSizesToArray( 2096 bool deterministic, ::google::protobuf::uint8* target) const { 2097 (void)deterministic; // Unused 2098 // @@protoc_insertion_point(serialize_to_array_start:coprocess.Monitor) 2099 // repeated double trigger_limits = 1; 2100 if (this->trigger_limits_size() > 0) { 2101 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 2102 1, 2103 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, 2104 target); 2105 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( 2106 _trigger_limits_cached_byte_size_, target); 2107 } 2108 for (int i = 0; i < this->trigger_limits_size(); i++) { 2109 target = ::google::protobuf::internal::WireFormatLite:: 2110 WriteDoubleNoTagToArray(this->trigger_limits(i), target); 2111 } 2112 2113 // @@protoc_insertion_point(serialize_to_array_end:coprocess.Monitor) 2114 return target; 2115 } 2116 2117 size_t Monitor::ByteSizeLong() const { 2118 // @@protoc_insertion_point(message_byte_size_start:coprocess.Monitor) 2119 size_t total_size = 0; 2120 2121 // repeated double trigger_limits = 1; 2122 { 2123 size_t data_size = 0; 2124 unsigned int count = this->trigger_limits_size(); 2125 data_size = 8UL * count; 2126 if (data_size > 0) { 2127 total_size += 1 + 2128 ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); 2129 } 2130 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); 2131 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2132 _trigger_limits_cached_byte_size_ = cached_size; 2133 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2134 total_size += data_size; 2135 } 2136 2137 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 2138 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2139 _cached_size_ = cached_size; 2140 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2141 return total_size; 2142 } 2143 2144 void Monitor::MergeFrom(const ::google::protobuf::Message& from) { 2145 // @@protoc_insertion_point(generalized_merge_from_start:coprocess.Monitor) 2146 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 2147 const Monitor* source = 2148 ::google::protobuf::internal::DynamicCastToGenerated<const Monitor>( 2149 &from); 2150 if (source == NULL) { 2151 // @@protoc_insertion_point(generalized_merge_from_cast_fail:coprocess.Monitor) 2152 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 2153 } else { 2154 // @@protoc_insertion_point(generalized_merge_from_cast_success:coprocess.Monitor) 2155 UnsafeMergeFrom(*source); 2156 } 2157 } 2158 2159 void Monitor::MergeFrom(const Monitor& from) { 2160 // @@protoc_insertion_point(class_specific_merge_from_start:coprocess.Monitor) 2161 if (GOOGLE_PREDICT_TRUE(&from != this)) { 2162 UnsafeMergeFrom(from); 2163 } else { 2164 MergeFromFail(__LINE__); 2165 } 2166 } 2167 2168 void Monitor::UnsafeMergeFrom(const Monitor& from) { 2169 GOOGLE_DCHECK(&from != this); 2170 trigger_limits_.UnsafeMergeFrom(from.trigger_limits_); 2171 } 2172 2173 void Monitor::CopyFrom(const ::google::protobuf::Message& from) { 2174 // @@protoc_insertion_point(generalized_copy_from_start:coprocess.Monitor) 2175 if (&from == this) return; 2176 Clear(); 2177 MergeFrom(from); 2178 } 2179 2180 void Monitor::CopyFrom(const Monitor& from) { 2181 // @@protoc_insertion_point(class_specific_copy_from_start:coprocess.Monitor) 2182 if (&from == this) return; 2183 Clear(); 2184 UnsafeMergeFrom(from); 2185 } 2186 2187 bool Monitor::IsInitialized() const { 2188 2189 return true; 2190 } 2191 2192 void Monitor::Swap(Monitor* other) { 2193 if (other == this) return; 2194 InternalSwap(other); 2195 } 2196 void Monitor::InternalSwap(Monitor* other) { 2197 trigger_limits_.UnsafeArenaSwap(&other->trigger_limits_); 2198 _internal_metadata_.Swap(&other->_internal_metadata_); 2199 std::swap(_cached_size_, other->_cached_size_); 2200 } 2201 2202 ::google::protobuf::Metadata Monitor::GetMetadata() const { 2203 protobuf_AssignDescriptorsOnce(); 2204 ::google::protobuf::Metadata metadata; 2205 metadata.descriptor = Monitor_descriptor_; 2206 metadata.reflection = Monitor_reflection_; 2207 return metadata; 2208 } 2209 2210 #if PROTOBUF_INLINE_NOT_IN_HEADERS 2211 // Monitor 2212 2213 // repeated double trigger_limits = 1; 2214 int Monitor::trigger_limits_size() const { 2215 return trigger_limits_.size(); 2216 } 2217 void Monitor::clear_trigger_limits() { 2218 trigger_limits_.Clear(); 2219 } 2220 double Monitor::trigger_limits(int index) const { 2221 // @@protoc_insertion_point(field_get:coprocess.Monitor.trigger_limits) 2222 return trigger_limits_.Get(index); 2223 } 2224 void Monitor::set_trigger_limits(int index, double value) { 2225 trigger_limits_.Set(index, value); 2226 // @@protoc_insertion_point(field_set:coprocess.Monitor.trigger_limits) 2227 } 2228 void Monitor::add_trigger_limits(double value) { 2229 trigger_limits_.Add(value); 2230 // @@protoc_insertion_point(field_add:coprocess.Monitor.trigger_limits) 2231 } 2232 const ::google::protobuf::RepeatedField< double >& 2233 Monitor::trigger_limits() const { 2234 // @@protoc_insertion_point(field_list:coprocess.Monitor.trigger_limits) 2235 return trigger_limits_; 2236 } 2237 ::google::protobuf::RepeatedField< double >* 2238 Monitor::mutable_trigger_limits() { 2239 // @@protoc_insertion_point(field_mutable_list:coprocess.Monitor.trigger_limits) 2240 return &trigger_limits_; 2241 } 2242 2243 inline const Monitor* Monitor::internal_default_instance() { 2244 return &Monitor_default_instance_.get(); 2245 } 2246 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 2247 2248 // =================================================================== 2249 2250 #if !defined(_MSC_VER) || _MSC_VER >= 1900 2251 const int SessionState::kLastCheckFieldNumber; 2252 const int SessionState::kAllowanceFieldNumber; 2253 const int SessionState::kRateFieldNumber; 2254 const int SessionState::kPerFieldNumber; 2255 const int SessionState::kExpiresFieldNumber; 2256 const int SessionState::kQuotaMaxFieldNumber; 2257 const int SessionState::kQuotaRenewsFieldNumber; 2258 const int SessionState::kQuotaRemainingFieldNumber; 2259 const int SessionState::kQuotaRenewalRateFieldNumber; 2260 const int SessionState::kAccessRightsFieldNumber; 2261 const int SessionState::kOrgIdFieldNumber; 2262 const int SessionState::kOauthClientIdFieldNumber; 2263 const int SessionState::kOauthKeysFieldNumber; 2264 const int SessionState::kBasicAuthDataFieldNumber; 2265 const int SessionState::kJwtDataFieldNumber; 2266 const int SessionState::kHmacEnabledFieldNumber; 2267 const int SessionState::kHmacSecretFieldNumber; 2268 const int SessionState::kIsInactiveFieldNumber; 2269 const int SessionState::kApplyPolicyIdFieldNumber; 2270 const int SessionState::kDataExpiresFieldNumber; 2271 const int SessionState::kMonitorFieldNumber; 2272 const int SessionState::kEnableDetailedRecordingFieldNumber; 2273 const int SessionState::kMetadataFieldNumber; 2274 const int SessionState::kTagsFieldNumber; 2275 const int SessionState::kAliasFieldNumber; 2276 const int SessionState::kLastUpdatedFieldNumber; 2277 const int SessionState::kIdExtractorDeadlineFieldNumber; 2278 const int SessionState::kSessionLifetimeFieldNumber; 2279 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 2280 2281 SessionState::SessionState() 2282 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 2283 if (this != internal_default_instance()) protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto(); 2284 SharedCtor(); 2285 // @@protoc_insertion_point(constructor:coprocess.SessionState) 2286 } 2287 2288 void SessionState::InitAsDefaultInstance() { 2289 basic_auth_data_ = const_cast< ::coprocess::BasicAuthData*>( 2290 ::coprocess::BasicAuthData::internal_default_instance()); 2291 jwt_data_ = const_cast< ::coprocess::JWTData*>( 2292 ::coprocess::JWTData::internal_default_instance()); 2293 monitor_ = const_cast< ::coprocess::Monitor*>( 2294 ::coprocess::Monitor::internal_default_instance()); 2295 } 2296 2297 SessionState::SessionState(const SessionState& from) 2298 : ::google::protobuf::Message(), 2299 _internal_metadata_(NULL) { 2300 SharedCtor(); 2301 UnsafeMergeFrom(from); 2302 // @@protoc_insertion_point(copy_constructor:coprocess.SessionState) 2303 } 2304 2305 void SessionState::SharedCtor() { 2306 access_rights_.SetAssignDescriptorCallback( 2307 protobuf_AssignDescriptorsOnce); 2308 access_rights_.SetEntryDescriptor( 2309 &::coprocess::SessionState_AccessRightsEntry_descriptor_); 2310 oauth_keys_.SetAssignDescriptorCallback( 2311 protobuf_AssignDescriptorsOnce); 2312 oauth_keys_.SetEntryDescriptor( 2313 &::coprocess::SessionState_OauthKeysEntry_descriptor_); 2314 org_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2315 oauth_client_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2316 hmac_secret_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2317 apply_policy_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2318 metadata_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2319 alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2320 last_updated_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2321 basic_auth_data_ = NULL; 2322 jwt_data_ = NULL; 2323 monitor_ = NULL; 2324 ::memset(&last_check_, 0, reinterpret_cast<char*>(&enable_detailed_recording_) - 2325 reinterpret_cast<char*>(&last_check_) + sizeof(enable_detailed_recording_)); 2326 _cached_size_ = 0; 2327 } 2328 2329 SessionState::~SessionState() { 2330 // @@protoc_insertion_point(destructor:coprocess.SessionState) 2331 SharedDtor(); 2332 } 2333 2334 void SessionState::SharedDtor() { 2335 org_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2336 oauth_client_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2337 hmac_secret_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2338 apply_policy_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2339 metadata_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2340 alias_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2341 last_updated_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2342 if (this != &SessionState_default_instance_.get()) { 2343 delete basic_auth_data_; 2344 delete jwt_data_; 2345 delete monitor_; 2346 } 2347 } 2348 2349 void SessionState::SetCachedSize(int size) const { 2350 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2351 _cached_size_ = size; 2352 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2353 } 2354 const ::google::protobuf::Descriptor* SessionState::descriptor() { 2355 protobuf_AssignDescriptorsOnce(); 2356 return SessionState_descriptor_; 2357 } 2358 2359 const SessionState& SessionState::default_instance() { 2360 protobuf_InitDefaults_coprocess_5fsession_5fstate_2eproto(); 2361 return *internal_default_instance(); 2362 } 2363 2364 ::google::protobuf::internal::ExplicitlyConstructed<SessionState> SessionState_default_instance_; 2365 2366 SessionState* SessionState::New(::google::protobuf::Arena* arena) const { 2367 SessionState* n = new SessionState; 2368 if (arena != NULL) { 2369 arena->Own(n); 2370 } 2371 return n; 2372 } 2373 2374 void SessionState::Clear() { 2375 // @@protoc_insertion_point(message_clear_start:coprocess.SessionState) 2376 #if defined(__clang__) 2377 #define ZR_HELPER_(f) \ 2378 _Pragma("clang diagnostic push") \ 2379 _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ 2380 __builtin_offsetof(SessionState, f) \ 2381 _Pragma("clang diagnostic pop") 2382 #else 2383 #define ZR_HELPER_(f) reinterpret_cast<char*>(\ 2384 &reinterpret_cast<SessionState*>(16)->f) 2385 #endif 2386 2387 #define ZR_(first, last) do {\ 2388 ::memset(&(first), 0,\ 2389 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ 2390 } while (0) 2391 2392 ZR_(last_check_, quota_remaining_); 2393 quota_renewal_rate_ = GOOGLE_LONGLONG(0); 2394 org_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2395 oauth_client_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2396 if (GetArenaNoVirtual() == NULL && basic_auth_data_ != NULL) delete basic_auth_data_; 2397 basic_auth_data_ = NULL; 2398 if (GetArenaNoVirtual() == NULL && jwt_data_ != NULL) delete jwt_data_; 2399 jwt_data_ = NULL; 2400 hmac_enabled_ = false; 2401 ZR_(is_inactive_, enable_detailed_recording_); 2402 hmac_secret_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2403 apply_policy_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2404 data_expires_ = GOOGLE_LONGLONG(0); 2405 if (GetArenaNoVirtual() == NULL && monitor_ != NULL) delete monitor_; 2406 monitor_ = NULL; 2407 metadata_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2408 ZR_(id_extractor_deadline_, session_lifetime_); 2409 alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2410 last_updated_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2411 2412 #undef ZR_HELPER_ 2413 #undef ZR_ 2414 2415 access_rights_.Clear(); 2416 oauth_keys_.Clear(); 2417 tags_.Clear(); 2418 } 2419 2420 bool SessionState::MergePartialFromCodedStream( 2421 ::google::protobuf::io::CodedInputStream* input) { 2422 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 2423 ::google::protobuf::uint32 tag; 2424 // @@protoc_insertion_point(parse_start:coprocess.SessionState) 2425 for (;;) { 2426 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); 2427 tag = p.first; 2428 if (!p.second) goto handle_unusual; 2429 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 2430 // optional int64 last_check = 1; 2431 case 1: { 2432 if (tag == 8) { 2433 2434 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2435 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 2436 input, &last_check_))); 2437 } else { 2438 goto handle_unusual; 2439 } 2440 if (input->ExpectTag(17)) goto parse_allowance; 2441 break; 2442 } 2443 2444 // optional double allowance = 2; 2445 case 2: { 2446 if (tag == 17) { 2447 parse_allowance: 2448 2449 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2450 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 2451 input, &allowance_))); 2452 } else { 2453 goto handle_unusual; 2454 } 2455 if (input->ExpectTag(25)) goto parse_rate; 2456 break; 2457 } 2458 2459 // optional double rate = 3; 2460 case 3: { 2461 if (tag == 25) { 2462 parse_rate: 2463 2464 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2465 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 2466 input, &rate_))); 2467 } else { 2468 goto handle_unusual; 2469 } 2470 if (input->ExpectTag(33)) goto parse_per; 2471 break; 2472 } 2473 2474 // optional double per = 4; 2475 case 4: { 2476 if (tag == 33) { 2477 parse_per: 2478 2479 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2480 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 2481 input, &per_))); 2482 } else { 2483 goto handle_unusual; 2484 } 2485 if (input->ExpectTag(40)) goto parse_expires; 2486 break; 2487 } 2488 2489 // optional int64 expires = 5; 2490 case 5: { 2491 if (tag == 40) { 2492 parse_expires: 2493 2494 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2495 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 2496 input, &expires_))); 2497 } else { 2498 goto handle_unusual; 2499 } 2500 if (input->ExpectTag(48)) goto parse_quota_max; 2501 break; 2502 } 2503 2504 // optional int64 quota_max = 6; 2505 case 6: { 2506 if (tag == 48) { 2507 parse_quota_max: 2508 2509 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2510 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 2511 input, "a_max_))); 2512 } else { 2513 goto handle_unusual; 2514 } 2515 if (input->ExpectTag(56)) goto parse_quota_renews; 2516 break; 2517 } 2518 2519 // optional int64 quota_renews = 7; 2520 case 7: { 2521 if (tag == 56) { 2522 parse_quota_renews: 2523 2524 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2525 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 2526 input, "a_renews_))); 2527 } else { 2528 goto handle_unusual; 2529 } 2530 if (input->ExpectTag(64)) goto parse_quota_remaining; 2531 break; 2532 } 2533 2534 // optional int64 quota_remaining = 8; 2535 case 8: { 2536 if (tag == 64) { 2537 parse_quota_remaining: 2538 2539 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2540 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 2541 input, "a_remaining_))); 2542 } else { 2543 goto handle_unusual; 2544 } 2545 if (input->ExpectTag(72)) goto parse_quota_renewal_rate; 2546 break; 2547 } 2548 2549 // optional int64 quota_renewal_rate = 9; 2550 case 9: { 2551 if (tag == 72) { 2552 parse_quota_renewal_rate: 2553 2554 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2555 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 2556 input, "a_renewal_rate_))); 2557 } else { 2558 goto handle_unusual; 2559 } 2560 if (input->ExpectTag(82)) goto parse_access_rights; 2561 break; 2562 } 2563 2564 // map<string, .coprocess.AccessDefinition> access_rights = 10; 2565 case 10: { 2566 if (tag == 82) { 2567 parse_access_rights: 2568 DO_(input->IncrementRecursionDepth()); 2569 parse_loop_access_rights: 2570 SessionState_AccessRightsEntry::Parser< ::google::protobuf::internal::MapField< 2571 ::std::string, ::coprocess::AccessDefinition, 2572 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 2573 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 2574 0 >, 2575 ::google::protobuf::Map< ::std::string, ::coprocess::AccessDefinition > > parser(&access_rights_); 2576 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( 2577 input, &parser)); 2578 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2579 parser.key().data(), parser.key().length(), 2580 ::google::protobuf::internal::WireFormatLite::PARSE, 2581 "coprocess.SessionState.AccessRightsEntry.key")); 2582 } else { 2583 goto handle_unusual; 2584 } 2585 if (input->ExpectTag(82)) goto parse_loop_access_rights; 2586 input->UnsafeDecrementRecursionDepth(); 2587 if (input->ExpectTag(90)) goto parse_org_id; 2588 break; 2589 } 2590 2591 // optional string org_id = 11; 2592 case 11: { 2593 if (tag == 90) { 2594 parse_org_id: 2595 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 2596 input, this->mutable_org_id())); 2597 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2598 this->org_id().data(), this->org_id().length(), 2599 ::google::protobuf::internal::WireFormatLite::PARSE, 2600 "coprocess.SessionState.org_id")); 2601 } else { 2602 goto handle_unusual; 2603 } 2604 if (input->ExpectTag(98)) goto parse_oauth_client_id; 2605 break; 2606 } 2607 2608 // optional string oauth_client_id = 12; 2609 case 12: { 2610 if (tag == 98) { 2611 parse_oauth_client_id: 2612 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 2613 input, this->mutable_oauth_client_id())); 2614 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2615 this->oauth_client_id().data(), this->oauth_client_id().length(), 2616 ::google::protobuf::internal::WireFormatLite::PARSE, 2617 "coprocess.SessionState.oauth_client_id")); 2618 } else { 2619 goto handle_unusual; 2620 } 2621 if (input->ExpectTag(106)) goto parse_oauth_keys; 2622 break; 2623 } 2624 2625 // map<string, string> oauth_keys = 13; 2626 case 13: { 2627 if (tag == 106) { 2628 parse_oauth_keys: 2629 DO_(input->IncrementRecursionDepth()); 2630 parse_loop_oauth_keys: 2631 SessionState_OauthKeysEntry::Parser< ::google::protobuf::internal::MapField< 2632 ::std::string, ::std::string, 2633 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 2634 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 2635 0 >, 2636 ::google::protobuf::Map< ::std::string, ::std::string > > parser(&oauth_keys_); 2637 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( 2638 input, &parser)); 2639 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2640 parser.key().data(), parser.key().length(), 2641 ::google::protobuf::internal::WireFormatLite::PARSE, 2642 "coprocess.SessionState.OauthKeysEntry.key")); 2643 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2644 parser.value().data(), parser.value().length(), 2645 ::google::protobuf::internal::WireFormatLite::PARSE, 2646 "coprocess.SessionState.OauthKeysEntry.value")); 2647 } else { 2648 goto handle_unusual; 2649 } 2650 if (input->ExpectTag(106)) goto parse_loop_oauth_keys; 2651 input->UnsafeDecrementRecursionDepth(); 2652 if (input->ExpectTag(114)) goto parse_basic_auth_data; 2653 break; 2654 } 2655 2656 // optional .coprocess.BasicAuthData basic_auth_data = 14; 2657 case 14: { 2658 if (tag == 114) { 2659 parse_basic_auth_data: 2660 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( 2661 input, mutable_basic_auth_data())); 2662 } else { 2663 goto handle_unusual; 2664 } 2665 if (input->ExpectTag(122)) goto parse_jwt_data; 2666 break; 2667 } 2668 2669 // optional .coprocess.JWTData jwt_data = 15; 2670 case 15: { 2671 if (tag == 122) { 2672 parse_jwt_data: 2673 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( 2674 input, mutable_jwt_data())); 2675 } else { 2676 goto handle_unusual; 2677 } 2678 if (input->ExpectTag(128)) goto parse_hmac_enabled; 2679 break; 2680 } 2681 2682 // optional bool hmac_enabled = 16; 2683 case 16: { 2684 if (tag == 128) { 2685 parse_hmac_enabled: 2686 2687 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2688 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( 2689 input, &hmac_enabled_))); 2690 } else { 2691 goto handle_unusual; 2692 } 2693 if (input->ExpectTag(138)) goto parse_hmac_secret; 2694 break; 2695 } 2696 2697 // optional string hmac_secret = 17; 2698 case 17: { 2699 if (tag == 138) { 2700 parse_hmac_secret: 2701 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 2702 input, this->mutable_hmac_secret())); 2703 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2704 this->hmac_secret().data(), this->hmac_secret().length(), 2705 ::google::protobuf::internal::WireFormatLite::PARSE, 2706 "coprocess.SessionState.hmac_secret")); 2707 } else { 2708 goto handle_unusual; 2709 } 2710 if (input->ExpectTag(144)) goto parse_is_inactive; 2711 break; 2712 } 2713 2714 // optional bool is_inactive = 18; 2715 case 18: { 2716 if (tag == 144) { 2717 parse_is_inactive: 2718 2719 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2720 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( 2721 input, &is_inactive_))); 2722 } else { 2723 goto handle_unusual; 2724 } 2725 if (input->ExpectTag(154)) goto parse_apply_policy_id; 2726 break; 2727 } 2728 2729 // optional string apply_policy_id = 19; 2730 case 19: { 2731 if (tag == 154) { 2732 parse_apply_policy_id: 2733 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 2734 input, this->mutable_apply_policy_id())); 2735 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2736 this->apply_policy_id().data(), this->apply_policy_id().length(), 2737 ::google::protobuf::internal::WireFormatLite::PARSE, 2738 "coprocess.SessionState.apply_policy_id")); 2739 } else { 2740 goto handle_unusual; 2741 } 2742 if (input->ExpectTag(160)) goto parse_data_expires; 2743 break; 2744 } 2745 2746 // optional int64 data_expires = 20; 2747 case 20: { 2748 if (tag == 160) { 2749 parse_data_expires: 2750 2751 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2752 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 2753 input, &data_expires_))); 2754 } else { 2755 goto handle_unusual; 2756 } 2757 if (input->ExpectTag(170)) goto parse_monitor; 2758 break; 2759 } 2760 2761 // optional .coprocess.Monitor monitor = 21; 2762 case 21: { 2763 if (tag == 170) { 2764 parse_monitor: 2765 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( 2766 input, mutable_monitor())); 2767 } else { 2768 goto handle_unusual; 2769 } 2770 if (input->ExpectTag(176)) goto parse_enable_detailed_recording; 2771 break; 2772 } 2773 2774 // optional bool enable_detailed_recording = 22; 2775 case 22: { 2776 if (tag == 176) { 2777 parse_enable_detailed_recording: 2778 2779 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2780 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( 2781 input, &enable_detailed_recording_))); 2782 } else { 2783 goto handle_unusual; 2784 } 2785 if (input->ExpectTag(186)) goto parse_metadata; 2786 break; 2787 } 2788 2789 // optional string metadata = 23; 2790 case 23: { 2791 if (tag == 186) { 2792 parse_metadata: 2793 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 2794 input, this->mutable_metadata())); 2795 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2796 this->metadata().data(), this->metadata().length(), 2797 ::google::protobuf::internal::WireFormatLite::PARSE, 2798 "coprocess.SessionState.metadata")); 2799 } else { 2800 goto handle_unusual; 2801 } 2802 if (input->ExpectTag(194)) goto parse_tags; 2803 break; 2804 } 2805 2806 // repeated string tags = 24; 2807 case 24: { 2808 if (tag == 194) { 2809 parse_tags: 2810 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 2811 input, this->add_tags())); 2812 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2813 this->tags(this->tags_size() - 1).data(), 2814 this->tags(this->tags_size() - 1).length(), 2815 ::google::protobuf::internal::WireFormatLite::PARSE, 2816 "coprocess.SessionState.tags")); 2817 } else { 2818 goto handle_unusual; 2819 } 2820 if (input->ExpectTag(194)) goto parse_tags; 2821 if (input->ExpectTag(202)) goto parse_alias; 2822 break; 2823 } 2824 2825 // optional string alias = 25; 2826 case 25: { 2827 if (tag == 202) { 2828 parse_alias: 2829 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 2830 input, this->mutable_alias())); 2831 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2832 this->alias().data(), this->alias().length(), 2833 ::google::protobuf::internal::WireFormatLite::PARSE, 2834 "coprocess.SessionState.alias")); 2835 } else { 2836 goto handle_unusual; 2837 } 2838 if (input->ExpectTag(210)) goto parse_last_updated; 2839 break; 2840 } 2841 2842 // optional string last_updated = 26; 2843 case 26: { 2844 if (tag == 210) { 2845 parse_last_updated: 2846 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 2847 input, this->mutable_last_updated())); 2848 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2849 this->last_updated().data(), this->last_updated().length(), 2850 ::google::protobuf::internal::WireFormatLite::PARSE, 2851 "coprocess.SessionState.last_updated")); 2852 } else { 2853 goto handle_unusual; 2854 } 2855 if (input->ExpectTag(216)) goto parse_id_extractor_deadline; 2856 break; 2857 } 2858 2859 // optional int64 id_extractor_deadline = 27; 2860 case 27: { 2861 if (tag == 216) { 2862 parse_id_extractor_deadline: 2863 2864 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2865 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 2866 input, &id_extractor_deadline_))); 2867 } else { 2868 goto handle_unusual; 2869 } 2870 if (input->ExpectTag(224)) goto parse_session_lifetime; 2871 break; 2872 } 2873 2874 // optional int64 session_lifetime = 28; 2875 case 28: { 2876 if (tag == 224) { 2877 parse_session_lifetime: 2878 2879 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 2880 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 2881 input, &session_lifetime_))); 2882 } else { 2883 goto handle_unusual; 2884 } 2885 if (input->ExpectAtEnd()) goto success; 2886 break; 2887 } 2888 2889 default: { 2890 handle_unusual: 2891 if (tag == 0 || 2892 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 2893 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 2894 goto success; 2895 } 2896 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 2897 break; 2898 } 2899 } 2900 } 2901 success: 2902 // @@protoc_insertion_point(parse_success:coprocess.SessionState) 2903 return true; 2904 failure: 2905 // @@protoc_insertion_point(parse_failure:coprocess.SessionState) 2906 return false; 2907 #undef DO_ 2908 } 2909 2910 void SessionState::SerializeWithCachedSizes( 2911 ::google::protobuf::io::CodedOutputStream* output) const { 2912 // @@protoc_insertion_point(serialize_start:coprocess.SessionState) 2913 // optional int64 last_check = 1; 2914 if (this->last_check() != 0) { 2915 ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->last_check(), output); 2916 } 2917 2918 // optional double allowance = 2; 2919 if (this->allowance() != 0) { 2920 ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->allowance(), output); 2921 } 2922 2923 // optional double rate = 3; 2924 if (this->rate() != 0) { 2925 ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->rate(), output); 2926 } 2927 2928 // optional double per = 4; 2929 if (this->per() != 0) { 2930 ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->per(), output); 2931 } 2932 2933 // optional int64 expires = 5; 2934 if (this->expires() != 0) { 2935 ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->expires(), output); 2936 } 2937 2938 // optional int64 quota_max = 6; 2939 if (this->quota_max() != 0) { 2940 ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->quota_max(), output); 2941 } 2942 2943 // optional int64 quota_renews = 7; 2944 if (this->quota_renews() != 0) { 2945 ::google::protobuf::internal::WireFormatLite::WriteInt64(7, this->quota_renews(), output); 2946 } 2947 2948 // optional int64 quota_remaining = 8; 2949 if (this->quota_remaining() != 0) { 2950 ::google::protobuf::internal::WireFormatLite::WriteInt64(8, this->quota_remaining(), output); 2951 } 2952 2953 // optional int64 quota_renewal_rate = 9; 2954 if (this->quota_renewal_rate() != 0) { 2955 ::google::protobuf::internal::WireFormatLite::WriteInt64(9, this->quota_renewal_rate(), output); 2956 } 2957 2958 // map<string, .coprocess.AccessDefinition> access_rights = 10; 2959 if (!this->access_rights().empty()) { 2960 typedef ::google::protobuf::Map< ::std::string, ::coprocess::AccessDefinition >::const_pointer 2961 ConstPtr; 2962 typedef ConstPtr SortItem; 2963 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; 2964 struct Utf8Check { 2965 static void Check(ConstPtr p) { 2966 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2967 p->first.data(), p->first.length(), 2968 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 2969 "coprocess.SessionState.AccessRightsEntry.key"); 2970 } 2971 }; 2972 2973 if (output->IsSerializationDeterminstic() && 2974 this->access_rights().size() > 1) { 2975 ::google::protobuf::scoped_array<SortItem> items( 2976 new SortItem[this->access_rights().size()]); 2977 typedef ::google::protobuf::Map< ::std::string, ::coprocess::AccessDefinition >::size_type size_type; 2978 size_type n = 0; 2979 for (::google::protobuf::Map< ::std::string, ::coprocess::AccessDefinition >::const_iterator 2980 it = this->access_rights().begin(); 2981 it != this->access_rights().end(); ++it, ++n) { 2982 items[n] = SortItem(&*it); 2983 } 2984 ::std::sort(&items[0], &items[n], Less()); 2985 ::google::protobuf::scoped_ptr<SessionState_AccessRightsEntry> entry; 2986 for (size_type i = 0; i < n; i++) { 2987 entry.reset(access_rights_.NewEntryWrapper( 2988 items[i]->first, items[i]->second)); 2989 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2990 10, *entry, output); 2991 Utf8Check::Check(items[i]); 2992 } 2993 } else { 2994 ::google::protobuf::scoped_ptr<SessionState_AccessRightsEntry> entry; 2995 for (::google::protobuf::Map< ::std::string, ::coprocess::AccessDefinition >::const_iterator 2996 it = this->access_rights().begin(); 2997 it != this->access_rights().end(); ++it) { 2998 entry.reset(access_rights_.NewEntryWrapper( 2999 it->first, it->second)); 3000 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3001 10, *entry, output); 3002 Utf8Check::Check(&*it); 3003 } 3004 } 3005 } 3006 3007 // optional string org_id = 11; 3008 if (this->org_id().size() > 0) { 3009 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3010 this->org_id().data(), this->org_id().length(), 3011 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3012 "coprocess.SessionState.org_id"); 3013 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3014 11, this->org_id(), output); 3015 } 3016 3017 // optional string oauth_client_id = 12; 3018 if (this->oauth_client_id().size() > 0) { 3019 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3020 this->oauth_client_id().data(), this->oauth_client_id().length(), 3021 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3022 "coprocess.SessionState.oauth_client_id"); 3023 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3024 12, this->oauth_client_id(), output); 3025 } 3026 3027 // map<string, string> oauth_keys = 13; 3028 if (!this->oauth_keys().empty()) { 3029 typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer 3030 ConstPtr; 3031 typedef ConstPtr SortItem; 3032 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; 3033 struct Utf8Check { 3034 static void Check(ConstPtr p) { 3035 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3036 p->first.data(), p->first.length(), 3037 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3038 "coprocess.SessionState.OauthKeysEntry.key"); 3039 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3040 p->second.data(), p->second.length(), 3041 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3042 "coprocess.SessionState.OauthKeysEntry.value"); 3043 } 3044 }; 3045 3046 if (output->IsSerializationDeterminstic() && 3047 this->oauth_keys().size() > 1) { 3048 ::google::protobuf::scoped_array<SortItem> items( 3049 new SortItem[this->oauth_keys().size()]); 3050 typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; 3051 size_type n = 0; 3052 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 3053 it = this->oauth_keys().begin(); 3054 it != this->oauth_keys().end(); ++it, ++n) { 3055 items[n] = SortItem(&*it); 3056 } 3057 ::std::sort(&items[0], &items[n], Less()); 3058 ::google::protobuf::scoped_ptr<SessionState_OauthKeysEntry> entry; 3059 for (size_type i = 0; i < n; i++) { 3060 entry.reset(oauth_keys_.NewEntryWrapper( 3061 items[i]->first, items[i]->second)); 3062 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3063 13, *entry, output); 3064 Utf8Check::Check(items[i]); 3065 } 3066 } else { 3067 ::google::protobuf::scoped_ptr<SessionState_OauthKeysEntry> entry; 3068 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 3069 it = this->oauth_keys().begin(); 3070 it != this->oauth_keys().end(); ++it) { 3071 entry.reset(oauth_keys_.NewEntryWrapper( 3072 it->first, it->second)); 3073 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3074 13, *entry, output); 3075 Utf8Check::Check(&*it); 3076 } 3077 } 3078 } 3079 3080 // optional .coprocess.BasicAuthData basic_auth_data = 14; 3081 if (this->has_basic_auth_data()) { 3082 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3083 14, *this->basic_auth_data_, output); 3084 } 3085 3086 // optional .coprocess.JWTData jwt_data = 15; 3087 if (this->has_jwt_data()) { 3088 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3089 15, *this->jwt_data_, output); 3090 } 3091 3092 // optional bool hmac_enabled = 16; 3093 if (this->hmac_enabled() != 0) { 3094 ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->hmac_enabled(), output); 3095 } 3096 3097 // optional string hmac_secret = 17; 3098 if (this->hmac_secret().size() > 0) { 3099 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3100 this->hmac_secret().data(), this->hmac_secret().length(), 3101 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3102 "coprocess.SessionState.hmac_secret"); 3103 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3104 17, this->hmac_secret(), output); 3105 } 3106 3107 // optional bool is_inactive = 18; 3108 if (this->is_inactive() != 0) { 3109 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->is_inactive(), output); 3110 } 3111 3112 // optional string apply_policy_id = 19; 3113 if (this->apply_policy_id().size() > 0) { 3114 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3115 this->apply_policy_id().data(), this->apply_policy_id().length(), 3116 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3117 "coprocess.SessionState.apply_policy_id"); 3118 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3119 19, this->apply_policy_id(), output); 3120 } 3121 3122 // optional int64 data_expires = 20; 3123 if (this->data_expires() != 0) { 3124 ::google::protobuf::internal::WireFormatLite::WriteInt64(20, this->data_expires(), output); 3125 } 3126 3127 // optional .coprocess.Monitor monitor = 21; 3128 if (this->has_monitor()) { 3129 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3130 21, *this->monitor_, output); 3131 } 3132 3133 // optional bool enable_detailed_recording = 22; 3134 if (this->enable_detailed_recording() != 0) { 3135 ::google::protobuf::internal::WireFormatLite::WriteBool(22, this->enable_detailed_recording(), output); 3136 } 3137 3138 // optional string metadata = 23; 3139 if (this->metadata().size() > 0) { 3140 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3141 this->metadata().data(), this->metadata().length(), 3142 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3143 "coprocess.SessionState.metadata"); 3144 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3145 23, this->metadata(), output); 3146 } 3147 3148 // repeated string tags = 24; 3149 for (int i = 0; i < this->tags_size(); i++) { 3150 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3151 this->tags(i).data(), this->tags(i).length(), 3152 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3153 "coprocess.SessionState.tags"); 3154 ::google::protobuf::internal::WireFormatLite::WriteString( 3155 24, this->tags(i), output); 3156 } 3157 3158 // optional string alias = 25; 3159 if (this->alias().size() > 0) { 3160 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3161 this->alias().data(), this->alias().length(), 3162 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3163 "coprocess.SessionState.alias"); 3164 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3165 25, this->alias(), output); 3166 } 3167 3168 // optional string last_updated = 26; 3169 if (this->last_updated().size() > 0) { 3170 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3171 this->last_updated().data(), this->last_updated().length(), 3172 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3173 "coprocess.SessionState.last_updated"); 3174 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3175 26, this->last_updated(), output); 3176 } 3177 3178 // optional int64 id_extractor_deadline = 27; 3179 if (this->id_extractor_deadline() != 0) { 3180 ::google::protobuf::internal::WireFormatLite::WriteInt64(27, this->id_extractor_deadline(), output); 3181 } 3182 3183 // optional int64 session_lifetime = 28; 3184 if (this->session_lifetime() != 0) { 3185 ::google::protobuf::internal::WireFormatLite::WriteInt64(28, this->session_lifetime(), output); 3186 } 3187 3188 // @@protoc_insertion_point(serialize_end:coprocess.SessionState) 3189 } 3190 3191 ::google::protobuf::uint8* SessionState::InternalSerializeWithCachedSizesToArray( 3192 bool deterministic, ::google::protobuf::uint8* target) const { 3193 (void)deterministic; // Unused 3194 // @@protoc_insertion_point(serialize_to_array_start:coprocess.SessionState) 3195 // optional int64 last_check = 1; 3196 if (this->last_check() != 0) { 3197 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->last_check(), target); 3198 } 3199 3200 // optional double allowance = 2; 3201 if (this->allowance() != 0) { 3202 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->allowance(), target); 3203 } 3204 3205 // optional double rate = 3; 3206 if (this->rate() != 0) { 3207 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->rate(), target); 3208 } 3209 3210 // optional double per = 4; 3211 if (this->per() != 0) { 3212 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->per(), target); 3213 } 3214 3215 // optional int64 expires = 5; 3216 if (this->expires() != 0) { 3217 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->expires(), target); 3218 } 3219 3220 // optional int64 quota_max = 6; 3221 if (this->quota_max() != 0) { 3222 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->quota_max(), target); 3223 } 3224 3225 // optional int64 quota_renews = 7; 3226 if (this->quota_renews() != 0) { 3227 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(7, this->quota_renews(), target); 3228 } 3229 3230 // optional int64 quota_remaining = 8; 3231 if (this->quota_remaining() != 0) { 3232 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(8, this->quota_remaining(), target); 3233 } 3234 3235 // optional int64 quota_renewal_rate = 9; 3236 if (this->quota_renewal_rate() != 0) { 3237 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(9, this->quota_renewal_rate(), target); 3238 } 3239 3240 // map<string, .coprocess.AccessDefinition> access_rights = 10; 3241 if (!this->access_rights().empty()) { 3242 typedef ::google::protobuf::Map< ::std::string, ::coprocess::AccessDefinition >::const_pointer 3243 ConstPtr; 3244 typedef ConstPtr SortItem; 3245 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; 3246 struct Utf8Check { 3247 static void Check(ConstPtr p) { 3248 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3249 p->first.data(), p->first.length(), 3250 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3251 "coprocess.SessionState.AccessRightsEntry.key"); 3252 } 3253 }; 3254 3255 if (deterministic && 3256 this->access_rights().size() > 1) { 3257 ::google::protobuf::scoped_array<SortItem> items( 3258 new SortItem[this->access_rights().size()]); 3259 typedef ::google::protobuf::Map< ::std::string, ::coprocess::AccessDefinition >::size_type size_type; 3260 size_type n = 0; 3261 for (::google::protobuf::Map< ::std::string, ::coprocess::AccessDefinition >::const_iterator 3262 it = this->access_rights().begin(); 3263 it != this->access_rights().end(); ++it, ++n) { 3264 items[n] = SortItem(&*it); 3265 } 3266 ::std::sort(&items[0], &items[n], Less()); 3267 ::google::protobuf::scoped_ptr<SessionState_AccessRightsEntry> entry; 3268 for (size_type i = 0; i < n; i++) { 3269 entry.reset(access_rights_.NewEntryWrapper( 3270 items[i]->first, items[i]->second)); 3271 target = ::google::protobuf::internal::WireFormatLite:: 3272 InternalWriteMessageNoVirtualToArray( 3273 10, *entry, deterministic, target); 3274 ; 3275 Utf8Check::Check(items[i]); 3276 } 3277 } else { 3278 ::google::protobuf::scoped_ptr<SessionState_AccessRightsEntry> entry; 3279 for (::google::protobuf::Map< ::std::string, ::coprocess::AccessDefinition >::const_iterator 3280 it = this->access_rights().begin(); 3281 it != this->access_rights().end(); ++it) { 3282 entry.reset(access_rights_.NewEntryWrapper( 3283 it->first, it->second)); 3284 target = ::google::protobuf::internal::WireFormatLite:: 3285 InternalWriteMessageNoVirtualToArray( 3286 10, *entry, deterministic, target); 3287 ; 3288 Utf8Check::Check(&*it); 3289 } 3290 } 3291 } 3292 3293 // optional string org_id = 11; 3294 if (this->org_id().size() > 0) { 3295 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3296 this->org_id().data(), this->org_id().length(), 3297 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3298 "coprocess.SessionState.org_id"); 3299 target = 3300 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3301 11, this->org_id(), target); 3302 } 3303 3304 // optional string oauth_client_id = 12; 3305 if (this->oauth_client_id().size() > 0) { 3306 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3307 this->oauth_client_id().data(), this->oauth_client_id().length(), 3308 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3309 "coprocess.SessionState.oauth_client_id"); 3310 target = 3311 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3312 12, this->oauth_client_id(), target); 3313 } 3314 3315 // map<string, string> oauth_keys = 13; 3316 if (!this->oauth_keys().empty()) { 3317 typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer 3318 ConstPtr; 3319 typedef ConstPtr SortItem; 3320 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; 3321 struct Utf8Check { 3322 static void Check(ConstPtr p) { 3323 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3324 p->first.data(), p->first.length(), 3325 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3326 "coprocess.SessionState.OauthKeysEntry.key"); 3327 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3328 p->second.data(), p->second.length(), 3329 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3330 "coprocess.SessionState.OauthKeysEntry.value"); 3331 } 3332 }; 3333 3334 if (deterministic && 3335 this->oauth_keys().size() > 1) { 3336 ::google::protobuf::scoped_array<SortItem> items( 3337 new SortItem[this->oauth_keys().size()]); 3338 typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; 3339 size_type n = 0; 3340 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 3341 it = this->oauth_keys().begin(); 3342 it != this->oauth_keys().end(); ++it, ++n) { 3343 items[n] = SortItem(&*it); 3344 } 3345 ::std::sort(&items[0], &items[n], Less()); 3346 ::google::protobuf::scoped_ptr<SessionState_OauthKeysEntry> entry; 3347 for (size_type i = 0; i < n; i++) { 3348 entry.reset(oauth_keys_.NewEntryWrapper( 3349 items[i]->first, items[i]->second)); 3350 target = ::google::protobuf::internal::WireFormatLite:: 3351 InternalWriteMessageNoVirtualToArray( 3352 13, *entry, deterministic, target); 3353 ; 3354 Utf8Check::Check(items[i]); 3355 } 3356 } else { 3357 ::google::protobuf::scoped_ptr<SessionState_OauthKeysEntry> entry; 3358 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 3359 it = this->oauth_keys().begin(); 3360 it != this->oauth_keys().end(); ++it) { 3361 entry.reset(oauth_keys_.NewEntryWrapper( 3362 it->first, it->second)); 3363 target = ::google::protobuf::internal::WireFormatLite:: 3364 InternalWriteMessageNoVirtualToArray( 3365 13, *entry, deterministic, target); 3366 ; 3367 Utf8Check::Check(&*it); 3368 } 3369 } 3370 } 3371 3372 // optional .coprocess.BasicAuthData basic_auth_data = 14; 3373 if (this->has_basic_auth_data()) { 3374 target = ::google::protobuf::internal::WireFormatLite:: 3375 InternalWriteMessageNoVirtualToArray( 3376 14, *this->basic_auth_data_, false, target); 3377 } 3378 3379 // optional .coprocess.JWTData jwt_data = 15; 3380 if (this->has_jwt_data()) { 3381 target = ::google::protobuf::internal::WireFormatLite:: 3382 InternalWriteMessageNoVirtualToArray( 3383 15, *this->jwt_data_, false, target); 3384 } 3385 3386 // optional bool hmac_enabled = 16; 3387 if (this->hmac_enabled() != 0) { 3388 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->hmac_enabled(), target); 3389 } 3390 3391 // optional string hmac_secret = 17; 3392 if (this->hmac_secret().size() > 0) { 3393 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3394 this->hmac_secret().data(), this->hmac_secret().length(), 3395 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3396 "coprocess.SessionState.hmac_secret"); 3397 target = 3398 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3399 17, this->hmac_secret(), target); 3400 } 3401 3402 // optional bool is_inactive = 18; 3403 if (this->is_inactive() != 0) { 3404 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->is_inactive(), target); 3405 } 3406 3407 // optional string apply_policy_id = 19; 3408 if (this->apply_policy_id().size() > 0) { 3409 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3410 this->apply_policy_id().data(), this->apply_policy_id().length(), 3411 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3412 "coprocess.SessionState.apply_policy_id"); 3413 target = 3414 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3415 19, this->apply_policy_id(), target); 3416 } 3417 3418 // optional int64 data_expires = 20; 3419 if (this->data_expires() != 0) { 3420 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(20, this->data_expires(), target); 3421 } 3422 3423 // optional .coprocess.Monitor monitor = 21; 3424 if (this->has_monitor()) { 3425 target = ::google::protobuf::internal::WireFormatLite:: 3426 InternalWriteMessageNoVirtualToArray( 3427 21, *this->monitor_, false, target); 3428 } 3429 3430 // optional bool enable_detailed_recording = 22; 3431 if (this->enable_detailed_recording() != 0) { 3432 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(22, this->enable_detailed_recording(), target); 3433 } 3434 3435 // optional string metadata = 23; 3436 if (this->metadata().size() > 0) { 3437 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3438 this->metadata().data(), this->metadata().length(), 3439 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3440 "coprocess.SessionState.metadata"); 3441 target = 3442 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3443 23, this->metadata(), target); 3444 } 3445 3446 // repeated string tags = 24; 3447 for (int i = 0; i < this->tags_size(); i++) { 3448 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3449 this->tags(i).data(), this->tags(i).length(), 3450 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3451 "coprocess.SessionState.tags"); 3452 target = ::google::protobuf::internal::WireFormatLite:: 3453 WriteStringToArray(24, this->tags(i), target); 3454 } 3455 3456 // optional string alias = 25; 3457 if (this->alias().size() > 0) { 3458 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3459 this->alias().data(), this->alias().length(), 3460 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3461 "coprocess.SessionState.alias"); 3462 target = 3463 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3464 25, this->alias(), target); 3465 } 3466 3467 // optional string last_updated = 26; 3468 if (this->last_updated().size() > 0) { 3469 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3470 this->last_updated().data(), this->last_updated().length(), 3471 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 3472 "coprocess.SessionState.last_updated"); 3473 target = 3474 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3475 26, this->last_updated(), target); 3476 } 3477 3478 // optional int64 id_extractor_deadline = 27; 3479 if (this->id_extractor_deadline() != 0) { 3480 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(27, this->id_extractor_deadline(), target); 3481 } 3482 3483 // optional int64 session_lifetime = 28; 3484 if (this->session_lifetime() != 0) { 3485 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(28, this->session_lifetime(), target); 3486 } 3487 3488 // @@protoc_insertion_point(serialize_to_array_end:coprocess.SessionState) 3489 return target; 3490 } 3491 3492 size_t SessionState::ByteSizeLong() const { 3493 // @@protoc_insertion_point(message_byte_size_start:coprocess.SessionState) 3494 size_t total_size = 0; 3495 3496 // optional int64 last_check = 1; 3497 if (this->last_check() != 0) { 3498 total_size += 1 + 3499 ::google::protobuf::internal::WireFormatLite::Int64Size( 3500 this->last_check()); 3501 } 3502 3503 // optional double allowance = 2; 3504 if (this->allowance() != 0) { 3505 total_size += 1 + 8; 3506 } 3507 3508 // optional double rate = 3; 3509 if (this->rate() != 0) { 3510 total_size += 1 + 8; 3511 } 3512 3513 // optional double per = 4; 3514 if (this->per() != 0) { 3515 total_size += 1 + 8; 3516 } 3517 3518 // optional int64 expires = 5; 3519 if (this->expires() != 0) { 3520 total_size += 1 + 3521 ::google::protobuf::internal::WireFormatLite::Int64Size( 3522 this->expires()); 3523 } 3524 3525 // optional int64 quota_max = 6; 3526 if (this->quota_max() != 0) { 3527 total_size += 1 + 3528 ::google::protobuf::internal::WireFormatLite::Int64Size( 3529 this->quota_max()); 3530 } 3531 3532 // optional int64 quota_renews = 7; 3533 if (this->quota_renews() != 0) { 3534 total_size += 1 + 3535 ::google::protobuf::internal::WireFormatLite::Int64Size( 3536 this->quota_renews()); 3537 } 3538 3539 // optional int64 quota_remaining = 8; 3540 if (this->quota_remaining() != 0) { 3541 total_size += 1 + 3542 ::google::protobuf::internal::WireFormatLite::Int64Size( 3543 this->quota_remaining()); 3544 } 3545 3546 // optional int64 quota_renewal_rate = 9; 3547 if (this->quota_renewal_rate() != 0) { 3548 total_size += 1 + 3549 ::google::protobuf::internal::WireFormatLite::Int64Size( 3550 this->quota_renewal_rate()); 3551 } 3552 3553 // optional string org_id = 11; 3554 if (this->org_id().size() > 0) { 3555 total_size += 1 + 3556 ::google::protobuf::internal::WireFormatLite::StringSize( 3557 this->org_id()); 3558 } 3559 3560 // optional string oauth_client_id = 12; 3561 if (this->oauth_client_id().size() > 0) { 3562 total_size += 1 + 3563 ::google::protobuf::internal::WireFormatLite::StringSize( 3564 this->oauth_client_id()); 3565 } 3566 3567 // optional .coprocess.BasicAuthData basic_auth_data = 14; 3568 if (this->has_basic_auth_data()) { 3569 total_size += 1 + 3570 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 3571 *this->basic_auth_data_); 3572 } 3573 3574 // optional .coprocess.JWTData jwt_data = 15; 3575 if (this->has_jwt_data()) { 3576 total_size += 1 + 3577 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 3578 *this->jwt_data_); 3579 } 3580 3581 // optional bool hmac_enabled = 16; 3582 if (this->hmac_enabled() != 0) { 3583 total_size += 2 + 1; 3584 } 3585 3586 // optional string hmac_secret = 17; 3587 if (this->hmac_secret().size() > 0) { 3588 total_size += 2 + 3589 ::google::protobuf::internal::WireFormatLite::StringSize( 3590 this->hmac_secret()); 3591 } 3592 3593 // optional bool is_inactive = 18; 3594 if (this->is_inactive() != 0) { 3595 total_size += 2 + 1; 3596 } 3597 3598 // optional string apply_policy_id = 19; 3599 if (this->apply_policy_id().size() > 0) { 3600 total_size += 2 + 3601 ::google::protobuf::internal::WireFormatLite::StringSize( 3602 this->apply_policy_id()); 3603 } 3604 3605 // optional int64 data_expires = 20; 3606 if (this->data_expires() != 0) { 3607 total_size += 2 + 3608 ::google::protobuf::internal::WireFormatLite::Int64Size( 3609 this->data_expires()); 3610 } 3611 3612 // optional .coprocess.Monitor monitor = 21; 3613 if (this->has_monitor()) { 3614 total_size += 2 + 3615 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( 3616 *this->monitor_); 3617 } 3618 3619 // optional bool enable_detailed_recording = 22; 3620 if (this->enable_detailed_recording() != 0) { 3621 total_size += 2 + 1; 3622 } 3623 3624 // optional string metadata = 23; 3625 if (this->metadata().size() > 0) { 3626 total_size += 2 + 3627 ::google::protobuf::internal::WireFormatLite::StringSize( 3628 this->metadata()); 3629 } 3630 3631 // optional string alias = 25; 3632 if (this->alias().size() > 0) { 3633 total_size += 2 + 3634 ::google::protobuf::internal::WireFormatLite::StringSize( 3635 this->alias()); 3636 } 3637 3638 // optional string last_updated = 26; 3639 if (this->last_updated().size() > 0) { 3640 total_size += 2 + 3641 ::google::protobuf::internal::WireFormatLite::StringSize( 3642 this->last_updated()); 3643 } 3644 3645 // optional int64 id_extractor_deadline = 27; 3646 if (this->id_extractor_deadline() != 0) { 3647 total_size += 2 + 3648 ::google::protobuf::internal::WireFormatLite::Int64Size( 3649 this->id_extractor_deadline()); 3650 } 3651 3652 // optional int64 session_lifetime = 28; 3653 if (this->session_lifetime() != 0) { 3654 total_size += 2 + 3655 ::google::protobuf::internal::WireFormatLite::Int64Size( 3656 this->session_lifetime()); 3657 } 3658 3659 // map<string, .coprocess.AccessDefinition> access_rights = 10; 3660 total_size += 1 * 3661 ::google::protobuf::internal::FromIntSize(this->access_rights_size()); 3662 { 3663 ::google::protobuf::scoped_ptr<SessionState_AccessRightsEntry> entry; 3664 for (::google::protobuf::Map< ::std::string, ::coprocess::AccessDefinition >::const_iterator 3665 it = this->access_rights().begin(); 3666 it != this->access_rights().end(); ++it) { 3667 entry.reset(access_rights_.NewEntryWrapper(it->first, it->second)); 3668 total_size += ::google::protobuf::internal::WireFormatLite:: 3669 MessageSizeNoVirtual(*entry); 3670 } 3671 } 3672 3673 // map<string, string> oauth_keys = 13; 3674 total_size += 1 * 3675 ::google::protobuf::internal::FromIntSize(this->oauth_keys_size()); 3676 { 3677 ::google::protobuf::scoped_ptr<SessionState_OauthKeysEntry> entry; 3678 for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator 3679 it = this->oauth_keys().begin(); 3680 it != this->oauth_keys().end(); ++it) { 3681 entry.reset(oauth_keys_.NewEntryWrapper(it->first, it->second)); 3682 total_size += ::google::protobuf::internal::WireFormatLite:: 3683 MessageSizeNoVirtual(*entry); 3684 } 3685 } 3686 3687 // repeated string tags = 24; 3688 total_size += 2 * 3689 ::google::protobuf::internal::FromIntSize(this->tags_size()); 3690 for (int i = 0; i < this->tags_size(); i++) { 3691 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( 3692 this->tags(i)); 3693 } 3694 3695 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); 3696 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 3697 _cached_size_ = cached_size; 3698 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 3699 return total_size; 3700 } 3701 3702 void SessionState::MergeFrom(const ::google::protobuf::Message& from) { 3703 // @@protoc_insertion_point(generalized_merge_from_start:coprocess.SessionState) 3704 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 3705 const SessionState* source = 3706 ::google::protobuf::internal::DynamicCastToGenerated<const SessionState>( 3707 &from); 3708 if (source == NULL) { 3709 // @@protoc_insertion_point(generalized_merge_from_cast_fail:coprocess.SessionState) 3710 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 3711 } else { 3712 // @@protoc_insertion_point(generalized_merge_from_cast_success:coprocess.SessionState) 3713 UnsafeMergeFrom(*source); 3714 } 3715 } 3716 3717 void SessionState::MergeFrom(const SessionState& from) { 3718 // @@protoc_insertion_point(class_specific_merge_from_start:coprocess.SessionState) 3719 if (GOOGLE_PREDICT_TRUE(&from != this)) { 3720 UnsafeMergeFrom(from); 3721 } else { 3722 MergeFromFail(__LINE__); 3723 } 3724 } 3725 3726 void SessionState::UnsafeMergeFrom(const SessionState& from) { 3727 GOOGLE_DCHECK(&from != this); 3728 access_rights_.MergeFrom(from.access_rights_); 3729 oauth_keys_.MergeFrom(from.oauth_keys_); 3730 tags_.UnsafeMergeFrom(from.tags_); 3731 if (from.last_check() != 0) { 3732 set_last_check(from.last_check()); 3733 } 3734 if (from.allowance() != 0) { 3735 set_allowance(from.allowance()); 3736 } 3737 if (from.rate() != 0) { 3738 set_rate(from.rate()); 3739 } 3740 if (from.per() != 0) { 3741 set_per(from.per()); 3742 } 3743 if (from.expires() != 0) { 3744 set_expires(from.expires()); 3745 } 3746 if (from.quota_max() != 0) { 3747 set_quota_max(from.quota_max()); 3748 } 3749 if (from.quota_renews() != 0) { 3750 set_quota_renews(from.quota_renews()); 3751 } 3752 if (from.quota_remaining() != 0) { 3753 set_quota_remaining(from.quota_remaining()); 3754 } 3755 if (from.quota_renewal_rate() != 0) { 3756 set_quota_renewal_rate(from.quota_renewal_rate()); 3757 } 3758 if (from.org_id().size() > 0) { 3759 3760 org_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.org_id_); 3761 } 3762 if (from.oauth_client_id().size() > 0) { 3763 3764 oauth_client_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.oauth_client_id_); 3765 } 3766 if (from.has_basic_auth_data()) { 3767 mutable_basic_auth_data()->::coprocess::BasicAuthData::MergeFrom(from.basic_auth_data()); 3768 } 3769 if (from.has_jwt_data()) { 3770 mutable_jwt_data()->::coprocess::JWTData::MergeFrom(from.jwt_data()); 3771 } 3772 if (from.hmac_enabled() != 0) { 3773 set_hmac_enabled(from.hmac_enabled()); 3774 } 3775 if (from.hmac_secret().size() > 0) { 3776 3777 hmac_secret_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hmac_secret_); 3778 } 3779 if (from.is_inactive() != 0) { 3780 set_is_inactive(from.is_inactive()); 3781 } 3782 if (from.apply_policy_id().size() > 0) { 3783 3784 apply_policy_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.apply_policy_id_); 3785 } 3786 if (from.data_expires() != 0) { 3787 set_data_expires(from.data_expires()); 3788 } 3789 if (from.has_monitor()) { 3790 mutable_monitor()->::coprocess::Monitor::MergeFrom(from.monitor()); 3791 } 3792 if (from.enable_detailed_recording() != 0) { 3793 set_enable_detailed_recording(from.enable_detailed_recording()); 3794 } 3795 if (from.metadata().size() > 0) { 3796 3797 metadata_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metadata_); 3798 } 3799 if (from.alias().size() > 0) { 3800 3801 alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_); 3802 } 3803 if (from.last_updated().size() > 0) { 3804 3805 last_updated_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.last_updated_); 3806 } 3807 if (from.id_extractor_deadline() != 0) { 3808 set_id_extractor_deadline(from.id_extractor_deadline()); 3809 } 3810 if (from.session_lifetime() != 0) { 3811 set_session_lifetime(from.session_lifetime()); 3812 } 3813 } 3814 3815 void SessionState::CopyFrom(const ::google::protobuf::Message& from) { 3816 // @@protoc_insertion_point(generalized_copy_from_start:coprocess.SessionState) 3817 if (&from == this) return; 3818 Clear(); 3819 MergeFrom(from); 3820 } 3821 3822 void SessionState::CopyFrom(const SessionState& from) { 3823 // @@protoc_insertion_point(class_specific_copy_from_start:coprocess.SessionState) 3824 if (&from == this) return; 3825 Clear(); 3826 UnsafeMergeFrom(from); 3827 } 3828 3829 bool SessionState::IsInitialized() const { 3830 3831 return true; 3832 } 3833 3834 void SessionState::Swap(SessionState* other) { 3835 if (other == this) return; 3836 InternalSwap(other); 3837 } 3838 void SessionState::InternalSwap(SessionState* other) { 3839 std::swap(last_check_, other->last_check_); 3840 std::swap(allowance_, other->allowance_); 3841 std::swap(rate_, other->rate_); 3842 std::swap(per_, other->per_); 3843 std::swap(expires_, other->expires_); 3844 std::swap(quota_max_, other->quota_max_); 3845 std::swap(quota_renews_, other->quota_renews_); 3846 std::swap(quota_remaining_, other->quota_remaining_); 3847 std::swap(quota_renewal_rate_, other->quota_renewal_rate_); 3848 access_rights_.Swap(&other->access_rights_); 3849 org_id_.Swap(&other->org_id_); 3850 oauth_client_id_.Swap(&other->oauth_client_id_); 3851 oauth_keys_.Swap(&other->oauth_keys_); 3852 std::swap(basic_auth_data_, other->basic_auth_data_); 3853 std::swap(jwt_data_, other->jwt_data_); 3854 std::swap(hmac_enabled_, other->hmac_enabled_); 3855 hmac_secret_.Swap(&other->hmac_secret_); 3856 std::swap(is_inactive_, other->is_inactive_); 3857 apply_policy_id_.Swap(&other->apply_policy_id_); 3858 std::swap(data_expires_, other->data_expires_); 3859 std::swap(monitor_, other->monitor_); 3860 std::swap(enable_detailed_recording_, other->enable_detailed_recording_); 3861 metadata_.Swap(&other->metadata_); 3862 tags_.UnsafeArenaSwap(&other->tags_); 3863 alias_.Swap(&other->alias_); 3864 last_updated_.Swap(&other->last_updated_); 3865 std::swap(id_extractor_deadline_, other->id_extractor_deadline_); 3866 std::swap(session_lifetime_, other->session_lifetime_); 3867 _internal_metadata_.Swap(&other->_internal_metadata_); 3868 std::swap(_cached_size_, other->_cached_size_); 3869 } 3870 3871 ::google::protobuf::Metadata SessionState::GetMetadata() const { 3872 protobuf_AssignDescriptorsOnce(); 3873 ::google::protobuf::Metadata metadata; 3874 metadata.descriptor = SessionState_descriptor_; 3875 metadata.reflection = SessionState_reflection_; 3876 return metadata; 3877 } 3878 3879 #if PROTOBUF_INLINE_NOT_IN_HEADERS 3880 // SessionState 3881 3882 // optional int64 last_check = 1; 3883 void SessionState::clear_last_check() { 3884 last_check_ = GOOGLE_LONGLONG(0); 3885 } 3886 ::google::protobuf::int64 SessionState::last_check() const { 3887 // @@protoc_insertion_point(field_get:coprocess.SessionState.last_check) 3888 return last_check_; 3889 } 3890 void SessionState::set_last_check(::google::protobuf::int64 value) { 3891 3892 last_check_ = value; 3893 // @@protoc_insertion_point(field_set:coprocess.SessionState.last_check) 3894 } 3895 3896 // optional double allowance = 2; 3897 void SessionState::clear_allowance() { 3898 allowance_ = 0; 3899 } 3900 double SessionState::allowance() const { 3901 // @@protoc_insertion_point(field_get:coprocess.SessionState.allowance) 3902 return allowance_; 3903 } 3904 void SessionState::set_allowance(double value) { 3905 3906 allowance_ = value; 3907 // @@protoc_insertion_point(field_set:coprocess.SessionState.allowance) 3908 } 3909 3910 // optional double rate = 3; 3911 void SessionState::clear_rate() { 3912 rate_ = 0; 3913 } 3914 double SessionState::rate() const { 3915 // @@protoc_insertion_point(field_get:coprocess.SessionState.rate) 3916 return rate_; 3917 } 3918 void SessionState::set_rate(double value) { 3919 3920 rate_ = value; 3921 // @@protoc_insertion_point(field_set:coprocess.SessionState.rate) 3922 } 3923 3924 // optional double per = 4; 3925 void SessionState::clear_per() { 3926 per_ = 0; 3927 } 3928 double SessionState::per() const { 3929 // @@protoc_insertion_point(field_get:coprocess.SessionState.per) 3930 return per_; 3931 } 3932 void SessionState::set_per(double value) { 3933 3934 per_ = value; 3935 // @@protoc_insertion_point(field_set:coprocess.SessionState.per) 3936 } 3937 3938 // optional int64 expires = 5; 3939 void SessionState::clear_expires() { 3940 expires_ = GOOGLE_LONGLONG(0); 3941 } 3942 ::google::protobuf::int64 SessionState::expires() const { 3943 // @@protoc_insertion_point(field_get:coprocess.SessionState.expires) 3944 return expires_; 3945 } 3946 void SessionState::set_expires(::google::protobuf::int64 value) { 3947 3948 expires_ = value; 3949 // @@protoc_insertion_point(field_set:coprocess.SessionState.expires) 3950 } 3951 3952 // optional int64 quota_max = 6; 3953 void SessionState::clear_quota_max() { 3954 quota_max_ = GOOGLE_LONGLONG(0); 3955 } 3956 ::google::protobuf::int64 SessionState::quota_max() const { 3957 // @@protoc_insertion_point(field_get:coprocess.SessionState.quota_max) 3958 return quota_max_; 3959 } 3960 void SessionState::set_quota_max(::google::protobuf::int64 value) { 3961 3962 quota_max_ = value; 3963 // @@protoc_insertion_point(field_set:coprocess.SessionState.quota_max) 3964 } 3965 3966 // optional int64 quota_renews = 7; 3967 void SessionState::clear_quota_renews() { 3968 quota_renews_ = GOOGLE_LONGLONG(0); 3969 } 3970 ::google::protobuf::int64 SessionState::quota_renews() const { 3971 // @@protoc_insertion_point(field_get:coprocess.SessionState.quota_renews) 3972 return quota_renews_; 3973 } 3974 void SessionState::set_quota_renews(::google::protobuf::int64 value) { 3975 3976 quota_renews_ = value; 3977 // @@protoc_insertion_point(field_set:coprocess.SessionState.quota_renews) 3978 } 3979 3980 // optional int64 quota_remaining = 8; 3981 void SessionState::clear_quota_remaining() { 3982 quota_remaining_ = GOOGLE_LONGLONG(0); 3983 } 3984 ::google::protobuf::int64 SessionState::quota_remaining() const { 3985 // @@protoc_insertion_point(field_get:coprocess.SessionState.quota_remaining) 3986 return quota_remaining_; 3987 } 3988 void SessionState::set_quota_remaining(::google::protobuf::int64 value) { 3989 3990 quota_remaining_ = value; 3991 // @@protoc_insertion_point(field_set:coprocess.SessionState.quota_remaining) 3992 } 3993 3994 // optional int64 quota_renewal_rate = 9; 3995 void SessionState::clear_quota_renewal_rate() { 3996 quota_renewal_rate_ = GOOGLE_LONGLONG(0); 3997 } 3998 ::google::protobuf::int64 SessionState::quota_renewal_rate() const { 3999 // @@protoc_insertion_point(field_get:coprocess.SessionState.quota_renewal_rate) 4000 return quota_renewal_rate_; 4001 } 4002 void SessionState::set_quota_renewal_rate(::google::protobuf::int64 value) { 4003 4004 quota_renewal_rate_ = value; 4005 // @@protoc_insertion_point(field_set:coprocess.SessionState.quota_renewal_rate) 4006 } 4007 4008 // map<string, .coprocess.AccessDefinition> access_rights = 10; 4009 int SessionState::access_rights_size() const { 4010 return access_rights_.size(); 4011 } 4012 void SessionState::clear_access_rights() { 4013 access_rights_.Clear(); 4014 } 4015 const ::google::protobuf::Map< ::std::string, ::coprocess::AccessDefinition >& 4016 SessionState::access_rights() const { 4017 // @@protoc_insertion_point(field_map:coprocess.SessionState.access_rights) 4018 return access_rights_.GetMap(); 4019 } 4020 ::google::protobuf::Map< ::std::string, ::coprocess::AccessDefinition >* 4021 SessionState::mutable_access_rights() { 4022 // @@protoc_insertion_point(field_mutable_map:coprocess.SessionState.access_rights) 4023 return access_rights_.MutableMap(); 4024 } 4025 4026 // optional string org_id = 11; 4027 void SessionState::clear_org_id() { 4028 org_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4029 } 4030 const ::std::string& SessionState::org_id() const { 4031 // @@protoc_insertion_point(field_get:coprocess.SessionState.org_id) 4032 return org_id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4033 } 4034 void SessionState::set_org_id(const ::std::string& value) { 4035 4036 org_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 4037 // @@protoc_insertion_point(field_set:coprocess.SessionState.org_id) 4038 } 4039 void SessionState::set_org_id(const char* value) { 4040 4041 org_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 4042 // @@protoc_insertion_point(field_set_char:coprocess.SessionState.org_id) 4043 } 4044 void SessionState::set_org_id(const char* value, size_t size) { 4045 4046 org_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 4047 ::std::string(reinterpret_cast<const char*>(value), size)); 4048 // @@protoc_insertion_point(field_set_pointer:coprocess.SessionState.org_id) 4049 } 4050 ::std::string* SessionState::mutable_org_id() { 4051 4052 // @@protoc_insertion_point(field_mutable:coprocess.SessionState.org_id) 4053 return org_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4054 } 4055 ::std::string* SessionState::release_org_id() { 4056 // @@protoc_insertion_point(field_release:coprocess.SessionState.org_id) 4057 4058 return org_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4059 } 4060 void SessionState::set_allocated_org_id(::std::string* org_id) { 4061 if (org_id != NULL) { 4062 4063 } else { 4064 4065 } 4066 org_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), org_id); 4067 // @@protoc_insertion_point(field_set_allocated:coprocess.SessionState.org_id) 4068 } 4069 4070 // optional string oauth_client_id = 12; 4071 void SessionState::clear_oauth_client_id() { 4072 oauth_client_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4073 } 4074 const ::std::string& SessionState::oauth_client_id() const { 4075 // @@protoc_insertion_point(field_get:coprocess.SessionState.oauth_client_id) 4076 return oauth_client_id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4077 } 4078 void SessionState::set_oauth_client_id(const ::std::string& value) { 4079 4080 oauth_client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 4081 // @@protoc_insertion_point(field_set:coprocess.SessionState.oauth_client_id) 4082 } 4083 void SessionState::set_oauth_client_id(const char* value) { 4084 4085 oauth_client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 4086 // @@protoc_insertion_point(field_set_char:coprocess.SessionState.oauth_client_id) 4087 } 4088 void SessionState::set_oauth_client_id(const char* value, size_t size) { 4089 4090 oauth_client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 4091 ::std::string(reinterpret_cast<const char*>(value), size)); 4092 // @@protoc_insertion_point(field_set_pointer:coprocess.SessionState.oauth_client_id) 4093 } 4094 ::std::string* SessionState::mutable_oauth_client_id() { 4095 4096 // @@protoc_insertion_point(field_mutable:coprocess.SessionState.oauth_client_id) 4097 return oauth_client_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4098 } 4099 ::std::string* SessionState::release_oauth_client_id() { 4100 // @@protoc_insertion_point(field_release:coprocess.SessionState.oauth_client_id) 4101 4102 return oauth_client_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4103 } 4104 void SessionState::set_allocated_oauth_client_id(::std::string* oauth_client_id) { 4105 if (oauth_client_id != NULL) { 4106 4107 } else { 4108 4109 } 4110 oauth_client_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oauth_client_id); 4111 // @@protoc_insertion_point(field_set_allocated:coprocess.SessionState.oauth_client_id) 4112 } 4113 4114 // map<string, string> oauth_keys = 13; 4115 int SessionState::oauth_keys_size() const { 4116 return oauth_keys_.size(); 4117 } 4118 void SessionState::clear_oauth_keys() { 4119 oauth_keys_.Clear(); 4120 } 4121 const ::google::protobuf::Map< ::std::string, ::std::string >& 4122 SessionState::oauth_keys() const { 4123 // @@protoc_insertion_point(field_map:coprocess.SessionState.oauth_keys) 4124 return oauth_keys_.GetMap(); 4125 } 4126 ::google::protobuf::Map< ::std::string, ::std::string >* 4127 SessionState::mutable_oauth_keys() { 4128 // @@protoc_insertion_point(field_mutable_map:coprocess.SessionState.oauth_keys) 4129 return oauth_keys_.MutableMap(); 4130 } 4131 4132 // optional .coprocess.BasicAuthData basic_auth_data = 14; 4133 bool SessionState::has_basic_auth_data() const { 4134 return this != internal_default_instance() && basic_auth_data_ != NULL; 4135 } 4136 void SessionState::clear_basic_auth_data() { 4137 if (GetArenaNoVirtual() == NULL && basic_auth_data_ != NULL) delete basic_auth_data_; 4138 basic_auth_data_ = NULL; 4139 } 4140 const ::coprocess::BasicAuthData& SessionState::basic_auth_data() const { 4141 // @@protoc_insertion_point(field_get:coprocess.SessionState.basic_auth_data) 4142 return basic_auth_data_ != NULL ? *basic_auth_data_ 4143 : *::coprocess::BasicAuthData::internal_default_instance(); 4144 } 4145 ::coprocess::BasicAuthData* SessionState::mutable_basic_auth_data() { 4146 4147 if (basic_auth_data_ == NULL) { 4148 basic_auth_data_ = new ::coprocess::BasicAuthData; 4149 } 4150 // @@protoc_insertion_point(field_mutable:coprocess.SessionState.basic_auth_data) 4151 return basic_auth_data_; 4152 } 4153 ::coprocess::BasicAuthData* SessionState::release_basic_auth_data() { 4154 // @@protoc_insertion_point(field_release:coprocess.SessionState.basic_auth_data) 4155 4156 ::coprocess::BasicAuthData* temp = basic_auth_data_; 4157 basic_auth_data_ = NULL; 4158 return temp; 4159 } 4160 void SessionState::set_allocated_basic_auth_data(::coprocess::BasicAuthData* basic_auth_data) { 4161 delete basic_auth_data_; 4162 basic_auth_data_ = basic_auth_data; 4163 if (basic_auth_data) { 4164 4165 } else { 4166 4167 } 4168 // @@protoc_insertion_point(field_set_allocated:coprocess.SessionState.basic_auth_data) 4169 } 4170 4171 // optional .coprocess.JWTData jwt_data = 15; 4172 bool SessionState::has_jwt_data() const { 4173 return this != internal_default_instance() && jwt_data_ != NULL; 4174 } 4175 void SessionState::clear_jwt_data() { 4176 if (GetArenaNoVirtual() == NULL && jwt_data_ != NULL) delete jwt_data_; 4177 jwt_data_ = NULL; 4178 } 4179 const ::coprocess::JWTData& SessionState::jwt_data() const { 4180 // @@protoc_insertion_point(field_get:coprocess.SessionState.jwt_data) 4181 return jwt_data_ != NULL ? *jwt_data_ 4182 : *::coprocess::JWTData::internal_default_instance(); 4183 } 4184 ::coprocess::JWTData* SessionState::mutable_jwt_data() { 4185 4186 if (jwt_data_ == NULL) { 4187 jwt_data_ = new ::coprocess::JWTData; 4188 } 4189 // @@protoc_insertion_point(field_mutable:coprocess.SessionState.jwt_data) 4190 return jwt_data_; 4191 } 4192 ::coprocess::JWTData* SessionState::release_jwt_data() { 4193 // @@protoc_insertion_point(field_release:coprocess.SessionState.jwt_data) 4194 4195 ::coprocess::JWTData* temp = jwt_data_; 4196 jwt_data_ = NULL; 4197 return temp; 4198 } 4199 void SessionState::set_allocated_jwt_data(::coprocess::JWTData* jwt_data) { 4200 delete jwt_data_; 4201 jwt_data_ = jwt_data; 4202 if (jwt_data) { 4203 4204 } else { 4205 4206 } 4207 // @@protoc_insertion_point(field_set_allocated:coprocess.SessionState.jwt_data) 4208 } 4209 4210 // optional bool hmac_enabled = 16; 4211 void SessionState::clear_hmac_enabled() { 4212 hmac_enabled_ = false; 4213 } 4214 bool SessionState::hmac_enabled() const { 4215 // @@protoc_insertion_point(field_get:coprocess.SessionState.hmac_enabled) 4216 return hmac_enabled_; 4217 } 4218 void SessionState::set_hmac_enabled(bool value) { 4219 4220 hmac_enabled_ = value; 4221 // @@protoc_insertion_point(field_set:coprocess.SessionState.hmac_enabled) 4222 } 4223 4224 // optional string hmac_secret = 17; 4225 void SessionState::clear_hmac_secret() { 4226 hmac_secret_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4227 } 4228 const ::std::string& SessionState::hmac_secret() const { 4229 // @@protoc_insertion_point(field_get:coprocess.SessionState.hmac_secret) 4230 return hmac_secret_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4231 } 4232 void SessionState::set_hmac_secret(const ::std::string& value) { 4233 4234 hmac_secret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 4235 // @@protoc_insertion_point(field_set:coprocess.SessionState.hmac_secret) 4236 } 4237 void SessionState::set_hmac_secret(const char* value) { 4238 4239 hmac_secret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 4240 // @@protoc_insertion_point(field_set_char:coprocess.SessionState.hmac_secret) 4241 } 4242 void SessionState::set_hmac_secret(const char* value, size_t size) { 4243 4244 hmac_secret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 4245 ::std::string(reinterpret_cast<const char*>(value), size)); 4246 // @@protoc_insertion_point(field_set_pointer:coprocess.SessionState.hmac_secret) 4247 } 4248 ::std::string* SessionState::mutable_hmac_secret() { 4249 4250 // @@protoc_insertion_point(field_mutable:coprocess.SessionState.hmac_secret) 4251 return hmac_secret_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4252 } 4253 ::std::string* SessionState::release_hmac_secret() { 4254 // @@protoc_insertion_point(field_release:coprocess.SessionState.hmac_secret) 4255 4256 return hmac_secret_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4257 } 4258 void SessionState::set_allocated_hmac_secret(::std::string* hmac_secret) { 4259 if (hmac_secret != NULL) { 4260 4261 } else { 4262 4263 } 4264 hmac_secret_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hmac_secret); 4265 // @@protoc_insertion_point(field_set_allocated:coprocess.SessionState.hmac_secret) 4266 } 4267 4268 // optional bool is_inactive = 18; 4269 void SessionState::clear_is_inactive() { 4270 is_inactive_ = false; 4271 } 4272 bool SessionState::is_inactive() const { 4273 // @@protoc_insertion_point(field_get:coprocess.SessionState.is_inactive) 4274 return is_inactive_; 4275 } 4276 void SessionState::set_is_inactive(bool value) { 4277 4278 is_inactive_ = value; 4279 // @@protoc_insertion_point(field_set:coprocess.SessionState.is_inactive) 4280 } 4281 4282 // optional string apply_policy_id = 19; 4283 void SessionState::clear_apply_policy_id() { 4284 apply_policy_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4285 } 4286 const ::std::string& SessionState::apply_policy_id() const { 4287 // @@protoc_insertion_point(field_get:coprocess.SessionState.apply_policy_id) 4288 return apply_policy_id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4289 } 4290 void SessionState::set_apply_policy_id(const ::std::string& value) { 4291 4292 apply_policy_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 4293 // @@protoc_insertion_point(field_set:coprocess.SessionState.apply_policy_id) 4294 } 4295 void SessionState::set_apply_policy_id(const char* value) { 4296 4297 apply_policy_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 4298 // @@protoc_insertion_point(field_set_char:coprocess.SessionState.apply_policy_id) 4299 } 4300 void SessionState::set_apply_policy_id(const char* value, size_t size) { 4301 4302 apply_policy_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 4303 ::std::string(reinterpret_cast<const char*>(value), size)); 4304 // @@protoc_insertion_point(field_set_pointer:coprocess.SessionState.apply_policy_id) 4305 } 4306 ::std::string* SessionState::mutable_apply_policy_id() { 4307 4308 // @@protoc_insertion_point(field_mutable:coprocess.SessionState.apply_policy_id) 4309 return apply_policy_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4310 } 4311 ::std::string* SessionState::release_apply_policy_id() { 4312 // @@protoc_insertion_point(field_release:coprocess.SessionState.apply_policy_id) 4313 4314 return apply_policy_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4315 } 4316 void SessionState::set_allocated_apply_policy_id(::std::string* apply_policy_id) { 4317 if (apply_policy_id != NULL) { 4318 4319 } else { 4320 4321 } 4322 apply_policy_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), apply_policy_id); 4323 // @@protoc_insertion_point(field_set_allocated:coprocess.SessionState.apply_policy_id) 4324 } 4325 4326 // optional int64 data_expires = 20; 4327 void SessionState::clear_data_expires() { 4328 data_expires_ = GOOGLE_LONGLONG(0); 4329 } 4330 ::google::protobuf::int64 SessionState::data_expires() const { 4331 // @@protoc_insertion_point(field_get:coprocess.SessionState.data_expires) 4332 return data_expires_; 4333 } 4334 void SessionState::set_data_expires(::google::protobuf::int64 value) { 4335 4336 data_expires_ = value; 4337 // @@protoc_insertion_point(field_set:coprocess.SessionState.data_expires) 4338 } 4339 4340 // optional .coprocess.Monitor monitor = 21; 4341 bool SessionState::has_monitor() const { 4342 return this != internal_default_instance() && monitor_ != NULL; 4343 } 4344 void SessionState::clear_monitor() { 4345 if (GetArenaNoVirtual() == NULL && monitor_ != NULL) delete monitor_; 4346 monitor_ = NULL; 4347 } 4348 const ::coprocess::Monitor& SessionState::monitor() const { 4349 // @@protoc_insertion_point(field_get:coprocess.SessionState.monitor) 4350 return monitor_ != NULL ? *monitor_ 4351 : *::coprocess::Monitor::internal_default_instance(); 4352 } 4353 ::coprocess::Monitor* SessionState::mutable_monitor() { 4354 4355 if (monitor_ == NULL) { 4356 monitor_ = new ::coprocess::Monitor; 4357 } 4358 // @@protoc_insertion_point(field_mutable:coprocess.SessionState.monitor) 4359 return monitor_; 4360 } 4361 ::coprocess::Monitor* SessionState::release_monitor() { 4362 // @@protoc_insertion_point(field_release:coprocess.SessionState.monitor) 4363 4364 ::coprocess::Monitor* temp = monitor_; 4365 monitor_ = NULL; 4366 return temp; 4367 } 4368 void SessionState::set_allocated_monitor(::coprocess::Monitor* monitor) { 4369 delete monitor_; 4370 monitor_ = monitor; 4371 if (monitor) { 4372 4373 } else { 4374 4375 } 4376 // @@protoc_insertion_point(field_set_allocated:coprocess.SessionState.monitor) 4377 } 4378 4379 // optional bool enable_detailed_recording = 22; 4380 void SessionState::clear_enable_detailed_recording() { 4381 enable_detailed_recording_ = false; 4382 } 4383 bool SessionState::enable_detailed_recording() const { 4384 // @@protoc_insertion_point(field_get:coprocess.SessionState.enable_detailed_recording) 4385 return enable_detailed_recording_; 4386 } 4387 void SessionState::set_enable_detailed_recording(bool value) { 4388 4389 enable_detailed_recording_ = value; 4390 // @@protoc_insertion_point(field_set:coprocess.SessionState.enable_detailed_recording) 4391 } 4392 4393 // optional string metadata = 23; 4394 void SessionState::clear_metadata() { 4395 metadata_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4396 } 4397 const ::std::string& SessionState::metadata() const { 4398 // @@protoc_insertion_point(field_get:coprocess.SessionState.metadata) 4399 return metadata_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4400 } 4401 void SessionState::set_metadata(const ::std::string& value) { 4402 4403 metadata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 4404 // @@protoc_insertion_point(field_set:coprocess.SessionState.metadata) 4405 } 4406 void SessionState::set_metadata(const char* value) { 4407 4408 metadata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 4409 // @@protoc_insertion_point(field_set_char:coprocess.SessionState.metadata) 4410 } 4411 void SessionState::set_metadata(const char* value, size_t size) { 4412 4413 metadata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 4414 ::std::string(reinterpret_cast<const char*>(value), size)); 4415 // @@protoc_insertion_point(field_set_pointer:coprocess.SessionState.metadata) 4416 } 4417 ::std::string* SessionState::mutable_metadata() { 4418 4419 // @@protoc_insertion_point(field_mutable:coprocess.SessionState.metadata) 4420 return metadata_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4421 } 4422 ::std::string* SessionState::release_metadata() { 4423 // @@protoc_insertion_point(field_release:coprocess.SessionState.metadata) 4424 4425 return metadata_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4426 } 4427 void SessionState::set_allocated_metadata(::std::string* metadata) { 4428 if (metadata != NULL) { 4429 4430 } else { 4431 4432 } 4433 metadata_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metadata); 4434 // @@protoc_insertion_point(field_set_allocated:coprocess.SessionState.metadata) 4435 } 4436 4437 // repeated string tags = 24; 4438 int SessionState::tags_size() const { 4439 return tags_.size(); 4440 } 4441 void SessionState::clear_tags() { 4442 tags_.Clear(); 4443 } 4444 const ::std::string& SessionState::tags(int index) const { 4445 // @@protoc_insertion_point(field_get:coprocess.SessionState.tags) 4446 return tags_.Get(index); 4447 } 4448 ::std::string* SessionState::mutable_tags(int index) { 4449 // @@protoc_insertion_point(field_mutable:coprocess.SessionState.tags) 4450 return tags_.Mutable(index); 4451 } 4452 void SessionState::set_tags(int index, const ::std::string& value) { 4453 // @@protoc_insertion_point(field_set:coprocess.SessionState.tags) 4454 tags_.Mutable(index)->assign(value); 4455 } 4456 void SessionState::set_tags(int index, const char* value) { 4457 tags_.Mutable(index)->assign(value); 4458 // @@protoc_insertion_point(field_set_char:coprocess.SessionState.tags) 4459 } 4460 void SessionState::set_tags(int index, const char* value, size_t size) { 4461 tags_.Mutable(index)->assign( 4462 reinterpret_cast<const char*>(value), size); 4463 // @@protoc_insertion_point(field_set_pointer:coprocess.SessionState.tags) 4464 } 4465 ::std::string* SessionState::add_tags() { 4466 // @@protoc_insertion_point(field_add_mutable:coprocess.SessionState.tags) 4467 return tags_.Add(); 4468 } 4469 void SessionState::add_tags(const ::std::string& value) { 4470 tags_.Add()->assign(value); 4471 // @@protoc_insertion_point(field_add:coprocess.SessionState.tags) 4472 } 4473 void SessionState::add_tags(const char* value) { 4474 tags_.Add()->assign(value); 4475 // @@protoc_insertion_point(field_add_char:coprocess.SessionState.tags) 4476 } 4477 void SessionState::add_tags(const char* value, size_t size) { 4478 tags_.Add()->assign(reinterpret_cast<const char*>(value), size); 4479 // @@protoc_insertion_point(field_add_pointer:coprocess.SessionState.tags) 4480 } 4481 const ::google::protobuf::RepeatedPtrField< ::std::string>& 4482 SessionState::tags() const { 4483 // @@protoc_insertion_point(field_list:coprocess.SessionState.tags) 4484 return tags_; 4485 } 4486 ::google::protobuf::RepeatedPtrField< ::std::string>* 4487 SessionState::mutable_tags() { 4488 // @@protoc_insertion_point(field_mutable_list:coprocess.SessionState.tags) 4489 return &tags_; 4490 } 4491 4492 // optional string alias = 25; 4493 void SessionState::clear_alias() { 4494 alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4495 } 4496 const ::std::string& SessionState::alias() const { 4497 // @@protoc_insertion_point(field_get:coprocess.SessionState.alias) 4498 return alias_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4499 } 4500 void SessionState::set_alias(const ::std::string& value) { 4501 4502 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 4503 // @@protoc_insertion_point(field_set:coprocess.SessionState.alias) 4504 } 4505 void SessionState::set_alias(const char* value) { 4506 4507 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 4508 // @@protoc_insertion_point(field_set_char:coprocess.SessionState.alias) 4509 } 4510 void SessionState::set_alias(const char* value, size_t size) { 4511 4512 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 4513 ::std::string(reinterpret_cast<const char*>(value), size)); 4514 // @@protoc_insertion_point(field_set_pointer:coprocess.SessionState.alias) 4515 } 4516 ::std::string* SessionState::mutable_alias() { 4517 4518 // @@protoc_insertion_point(field_mutable:coprocess.SessionState.alias) 4519 return alias_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4520 } 4521 ::std::string* SessionState::release_alias() { 4522 // @@protoc_insertion_point(field_release:coprocess.SessionState.alias) 4523 4524 return alias_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4525 } 4526 void SessionState::set_allocated_alias(::std::string* alias) { 4527 if (alias != NULL) { 4528 4529 } else { 4530 4531 } 4532 alias_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), alias); 4533 // @@protoc_insertion_point(field_set_allocated:coprocess.SessionState.alias) 4534 } 4535 4536 // optional string last_updated = 26; 4537 void SessionState::clear_last_updated() { 4538 last_updated_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4539 } 4540 const ::std::string& SessionState::last_updated() const { 4541 // @@protoc_insertion_point(field_get:coprocess.SessionState.last_updated) 4542 return last_updated_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4543 } 4544 void SessionState::set_last_updated(const ::std::string& value) { 4545 4546 last_updated_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 4547 // @@protoc_insertion_point(field_set:coprocess.SessionState.last_updated) 4548 } 4549 void SessionState::set_last_updated(const char* value) { 4550 4551 last_updated_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 4552 // @@protoc_insertion_point(field_set_char:coprocess.SessionState.last_updated) 4553 } 4554 void SessionState::set_last_updated(const char* value, size_t size) { 4555 4556 last_updated_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 4557 ::std::string(reinterpret_cast<const char*>(value), size)); 4558 // @@protoc_insertion_point(field_set_pointer:coprocess.SessionState.last_updated) 4559 } 4560 ::std::string* SessionState::mutable_last_updated() { 4561 4562 // @@protoc_insertion_point(field_mutable:coprocess.SessionState.last_updated) 4563 return last_updated_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4564 } 4565 ::std::string* SessionState::release_last_updated() { 4566 // @@protoc_insertion_point(field_release:coprocess.SessionState.last_updated) 4567 4568 return last_updated_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4569 } 4570 void SessionState::set_allocated_last_updated(::std::string* last_updated) { 4571 if (last_updated != NULL) { 4572 4573 } else { 4574 4575 } 4576 last_updated_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), last_updated); 4577 // @@protoc_insertion_point(field_set_allocated:coprocess.SessionState.last_updated) 4578 } 4579 4580 // optional int64 id_extractor_deadline = 27; 4581 void SessionState::clear_id_extractor_deadline() { 4582 id_extractor_deadline_ = GOOGLE_LONGLONG(0); 4583 } 4584 ::google::protobuf::int64 SessionState::id_extractor_deadline() const { 4585 // @@protoc_insertion_point(field_get:coprocess.SessionState.id_extractor_deadline) 4586 return id_extractor_deadline_; 4587 } 4588 void SessionState::set_id_extractor_deadline(::google::protobuf::int64 value) { 4589 4590 id_extractor_deadline_ = value; 4591 // @@protoc_insertion_point(field_set:coprocess.SessionState.id_extractor_deadline) 4592 } 4593 4594 // optional int64 session_lifetime = 28; 4595 void SessionState::clear_session_lifetime() { 4596 session_lifetime_ = GOOGLE_LONGLONG(0); 4597 } 4598 ::google::protobuf::int64 SessionState::session_lifetime() const { 4599 // @@protoc_insertion_point(field_get:coprocess.SessionState.session_lifetime) 4600 return session_lifetime_; 4601 } 4602 void SessionState::set_session_lifetime(::google::protobuf::int64 value) { 4603 4604 session_lifetime_ = value; 4605 // @@protoc_insertion_point(field_set:coprocess.SessionState.session_lifetime) 4606 } 4607 4608 inline const SessionState* SessionState::internal_default_instance() { 4609 return &SessionState_default_instance_.get(); 4610 } 4611 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 4612 4613 // @@protoc_insertion_point(namespace_scope) 4614 4615 } // namespace coprocess 4616 4617 // @@protoc_insertion_point(global_scope)