// Generated by the protocol buffer compiler. DO NOT EDIT! // source: source.proto #ifndef PROTOBUF_INCLUDED_source_2eproto #define PROTOBUF_INCLUDED_source_2eproto #include #include #include #if PROTOBUF_VERSION < 3007000 #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 3007000 < 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 #include // IWYU pragma: export #include // IWYU pragma: export #include #include // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_source_2eproto // Internal implementation detail -- do not use these members. struct TableStruct_source_2eproto { static const ::google::protobuf::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; static const ::google::protobuf::uint32 offsets[]; }; void AddDescriptors_source_2eproto(); namespace legacy_pb { class Source; class SourceDefaultTypeInternal; extern SourceDefaultTypeInternal _Source_default_instance_; } // namespace legacy_pb namespace google { namespace protobuf { template<> ::legacy_pb::Source* Arena::CreateMaybeMessage<::legacy_pb::Source>(Arena*); } // namespace protobuf } // namespace google namespace legacy_pb { enum Source_Version { Source_Version_UNKNOWN_VERSION = 0, Source_Version__0_0_1 = 1 }; bool Source_Version_IsValid(int value); const Source_Version Source_Version_Version_MIN = Source_Version_UNKNOWN_VERSION; const Source_Version Source_Version_Version_MAX = Source_Version__0_0_1; const int Source_Version_Version_ARRAYSIZE = Source_Version_Version_MAX + 1; const ::google::protobuf::EnumDescriptor* Source_Version_descriptor(); inline const ::std::string& Source_Version_Name(Source_Version value) { return ::google::protobuf::internal::NameOfEnum( Source_Version_descriptor(), value); } inline bool Source_Version_Parse( const ::std::string& name, Source_Version* value) { return ::google::protobuf::internal::ParseNamedEnum( Source_Version_descriptor(), name, value); } enum Source_SourceTypes { Source_SourceTypes_UNKNOWN_SOURCE_TYPE = 0, Source_SourceTypes_lbry_sd_hash = 1 }; bool Source_SourceTypes_IsValid(int value); const Source_SourceTypes Source_SourceTypes_SourceTypes_MIN = Source_SourceTypes_UNKNOWN_SOURCE_TYPE; const Source_SourceTypes Source_SourceTypes_SourceTypes_MAX = Source_SourceTypes_lbry_sd_hash; const int Source_SourceTypes_SourceTypes_ARRAYSIZE = Source_SourceTypes_SourceTypes_MAX + 1; const ::google::protobuf::EnumDescriptor* Source_SourceTypes_descriptor(); inline const ::std::string& Source_SourceTypes_Name(Source_SourceTypes value) { return ::google::protobuf::internal::NameOfEnum( Source_SourceTypes_descriptor(), value); } inline bool Source_SourceTypes_Parse( const ::std::string& name, Source_SourceTypes* value) { return ::google::protobuf::internal::ParseNamedEnum( Source_SourceTypes_descriptor(), name, value); } // =================================================================== class Source final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Source) */ { public: Source(); virtual ~Source(); Source(const Source& from); inline Source& operator=(const Source& from) { CopyFrom(from); return *this; } #if LANG_CXX11 Source(Source&& from) noexcept : Source() { *this = ::std::move(from); } inline Source& operator=(Source&& 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() { return default_instance().GetDescriptor(); } static const Source& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Source* internal_default_instance() { return reinterpret_cast( &_Source_default_instance_); } static constexpr int kIndexInFileMessages = 0; void Swap(Source* other); friend void swap(Source& a, Source& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline Source* New() const final { return CreateMaybeMessage(nullptr); } Source* 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 Source& from); void MergeFrom(const Source& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } #else bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( ::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(Source* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- typedef Source_Version Version; static const Version UNKNOWN_VERSION = Source_Version_UNKNOWN_VERSION; static const Version _0_0_1 = Source_Version__0_0_1; static inline bool Version_IsValid(int value) { return Source_Version_IsValid(value); } static const Version Version_MIN = Source_Version_Version_MIN; static const Version Version_MAX = Source_Version_Version_MAX; static const int Version_ARRAYSIZE = Source_Version_Version_ARRAYSIZE; static inline const ::google::protobuf::EnumDescriptor* Version_descriptor() { return Source_Version_descriptor(); } static inline const ::std::string& Version_Name(Version value) { return Source_Version_Name(value); } static inline bool Version_Parse(const ::std::string& name, Version* value) { return Source_Version_Parse(name, value); } typedef Source_SourceTypes SourceTypes; static const SourceTypes UNKNOWN_SOURCE_TYPE = Source_SourceTypes_UNKNOWN_SOURCE_TYPE; static const SourceTypes lbry_sd_hash = Source_SourceTypes_lbry_sd_hash; static inline bool SourceTypes_IsValid(int value) { return Source_SourceTypes_IsValid(value); } static const SourceTypes SourceTypes_MIN = Source_SourceTypes_SourceTypes_MIN; static const SourceTypes SourceTypes_MAX = Source_SourceTypes_SourceTypes_MAX; static const int SourceTypes_ARRAYSIZE = Source_SourceTypes_SourceTypes_ARRAYSIZE; static inline const ::google::protobuf::EnumDescriptor* SourceTypes_descriptor() { return Source_SourceTypes_descriptor(); } static inline const ::std::string& SourceTypes_Name(SourceTypes value) { return Source_SourceTypes_Name(value); } static inline bool SourceTypes_Parse(const ::std::string& name, SourceTypes* value) { return Source_SourceTypes_Parse(name, value); } // accessors ------------------------------------------------------- // required bytes source = 3; bool has_source() const; void clear_source(); static const int kSourceFieldNumber = 3; const ::std::string& source() const; void set_source(const ::std::string& value); #if LANG_CXX11 void set_source(::std::string&& value); #endif void set_source(const char* value); void set_source(const void* value, size_t size); ::std::string* mutable_source(); ::std::string* release_source(); void set_allocated_source(::std::string* source); // required string contentType = 4; bool has_contenttype() const; void clear_contenttype(); static const int kContentTypeFieldNumber = 4; const ::std::string& contenttype() const; void set_contenttype(const ::std::string& value); #if LANG_CXX11 void set_contenttype(::std::string&& value); #endif void set_contenttype(const char* value); void set_contenttype(const char* value, size_t size); ::std::string* mutable_contenttype(); ::std::string* release_contenttype(); void set_allocated_contenttype(::std::string* contenttype); // required .legacy_pb.Source.Version version = 1; bool has_version() const; void clear_version(); static const int kVersionFieldNumber = 1; ::legacy_pb::Source_Version version() const; void set_version(::legacy_pb::Source_Version value); // required .legacy_pb.Source.SourceTypes sourceType = 2; bool has_sourcetype() const; void clear_sourcetype(); static const int kSourceTypeFieldNumber = 2; ::legacy_pb::Source_SourceTypes sourcetype() const; void set_sourcetype(::legacy_pb::Source_SourceTypes value); // @@protoc_insertion_point(class_scope:legacy_pb.Source) private: class HasBitSetters; // 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_; ::google::protobuf::internal::ArenaStringPtr source_; ::google::protobuf::internal::ArenaStringPtr contenttype_; int version_; int sourcetype_; friend struct ::TableStruct_source_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // Source // required .legacy_pb.Source.Version version = 1; inline bool Source::has_version() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void Source::clear_version() { version_ = 0; _has_bits_[0] &= ~0x00000004u; } inline ::legacy_pb::Source_Version Source::version() const { // @@protoc_insertion_point(field_get:legacy_pb.Source.version) return static_cast< ::legacy_pb::Source_Version >(version_); } inline void Source::set_version(::legacy_pb::Source_Version value) { assert(::legacy_pb::Source_Version_IsValid(value)); _has_bits_[0] |= 0x00000004u; version_ = value; // @@protoc_insertion_point(field_set:legacy_pb.Source.version) } // required .legacy_pb.Source.SourceTypes sourceType = 2; inline bool Source::has_sourcetype() const { return (_has_bits_[0] & 0x00000008u) != 0; } inline void Source::clear_sourcetype() { sourcetype_ = 0; _has_bits_[0] &= ~0x00000008u; } inline ::legacy_pb::Source_SourceTypes Source::sourcetype() const { // @@protoc_insertion_point(field_get:legacy_pb.Source.sourceType) return static_cast< ::legacy_pb::Source_SourceTypes >(sourcetype_); } inline void Source::set_sourcetype(::legacy_pb::Source_SourceTypes value) { assert(::legacy_pb::Source_SourceTypes_IsValid(value)); _has_bits_[0] |= 0x00000008u; sourcetype_ = value; // @@protoc_insertion_point(field_set:legacy_pb.Source.sourceType) } // required bytes source = 3; inline bool Source::has_source() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void Source::clear_source() { source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& Source::source() const { // @@protoc_insertion_point(field_get:legacy_pb.Source.source) return source_.GetNoArena(); } inline void Source::set_source(const ::std::string& value) { _has_bits_[0] |= 0x00000001u; source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:legacy_pb.Source.source) } #if LANG_CXX11 inline void Source::set_source(::std::string&& value) { _has_bits_[0] |= 0x00000001u; source_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:legacy_pb.Source.source) } #endif inline void Source::set_source(const char* value) { GOOGLE_DCHECK(value != nullptr); _has_bits_[0] |= 0x00000001u; source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:legacy_pb.Source.source) } inline void Source::set_source(const void* value, size_t size) { _has_bits_[0] |= 0x00000001u; source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:legacy_pb.Source.source) } inline ::std::string* Source::mutable_source() { _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:legacy_pb.Source.source) return source_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* Source::release_source() { // @@protoc_insertion_point(field_release:legacy_pb.Source.source) if (!has_source()) { return nullptr; } _has_bits_[0] &= ~0x00000001u; return source_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void Source::set_allocated_source(::std::string* source) { if (source != nullptr) { _has_bits_[0] |= 0x00000001u; } else { _has_bits_[0] &= ~0x00000001u; } source_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source); // @@protoc_insertion_point(field_set_allocated:legacy_pb.Source.source) } // required string contentType = 4; inline bool Source::has_contenttype() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void Source::clear_contenttype() { contenttype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _has_bits_[0] &= ~0x00000002u; } inline const ::std::string& Source::contenttype() const { // @@protoc_insertion_point(field_get:legacy_pb.Source.contentType) return contenttype_.GetNoArena(); } inline void Source::set_contenttype(const ::std::string& value) { _has_bits_[0] |= 0x00000002u; contenttype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:legacy_pb.Source.contentType) } #if LANG_CXX11 inline void Source::set_contenttype(::std::string&& value) { _has_bits_[0] |= 0x00000002u; contenttype_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:legacy_pb.Source.contentType) } #endif inline void Source::set_contenttype(const char* value) { GOOGLE_DCHECK(value != nullptr); _has_bits_[0] |= 0x00000002u; contenttype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:legacy_pb.Source.contentType) } inline void Source::set_contenttype(const char* value, size_t size) { _has_bits_[0] |= 0x00000002u; contenttype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:legacy_pb.Source.contentType) } inline ::std::string* Source::mutable_contenttype() { _has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_mutable:legacy_pb.Source.contentType) return contenttype_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* Source::release_contenttype() { // @@protoc_insertion_point(field_release:legacy_pb.Source.contentType) if (!has_contenttype()) { return nullptr; } _has_bits_[0] &= ~0x00000002u; return contenttype_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void Source::set_allocated_contenttype(::std::string* contenttype) { if (contenttype != nullptr) { _has_bits_[0] |= 0x00000002u; } else { _has_bits_[0] &= ~0x00000002u; } contenttype_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), contenttype); // @@protoc_insertion_point(field_set_allocated:legacy_pb.Source.contentType) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) } // namespace legacy_pb namespace google { namespace protobuf { template <> struct is_proto_enum< ::legacy_pb::Source_Version> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::Source_Version>() { return ::legacy_pb::Source_Version_descriptor(); } template <> struct is_proto_enum< ::legacy_pb::Source_SourceTypes> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::Source_SourceTypes>() { return ::legacy_pb::Source_SourceTypes_descriptor(); } } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #include #endif // PROTOBUF_INCLUDED_source_2eproto