|
@@ -1,729 +0,0 @@
|
|
-// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
-// source: ProtobufSealerMessages.proto
|
|
|
|
-
|
|
|
|
-#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
|
|
|
|
-#include "ProtobufSealerMessages.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 {
|
|
|
|
-
|
|
|
|
-const ::google::protobuf::Descriptor* protobuf_sgx_mc_uuid_t_descriptor_ = NULL;
|
|
|
|
-const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
|
|
- protobuf_sgx_mc_uuid_t_reflection_ = NULL;
|
|
|
|
-const ::google::protobuf::Descriptor* protobuf_plaintext_seal_message_descriptor_ = NULL;
|
|
|
|
-const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
|
|
- protobuf_plaintext_seal_message_reflection_ = NULL;
|
|
|
|
-
|
|
|
|
-} // namespace
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-void protobuf_AssignDesc_ProtobufSealerMessages_2eproto() {
|
|
|
|
- protobuf_AddDesc_ProtobufSealerMessages_2eproto();
|
|
|
|
- const ::google::protobuf::FileDescriptor* file =
|
|
|
|
- ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
|
|
|
|
- "ProtobufSealerMessages.proto");
|
|
|
|
- GOOGLE_CHECK(file != NULL);
|
|
|
|
- protobuf_sgx_mc_uuid_t_descriptor_ = file->message_type(0);
|
|
|
|
- static const int protobuf_sgx_mc_uuid_t_offsets_[2] = {
|
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(protobuf_sgx_mc_uuid_t, nonce_),
|
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(protobuf_sgx_mc_uuid_t, counter_id_),
|
|
|
|
- };
|
|
|
|
- protobuf_sgx_mc_uuid_t_reflection_ =
|
|
|
|
- new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
|
|
- protobuf_sgx_mc_uuid_t_descriptor_,
|
|
|
|
- protobuf_sgx_mc_uuid_t::default_instance_,
|
|
|
|
- protobuf_sgx_mc_uuid_t_offsets_,
|
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(protobuf_sgx_mc_uuid_t, _has_bits_[0]),
|
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(protobuf_sgx_mc_uuid_t, _unknown_fields_),
|
|
|
|
- -1,
|
|
|
|
- ::google::protobuf::DescriptorPool::generated_pool(),
|
|
|
|
- ::google::protobuf::MessageFactory::generated_factory(),
|
|
|
|
- sizeof(protobuf_sgx_mc_uuid_t));
|
|
|
|
- protobuf_plaintext_seal_message_descriptor_ = file->message_type(1);
|
|
|
|
- static const int protobuf_plaintext_seal_message_offsets_[3] = {
|
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(protobuf_plaintext_seal_message, monotonic_counter_id_),
|
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(protobuf_plaintext_seal_message, monotonic_counter_value_),
|
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(protobuf_plaintext_seal_message, message_),
|
|
|
|
- };
|
|
|
|
- protobuf_plaintext_seal_message_reflection_ =
|
|
|
|
- new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
|
|
- protobuf_plaintext_seal_message_descriptor_,
|
|
|
|
- protobuf_plaintext_seal_message::default_instance_,
|
|
|
|
- protobuf_plaintext_seal_message_offsets_,
|
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(protobuf_plaintext_seal_message, _has_bits_[0]),
|
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(protobuf_plaintext_seal_message, _unknown_fields_),
|
|
|
|
- -1,
|
|
|
|
- ::google::protobuf::DescriptorPool::generated_pool(),
|
|
|
|
- ::google::protobuf::MessageFactory::generated_factory(),
|
|
|
|
- sizeof(protobuf_plaintext_seal_message));
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-namespace {
|
|
|
|
-
|
|
|
|
-GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
|
|
|
|
-inline void protobuf_AssignDescriptorsOnce() {
|
|
|
|
- ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
|
|
|
|
- &protobuf_AssignDesc_ProtobufSealerMessages_2eproto);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_RegisterTypes(const ::std::string&) {
|
|
|
|
- protobuf_AssignDescriptorsOnce();
|
|
|
|
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
|
|
- protobuf_sgx_mc_uuid_t_descriptor_, &protobuf_sgx_mc_uuid_t::default_instance());
|
|
|
|
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
|
|
- protobuf_plaintext_seal_message_descriptor_, &protobuf_plaintext_seal_message::default_instance());
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-} // namespace
|
|
|
|
-
|
|
|
|
-void protobuf_ShutdownFile_ProtobufSealerMessages_2eproto() {
|
|
|
|
- delete protobuf_sgx_mc_uuid_t::default_instance_;
|
|
|
|
- delete protobuf_sgx_mc_uuid_t_reflection_;
|
|
|
|
- delete protobuf_plaintext_seal_message::default_instance_;
|
|
|
|
- delete protobuf_plaintext_seal_message_reflection_;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_AddDesc_ProtobufSealerMessages_2eproto() {
|
|
|
|
- static bool already_here = false;
|
|
|
|
- if (already_here) return;
|
|
|
|
- already_here = true;
|
|
|
|
- GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
-
|
|
|
|
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
|
- "\n\034ProtobufSealerMessages.proto\";\n\026protob"
|
|
|
|
- "uf_sgx_mc_uuid_t\022\r\n\005nonce\030\001 \002(\014\022\022\n\ncount"
|
|
|
|
- "er_id\030\002 \002(\014\"\212\001\n\037protobuf_plaintext_seal_"
|
|
|
|
- "message\0225\n\024monotonic_counter_id\030\001 \002(\0132\027."
|
|
|
|
- "protobuf_sgx_mc_uuid_t\022\037\n\027monotonic_coun"
|
|
|
|
- "ter_value\030\002 \002(\r\022\017\n\007message\030\003 \002(\014", 232);
|
|
|
|
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
|
- "ProtobufSealerMessages.proto", &protobuf_RegisterTypes);
|
|
|
|
- protobuf_sgx_mc_uuid_t::default_instance_ = new protobuf_sgx_mc_uuid_t();
|
|
|
|
- protobuf_plaintext_seal_message::default_instance_ = new protobuf_plaintext_seal_message();
|
|
|
|
- protobuf_sgx_mc_uuid_t::default_instance_->InitAsDefaultInstance();
|
|
|
|
- protobuf_plaintext_seal_message::default_instance_->InitAsDefaultInstance();
|
|
|
|
- ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_ProtobufSealerMessages_2eproto);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-// Force AddDescriptors() to be called at static initialization time.
|
|
|
|
-struct StaticDescriptorInitializer_ProtobufSealerMessages_2eproto {
|
|
|
|
- StaticDescriptorInitializer_ProtobufSealerMessages_2eproto() {
|
|
|
|
- protobuf_AddDesc_ProtobufSealerMessages_2eproto();
|
|
|
|
- }
|
|
|
|
-} static_descriptor_initializer_ProtobufSealerMessages_2eproto_;
|
|
|
|
-
|
|
|
|
-// ===================================================================
|
|
|
|
-
|
|
|
|
-#ifndef _MSC_VER
|
|
|
|
-const int protobuf_sgx_mc_uuid_t::kNonceFieldNumber;
|
|
|
|
-const int protobuf_sgx_mc_uuid_t::kCounterIdFieldNumber;
|
|
|
|
-#endif // !_MSC_VER
|
|
|
|
-
|
|
|
|
-protobuf_sgx_mc_uuid_t::protobuf_sgx_mc_uuid_t()
|
|
|
|
- : ::google::protobuf::Message() {
|
|
|
|
- SharedCtor();
|
|
|
|
- // @@protoc_insertion_point(constructor:protobuf_sgx_mc_uuid_t)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_sgx_mc_uuid_t::InitAsDefaultInstance() {
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-protobuf_sgx_mc_uuid_t::protobuf_sgx_mc_uuid_t(const protobuf_sgx_mc_uuid_t& from)
|
|
|
|
- : ::google::protobuf::Message() {
|
|
|
|
- SharedCtor();
|
|
|
|
- MergeFrom(from);
|
|
|
|
- // @@protoc_insertion_point(copy_constructor:protobuf_sgx_mc_uuid_t)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_sgx_mc_uuid_t::SharedCtor() {
|
|
|
|
- ::google::protobuf::internal::GetEmptyString();
|
|
|
|
- _cached_size_ = 0;
|
|
|
|
- nonce_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
- counter_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-protobuf_sgx_mc_uuid_t::~protobuf_sgx_mc_uuid_t() {
|
|
|
|
- // @@protoc_insertion_point(destructor:protobuf_sgx_mc_uuid_t)
|
|
|
|
- SharedDtor();
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_sgx_mc_uuid_t::SharedDtor() {
|
|
|
|
- if (nonce_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
|
|
- delete nonce_;
|
|
|
|
- }
|
|
|
|
- if (counter_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
|
|
- delete counter_id_;
|
|
|
|
- }
|
|
|
|
- if (this != default_instance_) {
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_sgx_mc_uuid_t::SetCachedSize(int size) const {
|
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
|
- _cached_size_ = size;
|
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
|
-}
|
|
|
|
-const ::google::protobuf::Descriptor* protobuf_sgx_mc_uuid_t::descriptor() {
|
|
|
|
- protobuf_AssignDescriptorsOnce();
|
|
|
|
- return protobuf_sgx_mc_uuid_t_descriptor_;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-const protobuf_sgx_mc_uuid_t& protobuf_sgx_mc_uuid_t::default_instance() {
|
|
|
|
- if (default_instance_ == NULL) protobuf_AddDesc_ProtobufSealerMessages_2eproto();
|
|
|
|
- return *default_instance_;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-protobuf_sgx_mc_uuid_t* protobuf_sgx_mc_uuid_t::default_instance_ = NULL;
|
|
|
|
-
|
|
|
|
-protobuf_sgx_mc_uuid_t* protobuf_sgx_mc_uuid_t::New() const {
|
|
|
|
- return new protobuf_sgx_mc_uuid_t;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_sgx_mc_uuid_t::Clear() {
|
|
|
|
- if (_has_bits_[0 / 32] & 3) {
|
|
|
|
- if (has_nonce()) {
|
|
|
|
- if (nonce_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
|
|
- nonce_->clear();
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if (has_counter_id()) {
|
|
|
|
- if (counter_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
|
|
- counter_id_->clear();
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
|
|
- mutable_unknown_fields()->Clear();
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-bool protobuf_sgx_mc_uuid_t::MergePartialFromCodedStream(
|
|
|
|
- ::google::protobuf::io::CodedInputStream* input) {
|
|
|
|
-#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
|
|
- ::google::protobuf::uint32 tag;
|
|
|
|
- // @@protoc_insertion_point(parse_start:protobuf_sgx_mc_uuid_t)
|
|
|
|
- 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 bytes nonce = 1;
|
|
|
|
- case 1: {
|
|
|
|
- if (tag == 10) {
|
|
|
|
- DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
|
|
- input, this->mutable_nonce()));
|
|
|
|
- } else {
|
|
|
|
- goto handle_unusual;
|
|
|
|
- }
|
|
|
|
- if (input->ExpectTag(18)) goto parse_counter_id;
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // required bytes counter_id = 2;
|
|
|
|
- case 2: {
|
|
|
|
- if (tag == 18) {
|
|
|
|
- parse_counter_id:
|
|
|
|
- DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
|
|
- input, this->mutable_counter_id()));
|
|
|
|
- } 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:protobuf_sgx_mc_uuid_t)
|
|
|
|
- return true;
|
|
|
|
-failure:
|
|
|
|
- // @@protoc_insertion_point(parse_failure:protobuf_sgx_mc_uuid_t)
|
|
|
|
- return false;
|
|
|
|
-#undef DO_
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_sgx_mc_uuid_t::SerializeWithCachedSizes(
|
|
|
|
- ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
|
- // @@protoc_insertion_point(serialize_start:protobuf_sgx_mc_uuid_t)
|
|
|
|
- // required bytes nonce = 1;
|
|
|
|
- if (has_nonce()) {
|
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
|
|
- 1, this->nonce(), output);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // required bytes counter_id = 2;
|
|
|
|
- if (has_counter_id()) {
|
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
|
|
- 2, this->counter_id(), output);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (!unknown_fields().empty()) {
|
|
|
|
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
|
- unknown_fields(), output);
|
|
|
|
- }
|
|
|
|
- // @@protoc_insertion_point(serialize_end:protobuf_sgx_mc_uuid_t)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-::google::protobuf::uint8* protobuf_sgx_mc_uuid_t::SerializeWithCachedSizesToArray(
|
|
|
|
- ::google::protobuf::uint8* target) const {
|
|
|
|
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_sgx_mc_uuid_t)
|
|
|
|
- // required bytes nonce = 1;
|
|
|
|
- if (has_nonce()) {
|
|
|
|
- target =
|
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
|
|
|
|
- 1, this->nonce(), target);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // required bytes counter_id = 2;
|
|
|
|
- if (has_counter_id()) {
|
|
|
|
- target =
|
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
|
|
|
|
- 2, this->counter_id(), target);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (!unknown_fields().empty()) {
|
|
|
|
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
|
- unknown_fields(), target);
|
|
|
|
- }
|
|
|
|
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_sgx_mc_uuid_t)
|
|
|
|
- return target;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-int protobuf_sgx_mc_uuid_t::ByteSize() const {
|
|
|
|
- int total_size = 0;
|
|
|
|
-
|
|
|
|
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
|
|
- // required bytes nonce = 1;
|
|
|
|
- if (has_nonce()) {
|
|
|
|
- total_size += 1 +
|
|
|
|
- ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
|
|
- this->nonce());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // required bytes counter_id = 2;
|
|
|
|
- if (has_counter_id()) {
|
|
|
|
- total_size += 1 +
|
|
|
|
- ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
|
|
- this->counter_id());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- 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 protobuf_sgx_mc_uuid_t::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
|
- GOOGLE_CHECK_NE(&from, this);
|
|
|
|
- const protobuf_sgx_mc_uuid_t* source =
|
|
|
|
- ::google::protobuf::internal::dynamic_cast_if_available<const protobuf_sgx_mc_uuid_t*>(
|
|
|
|
- &from);
|
|
|
|
- if (source == NULL) {
|
|
|
|
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
|
- } else {
|
|
|
|
- MergeFrom(*source);
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_sgx_mc_uuid_t::MergeFrom(const protobuf_sgx_mc_uuid_t& from) {
|
|
|
|
- GOOGLE_CHECK_NE(&from, this);
|
|
|
|
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
|
|
- if (from.has_nonce()) {
|
|
|
|
- set_nonce(from.nonce());
|
|
|
|
- }
|
|
|
|
- if (from.has_counter_id()) {
|
|
|
|
- set_counter_id(from.counter_id());
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_sgx_mc_uuid_t::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
|
- if (&from == this) return;
|
|
|
|
- Clear();
|
|
|
|
- MergeFrom(from);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_sgx_mc_uuid_t::CopyFrom(const protobuf_sgx_mc_uuid_t& from) {
|
|
|
|
- if (&from == this) return;
|
|
|
|
- Clear();
|
|
|
|
- MergeFrom(from);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-bool protobuf_sgx_mc_uuid_t::IsInitialized() const {
|
|
|
|
- if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
|
|
|
|
-
|
|
|
|
- return true;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_sgx_mc_uuid_t::Swap(protobuf_sgx_mc_uuid_t* other) {
|
|
|
|
- if (other != this) {
|
|
|
|
- std::swap(nonce_, other->nonce_);
|
|
|
|
- std::swap(counter_id_, other->counter_id_);
|
|
|
|
- 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 protobuf_sgx_mc_uuid_t::GetMetadata() const {
|
|
|
|
- protobuf_AssignDescriptorsOnce();
|
|
|
|
- ::google::protobuf::Metadata metadata;
|
|
|
|
- metadata.descriptor = protobuf_sgx_mc_uuid_t_descriptor_;
|
|
|
|
- metadata.reflection = protobuf_sgx_mc_uuid_t_reflection_;
|
|
|
|
- return metadata;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-// ===================================================================
|
|
|
|
-
|
|
|
|
-#ifndef _MSC_VER
|
|
|
|
-const int protobuf_plaintext_seal_message::kMonotonicCounterIdFieldNumber;
|
|
|
|
-const int protobuf_plaintext_seal_message::kMonotonicCounterValueFieldNumber;
|
|
|
|
-const int protobuf_plaintext_seal_message::kMessageFieldNumber;
|
|
|
|
-#endif // !_MSC_VER
|
|
|
|
-
|
|
|
|
-protobuf_plaintext_seal_message::protobuf_plaintext_seal_message()
|
|
|
|
- : ::google::protobuf::Message() {
|
|
|
|
- SharedCtor();
|
|
|
|
- // @@protoc_insertion_point(constructor:protobuf_plaintext_seal_message)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_plaintext_seal_message::InitAsDefaultInstance() {
|
|
|
|
- monotonic_counter_id_ = const_cast< ::protobuf_sgx_mc_uuid_t*>(&::protobuf_sgx_mc_uuid_t::default_instance());
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-protobuf_plaintext_seal_message::protobuf_plaintext_seal_message(const protobuf_plaintext_seal_message& from)
|
|
|
|
- : ::google::protobuf::Message() {
|
|
|
|
- SharedCtor();
|
|
|
|
- MergeFrom(from);
|
|
|
|
- // @@protoc_insertion_point(copy_constructor:protobuf_plaintext_seal_message)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_plaintext_seal_message::SharedCtor() {
|
|
|
|
- ::google::protobuf::internal::GetEmptyString();
|
|
|
|
- _cached_size_ = 0;
|
|
|
|
- monotonic_counter_id_ = NULL;
|
|
|
|
- monotonic_counter_value_ = 0u;
|
|
|
|
- message_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-protobuf_plaintext_seal_message::~protobuf_plaintext_seal_message() {
|
|
|
|
- // @@protoc_insertion_point(destructor:protobuf_plaintext_seal_message)
|
|
|
|
- SharedDtor();
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_plaintext_seal_message::SharedDtor() {
|
|
|
|
- if (message_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
|
|
- delete message_;
|
|
|
|
- }
|
|
|
|
- if (this != default_instance_) {
|
|
|
|
- delete monotonic_counter_id_;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_plaintext_seal_message::SetCachedSize(int size) const {
|
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
|
- _cached_size_ = size;
|
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
|
-}
|
|
|
|
-const ::google::protobuf::Descriptor* protobuf_plaintext_seal_message::descriptor() {
|
|
|
|
- protobuf_AssignDescriptorsOnce();
|
|
|
|
- return protobuf_plaintext_seal_message_descriptor_;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-const protobuf_plaintext_seal_message& protobuf_plaintext_seal_message::default_instance() {
|
|
|
|
- if (default_instance_ == NULL) protobuf_AddDesc_ProtobufSealerMessages_2eproto();
|
|
|
|
- return *default_instance_;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-protobuf_plaintext_seal_message* protobuf_plaintext_seal_message::default_instance_ = NULL;
|
|
|
|
-
|
|
|
|
-protobuf_plaintext_seal_message* protobuf_plaintext_seal_message::New() const {
|
|
|
|
- return new protobuf_plaintext_seal_message;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_plaintext_seal_message::Clear() {
|
|
|
|
- if (_has_bits_[0 / 32] & 7) {
|
|
|
|
- if (has_monotonic_counter_id()) {
|
|
|
|
- if (monotonic_counter_id_ != NULL) monotonic_counter_id_->::protobuf_sgx_mc_uuid_t::Clear();
|
|
|
|
- }
|
|
|
|
- monotonic_counter_value_ = 0u;
|
|
|
|
- if (has_message()) {
|
|
|
|
- if (message_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
|
|
- message_->clear();
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
|
|
- mutable_unknown_fields()->Clear();
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-bool protobuf_plaintext_seal_message::MergePartialFromCodedStream(
|
|
|
|
- ::google::protobuf::io::CodedInputStream* input) {
|
|
|
|
-#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
|
|
- ::google::protobuf::uint32 tag;
|
|
|
|
- // @@protoc_insertion_point(parse_start:protobuf_plaintext_seal_message)
|
|
|
|
- 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 .protobuf_sgx_mc_uuid_t monotonic_counter_id = 1;
|
|
|
|
- case 1: {
|
|
|
|
- if (tag == 10) {
|
|
|
|
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
|
|
- input, mutable_monotonic_counter_id()));
|
|
|
|
- } else {
|
|
|
|
- goto handle_unusual;
|
|
|
|
- }
|
|
|
|
- if (input->ExpectTag(16)) goto parse_monotonic_counter_value;
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // required uint32 monotonic_counter_value = 2;
|
|
|
|
- case 2: {
|
|
|
|
- if (tag == 16) {
|
|
|
|
- parse_monotonic_counter_value:
|
|
|
|
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
|
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
|
- input, &monotonic_counter_value_)));
|
|
|
|
- set_has_monotonic_counter_value();
|
|
|
|
- } else {
|
|
|
|
- goto handle_unusual;
|
|
|
|
- }
|
|
|
|
- if (input->ExpectTag(26)) goto parse_message;
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // required bytes message = 3;
|
|
|
|
- case 3: {
|
|
|
|
- if (tag == 26) {
|
|
|
|
- parse_message:
|
|
|
|
- DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
|
|
- input, this->mutable_message()));
|
|
|
|
- } 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:protobuf_plaintext_seal_message)
|
|
|
|
- return true;
|
|
|
|
-failure:
|
|
|
|
- // @@protoc_insertion_point(parse_failure:protobuf_plaintext_seal_message)
|
|
|
|
- return false;
|
|
|
|
-#undef DO_
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_plaintext_seal_message::SerializeWithCachedSizes(
|
|
|
|
- ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
|
- // @@protoc_insertion_point(serialize_start:protobuf_plaintext_seal_message)
|
|
|
|
- // required .protobuf_sgx_mc_uuid_t monotonic_counter_id = 1;
|
|
|
|
- if (has_monotonic_counter_id()) {
|
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
|
- 1, this->monotonic_counter_id(), output);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // required uint32 monotonic_counter_value = 2;
|
|
|
|
- if (has_monotonic_counter_value()) {
|
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->monotonic_counter_value(), output);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // required bytes message = 3;
|
|
|
|
- if (has_message()) {
|
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
|
|
- 3, this->message(), output);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (!unknown_fields().empty()) {
|
|
|
|
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
|
- unknown_fields(), output);
|
|
|
|
- }
|
|
|
|
- // @@protoc_insertion_point(serialize_end:protobuf_plaintext_seal_message)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-::google::protobuf::uint8* protobuf_plaintext_seal_message::SerializeWithCachedSizesToArray(
|
|
|
|
- ::google::protobuf::uint8* target) const {
|
|
|
|
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_plaintext_seal_message)
|
|
|
|
- // required .protobuf_sgx_mc_uuid_t monotonic_counter_id = 1;
|
|
|
|
- if (has_monotonic_counter_id()) {
|
|
|
|
- target = ::google::protobuf::internal::WireFormatLite::
|
|
|
|
- WriteMessageNoVirtualToArray(
|
|
|
|
- 1, this->monotonic_counter_id(), target);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // required uint32 monotonic_counter_value = 2;
|
|
|
|
- if (has_monotonic_counter_value()) {
|
|
|
|
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->monotonic_counter_value(), target);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // required bytes message = 3;
|
|
|
|
- if (has_message()) {
|
|
|
|
- target =
|
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
|
|
|
|
- 3, this->message(), target);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (!unknown_fields().empty()) {
|
|
|
|
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
|
- unknown_fields(), target);
|
|
|
|
- }
|
|
|
|
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_plaintext_seal_message)
|
|
|
|
- return target;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-int protobuf_plaintext_seal_message::ByteSize() const {
|
|
|
|
- int total_size = 0;
|
|
|
|
-
|
|
|
|
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
|
|
- // required .protobuf_sgx_mc_uuid_t monotonic_counter_id = 1;
|
|
|
|
- if (has_monotonic_counter_id()) {
|
|
|
|
- total_size += 1 +
|
|
|
|
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
|
|
- this->monotonic_counter_id());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // required uint32 monotonic_counter_value = 2;
|
|
|
|
- if (has_monotonic_counter_value()) {
|
|
|
|
- total_size += 1 +
|
|
|
|
- ::google::protobuf::internal::WireFormatLite::UInt32Size(
|
|
|
|
- this->monotonic_counter_value());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // required bytes message = 3;
|
|
|
|
- if (has_message()) {
|
|
|
|
- total_size += 1 +
|
|
|
|
- ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
|
|
- this->message());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- 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 protobuf_plaintext_seal_message::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
|
- GOOGLE_CHECK_NE(&from, this);
|
|
|
|
- const protobuf_plaintext_seal_message* source =
|
|
|
|
- ::google::protobuf::internal::dynamic_cast_if_available<const protobuf_plaintext_seal_message*>(
|
|
|
|
- &from);
|
|
|
|
- if (source == NULL) {
|
|
|
|
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
|
- } else {
|
|
|
|
- MergeFrom(*source);
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_plaintext_seal_message::MergeFrom(const protobuf_plaintext_seal_message& from) {
|
|
|
|
- GOOGLE_CHECK_NE(&from, this);
|
|
|
|
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
|
|
- if (from.has_monotonic_counter_id()) {
|
|
|
|
- mutable_monotonic_counter_id()->::protobuf_sgx_mc_uuid_t::MergeFrom(from.monotonic_counter_id());
|
|
|
|
- }
|
|
|
|
- if (from.has_monotonic_counter_value()) {
|
|
|
|
- set_monotonic_counter_value(from.monotonic_counter_value());
|
|
|
|
- }
|
|
|
|
- if (from.has_message()) {
|
|
|
|
- set_message(from.message());
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_plaintext_seal_message::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
|
- if (&from == this) return;
|
|
|
|
- Clear();
|
|
|
|
- MergeFrom(from);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_plaintext_seal_message::CopyFrom(const protobuf_plaintext_seal_message& from) {
|
|
|
|
- if (&from == this) return;
|
|
|
|
- Clear();
|
|
|
|
- MergeFrom(from);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-bool protobuf_plaintext_seal_message::IsInitialized() const {
|
|
|
|
- if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
|
|
|
|
-
|
|
|
|
- if (has_monotonic_counter_id()) {
|
|
|
|
- if (!this->monotonic_counter_id().IsInitialized()) return false;
|
|
|
|
- }
|
|
|
|
- return true;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void protobuf_plaintext_seal_message::Swap(protobuf_plaintext_seal_message* other) {
|
|
|
|
- if (other != this) {
|
|
|
|
- std::swap(monotonic_counter_id_, other->monotonic_counter_id_);
|
|
|
|
- std::swap(monotonic_counter_value_, other->monotonic_counter_value_);
|
|
|
|
- std::swap(message_, other->message_);
|
|
|
|
- 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 protobuf_plaintext_seal_message::GetMetadata() const {
|
|
|
|
- protobuf_AssignDescriptorsOnce();
|
|
|
|
- ::google::protobuf::Metadata metadata;
|
|
|
|
- metadata.descriptor = protobuf_plaintext_seal_message_descriptor_;
|
|
|
|
- metadata.reflection = protobuf_plaintext_seal_message_reflection_;
|
|
|
|
- return metadata;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-// @@protoc_insertion_point(namespace_scope)
|
|
|
|
-
|
|
|
|
-// @@protoc_insertion_point(global_scope)
|
|
|