// Generated by the protocol buffer compiler. DO NOT EDIT! // source: claim.proto #ifndef PROTOBUF_INCLUDED_claim_2eproto #define PROTOBUF_INCLUDED_claim_2eproto #include #include #if GOOGLE_PROTOBUF_VERSION < 3006000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif #if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif #include #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include #include "stream.pb.h" #include "certificate.pb.h" #include "signature.pb.h" // @@protoc_insertion_point(includes) #define PROTOBUF_INTERNAL_EXPORT_protobuf_claim_2eproto namespace protobuf_claim_2eproto { // Internal implementation detail -- do not use these members. struct TableStruct { static const ::google::protobuf::internal::ParseTableField entries[]; static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; static const ::google::protobuf::internal::ParseTable schema[1]; static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; static const ::google::protobuf::uint32 offsets[]; }; void AddDescriptors(); } // namespace protobuf_claim_2eproto namespace pb { class Claim; class ClaimDefaultTypeInternal; extern ClaimDefaultTypeInternal _Claim_default_instance_; } // namespace pb namespace google { namespace protobuf { template<> ::pb::Claim* Arena::CreateMaybeMessage<::pb::Claim>(Arena*); } // namespace protobuf } // namespace google namespace pb { enum Claim_Version { Claim_Version_UNKNOWN_VERSION = 0, Claim_Version__0_0_1 = 1 }; bool Claim_Version_IsValid(int value); const Claim_Version Claim_Version_Version_MIN = Claim_Version_UNKNOWN_VERSION; const Claim_Version Claim_Version_Version_MAX = Claim_Version__0_0_1; const int Claim_Version_Version_ARRAYSIZE = Claim_Version_Version_MAX + 1; const ::google::protobuf::EnumDescriptor* Claim_Version_descriptor(); inline const ::std::string& Claim_Version_Name(Claim_Version value) { return ::google::protobuf::internal::NameOfEnum( Claim_Version_descriptor(), value); } inline bool Claim_Version_Parse( const ::std::string& name, Claim_Version* value) { return ::google::protobuf::internal::ParseNamedEnum( Claim_Version_descriptor(), name, value); } enum Claim_ClaimType { Claim_ClaimType_UNKNOWN_CLAIM_TYPE = 0, Claim_ClaimType_streamType = 1, Claim_ClaimType_certificateType = 2 }; bool Claim_ClaimType_IsValid(int value); const Claim_ClaimType Claim_ClaimType_ClaimType_MIN = Claim_ClaimType_UNKNOWN_CLAIM_TYPE; const Claim_ClaimType Claim_ClaimType_ClaimType_MAX = Claim_ClaimType_certificateType; const int Claim_ClaimType_ClaimType_ARRAYSIZE = Claim_ClaimType_ClaimType_MAX + 1; const ::google::protobuf::EnumDescriptor* Claim_ClaimType_descriptor(); inline const ::std::string& Claim_ClaimType_Name(Claim_ClaimType value) { return ::google::protobuf::internal::NameOfEnum( Claim_ClaimType_descriptor(), value); } inline bool Claim_ClaimType_Parse( const ::std::string& name, Claim_ClaimType* value) { return ::google::protobuf::internal::ParseNamedEnum( Claim_ClaimType_descriptor(), name, value); } // =================================================================== class Claim : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Claim) */ { public: Claim(); virtual ~Claim(); Claim(const Claim& from); inline Claim& operator=(const Claim& from) { CopyFrom(from); return *this; } #if LANG_CXX11 Claim(Claim&& from) noexcept : Claim() { *this = ::std::move(from); } inline Claim& operator=(Claim&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::google::protobuf::Descriptor* descriptor(); static const Claim& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Claim* internal_default_instance() { return reinterpret_cast( &_Claim_default_instance_); } static constexpr int kIndexInFileMessages = 0; void Swap(Claim* other); friend void swap(Claim& a, Claim& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline Claim* New() const final { return CreateMaybeMessage(NULL); } Claim* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const Claim& from); void MergeFrom(const Claim& from); void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Claim* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return NULL; } inline void* MaybeArenaPtr() const { return NULL; } public: ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- typedef Claim_Version Version; static const Version UNKNOWN_VERSION = Claim_Version_UNKNOWN_VERSION; static const Version _0_0_1 = Claim_Version__0_0_1; static inline bool Version_IsValid(int value) { return Claim_Version_IsValid(value); } static const Version Version_MIN = Claim_Version_Version_MIN; static const Version Version_MAX = Claim_Version_Version_MAX; static const int Version_ARRAYSIZE = Claim_Version_Version_ARRAYSIZE; static inline const ::google::protobuf::EnumDescriptor* Version_descriptor() { return Claim_Version_descriptor(); } static inline const ::std::string& Version_Name(Version value) { return Claim_Version_Name(value); } static inline bool Version_Parse(const ::std::string& name, Version* value) { return Claim_Version_Parse(name, value); } typedef Claim_ClaimType ClaimType; static const ClaimType UNKNOWN_CLAIM_TYPE = Claim_ClaimType_UNKNOWN_CLAIM_TYPE; static const ClaimType streamType = Claim_ClaimType_streamType; static const ClaimType certificateType = Claim_ClaimType_certificateType; static inline bool ClaimType_IsValid(int value) { return Claim_ClaimType_IsValid(value); } static const ClaimType ClaimType_MIN = Claim_ClaimType_ClaimType_MIN; static const ClaimType ClaimType_MAX = Claim_ClaimType_ClaimType_MAX; static const int ClaimType_ARRAYSIZE = Claim_ClaimType_ClaimType_ARRAYSIZE; static inline const ::google::protobuf::EnumDescriptor* ClaimType_descriptor() { return Claim_ClaimType_descriptor(); } static inline const ::std::string& ClaimType_Name(ClaimType value) { return Claim_ClaimType_Name(value); } static inline bool ClaimType_Parse(const ::std::string& name, ClaimType* value) { return Claim_ClaimType_Parse(name, value); } // accessors ------------------------------------------------------- // optional .pb.Stream stream = 3; bool has_stream() const; void clear_stream(); static const int kStreamFieldNumber = 3; private: const ::pb::Stream& _internal_stream() const; public: const ::pb::Stream& stream() const; ::pb::Stream* release_stream(); ::pb::Stream* mutable_stream(); void set_allocated_stream(::pb::Stream* stream); // optional .pb.Certificate certificate = 4; bool has_certificate() const; void clear_certificate(); static const int kCertificateFieldNumber = 4; private: const ::pb::Certificate& _internal_certificate() const; public: const ::pb::Certificate& certificate() const; ::pb::Certificate* release_certificate(); ::pb::Certificate* mutable_certificate(); void set_allocated_certificate(::pb::Certificate* certificate); // optional .pb.Signature publisherSignature = 5; bool has_publishersignature() const; void clear_publishersignature(); static const int kPublisherSignatureFieldNumber = 5; private: const ::pb::Signature& _internal_publishersignature() const; public: const ::pb::Signature& publishersignature() const; ::pb::Signature* release_publishersignature(); ::pb::Signature* mutable_publishersignature(); void set_allocated_publishersignature(::pb::Signature* publishersignature); // required .pb.Claim.Version version = 1; bool has_version() const; void clear_version(); static const int kVersionFieldNumber = 1; ::pb::Claim_Version version() const; void set_version(::pb::Claim_Version value); // required .pb.Claim.ClaimType claimType = 2; bool has_claimtype() const; void clear_claimtype(); static const int kClaimTypeFieldNumber = 2; ::pb::Claim_ClaimType claimtype() const; void set_claimtype(::pb::Claim_ClaimType value); // @@protoc_insertion_point(class_scope:pb.Claim) private: void set_has_version(); void clear_has_version(); void set_has_claimtype(); void clear_has_claimtype(); void set_has_stream(); void clear_has_stream(); void set_has_certificate(); void clear_has_certificate(); void set_has_publishersignature(); void clear_has_publishersignature(); // helper for ByteSizeLong() size_t RequiredFieldsByteSizeFallback() const; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::pb::Stream* stream_; ::pb::Certificate* certificate_; ::pb::Signature* publishersignature_; int version_; int claimtype_; friend struct ::protobuf_claim_2eproto::TableStruct; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // Claim // required .pb.Claim.Version version = 1; inline bool Claim::has_version() const { return (_has_bits_[0] & 0x00000008u) != 0; } inline void Claim::set_has_version() { _has_bits_[0] |= 0x00000008u; } inline void Claim::clear_has_version() { _has_bits_[0] &= ~0x00000008u; } inline void Claim::clear_version() { version_ = 0; clear_has_version(); } inline ::pb::Claim_Version Claim::version() const { // @@protoc_insertion_point(field_get:pb.Claim.version) return static_cast< ::pb::Claim_Version >(version_); } inline void Claim::set_version(::pb::Claim_Version value) { assert(::pb::Claim_Version_IsValid(value)); set_has_version(); version_ = value; // @@protoc_insertion_point(field_set:pb.Claim.version) } // required .pb.Claim.ClaimType claimType = 2; inline bool Claim::has_claimtype() const { return (_has_bits_[0] & 0x00000010u) != 0; } inline void Claim::set_has_claimtype() { _has_bits_[0] |= 0x00000010u; } inline void Claim::clear_has_claimtype() { _has_bits_[0] &= ~0x00000010u; } inline void Claim::clear_claimtype() { claimtype_ = 0; clear_has_claimtype(); } inline ::pb::Claim_ClaimType Claim::claimtype() const { // @@protoc_insertion_point(field_get:pb.Claim.claimType) return static_cast< ::pb::Claim_ClaimType >(claimtype_); } inline void Claim::set_claimtype(::pb::Claim_ClaimType value) { assert(::pb::Claim_ClaimType_IsValid(value)); set_has_claimtype(); claimtype_ = value; // @@protoc_insertion_point(field_set:pb.Claim.claimType) } // optional .pb.Stream stream = 3; inline bool Claim::has_stream() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void Claim::set_has_stream() { _has_bits_[0] |= 0x00000001u; } inline void Claim::clear_has_stream() { _has_bits_[0] &= ~0x00000001u; } inline const ::pb::Stream& Claim::_internal_stream() const { return *stream_; } inline const ::pb::Stream& Claim::stream() const { const ::pb::Stream* p = stream_; // @@protoc_insertion_point(field_get:pb.Claim.stream) return p != NULL ? *p : *reinterpret_cast( &::pb::_Stream_default_instance_); } inline ::pb::Stream* Claim::release_stream() { // @@protoc_insertion_point(field_release:pb.Claim.stream) clear_has_stream(); ::pb::Stream* temp = stream_; stream_ = NULL; return temp; } inline ::pb::Stream* Claim::mutable_stream() { set_has_stream(); if (stream_ == NULL) { auto* p = CreateMaybeMessage<::pb::Stream>(GetArenaNoVirtual()); stream_ = p; } // @@protoc_insertion_point(field_mutable:pb.Claim.stream) return stream_; } inline void Claim::set_allocated_stream(::pb::Stream* stream) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete reinterpret_cast< ::google::protobuf::MessageLite*>(stream_); } if (stream) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { stream = ::google::protobuf::internal::GetOwnedMessage( message_arena, stream, submessage_arena); } set_has_stream(); } else { clear_has_stream(); } stream_ = stream; // @@protoc_insertion_point(field_set_allocated:pb.Claim.stream) } // optional .pb.Certificate certificate = 4; inline bool Claim::has_certificate() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void Claim::set_has_certificate() { _has_bits_[0] |= 0x00000002u; } inline void Claim::clear_has_certificate() { _has_bits_[0] &= ~0x00000002u; } inline const ::pb::Certificate& Claim::_internal_certificate() const { return *certificate_; } inline const ::pb::Certificate& Claim::certificate() const { const ::pb::Certificate* p = certificate_; // @@protoc_insertion_point(field_get:pb.Claim.certificate) return p != NULL ? *p : *reinterpret_cast( &::pb::_Certificate_default_instance_); } inline ::pb::Certificate* Claim::release_certificate() { // @@protoc_insertion_point(field_release:pb.Claim.certificate) clear_has_certificate(); ::pb::Certificate* temp = certificate_; certificate_ = NULL; return temp; } inline ::pb::Certificate* Claim::mutable_certificate() { set_has_certificate(); if (certificate_ == NULL) { auto* p = CreateMaybeMessage<::pb::Certificate>(GetArenaNoVirtual()); certificate_ = p; } // @@protoc_insertion_point(field_mutable:pb.Claim.certificate) return certificate_; } inline void Claim::set_allocated_certificate(::pb::Certificate* certificate) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete reinterpret_cast< ::google::protobuf::MessageLite*>(certificate_); } if (certificate) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { certificate = ::google::protobuf::internal::GetOwnedMessage( message_arena, certificate, submessage_arena); } set_has_certificate(); } else { clear_has_certificate(); } certificate_ = certificate; // @@protoc_insertion_point(field_set_allocated:pb.Claim.certificate) } // optional .pb.Signature publisherSignature = 5; inline bool Claim::has_publishersignature() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void Claim::set_has_publishersignature() { _has_bits_[0] |= 0x00000004u; } inline void Claim::clear_has_publishersignature() { _has_bits_[0] &= ~0x00000004u; } inline const ::pb::Signature& Claim::_internal_publishersignature() const { return *publishersignature_; } inline const ::pb::Signature& Claim::publishersignature() const { const ::pb::Signature* p = publishersignature_; // @@protoc_insertion_point(field_get:pb.Claim.publisherSignature) return p != NULL ? *p : *reinterpret_cast( &::pb::_Signature_default_instance_); } inline ::pb::Signature* Claim::release_publishersignature() { // @@protoc_insertion_point(field_release:pb.Claim.publisherSignature) clear_has_publishersignature(); ::pb::Signature* temp = publishersignature_; publishersignature_ = NULL; return temp; } inline ::pb::Signature* Claim::mutable_publishersignature() { set_has_publishersignature(); if (publishersignature_ == NULL) { auto* p = CreateMaybeMessage<::pb::Signature>(GetArenaNoVirtual()); publishersignature_ = p; } // @@protoc_insertion_point(field_mutable:pb.Claim.publisherSignature) return publishersignature_; } inline void Claim::set_allocated_publishersignature(::pb::Signature* publishersignature) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete reinterpret_cast< ::google::protobuf::MessageLite*>(publishersignature_); } if (publishersignature) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { publishersignature = ::google::protobuf::internal::GetOwnedMessage( message_arena, publishersignature, submessage_arena); } set_has_publishersignature(); } else { clear_has_publishersignature(); } publishersignature_ = publishersignature; // @@protoc_insertion_point(field_set_allocated:pb.Claim.publisherSignature) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) } // namespace pb namespace google { namespace protobuf { template <> struct is_proto_enum< ::pb::Claim_Version> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::pb::Claim_Version>() { return ::pb::Claim_Version_descriptor(); } template <> struct is_proto_enum< ::pb::Claim_ClaimType> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::pb::Claim_ClaimType>() { return ::pb::Claim_ClaimType_descriptor(); } } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_INCLUDED_claim_2eproto