types/v2/cpp/claim.pb.cc
2019-03-04 10:46:08 -05:00

3872 lines
142 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: claim.proto
#include "claim.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.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)
#include <google/protobuf/port_def.inc>
extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Channel_claim_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Fee_claim_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_File_claim_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Video_claim_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Stream_claim_2eproto;
namespace pb {
class ClaimDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Claim> _instance;
} _Claim_default_instance_;
class ChannelDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Channel> _instance;
} _Channel_default_instance_;
class StreamDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Stream> _instance;
} _Stream_default_instance_;
class FeeDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Fee> _instance;
} _Fee_default_instance_;
class FileDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<File> _instance;
} _File_default_instance_;
class VideoDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Video> _instance;
} _Video_default_instance_;
} // namespace pb
static void InitDefaultsClaim_claim_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Claim_default_instance_;
new (ptr) ::pb::Claim();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::pb::Claim::InitAsDefaultInstance();
}
::google::protobuf::internal::SCCInfo<2> scc_info_Claim_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsClaim_claim_2eproto}, {
&scc_info_Stream_claim_2eproto.base,
&scc_info_Channel_claim_2eproto.base,}};
static void InitDefaultsChannel_claim_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Channel_default_instance_;
new (ptr) ::pb::Channel();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::pb::Channel::InitAsDefaultInstance();
}
::google::protobuf::internal::SCCInfo<0> scc_info_Channel_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsChannel_claim_2eproto}, {}};
static void InitDefaultsStream_claim_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Stream_default_instance_;
new (ptr) ::pb::Stream();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::pb::Stream::InitAsDefaultInstance();
}
::google::protobuf::internal::SCCInfo<3> scc_info_Stream_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsStream_claim_2eproto}, {
&scc_info_File_claim_2eproto.base,
&scc_info_Fee_claim_2eproto.base,
&scc_info_Video_claim_2eproto.base,}};
static void InitDefaultsFee_claim_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Fee_default_instance_;
new (ptr) ::pb::Fee();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::pb::Fee::InitAsDefaultInstance();
}
::google::protobuf::internal::SCCInfo<0> scc_info_Fee_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFee_claim_2eproto}, {}};
static void InitDefaultsFile_claim_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_File_default_instance_;
new (ptr) ::pb::File();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::pb::File::InitAsDefaultInstance();
}
::google::protobuf::internal::SCCInfo<0> scc_info_File_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFile_claim_2eproto}, {}};
static void InitDefaultsVideo_claim_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Video_default_instance_;
new (ptr) ::pb::Video();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::pb::Video::InitAsDefaultInstance();
}
::google::protobuf::internal::SCCInfo<0> scc_info_Video_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVideo_claim_2eproto}, {}};
void InitDefaults_claim_2eproto() {
::google::protobuf::internal::InitSCC(&scc_info_Claim_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_Channel_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_Stream_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_Fee_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_File_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_Video_claim_2eproto.base);
}
::google::protobuf::Metadata file_level_metadata_claim_2eproto[6];
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_claim_2eproto[2];
constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_claim_2eproto = nullptr;
const ::google::protobuf::uint32 TableStruct_claim_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Claim, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Claim, type_),
PROTOBUF_FIELD_OFFSET(::pb::Claim, stream_),
PROTOBUF_FIELD_OFFSET(::pb::Claim, channel_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Channel, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Channel, public_key_),
PROTOBUF_FIELD_OFFSET(::pb::Channel, title_),
PROTOBUF_FIELD_OFFSET(::pb::Channel, description_),
PROTOBUF_FIELD_OFFSET(::pb::Channel, contact_email_),
PROTOBUF_FIELD_OFFSET(::pb::Channel, homepage_url_),
PROTOBUF_FIELD_OFFSET(::pb::Channel, tags_),
PROTOBUF_FIELD_OFFSET(::pb::Channel, thumbnail_url_),
PROTOBUF_FIELD_OFFSET(::pb::Channel, cover_url_),
PROTOBUF_FIELD_OFFSET(::pb::Channel, language_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Stream, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Stream, hash_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, language_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, title_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, author_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, description_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, media_type_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, license_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, file_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, fee_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, license_url_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, thumbnail_url_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, duration_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, tags_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, release_time_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, video_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Fee, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Fee, currency_),
PROTOBUF_FIELD_OFFSET(::pb::Fee, address_),
PROTOBUF_FIELD_OFFSET(::pb::Fee, amount_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::File, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::File, name_),
PROTOBUF_FIELD_OFFSET(::pb::File, size_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Video, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Video, width_),
PROTOBUF_FIELD_OFFSET(::pb::Video, height_),
};
static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, sizeof(::pb::Claim)},
{ 8, -1, sizeof(::pb::Channel)},
{ 22, -1, sizeof(::pb::Stream)},
{ 42, -1, sizeof(::pb::Fee)},
{ 50, -1, sizeof(::pb::File)},
{ 57, -1, sizeof(::pb::Video)},
};
static ::google::protobuf::Message const * const file_default_instances[] = {
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Claim_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Channel_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Stream_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Fee_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_File_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Video_default_instance_),
};
::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_claim_2eproto = {
{}, AddDescriptors_claim_2eproto, "claim.proto", schemas,
file_default_instances, TableStruct_claim_2eproto::offsets,
file_level_metadata_claim_2eproto, 6, file_level_enum_descriptors_claim_2eproto, file_level_service_descriptors_claim_2eproto,
};
const char descriptor_table_protodef_claim_2eproto[] =
"\n\013claim.proto\022\002pb\"\200\001\n\005Claim\022\034\n\004type\030\001 \001("
"\0162\016.pb.Claim.Type\022\032\n\006stream\030\002 \001(\0132\n.pb.S"
"tream\022\034\n\007channel\030\003 \001(\0132\013.pb.Channel\"\037\n\004T"
"ype\022\n\n\006STREAM\020\000\022\013\n\007CHANNEL\020\001\"\270\001\n\007Channel"
"\022\022\n\npublic_key\030\001 \001(\014\022\r\n\005title\030\002 \001(\t\022\023\n\013d"
"escription\030\003 \001(\t\022\025\n\rcontact_email\030\004 \001(\t\022"
"\024\n\014homepage_url\030\005 \001(\t\022\014\n\004tags\030\006 \003(\t\022\025\n\rt"
"humbnail_url\030\020 \001(\t\022\021\n\tcover_url\030\021 \001(\t\022\020\n"
"\010language\030\022 \001(\t\"\253\002\n\006Stream\022\014\n\004hash\030\001 \001(\014"
"\022\020\n\010language\030\002 \001(\t\022\r\n\005title\030\003 \001(\t\022\016\n\006aut"
"hor\030\004 \001(\t\022\023\n\013description\030\005 \001(\t\022\022\n\nmedia_"
"type\030\006 \001(\t\022\017\n\007license\030\007 \001(\t\022\026\n\004file\030\010 \001("
"\0132\010.pb.File\022\024\n\003fee\030\020 \001(\0132\007.pb.Fee\022\023\n\013lic"
"ense_url\030\021 \001(\t\022\025\n\rthumbnail_url\030\022 \001(\t\022\020\n"
"\010duration\030\023 \001(\r\022\014\n\004tags\030\024 \003(\t\022\024\n\014release"
"_time\030\025 \001(\003\022\030\n\005video\030\026 \001(\0132\t.pb.Video\"h\n"
"\003Fee\022\"\n\010currency\030\001 \001(\0162\020.pb.Fee.Currency"
"\022\017\n\007address\030\002 \001(\014\022\016\n\006amount\030\003 \001(\004\"\034\n\010Cur"
"rency\022\007\n\003LBC\020\000\022\007\n\003USD\020\001\"\"\n\004File\022\014\n\004name\030"
"\001 \001(\t\022\014\n\004size\030\002 \001(\004\"&\n\005Video\022\r\n\005width\030\001 "
"\001(\r\022\016\n\006height\030\002 \001(\rb\006proto3"
;
::google::protobuf::internal::DescriptorTable descriptor_table_claim_2eproto = {
false, InitDefaults_claim_2eproto,
descriptor_table_protodef_claim_2eproto,
"claim.proto", &assign_descriptors_table_claim_2eproto, 827,
};
void AddDescriptors_claim_2eproto() {
static constexpr ::google::protobuf::internal::InitFunc deps[1] =
{
};
::google::protobuf::internal::AddDescriptors(&descriptor_table_claim_2eproto, deps, 0);
}
// Force running AddDescriptors() at dynamic initialization time.
static bool dynamic_init_dummy_claim_2eproto = []() { AddDescriptors_claim_2eproto(); return true; }();
namespace pb {
const ::google::protobuf::EnumDescriptor* Claim_Type_descriptor() {
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_claim_2eproto);
return file_level_enum_descriptors_claim_2eproto[0];
}
bool Claim_Type_IsValid(int value) {
switch (value) {
case 0:
case 1:
return true;
default:
return false;
}
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const Claim_Type Claim::STREAM;
const Claim_Type Claim::CHANNEL;
const Claim_Type Claim::Type_MIN;
const Claim_Type Claim::Type_MAX;
const int Claim::Type_ARRAYSIZE;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
const ::google::protobuf::EnumDescriptor* Fee_Currency_descriptor() {
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_claim_2eproto);
return file_level_enum_descriptors_claim_2eproto[1];
}
bool Fee_Currency_IsValid(int value) {
switch (value) {
case 0:
case 1:
return true;
default:
return false;
}
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const Fee_Currency Fee::LBC;
const Fee_Currency Fee::USD;
const Fee_Currency Fee::Currency_MIN;
const Fee_Currency Fee::Currency_MAX;
const int Fee::Currency_ARRAYSIZE;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
// ===================================================================
void Claim::InitAsDefaultInstance() {
::pb::_Claim_default_instance_._instance.get_mutable()->stream_ = const_cast< ::pb::Stream*>(
::pb::Stream::internal_default_instance());
::pb::_Claim_default_instance_._instance.get_mutable()->channel_ = const_cast< ::pb::Channel*>(
::pb::Channel::internal_default_instance());
}
class Claim::HasBitSetters {
public:
static const ::pb::Stream& stream(const Claim* msg);
static const ::pb::Channel& channel(const Claim* msg);
};
const ::pb::Stream&
Claim::HasBitSetters::stream(const Claim* msg) {
return *msg->stream_;
}
const ::pb::Channel&
Claim::HasBitSetters::channel(const Claim* msg) {
return *msg->channel_;
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Claim::kTypeFieldNumber;
const int Claim::kStreamFieldNumber;
const int Claim::kChannelFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Claim::Claim()
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:pb.Claim)
}
Claim::Claim(const Claim& from)
: ::google::protobuf::Message(),
_internal_metadata_(nullptr) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_stream()) {
stream_ = new ::pb::Stream(*from.stream_);
} else {
stream_ = nullptr;
}
if (from.has_channel()) {
channel_ = new ::pb::Channel(*from.channel_);
} else {
channel_ = nullptr;
}
type_ = from.type_;
// @@protoc_insertion_point(copy_constructor:pb.Claim)
}
void Claim::SharedCtor() {
::google::protobuf::internal::InitSCC(
&scc_info_Claim_claim_2eproto.base);
::memset(&stream_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&type_) -
reinterpret_cast<char*>(&stream_)) + sizeof(type_));
}
Claim::~Claim() {
// @@protoc_insertion_point(destructor:pb.Claim)
SharedDtor();
}
void Claim::SharedDtor() {
if (this != internal_default_instance()) delete stream_;
if (this != internal_default_instance()) delete channel_;
}
void Claim::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Claim& Claim::default_instance() {
::google::protobuf::internal::InitSCC(&::scc_info_Claim_claim_2eproto.base);
return *internal_default_instance();
}
void Claim::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Claim)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
if (GetArenaNoVirtual() == nullptr && stream_ != nullptr) {
delete stream_;
}
stream_ = nullptr;
if (GetArenaNoVirtual() == nullptr && channel_ != nullptr) {
delete channel_;
}
channel_ = nullptr;
type_ = 0;
_internal_metadata_.Clear();
}
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* Claim::_InternalParse(const char* begin, const char* end, void* object,
::google::protobuf::internal::ParseContext* ctx) {
auto msg = static_cast<Claim*>(object);
::google::protobuf::int32 size; (void)size;
int depth; (void)depth;
::google::protobuf::uint32 tag;
::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
auto ptr = begin;
while (ptr < end) {
ptr = ::google::protobuf::io::Parse32(ptr, &tag);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
switch (tag >> 3) {
// .pb.Claim.Type type = 1;
case 1: {
if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
msg->set_type(static_cast<::pb::Claim_Type>(val));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
// .pb.Stream stream = 2;
case 2: {
if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
parser_till_end = ::pb::Stream::_InternalParse;
object = msg->mutable_stream();
if (size > end - ptr) goto len_delim_till_end;
ptr += size;
GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
{parser_till_end, object}, ptr - size, ptr));
break;
}
// .pb.Channel channel = 3;
case 3: {
if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
parser_till_end = ::pb::Channel::_InternalParse;
object = msg->mutable_channel();
if (size > end - ptr) goto len_delim_till_end;
ptr += size;
GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
{parser_till_end, object}, ptr - size, ptr));
break;
}
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->EndGroup(tag);
return ptr;
}
auto res = UnknownFieldParse(tag, {_InternalParse, msg},
ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
ptr = res.first;
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
if (res.second) return ptr;
}
} // switch
} // while
return ptr;
len_delim_till_end:
return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
{parser_till_end, object}, size);
}
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
bool Claim::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:pb.Claim)
for (;;) {
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .pb.Claim.Type type = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
int value = 0;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
set_type(static_cast< ::pb::Claim_Type >(value));
} else {
goto handle_unusual;
}
break;
}
// .pb.Stream stream = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_stream()));
} else {
goto handle_unusual;
}
break;
}
// .pb.Channel channel = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_channel()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0) {
goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:pb.Claim)
return true;
failure:
// @@protoc_insertion_point(parse_failure:pb.Claim)
return false;
#undef DO_
}
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void Claim::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:pb.Claim)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// .pb.Claim.Type type = 1;
if (this->type() != 0) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->type(), output);
}
// .pb.Stream stream = 2;
if (this->has_stream()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, HasBitSetters::stream(this), output);
}
// .pb.Channel channel = 3;
if (this->has_channel()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, HasBitSetters::channel(this), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:pb.Claim)
}
::google::protobuf::uint8* Claim::InternalSerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.Claim)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// .pb.Claim.Type type = 1;
if (this->type() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->type(), target);
}
// .pb.Stream stream = 2;
if (this->has_stream()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
2, HasBitSetters::stream(this), target);
}
// .pb.Channel channel = 3;
if (this->has_channel()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
3, HasBitSetters::channel(this), target);
}
if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:pb.Claim)
return target;
}
size_t Claim::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.Claim)
size_t total_size = 0;
if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
_internal_metadata_.unknown_fields());
}
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// .pb.Stream stream = 2;
if (this->has_stream()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*stream_);
}
// .pb.Channel channel = 3;
if (this->has_channel()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*channel_);
}
// .pb.Claim.Type type = 1;
if (this->type() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void Claim::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:pb.Claim)
GOOGLE_DCHECK_NE(&from, this);
const Claim* source =
::google::protobuf::DynamicCastToGenerated<Claim>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Claim)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Claim)
MergeFrom(*source);
}
}
void Claim::MergeFrom(const Claim& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Claim)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.has_stream()) {
mutable_stream()->::pb::Stream::MergeFrom(from.stream());
}
if (from.has_channel()) {
mutable_channel()->::pb::Channel::MergeFrom(from.channel());
}
if (from.type() != 0) {
set_type(from.type());
}
}
void Claim::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:pb.Claim)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Claim::CopyFrom(const Claim& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Claim)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Claim::IsInitialized() const {
return true;
}
void Claim::Swap(Claim* other) {
if (other == this) return;
InternalSwap(other);
}
void Claim::InternalSwap(Claim* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
swap(stream_, other->stream_);
swap(channel_, other->channel_);
swap(type_, other->type_);
}
::google::protobuf::Metadata Claim::GetMetadata() const {
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_claim_2eproto);
return ::file_level_metadata_claim_2eproto[kIndexInFileMessages];
}
// ===================================================================
void Channel::InitAsDefaultInstance() {
}
class Channel::HasBitSetters {
public:
};
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Channel::kPublicKeyFieldNumber;
const int Channel::kTitleFieldNumber;
const int Channel::kDescriptionFieldNumber;
const int Channel::kContactEmailFieldNumber;
const int Channel::kHomepageUrlFieldNumber;
const int Channel::kTagsFieldNumber;
const int Channel::kThumbnailUrlFieldNumber;
const int Channel::kCoverUrlFieldNumber;
const int Channel::kLanguageFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Channel::Channel()
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:pb.Channel)
}
Channel::Channel(const Channel& from)
: ::google::protobuf::Message(),
_internal_metadata_(nullptr),
tags_(from.tags_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.public_key().size() > 0) {
public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_);
}
title_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.title().size() > 0) {
title_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.title_);
}
description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.description().size() > 0) {
description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
}
contact_email_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.contact_email().size() > 0) {
contact_email_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.contact_email_);
}
homepage_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.homepage_url().size() > 0) {
homepage_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.homepage_url_);
}
thumbnail_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.thumbnail_url().size() > 0) {
thumbnail_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.thumbnail_url_);
}
cover_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.cover_url().size() > 0) {
cover_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cover_url_);
}
language_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.language().size() > 0) {
language_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.language_);
}
// @@protoc_insertion_point(copy_constructor:pb.Channel)
}
void Channel::SharedCtor() {
::google::protobuf::internal::InitSCC(
&scc_info_Channel_claim_2eproto.base);
public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
title_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
contact_email_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
homepage_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
thumbnail_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
cover_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
language_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
Channel::~Channel() {
// @@protoc_insertion_point(destructor:pb.Channel)
SharedDtor();
}
void Channel::SharedDtor() {
public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
title_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
contact_email_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
homepage_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
thumbnail_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
cover_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
language_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Channel::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Channel& Channel::default_instance() {
::google::protobuf::internal::InitSCC(&::scc_info_Channel_claim_2eproto.base);
return *internal_default_instance();
}
void Channel::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Channel)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
tags_.Clear();
public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
title_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
contact_email_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
homepage_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
thumbnail_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
cover_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
language_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
_internal_metadata_.Clear();
}
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* Channel::_InternalParse(const char* begin, const char* end, void* object,
::google::protobuf::internal::ParseContext* ctx) {
auto msg = static_cast<Channel*>(object);
::google::protobuf::int32 size; (void)size;
int depth; (void)depth;
::google::protobuf::uint32 tag;
::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
auto ptr = begin;
while (ptr < end) {
ptr = ::google::protobuf::io::Parse32(ptr, &tag);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
switch (tag >> 3) {
// bytes public_key = 1;
case 1: {
if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
object = msg->mutable_public_key();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParser;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// string title = 2;
case 2: {
if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Channel.title");
object = msg->mutable_title();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// string description = 3;
case 3: {
if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Channel.description");
object = msg->mutable_description();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// string contact_email = 4;
case 4: {
if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Channel.contact_email");
object = msg->mutable_contact_email();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// string homepage_url = 5;
case 5: {
if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Channel.homepage_url");
object = msg->mutable_homepage_url();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// repeated string tags = 6;
case 6: {
if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual;
do {
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Channel.tags");
object = msg->add_tags();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
if (ptr >= end) break;
} while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1));
break;
}
// string thumbnail_url = 16;
case 16: {
if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Channel.thumbnail_url");
object = msg->mutable_thumbnail_url();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// string cover_url = 17;
case 17: {
if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Channel.cover_url");
object = msg->mutable_cover_url();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// string language = 18;
case 18: {
if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Channel.language");
object = msg->mutable_language();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->EndGroup(tag);
return ptr;
}
auto res = UnknownFieldParse(tag, {_InternalParse, msg},
ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
ptr = res.first;
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
if (res.second) return ptr;
}
} // switch
} // while
return ptr;
string_till_end:
static_cast<::std::string*>(object)->clear();
static_cast<::std::string*>(object)->reserve(size);
goto len_delim_till_end;
len_delim_till_end:
return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
{parser_till_end, object}, size);
}
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
bool Channel::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:pb.Channel)
for (;;) {
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// bytes public_key = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_public_key()));
} else {
goto handle_unusual;
}
break;
}
// string title = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_title()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->title().data(), static_cast<int>(this->title().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Channel.title"));
} else {
goto handle_unusual;
}
break;
}
// string description = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_description()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->description().data(), static_cast<int>(this->description().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Channel.description"));
} else {
goto handle_unusual;
}
break;
}
// string contact_email = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_contact_email()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->contact_email().data(), static_cast<int>(this->contact_email().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Channel.contact_email"));
} else {
goto handle_unusual;
}
break;
}
// string homepage_url = 5;
case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_homepage_url()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->homepage_url().data(), static_cast<int>(this->homepage_url().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Channel.homepage_url"));
} else {
goto handle_unusual;
}
break;
}
// repeated string tags = 6;
case 6: {
if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_tags()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->tags(this->tags_size() - 1).data(),
static_cast<int>(this->tags(this->tags_size() - 1).length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Channel.tags"));
} else {
goto handle_unusual;
}
break;
}
// string thumbnail_url = 16;
case 16: {
if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_thumbnail_url()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->thumbnail_url().data(), static_cast<int>(this->thumbnail_url().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Channel.thumbnail_url"));
} else {
goto handle_unusual;
}
break;
}
// string cover_url = 17;
case 17: {
if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_cover_url()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->cover_url().data(), static_cast<int>(this->cover_url().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Channel.cover_url"));
} else {
goto handle_unusual;
}
break;
}
// string language = 18;
case 18: {
if (static_cast< ::google::protobuf::uint8>(tag) == (146 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_language()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->language().data(), static_cast<int>(this->language().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Channel.language"));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0) {
goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:pb.Channel)
return true;
failure:
// @@protoc_insertion_point(parse_failure:pb.Channel)
return false;
#undef DO_
}
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void Channel::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:pb.Channel)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// bytes public_key = 1;
if (this->public_key().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1, this->public_key(), output);
}
// string title = 2;
if (this->title().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->title().data(), static_cast<int>(this->title().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.title");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->title(), output);
}
// string description = 3;
if (this->description().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->description().data(), static_cast<int>(this->description().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.description");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->description(), output);
}
// string contact_email = 4;
if (this->contact_email().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->contact_email().data(), static_cast<int>(this->contact_email().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.contact_email");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->contact_email(), output);
}
// string homepage_url = 5;
if (this->homepage_url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->homepage_url().data(), static_cast<int>(this->homepage_url().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.homepage_url");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5, this->homepage_url(), output);
}
// repeated string tags = 6;
for (int i = 0, n = this->tags_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->tags(i).data(), static_cast<int>(this->tags(i).length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.tags");
::google::protobuf::internal::WireFormatLite::WriteString(
6, this->tags(i), output);
}
// string thumbnail_url = 16;
if (this->thumbnail_url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->thumbnail_url().data(), static_cast<int>(this->thumbnail_url().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.thumbnail_url");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
16, this->thumbnail_url(), output);
}
// string cover_url = 17;
if (this->cover_url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->cover_url().data(), static_cast<int>(this->cover_url().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.cover_url");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
17, this->cover_url(), output);
}
// string language = 18;
if (this->language().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->language().data(), static_cast<int>(this->language().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.language");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
18, this->language(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:pb.Channel)
}
::google::protobuf::uint8* Channel::InternalSerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.Channel)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// bytes public_key = 1;
if (this->public_key().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1, this->public_key(), target);
}
// string title = 2;
if (this->title().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->title().data(), static_cast<int>(this->title().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.title");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->title(), target);
}
// string description = 3;
if (this->description().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->description().data(), static_cast<int>(this->description().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.description");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->description(), target);
}
// string contact_email = 4;
if (this->contact_email().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->contact_email().data(), static_cast<int>(this->contact_email().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.contact_email");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->contact_email(), target);
}
// string homepage_url = 5;
if (this->homepage_url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->homepage_url().data(), static_cast<int>(this->homepage_url().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.homepage_url");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5, this->homepage_url(), target);
}
// repeated string tags = 6;
for (int i = 0, n = this->tags_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->tags(i).data(), static_cast<int>(this->tags(i).length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.tags");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(6, this->tags(i), target);
}
// string thumbnail_url = 16;
if (this->thumbnail_url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->thumbnail_url().data(), static_cast<int>(this->thumbnail_url().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.thumbnail_url");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
16, this->thumbnail_url(), target);
}
// string cover_url = 17;
if (this->cover_url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->cover_url().data(), static_cast<int>(this->cover_url().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.cover_url");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
17, this->cover_url(), target);
}
// string language = 18;
if (this->language().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->language().data(), static_cast<int>(this->language().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.language");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
18, this->language(), target);
}
if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:pb.Channel)
return target;
}
size_t Channel::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.Channel)
size_t total_size = 0;
if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
_internal_metadata_.unknown_fields());
}
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated string tags = 6;
total_size += 1 *
::google::protobuf::internal::FromIntSize(this->tags_size());
for (int i = 0, n = this->tags_size(); i < n; i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->tags(i));
}
// bytes public_key = 1;
if (this->public_key().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->public_key());
}
// string title = 2;
if (this->title().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->title());
}
// string description = 3;
if (this->description().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->description());
}
// string contact_email = 4;
if (this->contact_email().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->contact_email());
}
// string homepage_url = 5;
if (this->homepage_url().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->homepage_url());
}
// string thumbnail_url = 16;
if (this->thumbnail_url().size() > 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->thumbnail_url());
}
// string cover_url = 17;
if (this->cover_url().size() > 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->cover_url());
}
// string language = 18;
if (this->language().size() > 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->language());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void Channel::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:pb.Channel)
GOOGLE_DCHECK_NE(&from, this);
const Channel* source =
::google::protobuf::DynamicCastToGenerated<Channel>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Channel)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Channel)
MergeFrom(*source);
}
}
void Channel::MergeFrom(const Channel& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Channel)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
tags_.MergeFrom(from.tags_);
if (from.public_key().size() > 0) {
public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_);
}
if (from.title().size() > 0) {
title_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.title_);
}
if (from.description().size() > 0) {
description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
}
if (from.contact_email().size() > 0) {
contact_email_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.contact_email_);
}
if (from.homepage_url().size() > 0) {
homepage_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.homepage_url_);
}
if (from.thumbnail_url().size() > 0) {
thumbnail_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.thumbnail_url_);
}
if (from.cover_url().size() > 0) {
cover_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cover_url_);
}
if (from.language().size() > 0) {
language_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.language_);
}
}
void Channel::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:pb.Channel)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Channel::CopyFrom(const Channel& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Channel)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Channel::IsInitialized() const {
return true;
}
void Channel::Swap(Channel* other) {
if (other == this) return;
InternalSwap(other);
}
void Channel::InternalSwap(Channel* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
tags_.InternalSwap(CastToBase(&other->tags_));
public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
title_.Swap(&other->title_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
contact_email_.Swap(&other->contact_email_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
homepage_url_.Swap(&other->homepage_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
thumbnail_url_.Swap(&other->thumbnail_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
cover_url_.Swap(&other->cover_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
language_.Swap(&other->language_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
::google::protobuf::Metadata Channel::GetMetadata() const {
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_claim_2eproto);
return ::file_level_metadata_claim_2eproto[kIndexInFileMessages];
}
// ===================================================================
void Stream::InitAsDefaultInstance() {
::pb::_Stream_default_instance_._instance.get_mutable()->file_ = const_cast< ::pb::File*>(
::pb::File::internal_default_instance());
::pb::_Stream_default_instance_._instance.get_mutable()->fee_ = const_cast< ::pb::Fee*>(
::pb::Fee::internal_default_instance());
::pb::_Stream_default_instance_._instance.get_mutable()->video_ = const_cast< ::pb::Video*>(
::pb::Video::internal_default_instance());
}
class Stream::HasBitSetters {
public:
static const ::pb::File& file(const Stream* msg);
static const ::pb::Fee& fee(const Stream* msg);
static const ::pb::Video& video(const Stream* msg);
};
const ::pb::File&
Stream::HasBitSetters::file(const Stream* msg) {
return *msg->file_;
}
const ::pb::Fee&
Stream::HasBitSetters::fee(const Stream* msg) {
return *msg->fee_;
}
const ::pb::Video&
Stream::HasBitSetters::video(const Stream* msg) {
return *msg->video_;
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Stream::kHashFieldNumber;
const int Stream::kLanguageFieldNumber;
const int Stream::kTitleFieldNumber;
const int Stream::kAuthorFieldNumber;
const int Stream::kDescriptionFieldNumber;
const int Stream::kMediaTypeFieldNumber;
const int Stream::kLicenseFieldNumber;
const int Stream::kFileFieldNumber;
const int Stream::kFeeFieldNumber;
const int Stream::kLicenseUrlFieldNumber;
const int Stream::kThumbnailUrlFieldNumber;
const int Stream::kDurationFieldNumber;
const int Stream::kTagsFieldNumber;
const int Stream::kReleaseTimeFieldNumber;
const int Stream::kVideoFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Stream::Stream()
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:pb.Stream)
}
Stream::Stream(const Stream& from)
: ::google::protobuf::Message(),
_internal_metadata_(nullptr),
tags_(from.tags_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.hash().size() > 0) {
hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_);
}
language_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.language().size() > 0) {
language_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.language_);
}
title_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.title().size() > 0) {
title_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.title_);
}
author_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.author().size() > 0) {
author_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.author_);
}
description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.description().size() > 0) {
description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
}
media_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.media_type().size() > 0) {
media_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.media_type_);
}
license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.license().size() > 0) {
license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_);
}
license_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.license_url().size() > 0) {
license_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_url_);
}
thumbnail_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.thumbnail_url().size() > 0) {
thumbnail_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.thumbnail_url_);
}
if (from.has_file()) {
file_ = new ::pb::File(*from.file_);
} else {
file_ = nullptr;
}
if (from.has_fee()) {
fee_ = new ::pb::Fee(*from.fee_);
} else {
fee_ = nullptr;
}
if (from.has_video()) {
video_ = new ::pb::Video(*from.video_);
} else {
video_ = nullptr;
}
::memcpy(&duration_, &from.duration_,
static_cast<size_t>(reinterpret_cast<char*>(&release_time_) -
reinterpret_cast<char*>(&duration_)) + sizeof(release_time_));
// @@protoc_insertion_point(copy_constructor:pb.Stream)
}
void Stream::SharedCtor() {
::google::protobuf::internal::InitSCC(
&scc_info_Stream_claim_2eproto.base);
hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
language_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
title_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
author_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
media_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
license_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
thumbnail_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&file_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&release_time_) -
reinterpret_cast<char*>(&file_)) + sizeof(release_time_));
}
Stream::~Stream() {
// @@protoc_insertion_point(destructor:pb.Stream)
SharedDtor();
}
void Stream::SharedDtor() {
hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
language_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
title_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
author_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
media_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
license_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
license_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
thumbnail_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) delete file_;
if (this != internal_default_instance()) delete fee_;
if (this != internal_default_instance()) delete video_;
}
void Stream::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Stream& Stream::default_instance() {
::google::protobuf::internal::InitSCC(&::scc_info_Stream_claim_2eproto.base);
return *internal_default_instance();
}
void Stream::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Stream)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
tags_.Clear();
hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
language_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
title_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
author_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
media_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
license_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
license_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
thumbnail_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (GetArenaNoVirtual() == nullptr && file_ != nullptr) {
delete file_;
}
file_ = nullptr;
if (GetArenaNoVirtual() == nullptr && fee_ != nullptr) {
delete fee_;
}
fee_ = nullptr;
if (GetArenaNoVirtual() == nullptr && video_ != nullptr) {
delete video_;
}
video_ = nullptr;
::memset(&duration_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&release_time_) -
reinterpret_cast<char*>(&duration_)) + sizeof(release_time_));
_internal_metadata_.Clear();
}
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* Stream::_InternalParse(const char* begin, const char* end, void* object,
::google::protobuf::internal::ParseContext* ctx) {
auto msg = static_cast<Stream*>(object);
::google::protobuf::int32 size; (void)size;
int depth; (void)depth;
::google::protobuf::uint32 tag;
::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
auto ptr = begin;
while (ptr < end) {
ptr = ::google::protobuf::io::Parse32(ptr, &tag);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
switch (tag >> 3) {
// bytes hash = 1;
case 1: {
if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
object = msg->mutable_hash();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParser;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// string language = 2;
case 2: {
if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Stream.language");
object = msg->mutable_language();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// string title = 3;
case 3: {
if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Stream.title");
object = msg->mutable_title();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// string author = 4;
case 4: {
if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Stream.author");
object = msg->mutable_author();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// string description = 5;
case 5: {
if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Stream.description");
object = msg->mutable_description();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// string media_type = 6;
case 6: {
if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Stream.media_type");
object = msg->mutable_media_type();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// string license = 7;
case 7: {
if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Stream.license");
object = msg->mutable_license();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// .pb.File file = 8;
case 8: {
if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
parser_till_end = ::pb::File::_InternalParse;
object = msg->mutable_file();
if (size > end - ptr) goto len_delim_till_end;
ptr += size;
GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
{parser_till_end, object}, ptr - size, ptr));
break;
}
// .pb.Fee fee = 16;
case 16: {
if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
parser_till_end = ::pb::Fee::_InternalParse;
object = msg->mutable_fee();
if (size > end - ptr) goto len_delim_till_end;
ptr += size;
GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
{parser_till_end, object}, ptr - size, ptr));
break;
}
// string license_url = 17;
case 17: {
if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Stream.license_url");
object = msg->mutable_license_url();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// string thumbnail_url = 18;
case 18: {
if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Stream.thumbnail_url");
object = msg->mutable_thumbnail_url();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// uint32 duration = 19;
case 19: {
if (static_cast<::google::protobuf::uint8>(tag) != 152) goto handle_unusual;
msg->set_duration(::google::protobuf::internal::ReadVarint(&ptr));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
// repeated string tags = 20;
case 20: {
if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual;
do {
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Stream.tags");
object = msg->add_tags();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
if (ptr >= end) break;
} while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 65535) == 418 && (ptr += 2));
break;
}
// int64 release_time = 21;
case 21: {
if (static_cast<::google::protobuf::uint8>(tag) != 168) goto handle_unusual;
msg->set_release_time(::google::protobuf::internal::ReadVarint(&ptr));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
// .pb.Video video = 22;
case 22: {
if (static_cast<::google::protobuf::uint8>(tag) != 178) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
parser_till_end = ::pb::Video::_InternalParse;
object = msg->mutable_video();
if (size > end - ptr) goto len_delim_till_end;
ptr += size;
GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
{parser_till_end, object}, ptr - size, ptr));
break;
}
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->EndGroup(tag);
return ptr;
}
auto res = UnknownFieldParse(tag, {_InternalParse, msg},
ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
ptr = res.first;
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
if (res.second) return ptr;
}
} // switch
} // while
return ptr;
string_till_end:
static_cast<::std::string*>(object)->clear();
static_cast<::std::string*>(object)->reserve(size);
goto len_delim_till_end;
len_delim_till_end:
return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
{parser_till_end, object}, size);
}
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
bool Stream::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:pb.Stream)
for (;;) {
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// bytes hash = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_hash()));
} else {
goto handle_unusual;
}
break;
}
// string language = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_language()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->language().data(), static_cast<int>(this->language().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Stream.language"));
} else {
goto handle_unusual;
}
break;
}
// string title = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_title()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->title().data(), static_cast<int>(this->title().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Stream.title"));
} else {
goto handle_unusual;
}
break;
}
// string author = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_author()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->author().data(), static_cast<int>(this->author().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Stream.author"));
} else {
goto handle_unusual;
}
break;
}
// string description = 5;
case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_description()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->description().data(), static_cast<int>(this->description().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Stream.description"));
} else {
goto handle_unusual;
}
break;
}
// string media_type = 6;
case 6: {
if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_media_type()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->media_type().data(), static_cast<int>(this->media_type().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Stream.media_type"));
} else {
goto handle_unusual;
}
break;
}
// string license = 7;
case 7: {
if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_license()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->license().data(), static_cast<int>(this->license().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Stream.license"));
} else {
goto handle_unusual;
}
break;
}
// .pb.File file = 8;
case 8: {
if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_file()));
} else {
goto handle_unusual;
}
break;
}
// .pb.Fee fee = 16;
case 16: {
if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_fee()));
} else {
goto handle_unusual;
}
break;
}
// string license_url = 17;
case 17: {
if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_license_url()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->license_url().data(), static_cast<int>(this->license_url().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Stream.license_url"));
} else {
goto handle_unusual;
}
break;
}
// string thumbnail_url = 18;
case 18: {
if (static_cast< ::google::protobuf::uint8>(tag) == (146 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_thumbnail_url()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->thumbnail_url().data(), static_cast<int>(this->thumbnail_url().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Stream.thumbnail_url"));
} else {
goto handle_unusual;
}
break;
}
// uint32 duration = 19;
case 19: {
if (static_cast< ::google::protobuf::uint8>(tag) == (152 & 0xFF)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &duration_)));
} else {
goto handle_unusual;
}
break;
}
// repeated string tags = 20;
case 20: {
if (static_cast< ::google::protobuf::uint8>(tag) == (162 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_tags()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->tags(this->tags_size() - 1).data(),
static_cast<int>(this->tags(this->tags_size() - 1).length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Stream.tags"));
} else {
goto handle_unusual;
}
break;
}
// int64 release_time = 21;
case 21: {
if (static_cast< ::google::protobuf::uint8>(tag) == (168 & 0xFF)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &release_time_)));
} else {
goto handle_unusual;
}
break;
}
// .pb.Video video = 22;
case 22: {
if (static_cast< ::google::protobuf::uint8>(tag) == (178 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_video()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0) {
goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:pb.Stream)
return true;
failure:
// @@protoc_insertion_point(parse_failure:pb.Stream)
return false;
#undef DO_
}
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void Stream::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:pb.Stream)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// bytes hash = 1;
if (this->hash().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1, this->hash(), output);
}
// string language = 2;
if (this->language().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->language().data(), static_cast<int>(this->language().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.language");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->language(), output);
}
// string title = 3;
if (this->title().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->title().data(), static_cast<int>(this->title().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.title");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->title(), output);
}
// string author = 4;
if (this->author().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->author().data(), static_cast<int>(this->author().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.author");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->author(), output);
}
// string description = 5;
if (this->description().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->description().data(), static_cast<int>(this->description().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.description");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5, this->description(), output);
}
// string media_type = 6;
if (this->media_type().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->media_type().data(), static_cast<int>(this->media_type().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.media_type");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6, this->media_type(), output);
}
// string license = 7;
if (this->license().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->license().data(), static_cast<int>(this->license().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.license");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7, this->license(), output);
}
// .pb.File file = 8;
if (this->has_file()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8, HasBitSetters::file(this), output);
}
// .pb.Fee fee = 16;
if (this->has_fee()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
16, HasBitSetters::fee(this), output);
}
// string license_url = 17;
if (this->license_url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->license_url().data(), static_cast<int>(this->license_url().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.license_url");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
17, this->license_url(), output);
}
// string thumbnail_url = 18;
if (this->thumbnail_url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->thumbnail_url().data(), static_cast<int>(this->thumbnail_url().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.thumbnail_url");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
18, this->thumbnail_url(), output);
}
// uint32 duration = 19;
if (this->duration() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(19, this->duration(), output);
}
// repeated string tags = 20;
for (int i = 0, n = this->tags_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->tags(i).data(), static_cast<int>(this->tags(i).length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.tags");
::google::protobuf::internal::WireFormatLite::WriteString(
20, this->tags(i), output);
}
// int64 release_time = 21;
if (this->release_time() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt64(21, this->release_time(), output);
}
// .pb.Video video = 22;
if (this->has_video()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
22, HasBitSetters::video(this), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:pb.Stream)
}
::google::protobuf::uint8* Stream::InternalSerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.Stream)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// bytes hash = 1;
if (this->hash().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1, this->hash(), target);
}
// string language = 2;
if (this->language().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->language().data(), static_cast<int>(this->language().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.language");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->language(), target);
}
// string title = 3;
if (this->title().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->title().data(), static_cast<int>(this->title().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.title");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->title(), target);
}
// string author = 4;
if (this->author().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->author().data(), static_cast<int>(this->author().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.author");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->author(), target);
}
// string description = 5;
if (this->description().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->description().data(), static_cast<int>(this->description().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.description");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5, this->description(), target);
}
// string media_type = 6;
if (this->media_type().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->media_type().data(), static_cast<int>(this->media_type().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.media_type");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6, this->media_type(), target);
}
// string license = 7;
if (this->license().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->license().data(), static_cast<int>(this->license().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.license");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7, this->license(), target);
}
// .pb.File file = 8;
if (this->has_file()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
8, HasBitSetters::file(this), target);
}
// .pb.Fee fee = 16;
if (this->has_fee()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
16, HasBitSetters::fee(this), target);
}
// string license_url = 17;
if (this->license_url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->license_url().data(), static_cast<int>(this->license_url().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.license_url");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
17, this->license_url(), target);
}
// string thumbnail_url = 18;
if (this->thumbnail_url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->thumbnail_url().data(), static_cast<int>(this->thumbnail_url().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.thumbnail_url");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
18, this->thumbnail_url(), target);
}
// uint32 duration = 19;
if (this->duration() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(19, this->duration(), target);
}
// repeated string tags = 20;
for (int i = 0, n = this->tags_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->tags(i).data(), static_cast<int>(this->tags(i).length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Stream.tags");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(20, this->tags(i), target);
}
// int64 release_time = 21;
if (this->release_time() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(21, this->release_time(), target);
}
// .pb.Video video = 22;
if (this->has_video()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
22, HasBitSetters::video(this), target);
}
if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:pb.Stream)
return target;
}
size_t Stream::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.Stream)
size_t total_size = 0;
if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
_internal_metadata_.unknown_fields());
}
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated string tags = 20;
total_size += 2 *
::google::protobuf::internal::FromIntSize(this->tags_size());
for (int i = 0, n = this->tags_size(); i < n; i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->tags(i));
}
// bytes hash = 1;
if (this->hash().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->hash());
}
// string language = 2;
if (this->language().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->language());
}
// string title = 3;
if (this->title().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->title());
}
// string author = 4;
if (this->author().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->author());
}
// string description = 5;
if (this->description().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->description());
}
// string media_type = 6;
if (this->media_type().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->media_type());
}
// string license = 7;
if (this->license().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->license());
}
// string license_url = 17;
if (this->license_url().size() > 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->license_url());
}
// string thumbnail_url = 18;
if (this->thumbnail_url().size() > 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->thumbnail_url());
}
// .pb.File file = 8;
if (this->has_file()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*file_);
}
// .pb.Fee fee = 16;
if (this->has_fee()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*fee_);
}
// .pb.Video video = 22;
if (this->has_video()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*video_);
}
// uint32 duration = 19;
if (this->duration() != 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->duration());
}
// int64 release_time = 21;
if (this->release_time() != 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int64Size(
this->release_time());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void Stream::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:pb.Stream)
GOOGLE_DCHECK_NE(&from, this);
const Stream* source =
::google::protobuf::DynamicCastToGenerated<Stream>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Stream)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Stream)
MergeFrom(*source);
}
}
void Stream::MergeFrom(const Stream& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Stream)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
tags_.MergeFrom(from.tags_);
if (from.hash().size() > 0) {
hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_);
}
if (from.language().size() > 0) {
language_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.language_);
}
if (from.title().size() > 0) {
title_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.title_);
}
if (from.author().size() > 0) {
author_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.author_);
}
if (from.description().size() > 0) {
description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
}
if (from.media_type().size() > 0) {
media_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.media_type_);
}
if (from.license().size() > 0) {
license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_);
}
if (from.license_url().size() > 0) {
license_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_url_);
}
if (from.thumbnail_url().size() > 0) {
thumbnail_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.thumbnail_url_);
}
if (from.has_file()) {
mutable_file()->::pb::File::MergeFrom(from.file());
}
if (from.has_fee()) {
mutable_fee()->::pb::Fee::MergeFrom(from.fee());
}
if (from.has_video()) {
mutable_video()->::pb::Video::MergeFrom(from.video());
}
if (from.duration() != 0) {
set_duration(from.duration());
}
if (from.release_time() != 0) {
set_release_time(from.release_time());
}
}
void Stream::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:pb.Stream)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Stream::CopyFrom(const Stream& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Stream)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Stream::IsInitialized() const {
return true;
}
void Stream::Swap(Stream* other) {
if (other == this) return;
InternalSwap(other);
}
void Stream::InternalSwap(Stream* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
tags_.InternalSwap(CastToBase(&other->tags_));
hash_.Swap(&other->hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
language_.Swap(&other->language_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
title_.Swap(&other->title_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
author_.Swap(&other->author_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
media_type_.Swap(&other->media_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
license_.Swap(&other->license_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
license_url_.Swap(&other->license_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
thumbnail_url_.Swap(&other->thumbnail_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
swap(file_, other->file_);
swap(fee_, other->fee_);
swap(video_, other->video_);
swap(duration_, other->duration_);
swap(release_time_, other->release_time_);
}
::google::protobuf::Metadata Stream::GetMetadata() const {
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_claim_2eproto);
return ::file_level_metadata_claim_2eproto[kIndexInFileMessages];
}
// ===================================================================
void Fee::InitAsDefaultInstance() {
}
class Fee::HasBitSetters {
public:
};
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Fee::kCurrencyFieldNumber;
const int Fee::kAddressFieldNumber;
const int Fee::kAmountFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Fee::Fee()
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:pb.Fee)
}
Fee::Fee(const Fee& from)
: ::google::protobuf::Message(),
_internal_metadata_(nullptr) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.address().size() > 0) {
address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_);
}
::memcpy(&amount_, &from.amount_,
static_cast<size_t>(reinterpret_cast<char*>(&currency_) -
reinterpret_cast<char*>(&amount_)) + sizeof(currency_));
// @@protoc_insertion_point(copy_constructor:pb.Fee)
}
void Fee::SharedCtor() {
::google::protobuf::internal::InitSCC(
&scc_info_Fee_claim_2eproto.base);
address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&amount_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&currency_) -
reinterpret_cast<char*>(&amount_)) + sizeof(currency_));
}
Fee::~Fee() {
// @@protoc_insertion_point(destructor:pb.Fee)
SharedDtor();
}
void Fee::SharedDtor() {
address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Fee::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Fee& Fee::default_instance() {
::google::protobuf::internal::InitSCC(&::scc_info_Fee_claim_2eproto.base);
return *internal_default_instance();
}
void Fee::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Fee)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&amount_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&currency_) -
reinterpret_cast<char*>(&amount_)) + sizeof(currency_));
_internal_metadata_.Clear();
}
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* Fee::_InternalParse(const char* begin, const char* end, void* object,
::google::protobuf::internal::ParseContext* ctx) {
auto msg = static_cast<Fee*>(object);
::google::protobuf::int32 size; (void)size;
int depth; (void)depth;
::google::protobuf::uint32 tag;
::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
auto ptr = begin;
while (ptr < end) {
ptr = ::google::protobuf::io::Parse32(ptr, &tag);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
switch (tag >> 3) {
// .pb.Fee.Currency currency = 1;
case 1: {
if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
msg->set_currency(static_cast<::pb::Fee_Currency>(val));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
// bytes address = 2;
case 2: {
if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
object = msg->mutable_address();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParser;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// uint64 amount = 3;
case 3: {
if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
msg->set_amount(::google::protobuf::internal::ReadVarint(&ptr));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->EndGroup(tag);
return ptr;
}
auto res = UnknownFieldParse(tag, {_InternalParse, msg},
ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
ptr = res.first;
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
if (res.second) return ptr;
}
} // switch
} // while
return ptr;
string_till_end:
static_cast<::std::string*>(object)->clear();
static_cast<::std::string*>(object)->reserve(size);
goto len_delim_till_end;
len_delim_till_end:
return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
{parser_till_end, object}, size);
}
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
bool Fee::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:pb.Fee)
for (;;) {
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .pb.Fee.Currency currency = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
int value = 0;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
set_currency(static_cast< ::pb::Fee_Currency >(value));
} else {
goto handle_unusual;
}
break;
}
// bytes address = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_address()));
} else {
goto handle_unusual;
}
break;
}
// uint64 amount = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
input, &amount_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0) {
goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:pb.Fee)
return true;
failure:
// @@protoc_insertion_point(parse_failure:pb.Fee)
return false;
#undef DO_
}
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void Fee::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:pb.Fee)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// .pb.Fee.Currency currency = 1;
if (this->currency() != 0) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->currency(), output);
}
// bytes address = 2;
if (this->address().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2, this->address(), output);
}
// uint64 amount = 3;
if (this->amount() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->amount(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:pb.Fee)
}
::google::protobuf::uint8* Fee::InternalSerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.Fee)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// .pb.Fee.Currency currency = 1;
if (this->currency() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->currency(), target);
}
// bytes address = 2;
if (this->address().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2, this->address(), target);
}
// uint64 amount = 3;
if (this->amount() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->amount(), target);
}
if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:pb.Fee)
return target;
}
size_t Fee::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.Fee)
size_t total_size = 0;
if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
_internal_metadata_.unknown_fields());
}
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// bytes address = 2;
if (this->address().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->address());
}
// uint64 amount = 3;
if (this->amount() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt64Size(
this->amount());
}
// .pb.Fee.Currency currency = 1;
if (this->currency() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->currency());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void Fee::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:pb.Fee)
GOOGLE_DCHECK_NE(&from, this);
const Fee* source =
::google::protobuf::DynamicCastToGenerated<Fee>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Fee)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Fee)
MergeFrom(*source);
}
}
void Fee::MergeFrom(const Fee& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Fee)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.address().size() > 0) {
address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_);
}
if (from.amount() != 0) {
set_amount(from.amount());
}
if (from.currency() != 0) {
set_currency(from.currency());
}
}
void Fee::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:pb.Fee)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Fee::CopyFrom(const Fee& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Fee)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Fee::IsInitialized() const {
return true;
}
void Fee::Swap(Fee* other) {
if (other == this) return;
InternalSwap(other);
}
void Fee::InternalSwap(Fee* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
swap(amount_, other->amount_);
swap(currency_, other->currency_);
}
::google::protobuf::Metadata Fee::GetMetadata() const {
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_claim_2eproto);
return ::file_level_metadata_claim_2eproto[kIndexInFileMessages];
}
// ===================================================================
void File::InitAsDefaultInstance() {
}
class File::HasBitSetters {
public:
};
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int File::kNameFieldNumber;
const int File::kSizeFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
File::File()
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:pb.File)
}
File::File(const File& from)
: ::google::protobuf::Message(),
_internal_metadata_(nullptr) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.name().size() > 0) {
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
}
size_ = from.size_;
// @@protoc_insertion_point(copy_constructor:pb.File)
}
void File::SharedCtor() {
::google::protobuf::internal::InitSCC(
&scc_info_File_claim_2eproto.base);
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
size_ = PROTOBUF_ULONGLONG(0);
}
File::~File() {
// @@protoc_insertion_point(destructor:pb.File)
SharedDtor();
}
void File::SharedDtor() {
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void File::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const File& File::default_instance() {
::google::protobuf::internal::InitSCC(&::scc_info_File_claim_2eproto.base);
return *internal_default_instance();
}
void File::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.File)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
size_ = PROTOBUF_ULONGLONG(0);
_internal_metadata_.Clear();
}
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* File::_InternalParse(const char* begin, const char* end, void* object,
::google::protobuf::internal::ParseContext* ctx) {
auto msg = static_cast<File*>(object);
::google::protobuf::int32 size; (void)size;
int depth; (void)depth;
::google::protobuf::uint32 tag;
::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
auto ptr = begin;
while (ptr < end) {
ptr = ::google::protobuf::io::Parse32(ptr, &tag);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
switch (tag >> 3) {
// string name = 1;
case 1: {
if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.File.name");
object = msg->mutable_name();
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
goto string_till_end;
}
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
ptr += size;
break;
}
// uint64 size = 2;
case 2: {
if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
msg->set_size(::google::protobuf::internal::ReadVarint(&ptr));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->EndGroup(tag);
return ptr;
}
auto res = UnknownFieldParse(tag, {_InternalParse, msg},
ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
ptr = res.first;
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
if (res.second) return ptr;
}
} // switch
} // while
return ptr;
string_till_end:
static_cast<::std::string*>(object)->clear();
static_cast<::std::string*>(object)->reserve(size);
goto len_delim_till_end;
len_delim_till_end:
return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
{parser_till_end, object}, size);
}
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
bool File::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:pb.File)
for (;;) {
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string name = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), static_cast<int>(this->name().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.File.name"));
} else {
goto handle_unusual;
}
break;
}
// uint64 size = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
input, &size_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0) {
goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:pb.File)
return true;
failure:
// @@protoc_insertion_point(parse_failure:pb.File)
return false;
#undef DO_
}
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void File::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:pb.File)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// string name = 1;
if (this->name().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), static_cast<int>(this->name().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.File.name");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->name(), output);
}
// uint64 size = 2;
if (this->size() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->size(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:pb.File)
}
::google::protobuf::uint8* File::InternalSerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.File)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// string name = 1;
if (this->name().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->name().data(), static_cast<int>(this->name().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.File.name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->name(), target);
}
// uint64 size = 2;
if (this->size() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->size(), target);
}
if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:pb.File)
return target;
}
size_t File::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.File)
size_t total_size = 0;
if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
_internal_metadata_.unknown_fields());
}
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string name = 1;
if (this->name().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->name());
}
// uint64 size = 2;
if (this->size() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt64Size(
this->size());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void File::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:pb.File)
GOOGLE_DCHECK_NE(&from, this);
const File* source =
::google::protobuf::DynamicCastToGenerated<File>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.File)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.File)
MergeFrom(*source);
}
}
void File::MergeFrom(const File& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.File)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.name().size() > 0) {
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
}
if (from.size() != 0) {
set_size(from.size());
}
}
void File::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:pb.File)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void File::CopyFrom(const File& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.File)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool File::IsInitialized() const {
return true;
}
void File::Swap(File* other) {
if (other == this) return;
InternalSwap(other);
}
void File::InternalSwap(File* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
swap(size_, other->size_);
}
::google::protobuf::Metadata File::GetMetadata() const {
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_claim_2eproto);
return ::file_level_metadata_claim_2eproto[kIndexInFileMessages];
}
// ===================================================================
void Video::InitAsDefaultInstance() {
}
class Video::HasBitSetters {
public:
};
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Video::kWidthFieldNumber;
const int Video::kHeightFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Video::Video()
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:pb.Video)
}
Video::Video(const Video& from)
: ::google::protobuf::Message(),
_internal_metadata_(nullptr) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&width_, &from.width_,
static_cast<size_t>(reinterpret_cast<char*>(&height_) -
reinterpret_cast<char*>(&width_)) + sizeof(height_));
// @@protoc_insertion_point(copy_constructor:pb.Video)
}
void Video::SharedCtor() {
::memset(&width_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&height_) -
reinterpret_cast<char*>(&width_)) + sizeof(height_));
}
Video::~Video() {
// @@protoc_insertion_point(destructor:pb.Video)
SharedDtor();
}
void Video::SharedDtor() {
}
void Video::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Video& Video::default_instance() {
::google::protobuf::internal::InitSCC(&::scc_info_Video_claim_2eproto.base);
return *internal_default_instance();
}
void Video::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Video)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&width_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&height_) -
reinterpret_cast<char*>(&width_)) + sizeof(height_));
_internal_metadata_.Clear();
}
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* Video::_InternalParse(const char* begin, const char* end, void* object,
::google::protobuf::internal::ParseContext* ctx) {
auto msg = static_cast<Video*>(object);
::google::protobuf::int32 size; (void)size;
int depth; (void)depth;
::google::protobuf::uint32 tag;
::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
auto ptr = begin;
while (ptr < end) {
ptr = ::google::protobuf::io::Parse32(ptr, &tag);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
switch (tag >> 3) {
// uint32 width = 1;
case 1: {
if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
msg->set_width(::google::protobuf::internal::ReadVarint(&ptr));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
// uint32 height = 2;
case 2: {
if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
msg->set_height(::google::protobuf::internal::ReadVarint(&ptr));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->EndGroup(tag);
return ptr;
}
auto res = UnknownFieldParse(tag, {_InternalParse, msg},
ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
ptr = res.first;
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
if (res.second) return ptr;
}
} // switch
} // while
return ptr;
}
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
bool Video::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:pb.Video)
for (;;) {
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 width = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &width_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 height = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &height_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0) {
goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:pb.Video)
return true;
failure:
// @@protoc_insertion_point(parse_failure:pb.Video)
return false;
#undef DO_
}
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void Video::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:pb.Video)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// uint32 width = 1;
if (this->width() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->width(), output);
}
// uint32 height = 2;
if (this->height() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->height(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:pb.Video)
}
::google::protobuf::uint8* Video::InternalSerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.Video)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// uint32 width = 1;
if (this->width() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->width(), target);
}
// uint32 height = 2;
if (this->height() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->height(), target);
}
if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:pb.Video)
return target;
}
size_t Video::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.Video)
size_t total_size = 0;
if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
_internal_metadata_.unknown_fields());
}
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// uint32 width = 1;
if (this->width() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->width());
}
// uint32 height = 2;
if (this->height() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->height());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void Video::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:pb.Video)
GOOGLE_DCHECK_NE(&from, this);
const Video* source =
::google::protobuf::DynamicCastToGenerated<Video>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Video)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Video)
MergeFrom(*source);
}
}
void Video::MergeFrom(const Video& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Video)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.width() != 0) {
set_width(from.width());
}
if (from.height() != 0) {
set_height(from.height());
}
}
void Video::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:pb.Video)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Video::CopyFrom(const Video& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Video)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Video::IsInitialized() const {
return true;
}
void Video::Swap(Video* other) {
if (other == this) return;
InternalSwap(other);
}
void Video::InternalSwap(Video* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
swap(width_, other->width_);
swap(height_, other->height_);
}
::google::protobuf::Metadata Video::GetMetadata() const {
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_claim_2eproto);
return ::file_level_metadata_claim_2eproto[kIndexInFileMessages];
}
// @@protoc_insertion_point(namespace_scope)
} // namespace pb
namespace google {
namespace protobuf {
template<> PROTOBUF_NOINLINE ::pb::Claim* Arena::CreateMaybeMessage< ::pb::Claim >(Arena* arena) {
return Arena::CreateInternal< ::pb::Claim >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::Channel* Arena::CreateMaybeMessage< ::pb::Channel >(Arena* arena) {
return Arena::CreateInternal< ::pb::Channel >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::Stream* Arena::CreateMaybeMessage< ::pb::Stream >(Arena* arena) {
return Arena::CreateInternal< ::pb::Stream >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::Fee* Arena::CreateMaybeMessage< ::pb::Fee >(Arena* arena) {
return Arena::CreateInternal< ::pb::Fee >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::File* Arena::CreateMaybeMessage< ::pb::File >(Arena* arena) {
return Arena::CreateInternal< ::pb::File >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::Video* Arena::CreateMaybeMessage< ::pb::Video >(Arena* arena) {
return Arena::CreateInternal< ::pb::Video >(arena);
}
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>