2018-10-01 19:57:10 +02:00
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
// source: source.proto
|
|
|
|
|
|
|
|
#ifndef PROTOBUF_INCLUDED_source_2eproto
|
|
|
|
#define PROTOBUF_INCLUDED_source_2eproto
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
#include <limits>
|
2018-10-01 19:57:10 +02:00
|
|
|
#include <string>
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
#include <google/protobuf/port_def.inc>
|
|
|
|
#if PROTOBUF_VERSION < 3007000
|
2018-10-01 19:57:10 +02:00
|
|
|
#error This file was generated by a newer version of protoc which is
|
2019-03-01 21:06:55 +01:00
|
|
|
#error incompatible with your Protocol Buffer headers. Please update
|
2018-10-01 19:57:10 +02:00
|
|
|
#error your headers.
|
|
|
|
#endif
|
2019-03-01 21:06:55 +01:00
|
|
|
#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION
|
2018-10-01 19:57:10 +02:00
|
|
|
#error This file was generated by an older version of protoc which is
|
2019-03-01 21:06:55 +01:00
|
|
|
#error incompatible with your Protocol Buffer headers. Please
|
2018-10-01 19:57:10 +02:00
|
|
|
#error regenerate this file with a newer version of protoc.
|
|
|
|
#endif
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
#include <google/protobuf/port_undef.inc>
|
2018-10-01 19:57:10 +02:00
|
|
|
#include <google/protobuf/io/coded_stream.h>
|
|
|
|
#include <google/protobuf/arena.h>
|
|
|
|
#include <google/protobuf/arenastring.h>
|
|
|
|
#include <google/protobuf/generated_message_table_driven.h>
|
|
|
|
#include <google/protobuf/generated_message_util.h>
|
|
|
|
#include <google/protobuf/inlined_string_field.h>
|
|
|
|
#include <google/protobuf/metadata.h>
|
|
|
|
#include <google/protobuf/message.h>
|
|
|
|
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
|
|
|
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
|
|
|
#include <google/protobuf/generated_enum_reflection.h>
|
|
|
|
#include <google/protobuf/unknown_field_set.h>
|
|
|
|
// @@protoc_insertion_point(includes)
|
2019-03-01 21:06:55 +01:00
|
|
|
#include <google/protobuf/port_def.inc>
|
|
|
|
#define PROTOBUF_INTERNAL_EXPORT_source_2eproto
|
2018-10-01 19:57:10 +02:00
|
|
|
|
|
|
|
// Internal implementation detail -- do not use these members.
|
2019-03-01 21:06:55 +01:00
|
|
|
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);
|
2018-10-01 19:57:10 +02:00
|
|
|
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
|
|
|
|
static const ::google::protobuf::internal::SerializationTable serialization_table[];
|
|
|
|
static const ::google::protobuf::uint32 offsets[];
|
|
|
|
};
|
2019-03-01 21:06:55 +01:00
|
|
|
void AddDescriptors_source_2eproto();
|
|
|
|
namespace legacy_pb {
|
2018-10-01 19:57:10 +02:00
|
|
|
class Source;
|
|
|
|
class SourceDefaultTypeInternal;
|
|
|
|
extern SourceDefaultTypeInternal _Source_default_instance_;
|
2019-03-01 21:06:55 +01:00
|
|
|
} // namespace legacy_pb
|
2018-10-01 19:57:10 +02:00
|
|
|
namespace google {
|
|
|
|
namespace protobuf {
|
2019-03-01 21:06:55 +01:00
|
|
|
template<> ::legacy_pb::Source* Arena::CreateMaybeMessage<::legacy_pb::Source>(Arena*);
|
2018-10-01 19:57:10 +02:00
|
|
|
} // namespace protobuf
|
|
|
|
} // namespace google
|
2019-03-01 21:06:55 +01:00
|
|
|
namespace legacy_pb {
|
2018-10-01 19:57:10 +02:00
|
|
|
|
|
|
|
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>(
|
|
|
|
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>(
|
|
|
|
Source_SourceTypes_descriptor(), name, value);
|
|
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
class Source final :
|
|
|
|
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Source) */ {
|
2018-10-01 19:57:10 +02:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
static const ::google::protobuf::Descriptor* descriptor() {
|
|
|
|
return default_instance().GetDescriptor();
|
|
|
|
}
|
2018-10-01 19:57:10 +02:00
|
|
|
static const Source& default_instance();
|
|
|
|
|
|
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
|
|
|
static inline const Source* internal_default_instance() {
|
|
|
|
return reinterpret_cast<const Source*>(
|
|
|
|
&_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 {
|
2019-03-01 21:06:55 +01:00
|
|
|
return CreateMaybeMessage<Source>(nullptr);
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Source* New(::google::protobuf::Arena* arena) const final {
|
|
|
|
return CreateMaybeMessage<Source>(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);
|
2019-03-01 21:06:55 +01:00
|
|
|
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
2018-10-01 19:57:10 +02:00
|
|
|
bool IsInitialized() const final;
|
|
|
|
|
|
|
|
size_t ByteSizeLong() const final;
|
2019-03-01 21:06:55 +01:00
|
|
|
#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
|
2018-10-01 19:57:10 +02:00
|
|
|
bool MergePartialFromCodedStream(
|
|
|
|
::google::protobuf::io::CodedInputStream* input) final;
|
2019-03-01 21:06:55 +01:00
|
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
2018-10-01 19:57:10 +02:00
|
|
|
void SerializeWithCachedSizes(
|
|
|
|
::google::protobuf::io::CodedOutputStream* output) const final;
|
|
|
|
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
|
2019-03-01 21:06:55 +01:00
|
|
|
::google::protobuf::uint8* target) const final;
|
2018-10-01 19:57:10 +02:00
|
|
|
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 {
|
2019-03-01 21:06:55 +01:00
|
|
|
return nullptr;
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
inline void* MaybeArenaPtr() const {
|
2019-03-01 21:06:55 +01:00
|
|
|
return nullptr;
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
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);
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
// required .legacy_pb.Source.Version version = 1;
|
2018-10-01 19:57:10 +02:00
|
|
|
bool has_version() const;
|
|
|
|
void clear_version();
|
|
|
|
static const int kVersionFieldNumber = 1;
|
2019-03-01 21:06:55 +01:00
|
|
|
::legacy_pb::Source_Version version() const;
|
|
|
|
void set_version(::legacy_pb::Source_Version value);
|
2018-10-01 19:57:10 +02:00
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
// required .legacy_pb.Source.SourceTypes sourceType = 2;
|
2018-10-01 19:57:10 +02:00
|
|
|
bool has_sourcetype() const;
|
|
|
|
void clear_sourcetype();
|
|
|
|
static const int kSourceTypeFieldNumber = 2;
|
2019-03-01 21:06:55 +01:00
|
|
|
::legacy_pb::Source_SourceTypes sourcetype() const;
|
|
|
|
void set_sourcetype(::legacy_pb::Source_SourceTypes value);
|
2018-10-01 19:57:10 +02:00
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(class_scope:legacy_pb.Source)
|
2018-10-01 19:57:10 +02:00
|
|
|
private:
|
2019-03-01 21:06:55 +01:00
|
|
|
class HasBitSetters;
|
2018-10-01 19:57:10 +02:00
|
|
|
|
|
|
|
// 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_;
|
2019-03-01 21:06:55 +01:00
|
|
|
friend struct ::TableStruct_source_2eproto;
|
2018-10-01 19:57:10 +02:00
|
|
|
};
|
|
|
|
// ===================================================================
|
|
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#pragma GCC diagnostic push
|
|
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
|
|
#endif // __GNUC__
|
|
|
|
// Source
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
// required .legacy_pb.Source.Version version = 1;
|
2018-10-01 19:57:10 +02:00
|
|
|
inline bool Source::has_version() const {
|
|
|
|
return (_has_bits_[0] & 0x00000004u) != 0;
|
|
|
|
}
|
|
|
|
inline void Source::clear_version() {
|
|
|
|
version_ = 0;
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
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_);
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
inline void Source::set_version(::legacy_pb::Source_Version value) {
|
|
|
|
assert(::legacy_pb::Source_Version_IsValid(value));
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
2018-10-01 19:57:10 +02:00
|
|
|
version_ = value;
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_set:legacy_pb.Source.version)
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
// required .legacy_pb.Source.SourceTypes sourceType = 2;
|
2018-10-01 19:57:10 +02:00
|
|
|
inline bool Source::has_sourcetype() const {
|
|
|
|
return (_has_bits_[0] & 0x00000008u) != 0;
|
|
|
|
}
|
|
|
|
inline void Source::clear_sourcetype() {
|
|
|
|
sourcetype_ = 0;
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] &= ~0x00000008u;
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
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_);
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
inline void Source::set_sourcetype(::legacy_pb::Source_SourceTypes value) {
|
|
|
|
assert(::legacy_pb::Source_SourceTypes_IsValid(value));
|
|
|
|
_has_bits_[0] |= 0x00000008u;
|
2018-10-01 19:57:10 +02:00
|
|
|
sourcetype_ = value;
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_set:legacy_pb.Source.sourceType)
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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());
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
inline const ::std::string& Source::source() const {
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_get:legacy_pb.Source.source)
|
2018-10-01 19:57:10 +02:00
|
|
|
return source_.GetNoArena();
|
|
|
|
}
|
|
|
|
inline void Source::set_source(const ::std::string& value) {
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-10-01 19:57:10 +02:00
|
|
|
source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_set:legacy_pb.Source.source)
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
#if LANG_CXX11
|
|
|
|
inline void Source::set_source(::std::string&& value) {
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-10-01 19:57:10 +02:00
|
|
|
source_.SetNoArena(
|
|
|
|
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_set_rvalue:legacy_pb.Source.source)
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
inline void Source::set_source(const char* value) {
|
2019-03-01 21:06:55 +01:00
|
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-10-01 19:57:10 +02:00
|
|
|
source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_set_char:legacy_pb.Source.source)
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
inline void Source::set_source(const void* value, size_t size) {
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-10-01 19:57:10 +02:00
|
|
|
source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
|
::std::string(reinterpret_cast<const char*>(value), size));
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_set_pointer:legacy_pb.Source.source)
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
inline ::std::string* Source::mutable_source() {
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
// @@protoc_insertion_point(field_mutable:legacy_pb.Source.source)
|
2018-10-01 19:57:10 +02:00
|
|
|
return source_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
}
|
|
|
|
inline ::std::string* Source::release_source() {
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_release:legacy_pb.Source.source)
|
2018-10-01 19:57:10 +02:00
|
|
|
if (!has_source()) {
|
2019-03-01 21:06:55 +01:00
|
|
|
return nullptr;
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-10-01 19:57:10 +02:00
|
|
|
return source_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
}
|
|
|
|
inline void Source::set_allocated_source(::std::string* source) {
|
2019-03-01 21:06:55 +01:00
|
|
|
if (source != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-10-01 19:57:10 +02:00
|
|
|
} else {
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
source_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source);
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Source.source)
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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());
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
inline const ::std::string& Source::contenttype() const {
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_get:legacy_pb.Source.contentType)
|
2018-10-01 19:57:10 +02:00
|
|
|
return contenttype_.GetNoArena();
|
|
|
|
}
|
|
|
|
inline void Source::set_contenttype(const ::std::string& value) {
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] |= 0x00000002u;
|
2018-10-01 19:57:10 +02:00
|
|
|
contenttype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_set:legacy_pb.Source.contentType)
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
#if LANG_CXX11
|
|
|
|
inline void Source::set_contenttype(::std::string&& value) {
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] |= 0x00000002u;
|
2018-10-01 19:57:10 +02:00
|
|
|
contenttype_.SetNoArena(
|
|
|
|
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_set_rvalue:legacy_pb.Source.contentType)
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
inline void Source::set_contenttype(const char* value) {
|
2019-03-01 21:06:55 +01:00
|
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
2018-10-01 19:57:10 +02:00
|
|
|
contenttype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_set_char:legacy_pb.Source.contentType)
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
inline void Source::set_contenttype(const char* value, size_t size) {
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] |= 0x00000002u;
|
2018-10-01 19:57:10 +02:00
|
|
|
contenttype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
|
::std::string(reinterpret_cast<const char*>(value), size));
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_set_pointer:legacy_pb.Source.contentType)
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
inline ::std::string* Source::mutable_contenttype() {
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
// @@protoc_insertion_point(field_mutable:legacy_pb.Source.contentType)
|
2018-10-01 19:57:10 +02:00
|
|
|
return contenttype_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
}
|
|
|
|
inline ::std::string* Source::release_contenttype() {
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_release:legacy_pb.Source.contentType)
|
2018-10-01 19:57:10 +02:00
|
|
|
if (!has_contenttype()) {
|
2019-03-01 21:06:55 +01:00
|
|
|
return nullptr;
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
2018-10-01 19:57:10 +02:00
|
|
|
return contenttype_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
}
|
|
|
|
inline void Source::set_allocated_contenttype(::std::string* contenttype) {
|
2019-03-01 21:06:55 +01:00
|
|
|
if (contenttype != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
2018-10-01 19:57:10 +02:00
|
|
|
} else {
|
2019-03-01 21:06:55 +01:00
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
contenttype_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), contenttype);
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Source.contentType)
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#pragma GCC diagnostic pop
|
|
|
|
#endif // __GNUC__
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
} // namespace legacy_pb
|
2018-10-01 19:57:10 +02:00
|
|
|
|
|
|
|
namespace google {
|
|
|
|
namespace protobuf {
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
template <> struct is_proto_enum< ::legacy_pb::Source_Version> : ::std::true_type {};
|
2018-10-01 19:57:10 +02:00
|
|
|
template <>
|
2019-03-01 21:06:55 +01:00
|
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::Source_Version>() {
|
|
|
|
return ::legacy_pb::Source_Version_descriptor();
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
template <> struct is_proto_enum< ::legacy_pb::Source_SourceTypes> : ::std::true_type {};
|
2018-10-01 19:57:10 +02:00
|
|
|
template <>
|
2019-03-01 21:06:55 +01:00
|
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::Source_SourceTypes>() {
|
|
|
|
return ::legacy_pb::Source_SourceTypes_descriptor();
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace protobuf
|
|
|
|
} // namespace google
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
#include <google/protobuf/port_undef.inc>
|
2018-10-01 19:57:10 +02:00
|
|
|
#endif // PROTOBUF_INCLUDED_source_2eproto
|