| // Generated by the protocol buffer compiler. DO NOT EDIT! |
| // source: Messages.proto |
| |
| #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION |
| #include "Messages.pb.h" |
| |
| #include <algorithm> |
| |
| #include <google/protobuf/stubs/common.h> |
| #include <google/protobuf/stubs/once.h> |
| #include <google/protobuf/io/coded_stream.h> |
| #include <google/protobuf/wire_format_lite_inl.h> |
| #include <google/protobuf/descriptor.h> |
| #include <google/protobuf/generated_message_reflection.h> |
| #include <google/protobuf/reflection_ops.h> |
| #include <google/protobuf/wire_format.h> |
| // @@protoc_insertion_point(includes) |
| |
| namespace Messages { |
| |
| namespace { |
| |
| const ::google::protobuf::Descriptor* InitialMessage_descriptor_ = NULL; |
| const ::google::protobuf::internal::GeneratedMessageReflection* |
| InitialMessage_reflection_ = NULL; |
| const ::google::protobuf::Descriptor* MessageMsg0_descriptor_ = NULL; |
| const ::google::protobuf::internal::GeneratedMessageReflection* |
| MessageMsg0_reflection_ = NULL; |
| const ::google::protobuf::Descriptor* MessageMSG1_descriptor_ = NULL; |
| const ::google::protobuf::internal::GeneratedMessageReflection* |
| MessageMSG1_reflection_ = NULL; |
| const ::google::protobuf::Descriptor* MessageMSG2_descriptor_ = NULL; |
| const ::google::protobuf::internal::GeneratedMessageReflection* |
| MessageMSG2_reflection_ = NULL; |
| const ::google::protobuf::Descriptor* MessageMSG3_descriptor_ = NULL; |
| const ::google::protobuf::internal::GeneratedMessageReflection* |
| MessageMSG3_reflection_ = NULL; |
| const ::google::protobuf::Descriptor* AttestationMessage_descriptor_ = NULL; |
| const ::google::protobuf::internal::GeneratedMessageReflection* |
| AttestationMessage_reflection_ = NULL; |
| const ::google::protobuf::Descriptor* SecretMessage_descriptor_ = NULL; |
| const ::google::protobuf::internal::GeneratedMessageReflection* |
| SecretMessage_reflection_ = NULL; |
| |
| } // namespace |
| |
| |
| void protobuf_AssignDesc_Messages_2eproto() { |
| protobuf_AddDesc_Messages_2eproto(); |
| const ::google::protobuf::FileDescriptor* file = |
| ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( |
| "Messages.proto"); |
| GOOGLE_CHECK(file != NULL); |
| InitialMessage_descriptor_ = file->message_type(0); |
| static const int InitialMessage_offsets_[2] = { |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitialMessage, type_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitialMessage, size_), |
| }; |
| InitialMessage_reflection_ = |
| new ::google::protobuf::internal::GeneratedMessageReflection( |
| InitialMessage_descriptor_, |
| InitialMessage::default_instance_, |
| InitialMessage_offsets_, |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitialMessage, _has_bits_[0]), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitialMessage, _unknown_fields_), |
| -1, |
| ::google::protobuf::DescriptorPool::generated_pool(), |
| ::google::protobuf::MessageFactory::generated_factory(), |
| sizeof(InitialMessage)); |
| MessageMsg0_descriptor_ = file->message_type(1); |
| static const int MessageMsg0_offsets_[3] = { |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMsg0, type_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMsg0, epid_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMsg0, status_), |
| }; |
| MessageMsg0_reflection_ = |
| new ::google::protobuf::internal::GeneratedMessageReflection( |
| MessageMsg0_descriptor_, |
| MessageMsg0::default_instance_, |
| MessageMsg0_offsets_, |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMsg0, _has_bits_[0]), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMsg0, _unknown_fields_), |
| -1, |
| ::google::protobuf::DescriptorPool::generated_pool(), |
| ::google::protobuf::MessageFactory::generated_factory(), |
| sizeof(MessageMsg0)); |
| MessageMSG1_descriptor_ = file->message_type(2); |
| static const int MessageMSG1_offsets_[4] = { |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG1, type_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG1, gax_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG1, gay_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG1, gid_), |
| }; |
| MessageMSG1_reflection_ = |
| new ::google::protobuf::internal::GeneratedMessageReflection( |
| MessageMSG1_descriptor_, |
| MessageMSG1::default_instance_, |
| MessageMSG1_offsets_, |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG1, _has_bits_[0]), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG1, _unknown_fields_), |
| -1, |
| ::google::protobuf::DescriptorPool::generated_pool(), |
| ::google::protobuf::MessageFactory::generated_factory(), |
| sizeof(MessageMSG1)); |
| MessageMSG2_descriptor_ = file->message_type(3); |
| static const int MessageMSG2_offsets_[12] = { |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG2, type_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG2, size_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG2, public_key_gx_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG2, public_key_gy_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG2, quote_type_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG2, spid_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG2, cmac_kdf_id_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG2, signature_x_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG2, signature_y_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG2, smac_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG2, size_sigrl_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG2, sigrl_), |
| }; |
| MessageMSG2_reflection_ = |
| new ::google::protobuf::internal::GeneratedMessageReflection( |
| MessageMSG2_descriptor_, |
| MessageMSG2::default_instance_, |
| MessageMSG2_offsets_, |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG2, _has_bits_[0]), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG2, _unknown_fields_), |
| -1, |
| ::google::protobuf::DescriptorPool::generated_pool(), |
| ::google::protobuf::MessageFactory::generated_factory(), |
| sizeof(MessageMSG2)); |
| MessageMSG3_descriptor_ = file->message_type(4); |
| static const int MessageMSG3_offsets_[7] = { |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG3, type_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG3, size_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG3, sgx_mac_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG3, gax_msg3_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG3, gay_msg3_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG3, sec_property_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG3, quote_), |
| }; |
| MessageMSG3_reflection_ = |
| new ::google::protobuf::internal::GeneratedMessageReflection( |
| MessageMSG3_descriptor_, |
| MessageMSG3::default_instance_, |
| MessageMSG3_offsets_, |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG3, _has_bits_[0]), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageMSG3, _unknown_fields_), |
| -1, |
| ::google::protobuf::DescriptorPool::generated_pool(), |
| ::google::protobuf::MessageFactory::generated_factory(), |
| sizeof(MessageMSG3)); |
| AttestationMessage_descriptor_ = file->message_type(5); |
| static const int AttestationMessage_offsets_[16] = { |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, type_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, size_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, epid_group_status_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, tcb_evaluation_status_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, pse_evaluation_status_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, latest_equivalent_tcb_psvn_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, latest_pse_isvsvn_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, latest_psda_svn_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, performance_rekey_gid_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, ec_sign256_x_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, ec_sign256_y_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, mac_smk_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, result_size_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, reserved_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, payload_tag_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, payload_), |
| }; |
| AttestationMessage_reflection_ = |
| new ::google::protobuf::internal::GeneratedMessageReflection( |
| AttestationMessage_descriptor_, |
| AttestationMessage::default_instance_, |
| AttestationMessage_offsets_, |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, _has_bits_[0]), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttestationMessage, _unknown_fields_), |
| -1, |
| ::google::protobuf::DescriptorPool::generated_pool(), |
| ::google::protobuf::MessageFactory::generated_factory(), |
| sizeof(AttestationMessage)); |
| SecretMessage_descriptor_ = file->message_type(6); |
| static const int SecretMessage_offsets_[10] = { |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecretMessage, type_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecretMessage, size_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecretMessage, encryped_pkey_size_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecretMessage, encryped_x509_size_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecretMessage, encrypted_content_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecretMessage, mac_smk_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecretMessage, encrypted_pkey_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecretMessage, encrypted_pkey_mac_smk_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecretMessage, encrypted_x509_), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecretMessage, encrypted_x509_mac_smk_), |
| }; |
| SecretMessage_reflection_ = |
| new ::google::protobuf::internal::GeneratedMessageReflection( |
| SecretMessage_descriptor_, |
| SecretMessage::default_instance_, |
| SecretMessage_offsets_, |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecretMessage, _has_bits_[0]), |
| GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecretMessage, _unknown_fields_), |
| -1, |
| ::google::protobuf::DescriptorPool::generated_pool(), |
| ::google::protobuf::MessageFactory::generated_factory(), |
| sizeof(SecretMessage)); |
| } |
| |
| namespace { |
| |
| GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); |
| inline void protobuf_AssignDescriptorsOnce() { |
| ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, |
| &protobuf_AssignDesc_Messages_2eproto); |
| } |
| |
| void protobuf_RegisterTypes(const ::std::string&) { |
| protobuf_AssignDescriptorsOnce(); |
| ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| InitialMessage_descriptor_, &InitialMessage::default_instance()); |
| ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| MessageMsg0_descriptor_, &MessageMsg0::default_instance()); |
| ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| MessageMSG1_descriptor_, &MessageMSG1::default_instance()); |
| ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| MessageMSG2_descriptor_, &MessageMSG2::default_instance()); |
| ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| MessageMSG3_descriptor_, &MessageMSG3::default_instance()); |
| ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| AttestationMessage_descriptor_, &AttestationMessage::default_instance()); |
| ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| SecretMessage_descriptor_, &SecretMessage::default_instance()); |
| } |
| |
| } // namespace |
| |
| void protobuf_ShutdownFile_Messages_2eproto() { |
| delete InitialMessage::default_instance_; |
| delete InitialMessage_reflection_; |
| delete MessageMsg0::default_instance_; |
| delete MessageMsg0_reflection_; |
| delete MessageMSG1::default_instance_; |
| delete MessageMSG1_reflection_; |
| delete MessageMSG2::default_instance_; |
| delete MessageMSG2_reflection_; |
| delete MessageMSG3::default_instance_; |
| delete MessageMSG3_reflection_; |
| delete AttestationMessage::default_instance_; |
| delete AttestationMessage_reflection_; |
| delete SecretMessage::default_instance_; |
| delete SecretMessage_reflection_; |
| } |
| |
| void protobuf_AddDesc_Messages_2eproto() { |
| static bool already_here = false; |
| if (already_here) return; |
| already_here = true; |
| GOOGLE_PROTOBUF_VERIFY_VERSION; |
| |
| ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
| "\n\016Messages.proto\022\010Messages\",\n\016InitialMes" |
| "sage\022\014\n\004type\030\001 \002(\r\022\014\n\004size\030\002 \001(\r\"9\n\013Mess" |
| "ageMsg0\022\014\n\004type\030\001 \002(\r\022\014\n\004epid\030\002 \002(\r\022\016\n\006s" |
| "tatus\030\003 \001(\r\"N\n\013MessageMSG1\022\014\n\004type\030\001 \002(\r" |
| "\022\017\n\003GaX\030\002 \003(\rB\002\020\001\022\017\n\003GaY\030\003 \003(\rB\002\020\001\022\017\n\003GI" |
| "D\030\004 \003(\rB\002\020\001\"\205\002\n\013MessageMSG2\022\014\n\004type\030\001 \002(" |
| "\r\022\014\n\004size\030\002 \001(\r\022\031\n\rpublic_key_gx\030\003 \003(\rB\002" |
| "\020\001\022\031\n\rpublic_key_gy\030\004 \003(\rB\002\020\001\022\022\n\nquote_t" |
| "ype\030\005 \001(\r\022\020\n\004spid\030\006 \003(\rB\002\020\001\022\023\n\013cmac_kdf_" |
| "id\030\007 \001(\r\022\027\n\013signature_x\030\010 \003(\rB\002\020\001\022\027\n\013sig" |
| "nature_y\030\t \003(\rB\002\020\001\022\020\n\004smac\030\n \003(\rB\002\020\001\022\022\n\n" |
| "size_sigrl\030\013 \001(\r\022\021\n\005sigrl\030\014 \003(\rB\002\020\001\"\227\001\n\013" |
| "MessageMSG3\022\014\n\004type\030\001 \002(\r\022\014\n\004size\030\002 \001(\r\022" |
| "\023\n\007sgx_mac\030\003 \003(\rB\002\020\001\022\024\n\010gax_msg3\030\004 \003(\rB\002" |
| "\020\001\022\024\n\010gay_msg3\030\005 \003(\rB\002\020\001\022\030\n\014sec_property" |
| "\030\006 \003(\rB\002\020\001\022\021\n\005quote\030\007 \003(\rB\002\020\001\"\262\003\n\022Attest" |
| "ationMessage\022\014\n\004type\030\001 \002(\r\022\014\n\004size\030\002 \002(\r" |
| "\022\031\n\021epid_group_status\030\003 \001(\r\022\035\n\025tcb_evalu" |
| "ation_status\030\004 \001(\r\022\035\n\025pse_evaluation_sta" |
| "tus\030\005 \001(\r\022&\n\032latest_equivalent_tcb_psvn\030" |
| "\006 \003(\rB\002\020\001\022\035\n\021latest_pse_isvsvn\030\007 \003(\rB\002\020\001" |
| "\022\033\n\017latest_psda_svn\030\010 \003(\rB\002\020\001\022!\n\025perform" |
| "ance_rekey_gid\030\t \003(\rB\002\020\001\022\030\n\014ec_sign256_x" |
| "\030\n \003(\rB\002\020\001\022\030\n\014ec_sign256_y\030\013 \003(\rB\002\020\001\022\023\n\007" |
| "mac_smk\030\014 \003(\rB\002\020\001\022\023\n\013result_size\030\r \001(\r\022\024" |
| "\n\010reserved\030\016 \003(\rB\002\020\001\022\027\n\013payload_tag\030\017 \003(" |
| "\rB\002\020\001\022\023\n\007payload\030\020 \003(\rB\002\020\001\"\227\002\n\rSecretMes" |
| "sage\022\014\n\004type\030\001 \002(\r\022\014\n\004size\030\002 \002(\r\022\032\n\022encr" |
| "yped_pkey_size\030\003 \001(\r\022\032\n\022encryped_x509_si" |
| "ze\030\004 \001(\r\022\035\n\021encrypted_content\030\005 \003(\rB\002\020\001\022" |
| "\023\n\007mac_smk\030\006 \003(\rB\002\020\001\022\032\n\016encrypted_pkey\030\007" |
| " \003(\rB\002\020\001\022\"\n\026encrypted_pkey_mac_smk\030\010 \003(\r" |
| "B\002\020\001\022\032\n\016encrypted_x509\030\t \003(\rB\002\020\001\022\"\n\026encr" |
| "ypted_x509_mac_smk\030\n \003(\rB\002\020\001", 1348); |
| ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
| "Messages.proto", &protobuf_RegisterTypes); |
| InitialMessage::default_instance_ = new InitialMessage(); |
| MessageMsg0::default_instance_ = new MessageMsg0(); |
| MessageMSG1::default_instance_ = new MessageMSG1(); |
| MessageMSG2::default_instance_ = new MessageMSG2(); |
| MessageMSG3::default_instance_ = new MessageMSG3(); |
| AttestationMessage::default_instance_ = new AttestationMessage(); |
| SecretMessage::default_instance_ = new SecretMessage(); |
| InitialMessage::default_instance_->InitAsDefaultInstance(); |
| MessageMsg0::default_instance_->InitAsDefaultInstance(); |
| MessageMSG1::default_instance_->InitAsDefaultInstance(); |
| MessageMSG2::default_instance_->InitAsDefaultInstance(); |
| MessageMSG3::default_instance_->InitAsDefaultInstance(); |
| AttestationMessage::default_instance_->InitAsDefaultInstance(); |
| SecretMessage::default_instance_->InitAsDefaultInstance(); |
| ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Messages_2eproto); |
| } |
| |
| // Force AddDescriptors() to be called at static initialization time. |
| struct StaticDescriptorInitializer_Messages_2eproto { |
| StaticDescriptorInitializer_Messages_2eproto() { |
| protobuf_AddDesc_Messages_2eproto(); |
| } |
| } static_descriptor_initializer_Messages_2eproto_; |
| |
| // =================================================================== |
| |
| #ifndef _MSC_VER |
| const int InitialMessage::kTypeFieldNumber; |
| const int InitialMessage::kSizeFieldNumber; |
| #endif // !_MSC_VER |
| |
| InitialMessage::InitialMessage() |
| : ::google::protobuf::Message() { |
| SharedCtor(); |
| // @@protoc_insertion_point(constructor:Messages.InitialMessage) |
| } |
| |
| void InitialMessage::InitAsDefaultInstance() { |
| } |
| |
| InitialMessage::InitialMessage(const InitialMessage& from) |
| : ::google::protobuf::Message() { |
| SharedCtor(); |
| MergeFrom(from); |
| // @@protoc_insertion_point(copy_constructor:Messages.InitialMessage) |
| } |
| |
| void InitialMessage::SharedCtor() { |
| _cached_size_ = 0; |
| type_ = 0u; |
| size_ = 0u; |
| ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| } |
| |
| InitialMessage::~InitialMessage() { |
| // @@protoc_insertion_point(destructor:Messages.InitialMessage) |
| SharedDtor(); |
| } |
| |
| void InitialMessage::SharedDtor() { |
| if (this != default_instance_) { |
| } |
| } |
| |
| void InitialMessage::SetCachedSize(int size) const { |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _cached_size_ = size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| } |
| const ::google::protobuf::Descriptor* InitialMessage::descriptor() { |
| protobuf_AssignDescriptorsOnce(); |
| return InitialMessage_descriptor_; |
| } |
| |
| const InitialMessage& InitialMessage::default_instance() { |
| if (default_instance_ == NULL) protobuf_AddDesc_Messages_2eproto(); |
| return *default_instance_; |
| } |
| |
| InitialMessage* InitialMessage::default_instance_ = NULL; |
| |
| InitialMessage* InitialMessage::New() const { |
| return new InitialMessage; |
| } |
| |
| void InitialMessage::Clear() { |
| #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ |
| &reinterpret_cast<InitialMessage*>(16)->f) - \ |
| reinterpret_cast<char*>(16)) |
| |
| #define ZR_(first, last) do { \ |
| size_t f = OFFSET_OF_FIELD_(first); \ |
| size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ |
| ::memset(&first, 0, n); \ |
| } while (0) |
| |
| ZR_(type_, size_); |
| |
| #undef OFFSET_OF_FIELD_ |
| #undef ZR_ |
| |
| ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| mutable_unknown_fields()->Clear(); |
| } |
| |
| bool InitialMessage::MergePartialFromCodedStream( |
| ::google::protobuf::io::CodedInputStream* input) { |
| #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| ::google::protobuf::uint32 tag; |
| // @@protoc_insertion_point(parse_start:Messages.InitialMessage) |
| for (;;) { |
| ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| tag = p.first; |
| if (!p.second) goto handle_unusual; |
| switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| // required uint32 type = 1; |
| case 1: { |
| if (tag == 8) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &type_))); |
| set_has_type(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(16)) goto parse_size; |
| break; |
| } |
| |
| // optional uint32 size = 2; |
| case 2: { |
| if (tag == 16) { |
| parse_size: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &size_))); |
| set_has_size(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectAtEnd()) goto success; |
| break; |
| } |
| |
| default: { |
| handle_unusual: |
| if (tag == 0 || |
| ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| goto success; |
| } |
| DO_(::google::protobuf::internal::WireFormat::SkipField( |
| input, tag, mutable_unknown_fields())); |
| break; |
| } |
| } |
| } |
| success: |
| // @@protoc_insertion_point(parse_success:Messages.InitialMessage) |
| return true; |
| failure: |
| // @@protoc_insertion_point(parse_failure:Messages.InitialMessage) |
| return false; |
| #undef DO_ |
| } |
| |
| void InitialMessage::SerializeWithCachedSizes( |
| ::google::protobuf::io::CodedOutputStream* output) const { |
| // @@protoc_insertion_point(serialize_start:Messages.InitialMessage) |
| // required uint32 type = 1; |
| if (has_type()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->type(), output); |
| } |
| |
| // optional uint32 size = 2; |
| if (has_size()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->size(), output); |
| } |
| |
| if (!unknown_fields().empty()) { |
| ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| unknown_fields(), output); |
| } |
| // @@protoc_insertion_point(serialize_end:Messages.InitialMessage) |
| } |
| |
| ::google::protobuf::uint8* InitialMessage::SerializeWithCachedSizesToArray( |
| ::google::protobuf::uint8* target) const { |
| // @@protoc_insertion_point(serialize_to_array_start:Messages.InitialMessage) |
| // required uint32 type = 1; |
| if (has_type()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->type(), target); |
| } |
| |
| // optional uint32 size = 2; |
| if (has_size()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->size(), target); |
| } |
| |
| if (!unknown_fields().empty()) { |
| target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| unknown_fields(), target); |
| } |
| // @@protoc_insertion_point(serialize_to_array_end:Messages.InitialMessage) |
| return target; |
| } |
| |
| int InitialMessage::ByteSize() const { |
| int total_size = 0; |
| |
| if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| // required uint32 type = 1; |
| if (has_type()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->type()); |
| } |
| |
| // optional uint32 size = 2; |
| if (has_size()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->size()); |
| } |
| |
| } |
| if (!unknown_fields().empty()) { |
| total_size += |
| ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| unknown_fields()); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _cached_size_ = total_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| return total_size; |
| } |
| |
| void InitialMessage::MergeFrom(const ::google::protobuf::Message& from) { |
| GOOGLE_CHECK_NE(&from, this); |
| const InitialMessage* source = |
| ::google::protobuf::internal::dynamic_cast_if_available<const InitialMessage*>( |
| &from); |
| if (source == NULL) { |
| ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| } else { |
| MergeFrom(*source); |
| } |
| } |
| |
| void InitialMessage::MergeFrom(const InitialMessage& from) { |
| GOOGLE_CHECK_NE(&from, this); |
| if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| if (from.has_type()) { |
| set_type(from.type()); |
| } |
| if (from.has_size()) { |
| set_size(from.size()); |
| } |
| } |
| mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| } |
| |
| void InitialMessage::CopyFrom(const ::google::protobuf::Message& from) { |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void InitialMessage::CopyFrom(const InitialMessage& from) { |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool InitialMessage::IsInitialized() const { |
| if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
| |
| return true; |
| } |
| |
| void InitialMessage::Swap(InitialMessage* other) { |
| if (other != this) { |
| std::swap(type_, other->type_); |
| std::swap(size_, other->size_); |
| std::swap(_has_bits_[0], other->_has_bits_[0]); |
| _unknown_fields_.Swap(&other->_unknown_fields_); |
| std::swap(_cached_size_, other->_cached_size_); |
| } |
| } |
| |
| ::google::protobuf::Metadata InitialMessage::GetMetadata() const { |
| protobuf_AssignDescriptorsOnce(); |
| ::google::protobuf::Metadata metadata; |
| metadata.descriptor = InitialMessage_descriptor_; |
| metadata.reflection = InitialMessage_reflection_; |
| return metadata; |
| } |
| |
| |
| // =================================================================== |
| |
| #ifndef _MSC_VER |
| const int MessageMsg0::kTypeFieldNumber; |
| const int MessageMsg0::kEpidFieldNumber; |
| const int MessageMsg0::kStatusFieldNumber; |
| #endif // !_MSC_VER |
| |
| MessageMsg0::MessageMsg0() |
| : ::google::protobuf::Message() { |
| SharedCtor(); |
| // @@protoc_insertion_point(constructor:Messages.MessageMsg0) |
| } |
| |
| void MessageMsg0::InitAsDefaultInstance() { |
| } |
| |
| MessageMsg0::MessageMsg0(const MessageMsg0& from) |
| : ::google::protobuf::Message() { |
| SharedCtor(); |
| MergeFrom(from); |
| // @@protoc_insertion_point(copy_constructor:Messages.MessageMsg0) |
| } |
| |
| void MessageMsg0::SharedCtor() { |
| _cached_size_ = 0; |
| type_ = 0u; |
| epid_ = 0u; |
| status_ = 0u; |
| ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| } |
| |
| MessageMsg0::~MessageMsg0() { |
| // @@protoc_insertion_point(destructor:Messages.MessageMsg0) |
| SharedDtor(); |
| } |
| |
| void MessageMsg0::SharedDtor() { |
| if (this != default_instance_) { |
| } |
| } |
| |
| void MessageMsg0::SetCachedSize(int size) const { |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _cached_size_ = size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| } |
| const ::google::protobuf::Descriptor* MessageMsg0::descriptor() { |
| protobuf_AssignDescriptorsOnce(); |
| return MessageMsg0_descriptor_; |
| } |
| |
| const MessageMsg0& MessageMsg0::default_instance() { |
| if (default_instance_ == NULL) protobuf_AddDesc_Messages_2eproto(); |
| return *default_instance_; |
| } |
| |
| MessageMsg0* MessageMsg0::default_instance_ = NULL; |
| |
| MessageMsg0* MessageMsg0::New() const { |
| return new MessageMsg0; |
| } |
| |
| void MessageMsg0::Clear() { |
| #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ |
| &reinterpret_cast<MessageMsg0*>(16)->f) - \ |
| reinterpret_cast<char*>(16)) |
| |
| #define ZR_(first, last) do { \ |
| size_t f = OFFSET_OF_FIELD_(first); \ |
| size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ |
| ::memset(&first, 0, n); \ |
| } while (0) |
| |
| ZR_(type_, status_); |
| |
| #undef OFFSET_OF_FIELD_ |
| #undef ZR_ |
| |
| ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| mutable_unknown_fields()->Clear(); |
| } |
| |
| bool MessageMsg0::MergePartialFromCodedStream( |
| ::google::protobuf::io::CodedInputStream* input) { |
| #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| ::google::protobuf::uint32 tag; |
| // @@protoc_insertion_point(parse_start:Messages.MessageMsg0) |
| for (;;) { |
| ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| tag = p.first; |
| if (!p.second) goto handle_unusual; |
| switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| // required uint32 type = 1; |
| case 1: { |
| if (tag == 8) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &type_))); |
| set_has_type(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(16)) goto parse_epid; |
| break; |
| } |
| |
| // required uint32 epid = 2; |
| case 2: { |
| if (tag == 16) { |
| parse_epid: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &epid_))); |
| set_has_epid(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(24)) goto parse_status; |
| break; |
| } |
| |
| // optional uint32 status = 3; |
| case 3: { |
| if (tag == 24) { |
| parse_status: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &status_))); |
| set_has_status(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectAtEnd()) goto success; |
| break; |
| } |
| |
| default: { |
| handle_unusual: |
| if (tag == 0 || |
| ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| goto success; |
| } |
| DO_(::google::protobuf::internal::WireFormat::SkipField( |
| input, tag, mutable_unknown_fields())); |
| break; |
| } |
| } |
| } |
| success: |
| // @@protoc_insertion_point(parse_success:Messages.MessageMsg0) |
| return true; |
| failure: |
| // @@protoc_insertion_point(parse_failure:Messages.MessageMsg0) |
| return false; |
| #undef DO_ |
| } |
| |
| void MessageMsg0::SerializeWithCachedSizes( |
| ::google::protobuf::io::CodedOutputStream* output) const { |
| // @@protoc_insertion_point(serialize_start:Messages.MessageMsg0) |
| // required uint32 type = 1; |
| if (has_type()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->type(), output); |
| } |
| |
| // required uint32 epid = 2; |
| if (has_epid()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->epid(), output); |
| } |
| |
| // optional uint32 status = 3; |
| if (has_status()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->status(), output); |
| } |
| |
| if (!unknown_fields().empty()) { |
| ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| unknown_fields(), output); |
| } |
| // @@protoc_insertion_point(serialize_end:Messages.MessageMsg0) |
| } |
| |
| ::google::protobuf::uint8* MessageMsg0::SerializeWithCachedSizesToArray( |
| ::google::protobuf::uint8* target) const { |
| // @@protoc_insertion_point(serialize_to_array_start:Messages.MessageMsg0) |
| // required uint32 type = 1; |
| if (has_type()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->type(), target); |
| } |
| |
| // required uint32 epid = 2; |
| if (has_epid()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->epid(), target); |
| } |
| |
| // optional uint32 status = 3; |
| if (has_status()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->status(), target); |
| } |
| |
| if (!unknown_fields().empty()) { |
| target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| unknown_fields(), target); |
| } |
| // @@protoc_insertion_point(serialize_to_array_end:Messages.MessageMsg0) |
| return target; |
| } |
| |
| int MessageMsg0::ByteSize() const { |
| int total_size = 0; |
| |
| if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| // required uint32 type = 1; |
| if (has_type()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->type()); |
| } |
| |
| // required uint32 epid = 2; |
| if (has_epid()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->epid()); |
| } |
| |
| // optional uint32 status = 3; |
| if (has_status()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->status()); |
| } |
| |
| } |
| if (!unknown_fields().empty()) { |
| total_size += |
| ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| unknown_fields()); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _cached_size_ = total_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| return total_size; |
| } |
| |
| void MessageMsg0::MergeFrom(const ::google::protobuf::Message& from) { |
| GOOGLE_CHECK_NE(&from, this); |
| const MessageMsg0* source = |
| ::google::protobuf::internal::dynamic_cast_if_available<const MessageMsg0*>( |
| &from); |
| if (source == NULL) { |
| ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| } else { |
| MergeFrom(*source); |
| } |
| } |
| |
| void MessageMsg0::MergeFrom(const MessageMsg0& from) { |
| GOOGLE_CHECK_NE(&from, this); |
| if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| if (from.has_type()) { |
| set_type(from.type()); |
| } |
| if (from.has_epid()) { |
| set_epid(from.epid()); |
| } |
| if (from.has_status()) { |
| set_status(from.status()); |
| } |
| } |
| mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| } |
| |
| void MessageMsg0::CopyFrom(const ::google::protobuf::Message& from) { |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void MessageMsg0::CopyFrom(const MessageMsg0& from) { |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool MessageMsg0::IsInitialized() const { |
| if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
| |
| return true; |
| } |
| |
| void MessageMsg0::Swap(MessageMsg0* other) { |
| if (other != this) { |
| std::swap(type_, other->type_); |
| std::swap(epid_, other->epid_); |
| std::swap(status_, other->status_); |
| std::swap(_has_bits_[0], other->_has_bits_[0]); |
| _unknown_fields_.Swap(&other->_unknown_fields_); |
| std::swap(_cached_size_, other->_cached_size_); |
| } |
| } |
| |
| ::google::protobuf::Metadata MessageMsg0::GetMetadata() const { |
| protobuf_AssignDescriptorsOnce(); |
| ::google::protobuf::Metadata metadata; |
| metadata.descriptor = MessageMsg0_descriptor_; |
| metadata.reflection = MessageMsg0_reflection_; |
| return metadata; |
| } |
| |
| |
| // =================================================================== |
| |
| #ifndef _MSC_VER |
| const int MessageMSG1::kTypeFieldNumber; |
| const int MessageMSG1::kGaXFieldNumber; |
| const int MessageMSG1::kGaYFieldNumber; |
| const int MessageMSG1::kGIDFieldNumber; |
| #endif // !_MSC_VER |
| |
| MessageMSG1::MessageMSG1() |
| : ::google::protobuf::Message() { |
| SharedCtor(); |
| // @@protoc_insertion_point(constructor:Messages.MessageMSG1) |
| } |
| |
| void MessageMSG1::InitAsDefaultInstance() { |
| } |
| |
| MessageMSG1::MessageMSG1(const MessageMSG1& from) |
| : ::google::protobuf::Message() { |
| SharedCtor(); |
| MergeFrom(from); |
| // @@protoc_insertion_point(copy_constructor:Messages.MessageMSG1) |
| } |
| |
| void MessageMSG1::SharedCtor() { |
| _cached_size_ = 0; |
| type_ = 0u; |
| ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| } |
| |
| MessageMSG1::~MessageMSG1() { |
| // @@protoc_insertion_point(destructor:Messages.MessageMSG1) |
| SharedDtor(); |
| } |
| |
| void MessageMSG1::SharedDtor() { |
| if (this != default_instance_) { |
| } |
| } |
| |
| void MessageMSG1::SetCachedSize(int size) const { |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _cached_size_ = size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| } |
| const ::google::protobuf::Descriptor* MessageMSG1::descriptor() { |
| protobuf_AssignDescriptorsOnce(); |
| return MessageMSG1_descriptor_; |
| } |
| |
| const MessageMSG1& MessageMSG1::default_instance() { |
| if (default_instance_ == NULL) protobuf_AddDesc_Messages_2eproto(); |
| return *default_instance_; |
| } |
| |
| MessageMSG1* MessageMSG1::default_instance_ = NULL; |
| |
| MessageMSG1* MessageMSG1::New() const { |
| return new MessageMSG1; |
| } |
| |
| void MessageMSG1::Clear() { |
| type_ = 0u; |
| gax_.Clear(); |
| gay_.Clear(); |
| gid_.Clear(); |
| ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| mutable_unknown_fields()->Clear(); |
| } |
| |
| bool MessageMSG1::MergePartialFromCodedStream( |
| ::google::protobuf::io::CodedInputStream* input) { |
| #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| ::google::protobuf::uint32 tag; |
| // @@protoc_insertion_point(parse_start:Messages.MessageMSG1) |
| for (;;) { |
| ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| tag = p.first; |
| if (!p.second) goto handle_unusual; |
| switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| // required uint32 type = 1; |
| case 1: { |
| if (tag == 8) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &type_))); |
| set_has_type(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(18)) goto parse_GaX; |
| break; |
| } |
| |
| // repeated uint32 GaX = 2 [packed = true]; |
| case 2: { |
| if (tag == 18) { |
| parse_GaX: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_gax()))); |
| } else if (tag == 16) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 18, input, this->mutable_gax()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(26)) goto parse_GaY; |
| break; |
| } |
| |
| // repeated uint32 GaY = 3 [packed = true]; |
| case 3: { |
| if (tag == 26) { |
| parse_GaY: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_gay()))); |
| } else if (tag == 24) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 26, input, this->mutable_gay()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(34)) goto parse_GID; |
| break; |
| } |
| |
| // repeated uint32 GID = 4 [packed = true]; |
| case 4: { |
| if (tag == 34) { |
| parse_GID: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_gid()))); |
| } else if (tag == 32) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 34, input, this->mutable_gid()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectAtEnd()) goto success; |
| break; |
| } |
| |
| default: { |
| handle_unusual: |
| if (tag == 0 || |
| ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| goto success; |
| } |
| DO_(::google::protobuf::internal::WireFormat::SkipField( |
| input, tag, mutable_unknown_fields())); |
| break; |
| } |
| } |
| } |
| success: |
| // @@protoc_insertion_point(parse_success:Messages.MessageMSG1) |
| return true; |
| failure: |
| // @@protoc_insertion_point(parse_failure:Messages.MessageMSG1) |
| return false; |
| #undef DO_ |
| } |
| |
| void MessageMSG1::SerializeWithCachedSizes( |
| ::google::protobuf::io::CodedOutputStream* output) const { |
| // @@protoc_insertion_point(serialize_start:Messages.MessageMSG1) |
| // required uint32 type = 1; |
| if (has_type()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->type(), output); |
| } |
| |
| // repeated uint32 GaX = 2 [packed = true]; |
| if (this->gax_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_gax_cached_byte_size_); |
| } |
| for (int i = 0; i < this->gax_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->gax(i), output); |
| } |
| |
| // repeated uint32 GaY = 3 [packed = true]; |
| if (this->gay_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_gay_cached_byte_size_); |
| } |
| for (int i = 0; i < this->gay_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->gay(i), output); |
| } |
| |
| // repeated uint32 GID = 4 [packed = true]; |
| if (this->gid_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_gid_cached_byte_size_); |
| } |
| for (int i = 0; i < this->gid_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->gid(i), output); |
| } |
| |
| if (!unknown_fields().empty()) { |
| ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| unknown_fields(), output); |
| } |
| // @@protoc_insertion_point(serialize_end:Messages.MessageMSG1) |
| } |
| |
| ::google::protobuf::uint8* MessageMSG1::SerializeWithCachedSizesToArray( |
| ::google::protobuf::uint8* target) const { |
| // @@protoc_insertion_point(serialize_to_array_start:Messages.MessageMSG1) |
| // required uint32 type = 1; |
| if (has_type()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->type(), target); |
| } |
| |
| // repeated uint32 GaX = 2 [packed = true]; |
| if (this->gax_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 2, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _gax_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->gax_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->gax(i), target); |
| } |
| |
| // repeated uint32 GaY = 3 [packed = true]; |
| if (this->gay_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 3, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _gay_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->gay_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->gay(i), target); |
| } |
| |
| // repeated uint32 GID = 4 [packed = true]; |
| if (this->gid_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 4, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _gid_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->gid_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->gid(i), target); |
| } |
| |
| if (!unknown_fields().empty()) { |
| target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| unknown_fields(), target); |
| } |
| // @@protoc_insertion_point(serialize_to_array_end:Messages.MessageMSG1) |
| return target; |
| } |
| |
| int MessageMSG1::ByteSize() const { |
| int total_size = 0; |
| |
| if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| // required uint32 type = 1; |
| if (has_type()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->type()); |
| } |
| |
| } |
| // repeated uint32 GaX = 2 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->gax_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->gax(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _gax_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 GaY = 3 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->gay_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->gay(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _gay_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 GID = 4 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->gid_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->gid(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _gid_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| if (!unknown_fields().empty()) { |
| total_size += |
| ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| unknown_fields()); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _cached_size_ = total_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| return total_size; |
| } |
| |
| void MessageMSG1::MergeFrom(const ::google::protobuf::Message& from) { |
| GOOGLE_CHECK_NE(&from, this); |
| const MessageMSG1* source = |
| ::google::protobuf::internal::dynamic_cast_if_available<const MessageMSG1*>( |
| &from); |
| if (source == NULL) { |
| ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| } else { |
| MergeFrom(*source); |
| } |
| } |
| |
| void MessageMSG1::MergeFrom(const MessageMSG1& from) { |
| GOOGLE_CHECK_NE(&from, this); |
| gax_.MergeFrom(from.gax_); |
| gay_.MergeFrom(from.gay_); |
| gid_.MergeFrom(from.gid_); |
| if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| if (from.has_type()) { |
| set_type(from.type()); |
| } |
| } |
| mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| } |
| |
| void MessageMSG1::CopyFrom(const ::google::protobuf::Message& from) { |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void MessageMSG1::CopyFrom(const MessageMSG1& from) { |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool MessageMSG1::IsInitialized() const { |
| if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
| |
| return true; |
| } |
| |
| void MessageMSG1::Swap(MessageMSG1* other) { |
| if (other != this) { |
| std::swap(type_, other->type_); |
| gax_.Swap(&other->gax_); |
| gay_.Swap(&other->gay_); |
| gid_.Swap(&other->gid_); |
| std::swap(_has_bits_[0], other->_has_bits_[0]); |
| _unknown_fields_.Swap(&other->_unknown_fields_); |
| std::swap(_cached_size_, other->_cached_size_); |
| } |
| } |
| |
| ::google::protobuf::Metadata MessageMSG1::GetMetadata() const { |
| protobuf_AssignDescriptorsOnce(); |
| ::google::protobuf::Metadata metadata; |
| metadata.descriptor = MessageMSG1_descriptor_; |
| metadata.reflection = MessageMSG1_reflection_; |
| return metadata; |
| } |
| |
| |
| // =================================================================== |
| |
| #ifndef _MSC_VER |
| const int MessageMSG2::kTypeFieldNumber; |
| const int MessageMSG2::kSizeFieldNumber; |
| const int MessageMSG2::kPublicKeyGxFieldNumber; |
| const int MessageMSG2::kPublicKeyGyFieldNumber; |
| const int MessageMSG2::kQuoteTypeFieldNumber; |
| const int MessageMSG2::kSpidFieldNumber; |
| const int MessageMSG2::kCmacKdfIdFieldNumber; |
| const int MessageMSG2::kSignatureXFieldNumber; |
| const int MessageMSG2::kSignatureYFieldNumber; |
| const int MessageMSG2::kSmacFieldNumber; |
| const int MessageMSG2::kSizeSigrlFieldNumber; |
| const int MessageMSG2::kSigrlFieldNumber; |
| #endif // !_MSC_VER |
| |
| MessageMSG2::MessageMSG2() |
| : ::google::protobuf::Message() { |
| SharedCtor(); |
| // @@protoc_insertion_point(constructor:Messages.MessageMSG2) |
| } |
| |
| void MessageMSG2::InitAsDefaultInstance() { |
| } |
| |
| MessageMSG2::MessageMSG2(const MessageMSG2& from) |
| : ::google::protobuf::Message() { |
| SharedCtor(); |
| MergeFrom(from); |
| // @@protoc_insertion_point(copy_constructor:Messages.MessageMSG2) |
| } |
| |
| void MessageMSG2::SharedCtor() { |
| _cached_size_ = 0; |
| type_ = 0u; |
| size_ = 0u; |
| quote_type_ = 0u; |
| cmac_kdf_id_ = 0u; |
| size_sigrl_ = 0u; |
| ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| } |
| |
| MessageMSG2::~MessageMSG2() { |
| // @@protoc_insertion_point(destructor:Messages.MessageMSG2) |
| SharedDtor(); |
| } |
| |
| void MessageMSG2::SharedDtor() { |
| if (this != default_instance_) { |
| } |
| } |
| |
| void MessageMSG2::SetCachedSize(int size) const { |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _cached_size_ = size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| } |
| const ::google::protobuf::Descriptor* MessageMSG2::descriptor() { |
| protobuf_AssignDescriptorsOnce(); |
| return MessageMSG2_descriptor_; |
| } |
| |
| const MessageMSG2& MessageMSG2::default_instance() { |
| if (default_instance_ == NULL) protobuf_AddDesc_Messages_2eproto(); |
| return *default_instance_; |
| } |
| |
| MessageMSG2* MessageMSG2::default_instance_ = NULL; |
| |
| MessageMSG2* MessageMSG2::New() const { |
| return new MessageMSG2; |
| } |
| |
| void MessageMSG2::Clear() { |
| #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ |
| &reinterpret_cast<MessageMSG2*>(16)->f) - \ |
| reinterpret_cast<char*>(16)) |
| |
| #define ZR_(first, last) do { \ |
| size_t f = OFFSET_OF_FIELD_(first); \ |
| size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ |
| ::memset(&first, 0, n); \ |
| } while (0) |
| |
| ZR_(type_, size_); |
| ZR_(quote_type_, cmac_kdf_id_); |
| size_sigrl_ = 0u; |
| |
| #undef OFFSET_OF_FIELD_ |
| #undef ZR_ |
| |
| public_key_gx_.Clear(); |
| public_key_gy_.Clear(); |
| spid_.Clear(); |
| signature_x_.Clear(); |
| signature_y_.Clear(); |
| smac_.Clear(); |
| sigrl_.Clear(); |
| ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| mutable_unknown_fields()->Clear(); |
| } |
| |
| bool MessageMSG2::MergePartialFromCodedStream( |
| ::google::protobuf::io::CodedInputStream* input) { |
| #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| ::google::protobuf::uint32 tag; |
| // @@protoc_insertion_point(parse_start:Messages.MessageMSG2) |
| for (;;) { |
| ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| tag = p.first; |
| if (!p.second) goto handle_unusual; |
| switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| // required uint32 type = 1; |
| case 1: { |
| if (tag == 8) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &type_))); |
| set_has_type(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(16)) goto parse_size; |
| break; |
| } |
| |
| // optional uint32 size = 2; |
| case 2: { |
| if (tag == 16) { |
| parse_size: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &size_))); |
| set_has_size(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(26)) goto parse_public_key_gx; |
| break; |
| } |
| |
| // repeated uint32 public_key_gx = 3 [packed = true]; |
| case 3: { |
| if (tag == 26) { |
| parse_public_key_gx: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_public_key_gx()))); |
| } else if (tag == 24) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 26, input, this->mutable_public_key_gx()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(34)) goto parse_public_key_gy; |
| break; |
| } |
| |
| // repeated uint32 public_key_gy = 4 [packed = true]; |
| case 4: { |
| if (tag == 34) { |
| parse_public_key_gy: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_public_key_gy()))); |
| } else if (tag == 32) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 34, input, this->mutable_public_key_gy()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(40)) goto parse_quote_type; |
| break; |
| } |
| |
| // optional uint32 quote_type = 5; |
| case 5: { |
| if (tag == 40) { |
| parse_quote_type: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, "e_type_))); |
| set_has_quote_type(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(50)) goto parse_spid; |
| break; |
| } |
| |
| // repeated uint32 spid = 6 [packed = true]; |
| case 6: { |
| if (tag == 50) { |
| parse_spid: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_spid()))); |
| } else if (tag == 48) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 50, input, this->mutable_spid()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(56)) goto parse_cmac_kdf_id; |
| break; |
| } |
| |
| // optional uint32 cmac_kdf_id = 7; |
| case 7: { |
| if (tag == 56) { |
| parse_cmac_kdf_id: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &cmac_kdf_id_))); |
| set_has_cmac_kdf_id(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(66)) goto parse_signature_x; |
| break; |
| } |
| |
| // repeated uint32 signature_x = 8 [packed = true]; |
| case 8: { |
| if (tag == 66) { |
| parse_signature_x: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_signature_x()))); |
| } else if (tag == 64) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 66, input, this->mutable_signature_x()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(74)) goto parse_signature_y; |
| break; |
| } |
| |
| // repeated uint32 signature_y = 9 [packed = true]; |
| case 9: { |
| if (tag == 74) { |
| parse_signature_y: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_signature_y()))); |
| } else if (tag == 72) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 74, input, this->mutable_signature_y()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(82)) goto parse_smac; |
| break; |
| } |
| |
| // repeated uint32 smac = 10 [packed = true]; |
| case 10: { |
| if (tag == 82) { |
| parse_smac: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_smac()))); |
| } else if (tag == 80) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 82, input, this->mutable_smac()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(88)) goto parse_size_sigrl; |
| break; |
| } |
| |
| // optional uint32 size_sigrl = 11; |
| case 11: { |
| if (tag == 88) { |
| parse_size_sigrl: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &size_sigrl_))); |
| set_has_size_sigrl(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(98)) goto parse_sigrl; |
| break; |
| } |
| |
| // repeated uint32 sigrl = 12 [packed = true]; |
| case 12: { |
| if (tag == 98) { |
| parse_sigrl: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_sigrl()))); |
| } else if (tag == 96) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 98, input, this->mutable_sigrl()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectAtEnd()) goto success; |
| break; |
| } |
| |
| default: { |
| handle_unusual: |
| if (tag == 0 || |
| ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| goto success; |
| } |
| DO_(::google::protobuf::internal::WireFormat::SkipField( |
| input, tag, mutable_unknown_fields())); |
| break; |
| } |
| } |
| } |
| success: |
| // @@protoc_insertion_point(parse_success:Messages.MessageMSG2) |
| return true; |
| failure: |
| // @@protoc_insertion_point(parse_failure:Messages.MessageMSG2) |
| return false; |
| #undef DO_ |
| } |
| |
| void MessageMSG2::SerializeWithCachedSizes( |
| ::google::protobuf::io::CodedOutputStream* output) const { |
| // @@protoc_insertion_point(serialize_start:Messages.MessageMSG2) |
| // required uint32 type = 1; |
| if (has_type()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->type(), output); |
| } |
| |
| // optional uint32 size = 2; |
| if (has_size()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->size(), output); |
| } |
| |
| // repeated uint32 public_key_gx = 3 [packed = true]; |
| if (this->public_key_gx_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_public_key_gx_cached_byte_size_); |
| } |
| for (int i = 0; i < this->public_key_gx_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->public_key_gx(i), output); |
| } |
| |
| // repeated uint32 public_key_gy = 4 [packed = true]; |
| if (this->public_key_gy_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_public_key_gy_cached_byte_size_); |
| } |
| for (int i = 0; i < this->public_key_gy_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->public_key_gy(i), output); |
| } |
| |
| // optional uint32 quote_type = 5; |
| if (has_quote_type()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->quote_type(), output); |
| } |
| |
| // repeated uint32 spid = 6 [packed = true]; |
| if (this->spid_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_spid_cached_byte_size_); |
| } |
| for (int i = 0; i < this->spid_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->spid(i), output); |
| } |
| |
| // optional uint32 cmac_kdf_id = 7; |
| if (has_cmac_kdf_id()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->cmac_kdf_id(), output); |
| } |
| |
| // repeated uint32 signature_x = 8 [packed = true]; |
| if (this->signature_x_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_signature_x_cached_byte_size_); |
| } |
| for (int i = 0; i < this->signature_x_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->signature_x(i), output); |
| } |
| |
| // repeated uint32 signature_y = 9 [packed = true]; |
| if (this->signature_y_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_signature_y_cached_byte_size_); |
| } |
| for (int i = 0; i < this->signature_y_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->signature_y(i), output); |
| } |
| |
| // repeated uint32 smac = 10 [packed = true]; |
| if (this->smac_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(10, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_smac_cached_byte_size_); |
| } |
| for (int i = 0; i < this->smac_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->smac(i), output); |
| } |
| |
| // optional uint32 size_sigrl = 11; |
| if (has_size_sigrl()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->size_sigrl(), output); |
| } |
| |
| // repeated uint32 sigrl = 12 [packed = true]; |
| if (this->sigrl_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(12, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_sigrl_cached_byte_size_); |
| } |
| for (int i = 0; i < this->sigrl_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->sigrl(i), output); |
| } |
| |
| if (!unknown_fields().empty()) { |
| ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| unknown_fields(), output); |
| } |
| // @@protoc_insertion_point(serialize_end:Messages.MessageMSG2) |
| } |
| |
| ::google::protobuf::uint8* MessageMSG2::SerializeWithCachedSizesToArray( |
| ::google::protobuf::uint8* target) const { |
| // @@protoc_insertion_point(serialize_to_array_start:Messages.MessageMSG2) |
| // required uint32 type = 1; |
| if (has_type()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->type(), target); |
| } |
| |
| // optional uint32 size = 2; |
| if (has_size()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->size(), target); |
| } |
| |
| // repeated uint32 public_key_gx = 3 [packed = true]; |
| if (this->public_key_gx_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 3, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _public_key_gx_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->public_key_gx_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->public_key_gx(i), target); |
| } |
| |
| // repeated uint32 public_key_gy = 4 [packed = true]; |
| if (this->public_key_gy_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 4, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _public_key_gy_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->public_key_gy_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->public_key_gy(i), target); |
| } |
| |
| // optional uint32 quote_type = 5; |
| if (has_quote_type()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->quote_type(), target); |
| } |
| |
| // repeated uint32 spid = 6 [packed = true]; |
| if (this->spid_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 6, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _spid_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->spid_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->spid(i), target); |
| } |
| |
| // optional uint32 cmac_kdf_id = 7; |
| if (has_cmac_kdf_id()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->cmac_kdf_id(), target); |
| } |
| |
| // repeated uint32 signature_x = 8 [packed = true]; |
| if (this->signature_x_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 8, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _signature_x_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->signature_x_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->signature_x(i), target); |
| } |
| |
| // repeated uint32 signature_y = 9 [packed = true]; |
| if (this->signature_y_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 9, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _signature_y_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->signature_y_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->signature_y(i), target); |
| } |
| |
| // repeated uint32 smac = 10 [packed = true]; |
| if (this->smac_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 10, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _smac_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->smac_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->smac(i), target); |
| } |
| |
| // optional uint32 size_sigrl = 11; |
| if (has_size_sigrl()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(11, this->size_sigrl(), target); |
| } |
| |
| // repeated uint32 sigrl = 12 [packed = true]; |
| if (this->sigrl_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 12, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _sigrl_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->sigrl_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->sigrl(i), target); |
| } |
| |
| if (!unknown_fields().empty()) { |
| target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| unknown_fields(), target); |
| } |
| // @@protoc_insertion_point(serialize_to_array_end:Messages.MessageMSG2) |
| return target; |
| } |
| |
| int MessageMSG2::ByteSize() const { |
| int total_size = 0; |
| |
| if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| // required uint32 type = 1; |
| if (has_type()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->type()); |
| } |
| |
| // optional uint32 size = 2; |
| if (has_size()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->size()); |
| } |
| |
| // optional uint32 quote_type = 5; |
| if (has_quote_type()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->quote_type()); |
| } |
| |
| // optional uint32 cmac_kdf_id = 7; |
| if (has_cmac_kdf_id()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->cmac_kdf_id()); |
| } |
| |
| } |
| if (_has_bits_[10 / 32] & (0xffu << (10 % 32))) { |
| // optional uint32 size_sigrl = 11; |
| if (has_size_sigrl()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->size_sigrl()); |
| } |
| |
| } |
| // repeated uint32 public_key_gx = 3 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->public_key_gx_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->public_key_gx(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _public_key_gx_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 public_key_gy = 4 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->public_key_gy_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->public_key_gy(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _public_key_gy_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 spid = 6 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->spid_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->spid(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _spid_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 signature_x = 8 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->signature_x_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->signature_x(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _signature_x_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 signature_y = 9 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->signature_y_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->signature_y(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _signature_y_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 smac = 10 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->smac_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->smac(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _smac_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 sigrl = 12 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->sigrl_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->sigrl(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _sigrl_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| if (!unknown_fields().empty()) { |
| total_size += |
| ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| unknown_fields()); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _cached_size_ = total_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| return total_size; |
| } |
| |
| void MessageMSG2::MergeFrom(const ::google::protobuf::Message& from) { |
| GOOGLE_CHECK_NE(&from, this); |
| const MessageMSG2* source = |
| ::google::protobuf::internal::dynamic_cast_if_available<const MessageMSG2*>( |
| &from); |
| if (source == NULL) { |
| ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| } else { |
| MergeFrom(*source); |
| } |
| } |
| |
| void MessageMSG2::MergeFrom(const MessageMSG2& from) { |
| GOOGLE_CHECK_NE(&from, this); |
| public_key_gx_.MergeFrom(from.public_key_gx_); |
| public_key_gy_.MergeFrom(from.public_key_gy_); |
| spid_.MergeFrom(from.spid_); |
| signature_x_.MergeFrom(from.signature_x_); |
| signature_y_.MergeFrom(from.signature_y_); |
| smac_.MergeFrom(from.smac_); |
| sigrl_.MergeFrom(from.sigrl_); |
| if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| if (from.has_type()) { |
| set_type(from.type()); |
| } |
| if (from.has_size()) { |
| set_size(from.size()); |
| } |
| if (from.has_quote_type()) { |
| set_quote_type(from.quote_type()); |
| } |
| if (from.has_cmac_kdf_id()) { |
| set_cmac_kdf_id(from.cmac_kdf_id()); |
| } |
| } |
| if (from._has_bits_[10 / 32] & (0xffu << (10 % 32))) { |
| if (from.has_size_sigrl()) { |
| set_size_sigrl(from.size_sigrl()); |
| } |
| } |
| mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| } |
| |
| void MessageMSG2::CopyFrom(const ::google::protobuf::Message& from) { |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void MessageMSG2::CopyFrom(const MessageMSG2& from) { |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool MessageMSG2::IsInitialized() const { |
| if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
| |
| return true; |
| } |
| |
| void MessageMSG2::Swap(MessageMSG2* other) { |
| if (other != this) { |
| std::swap(type_, other->type_); |
| std::swap(size_, other->size_); |
| public_key_gx_.Swap(&other->public_key_gx_); |
| public_key_gy_.Swap(&other->public_key_gy_); |
| std::swap(quote_type_, other->quote_type_); |
| spid_.Swap(&other->spid_); |
| std::swap(cmac_kdf_id_, other->cmac_kdf_id_); |
| signature_x_.Swap(&other->signature_x_); |
| signature_y_.Swap(&other->signature_y_); |
| smac_.Swap(&other->smac_); |
| std::swap(size_sigrl_, other->size_sigrl_); |
| sigrl_.Swap(&other->sigrl_); |
| std::swap(_has_bits_[0], other->_has_bits_[0]); |
| _unknown_fields_.Swap(&other->_unknown_fields_); |
| std::swap(_cached_size_, other->_cached_size_); |
| } |
| } |
| |
| ::google::protobuf::Metadata MessageMSG2::GetMetadata() const { |
| protobuf_AssignDescriptorsOnce(); |
| ::google::protobuf::Metadata metadata; |
| metadata.descriptor = MessageMSG2_descriptor_; |
| metadata.reflection = MessageMSG2_reflection_; |
| return metadata; |
| } |
| |
| |
| // =================================================================== |
| |
| #ifndef _MSC_VER |
| const int MessageMSG3::kTypeFieldNumber; |
| const int MessageMSG3::kSizeFieldNumber; |
| const int MessageMSG3::kSgxMacFieldNumber; |
| const int MessageMSG3::kGaxMsg3FieldNumber; |
| const int MessageMSG3::kGayMsg3FieldNumber; |
| const int MessageMSG3::kSecPropertyFieldNumber; |
| const int MessageMSG3::kQuoteFieldNumber; |
| #endif // !_MSC_VER |
| |
| MessageMSG3::MessageMSG3() |
| : ::google::protobuf::Message() { |
| SharedCtor(); |
| // @@protoc_insertion_point(constructor:Messages.MessageMSG3) |
| } |
| |
| void MessageMSG3::InitAsDefaultInstance() { |
| } |
| |
| MessageMSG3::MessageMSG3(const MessageMSG3& from) |
| : ::google::protobuf::Message() { |
| SharedCtor(); |
| MergeFrom(from); |
| // @@protoc_insertion_point(copy_constructor:Messages.MessageMSG3) |
| } |
| |
| void MessageMSG3::SharedCtor() { |
| _cached_size_ = 0; |
| type_ = 0u; |
| size_ = 0u; |
| ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| } |
| |
| MessageMSG3::~MessageMSG3() { |
| // @@protoc_insertion_point(destructor:Messages.MessageMSG3) |
| SharedDtor(); |
| } |
| |
| void MessageMSG3::SharedDtor() { |
| if (this != default_instance_) { |
| } |
| } |
| |
| void MessageMSG3::SetCachedSize(int size) const { |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _cached_size_ = size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| } |
| const ::google::protobuf::Descriptor* MessageMSG3::descriptor() { |
| protobuf_AssignDescriptorsOnce(); |
| return MessageMSG3_descriptor_; |
| } |
| |
| const MessageMSG3& MessageMSG3::default_instance() { |
| if (default_instance_ == NULL) protobuf_AddDesc_Messages_2eproto(); |
| return *default_instance_; |
| } |
| |
| MessageMSG3* MessageMSG3::default_instance_ = NULL; |
| |
| MessageMSG3* MessageMSG3::New() const { |
| return new MessageMSG3; |
| } |
| |
| void MessageMSG3::Clear() { |
| #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ |
| &reinterpret_cast<MessageMSG3*>(16)->f) - \ |
| reinterpret_cast<char*>(16)) |
| |
| #define ZR_(first, last) do { \ |
| size_t f = OFFSET_OF_FIELD_(first); \ |
| size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ |
| ::memset(&first, 0, n); \ |
| } while (0) |
| |
| ZR_(type_, size_); |
| |
| #undef OFFSET_OF_FIELD_ |
| #undef ZR_ |
| |
| sgx_mac_.Clear(); |
| gax_msg3_.Clear(); |
| gay_msg3_.Clear(); |
| sec_property_.Clear(); |
| quote_.Clear(); |
| ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| mutable_unknown_fields()->Clear(); |
| } |
| |
| bool MessageMSG3::MergePartialFromCodedStream( |
| ::google::protobuf::io::CodedInputStream* input) { |
| #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| ::google::protobuf::uint32 tag; |
| // @@protoc_insertion_point(parse_start:Messages.MessageMSG3) |
| for (;;) { |
| ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| tag = p.first; |
| if (!p.second) goto handle_unusual; |
| switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| // required uint32 type = 1; |
| case 1: { |
| if (tag == 8) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &type_))); |
| set_has_type(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(16)) goto parse_size; |
| break; |
| } |
| |
| // optional uint32 size = 2; |
| case 2: { |
| if (tag == 16) { |
| parse_size: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &size_))); |
| set_has_size(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(26)) goto parse_sgx_mac; |
| break; |
| } |
| |
| // repeated uint32 sgx_mac = 3 [packed = true]; |
| case 3: { |
| if (tag == 26) { |
| parse_sgx_mac: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_sgx_mac()))); |
| } else if (tag == 24) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 26, input, this->mutable_sgx_mac()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(34)) goto parse_gax_msg3; |
| break; |
| } |
| |
| // repeated uint32 gax_msg3 = 4 [packed = true]; |
| case 4: { |
| if (tag == 34) { |
| parse_gax_msg3: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_gax_msg3()))); |
| } else if (tag == 32) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 34, input, this->mutable_gax_msg3()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(42)) goto parse_gay_msg3; |
| break; |
| } |
| |
| // repeated uint32 gay_msg3 = 5 [packed = true]; |
| case 5: { |
| if (tag == 42) { |
| parse_gay_msg3: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_gay_msg3()))); |
| } else if (tag == 40) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 42, input, this->mutable_gay_msg3()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(50)) goto parse_sec_property; |
| break; |
| } |
| |
| // repeated uint32 sec_property = 6 [packed = true]; |
| case 6: { |
| if (tag == 50) { |
| parse_sec_property: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_sec_property()))); |
| } else if (tag == 48) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 50, input, this->mutable_sec_property()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(58)) goto parse_quote; |
| break; |
| } |
| |
| // repeated uint32 quote = 7 [packed = true]; |
| case 7: { |
| if (tag == 58) { |
| parse_quote: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_quote()))); |
| } else if (tag == 56) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 58, input, this->mutable_quote()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectAtEnd()) goto success; |
| break; |
| } |
| |
| default: { |
| handle_unusual: |
| if (tag == 0 || |
| ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| goto success; |
| } |
| DO_(::google::protobuf::internal::WireFormat::SkipField( |
| input, tag, mutable_unknown_fields())); |
| break; |
| } |
| } |
| } |
| success: |
| // @@protoc_insertion_point(parse_success:Messages.MessageMSG3) |
| return true; |
| failure: |
| // @@protoc_insertion_point(parse_failure:Messages.MessageMSG3) |
| return false; |
| #undef DO_ |
| } |
| |
| void MessageMSG3::SerializeWithCachedSizes( |
| ::google::protobuf::io::CodedOutputStream* output) const { |
| // @@protoc_insertion_point(serialize_start:Messages.MessageMSG3) |
| // required uint32 type = 1; |
| if (has_type()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->type(), output); |
| } |
| |
| // optional uint32 size = 2; |
| if (has_size()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->size(), output); |
| } |
| |
| // repeated uint32 sgx_mac = 3 [packed = true]; |
| if (this->sgx_mac_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_sgx_mac_cached_byte_size_); |
| } |
| for (int i = 0; i < this->sgx_mac_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->sgx_mac(i), output); |
| } |
| |
| // repeated uint32 gax_msg3 = 4 [packed = true]; |
| if (this->gax_msg3_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_gax_msg3_cached_byte_size_); |
| } |
| for (int i = 0; i < this->gax_msg3_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->gax_msg3(i), output); |
| } |
| |
| // repeated uint32 gay_msg3 = 5 [packed = true]; |
| if (this->gay_msg3_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_gay_msg3_cached_byte_size_); |
| } |
| for (int i = 0; i < this->gay_msg3_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->gay_msg3(i), output); |
| } |
| |
| // repeated uint32 sec_property = 6 [packed = true]; |
| if (this->sec_property_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_sec_property_cached_byte_size_); |
| } |
| for (int i = 0; i < this->sec_property_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->sec_property(i), output); |
| } |
| |
| // repeated uint32 quote = 7 [packed = true]; |
| if (this->quote_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(7, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_quote_cached_byte_size_); |
| } |
| for (int i = 0; i < this->quote_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->quote(i), output); |
| } |
| |
| if (!unknown_fields().empty()) { |
| ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| unknown_fields(), output); |
| } |
| // @@protoc_insertion_point(serialize_end:Messages.MessageMSG3) |
| } |
| |
| ::google::protobuf::uint8* MessageMSG3::SerializeWithCachedSizesToArray( |
| ::google::protobuf::uint8* target) const { |
| // @@protoc_insertion_point(serialize_to_array_start:Messages.MessageMSG3) |
| // required uint32 type = 1; |
| if (has_type()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->type(), target); |
| } |
| |
| // optional uint32 size = 2; |
| if (has_size()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->size(), target); |
| } |
| |
| // repeated uint32 sgx_mac = 3 [packed = true]; |
| if (this->sgx_mac_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 3, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _sgx_mac_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->sgx_mac_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->sgx_mac(i), target); |
| } |
| |
| // repeated uint32 gax_msg3 = 4 [packed = true]; |
| if (this->gax_msg3_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 4, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _gax_msg3_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->gax_msg3_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->gax_msg3(i), target); |
| } |
| |
| // repeated uint32 gay_msg3 = 5 [packed = true]; |
| if (this->gay_msg3_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 5, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _gay_msg3_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->gay_msg3_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->gay_msg3(i), target); |
| } |
| |
| // repeated uint32 sec_property = 6 [packed = true]; |
| if (this->sec_property_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 6, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _sec_property_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->sec_property_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->sec_property(i), target); |
| } |
| |
| // repeated uint32 quote = 7 [packed = true]; |
| if (this->quote_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 7, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _quote_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->quote_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->quote(i), target); |
| } |
| |
| if (!unknown_fields().empty()) { |
| target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| unknown_fields(), target); |
| } |
| // @@protoc_insertion_point(serialize_to_array_end:Messages.MessageMSG3) |
| return target; |
| } |
| |
| int MessageMSG3::ByteSize() const { |
| int total_size = 0; |
| |
| if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| // required uint32 type = 1; |
| if (has_type()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->type()); |
| } |
| |
| // optional uint32 size = 2; |
| if (has_size()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->size()); |
| } |
| |
| } |
| // repeated uint32 sgx_mac = 3 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->sgx_mac_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->sgx_mac(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _sgx_mac_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 gax_msg3 = 4 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->gax_msg3_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->gax_msg3(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _gax_msg3_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 gay_msg3 = 5 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->gay_msg3_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->gay_msg3(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _gay_msg3_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 sec_property = 6 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->sec_property_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->sec_property(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _sec_property_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 quote = 7 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->quote_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->quote(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _quote_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| if (!unknown_fields().empty()) { |
| total_size += |
| ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| unknown_fields()); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _cached_size_ = total_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| return total_size; |
| } |
| |
| void MessageMSG3::MergeFrom(const ::google::protobuf::Message& from) { |
| GOOGLE_CHECK_NE(&from, this); |
| const MessageMSG3* source = |
| ::google::protobuf::internal::dynamic_cast_if_available<const MessageMSG3*>( |
| &from); |
| if (source == NULL) { |
| ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| } else { |
| MergeFrom(*source); |
| } |
| } |
| |
| void MessageMSG3::MergeFrom(const MessageMSG3& from) { |
| GOOGLE_CHECK_NE(&from, this); |
| sgx_mac_.MergeFrom(from.sgx_mac_); |
| gax_msg3_.MergeFrom(from.gax_msg3_); |
| gay_msg3_.MergeFrom(from.gay_msg3_); |
| sec_property_.MergeFrom(from.sec_property_); |
| quote_.MergeFrom(from.quote_); |
| if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| if (from.has_type()) { |
| set_type(from.type()); |
| } |
| if (from.has_size()) { |
| set_size(from.size()); |
| } |
| } |
| mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| } |
| |
| void MessageMSG3::CopyFrom(const ::google::protobuf::Message& from) { |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void MessageMSG3::CopyFrom(const MessageMSG3& from) { |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool MessageMSG3::IsInitialized() const { |
| if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
| |
| return true; |
| } |
| |
| void MessageMSG3::Swap(MessageMSG3* other) { |
| if (other != this) { |
| std::swap(type_, other->type_); |
| std::swap(size_, other->size_); |
| sgx_mac_.Swap(&other->sgx_mac_); |
| gax_msg3_.Swap(&other->gax_msg3_); |
| gay_msg3_.Swap(&other->gay_msg3_); |
| sec_property_.Swap(&other->sec_property_); |
| quote_.Swap(&other->quote_); |
| std::swap(_has_bits_[0], other->_has_bits_[0]); |
| _unknown_fields_.Swap(&other->_unknown_fields_); |
| std::swap(_cached_size_, other->_cached_size_); |
| } |
| } |
| |
| ::google::protobuf::Metadata MessageMSG3::GetMetadata() const { |
| protobuf_AssignDescriptorsOnce(); |
| ::google::protobuf::Metadata metadata; |
| metadata.descriptor = MessageMSG3_descriptor_; |
| metadata.reflection = MessageMSG3_reflection_; |
| return metadata; |
| } |
| |
| |
| // =================================================================== |
| |
| #ifndef _MSC_VER |
| const int AttestationMessage::kTypeFieldNumber; |
| const int AttestationMessage::kSizeFieldNumber; |
| const int AttestationMessage::kEpidGroupStatusFieldNumber; |
| const int AttestationMessage::kTcbEvaluationStatusFieldNumber; |
| const int AttestationMessage::kPseEvaluationStatusFieldNumber; |
| const int AttestationMessage::kLatestEquivalentTcbPsvnFieldNumber; |
| const int AttestationMessage::kLatestPseIsvsvnFieldNumber; |
| const int AttestationMessage::kLatestPsdaSvnFieldNumber; |
| const int AttestationMessage::kPerformanceRekeyGidFieldNumber; |
| const int AttestationMessage::kEcSign256XFieldNumber; |
| const int AttestationMessage::kEcSign256YFieldNumber; |
| const int AttestationMessage::kMacSmkFieldNumber; |
| const int AttestationMessage::kResultSizeFieldNumber; |
| const int AttestationMessage::kReservedFieldNumber; |
| const int AttestationMessage::kPayloadTagFieldNumber; |
| const int AttestationMessage::kPayloadFieldNumber; |
| #endif // !_MSC_VER |
| |
| AttestationMessage::AttestationMessage() |
| : ::google::protobuf::Message() { |
| SharedCtor(); |
| // @@protoc_insertion_point(constructor:Messages.AttestationMessage) |
| } |
| |
| void AttestationMessage::InitAsDefaultInstance() { |
| } |
| |
| AttestationMessage::AttestationMessage(const AttestationMessage& from) |
| : ::google::protobuf::Message() { |
| SharedCtor(); |
| MergeFrom(from); |
| // @@protoc_insertion_point(copy_constructor:Messages.AttestationMessage) |
| } |
| |
| void AttestationMessage::SharedCtor() { |
| _cached_size_ = 0; |
| type_ = 0u; |
| size_ = 0u; |
| epid_group_status_ = 0u; |
| tcb_evaluation_status_ = 0u; |
| pse_evaluation_status_ = 0u; |
| result_size_ = 0u; |
| ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| } |
| |
| AttestationMessage::~AttestationMessage() { |
| // @@protoc_insertion_point(destructor:Messages.AttestationMessage) |
| SharedDtor(); |
| } |
| |
| void AttestationMessage::SharedDtor() { |
| if (this != default_instance_) { |
| } |
| } |
| |
| void AttestationMessage::SetCachedSize(int size) const { |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _cached_size_ = size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| } |
| const ::google::protobuf::Descriptor* AttestationMessage::descriptor() { |
| protobuf_AssignDescriptorsOnce(); |
| return AttestationMessage_descriptor_; |
| } |
| |
| const AttestationMessage& AttestationMessage::default_instance() { |
| if (default_instance_ == NULL) protobuf_AddDesc_Messages_2eproto(); |
| return *default_instance_; |
| } |
| |
| AttestationMessage* AttestationMessage::default_instance_ = NULL; |
| |
| AttestationMessage* AttestationMessage::New() const { |
| return new AttestationMessage; |
| } |
| |
| void AttestationMessage::Clear() { |
| #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ |
| &reinterpret_cast<AttestationMessage*>(16)->f) - \ |
| reinterpret_cast<char*>(16)) |
| |
| #define ZR_(first, last) do { \ |
| size_t f = OFFSET_OF_FIELD_(first); \ |
| size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ |
| ::memset(&first, 0, n); \ |
| } while (0) |
| |
| if (_has_bits_[0 / 32] & 31) { |
| ZR_(type_, tcb_evaluation_status_); |
| pse_evaluation_status_ = 0u; |
| } |
| result_size_ = 0u; |
| |
| #undef OFFSET_OF_FIELD_ |
| #undef ZR_ |
| |
| latest_equivalent_tcb_psvn_.Clear(); |
| latest_pse_isvsvn_.Clear(); |
| latest_psda_svn_.Clear(); |
| performance_rekey_gid_.Clear(); |
| ec_sign256_x_.Clear(); |
| ec_sign256_y_.Clear(); |
| mac_smk_.Clear(); |
| reserved_.Clear(); |
| payload_tag_.Clear(); |
| payload_.Clear(); |
| ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| mutable_unknown_fields()->Clear(); |
| } |
| |
| bool AttestationMessage::MergePartialFromCodedStream( |
| ::google::protobuf::io::CodedInputStream* input) { |
| #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| ::google::protobuf::uint32 tag; |
| // @@protoc_insertion_point(parse_start:Messages.AttestationMessage) |
| for (;;) { |
| ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); |
| tag = p.first; |
| if (!p.second) goto handle_unusual; |
| switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| // required uint32 type = 1; |
| case 1: { |
| if (tag == 8) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &type_))); |
| set_has_type(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(16)) goto parse_size; |
| break; |
| } |
| |
| // required uint32 size = 2; |
| case 2: { |
| if (tag == 16) { |
| parse_size: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &size_))); |
| set_has_size(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(24)) goto parse_epid_group_status; |
| break; |
| } |
| |
| // optional uint32 epid_group_status = 3; |
| case 3: { |
| if (tag == 24) { |
| parse_epid_group_status: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &epid_group_status_))); |
| set_has_epid_group_status(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(32)) goto parse_tcb_evaluation_status; |
| break; |
| } |
| |
| // optional uint32 tcb_evaluation_status = 4; |
| case 4: { |
| if (tag == 32) { |
| parse_tcb_evaluation_status: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &tcb_evaluation_status_))); |
| set_has_tcb_evaluation_status(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(40)) goto parse_pse_evaluation_status; |
| break; |
| } |
| |
| // optional uint32 pse_evaluation_status = 5; |
| case 5: { |
| if (tag == 40) { |
| parse_pse_evaluation_status: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &pse_evaluation_status_))); |
| set_has_pse_evaluation_status(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(50)) goto parse_latest_equivalent_tcb_psvn; |
| break; |
| } |
| |
| // repeated uint32 latest_equivalent_tcb_psvn = 6 [packed = true]; |
| case 6: { |
| if (tag == 50) { |
| parse_latest_equivalent_tcb_psvn: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_latest_equivalent_tcb_psvn()))); |
| } else if (tag == 48) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 50, input, this->mutable_latest_equivalent_tcb_psvn()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(58)) goto parse_latest_pse_isvsvn; |
| break; |
| } |
| |
| // repeated uint32 latest_pse_isvsvn = 7 [packed = true]; |
| case 7: { |
| if (tag == 58) { |
| parse_latest_pse_isvsvn: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_latest_pse_isvsvn()))); |
| } else if (tag == 56) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 58, input, this->mutable_latest_pse_isvsvn()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(66)) goto parse_latest_psda_svn; |
| break; |
| } |
| |
| // repeated uint32 latest_psda_svn = 8 [packed = true]; |
| case 8: { |
| if (tag == 66) { |
| parse_latest_psda_svn: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_latest_psda_svn()))); |
| } else if (tag == 64) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 66, input, this->mutable_latest_psda_svn()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(74)) goto parse_performance_rekey_gid; |
| break; |
| } |
| |
| // repeated uint32 performance_rekey_gid = 9 [packed = true]; |
| case 9: { |
| if (tag == 74) { |
| parse_performance_rekey_gid: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_performance_rekey_gid()))); |
| } else if (tag == 72) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 74, input, this->mutable_performance_rekey_gid()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(82)) goto parse_ec_sign256_x; |
| break; |
| } |
| |
| // repeated uint32 ec_sign256_x = 10 [packed = true]; |
| case 10: { |
| if (tag == 82) { |
| parse_ec_sign256_x: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_ec_sign256_x()))); |
| } else if (tag == 80) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 82, input, this->mutable_ec_sign256_x()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(90)) goto parse_ec_sign256_y; |
| break; |
| } |
| |
| // repeated uint32 ec_sign256_y = 11 [packed = true]; |
| case 11: { |
| if (tag == 90) { |
| parse_ec_sign256_y: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_ec_sign256_y()))); |
| } else if (tag == 88) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 90, input, this->mutable_ec_sign256_y()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(98)) goto parse_mac_smk; |
| break; |
| } |
| |
| // repeated uint32 mac_smk = 12 [packed = true]; |
| case 12: { |
| if (tag == 98) { |
| parse_mac_smk: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_mac_smk()))); |
| } else if (tag == 96) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 98, input, this->mutable_mac_smk()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(104)) goto parse_result_size; |
| break; |
| } |
| |
| // optional uint32 result_size = 13; |
| case 13: { |
| if (tag == 104) { |
| parse_result_size: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &result_size_))); |
| set_has_result_size(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(114)) goto parse_reserved; |
| break; |
| } |
| |
| // repeated uint32 reserved = 14 [packed = true]; |
| case 14: { |
| if (tag == 114) { |
| parse_reserved: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_reserved()))); |
| } else if (tag == 112) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 114, input, this->mutable_reserved()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(122)) goto parse_payload_tag; |
| break; |
| } |
| |
| // repeated uint32 payload_tag = 15 [packed = true]; |
| case 15: { |
| if (tag == 122) { |
| parse_payload_tag: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_payload_tag()))); |
| } else if (tag == 120) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 122, input, this->mutable_payload_tag()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(130)) goto parse_payload; |
| break; |
| } |
| |
| // repeated uint32 payload = 16 [packed = true]; |
| case 16: { |
| if (tag == 130) { |
| parse_payload: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_payload()))); |
| } else if (tag == 128) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 2, 130, input, this->mutable_payload()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectAtEnd()) goto success; |
| break; |
| } |
| |
| default: { |
| handle_unusual: |
| if (tag == 0 || |
| ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| goto success; |
| } |
| DO_(::google::protobuf::internal::WireFormat::SkipField( |
| input, tag, mutable_unknown_fields())); |
| break; |
| } |
| } |
| } |
| success: |
| // @@protoc_insertion_point(parse_success:Messages.AttestationMessage) |
| return true; |
| failure: |
| // @@protoc_insertion_point(parse_failure:Messages.AttestationMessage) |
| return false; |
| #undef DO_ |
| } |
| |
| void AttestationMessage::SerializeWithCachedSizes( |
| ::google::protobuf::io::CodedOutputStream* output) const { |
| // @@protoc_insertion_point(serialize_start:Messages.AttestationMessage) |
| // required uint32 type = 1; |
| if (has_type()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->type(), output); |
| } |
| |
| // required uint32 size = 2; |
| if (has_size()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->size(), output); |
| } |
| |
| // optional uint32 epid_group_status = 3; |
| if (has_epid_group_status()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->epid_group_status(), output); |
| } |
| |
| // optional uint32 tcb_evaluation_status = 4; |
| if (has_tcb_evaluation_status()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->tcb_evaluation_status(), output); |
| } |
| |
| // optional uint32 pse_evaluation_status = 5; |
| if (has_pse_evaluation_status()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->pse_evaluation_status(), output); |
| } |
| |
| // repeated uint32 latest_equivalent_tcb_psvn = 6 [packed = true]; |
| if (this->latest_equivalent_tcb_psvn_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_latest_equivalent_tcb_psvn_cached_byte_size_); |
| } |
| for (int i = 0; i < this->latest_equivalent_tcb_psvn_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->latest_equivalent_tcb_psvn(i), output); |
| } |
| |
| // repeated uint32 latest_pse_isvsvn = 7 [packed = true]; |
| if (this->latest_pse_isvsvn_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(7, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_latest_pse_isvsvn_cached_byte_size_); |
| } |
| for (int i = 0; i < this->latest_pse_isvsvn_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->latest_pse_isvsvn(i), output); |
| } |
| |
| // repeated uint32 latest_psda_svn = 8 [packed = true]; |
| if (this->latest_psda_svn_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_latest_psda_svn_cached_byte_size_); |
| } |
| for (int i = 0; i < this->latest_psda_svn_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->latest_psda_svn(i), output); |
| } |
| |
| // repeated uint32 performance_rekey_gid = 9 [packed = true]; |
| if (this->performance_rekey_gid_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_performance_rekey_gid_cached_byte_size_); |
| } |
| for (int i = 0; i < this->performance_rekey_gid_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->performance_rekey_gid(i), output); |
| } |
| |
| // repeated uint32 ec_sign256_x = 10 [packed = true]; |
| if (this->ec_sign256_x_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(10, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_ec_sign256_x_cached_byte_size_); |
| } |
| for (int i = 0; i < this->ec_sign256_x_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->ec_sign256_x(i), output); |
| } |
| |
| // repeated uint32 ec_sign256_y = 11 [packed = true]; |
| if (this->ec_sign256_y_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(11, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_ec_sign256_y_cached_byte_size_); |
| } |
| for (int i = 0; i < this->ec_sign256_y_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->ec_sign256_y(i), output); |
| } |
| |
| // repeated uint32 mac_smk = 12 [packed = true]; |
| if (this->mac_smk_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(12, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_mac_smk_cached_byte_size_); |
| } |
| for (int i = 0; i < this->mac_smk_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->mac_smk(i), output); |
| } |
| |
| // optional uint32 result_size = 13; |
| if (has_result_size()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->result_size(), output); |
| } |
| |
| // repeated uint32 reserved = 14 [packed = true]; |
| if (this->reserved_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(14, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_reserved_cached_byte_size_); |
| } |
| for (int i = 0; i < this->reserved_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->reserved(i), output); |
| } |
| |
| // repeated uint32 payload_tag = 15 [packed = true]; |
| if (this->payload_tag_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(15, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_payload_tag_cached_byte_size_); |
| } |
| for (int i = 0; i < this->payload_tag_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->payload_tag(i), output); |
| } |
| |
| // repeated uint32 payload = 16 [packed = true]; |
| if (this->payload_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(16, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_payload_cached_byte_size_); |
| } |
| for (int i = 0; i < this->payload_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->payload(i), output); |
| } |
| |
| if (!unknown_fields().empty()) { |
| ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| unknown_fields(), output); |
| } |
| // @@protoc_insertion_point(serialize_end:Messages.AttestationMessage) |
| } |
| |
| ::google::protobuf::uint8* AttestationMessage::SerializeWithCachedSizesToArray( |
| ::google::protobuf::uint8* target) const { |
| // @@protoc_insertion_point(serialize_to_array_start:Messages.AttestationMessage) |
| // required uint32 type = 1; |
| if (has_type()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->type(), target); |
| } |
| |
| // required uint32 size = 2; |
| if (has_size()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->size(), target); |
| } |
| |
| // optional uint32 epid_group_status = 3; |
| if (has_epid_group_status()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->epid_group_status(), target); |
| } |
| |
| // optional uint32 tcb_evaluation_status = 4; |
| if (has_tcb_evaluation_status()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->tcb_evaluation_status(), target); |
| } |
| |
| // optional uint32 pse_evaluation_status = 5; |
| if (has_pse_evaluation_status()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->pse_evaluation_status(), target); |
| } |
| |
| // repeated uint32 latest_equivalent_tcb_psvn = 6 [packed = true]; |
| if (this->latest_equivalent_tcb_psvn_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 6, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _latest_equivalent_tcb_psvn_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->latest_equivalent_tcb_psvn_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->latest_equivalent_tcb_psvn(i), target); |
| } |
| |
| // repeated uint32 latest_pse_isvsvn = 7 [packed = true]; |
| if (this->latest_pse_isvsvn_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 7, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _latest_pse_isvsvn_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->latest_pse_isvsvn_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->latest_pse_isvsvn(i), target); |
| } |
| |
| // repeated uint32 latest_psda_svn = 8 [packed = true]; |
| if (this->latest_psda_svn_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 8, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _latest_psda_svn_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->latest_psda_svn_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->latest_psda_svn(i), target); |
| } |
| |
| // repeated uint32 performance_rekey_gid = 9 [packed = true]; |
| if (this->performance_rekey_gid_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 9, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _performance_rekey_gid_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->performance_rekey_gid_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->performance_rekey_gid(i), target); |
| } |
| |
| // repeated uint32 ec_sign256_x = 10 [packed = true]; |
| if (this->ec_sign256_x_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 10, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _ec_sign256_x_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->ec_sign256_x_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->ec_sign256_x(i), target); |
| } |
| |
| // repeated uint32 ec_sign256_y = 11 [packed = true]; |
| if (this->ec_sign256_y_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 11, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _ec_sign256_y_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->ec_sign256_y_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->ec_sign256_y(i), target); |
| } |
| |
| // repeated uint32 mac_smk = 12 [packed = true]; |
| if (this->mac_smk_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 12, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _mac_smk_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->mac_smk_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->mac_smk(i), target); |
| } |
| |
| // optional uint32 result_size = 13; |
| if (has_result_size()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->result_size(), target); |
| } |
| |
| // repeated uint32 reserved = 14 [packed = true]; |
| if (this->reserved_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 14, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _reserved_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->reserved_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->reserved(i), target); |
| } |
| |
| // repeated uint32 payload_tag = 15 [packed = true]; |
| if (this->payload_tag_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 15, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _payload_tag_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->payload_tag_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->payload_tag(i), target); |
| } |
| |
| // repeated uint32 payload = 16 [packed = true]; |
| if (this->payload_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 16, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _payload_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->payload_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->payload(i), target); |
| } |
| |
| if (!unknown_fields().empty()) { |
| target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| unknown_fields(), target); |
| } |
| // @@protoc_insertion_point(serialize_to_array_end:Messages.AttestationMessage) |
| return target; |
| } |
| |
| int AttestationMessage::ByteSize() const { |
| int total_size = 0; |
| |
| if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| // required uint32 type = 1; |
| if (has_type()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->type()); |
| } |
| |
| // required uint32 size = 2; |
| if (has_size()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->size()); |
| } |
| |
| // optional uint32 epid_group_status = 3; |
| if (has_epid_group_status()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->epid_group_status()); |
| } |
| |
| // optional uint32 tcb_evaluation_status = 4; |
| if (has_tcb_evaluation_status()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->tcb_evaluation_status()); |
| } |
| |
| // optional uint32 pse_evaluation_status = 5; |
| if (has_pse_evaluation_status()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->pse_evaluation_status()); |
| } |
| |
| } |
| if (_has_bits_[12 / 32] & (0xffu << (12 % 32))) { |
| // optional uint32 result_size = 13; |
| if (has_result_size()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->result_size()); |
| } |
| |
| } |
| // repeated uint32 latest_equivalent_tcb_psvn = 6 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->latest_equivalent_tcb_psvn_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->latest_equivalent_tcb_psvn(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _latest_equivalent_tcb_psvn_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 latest_pse_isvsvn = 7 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->latest_pse_isvsvn_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->latest_pse_isvsvn(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _latest_pse_isvsvn_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 latest_psda_svn = 8 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->latest_psda_svn_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->latest_psda_svn(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _latest_psda_svn_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 performance_rekey_gid = 9 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->performance_rekey_gid_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->performance_rekey_gid(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _performance_rekey_gid_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 ec_sign256_x = 10 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->ec_sign256_x_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->ec_sign256_x(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _ec_sign256_x_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 ec_sign256_y = 11 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->ec_sign256_y_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->ec_sign256_y(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _ec_sign256_y_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 mac_smk = 12 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->mac_smk_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->mac_smk(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _mac_smk_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 reserved = 14 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->reserved_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->reserved(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _reserved_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 payload_tag = 15 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->payload_tag_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->payload_tag(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _payload_tag_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 payload = 16 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->payload_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->payload(i)); |
| } |
| if (data_size > 0) { |
| total_size += 2 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _payload_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| if (!unknown_fields().empty()) { |
| total_size += |
| ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| unknown_fields()); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _cached_size_ = total_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| return total_size; |
| } |
| |
| void AttestationMessage::MergeFrom(const ::google::protobuf::Message& from) { |
| GOOGLE_CHECK_NE(&from, this); |
| const AttestationMessage* source = |
| ::google::protobuf::internal::dynamic_cast_if_available<const AttestationMessage*>( |
| &from); |
| if (source == NULL) { |
| ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| } else { |
| MergeFrom(*source); |
| } |
| } |
| |
| void AttestationMessage::MergeFrom(const AttestationMessage& from) { |
| GOOGLE_CHECK_NE(&from, this); |
| latest_equivalent_tcb_psvn_.MergeFrom(from.latest_equivalent_tcb_psvn_); |
| latest_pse_isvsvn_.MergeFrom(from.latest_pse_isvsvn_); |
| latest_psda_svn_.MergeFrom(from.latest_psda_svn_); |
| performance_rekey_gid_.MergeFrom(from.performance_rekey_gid_); |
| ec_sign256_x_.MergeFrom(from.ec_sign256_x_); |
| ec_sign256_y_.MergeFrom(from.ec_sign256_y_); |
| mac_smk_.MergeFrom(from.mac_smk_); |
| reserved_.MergeFrom(from.reserved_); |
| payload_tag_.MergeFrom(from.payload_tag_); |
| payload_.MergeFrom(from.payload_); |
| if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| if (from.has_type()) { |
| set_type(from.type()); |
| } |
| if (from.has_size()) { |
| set_size(from.size()); |
| } |
| if (from.has_epid_group_status()) { |
| set_epid_group_status(from.epid_group_status()); |
| } |
| if (from.has_tcb_evaluation_status()) { |
| set_tcb_evaluation_status(from.tcb_evaluation_status()); |
| } |
| if (from.has_pse_evaluation_status()) { |
| set_pse_evaluation_status(from.pse_evaluation_status()); |
| } |
| } |
| if (from._has_bits_[12 / 32] & (0xffu << (12 % 32))) { |
| if (from.has_result_size()) { |
| set_result_size(from.result_size()); |
| } |
| } |
| mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| } |
| |
| void AttestationMessage::CopyFrom(const ::google::protobuf::Message& from) { |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void AttestationMessage::CopyFrom(const AttestationMessage& from) { |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool AttestationMessage::IsInitialized() const { |
| if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
| |
| return true; |
| } |
| |
| void AttestationMessage::Swap(AttestationMessage* other) { |
| if (other != this) { |
| std::swap(type_, other->type_); |
| std::swap(size_, other->size_); |
| std::swap(epid_group_status_, other->epid_group_status_); |
| std::swap(tcb_evaluation_status_, other->tcb_evaluation_status_); |
| std::swap(pse_evaluation_status_, other->pse_evaluation_status_); |
| latest_equivalent_tcb_psvn_.Swap(&other->latest_equivalent_tcb_psvn_); |
| latest_pse_isvsvn_.Swap(&other->latest_pse_isvsvn_); |
| latest_psda_svn_.Swap(&other->latest_psda_svn_); |
| performance_rekey_gid_.Swap(&other->performance_rekey_gid_); |
| ec_sign256_x_.Swap(&other->ec_sign256_x_); |
| ec_sign256_y_.Swap(&other->ec_sign256_y_); |
| mac_smk_.Swap(&other->mac_smk_); |
| std::swap(result_size_, other->result_size_); |
| reserved_.Swap(&other->reserved_); |
| payload_tag_.Swap(&other->payload_tag_); |
| payload_.Swap(&other->payload_); |
| std::swap(_has_bits_[0], other->_has_bits_[0]); |
| _unknown_fields_.Swap(&other->_unknown_fields_); |
| std::swap(_cached_size_, other->_cached_size_); |
| } |
| } |
| |
| ::google::protobuf::Metadata AttestationMessage::GetMetadata() const { |
| protobuf_AssignDescriptorsOnce(); |
| ::google::protobuf::Metadata metadata; |
| metadata.descriptor = AttestationMessage_descriptor_; |
| metadata.reflection = AttestationMessage_reflection_; |
| return metadata; |
| } |
| |
| |
| // =================================================================== |
| |
| #ifndef _MSC_VER |
| const int SecretMessage::kTypeFieldNumber; |
| const int SecretMessage::kSizeFieldNumber; |
| const int SecretMessage::kEncrypedPkeySizeFieldNumber; |
| const int SecretMessage::kEncrypedX509SizeFieldNumber; |
| const int SecretMessage::kEncryptedContentFieldNumber; |
| const int SecretMessage::kMacSmkFieldNumber; |
| const int SecretMessage::kEncryptedPkeyFieldNumber; |
| const int SecretMessage::kEncryptedPkeyMacSmkFieldNumber; |
| const int SecretMessage::kEncryptedX509FieldNumber; |
| const int SecretMessage::kEncryptedX509MacSmkFieldNumber; |
| #endif // !_MSC_VER |
| |
| SecretMessage::SecretMessage() |
| : ::google::protobuf::Message() { |
| SharedCtor(); |
| // @@protoc_insertion_point(constructor:Messages.SecretMessage) |
| } |
| |
| void SecretMessage::InitAsDefaultInstance() { |
| } |
| |
| SecretMessage::SecretMessage(const SecretMessage& from) |
| : ::google::protobuf::Message() { |
| SharedCtor(); |
| MergeFrom(from); |
| // @@protoc_insertion_point(copy_constructor:Messages.SecretMessage) |
| } |
| |
| void SecretMessage::SharedCtor() { |
| _cached_size_ = 0; |
| type_ = 0u; |
| size_ = 0u; |
| encryped_pkey_size_ = 0u; |
| encryped_x509_size_ = 0u; |
| ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| } |
| |
| SecretMessage::~SecretMessage() { |
| // @@protoc_insertion_point(destructor:Messages.SecretMessage) |
| SharedDtor(); |
| } |
| |
| void SecretMessage::SharedDtor() { |
| if (this != default_instance_) { |
| } |
| } |
| |
| void SecretMessage::SetCachedSize(int size) const { |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _cached_size_ = size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| } |
| const ::google::protobuf::Descriptor* SecretMessage::descriptor() { |
| protobuf_AssignDescriptorsOnce(); |
| return SecretMessage_descriptor_; |
| } |
| |
| const SecretMessage& SecretMessage::default_instance() { |
| if (default_instance_ == NULL) protobuf_AddDesc_Messages_2eproto(); |
| return *default_instance_; |
| } |
| |
| SecretMessage* SecretMessage::default_instance_ = NULL; |
| |
| SecretMessage* SecretMessage::New() const { |
| return new SecretMessage; |
| } |
| |
| void SecretMessage::Clear() { |
| #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \ |
| &reinterpret_cast<SecretMessage*>(16)->f) - \ |
| reinterpret_cast<char*>(16)) |
| |
| #define ZR_(first, last) do { \ |
| size_t f = OFFSET_OF_FIELD_(first); \ |
| size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ |
| ::memset(&first, 0, n); \ |
| } while (0) |
| |
| ZR_(type_, encryped_x509_size_); |
| |
| #undef OFFSET_OF_FIELD_ |
| #undef ZR_ |
| |
| encrypted_content_.Clear(); |
| mac_smk_.Clear(); |
| encrypted_pkey_.Clear(); |
| encrypted_pkey_mac_smk_.Clear(); |
| encrypted_x509_.Clear(); |
| encrypted_x509_mac_smk_.Clear(); |
| ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| mutable_unknown_fields()->Clear(); |
| } |
| |
| bool SecretMessage::MergePartialFromCodedStream( |
| ::google::protobuf::io::CodedInputStream* input) { |
| #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| ::google::protobuf::uint32 tag; |
| // @@protoc_insertion_point(parse_start:Messages.SecretMessage) |
| for (;;) { |
| ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| tag = p.first; |
| if (!p.second) goto handle_unusual; |
| switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| // required uint32 type = 1; |
| case 1: { |
| if (tag == 8) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &type_))); |
| set_has_type(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(16)) goto parse_size; |
| break; |
| } |
| |
| // required uint32 size = 2; |
| case 2: { |
| if (tag == 16) { |
| parse_size: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &size_))); |
| set_has_size(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(24)) goto parse_encryped_pkey_size; |
| break; |
| } |
| |
| // optional uint32 encryped_pkey_size = 3; |
| case 3: { |
| if (tag == 24) { |
| parse_encryped_pkey_size: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &encryped_pkey_size_))); |
| set_has_encryped_pkey_size(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(32)) goto parse_encryped_x509_size; |
| break; |
| } |
| |
| // optional uint32 encryped_x509_size = 4; |
| case 4: { |
| if (tag == 32) { |
| parse_encryped_x509_size: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, &encryped_x509_size_))); |
| set_has_encryped_x509_size(); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(42)) goto parse_encrypted_content; |
| break; |
| } |
| |
| // repeated uint32 encrypted_content = 5 [packed = true]; |
| case 5: { |
| if (tag == 42) { |
| parse_encrypted_content: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_encrypted_content()))); |
| } else if (tag == 40) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 42, input, this->mutable_encrypted_content()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(50)) goto parse_mac_smk; |
| break; |
| } |
| |
| // repeated uint32 mac_smk = 6 [packed = true]; |
| case 6: { |
| if (tag == 50) { |
| parse_mac_smk: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_mac_smk()))); |
| } else if (tag == 48) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 50, input, this->mutable_mac_smk()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(58)) goto parse_encrypted_pkey; |
| break; |
| } |
| |
| // repeated uint32 encrypted_pkey = 7 [packed = true]; |
| case 7: { |
| if (tag == 58) { |
| parse_encrypted_pkey: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_encrypted_pkey()))); |
| } else if (tag == 56) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 58, input, this->mutable_encrypted_pkey()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(66)) goto parse_encrypted_pkey_mac_smk; |
| break; |
| } |
| |
| // repeated uint32 encrypted_pkey_mac_smk = 8 [packed = true]; |
| case 8: { |
| if (tag == 66) { |
| parse_encrypted_pkey_mac_smk: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_encrypted_pkey_mac_smk()))); |
| } else if (tag == 64) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 66, input, this->mutable_encrypted_pkey_mac_smk()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(74)) goto parse_encrypted_x509; |
| break; |
| } |
| |
| // repeated uint32 encrypted_x509 = 9 [packed = true]; |
| case 9: { |
| if (tag == 74) { |
| parse_encrypted_x509: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_encrypted_x509()))); |
| } else if (tag == 72) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 74, input, this->mutable_encrypted_x509()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectTag(82)) goto parse_encrypted_x509_mac_smk; |
| break; |
| } |
| |
| // repeated uint32 encrypted_x509_mac_smk = 10 [packed = true]; |
| case 10: { |
| if (tag == 82) { |
| parse_encrypted_x509_mac_smk: |
| DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| input, this->mutable_encrypted_x509_mac_smk()))); |
| } else if (tag == 80) { |
| DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 1, 82, input, this->mutable_encrypted_x509_mac_smk()))); |
| } else { |
| goto handle_unusual; |
| } |
| if (input->ExpectAtEnd()) goto success; |
| break; |
| } |
| |
| default: { |
| handle_unusual: |
| if (tag == 0 || |
| ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| goto success; |
| } |
| DO_(::google::protobuf::internal::WireFormat::SkipField( |
| input, tag, mutable_unknown_fields())); |
| break; |
| } |
| } |
| } |
| success: |
| // @@protoc_insertion_point(parse_success:Messages.SecretMessage) |
| return true; |
| failure: |
| // @@protoc_insertion_point(parse_failure:Messages.SecretMessage) |
| return false; |
| #undef DO_ |
| } |
| |
| void SecretMessage::SerializeWithCachedSizes( |
| ::google::protobuf::io::CodedOutputStream* output) const { |
| // @@protoc_insertion_point(serialize_start:Messages.SecretMessage) |
| // required uint32 type = 1; |
| if (has_type()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->type(), output); |
| } |
| |
| // required uint32 size = 2; |
| if (has_size()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->size(), output); |
| } |
| |
| // optional uint32 encryped_pkey_size = 3; |
| if (has_encryped_pkey_size()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->encryped_pkey_size(), output); |
| } |
| |
| // optional uint32 encryped_x509_size = 4; |
| if (has_encryped_x509_size()) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->encryped_x509_size(), output); |
| } |
| |
| // repeated uint32 encrypted_content = 5 [packed = true]; |
| if (this->encrypted_content_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_encrypted_content_cached_byte_size_); |
| } |
| for (int i = 0; i < this->encrypted_content_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->encrypted_content(i), output); |
| } |
| |
| // repeated uint32 mac_smk = 6 [packed = true]; |
| if (this->mac_smk_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_mac_smk_cached_byte_size_); |
| } |
| for (int i = 0; i < this->mac_smk_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->mac_smk(i), output); |
| } |
| |
| // repeated uint32 encrypted_pkey = 7 [packed = true]; |
| if (this->encrypted_pkey_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(7, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_encrypted_pkey_cached_byte_size_); |
| } |
| for (int i = 0; i < this->encrypted_pkey_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->encrypted_pkey(i), output); |
| } |
| |
| // repeated uint32 encrypted_pkey_mac_smk = 8 [packed = true]; |
| if (this->encrypted_pkey_mac_smk_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_encrypted_pkey_mac_smk_cached_byte_size_); |
| } |
| for (int i = 0; i < this->encrypted_pkey_mac_smk_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->encrypted_pkey_mac_smk(i), output); |
| } |
| |
| // repeated uint32 encrypted_x509 = 9 [packed = true]; |
| if (this->encrypted_x509_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_encrypted_x509_cached_byte_size_); |
| } |
| for (int i = 0; i < this->encrypted_x509_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->encrypted_x509(i), output); |
| } |
| |
| // repeated uint32 encrypted_x509_mac_smk = 10 [packed = true]; |
| if (this->encrypted_x509_mac_smk_size() > 0) { |
| ::google::protobuf::internal::WireFormatLite::WriteTag(10, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| output->WriteVarint32(_encrypted_x509_mac_smk_cached_byte_size_); |
| } |
| for (int i = 0; i < this->encrypted_x509_mac_smk_size(); i++) { |
| ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| this->encrypted_x509_mac_smk(i), output); |
| } |
| |
| if (!unknown_fields().empty()) { |
| ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| unknown_fields(), output); |
| } |
| // @@protoc_insertion_point(serialize_end:Messages.SecretMessage) |
| } |
| |
| ::google::protobuf::uint8* SecretMessage::SerializeWithCachedSizesToArray( |
| ::google::protobuf::uint8* target) const { |
| // @@protoc_insertion_point(serialize_to_array_start:Messages.SecretMessage) |
| // required uint32 type = 1; |
| if (has_type()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->type(), target); |
| } |
| |
| // required uint32 size = 2; |
| if (has_size()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->size(), target); |
| } |
| |
| // optional uint32 encryped_pkey_size = 3; |
| if (has_encryped_pkey_size()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->encryped_pkey_size(), target); |
| } |
| |
| // optional uint32 encryped_x509_size = 4; |
| if (has_encryped_x509_size()) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->encryped_x509_size(), target); |
| } |
| |
| // repeated uint32 encrypted_content = 5 [packed = true]; |
| if (this->encrypted_content_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 5, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _encrypted_content_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->encrypted_content_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->encrypted_content(i), target); |
| } |
| |
| // repeated uint32 mac_smk = 6 [packed = true]; |
| if (this->mac_smk_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 6, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _mac_smk_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->mac_smk_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->mac_smk(i), target); |
| } |
| |
| // repeated uint32 encrypted_pkey = 7 [packed = true]; |
| if (this->encrypted_pkey_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 7, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _encrypted_pkey_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->encrypted_pkey_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->encrypted_pkey(i), target); |
| } |
| |
| // repeated uint32 encrypted_pkey_mac_smk = 8 [packed = true]; |
| if (this->encrypted_pkey_mac_smk_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 8, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _encrypted_pkey_mac_smk_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->encrypted_pkey_mac_smk_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->encrypted_pkey_mac_smk(i), target); |
| } |
| |
| // repeated uint32 encrypted_x509 = 9 [packed = true]; |
| if (this->encrypted_x509_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 9, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _encrypted_x509_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->encrypted_x509_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->encrypted_x509(i), target); |
| } |
| |
| // repeated uint32 encrypted_x509_mac_smk = 10 [packed = true]; |
| if (this->encrypted_x509_mac_smk_size() > 0) { |
| target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 10, |
| ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| target); |
| target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| _encrypted_x509_mac_smk_cached_byte_size_, target); |
| } |
| for (int i = 0; i < this->encrypted_x509_mac_smk_size(); i++) { |
| target = ::google::protobuf::internal::WireFormatLite:: |
| WriteUInt32NoTagToArray(this->encrypted_x509_mac_smk(i), target); |
| } |
| |
| if (!unknown_fields().empty()) { |
| target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| unknown_fields(), target); |
| } |
| // @@protoc_insertion_point(serialize_to_array_end:Messages.SecretMessage) |
| return target; |
| } |
| |
| int SecretMessage::ByteSize() const { |
| int total_size = 0; |
| |
| if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| // required uint32 type = 1; |
| if (has_type()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->type()); |
| } |
| |
| // required uint32 size = 2; |
| if (has_size()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->size()); |
| } |
| |
| // optional uint32 encryped_pkey_size = 3; |
| if (has_encryped_pkey_size()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->encryped_pkey_size()); |
| } |
| |
| // optional uint32 encryped_x509_size = 4; |
| if (has_encryped_x509_size()) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| this->encryped_x509_size()); |
| } |
| |
| } |
| // repeated uint32 encrypted_content = 5 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->encrypted_content_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->encrypted_content(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _encrypted_content_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 mac_smk = 6 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->mac_smk_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->mac_smk(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _mac_smk_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 encrypted_pkey = 7 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->encrypted_pkey_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->encrypted_pkey(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _encrypted_pkey_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 encrypted_pkey_mac_smk = 8 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->encrypted_pkey_mac_smk_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->encrypted_pkey_mac_smk(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _encrypted_pkey_mac_smk_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 encrypted_x509 = 9 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->encrypted_x509_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->encrypted_x509(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _encrypted_x509_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| // repeated uint32 encrypted_x509_mac_smk = 10 [packed = true]; |
| { |
| int data_size = 0; |
| for (int i = 0; i < this->encrypted_x509_mac_smk_size(); i++) { |
| data_size += ::google::protobuf::internal::WireFormatLite:: |
| UInt32Size(this->encrypted_x509_mac_smk(i)); |
| } |
| if (data_size > 0) { |
| total_size += 1 + |
| ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _encrypted_x509_mac_smk_cached_byte_size_ = data_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| total_size += data_size; |
| } |
| |
| if (!unknown_fields().empty()) { |
| total_size += |
| ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| unknown_fields()); |
| } |
| GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| _cached_size_ = total_size; |
| GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| return total_size; |
| } |
| |
| void SecretMessage::MergeFrom(const ::google::protobuf::Message& from) { |
| GOOGLE_CHECK_NE(&from, this); |
| const SecretMessage* source = |
| ::google::protobuf::internal::dynamic_cast_if_available<const SecretMessage*>( |
| &from); |
| if (source == NULL) { |
| ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| } else { |
| MergeFrom(*source); |
| } |
| } |
| |
| void SecretMessage::MergeFrom(const SecretMessage& from) { |
| GOOGLE_CHECK_NE(&from, this); |
| encrypted_content_.MergeFrom(from.encrypted_content_); |
| mac_smk_.MergeFrom(from.mac_smk_); |
| encrypted_pkey_.MergeFrom(from.encrypted_pkey_); |
| encrypted_pkey_mac_smk_.MergeFrom(from.encrypted_pkey_mac_smk_); |
| encrypted_x509_.MergeFrom(from.encrypted_x509_); |
| encrypted_x509_mac_smk_.MergeFrom(from.encrypted_x509_mac_smk_); |
| if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| if (from.has_type()) { |
| set_type(from.type()); |
| } |
| if (from.has_size()) { |
| set_size(from.size()); |
| } |
| if (from.has_encryped_pkey_size()) { |
| set_encryped_pkey_size(from.encryped_pkey_size()); |
| } |
| if (from.has_encryped_x509_size()) { |
| set_encryped_x509_size(from.encryped_x509_size()); |
| } |
| } |
| mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| } |
| |
| void SecretMessage::CopyFrom(const ::google::protobuf::Message& from) { |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void SecretMessage::CopyFrom(const SecretMessage& from) { |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool SecretMessage::IsInitialized() const { |
| if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
| |
| return true; |
| } |
| |
| void SecretMessage::Swap(SecretMessage* other) { |
| if (other != this) { |
| std::swap(type_, other->type_); |
| std::swap(size_, other->size_); |
| std::swap(encryped_pkey_size_, other->encryped_pkey_size_); |
| std::swap(encryped_x509_size_, other->encryped_x509_size_); |
| encrypted_content_.Swap(&other->encrypted_content_); |
| mac_smk_.Swap(&other->mac_smk_); |
| encrypted_pkey_.Swap(&other->encrypted_pkey_); |
| encrypted_pkey_mac_smk_.Swap(&other->encrypted_pkey_mac_smk_); |
| encrypted_x509_.Swap(&other->encrypted_x509_); |
| encrypted_x509_mac_smk_.Swap(&other->encrypted_x509_mac_smk_); |
| std::swap(_has_bits_[0], other->_has_bits_[0]); |
| _unknown_fields_.Swap(&other->_unknown_fields_); |
| std::swap(_cached_size_, other->_cached_size_); |
| } |
| } |
| |
| ::google::protobuf::Metadata SecretMessage::GetMetadata() const { |
| protobuf_AssignDescriptorsOnce(); |
| ::google::protobuf::Metadata metadata; |
| metadata.descriptor = SecretMessage_descriptor_; |
| metadata.reflection = SecretMessage_reflection_; |
| return metadata; |
| } |
| |
| |
| // @@protoc_insertion_point(namespace_scope) |
| |
| } // namespace Messages |
| |
| // @@protoc_insertion_point(global_scope) |