2018-10-01 19:57:10 +02:00
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
// source: stream.proto
|
|
|
|
|
|
|
|
#ifndef PROTOBUF_INCLUDED_stream_2eproto
|
|
|
|
#define PROTOBUF_INCLUDED_stream_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>
|
|
|
|
#include "metadata.pb.h"
|
|
|
|
#include "source.pb.h"
|
|
|
|
// @@protoc_insertion_point(includes)
|
2019-03-01 21:06:55 +01:00
|
|
|
#include <google/protobuf/port_def.inc>
|
|
|
|
#define PROTOBUF_INTERNAL_EXPORT_stream_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_stream_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_stream_2eproto();
|
|
|
|
namespace legacy_pb {
|
2018-10-01 19:57:10 +02:00
|
|
|
class Stream;
|
|
|
|
class StreamDefaultTypeInternal;
|
|
|
|
extern StreamDefaultTypeInternal _Stream_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::Stream* Arena::CreateMaybeMessage<::legacy_pb::Stream>(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 Stream_Version {
|
|
|
|
Stream_Version_UNKNOWN_VERSION = 0,
|
|
|
|
Stream_Version__0_0_1 = 1
|
|
|
|
};
|
|
|
|
bool Stream_Version_IsValid(int value);
|
|
|
|
const Stream_Version Stream_Version_Version_MIN = Stream_Version_UNKNOWN_VERSION;
|
|
|
|
const Stream_Version Stream_Version_Version_MAX = Stream_Version__0_0_1;
|
|
|
|
const int Stream_Version_Version_ARRAYSIZE = Stream_Version_Version_MAX + 1;
|
|
|
|
|
|
|
|
const ::google::protobuf::EnumDescriptor* Stream_Version_descriptor();
|
|
|
|
inline const ::std::string& Stream_Version_Name(Stream_Version value) {
|
|
|
|
return ::google::protobuf::internal::NameOfEnum(
|
|
|
|
Stream_Version_descriptor(), value);
|
|
|
|
}
|
|
|
|
inline bool Stream_Version_Parse(
|
|
|
|
const ::std::string& name, Stream_Version* value) {
|
|
|
|
return ::google::protobuf::internal::ParseNamedEnum<Stream_Version>(
|
|
|
|
Stream_Version_descriptor(), name, value);
|
|
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
class Stream final :
|
|
|
|
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Stream) */ {
|
2018-10-01 19:57:10 +02:00
|
|
|
public:
|
|
|
|
Stream();
|
|
|
|
virtual ~Stream();
|
|
|
|
|
|
|
|
Stream(const Stream& from);
|
|
|
|
|
|
|
|
inline Stream& operator=(const Stream& from) {
|
|
|
|
CopyFrom(from);
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
#if LANG_CXX11
|
|
|
|
Stream(Stream&& from) noexcept
|
|
|
|
: Stream() {
|
|
|
|
*this = ::std::move(from);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline Stream& operator=(Stream&& 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 Stream& default_instance();
|
|
|
|
|
|
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
|
|
|
static inline const Stream* internal_default_instance() {
|
|
|
|
return reinterpret_cast<const Stream*>(
|
|
|
|
&_Stream_default_instance_);
|
|
|
|
}
|
|
|
|
static constexpr int kIndexInFileMessages =
|
|
|
|
0;
|
|
|
|
|
|
|
|
void Swap(Stream* other);
|
|
|
|
friend void swap(Stream& a, Stream& b) {
|
|
|
|
a.Swap(&b);
|
|
|
|
}
|
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
|
|
|
inline Stream* New() const final {
|
2019-03-01 21:06:55 +01:00
|
|
|
return CreateMaybeMessage<Stream>(nullptr);
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Stream* New(::google::protobuf::Arena* arena) const final {
|
|
|
|
return CreateMaybeMessage<Stream>(arena);
|
|
|
|
}
|
|
|
|
void CopyFrom(const ::google::protobuf::Message& from) final;
|
|
|
|
void MergeFrom(const ::google::protobuf::Message& from) final;
|
|
|
|
void CopyFrom(const Stream& from);
|
|
|
|
void MergeFrom(const Stream& 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(Stream* 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 Stream_Version Version;
|
|
|
|
static const Version UNKNOWN_VERSION =
|
|
|
|
Stream_Version_UNKNOWN_VERSION;
|
|
|
|
static const Version _0_0_1 =
|
|
|
|
Stream_Version__0_0_1;
|
|
|
|
static inline bool Version_IsValid(int value) {
|
|
|
|
return Stream_Version_IsValid(value);
|
|
|
|
}
|
|
|
|
static const Version Version_MIN =
|
|
|
|
Stream_Version_Version_MIN;
|
|
|
|
static const Version Version_MAX =
|
|
|
|
Stream_Version_Version_MAX;
|
|
|
|
static const int Version_ARRAYSIZE =
|
|
|
|
Stream_Version_Version_ARRAYSIZE;
|
|
|
|
static inline const ::google::protobuf::EnumDescriptor*
|
|
|
|
Version_descriptor() {
|
|
|
|
return Stream_Version_descriptor();
|
|
|
|
}
|
|
|
|
static inline const ::std::string& Version_Name(Version value) {
|
|
|
|
return Stream_Version_Name(value);
|
|
|
|
}
|
|
|
|
static inline bool Version_Parse(const ::std::string& name,
|
|
|
|
Version* value) {
|
|
|
|
return Stream_Version_Parse(name, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
// required .legacy_pb.Metadata metadata = 2;
|
2018-10-01 19:57:10 +02:00
|
|
|
bool has_metadata() const;
|
|
|
|
void clear_metadata();
|
|
|
|
static const int kMetadataFieldNumber = 2;
|
2019-03-01 21:06:55 +01:00
|
|
|
const ::legacy_pb::Metadata& metadata() const;
|
|
|
|
::legacy_pb::Metadata* release_metadata();
|
|
|
|
::legacy_pb::Metadata* mutable_metadata();
|
|
|
|
void set_allocated_metadata(::legacy_pb::Metadata* metadata);
|
2018-10-01 19:57:10 +02:00
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
// required .legacy_pb.Source source = 3;
|
2018-10-01 19:57:10 +02:00
|
|
|
bool has_source() const;
|
|
|
|
void clear_source();
|
|
|
|
static const int kSourceFieldNumber = 3;
|
2019-03-01 21:06:55 +01:00
|
|
|
const ::legacy_pb::Source& source() const;
|
|
|
|
::legacy_pb::Source* release_source();
|
|
|
|
::legacy_pb::Source* mutable_source();
|
|
|
|
void set_allocated_source(::legacy_pb::Source* source);
|
2018-10-01 19:57:10 +02:00
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
// required .legacy_pb.Stream.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::Stream_Version version() const;
|
|
|
|
void set_version(::legacy_pb::Stream_Version value);
|
2018-10-01 19:57:10 +02:00
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(class_scope:legacy_pb.Stream)
|
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_;
|
2019-03-01 21:06:55 +01:00
|
|
|
::legacy_pb::Metadata* metadata_;
|
|
|
|
::legacy_pb::Source* source_;
|
2018-10-01 19:57:10 +02:00
|
|
|
int version_;
|
2019-03-01 21:06:55 +01:00
|
|
|
friend struct ::TableStruct_stream_2eproto;
|
2018-10-01 19:57:10 +02:00
|
|
|
};
|
|
|
|
// ===================================================================
|
|
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#pragma GCC diagnostic push
|
|
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
|
|
#endif // __GNUC__
|
|
|
|
// Stream
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
// required .legacy_pb.Stream.Version version = 1;
|
2018-10-01 19:57:10 +02:00
|
|
|
inline bool Stream::has_version() const {
|
|
|
|
return (_has_bits_[0] & 0x00000004u) != 0;
|
|
|
|
}
|
|
|
|
inline void Stream::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::Stream_Version Stream::version() const {
|
|
|
|
// @@protoc_insertion_point(field_get:legacy_pb.Stream.version)
|
|
|
|
return static_cast< ::legacy_pb::Stream_Version >(version_);
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
inline void Stream::set_version(::legacy_pb::Stream_Version value) {
|
|
|
|
assert(::legacy_pb::Stream_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.Stream.version)
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
// required .legacy_pb.Metadata metadata = 2;
|
2018-10-01 19:57:10 +02:00
|
|
|
inline bool Stream::has_metadata() const {
|
|
|
|
return (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
inline const ::legacy_pb::Metadata& Stream::metadata() const {
|
|
|
|
const ::legacy_pb::Metadata* p = metadata_;
|
|
|
|
// @@protoc_insertion_point(field_get:legacy_pb.Stream.metadata)
|
|
|
|
return p != nullptr ? *p : *reinterpret_cast<const ::legacy_pb::Metadata*>(
|
|
|
|
&::legacy_pb::_Metadata_default_instance_);
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
inline ::legacy_pb::Metadata* Stream::release_metadata() {
|
|
|
|
// @@protoc_insertion_point(field_release:legacy_pb.Stream.metadata)
|
2018-10-01 19:57:10 +02:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2019-03-01 21:06:55 +01:00
|
|
|
::legacy_pb::Metadata* temp = metadata_;
|
|
|
|
metadata_ = nullptr;
|
2018-10-01 19:57:10 +02:00
|
|
|
return temp;
|
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
inline ::legacy_pb::Metadata* Stream::mutable_metadata() {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
if (metadata_ == nullptr) {
|
|
|
|
auto* p = CreateMaybeMessage<::legacy_pb::Metadata>(GetArenaNoVirtual());
|
2018-10-01 19:57:10 +02:00
|
|
|
metadata_ = p;
|
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_mutable:legacy_pb.Stream.metadata)
|
2018-10-01 19:57:10 +02:00
|
|
|
return metadata_;
|
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
inline void Stream::set_allocated_metadata(::legacy_pb::Metadata* metadata) {
|
2018-10-01 19:57:10 +02:00
|
|
|
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
|
2019-03-01 21:06:55 +01:00
|
|
|
if (message_arena == nullptr) {
|
2018-10-01 19:57:10 +02:00
|
|
|
delete reinterpret_cast< ::google::protobuf::MessageLite*>(metadata_);
|
|
|
|
}
|
|
|
|
if (metadata) {
|
2019-03-01 21:06:55 +01:00
|
|
|
::google::protobuf::Arena* submessage_arena = nullptr;
|
2018-10-01 19:57:10 +02:00
|
|
|
if (message_arena != submessage_arena) {
|
|
|
|
metadata = ::google::protobuf::internal::GetOwnedMessage(
|
|
|
|
message_arena, metadata, submessage_arena);
|
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
_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
|
|
|
}
|
|
|
|
metadata_ = metadata;
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Stream.metadata)
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
|
|
|
|
2019-03-01 21:06:55 +01:00
|
|
|
// required .legacy_pb.Source source = 3;
|
2018-10-01 19:57:10 +02:00
|
|
|
inline bool Stream::has_source() const {
|
|
|
|
return (_has_bits_[0] & 0x00000002u) != 0;
|
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
inline const ::legacy_pb::Source& Stream::source() const {
|
|
|
|
const ::legacy_pb::Source* p = source_;
|
|
|
|
// @@protoc_insertion_point(field_get:legacy_pb.Stream.source)
|
|
|
|
return p != nullptr ? *p : *reinterpret_cast<const ::legacy_pb::Source*>(
|
|
|
|
&::legacy_pb::_Source_default_instance_);
|
2018-10-01 19:57:10 +02:00
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
inline ::legacy_pb::Source* Stream::release_source() {
|
|
|
|
// @@protoc_insertion_point(field_release:legacy_pb.Stream.source)
|
2018-10-01 19:57:10 +02:00
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
2019-03-01 21:06:55 +01:00
|
|
|
::legacy_pb::Source* temp = source_;
|
|
|
|
source_ = nullptr;
|
2018-10-01 19:57:10 +02:00
|
|
|
return temp;
|
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
inline ::legacy_pb::Source* Stream::mutable_source() {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
if (source_ == nullptr) {
|
|
|
|
auto* p = CreateMaybeMessage<::legacy_pb::Source>(GetArenaNoVirtual());
|
2018-10-01 19:57:10 +02:00
|
|
|
source_ = p;
|
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_mutable:legacy_pb.Stream.source)
|
2018-10-01 19:57:10 +02:00
|
|
|
return source_;
|
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
inline void Stream::set_allocated_source(::legacy_pb::Source* source) {
|
2018-10-01 19:57:10 +02:00
|
|
|
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
|
2019-03-01 21:06:55 +01:00
|
|
|
if (message_arena == nullptr) {
|
2018-10-01 19:57:10 +02:00
|
|
|
delete reinterpret_cast< ::google::protobuf::MessageLite*>(source_);
|
|
|
|
}
|
|
|
|
if (source) {
|
2019-03-01 21:06:55 +01:00
|
|
|
::google::protobuf::Arena* submessage_arena = nullptr;
|
2018-10-01 19:57:10 +02:00
|
|
|
if (message_arena != submessage_arena) {
|
|
|
|
source = ::google::protobuf::internal::GetOwnedMessage(
|
|
|
|
message_arena, source, submessage_arena);
|
|
|
|
}
|
2019-03-01 21:06:55 +01:00
|
|
|
_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
|
|
|
}
|
|
|
|
source_ = source;
|
2019-03-01 21:06:55 +01:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Stream.source)
|
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::Stream_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::Stream_Version>() {
|
|
|
|
return ::legacy_pb::Stream_Version_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_stream_2eproto
|