types/v2/cpp/claim.pb.cc
2019-12-28 11:35:59 -05:00

9153 lines
316 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_Audio_claim_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ClaimReference_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_Image_claim_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Language_claim_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Location_claim_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Software_claim_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Source_claim_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ClaimList_claim_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Video_claim_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Channel_claim_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_Stream_claim_2eproto;
namespace pb {
class ClaimDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Claim> _instance;
const ::pb::Stream* stream_;
const ::pb::Channel* channel_;
const ::pb::ClaimList* collection_;
const ::pb::ClaimReference* repost_;
} _Claim_default_instance_;
class StreamDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Stream> _instance;
const ::pb::Image* image_;
const ::pb::Video* video_;
const ::pb::Audio* audio_;
const ::pb::Software* software_;
} _Stream_default_instance_;
class ChannelDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Channel> _instance;
} _Channel_default_instance_;
class ClaimReferenceDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<ClaimReference> _instance;
} _ClaimReference_default_instance_;
class ClaimListDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<ClaimList> _instance;
} _ClaimList_default_instance_;
class SourceDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Source> _instance;
} _Source_default_instance_;
class FeeDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Fee> _instance;
} _Fee_default_instance_;
class ImageDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Image> _instance;
} _Image_default_instance_;
class VideoDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Video> _instance;
} _Video_default_instance_;
class AudioDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Audio> _instance;
} _Audio_default_instance_;
class SoftwareDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Software> _instance;
} _Software_default_instance_;
class LanguageDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Language> _instance;
} _Language_default_instance_;
class LocationDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<Location> _instance;
} _Location_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<7> scc_info_Claim_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 7, InitDefaultsClaim_claim_2eproto}, {
&scc_info_Stream_claim_2eproto.base,
&scc_info_Channel_claim_2eproto.base,
&scc_info_ClaimList_claim_2eproto.base,
&scc_info_ClaimReference_claim_2eproto.base,
&scc_info_Source_claim_2eproto.base,
&scc_info_Language_claim_2eproto.base,
&scc_info_Location_claim_2eproto.base,}};
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<6> scc_info_Stream_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsStream_claim_2eproto}, {
&scc_info_Source_claim_2eproto.base,
&scc_info_Fee_claim_2eproto.base,
&scc_info_Image_claim_2eproto.base,
&scc_info_Video_claim_2eproto.base,
&scc_info_Audio_claim_2eproto.base,
&scc_info_Software_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<2> scc_info_Channel_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsChannel_claim_2eproto}, {
&scc_info_Source_claim_2eproto.base,
&scc_info_ClaimList_claim_2eproto.base,}};
static void InitDefaultsClaimReference_claim_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_ClaimReference_default_instance_;
new (ptr) ::pb::ClaimReference();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::pb::ClaimReference::InitAsDefaultInstance();
}
::google::protobuf::internal::SCCInfo<0> scc_info_ClaimReference_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsClaimReference_claim_2eproto}, {}};
static void InitDefaultsClaimList_claim_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_ClaimList_default_instance_;
new (ptr) ::pb::ClaimList();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::pb::ClaimList::InitAsDefaultInstance();
}
::google::protobuf::internal::SCCInfo<1> scc_info_ClaimList_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsClaimList_claim_2eproto}, {
&scc_info_ClaimReference_claim_2eproto.base,}};
static void InitDefaultsSource_claim_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Source_default_instance_;
new (ptr) ::pb::Source();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::pb::Source::InitAsDefaultInstance();
}
::google::protobuf::internal::SCCInfo<0> scc_info_Source_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSource_claim_2eproto}, {}};
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 InitDefaultsImage_claim_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Image_default_instance_;
new (ptr) ::pb::Image();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::pb::Image::InitAsDefaultInstance();
}
::google::protobuf::internal::SCCInfo<0> scc_info_Image_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsImage_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<1> scc_info_Video_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsVideo_claim_2eproto}, {
&scc_info_Audio_claim_2eproto.base,}};
static void InitDefaultsAudio_claim_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Audio_default_instance_;
new (ptr) ::pb::Audio();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::pb::Audio::InitAsDefaultInstance();
}
::google::protobuf::internal::SCCInfo<0> scc_info_Audio_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAudio_claim_2eproto}, {}};
static void InitDefaultsSoftware_claim_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Software_default_instance_;
new (ptr) ::pb::Software();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::pb::Software::InitAsDefaultInstance();
}
::google::protobuf::internal::SCCInfo<0> scc_info_Software_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSoftware_claim_2eproto}, {}};
static void InitDefaultsLanguage_claim_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Language_default_instance_;
new (ptr) ::pb::Language();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::pb::Language::InitAsDefaultInstance();
}
::google::protobuf::internal::SCCInfo<0> scc_info_Language_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLanguage_claim_2eproto}, {}};
static void InitDefaultsLocation_claim_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Location_default_instance_;
new (ptr) ::pb::Location();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::pb::Location::InitAsDefaultInstance();
}
::google::protobuf::internal::SCCInfo<0> scc_info_Location_claim_2eproto =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLocation_claim_2eproto}, {}};
void InitDefaults_claim_2eproto() {
::google::protobuf::internal::InitSCC(&scc_info_Claim_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_Stream_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_Channel_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_ClaimReference_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_ClaimList_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_Source_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_Fee_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_Image_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_Video_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_Audio_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_Software_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_Language_claim_2eproto.base);
::google::protobuf::internal::InitSCC(&scc_info_Location_claim_2eproto.base);
}
::google::protobuf::Metadata file_level_metadata_claim_2eproto[13];
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_claim_2eproto[6];
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_
PROTOBUF_FIELD_OFFSET(::pb::Claim, _oneof_case_[0]),
~0u, // no _weak_field_map_
offsetof(::pb::ClaimDefaultTypeInternal, stream_),
offsetof(::pb::ClaimDefaultTypeInternal, channel_),
offsetof(::pb::ClaimDefaultTypeInternal, collection_),
offsetof(::pb::ClaimDefaultTypeInternal, repost_),
PROTOBUF_FIELD_OFFSET(::pb::Claim, title_),
PROTOBUF_FIELD_OFFSET(::pb::Claim, description_),
PROTOBUF_FIELD_OFFSET(::pb::Claim, thumbnail_),
PROTOBUF_FIELD_OFFSET(::pb::Claim, tags_),
PROTOBUF_FIELD_OFFSET(::pb::Claim, languages_),
PROTOBUF_FIELD_OFFSET(::pb::Claim, locations_),
PROTOBUF_FIELD_OFFSET(::pb::Claim, type_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Stream, _internal_metadata_),
~0u, // no _extensions_
PROTOBUF_FIELD_OFFSET(::pb::Stream, _oneof_case_[0]),
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Stream, source_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, author_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, license_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, license_url_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, release_time_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, fee_),
offsetof(::pb::StreamDefaultTypeInternal, image_),
offsetof(::pb::StreamDefaultTypeInternal, video_),
offsetof(::pb::StreamDefaultTypeInternal, audio_),
offsetof(::pb::StreamDefaultTypeInternal, software_),
PROTOBUF_FIELD_OFFSET(::pb::Stream, type_),
~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, email_),
PROTOBUF_FIELD_OFFSET(::pb::Channel, website_url_),
PROTOBUF_FIELD_OFFSET(::pb::Channel, cover_),
PROTOBUF_FIELD_OFFSET(::pb::Channel, featured_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::ClaimReference, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::ClaimReference, claim_hash_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::ClaimList, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::ClaimList, list_type_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimList, claim_references_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Source, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Source, hash_),
PROTOBUF_FIELD_OFFSET(::pb::Source, name_),
PROTOBUF_FIELD_OFFSET(::pb::Source, size_),
PROTOBUF_FIELD_OFFSET(::pb::Source, media_type_),
PROTOBUF_FIELD_OFFSET(::pb::Source, url_),
PROTOBUF_FIELD_OFFSET(::pb::Source, sd_hash_),
PROTOBUF_FIELD_OFFSET(::pb::Source, bt_infohash_),
~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::Image, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Image, width_),
PROTOBUF_FIELD_OFFSET(::pb::Image, height_),
~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_),
PROTOBUF_FIELD_OFFSET(::pb::Video, duration_),
PROTOBUF_FIELD_OFFSET(::pb::Video, audio_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Audio, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Audio, duration_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Software, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Software, os_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Language, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Language, language_),
PROTOBUF_FIELD_OFFSET(::pb::Language, script_),
PROTOBUF_FIELD_OFFSET(::pb::Language, region_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Location, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Location, country_),
PROTOBUF_FIELD_OFFSET(::pb::Location, state_),
PROTOBUF_FIELD_OFFSET(::pb::Location, city_),
PROTOBUF_FIELD_OFFSET(::pb::Location, code_),
PROTOBUF_FIELD_OFFSET(::pb::Location, latitude_),
PROTOBUF_FIELD_OFFSET(::pb::Location, longitude_),
};
static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, sizeof(::pb::Claim)},
{ 16, -1, sizeof(::pb::Stream)},
{ 32, -1, sizeof(::pb::Channel)},
{ 42, -1, sizeof(::pb::ClaimReference)},
{ 48, -1, sizeof(::pb::ClaimList)},
{ 55, -1, sizeof(::pb::Source)},
{ 67, -1, sizeof(::pb::Fee)},
{ 75, -1, sizeof(::pb::Image)},
{ 82, -1, sizeof(::pb::Video)},
{ 91, -1, sizeof(::pb::Audio)},
{ 97, -1, sizeof(::pb::Software)},
{ 103, -1, sizeof(::pb::Language)},
{ 111, -1, sizeof(::pb::Location)},
};
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::_Stream_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Channel_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_ClaimReference_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_ClaimList_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Source_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Fee_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Image_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Video_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Audio_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Software_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Language_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Location_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, 13, file_level_enum_descriptors_claim_2eproto, file_level_service_descriptors_claim_2eproto,
};
const char descriptor_table_protodef_claim_2eproto[] =
"\n\013claim.proto\022\002pb\"\253\002\n\005Claim\022\034\n\006stream\030\001 "
"\001(\0132\n.pb.StreamH\000\022\036\n\007channel\030\002 \001(\0132\013.pb."
"ChannelH\000\022#\n\ncollection\030\003 \001(\0132\r.pb.Claim"
"ListH\000\022$\n\006repost\030\004 \001(\0132\022.pb.ClaimReferen"
"ceH\000\022\r\n\005title\030\010 \001(\t\022\023\n\013description\030\t \001(\t"
"\022\035\n\tthumbnail\030\n \001(\0132\n.pb.Source\022\014\n\004tags\030"
"\013 \003(\t\022\037\n\tlanguages\030\014 \003(\0132\014.pb.Language\022\037"
"\n\tlocations\030\r \003(\0132\014.pb.LocationB\006\n\004type\""
"\204\002\n\006Stream\022\032\n\006source\030\001 \001(\0132\n.pb.Source\022\016"
"\n\006author\030\002 \001(\t\022\017\n\007license\030\003 \001(\t\022\023\n\013licen"
"se_url\030\004 \001(\t\022\024\n\014release_time\030\005 \001(\003\022\024\n\003fe"
"e\030\006 \001(\0132\007.pb.Fee\022\032\n\005image\030\n \001(\0132\t.pb.Ima"
"geH\000\022\032\n\005video\030\013 \001(\0132\t.pb.VideoH\000\022\032\n\005audi"
"o\030\014 \001(\0132\t.pb.AudioH\000\022 \n\010software\030\r \001(\0132\014"
".pb.SoftwareH\000B\006\n\004type\"}\n\007Channel\022\022\n\npub"
"lic_key\030\001 \001(\014\022\r\n\005email\030\002 \001(\t\022\023\n\013website_"
"url\030\003 \001(\t\022\031\n\005cover\030\004 \001(\0132\n.pb.Source\022\037\n\010"
"featured\030\005 \001(\0132\r.pb.ClaimList\"$\n\016ClaimRe"
"ference\022\022\n\nclaim_hash\030\001 \001(\014\"\220\001\n\tClaimLis"
"t\022)\n\tlist_type\030\001 \001(\0162\026.pb.ClaimList.List"
"Type\022,\n\020claim_references\030\002 \003(\0132\022.pb.Clai"
"mReference\"*\n\010ListType\022\016\n\nCOLLECTION\020\000\022\016"
"\n\nDERIVATION\020\002\"y\n\006Source\022\014\n\004hash\030\001 \001(\014\022\014"
"\n\004name\030\002 \001(\t\022\014\n\004size\030\003 \001(\004\022\022\n\nmedia_type"
"\030\004 \001(\t\022\013\n\003url\030\005 \001(\t\022\017\n\007sd_hash\030\006 \001(\014\022\023\n\013"
"bt_infohash\030\007 \001(\014\"\207\001\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\";\n\010Currency\022\024\n\020UNKNOWN_CU"
"RRENCY\020\000\022\007\n\003LBC\020\001\022\007\n\003BTC\020\002\022\007\n\003USD\020\003\"&\n\005I"
"mage\022\r\n\005width\030\001 \001(\r\022\016\n\006height\030\002 \001(\r\"R\n\005V"
"ideo\022\r\n\005width\030\001 \001(\r\022\016\n\006height\030\002 \001(\r\022\020\n\010d"
"uration\030\003 \001(\r\022\030\n\005audio\030\017 \001(\0132\t.pb.Audio\""
"\031\n\005Audio\022\020\n\010duration\030\001 \001(\r\"l\n\010Software\022\n"
"\n\002os\030\001 \001(\t\"T\n\002OS\022\016\n\nUNKNOWN_OS\020\000\022\007\n\003ANY\020"
"\001\022\t\n\005LINUX\020\002\022\013\n\007WINDOWS\020\003\022\007\n\003MAC\020\004\022\013\n\007AN"
"DROID\020\005\022\007\n\003IOS\020\006\"\307\035\n\010Language\022\'\n\010languag"
"e\030\001 \001(\0162\025.pb.Language.Language\022#\n\006script"
"\030\002 \001(\0162\023.pb.Language.Script\022$\n\006region\030\003 "
"\001(\0162\024.pb.Location.Country\"\231\014\n\010Language\022\024"
"\n\020UNKNOWN_LANGUAGE\020\000\022\006\n\002en\020\001\022\006\n\002aa\020\002\022\006\n\002"
"ab\020\003\022\006\n\002ae\020\004\022\006\n\002af\020\005\022\006\n\002ak\020\006\022\006\n\002am\020\007\022\006\n\002"
"an\020\010\022\006\n\002ar\020\t\022\006\n\002as\020\n\022\006\n\002av\020\013\022\006\n\002ay\020\014\022\006\n\002"
"az\020\r\022\006\n\002ba\020\016\022\006\n\002be\020\017\022\006\n\002bg\020\020\022\006\n\002bh\020\021\022\006\n\002"
"bi\020\022\022\006\n\002bm\020\023\022\006\n\002bn\020\024\022\006\n\002bo\020\025\022\006\n\002br\020\026\022\006\n\002"
"bs\020\027\022\006\n\002ca\020\030\022\006\n\002ce\020\031\022\006\n\002ch\020\032\022\006\n\002co\020\033\022\006\n\002"
"cr\020\034\022\006\n\002cs\020\035\022\006\n\002cu\020\036\022\006\n\002cv\020\037\022\006\n\002cy\020 \022\006\n\002"
"da\020!\022\006\n\002de\020\"\022\006\n\002dv\020#\022\006\n\002dz\020$\022\006\n\002ee\020%\022\006\n\002"
"el\020&\022\006\n\002eo\020\'\022\006\n\002es\020(\022\006\n\002et\020)\022\006\n\002eu\020*\022\006\n\002"
"fa\020+\022\006\n\002ff\020,\022\006\n\002fi\020-\022\006\n\002fj\020.\022\006\n\002fo\020/\022\006\n\002"
"fr\0200\022\006\n\002fy\0201\022\006\n\002ga\0202\022\006\n\002gd\0203\022\006\n\002gl\0204\022\006\n\002"
"gn\0205\022\006\n\002gu\0206\022\006\n\002gv\0207\022\006\n\002ha\0208\022\006\n\002he\0209\022\006\n\002"
"hi\020:\022\006\n\002ho\020;\022\006\n\002hr\020<\022\006\n\002ht\020=\022\006\n\002hu\020>\022\006\n\002"
"hy\020\?\022\006\n\002hz\020@\022\006\n\002ia\020A\022\006\n\002id\020B\022\006\n\002ie\020C\022\006\n\002"
"ig\020D\022\006\n\002ii\020E\022\006\n\002ik\020F\022\006\n\002io\020G\022\006\n\002is\020H\022\006\n\002"
"it\020I\022\006\n\002iu\020J\022\006\n\002ja\020K\022\006\n\002jv\020L\022\006\n\002ka\020M\022\006\n\002"
"kg\020N\022\006\n\002ki\020O\022\006\n\002kj\020P\022\006\n\002kk\020Q\022\006\n\002kl\020R\022\006\n\002"
"km\020S\022\006\n\002kn\020T\022\006\n\002ko\020U\022\006\n\002kr\020V\022\006\n\002ks\020W\022\006\n\002"
"ku\020X\022\006\n\002kv\020Y\022\006\n\002kw\020Z\022\006\n\002ky\020[\022\006\n\002la\020\\\022\006\n\002"
"lb\020]\022\006\n\002lg\020^\022\006\n\002li\020_\022\006\n\002ln\020`\022\006\n\002lo\020a\022\006\n\002"
"lt\020b\022\006\n\002lu\020c\022\006\n\002lv\020d\022\006\n\002mg\020e\022\006\n\002mh\020f\022\006\n\002"
"mi\020g\022\006\n\002mk\020h\022\006\n\002ml\020i\022\006\n\002mn\020j\022\006\n\002mr\020k\022\006\n\002"
"ms\020l\022\006\n\002mt\020m\022\006\n\002my\020n\022\006\n\002na\020o\022\006\n\002nb\020p\022\006\n\002"
"nd\020q\022\006\n\002ne\020r\022\006\n\002ng\020s\022\006\n\002nl\020t\022\006\n\002nn\020u\022\006\n\002"
"no\020v\022\006\n\002nr\020w\022\006\n\002nv\020x\022\006\n\002ny\020y\022\006\n\002oc\020z\022\006\n\002"
"oj\020{\022\006\n\002om\020|\022\006\n\002or\020}\022\006\n\002os\020~\022\006\n\002pa\020\177\022\007\n\002"
"pi\020\200\001\022\007\n\002pl\020\201\001\022\007\n\002ps\020\202\001\022\007\n\002pt\020\203\001\022\007\n\002qu\020\204"
"\001\022\007\n\002rm\020\205\001\022\007\n\002rn\020\206\001\022\007\n\002ro\020\207\001\022\007\n\002ru\020\210\001\022\007\n"
"\002rw\020\211\001\022\007\n\002sa\020\212\001\022\007\n\002sc\020\213\001\022\007\n\002sd\020\214\001\022\007\n\002se\020"
"\215\001\022\007\n\002sg\020\216\001\022\007\n\002si\020\217\001\022\007\n\002sk\020\220\001\022\007\n\002sl\020\221\001\022\007"
"\n\002sm\020\222\001\022\007\n\002sn\020\223\001\022\007\n\002so\020\224\001\022\007\n\002sq\020\225\001\022\007\n\002sr"
"\020\226\001\022\007\n\002ss\020\227\001\022\007\n\002st\020\230\001\022\007\n\002su\020\231\001\022\007\n\002sv\020\232\001\022"
"\007\n\002sw\020\233\001\022\007\n\002ta\020\234\001\022\007\n\002te\020\235\001\022\007\n\002tg\020\236\001\022\007\n\002t"
"h\020\237\001\022\007\n\002ti\020\240\001\022\007\n\002tk\020\241\001\022\007\n\002tl\020\242\001\022\007\n\002tn\020\243\001"
"\022\007\n\002to\020\244\001\022\007\n\002tr\020\245\001\022\007\n\002ts\020\246\001\022\007\n\002tt\020\247\001\022\007\n\002"
"tw\020\250\001\022\007\n\002ty\020\251\001\022\007\n\002ug\020\252\001\022\007\n\002uk\020\253\001\022\007\n\002ur\020\254"
"\001\022\007\n\002uz\020\255\001\022\007\n\002ve\020\256\001\022\007\n\002vi\020\257\001\022\007\n\002vo\020\260\001\022\007\n"
"\002wa\020\261\001\022\007\n\002wo\020\262\001\022\007\n\002xh\020\263\001\022\007\n\002yi\020\264\001\022\007\n\002yo\020"
"\265\001\022\007\n\002za\020\266\001\022\007\n\002zh\020\267\001\022\007\n\002zu\020\270\001\"\252\020\n\006Script"
"\022\022\n\016UNKNOWN_SCRIPT\020\000\022\010\n\004Adlm\020\001\022\010\n\004Afak\020\002"
"\022\010\n\004Aghb\020\003\022\010\n\004Ahom\020\004\022\010\n\004Arab\020\005\022\010\n\004Aran\020\006"
"\022\010\n\004Armi\020\007\022\010\n\004Armn\020\010\022\010\n\004Avst\020\t\022\010\n\004Bali\020\n"
"\022\010\n\004Bamu\020\013\022\010\n\004Bass\020\014\022\010\n\004Batk\020\r\022\010\n\004Beng\020\016"
"\022\010\n\004Bhks\020\017\022\010\n\004Blis\020\020\022\010\n\004Bopo\020\021\022\010\n\004Brah\020\022"
"\022\010\n\004Brai\020\023\022\010\n\004Bugi\020\024\022\010\n\004Buhd\020\025\022\010\n\004Cakm\020\026"
"\022\010\n\004Cans\020\027\022\010\n\004Cari\020\030\022\010\n\004Cham\020\031\022\010\n\004Cher\020\032"
"\022\010\n\004Cirt\020\033\022\010\n\004Copt\020\034\022\010\n\004Cpmn\020\035\022\010\n\004Cprt\020\036"
"\022\010\n\004Cyrl\020\037\022\010\n\004Cyrs\020 \022\010\n\004Deva\020!\022\010\n\004Dogr\020\""
"\022\010\n\004Dsrt\020#\022\010\n\004Dupl\020$\022\010\n\004Egyd\020%\022\010\n\004Egyh\020&"
"\022\010\n\004Egyp\020\'\022\010\n\004Elba\020(\022\010\n\004Elym\020)\022\010\n\004Ethi\020*"
"\022\010\n\004Geok\020+\022\010\n\004Geor\020,\022\010\n\004Glag\020-\022\010\n\004Gong\020."
"\022\010\n\004Gonm\020/\022\010\n\004Goth\0200\022\010\n\004Gran\0201\022\010\n\004Grek\0202"
"\022\010\n\004Gujr\0203\022\010\n\004Guru\0204\022\010\n\004Hanb\0205\022\010\n\004Hang\0206"
"\022\010\n\004Hani\0207\022\010\n\004Hano\0208\022\010\n\004Hans\0209\022\010\n\004Hant\020:"
"\022\010\n\004Hatr\020;\022\010\n\004Hebr\020<\022\010\n\004Hira\020=\022\010\n\004Hluw\020>"
"\022\010\n\004Hmng\020\?\022\010\n\004Hmnp\020@\022\010\n\004Hrkt\020A\022\010\n\004Hung\020B"
"\022\010\n\004Inds\020C\022\010\n\004Ital\020D\022\010\n\004Jamo\020E\022\010\n\004Java\020F"
"\022\010\n\004Jpan\020G\022\010\n\004Jurc\020H\022\010\n\004Kali\020I\022\010\n\004Kana\020J"
"\022\010\n\004Khar\020K\022\010\n\004Khmr\020L\022\010\n\004Khoj\020M\022\010\n\004Kitl\020N"
"\022\010\n\004Kits\020O\022\010\n\004Knda\020P\022\010\n\004Kore\020Q\022\010\n\004Kpel\020R"
"\022\010\n\004Kthi\020S\022\010\n\004Lana\020T\022\010\n\004Laoo\020U\022\010\n\004Latf\020V"
"\022\010\n\004Latg\020W\022\010\n\004Latn\020X\022\010\n\004Leke\020Y\022\010\n\004Lepc\020Z"
"\022\010\n\004Limb\020[\022\010\n\004Lina\020\\\022\010\n\004Linb\020]\022\010\n\004Lisu\020^"
"\022\010\n\004Loma\020_\022\010\n\004Lyci\020`\022\010\n\004Lydi\020a\022\010\n\004Mahj\020b"
"\022\010\n\004Maka\020c\022\010\n\004Mand\020d\022\010\n\004Mani\020e\022\010\n\004Marc\020f"
"\022\010\n\004Maya\020g\022\010\n\004Medf\020h\022\010\n\004Mend\020i\022\010\n\004Merc\020j"
"\022\010\n\004Mero\020k\022\010\n\004Mlym\020l\022\010\n\004Modi\020m\022\010\n\004Mong\020n"
"\022\010\n\004Moon\020o\022\010\n\004Mroo\020p\022\010\n\004Mtei\020q\022\010\n\004Mult\020r"
"\022\010\n\004Mymr\020s\022\010\n\004Nand\020t\022\010\n\004Narb\020u\022\010\n\004Nbat\020v"
"\022\010\n\004Newa\020w\022\010\n\004Nkdb\020x\022\010\n\004Nkgb\020y\022\010\n\004Nkoo\020z"
"\022\010\n\004Nshu\020{\022\010\n\004Ogam\020|\022\010\n\004Olck\020}\022\010\n\004Orkh\020~"
"\022\010\n\004Orya\020\177\022\t\n\004Osge\020\200\001\022\t\n\004Osma\020\201\001\022\t\n\004Palm"
"\020\202\001\022\t\n\004Pauc\020\203\001\022\t\n\004Perm\020\204\001\022\t\n\004Phag\020\205\001\022\t\n\004"
"Phli\020\206\001\022\t\n\004Phlp\020\207\001\022\t\n\004Phlv\020\210\001\022\t\n\004Phnx\020\211\001"
"\022\t\n\004Plrd\020\212\001\022\t\n\004Piqd\020\213\001\022\t\n\004Prti\020\214\001\022\t\n\004Qaa"
"a\020\215\001\022\t\n\004Qabx\020\216\001\022\t\n\004Rjng\020\217\001\022\t\n\004Rohg\020\220\001\022\t\n"
"\004Roro\020\221\001\022\t\n\004Runr\020\222\001\022\t\n\004Samr\020\223\001\022\t\n\004Sara\020\224"
"\001\022\t\n\004Sarb\020\225\001\022\t\n\004Saur\020\226\001\022\t\n\004Sgnw\020\227\001\022\t\n\004Sh"
"aw\020\230\001\022\t\n\004Shrd\020\231\001\022\t\n\004Shui\020\232\001\022\t\n\004Sidd\020\233\001\022\t"
"\n\004Sind\020\234\001\022\t\n\004Sinh\020\235\001\022\t\n\004Sogd\020\236\001\022\t\n\004Sogo\020"
"\237\001\022\t\n\004Sora\020\240\001\022\t\n\004Soyo\020\241\001\022\t\n\004Sund\020\242\001\022\t\n\004S"
"ylo\020\243\001\022\t\n\004Syrc\020\244\001\022\t\n\004Syre\020\245\001\022\t\n\004Syrj\020\246\001\022"
"\t\n\004Syrn\020\247\001\022\t\n\004Tagb\020\250\001\022\t\n\004Takr\020\251\001\022\t\n\004Tale"
"\020\252\001\022\t\n\004Talu\020\253\001\022\t\n\004Taml\020\254\001\022\t\n\004Tang\020\255\001\022\t\n\004"
"Tavt\020\256\001\022\t\n\004Telu\020\257\001\022\t\n\004Teng\020\260\001\022\t\n\004Tfng\020\261\001"
"\022\t\n\004Tglg\020\262\001\022\t\n\004Thaa\020\263\001\022\t\n\004Thai\020\264\001\022\t\n\004Tib"
"t\020\265\001\022\t\n\004Tirh\020\266\001\022\t\n\004Ugar\020\267\001\022\t\n\004Vaii\020\270\001\022\t\n"
"\004Visp\020\271\001\022\t\n\004Wara\020\272\001\022\t\n\004Wcho\020\273\001\022\t\n\004Wole\020\274"
"\001\022\t\n\004Xpeo\020\275\001\022\t\n\004Xsux\020\276\001\022\t\n\004Yiii\020\277\001\022\t\n\004Za"
"nb\020\300\001\022\t\n\004Zinh\020\301\001\022\t\n\004Zmth\020\302\001\022\t\n\004Zsye\020\303\001\022\t"
"\n\004Zsym\020\304\001\022\t\n\004Zxxx\020\305\001\022\t\n\004Zyyy\020\306\001\022\t\n\004Zzzz\020"
"\307\001\"\354)\n\010Location\022%\n\007country\030\001 \001(\0162\024.pb.Lo"
"cation.Country\022\r\n\005state\030\002 \001(\t\022\014\n\004city\030\003 "
"\001(\t\022\014\n\004code\030\004 \001(\t\022\020\n\010latitude\030\005 \001(\021\022\021\n\tl"
"ongitude\030\006 \001(\021\"\350(\n\007Country\022\023\n\017UNKNOWN_CO"
"UNTRY\020\000\022\006\n\002AF\020\001\022\006\n\002AX\020\002\022\006\n\002AL\020\003\022\006\n\002DZ\020\004\022"
"\006\n\002AS\020\005\022\006\n\002AD\020\006\022\006\n\002AO\020\007\022\006\n\002AI\020\010\022\006\n\002AQ\020\t\022"
"\006\n\002AG\020\n\022\006\n\002AR\020\013\022\006\n\002AM\020\014\022\006\n\002AW\020\r\022\006\n\002AU\020\016\022"
"\006\n\002AT\020\017\022\006\n\002AZ\020\020\022\006\n\002BS\020\021\022\006\n\002BH\020\022\022\006\n\002BD\020\023\022"
"\006\n\002BB\020\024\022\006\n\002BY\020\025\022\006\n\002BE\020\026\022\006\n\002BZ\020\027\022\006\n\002BJ\020\030\022"
"\006\n\002BM\020\031\022\006\n\002BT\020\032\022\006\n\002BO\020\033\022\006\n\002BQ\020\034\022\006\n\002BA\020\035\022"
"\006\n\002BW\020\036\022\006\n\002BV\020\037\022\006\n\002BR\020 \022\006\n\002IO\020!\022\006\n\002BN\020\"\022"
"\006\n\002BG\020#\022\006\n\002BF\020$\022\006\n\002BI\020%\022\006\n\002KH\020&\022\006\n\002CM\020\'\022"
"\006\n\002CA\020(\022\006\n\002CV\020)\022\006\n\002KY\020*\022\006\n\002CF\020+\022\006\n\002TD\020,\022"
"\006\n\002CL\020-\022\006\n\002CN\020.\022\006\n\002CX\020/\022\006\n\002CC\0200\022\006\n\002CO\0201\022"
"\006\n\002KM\0202\022\006\n\002CG\0203\022\006\n\002CD\0204\022\006\n\002CK\0205\022\006\n\002CR\0206\022"
"\006\n\002CI\0207\022\006\n\002HR\0208\022\006\n\002CU\0209\022\006\n\002CW\020:\022\006\n\002CY\020;\022"
"\006\n\002CZ\020<\022\006\n\002DK\020=\022\006\n\002DJ\020>\022\006\n\002DM\020\?\022\006\n\002DO\020@\022"
"\006\n\002EC\020A\022\006\n\002EG\020B\022\006\n\002SV\020C\022\006\n\002GQ\020D\022\006\n\002ER\020E\022"
"\006\n\002EE\020F\022\006\n\002ET\020G\022\006\n\002FK\020H\022\006\n\002FO\020I\022\006\n\002FJ\020J\022"
"\006\n\002FI\020K\022\006\n\002FR\020L\022\006\n\002GF\020M\022\006\n\002PF\020N\022\006\n\002TF\020O\022"
"\006\n\002GA\020P\022\006\n\002GM\020Q\022\006\n\002GE\020R\022\006\n\002DE\020S\022\006\n\002GH\020T\022"
"\006\n\002GI\020U\022\006\n\002GR\020V\022\006\n\002GL\020W\022\006\n\002GD\020X\022\006\n\002GP\020Y\022"
"\006\n\002GU\020Z\022\006\n\002GT\020[\022\006\n\002GG\020\\\022\006\n\002GN\020]\022\006\n\002GW\020^\022"
"\006\n\002GY\020_\022\006\n\002HT\020`\022\006\n\002HM\020a\022\006\n\002VA\020b\022\006\n\002HN\020c\022"
"\006\n\002HK\020d\022\006\n\002HU\020e\022\006\n\002IS\020f\022\006\n\002IN\020g\022\006\n\002ID\020h\022"
"\006\n\002IR\020i\022\006\n\002IQ\020j\022\006\n\002IE\020k\022\006\n\002IM\020l\022\006\n\002IL\020m\022"
"\006\n\002IT\020n\022\006\n\002JM\020o\022\006\n\002JP\020p\022\006\n\002JE\020q\022\006\n\002JO\020r\022"
"\006\n\002KZ\020s\022\006\n\002KE\020t\022\006\n\002KI\020u\022\006\n\002KP\020v\022\006\n\002KR\020w\022"
"\006\n\002KW\020x\022\006\n\002KG\020y\022\006\n\002LA\020z\022\006\n\002LV\020{\022\006\n\002LB\020|\022"
"\006\n\002LS\020}\022\006\n\002LR\020~\022\006\n\002LY\020\177\022\007\n\002LI\020\200\001\022\007\n\002LT\020\201"
"\001\022\007\n\002LU\020\202\001\022\007\n\002MO\020\203\001\022\007\n\002MK\020\204\001\022\007\n\002MG\020\205\001\022\007\n"
"\002MW\020\206\001\022\007\n\002MY\020\207\001\022\007\n\002MV\020\210\001\022\007\n\002ML\020\211\001\022\007\n\002MT\020"
"\212\001\022\007\n\002MH\020\213\001\022\007\n\002MQ\020\214\001\022\007\n\002MR\020\215\001\022\007\n\002MU\020\216\001\022\007"
"\n\002YT\020\217\001\022\007\n\002MX\020\220\001\022\007\n\002FM\020\221\001\022\007\n\002MD\020\222\001\022\007\n\002MC"
"\020\223\001\022\007\n\002MN\020\224\001\022\007\n\002ME\020\225\001\022\007\n\002MS\020\226\001\022\007\n\002MA\020\227\001\022"
"\007\n\002MZ\020\230\001\022\007\n\002MM\020\231\001\022\007\n\002NA\020\232\001\022\007\n\002NR\020\233\001\022\007\n\002N"
"P\020\234\001\022\007\n\002NL\020\235\001\022\007\n\002NC\020\236\001\022\007\n\002NZ\020\237\001\022\007\n\002NI\020\240\001"
"\022\007\n\002NE\020\241\001\022\007\n\002NG\020\242\001\022\007\n\002NU\020\243\001\022\007\n\002NF\020\244\001\022\007\n\002"
"MP\020\245\001\022\007\n\002NO\020\246\001\022\007\n\002OM\020\247\001\022\007\n\002PK\020\250\001\022\007\n\002PW\020\251"
"\001\022\007\n\002PS\020\252\001\022\007\n\002PA\020\253\001\022\007\n\002PG\020\254\001\022\007\n\002PY\020\255\001\022\007\n"
"\002PE\020\256\001\022\007\n\002PH\020\257\001\022\007\n\002PN\020\260\001\022\007\n\002PL\020\261\001\022\007\n\002PT\020"
"\262\001\022\007\n\002PR\020\263\001\022\007\n\002QA\020\264\001\022\007\n\002RE\020\265\001\022\007\n\002RO\020\266\001\022\007"
"\n\002RU\020\267\001\022\007\n\002RW\020\270\001\022\007\n\002BL\020\271\001\022\007\n\002SH\020\272\001\022\007\n\002KN"
"\020\273\001\022\007\n\002LC\020\274\001\022\007\n\002MF\020\275\001\022\007\n\002PM\020\276\001\022\007\n\002VC\020\277\001\022"
"\007\n\002WS\020\300\001\022\007\n\002SM\020\301\001\022\007\n\002ST\020\302\001\022\007\n\002SA\020\303\001\022\007\n\002S"
"N\020\304\001\022\007\n\002RS\020\305\001\022\007\n\002SC\020\306\001\022\007\n\002SL\020\307\001\022\007\n\002SG\020\310\001"
"\022\007\n\002SX\020\311\001\022\007\n\002SK\020\312\001\022\007\n\002SI\020\313\001\022\007\n\002SB\020\314\001\022\007\n\002"
"SO\020\315\001\022\007\n\002ZA\020\316\001\022\007\n\002GS\020\317\001\022\007\n\002SS\020\320\001\022\007\n\002ES\020\321"
"\001\022\007\n\002LK\020\322\001\022\007\n\002SD\020\323\001\022\007\n\002SR\020\324\001\022\007\n\002SJ\020\325\001\022\007\n"
"\002SZ\020\326\001\022\007\n\002SE\020\327\001\022\007\n\002CH\020\330\001\022\007\n\002SY\020\331\001\022\007\n\002TW\020"
"\332\001\022\007\n\002TJ\020\333\001\022\007\n\002TZ\020\334\001\022\007\n\002TH\020\335\001\022\007\n\002TL\020\336\001\022\007"
"\n\002TG\020\337\001\022\007\n\002TK\020\340\001\022\007\n\002TO\020\341\001\022\007\n\002TT\020\342\001\022\007\n\002TN"
"\020\343\001\022\007\n\002TR\020\344\001\022\007\n\002TM\020\345\001\022\007\n\002TC\020\346\001\022\007\n\002TV\020\347\001\022"
"\007\n\002UG\020\350\001\022\007\n\002UA\020\351\001\022\007\n\002AE\020\352\001\022\007\n\002GB\020\353\001\022\007\n\002U"
"S\020\354\001\022\007\n\002UM\020\355\001\022\007\n\002UY\020\356\001\022\007\n\002UZ\020\357\001\022\007\n\002VU\020\360\001"
"\022\007\n\002VE\020\361\001\022\007\n\002VN\020\362\001\022\007\n\002VG\020\363\001\022\007\n\002VI\020\364\001\022\007\n\002"
"WF\020\365\001\022\007\n\002EH\020\366\001\022\007\n\002YE\020\367\001\022\007\n\002ZM\020\370\001\022\007\n\002ZW\020\371"
"\001\022\t\n\004R001\020\372\001\022\t\n\004R002\020\373\001\022\t\n\004R015\020\374\001\022\t\n\004R0"
"12\020\375\001\022\t\n\004R818\020\376\001\022\t\n\004R434\020\377\001\022\t\n\004R504\020\200\002\022\t"
"\n\004R729\020\201\002\022\t\n\004R788\020\202\002\022\t\n\004R732\020\203\002\022\t\n\004R202\020"
"\204\002\022\t\n\004R014\020\205\002\022\t\n\004R086\020\206\002\022\t\n\004R108\020\207\002\022\t\n\004R"
"174\020\210\002\022\t\n\004R262\020\211\002\022\t\n\004R232\020\212\002\022\t\n\004R231\020\213\002\022"
"\t\n\004R260\020\214\002\022\t\n\004R404\020\215\002\022\t\n\004R450\020\216\002\022\t\n\004R454"
"\020\217\002\022\t\n\004R480\020\220\002\022\t\n\004R175\020\221\002\022\t\n\004R508\020\222\002\022\t\n\004"
"R638\020\223\002\022\t\n\004R646\020\224\002\022\t\n\004R690\020\225\002\022\t\n\004R706\020\226\002"
"\022\t\n\004R728\020\227\002\022\t\n\004R800\020\230\002\022\t\n\004R834\020\231\002\022\t\n\004R89"
"4\020\232\002\022\t\n\004R716\020\233\002\022\t\n\004R017\020\234\002\022\t\n\004R024\020\235\002\022\t\n"
"\004R120\020\236\002\022\t\n\004R140\020\237\002\022\t\n\004R148\020\240\002\022\t\n\004R178\020\241"
"\002\022\t\n\004R180\020\242\002\022\t\n\004R226\020\243\002\022\t\n\004R266\020\244\002\022\t\n\004R6"
"78\020\245\002\022\t\n\004R018\020\246\002\022\t\n\004R072\020\247\002\022\t\n\004R748\020\250\002\022\t"
"\n\004R426\020\251\002\022\t\n\004R516\020\252\002\022\t\n\004R710\020\253\002\022\t\n\004R011\020"
"\254\002\022\t\n\004R204\020\255\002\022\t\n\004R854\020\256\002\022\t\n\004R132\020\257\002\022\t\n\004R"
"384\020\260\002\022\t\n\004R270\020\261\002\022\t\n\004R288\020\262\002\022\t\n\004R324\020\263\002\022"
"\t\n\004R624\020\264\002\022\t\n\004R430\020\265\002\022\t\n\004R466\020\266\002\022\t\n\004R478"
"\020\267\002\022\t\n\004R562\020\270\002\022\t\n\004R566\020\271\002\022\t\n\004R654\020\272\002\022\t\n\004"
"R686\020\273\002\022\t\n\004R694\020\274\002\022\t\n\004R768\020\275\002\022\t\n\004R019\020\276\002"
"\022\t\n\004R419\020\277\002\022\t\n\004R029\020\300\002\022\t\n\004R660\020\301\002\022\t\n\004R02"
"8\020\302\002\022\t\n\004R533\020\303\002\022\t\n\004R044\020\304\002\022\t\n\004R052\020\305\002\022\t\n"
"\004R535\020\306\002\022\t\n\004R092\020\307\002\022\t\n\004R136\020\310\002\022\t\n\004R192\020\311"
"\002\022\t\n\004R531\020\312\002\022\t\n\004R212\020\313\002\022\t\n\004R214\020\314\002\022\t\n\004R3"
"08\020\315\002\022\t\n\004R312\020\316\002\022\t\n\004R332\020\317\002\022\t\n\004R388\020\320\002\022\t"
"\n\004R474\020\321\002\022\t\n\004R500\020\322\002\022\t\n\004R630\020\323\002\022\t\n\004R652\020"
"\324\002\022\t\n\004R659\020\325\002\022\t\n\004R662\020\326\002\022\t\n\004R663\020\327\002\022\t\n\004R"
"670\020\330\002\022\t\n\004R534\020\331\002\022\t\n\004R780\020\332\002\022\t\n\004R796\020\333\002\022"
"\t\n\004R850\020\334\002\022\t\n\004R013\020\335\002\022\t\n\004R084\020\336\002\022\t\n\004R188"
"\020\337\002\022\t\n\004R222\020\340\002\022\t\n\004R320\020\341\002\022\t\n\004R340\020\342\002\022\t\n\004"
"R484\020\343\002\022\t\n\004R558\020\344\002\022\t\n\004R591\020\345\002\022\t\n\004R005\020\346\002"
"\022\t\n\004R032\020\347\002\022\t\n\004R068\020\350\002\022\t\n\004R074\020\351\002\022\t\n\004R07"
"6\020\352\002\022\t\n\004R152\020\353\002\022\t\n\004R170\020\354\002\022\t\n\004R218\020\355\002\022\t\n"
"\004R238\020\356\002\022\t\n\004R254\020\357\002\022\t\n\004R328\020\360\002\022\t\n\004R600\020\361"
"\002\022\t\n\004R604\020\362\002\022\t\n\004R239\020\363\002\022\t\n\004R740\020\364\002\022\t\n\004R8"
"58\020\365\002\022\t\n\004R862\020\366\002\022\t\n\004R021\020\367\002\022\t\n\004R060\020\370\002\022\t"
"\n\004R124\020\371\002\022\t\n\004R304\020\372\002\022\t\n\004R666\020\373\002\022\t\n\004R840\020"
"\374\002\022\t\n\004R010\020\375\002\022\t\n\004R142\020\376\002\022\t\n\004R143\020\377\002\022\t\n\004R"
"398\020\200\003\022\t\n\004R417\020\201\003\022\t\n\004R762\020\202\003\022\t\n\004R795\020\203\003\022"
"\t\n\004R860\020\204\003\022\t\n\004R030\020\205\003\022\t\n\004R156\020\206\003\022\t\n\004R344"
"\020\207\003\022\t\n\004R446\020\210\003\022\t\n\004R408\020\211\003\022\t\n\004R392\020\212\003\022\t\n\004"
"R496\020\213\003\022\t\n\004R410\020\214\003\022\t\n\004R035\020\215\003\022\t\n\004R096\020\216\003"
"\022\t\n\004R116\020\217\003\022\t\n\004R360\020\220\003\022\t\n\004R418\020\221\003\022\t\n\004R45"
"8\020\222\003\022\t\n\004R104\020\223\003\022\t\n\004R608\020\224\003\022\t\n\004R702\020\225\003\022\t\n"
"\004R764\020\226\003\022\t\n\004R626\020\227\003\022\t\n\004R704\020\230\003\022\t\n\004R034\020\231"
"\003\022\t\n\004R004\020\232\003\022\t\n\004R050\020\233\003\022\t\n\004R064\020\234\003\022\t\n\004R3"
"56\020\235\003\022\t\n\004R364\020\236\003\022\t\n\004R462\020\237\003\022\t\n\004R524\020\240\003\022\t"
"\n\004R586\020\241\003\022\t\n\004R144\020\242\003\022\t\n\004R145\020\243\003\022\t\n\004R051\020"
"\244\003\022\t\n\004R031\020\245\003\022\t\n\004R048\020\246\003\022\t\n\004R196\020\247\003\022\t\n\004R"
"268\020\250\003\022\t\n\004R368\020\251\003\022\t\n\004R376\020\252\003\022\t\n\004R400\020\253\003\022"
"\t\n\004R414\020\254\003\022\t\n\004R422\020\255\003\022\t\n\004R512\020\256\003\022\t\n\004R634"
"\020\257\003\022\t\n\004R682\020\260\003\022\t\n\004R275\020\261\003\022\t\n\004R760\020\262\003\022\t\n\004"
"R792\020\263\003\022\t\n\004R784\020\264\003\022\t\n\004R887\020\265\003\022\t\n\004R150\020\266\003"
"\022\t\n\004R151\020\267\003\022\t\n\004R112\020\270\003\022\t\n\004R100\020\271\003\022\t\n\004R20"
"3\020\272\003\022\t\n\004R348\020\273\003\022\t\n\004R616\020\274\003\022\t\n\004R498\020\275\003\022\t\n"
"\004R642\020\276\003\022\t\n\004R643\020\277\003\022\t\n\004R703\020\300\003\022\t\n\004R804\020\301"
"\003\022\t\n\004R154\020\302\003\022\t\n\004R248\020\303\003\022\t\n\004R830\020\304\003\022\t\n\004R8"
"31\020\305\003\022\t\n\004R832\020\306\003\022\t\n\004R680\020\307\003\022\t\n\004R208\020\310\003\022\t"
"\n\004R233\020\311\003\022\t\n\004R234\020\312\003\022\t\n\004R246\020\313\003\022\t\n\004R352\020"
"\314\003\022\t\n\004R372\020\315\003\022\t\n\004R833\020\316\003\022\t\n\004R428\020\317\003\022\t\n\004R"
"440\020\320\003\022\t\n\004R578\020\321\003\022\t\n\004R744\020\322\003\022\t\n\004R752\020\323\003\022"
"\t\n\004R826\020\324\003\022\t\n\004R039\020\325\003\022\t\n\004R008\020\326\003\022\t\n\004R020"
"\020\327\003\022\t\n\004R070\020\330\003\022\t\n\004R191\020\331\003\022\t\n\004R292\020\332\003\022\t\n\004"
"R300\020\333\003\022\t\n\004R336\020\334\003\022\t\n\004R380\020\335\003\022\t\n\004R470\020\336\003"
"\022\t\n\004R499\020\337\003\022\t\n\004R807\020\340\003\022\t\n\004R620\020\341\003\022\t\n\004R67"
"4\020\342\003\022\t\n\004R688\020\343\003\022\t\n\004R705\020\344\003\022\t\n\004R724\020\345\003\022\t\n"
"\004R155\020\346\003\022\t\n\004R040\020\347\003\022\t\n\004R056\020\350\003\022\t\n\004R250\020\351"
"\003\022\t\n\004R276\020\352\003\022\t\n\004R438\020\353\003\022\t\n\004R442\020\354\003\022\t\n\004R4"
"92\020\355\003\022\t\n\004R528\020\356\003\022\t\n\004R756\020\357\003\022\t\n\004R009\020\360\003\022\t"
"\n\004R053\020\361\003\022\t\n\004R036\020\362\003\022\t\n\004R162\020\363\003\022\t\n\004R166\020"
"\364\003\022\t\n\004R334\020\365\003\022\t\n\004R554\020\366\003\022\t\n\004R574\020\367\003\022\t\n\004R"
"054\020\370\003\022\t\n\004R242\020\371\003\022\t\n\004R540\020\372\003\022\t\n\004R598\020\373\003\022"
"\t\n\004R090\020\374\003\022\t\n\004R548\020\375\003\022\t\n\004R057\020\376\003\022\t\n\004R316"
"\020\377\003\022\t\n\004R296\020\200\004\022\t\n\004R584\020\201\004\022\t\n\004R583\020\202\004\022\t\n\004"
"R520\020\203\004\022\t\n\004R580\020\204\004\022\t\n\004R585\020\205\004\022\t\n\004R581\020\206\004"
"\022\t\n\004R061\020\207\004\022\t\n\004R016\020\210\004\022\t\n\004R184\020\211\004\022\t\n\004R25"
"8\020\212\004\022\t\n\004R570\020\213\004\022\t\n\004R612\020\214\004\022\t\n\004R882\020\215\004\022\t\n"
"\004R772\020\216\004\022\t\n\004R776\020\217\004\022\t\n\004R798\020\220\004\022\t\n\004R876\020\221"
"\004b\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, 10569,
};
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* ClaimList_ListType_descriptor() {
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_claim_2eproto);
return file_level_enum_descriptors_claim_2eproto[0];
}
bool ClaimList_ListType_IsValid(int value) {
switch (value) {
case 0:
case 2:
return true;
default:
return false;
}
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const ClaimList_ListType ClaimList::COLLECTION;
const ClaimList_ListType ClaimList::DERIVATION;
const ClaimList_ListType ClaimList::ListType_MIN;
const ClaimList_ListType ClaimList::ListType_MAX;
const int ClaimList::ListType_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:
case 2:
case 3:
return true;
default:
return false;
}
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const Fee_Currency Fee::UNKNOWN_CURRENCY;
const Fee_Currency Fee::LBC;
const Fee_Currency Fee::BTC;
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
const ::google::protobuf::EnumDescriptor* Software_OS_descriptor() {
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_claim_2eproto);
return file_level_enum_descriptors_claim_2eproto[2];
}
bool Software_OS_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
return true;
default:
return false;
}
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const Software_OS Software::UNKNOWN_OS;
const Software_OS Software::ANY;
const Software_OS Software::LINUX;
const Software_OS Software::WINDOWS;
const Software_OS Software::MAC;
const Software_OS Software::ANDROID;
const Software_OS Software::IOS;
const Software_OS Software::OS_MIN;
const Software_OS Software::OS_MAX;
const int Software::OS_ARRAYSIZE;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
const ::google::protobuf::EnumDescriptor* Language_Language_descriptor() {
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_claim_2eproto);
return file_level_enum_descriptors_claim_2eproto[3];
}
bool Language_Language_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18:
case 19:
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
case 27:
case 28:
case 29:
case 30:
case 31:
case 32:
case 33:
case 34:
case 35:
case 36:
case 37:
case 38:
case 39:
case 40:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
case 81:
case 82:
case 83:
case 84:
case 85:
case 86:
case 87:
case 88:
case 89:
case 90:
case 91:
case 92:
case 93:
case 94:
case 95:
case 96:
case 97:
case 98:
case 99:
case 100:
case 101:
case 102:
case 103:
case 104:
case 105:
case 106:
case 107:
case 108:
case 109:
case 110:
case 111:
case 112:
case 113:
case 114:
case 115:
case 116:
case 117:
case 118:
case 119:
case 120:
case 121:
case 122:
case 123:
case 124:
case 125:
case 126:
case 127:
case 128:
case 129:
case 130:
case 131:
case 132:
case 133:
case 134:
case 135:
case 136:
case 137:
case 138:
case 139:
case 140:
case 141:
case 142:
case 143:
case 144:
case 145:
case 146:
case 147:
case 148:
case 149:
case 150:
case 151:
case 152:
case 153:
case 154:
case 155:
case 156:
case 157:
case 158:
case 159:
case 160:
case 161:
case 162:
case 163:
case 164:
case 165:
case 166:
case 167:
case 168:
case 169:
case 170:
case 171:
case 172:
case 173:
case 174:
case 175:
case 176:
case 177:
case 178:
case 179:
case 180:
case 181:
case 182:
case 183:
case 184:
return true;
default:
return false;
}
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const Language_Language Language::UNKNOWN_LANGUAGE;
const Language_Language Language::en;
const Language_Language Language::aa;
const Language_Language Language::ab;
const Language_Language Language::ae;
const Language_Language Language::af;
const Language_Language Language::ak;
const Language_Language Language::am;
const Language_Language Language::an;
const Language_Language Language::ar;
const Language_Language Language::as;
const Language_Language Language::av;
const Language_Language Language::ay;
const Language_Language Language::az;
const Language_Language Language::ba;
const Language_Language Language::be;
const Language_Language Language::bg;
const Language_Language Language::bh;
const Language_Language Language::bi;
const Language_Language Language::bm;
const Language_Language Language::bn;
const Language_Language Language::bo;
const Language_Language Language::br;
const Language_Language Language::bs;
const Language_Language Language::ca;
const Language_Language Language::ce;
const Language_Language Language::ch;
const Language_Language Language::co;
const Language_Language Language::cr;
const Language_Language Language::cs;
const Language_Language Language::cu;
const Language_Language Language::cv;
const Language_Language Language::cy;
const Language_Language Language::da;
const Language_Language Language::de;
const Language_Language Language::dv;
const Language_Language Language::dz;
const Language_Language Language::ee;
const Language_Language Language::el;
const Language_Language Language::eo;
const Language_Language Language::es;
const Language_Language Language::et;
const Language_Language Language::eu;
const Language_Language Language::fa;
const Language_Language Language::ff;
const Language_Language Language::fi;
const Language_Language Language::fj;
const Language_Language Language::fo;
const Language_Language Language::fr;
const Language_Language Language::fy;
const Language_Language Language::ga;
const Language_Language Language::gd;
const Language_Language Language::gl;
const Language_Language Language::gn;
const Language_Language Language::gu;
const Language_Language Language::gv;
const Language_Language Language::ha;
const Language_Language Language::he;
const Language_Language Language::hi;
const Language_Language Language::ho;
const Language_Language Language::hr;
const Language_Language Language::ht;
const Language_Language Language::hu;
const Language_Language Language::hy;
const Language_Language Language::hz;
const Language_Language Language::ia;
const Language_Language Language::id;
const Language_Language Language::ie;
const Language_Language Language::ig;
const Language_Language Language::ii;
const Language_Language Language::ik;
const Language_Language Language::io;
const Language_Language Language::is;
const Language_Language Language::it;
const Language_Language Language::iu;
const Language_Language Language::ja;
const Language_Language Language::jv;
const Language_Language Language::ka;
const Language_Language Language::kg;
const Language_Language Language::ki;
const Language_Language Language::kj;
const Language_Language Language::kk;
const Language_Language Language::kl;
const Language_Language Language::km;
const Language_Language Language::kn;
const Language_Language Language::ko;
const Language_Language Language::kr;
const Language_Language Language::ks;
const Language_Language Language::ku;
const Language_Language Language::kv;
const Language_Language Language::kw;
const Language_Language Language::ky;
const Language_Language Language::la;
const Language_Language Language::lb;
const Language_Language Language::lg;
const Language_Language Language::li;
const Language_Language Language::ln;
const Language_Language Language::lo;
const Language_Language Language::lt;
const Language_Language Language::lu;
const Language_Language Language::lv;
const Language_Language Language::mg;
const Language_Language Language::mh;
const Language_Language Language::mi;
const Language_Language Language::mk;
const Language_Language Language::ml;
const Language_Language Language::mn;
const Language_Language Language::mr;
const Language_Language Language::ms;
const Language_Language Language::mt;
const Language_Language Language::my;
const Language_Language Language::na;
const Language_Language Language::nb;
const Language_Language Language::nd;
const Language_Language Language::ne;
const Language_Language Language::ng;
const Language_Language Language::nl;
const Language_Language Language::nn;
const Language_Language Language::no;
const Language_Language Language::nr;
const Language_Language Language::nv;
const Language_Language Language::ny;
const Language_Language Language::oc;
const Language_Language Language::oj;
const Language_Language Language::om;
const Language_Language Language::or_;
const Language_Language Language::os;
const Language_Language Language::pa;
const Language_Language Language::pi;
const Language_Language Language::pl;
const Language_Language Language::ps;
const Language_Language Language::pt;
const Language_Language Language::qu;
const Language_Language Language::rm;
const Language_Language Language::rn;
const Language_Language Language::ro;
const Language_Language Language::ru;
const Language_Language Language::rw;
const Language_Language Language::sa;
const Language_Language Language::sc;
const Language_Language Language::sd;
const Language_Language Language::se;
const Language_Language Language::sg;
const Language_Language Language::si;
const Language_Language Language::sk;
const Language_Language Language::sl;
const Language_Language Language::sm;
const Language_Language Language::sn;
const Language_Language Language::so;
const Language_Language Language::sq;
const Language_Language Language::sr;
const Language_Language Language::ss;
const Language_Language Language::st;
const Language_Language Language::su;
const Language_Language Language::sv;
const Language_Language Language::sw;
const Language_Language Language::ta;
const Language_Language Language::te;
const Language_Language Language::tg;
const Language_Language Language::th;
const Language_Language Language::ti;
const Language_Language Language::tk;
const Language_Language Language::tl;
const Language_Language Language::tn;
const Language_Language Language::to;
const Language_Language Language::tr;
const Language_Language Language::ts;
const Language_Language Language::tt;
const Language_Language Language::tw;
const Language_Language Language::ty;
const Language_Language Language::ug;
const Language_Language Language::uk;
const Language_Language Language::ur;
const Language_Language Language::uz;
const Language_Language Language::ve;
const Language_Language Language::vi;
const Language_Language Language::vo;
const Language_Language Language::wa;
const Language_Language Language::wo;
const Language_Language Language::xh;
const Language_Language Language::yi;
const Language_Language Language::yo;
const Language_Language Language::za;
const Language_Language Language::zh;
const Language_Language Language::zu;
const Language_Language Language::Language_MIN;
const Language_Language Language::Language_MAX;
const int Language::Language_ARRAYSIZE;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
const ::google::protobuf::EnumDescriptor* Language_Script_descriptor() {
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_claim_2eproto);
return file_level_enum_descriptors_claim_2eproto[4];
}
bool Language_Script_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18:
case 19:
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
case 27:
case 28:
case 29:
case 30:
case 31:
case 32:
case 33:
case 34:
case 35:
case 36:
case 37:
case 38:
case 39:
case 40:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
case 81:
case 82:
case 83:
case 84:
case 85:
case 86:
case 87:
case 88:
case 89:
case 90:
case 91:
case 92:
case 93:
case 94:
case 95:
case 96:
case 97:
case 98:
case 99:
case 100:
case 101:
case 102:
case 103:
case 104:
case 105:
case 106:
case 107:
case 108:
case 109:
case 110:
case 111:
case 112:
case 113:
case 114:
case 115:
case 116:
case 117:
case 118:
case 119:
case 120:
case 121:
case 122:
case 123:
case 124:
case 125:
case 126:
case 127:
case 128:
case 129:
case 130:
case 131:
case 132:
case 133:
case 134:
case 135:
case 136:
case 137:
case 138:
case 139:
case 140:
case 141:
case 142:
case 143:
case 144:
case 145:
case 146:
case 147:
case 148:
case 149:
case 150:
case 151:
case 152:
case 153:
case 154:
case 155:
case 156:
case 157:
case 158:
case 159:
case 160:
case 161:
case 162:
case 163:
case 164:
case 165:
case 166:
case 167:
case 168:
case 169:
case 170:
case 171:
case 172:
case 173:
case 174:
case 175:
case 176:
case 177:
case 178:
case 179:
case 180:
case 181:
case 182:
case 183:
case 184:
case 185:
case 186:
case 187:
case 188:
case 189:
case 190:
case 191:
case 192:
case 193:
case 194:
case 195:
case 196:
case 197:
case 198:
case 199:
return true;
default:
return false;
}
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const Language_Script Language::UNKNOWN_SCRIPT;
const Language_Script Language::Adlm;
const Language_Script Language::Afak;
const Language_Script Language::Aghb;
const Language_Script Language::Ahom;
const Language_Script Language::Arab;
const Language_Script Language::Aran;
const Language_Script Language::Armi;
const Language_Script Language::Armn;
const Language_Script Language::Avst;
const Language_Script Language::Bali;
const Language_Script Language::Bamu;
const Language_Script Language::Bass;
const Language_Script Language::Batk;
const Language_Script Language::Beng;
const Language_Script Language::Bhks;
const Language_Script Language::Blis;
const Language_Script Language::Bopo;
const Language_Script Language::Brah;
const Language_Script Language::Brai;
const Language_Script Language::Bugi;
const Language_Script Language::Buhd;
const Language_Script Language::Cakm;
const Language_Script Language::Cans;
const Language_Script Language::Cari;
const Language_Script Language::Cham;
const Language_Script Language::Cher;
const Language_Script Language::Cirt;
const Language_Script Language::Copt;
const Language_Script Language::Cpmn;
const Language_Script Language::Cprt;
const Language_Script Language::Cyrl;
const Language_Script Language::Cyrs;
const Language_Script Language::Deva;
const Language_Script Language::Dogr;
const Language_Script Language::Dsrt;
const Language_Script Language::Dupl;
const Language_Script Language::Egyd;
const Language_Script Language::Egyh;
const Language_Script Language::Egyp;
const Language_Script Language::Elba;
const Language_Script Language::Elym;
const Language_Script Language::Ethi;
const Language_Script Language::Geok;
const Language_Script Language::Geor;
const Language_Script Language::Glag;
const Language_Script Language::Gong;
const Language_Script Language::Gonm;
const Language_Script Language::Goth;
const Language_Script Language::Gran;
const Language_Script Language::Grek;
const Language_Script Language::Gujr;
const Language_Script Language::Guru;
const Language_Script Language::Hanb;
const Language_Script Language::Hang;
const Language_Script Language::Hani;
const Language_Script Language::Hano;
const Language_Script Language::Hans;
const Language_Script Language::Hant;
const Language_Script Language::Hatr;
const Language_Script Language::Hebr;
const Language_Script Language::Hira;
const Language_Script Language::Hluw;
const Language_Script Language::Hmng;
const Language_Script Language::Hmnp;
const Language_Script Language::Hrkt;
const Language_Script Language::Hung;
const Language_Script Language::Inds;
const Language_Script Language::Ital;
const Language_Script Language::Jamo;
const Language_Script Language::Java;
const Language_Script Language::Jpan;
const Language_Script Language::Jurc;
const Language_Script Language::Kali;
const Language_Script Language::Kana;
const Language_Script Language::Khar;
const Language_Script Language::Khmr;
const Language_Script Language::Khoj;
const Language_Script Language::Kitl;
const Language_Script Language::Kits;
const Language_Script Language::Knda;
const Language_Script Language::Kore;
const Language_Script Language::Kpel;
const Language_Script Language::Kthi;
const Language_Script Language::Lana;
const Language_Script Language::Laoo;
const Language_Script Language::Latf;
const Language_Script Language::Latg;
const Language_Script Language::Latn;
const Language_Script Language::Leke;
const Language_Script Language::Lepc;
const Language_Script Language::Limb;
const Language_Script Language::Lina;
const Language_Script Language::Linb;
const Language_Script Language::Lisu;
const Language_Script Language::Loma;
const Language_Script Language::Lyci;
const Language_Script Language::Lydi;
const Language_Script Language::Mahj;
const Language_Script Language::Maka;
const Language_Script Language::Mand;
const Language_Script Language::Mani;
const Language_Script Language::Marc;
const Language_Script Language::Maya;
const Language_Script Language::Medf;
const Language_Script Language::Mend;
const Language_Script Language::Merc;
const Language_Script Language::Mero;
const Language_Script Language::Mlym;
const Language_Script Language::Modi;
const Language_Script Language::Mong;
const Language_Script Language::Moon;
const Language_Script Language::Mroo;
const Language_Script Language::Mtei;
const Language_Script Language::Mult;
const Language_Script Language::Mymr;
const Language_Script Language::Nand;
const Language_Script Language::Narb;
const Language_Script Language::Nbat;
const Language_Script Language::Newa;
const Language_Script Language::Nkdb;
const Language_Script Language::Nkgb;
const Language_Script Language::Nkoo;
const Language_Script Language::Nshu;
const Language_Script Language::Ogam;
const Language_Script Language::Olck;
const Language_Script Language::Orkh;
const Language_Script Language::Orya;
const Language_Script Language::Osge;
const Language_Script Language::Osma;
const Language_Script Language::Palm;
const Language_Script Language::Pauc;
const Language_Script Language::Perm;
const Language_Script Language::Phag;
const Language_Script Language::Phli;
const Language_Script Language::Phlp;
const Language_Script Language::Phlv;
const Language_Script Language::Phnx;
const Language_Script Language::Plrd;
const Language_Script Language::Piqd;
const Language_Script Language::Prti;
const Language_Script Language::Qaaa;
const Language_Script Language::Qabx;
const Language_Script Language::Rjng;
const Language_Script Language::Rohg;
const Language_Script Language::Roro;
const Language_Script Language::Runr;
const Language_Script Language::Samr;
const Language_Script Language::Sara;
const Language_Script Language::Sarb;
const Language_Script Language::Saur;
const Language_Script Language::Sgnw;
const Language_Script Language::Shaw;
const Language_Script Language::Shrd;
const Language_Script Language::Shui;
const Language_Script Language::Sidd;
const Language_Script Language::Sind;
const Language_Script Language::Sinh;
const Language_Script Language::Sogd;
const Language_Script Language::Sogo;
const Language_Script Language::Sora;
const Language_Script Language::Soyo;
const Language_Script Language::Sund;
const Language_Script Language::Sylo;
const Language_Script Language::Syrc;
const Language_Script Language::Syre;
const Language_Script Language::Syrj;
const Language_Script Language::Syrn;
const Language_Script Language::Tagb;
const Language_Script Language::Takr;
const Language_Script Language::Tale;
const Language_Script Language::Talu;
const Language_Script Language::Taml;
const Language_Script Language::Tang;
const Language_Script Language::Tavt;
const Language_Script Language::Telu;
const Language_Script Language::Teng;
const Language_Script Language::Tfng;
const Language_Script Language::Tglg;
const Language_Script Language::Thaa;
const Language_Script Language::Thai;
const Language_Script Language::Tibt;
const Language_Script Language::Tirh;
const Language_Script Language::Ugar;
const Language_Script Language::Vaii;
const Language_Script Language::Visp;
const Language_Script Language::Wara;
const Language_Script Language::Wcho;
const Language_Script Language::Wole;
const Language_Script Language::Xpeo;
const Language_Script Language::Xsux;
const Language_Script Language::Yiii;
const Language_Script Language::Zanb;
const Language_Script Language::Zinh;
const Language_Script Language::Zmth;
const Language_Script Language::Zsye;
const Language_Script Language::Zsym;
const Language_Script Language::Zxxx;
const Language_Script Language::Zyyy;
const Language_Script Language::Zzzz;
const Language_Script Language::Script_MIN;
const Language_Script Language::Script_MAX;
const int Language::Script_ARRAYSIZE;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
const ::google::protobuf::EnumDescriptor* Location_Country_descriptor() {
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_claim_2eproto);
return file_level_enum_descriptors_claim_2eproto[5];
}
bool Location_Country_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18:
case 19:
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
case 27:
case 28:
case 29:
case 30:
case 31:
case 32:
case 33:
case 34:
case 35:
case 36:
case 37:
case 38:
case 39:
case 40:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
case 81:
case 82:
case 83:
case 84:
case 85:
case 86:
case 87:
case 88:
case 89:
case 90:
case 91:
case 92:
case 93:
case 94:
case 95:
case 96:
case 97:
case 98:
case 99:
case 100:
case 101:
case 102:
case 103:
case 104:
case 105:
case 106:
case 107:
case 108:
case 109:
case 110:
case 111:
case 112:
case 113:
case 114:
case 115:
case 116:
case 117:
case 118:
case 119:
case 120:
case 121:
case 122:
case 123:
case 124:
case 125:
case 126:
case 127:
case 128:
case 129:
case 130:
case 131:
case 132:
case 133:
case 134:
case 135:
case 136:
case 137:
case 138:
case 139:
case 140:
case 141:
case 142:
case 143:
case 144:
case 145:
case 146:
case 147:
case 148:
case 149:
case 150:
case 151:
case 152:
case 153:
case 154:
case 155:
case 156:
case 157:
case 158:
case 159:
case 160:
case 161:
case 162:
case 163:
case 164:
case 165:
case 166:
case 167:
case 168:
case 169:
case 170:
case 171:
case 172:
case 173:
case 174:
case 175:
case 176:
case 177:
case 178:
case 179:
case 180:
case 181:
case 182:
case 183:
case 184:
case 185:
case 186:
case 187:
case 188:
case 189:
case 190:
case 191:
case 192:
case 193:
case 194:
case 195:
case 196:
case 197:
case 198:
case 199:
case 200:
case 201:
case 202:
case 203:
case 204:
case 205:
case 206:
case 207:
case 208:
case 209:
case 210:
case 211:
case 212:
case 213:
case 214:
case 215:
case 216:
case 217:
case 218:
case 219:
case 220:
case 221:
case 222:
case 223:
case 224:
case 225:
case 226:
case 227:
case 228:
case 229:
case 230:
case 231:
case 232:
case 233:
case 234:
case 235:
case 236:
case 237:
case 238:
case 239:
case 240:
case 241:
case 242:
case 243:
case 244:
case 245:
case 246:
case 247:
case 248:
case 249:
case 250:
case 251:
case 252:
case 253:
case 254:
case 255:
case 256:
case 257:
case 258:
case 259:
case 260:
case 261:
case 262:
case 263:
case 264:
case 265:
case 266:
case 267:
case 268:
case 269:
case 270:
case 271:
case 272:
case 273:
case 274:
case 275:
case 276:
case 277:
case 278:
case 279:
case 280:
case 281:
case 282:
case 283:
case 284:
case 285:
case 286:
case 287:
case 288:
case 289:
case 290:
case 291:
case 292:
case 293:
case 294:
case 295:
case 296:
case 297:
case 298:
case 299:
case 300:
case 301:
case 302:
case 303:
case 304:
case 305:
case 306:
case 307:
case 308:
case 309:
case 310:
case 311:
case 312:
case 313:
case 314:
case 315:
case 316:
case 317:
case 318:
case 319:
case 320:
case 321:
case 322:
case 323:
case 324:
case 325:
case 326:
case 327:
case 328:
case 329:
case 330:
case 331:
case 332:
case 333:
case 334:
case 335:
case 336:
case 337:
case 338:
case 339:
case 340:
case 341:
case 342:
case 343:
case 344:
case 345:
case 346:
case 347:
case 348:
case 349:
case 350:
case 351:
case 352:
case 353:
case 354:
case 355:
case 356:
case 357:
case 358:
case 359:
case 360:
case 361:
case 362:
case 363:
case 364:
case 365:
case 366:
case 367:
case 368:
case 369:
case 370:
case 371:
case 372:
case 373:
case 374:
case 375:
case 376:
case 377:
case 378:
case 379:
case 380:
case 381:
case 382:
case 383:
case 384:
case 385:
case 386:
case 387:
case 388:
case 389:
case 390:
case 391:
case 392:
case 393:
case 394:
case 395:
case 396:
case 397:
case 398:
case 399:
case 400:
case 401:
case 402:
case 403:
case 404:
case 405:
case 406:
case 407:
case 408:
case 409:
case 410:
case 411:
case 412:
case 413:
case 414:
case 415:
case 416:
case 417:
case 418:
case 419:
case 420:
case 421:
case 422:
case 423:
case 424:
case 425:
case 426:
case 427:
case 428:
case 429:
case 430:
case 431:
case 432:
case 433:
case 434:
case 435:
case 436:
case 437:
case 438:
case 439:
case 440:
case 441:
case 442:
case 443:
case 444:
case 445:
case 446:
case 447:
case 448:
case 449:
case 450:
case 451:
case 452:
case 453:
case 454:
case 455:
case 456:
case 457:
case 458:
case 459:
case 460:
case 461:
case 462:
case 463:
case 464:
case 465:
case 466:
case 467:
case 468:
case 469:
case 470:
case 471:
case 472:
case 473:
case 474:
case 475:
case 476:
case 477:
case 478:
case 479:
case 480:
case 481:
case 482:
case 483:
case 484:
case 485:
case 486:
case 487:
case 488:
case 489:
case 490:
case 491:
case 492:
case 493:
case 494:
case 495:
case 496:
case 497:
case 498:
case 499:
case 500:
case 501:
case 502:
case 503:
case 504:
case 505:
case 506:
case 507:
case 508:
case 509:
case 510:
case 511:
case 512:
case 513:
case 514:
case 515:
case 516:
case 517:
case 518:
case 519:
case 520:
case 521:
case 522:
case 523:
case 524:
case 525:
case 526:
case 527:
case 528:
case 529:
return true;
default:
return false;
}
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const Location_Country Location::UNKNOWN_COUNTRY;
const Location_Country Location::AF;
const Location_Country Location::AX;
const Location_Country Location::AL;
const Location_Country Location::DZ;
const Location_Country Location::AS;
const Location_Country Location::AD;
const Location_Country Location::AO;
const Location_Country Location::AI;
const Location_Country Location::AQ;
const Location_Country Location::AG;
const Location_Country Location::AR;
const Location_Country Location::AM;
const Location_Country Location::AW;
const Location_Country Location::AU;
const Location_Country Location::AT;
const Location_Country Location::AZ;
const Location_Country Location::BS;
const Location_Country Location::BH;
const Location_Country Location::BD;
const Location_Country Location::BB;
const Location_Country Location::BY;
const Location_Country Location::BE;
const Location_Country Location::BZ;
const Location_Country Location::BJ;
const Location_Country Location::BM;
const Location_Country Location::BT;
const Location_Country Location::BO;
const Location_Country Location::BQ;
const Location_Country Location::BA;
const Location_Country Location::BW;
const Location_Country Location::BV;
const Location_Country Location::BR;
const Location_Country Location::IO;
const Location_Country Location::BN;
const Location_Country Location::BG;
const Location_Country Location::BF;
const Location_Country Location::BI;
const Location_Country Location::KH;
const Location_Country Location::CM;
const Location_Country Location::CA;
const Location_Country Location::CV;
const Location_Country Location::KY;
const Location_Country Location::CF;
const Location_Country Location::TD;
const Location_Country Location::CL;
const Location_Country Location::CN;
const Location_Country Location::CX;
const Location_Country Location::CC;
const Location_Country Location::CO;
const Location_Country Location::KM;
const Location_Country Location::CG;
const Location_Country Location::CD;
const Location_Country Location::CK;
const Location_Country Location::CR;
const Location_Country Location::CI;
const Location_Country Location::HR;
const Location_Country Location::CU;
const Location_Country Location::CW;
const Location_Country Location::CY;
const Location_Country Location::CZ;
const Location_Country Location::DK;
const Location_Country Location::DJ;
const Location_Country Location::DM;
const Location_Country Location::DO;
const Location_Country Location::EC;
const Location_Country Location::EG;
const Location_Country Location::SV;
const Location_Country Location::GQ;
const Location_Country Location::ER;
const Location_Country Location::EE;
const Location_Country Location::ET;
const Location_Country Location::FK;
const Location_Country Location::FO;
const Location_Country Location::FJ;
const Location_Country Location::FI;
const Location_Country Location::FR;
const Location_Country Location::GF;
const Location_Country Location::PF;
const Location_Country Location::TF;
const Location_Country Location::GA;
const Location_Country Location::GM;
const Location_Country Location::GE;
const Location_Country Location::DE;
const Location_Country Location::GH;
const Location_Country Location::GI;
const Location_Country Location::GR;
const Location_Country Location::GL;
const Location_Country Location::GD;
const Location_Country Location::GP;
const Location_Country Location::GU;
const Location_Country Location::GT;
const Location_Country Location::GG;
const Location_Country Location::GN;
const Location_Country Location::GW;
const Location_Country Location::GY;
const Location_Country Location::HT;
const Location_Country Location::HM;
const Location_Country Location::VA;
const Location_Country Location::HN;
const Location_Country Location::HK;
const Location_Country Location::HU;
const Location_Country Location::IS;
const Location_Country Location::IN;
const Location_Country Location::ID;
const Location_Country Location::IR;
const Location_Country Location::IQ;
const Location_Country Location::IE;
const Location_Country Location::IM;
const Location_Country Location::IL;
const Location_Country Location::IT;
const Location_Country Location::JM;
const Location_Country Location::JP;
const Location_Country Location::JE;
const Location_Country Location::JO;
const Location_Country Location::KZ;
const Location_Country Location::KE;
const Location_Country Location::KI;
const Location_Country Location::KP;
const Location_Country Location::KR;
const Location_Country Location::KW;
const Location_Country Location::KG;
const Location_Country Location::LA;
const Location_Country Location::LV;
const Location_Country Location::LB;
const Location_Country Location::LS;
const Location_Country Location::LR;
const Location_Country Location::LY;
const Location_Country Location::LI;
const Location_Country Location::LT;
const Location_Country Location::LU;
const Location_Country Location::MO;
const Location_Country Location::MK;
const Location_Country Location::MG;
const Location_Country Location::MW;
const Location_Country Location::MY;
const Location_Country Location::MV;
const Location_Country Location::ML;
const Location_Country Location::MT;
const Location_Country Location::MH;
const Location_Country Location::MQ;
const Location_Country Location::MR;
const Location_Country Location::MU;
const Location_Country Location::YT;
const Location_Country Location::MX;
const Location_Country Location::FM;
const Location_Country Location::MD;
const Location_Country Location::MC;
const Location_Country Location::MN;
const Location_Country Location::ME;
const Location_Country Location::MS;
const Location_Country Location::MA;
const Location_Country Location::MZ;
const Location_Country Location::MM;
const Location_Country Location::NA;
const Location_Country Location::NR;
const Location_Country Location::NP;
const Location_Country Location::NL;
const Location_Country Location::NC;
const Location_Country Location::NZ;
const Location_Country Location::NI;
const Location_Country Location::NE;
const Location_Country Location::NG;
const Location_Country Location::NU;
const Location_Country Location::NF;
const Location_Country Location::MP;
const Location_Country Location::NO;
const Location_Country Location::OM;
const Location_Country Location::PK;
const Location_Country Location::PW;
const Location_Country Location::PS;
const Location_Country Location::PA;
const Location_Country Location::PG;
const Location_Country Location::PY;
const Location_Country Location::PE;
const Location_Country Location::PH;
const Location_Country Location::PN;
const Location_Country Location::PL;
const Location_Country Location::PT;
const Location_Country Location::PR;
const Location_Country Location::QA;
const Location_Country Location::RE;
const Location_Country Location::RO;
const Location_Country Location::RU;
const Location_Country Location::RW;
const Location_Country Location::BL;
const Location_Country Location::SH;
const Location_Country Location::KN;
const Location_Country Location::LC;
const Location_Country Location::MF;
const Location_Country Location::PM;
const Location_Country Location::VC;
const Location_Country Location::WS;
const Location_Country Location::SM;
const Location_Country Location::ST;
const Location_Country Location::SA;
const Location_Country Location::SN;
const Location_Country Location::RS;
const Location_Country Location::SC;
const Location_Country Location::SL;
const Location_Country Location::SG;
const Location_Country Location::SX;
const Location_Country Location::SK;
const Location_Country Location::SI;
const Location_Country Location::SB;
const Location_Country Location::SO;
const Location_Country Location::ZA;
const Location_Country Location::GS;
const Location_Country Location::SS;
const Location_Country Location::ES;
const Location_Country Location::LK;
const Location_Country Location::SD;
const Location_Country Location::SR;
const Location_Country Location::SJ;
const Location_Country Location::SZ;
const Location_Country Location::SE;
const Location_Country Location::CH;
const Location_Country Location::SY;
const Location_Country Location::TW;
const Location_Country Location::TJ;
const Location_Country Location::TZ;
const Location_Country Location::TH;
const Location_Country Location::TL;
const Location_Country Location::TG;
const Location_Country Location::TK;
const Location_Country Location::TO;
const Location_Country Location::TT;
const Location_Country Location::TN;
const Location_Country Location::TR;
const Location_Country Location::TM;
const Location_Country Location::TC;
const Location_Country Location::TV;
const Location_Country Location::UG;
const Location_Country Location::UA;
const Location_Country Location::AE;
const Location_Country Location::GB;
const Location_Country Location::US;
const Location_Country Location::UM;
const Location_Country Location::UY;
const Location_Country Location::UZ;
const Location_Country Location::VU;
const Location_Country Location::VE;
const Location_Country Location::VN;
const Location_Country Location::VG;
const Location_Country Location::VI;
const Location_Country Location::WF;
const Location_Country Location::EH;
const Location_Country Location::YE;
const Location_Country Location::ZM;
const Location_Country Location::ZW;
const Location_Country Location::R001;
const Location_Country Location::R002;
const Location_Country Location::R015;
const Location_Country Location::R012;
const Location_Country Location::R818;
const Location_Country Location::R434;
const Location_Country Location::R504;
const Location_Country Location::R729;
const Location_Country Location::R788;
const Location_Country Location::R732;
const Location_Country Location::R202;
const Location_Country Location::R014;
const Location_Country Location::R086;
const Location_Country Location::R108;
const Location_Country Location::R174;
const Location_Country Location::R262;
const Location_Country Location::R232;
const Location_Country Location::R231;
const Location_Country Location::R260;
const Location_Country Location::R404;
const Location_Country Location::R450;
const Location_Country Location::R454;
const Location_Country Location::R480;
const Location_Country Location::R175;
const Location_Country Location::R508;
const Location_Country Location::R638;
const Location_Country Location::R646;
const Location_Country Location::R690;
const Location_Country Location::R706;
const Location_Country Location::R728;
const Location_Country Location::R800;
const Location_Country Location::R834;
const Location_Country Location::R894;
const Location_Country Location::R716;
const Location_Country Location::R017;
const Location_Country Location::R024;
const Location_Country Location::R120;
const Location_Country Location::R140;
const Location_Country Location::R148;
const Location_Country Location::R178;
const Location_Country Location::R180;
const Location_Country Location::R226;
const Location_Country Location::R266;
const Location_Country Location::R678;
const Location_Country Location::R018;
const Location_Country Location::R072;
const Location_Country Location::R748;
const Location_Country Location::R426;
const Location_Country Location::R516;
const Location_Country Location::R710;
const Location_Country Location::R011;
const Location_Country Location::R204;
const Location_Country Location::R854;
const Location_Country Location::R132;
const Location_Country Location::R384;
const Location_Country Location::R270;
const Location_Country Location::R288;
const Location_Country Location::R324;
const Location_Country Location::R624;
const Location_Country Location::R430;
const Location_Country Location::R466;
const Location_Country Location::R478;
const Location_Country Location::R562;
const Location_Country Location::R566;
const Location_Country Location::R654;
const Location_Country Location::R686;
const Location_Country Location::R694;
const Location_Country Location::R768;
const Location_Country Location::R019;
const Location_Country Location::R419;
const Location_Country Location::R029;
const Location_Country Location::R660;
const Location_Country Location::R028;
const Location_Country Location::R533;
const Location_Country Location::R044;
const Location_Country Location::R052;
const Location_Country Location::R535;
const Location_Country Location::R092;
const Location_Country Location::R136;
const Location_Country Location::R192;
const Location_Country Location::R531;
const Location_Country Location::R212;
const Location_Country Location::R214;
const Location_Country Location::R308;
const Location_Country Location::R312;
const Location_Country Location::R332;
const Location_Country Location::R388;
const Location_Country Location::R474;
const Location_Country Location::R500;
const Location_Country Location::R630;
const Location_Country Location::R652;
const Location_Country Location::R659;
const Location_Country Location::R662;
const Location_Country Location::R663;
const Location_Country Location::R670;
const Location_Country Location::R534;
const Location_Country Location::R780;
const Location_Country Location::R796;
const Location_Country Location::R850;
const Location_Country Location::R013;
const Location_Country Location::R084;
const Location_Country Location::R188;
const Location_Country Location::R222;
const Location_Country Location::R320;
const Location_Country Location::R340;
const Location_Country Location::R484;
const Location_Country Location::R558;
const Location_Country Location::R591;
const Location_Country Location::R005;
const Location_Country Location::R032;
const Location_Country Location::R068;
const Location_Country Location::R074;
const Location_Country Location::R076;
const Location_Country Location::R152;
const Location_Country Location::R170;
const Location_Country Location::R218;
const Location_Country Location::R238;
const Location_Country Location::R254;
const Location_Country Location::R328;
const Location_Country Location::R600;
const Location_Country Location::R604;
const Location_Country Location::R239;
const Location_Country Location::R740;
const Location_Country Location::R858;
const Location_Country Location::R862;
const Location_Country Location::R021;
const Location_Country Location::R060;
const Location_Country Location::R124;
const Location_Country Location::R304;
const Location_Country Location::R666;
const Location_Country Location::R840;
const Location_Country Location::R010;
const Location_Country Location::R142;
const Location_Country Location::R143;
const Location_Country Location::R398;
const Location_Country Location::R417;
const Location_Country Location::R762;
const Location_Country Location::R795;
const Location_Country Location::R860;
const Location_Country Location::R030;
const Location_Country Location::R156;
const Location_Country Location::R344;
const Location_Country Location::R446;
const Location_Country Location::R408;
const Location_Country Location::R392;
const Location_Country Location::R496;
const Location_Country Location::R410;
const Location_Country Location::R035;
const Location_Country Location::R096;
const Location_Country Location::R116;
const Location_Country Location::R360;
const Location_Country Location::R418;
const Location_Country Location::R458;
const Location_Country Location::R104;
const Location_Country Location::R608;
const Location_Country Location::R702;
const Location_Country Location::R764;
const Location_Country Location::R626;
const Location_Country Location::R704;
const Location_Country Location::R034;
const Location_Country Location::R004;
const Location_Country Location::R050;
const Location_Country Location::R064;
const Location_Country Location::R356;
const Location_Country Location::R364;
const Location_Country Location::R462;
const Location_Country Location::R524;
const Location_Country Location::R586;
const Location_Country Location::R144;
const Location_Country Location::R145;
const Location_Country Location::R051;
const Location_Country Location::R031;
const Location_Country Location::R048;
const Location_Country Location::R196;
const Location_Country Location::R268;
const Location_Country Location::R368;
const Location_Country Location::R376;
const Location_Country Location::R400;
const Location_Country Location::R414;
const Location_Country Location::R422;
const Location_Country Location::R512;
const Location_Country Location::R634;
const Location_Country Location::R682;
const Location_Country Location::R275;
const Location_Country Location::R760;
const Location_Country Location::R792;
const Location_Country Location::R784;
const Location_Country Location::R887;
const Location_Country Location::R150;
const Location_Country Location::R151;
const Location_Country Location::R112;
const Location_Country Location::R100;
const Location_Country Location::R203;
const Location_Country Location::R348;
const Location_Country Location::R616;
const Location_Country Location::R498;
const Location_Country Location::R642;
const Location_Country Location::R643;
const Location_Country Location::R703;
const Location_Country Location::R804;
const Location_Country Location::R154;
const Location_Country Location::R248;
const Location_Country Location::R830;
const Location_Country Location::R831;
const Location_Country Location::R832;
const Location_Country Location::R680;
const Location_Country Location::R208;
const Location_Country Location::R233;
const Location_Country Location::R234;
const Location_Country Location::R246;
const Location_Country Location::R352;
const Location_Country Location::R372;
const Location_Country Location::R833;
const Location_Country Location::R428;
const Location_Country Location::R440;
const Location_Country Location::R578;
const Location_Country Location::R744;
const Location_Country Location::R752;
const Location_Country Location::R826;
const Location_Country Location::R039;
const Location_Country Location::R008;
const Location_Country Location::R020;
const Location_Country Location::R070;
const Location_Country Location::R191;
const Location_Country Location::R292;
const Location_Country Location::R300;
const Location_Country Location::R336;
const Location_Country Location::R380;
const Location_Country Location::R470;
const Location_Country Location::R499;
const Location_Country Location::R807;
const Location_Country Location::R620;
const Location_Country Location::R674;
const Location_Country Location::R688;
const Location_Country Location::R705;
const Location_Country Location::R724;
const Location_Country Location::R155;
const Location_Country Location::R040;
const Location_Country Location::R056;
const Location_Country Location::R250;
const Location_Country Location::R276;
const Location_Country Location::R438;
const Location_Country Location::R442;
const Location_Country Location::R492;
const Location_Country Location::R528;
const Location_Country Location::R756;
const Location_Country Location::R009;
const Location_Country Location::R053;
const Location_Country Location::R036;
const Location_Country Location::R162;
const Location_Country Location::R166;
const Location_Country Location::R334;
const Location_Country Location::R554;
const Location_Country Location::R574;
const Location_Country Location::R054;
const Location_Country Location::R242;
const Location_Country Location::R540;
const Location_Country Location::R598;
const Location_Country Location::R090;
const Location_Country Location::R548;
const Location_Country Location::R057;
const Location_Country Location::R316;
const Location_Country Location::R296;
const Location_Country Location::R584;
const Location_Country Location::R583;
const Location_Country Location::R520;
const Location_Country Location::R580;
const Location_Country Location::R585;
const Location_Country Location::R581;
const Location_Country Location::R061;
const Location_Country Location::R016;
const Location_Country Location::R184;
const Location_Country Location::R258;
const Location_Country Location::R570;
const Location_Country Location::R612;
const Location_Country Location::R882;
const Location_Country Location::R772;
const Location_Country Location::R776;
const Location_Country Location::R798;
const Location_Country Location::R876;
const Location_Country Location::Country_MIN;
const Location_Country Location::Country_MAX;
const int Location::Country_ARRAYSIZE;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
// ===================================================================
void Claim::InitAsDefaultInstance() {
::pb::_Claim_default_instance_.stream_ = const_cast< ::pb::Stream*>(
::pb::Stream::internal_default_instance());
::pb::_Claim_default_instance_.channel_ = const_cast< ::pb::Channel*>(
::pb::Channel::internal_default_instance());
::pb::_Claim_default_instance_.collection_ = const_cast< ::pb::ClaimList*>(
::pb::ClaimList::internal_default_instance());
::pb::_Claim_default_instance_.repost_ = const_cast< ::pb::ClaimReference*>(
::pb::ClaimReference::internal_default_instance());
::pb::_Claim_default_instance_._instance.get_mutable()->thumbnail_ = const_cast< ::pb::Source*>(
::pb::Source::internal_default_instance());
}
class Claim::HasBitSetters {
public:
static const ::pb::Stream& stream(const Claim* msg);
static const ::pb::Channel& channel(const Claim* msg);
static const ::pb::ClaimList& collection(const Claim* msg);
static const ::pb::ClaimReference& repost(const Claim* msg);
static const ::pb::Source& thumbnail(const Claim* msg);
};
const ::pb::Stream&
Claim::HasBitSetters::stream(const Claim* msg) {
return *msg->type_.stream_;
}
const ::pb::Channel&
Claim::HasBitSetters::channel(const Claim* msg) {
return *msg->type_.channel_;
}
const ::pb::ClaimList&
Claim::HasBitSetters::collection(const Claim* msg) {
return *msg->type_.collection_;
}
const ::pb::ClaimReference&
Claim::HasBitSetters::repost(const Claim* msg) {
return *msg->type_.repost_;
}
const ::pb::Source&
Claim::HasBitSetters::thumbnail(const Claim* msg) {
return *msg->thumbnail_;
}
void Claim::set_allocated_stream(::pb::Stream* stream) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
clear_type();
if (stream) {
::google::protobuf::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
stream = ::google::protobuf::internal::GetOwnedMessage(
message_arena, stream, submessage_arena);
}
set_has_stream();
type_.stream_ = stream;
}
// @@protoc_insertion_point(field_set_allocated:pb.Claim.stream)
}
void Claim::set_allocated_channel(::pb::Channel* channel) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
clear_type();
if (channel) {
::google::protobuf::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
channel = ::google::protobuf::internal::GetOwnedMessage(
message_arena, channel, submessage_arena);
}
set_has_channel();
type_.channel_ = channel;
}
// @@protoc_insertion_point(field_set_allocated:pb.Claim.channel)
}
void Claim::set_allocated_collection(::pb::ClaimList* collection) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
clear_type();
if (collection) {
::google::protobuf::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
collection = ::google::protobuf::internal::GetOwnedMessage(
message_arena, collection, submessage_arena);
}
set_has_collection();
type_.collection_ = collection;
}
// @@protoc_insertion_point(field_set_allocated:pb.Claim.collection)
}
void Claim::set_allocated_repost(::pb::ClaimReference* repost) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
clear_type();
if (repost) {
::google::protobuf::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
repost = ::google::protobuf::internal::GetOwnedMessage(
message_arena, repost, submessage_arena);
}
set_has_repost();
type_.repost_ = repost;
}
// @@protoc_insertion_point(field_set_allocated:pb.Claim.repost)
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Claim::kStreamFieldNumber;
const int Claim::kChannelFieldNumber;
const int Claim::kCollectionFieldNumber;
const int Claim::kRepostFieldNumber;
const int Claim::kTitleFieldNumber;
const int Claim::kDescriptionFieldNumber;
const int Claim::kThumbnailFieldNumber;
const int Claim::kTagsFieldNumber;
const int Claim::kLanguagesFieldNumber;
const int Claim::kLocationsFieldNumber;
#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),
tags_(from.tags_),
languages_(from.languages_),
locations_(from.locations_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
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_);
}
if (from.has_thumbnail()) {
thumbnail_ = new ::pb::Source(*from.thumbnail_);
} else {
thumbnail_ = nullptr;
}
clear_has_type();
switch (from.type_case()) {
case kStream: {
mutable_stream()->::pb::Stream::MergeFrom(from.stream());
break;
}
case kChannel: {
mutable_channel()->::pb::Channel::MergeFrom(from.channel());
break;
}
case kCollection: {
mutable_collection()->::pb::ClaimList::MergeFrom(from.collection());
break;
}
case kRepost: {
mutable_repost()->::pb::ClaimReference::MergeFrom(from.repost());
break;
}
case TYPE_NOT_SET: {
break;
}
}
// @@protoc_insertion_point(copy_constructor:pb.Claim)
}
void Claim::SharedCtor() {
::google::protobuf::internal::InitSCC(
&scc_info_Claim_claim_2eproto.base);
title_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
thumbnail_ = nullptr;
clear_has_type();
}
Claim::~Claim() {
// @@protoc_insertion_point(destructor:pb.Claim)
SharedDtor();
}
void Claim::SharedDtor() {
title_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) delete thumbnail_;
if (has_type()) {
clear_type();
}
}
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_type() {
// @@protoc_insertion_point(one_of_clear_start:pb.Claim)
switch (type_case()) {
case kStream: {
delete type_.stream_;
break;
}
case kChannel: {
delete type_.channel_;
break;
}
case kCollection: {
delete type_.collection_;
break;
}
case kRepost: {
delete type_.repost_;
break;
}
case TYPE_NOT_SET: {
break;
}
}
_oneof_case_[0] = TYPE_NOT_SET;
}
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;
tags_.Clear();
languages_.Clear();
locations_.Clear();
title_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (GetArenaNoVirtual() == nullptr && thumbnail_ != nullptr) {
delete thumbnail_;
}
thumbnail_ = nullptr;
clear_type();
_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.Stream stream = 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);
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 = 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::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;
}
// .pb.ClaimList collection = 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::ClaimList::_InternalParse;
object = msg->mutable_collection();
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.ClaimReference repost = 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);
parser_till_end = ::pb::ClaimReference::_InternalParse;
object = msg->mutable_repost();
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 title = 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);
ctx->extra_parse_data().SetFieldName("pb.Claim.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 = 9;
case 9: {
if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Claim.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;
}
// .pb.Source thumbnail = 10;
case 10: {
if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
parser_till_end = ::pb::Source::_InternalParse;
object = msg->mutable_thumbnail();
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;
}
// repeated string tags = 11;
case 11: {
if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual;
do {
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
ctx->extra_parse_data().SetFieldName("pb.Claim.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) == 90 && (ptr += 1));
break;
}
// repeated .pb.Language languages = 12;
case 12: {
if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual;
do {
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
parser_till_end = ::pb::Language::_InternalParse;
object = msg->add_languages();
if (size > end - ptr) goto len_delim_till_end;
ptr += size;
GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
{parser_till_end, object}, ptr - size, ptr));
if (ptr >= end) break;
} while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 98 && (ptr += 1));
break;
}
// repeated .pb.Location locations = 13;
case 13: {
if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual;
do {
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
parser_till_end = ::pb::Location::_InternalParse;
object = msg->add_locations();
if (size > end - ptr) goto len_delim_till_end;
ptr += size;
GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
{parser_till_end, object}, ptr - size, ptr));
if (ptr >= end) break;
} while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 106 && (ptr += 1));
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 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.Stream stream = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_stream()));
} else {
goto handle_unusual;
}
break;
}
// .pb.Channel channel = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_channel()));
} else {
goto handle_unusual;
}
break;
}
// .pb.ClaimList collection = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_collection()));
} else {
goto handle_unusual;
}
break;
}
// .pb.ClaimReference repost = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_repost()));
} else {
goto handle_unusual;
}
break;
}
// string title = 8;
case 8: {
if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 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.Claim.title"));
} else {
goto handle_unusual;
}
break;
}
// string description = 9;
case 9: {
if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 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.Claim.description"));
} else {
goto handle_unusual;
}
break;
}
// .pb.Source thumbnail = 10;
case 10: {
if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_thumbnail()));
} else {
goto handle_unusual;
}
break;
}
// repeated string tags = 11;
case 11: {
if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 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.Claim.tags"));
} else {
goto handle_unusual;
}
break;
}
// repeated .pb.Language languages = 12;
case 12: {
if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_languages()));
} else {
goto handle_unusual;
}
break;
}
// repeated .pb.Location locations = 13;
case 13: {
if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_locations()));
} 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.Stream stream = 1;
if (has_stream()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, HasBitSetters::stream(this), output);
}
// .pb.Channel channel = 2;
if (has_channel()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, HasBitSetters::channel(this), output);
}
// .pb.ClaimList collection = 3;
if (has_collection()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, HasBitSetters::collection(this), output);
}
// .pb.ClaimReference repost = 4;
if (has_repost()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, HasBitSetters::repost(this), output);
}
// string title = 8;
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.Claim.title");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8, this->title(), output);
}
// string description = 9;
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.Claim.description");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9, this->description(), output);
}
// .pb.Source thumbnail = 10;
if (this->has_thumbnail()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10, HasBitSetters::thumbnail(this), output);
}
// repeated string tags = 11;
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.Claim.tags");
::google::protobuf::internal::WireFormatLite::WriteString(
11, this->tags(i), output);
}
// repeated .pb.Language languages = 12;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->languages_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12,
this->languages(static_cast<int>(i)),
output);
}
// repeated .pb.Location locations = 13;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->locations_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13,
this->locations(static_cast<int>(i)),
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.Stream stream = 1;
if (has_stream()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
1, HasBitSetters::stream(this), target);
}
// .pb.Channel channel = 2;
if (has_channel()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
2, HasBitSetters::channel(this), target);
}
// .pb.ClaimList collection = 3;
if (has_collection()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
3, HasBitSetters::collection(this), target);
}
// .pb.ClaimReference repost = 4;
if (has_repost()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
4, HasBitSetters::repost(this), target);
}
// string title = 8;
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.Claim.title");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8, this->title(), target);
}
// string description = 9;
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.Claim.description");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9, this->description(), target);
}
// .pb.Source thumbnail = 10;
if (this->has_thumbnail()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
10, HasBitSetters::thumbnail(this), target);
}
// repeated string tags = 11;
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.Claim.tags");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(11, this->tags(i), target);
}
// repeated .pb.Language languages = 12;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->languages_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
12, this->languages(static_cast<int>(i)), target);
}
// repeated .pb.Location locations = 13;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->locations_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
13, this->locations(static_cast<int>(i)), 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;
// repeated string tags = 11;
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));
}
// repeated .pb.Language languages = 12;
{
unsigned int count = static_cast<unsigned int>(this->languages_size());
total_size += 1UL * count;
for (unsigned int i = 0; i < count; i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(
this->languages(static_cast<int>(i)));
}
}
// repeated .pb.Location locations = 13;
{
unsigned int count = static_cast<unsigned int>(this->locations_size());
total_size += 1UL * count;
for (unsigned int i = 0; i < count; i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(
this->locations(static_cast<int>(i)));
}
}
// string title = 8;
if (this->title().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->title());
}
// string description = 9;
if (this->description().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->description());
}
// .pb.Source thumbnail = 10;
if (this->has_thumbnail()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*thumbnail_);
}
switch (type_case()) {
// .pb.Stream stream = 1;
case kStream: {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*type_.stream_);
break;
}
// .pb.Channel channel = 2;
case kChannel: {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*type_.channel_);
break;
}
// .pb.ClaimList collection = 3;
case kCollection: {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*type_.collection_);
break;
}
// .pb.ClaimReference repost = 4;
case kRepost: {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*type_.repost_);
break;
}
case TYPE_NOT_SET: {
break;
}
}
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;
tags_.MergeFrom(from.tags_);
languages_.MergeFrom(from.languages_);
locations_.MergeFrom(from.locations_);
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.has_thumbnail()) {
mutable_thumbnail()->::pb::Source::MergeFrom(from.thumbnail());
}
switch (from.type_case()) {
case kStream: {
mutable_stream()->::pb::Stream::MergeFrom(from.stream());
break;
}
case kChannel: {
mutable_channel()->::pb::Channel::MergeFrom(from.channel());
break;
}
case kCollection: {
mutable_collection()->::pb::ClaimList::MergeFrom(from.collection());
break;
}
case kRepost: {
mutable_repost()->::pb::ClaimReference::MergeFrom(from.repost());
break;
}
case TYPE_NOT_SET: {
break;
}
}
}
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_);
tags_.InternalSwap(CastToBase(&other->tags_));
CastToBase(&languages_)->InternalSwap(CastToBase(&other->languages_));
CastToBase(&locations_)->InternalSwap(CastToBase(&other->locations_));
title_.Swap(&other->title_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
swap(thumbnail_, other->thumbnail_);
swap(type_, other->type_);
swap(_oneof_case_[0], other->_oneof_case_[0]);
}
::google::protobuf::Metadata Claim::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()->source_ = const_cast< ::pb::Source*>(
::pb::Source::internal_default_instance());
::pb::_Stream_default_instance_._instance.get_mutable()->fee_ = const_cast< ::pb::Fee*>(
::pb::Fee::internal_default_instance());
::pb::_Stream_default_instance_.image_ = const_cast< ::pb::Image*>(
::pb::Image::internal_default_instance());
::pb::_Stream_default_instance_.video_ = const_cast< ::pb::Video*>(
::pb::Video::internal_default_instance());
::pb::_Stream_default_instance_.audio_ = const_cast< ::pb::Audio*>(
::pb::Audio::internal_default_instance());
::pb::_Stream_default_instance_.software_ = const_cast< ::pb::Software*>(
::pb::Software::internal_default_instance());
}
class Stream::HasBitSetters {
public:
static const ::pb::Source& source(const Stream* msg);
static const ::pb::Fee& fee(const Stream* msg);
static const ::pb::Image& image(const Stream* msg);
static const ::pb::Video& video(const Stream* msg);
static const ::pb::Audio& audio(const Stream* msg);
static const ::pb::Software& software(const Stream* msg);
};
const ::pb::Source&
Stream::HasBitSetters::source(const Stream* msg) {
return *msg->source_;
}
const ::pb::Fee&
Stream::HasBitSetters::fee(const Stream* msg) {
return *msg->fee_;
}
const ::pb::Image&
Stream::HasBitSetters::image(const Stream* msg) {
return *msg->type_.image_;
}
const ::pb::Video&
Stream::HasBitSetters::video(const Stream* msg) {
return *msg->type_.video_;
}
const ::pb::Audio&
Stream::HasBitSetters::audio(const Stream* msg) {
return *msg->type_.audio_;
}
const ::pb::Software&
Stream::HasBitSetters::software(const Stream* msg) {
return *msg->type_.software_;
}
void Stream::set_allocated_image(::pb::Image* image) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
clear_type();
if (image) {
::google::protobuf::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
image = ::google::protobuf::internal::GetOwnedMessage(
message_arena, image, submessage_arena);
}
set_has_image();
type_.image_ = image;
}
// @@protoc_insertion_point(field_set_allocated:pb.Stream.image)
}
void Stream::set_allocated_video(::pb::Video* video) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
clear_type();
if (video) {
::google::protobuf::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
video = ::google::protobuf::internal::GetOwnedMessage(
message_arena, video, submessage_arena);
}
set_has_video();
type_.video_ = video;
}
// @@protoc_insertion_point(field_set_allocated:pb.Stream.video)
}
void Stream::set_allocated_audio(::pb::Audio* audio) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
clear_type();
if (audio) {
::google::protobuf::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
audio = ::google::protobuf::internal::GetOwnedMessage(
message_arena, audio, submessage_arena);
}
set_has_audio();
type_.audio_ = audio;
}
// @@protoc_insertion_point(field_set_allocated:pb.Stream.audio)
}
void Stream::set_allocated_software(::pb::Software* software) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
clear_type();
if (software) {
::google::protobuf::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
software = ::google::protobuf::internal::GetOwnedMessage(
message_arena, software, submessage_arena);
}
set_has_software();
type_.software_ = software;
}
// @@protoc_insertion_point(field_set_allocated:pb.Stream.software)
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Stream::kSourceFieldNumber;
const int Stream::kAuthorFieldNumber;
const int Stream::kLicenseFieldNumber;
const int Stream::kLicenseUrlFieldNumber;
const int Stream::kReleaseTimeFieldNumber;
const int Stream::kFeeFieldNumber;
const int Stream::kImageFieldNumber;
const int Stream::kVideoFieldNumber;
const int Stream::kAudioFieldNumber;
const int Stream::kSoftwareFieldNumber;
#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) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
author_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.author().size() > 0) {
author_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.author_);
}
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_);
}
if (from.has_source()) {
source_ = new ::pb::Source(*from.source_);
} else {
source_ = nullptr;
}
if (from.has_fee()) {
fee_ = new ::pb::Fee(*from.fee_);
} else {
fee_ = nullptr;
}
release_time_ = from.release_time_;
clear_has_type();
switch (from.type_case()) {
case kImage: {
mutable_image()->::pb::Image::MergeFrom(from.image());
break;
}
case kVideo: {
mutable_video()->::pb::Video::MergeFrom(from.video());
break;
}
case kAudio: {
mutable_audio()->::pb::Audio::MergeFrom(from.audio());
break;
}
case kSoftware: {
mutable_software()->::pb::Software::MergeFrom(from.software());
break;
}
case TYPE_NOT_SET: {
break;
}
}
// @@protoc_insertion_point(copy_constructor:pb.Stream)
}
void Stream::SharedCtor() {
::google::protobuf::internal::InitSCC(
&scc_info_Stream_claim_2eproto.base);
author_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
license_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&source_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&release_time_) -
reinterpret_cast<char*>(&source_)) + sizeof(release_time_));
clear_has_type();
}
Stream::~Stream() {
// @@protoc_insertion_point(destructor:pb.Stream)
SharedDtor();
}
void Stream::SharedDtor() {
author_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
license_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
license_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) delete source_;
if (this != internal_default_instance()) delete fee_;
if (has_type()) {
clear_type();
}
}
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_type() {
// @@protoc_insertion_point(one_of_clear_start:pb.Stream)
switch (type_case()) {
case kImage: {
delete type_.image_;
break;
}
case kVideo: {
delete type_.video_;
break;
}
case kAudio: {
delete type_.audio_;
break;
}
case kSoftware: {
delete type_.software_;
break;
}
case TYPE_NOT_SET: {
break;
}
}
_oneof_case_[0] = TYPE_NOT_SET;
}
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;
author_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
license_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
license_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (GetArenaNoVirtual() == nullptr && source_ != nullptr) {
delete source_;
}
source_ = nullptr;
if (GetArenaNoVirtual() == nullptr && fee_ != nullptr) {
delete fee_;
}
fee_ = nullptr;
release_time_ = PROTOBUF_LONGLONG(0);
clear_type();
_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) {
// .pb.Source source = 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);
parser_till_end = ::pb::Source::_InternalParse;
object = msg->mutable_source();
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 author = 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.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 license = 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.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;
}
// string license_url = 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.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;
}
// int64 release_time = 5;
case 5: {
if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual;
msg->set_release_time(::google::protobuf::internal::ReadVarint(&ptr));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
// .pb.Fee fee = 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);
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;
}
// .pb.Image image = 10;
case 10: {
if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
parser_till_end = ::pb::Image::_InternalParse;
object = msg->mutable_image();
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.Video video = 11;
case 11: {
if (static_cast<::google::protobuf::uint8>(tag) != 90) 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;
}
// .pb.Audio audio = 12;
case 12: {
if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
parser_till_end = ::pb::Audio::_InternalParse;
object = msg->mutable_audio();
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.Software software = 13;
case 13: {
if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
parser_till_end = ::pb::Software::_InternalParse;
object = msg->mutable_software();
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(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// .pb.Source source = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_source()));
} else {
goto handle_unusual;
}
break;
}
// string author = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 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 license = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 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;
}
// string license_url = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 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;
}
// int64 release_time = 5;
case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 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.Fee fee = 6;
case 6: {
if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_fee()));
} else {
goto handle_unusual;
}
break;
}
// .pb.Image image = 10;
case 10: {
if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_image()));
} else {
goto handle_unusual;
}
break;
}
// .pb.Video video = 11;
case 11: {
if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_video()));
} else {
goto handle_unusual;
}
break;
}
// .pb.Audio audio = 12;
case 12: {
if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_audio()));
} else {
goto handle_unusual;
}
break;
}
// .pb.Software software = 13;
case 13: {
if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_software()));
} 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;
// .pb.Source source = 1;
if (this->has_source()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, HasBitSetters::source(this), output);
}
// string author = 2;
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(
2, this->author(), output);
}
// string license = 3;
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(
3, this->license(), output);
}
// string license_url = 4;
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(
4, this->license_url(), output);
}
// int64 release_time = 5;
if (this->release_time() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->release_time(), output);
}
// .pb.Fee fee = 6;
if (this->has_fee()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6, HasBitSetters::fee(this), output);
}
// .pb.Image image = 10;
if (has_image()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10, HasBitSetters::image(this), output);
}
// .pb.Video video = 11;
if (has_video()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11, HasBitSetters::video(this), output);
}
// .pb.Audio audio = 12;
if (has_audio()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12, HasBitSetters::audio(this), output);
}
// .pb.Software software = 13;
if (has_software()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13, HasBitSetters::software(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;
// .pb.Source source = 1;
if (this->has_source()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
1, HasBitSetters::source(this), target);
}
// string author = 2;
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(
2, this->author(), target);
}
// string license = 3;
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(
3, this->license(), target);
}
// string license_url = 4;
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(
4, this->license_url(), target);
}
// int64 release_time = 5;
if (this->release_time() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->release_time(), target);
}
// .pb.Fee fee = 6;
if (this->has_fee()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
6, HasBitSetters::fee(this), target);
}
// .pb.Image image = 10;
if (has_image()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
10, HasBitSetters::image(this), target);
}
// .pb.Video video = 11;
if (has_video()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
11, HasBitSetters::video(this), target);
}
// .pb.Audio audio = 12;
if (has_audio()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
12, HasBitSetters::audio(this), target);
}
// .pb.Software software = 13;
if (has_software()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
13, HasBitSetters::software(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;
// string author = 2;
if (this->author().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->author());
}
// string license = 3;
if (this->license().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->license());
}
// string license_url = 4;
if (this->license_url().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->license_url());
}
// .pb.Source source = 1;
if (this->has_source()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*source_);
}
// .pb.Fee fee = 6;
if (this->has_fee()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*fee_);
}
// int64 release_time = 5;
if (this->release_time() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int64Size(
this->release_time());
}
switch (type_case()) {
// .pb.Image image = 10;
case kImage: {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*type_.image_);
break;
}
// .pb.Video video = 11;
case kVideo: {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*type_.video_);
break;
}
// .pb.Audio audio = 12;
case kAudio: {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*type_.audio_);
break;
}
// .pb.Software software = 13;
case kSoftware: {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*type_.software_);
break;
}
case TYPE_NOT_SET: {
break;
}
}
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;
if (from.author().size() > 0) {
author_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.author_);
}
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.has_source()) {
mutable_source()->::pb::Source::MergeFrom(from.source());
}
if (from.has_fee()) {
mutable_fee()->::pb::Fee::MergeFrom(from.fee());
}
if (from.release_time() != 0) {
set_release_time(from.release_time());
}
switch (from.type_case()) {
case kImage: {
mutable_image()->::pb::Image::MergeFrom(from.image());
break;
}
case kVideo: {
mutable_video()->::pb::Video::MergeFrom(from.video());
break;
}
case kAudio: {
mutable_audio()->::pb::Audio::MergeFrom(from.audio());
break;
}
case kSoftware: {
mutable_software()->::pb::Software::MergeFrom(from.software());
break;
}
case TYPE_NOT_SET: {
break;
}
}
}
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_);
author_.Swap(&other->author_, &::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());
swap(source_, other->source_);
swap(fee_, other->fee_);
swap(release_time_, other->release_time_);
swap(type_, other->type_);
swap(_oneof_case_[0], other->_oneof_case_[0]);
}
::google::protobuf::Metadata Stream::GetMetadata() const {
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_claim_2eproto);
return ::file_level_metadata_claim_2eproto[kIndexInFileMessages];
}
// ===================================================================
void Channel::InitAsDefaultInstance() {
::pb::_Channel_default_instance_._instance.get_mutable()->cover_ = const_cast< ::pb::Source*>(
::pb::Source::internal_default_instance());
::pb::_Channel_default_instance_._instance.get_mutable()->featured_ = const_cast< ::pb::ClaimList*>(
::pb::ClaimList::internal_default_instance());
}
class Channel::HasBitSetters {
public:
static const ::pb::Source& cover(const Channel* msg);
static const ::pb::ClaimList& featured(const Channel* msg);
};
const ::pb::Source&
Channel::HasBitSetters::cover(const Channel* msg) {
return *msg->cover_;
}
const ::pb::ClaimList&
Channel::HasBitSetters::featured(const Channel* msg) {
return *msg->featured_;
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Channel::kPublicKeyFieldNumber;
const int Channel::kEmailFieldNumber;
const int Channel::kWebsiteUrlFieldNumber;
const int Channel::kCoverFieldNumber;
const int Channel::kFeaturedFieldNumber;
#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) {
_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_);
}
email_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.email().size() > 0) {
email_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.email_);
}
website_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.website_url().size() > 0) {
website_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.website_url_);
}
if (from.has_cover()) {
cover_ = new ::pb::Source(*from.cover_);
} else {
cover_ = nullptr;
}
if (from.has_featured()) {
featured_ = new ::pb::ClaimList(*from.featured_);
} else {
featured_ = nullptr;
}
// @@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());
email_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
website_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&cover_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&featured_) -
reinterpret_cast<char*>(&cover_)) + sizeof(featured_));
}
Channel::~Channel() {
// @@protoc_insertion_point(destructor:pb.Channel)
SharedDtor();
}
void Channel::SharedDtor() {
public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
email_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
website_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) delete cover_;
if (this != internal_default_instance()) delete featured_;
}
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;
public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
email_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
website_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (GetArenaNoVirtual() == nullptr && cover_ != nullptr) {
delete cover_;
}
cover_ = nullptr;
if (GetArenaNoVirtual() == nullptr && featured_ != nullptr) {
delete featured_;
}
featured_ = nullptr;
_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 email = 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.email");
object = msg->mutable_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 website_url = 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.website_url");
object = msg->mutable_website_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;
}
// .pb.Source cover = 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);
parser_till_end = ::pb::Source::_InternalParse;
object = msg->mutable_cover();
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.ClaimList featured = 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);
parser_till_end = ::pb::ClaimList::_InternalParse;
object = msg->mutable_featured();
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 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(127u);
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 email = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_email()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->email().data(), static_cast<int>(this->email().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Channel.email"));
} else {
goto handle_unusual;
}
break;
}
// string website_url = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_website_url()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->website_url().data(), static_cast<int>(this->website_url().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Channel.website_url"));
} else {
goto handle_unusual;
}
break;
}
// .pb.Source cover = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_cover()));
} else {
goto handle_unusual;
}
break;
}
// .pb.ClaimList featured = 5;
case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_featured()));
} 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 email = 2;
if (this->email().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->email().data(), static_cast<int>(this->email().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.email");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->email(), output);
}
// string website_url = 3;
if (this->website_url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->website_url().data(), static_cast<int>(this->website_url().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.website_url");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->website_url(), output);
}
// .pb.Source cover = 4;
if (this->has_cover()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, HasBitSetters::cover(this), output);
}
// .pb.ClaimList featured = 5;
if (this->has_featured()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, HasBitSetters::featured(this), 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 email = 2;
if (this->email().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->email().data(), static_cast<int>(this->email().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.email");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->email(), target);
}
// string website_url = 3;
if (this->website_url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->website_url().data(), static_cast<int>(this->website_url().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Channel.website_url");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->website_url(), target);
}
// .pb.Source cover = 4;
if (this->has_cover()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
4, HasBitSetters::cover(this), target);
}
// .pb.ClaimList featured = 5;
if (this->has_featured()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
5, HasBitSetters::featured(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.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;
// bytes public_key = 1;
if (this->public_key().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->public_key());
}
// string email = 2;
if (this->email().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->email());
}
// string website_url = 3;
if (this->website_url().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->website_url());
}
// .pb.Source cover = 4;
if (this->has_cover()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*cover_);
}
// .pb.ClaimList featured = 5;
if (this->has_featured()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*featured_);
}
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;
if (from.public_key().size() > 0) {
public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_);
}
if (from.email().size() > 0) {
email_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.email_);
}
if (from.website_url().size() > 0) {
website_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.website_url_);
}
if (from.has_cover()) {
mutable_cover()->::pb::Source::MergeFrom(from.cover());
}
if (from.has_featured()) {
mutable_featured()->::pb::ClaimList::MergeFrom(from.featured());
}
}
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_);
public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
email_.Swap(&other->email_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
website_url_.Swap(&other->website_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
swap(cover_, other->cover_);
swap(featured_, other->featured_);
}
::google::protobuf::Metadata Channel::GetMetadata() const {
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_claim_2eproto);
return ::file_level_metadata_claim_2eproto[kIndexInFileMessages];
}
// ===================================================================
void ClaimReference::InitAsDefaultInstance() {
}
class ClaimReference::HasBitSetters {
public:
};
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ClaimReference::kClaimHashFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ClaimReference::ClaimReference()
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:pb.ClaimReference)
}
ClaimReference::ClaimReference(const ClaimReference& from)
: ::google::protobuf::Message(),
_internal_metadata_(nullptr) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
claim_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.claim_hash().size() > 0) {
claim_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.claim_hash_);
}
// @@protoc_insertion_point(copy_constructor:pb.ClaimReference)
}
void ClaimReference::SharedCtor() {
::google::protobuf::internal::InitSCC(
&scc_info_ClaimReference_claim_2eproto.base);
claim_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
ClaimReference::~ClaimReference() {
// @@protoc_insertion_point(destructor:pb.ClaimReference)
SharedDtor();
}
void ClaimReference::SharedDtor() {
claim_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void ClaimReference::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const ClaimReference& ClaimReference::default_instance() {
::google::protobuf::internal::InitSCC(&::scc_info_ClaimReference_claim_2eproto.base);
return *internal_default_instance();
}
void ClaimReference::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.ClaimReference)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
claim_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
_internal_metadata_.Clear();
}
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* ClaimReference::_InternalParse(const char* begin, const char* end, void* object,
::google::protobuf::internal::ParseContext* ctx) {
auto msg = static_cast<ClaimReference*>(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 claim_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_claim_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;
}
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 ClaimReference::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.ClaimReference)
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)) {
// bytes claim_hash = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_claim_hash()));
} 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.ClaimReference)
return true;
failure:
// @@protoc_insertion_point(parse_failure:pb.ClaimReference)
return false;
#undef DO_
}
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void ClaimReference::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:pb.ClaimReference)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// bytes claim_hash = 1;
if (this->claim_hash().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1, this->claim_hash(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:pb.ClaimReference)
}
::google::protobuf::uint8* ClaimReference::InternalSerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.ClaimReference)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// bytes claim_hash = 1;
if (this->claim_hash().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1, this->claim_hash(), 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.ClaimReference)
return target;
}
size_t ClaimReference::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.ClaimReference)
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 claim_hash = 1;
if (this->claim_hash().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->claim_hash());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void ClaimReference::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:pb.ClaimReference)
GOOGLE_DCHECK_NE(&from, this);
const ClaimReference* source =
::google::protobuf::DynamicCastToGenerated<ClaimReference>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.ClaimReference)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.ClaimReference)
MergeFrom(*source);
}
}
void ClaimReference::MergeFrom(const ClaimReference& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.ClaimReference)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.claim_hash().size() > 0) {
claim_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.claim_hash_);
}
}
void ClaimReference::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:pb.ClaimReference)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ClaimReference::CopyFrom(const ClaimReference& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.ClaimReference)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ClaimReference::IsInitialized() const {
return true;
}
void ClaimReference::Swap(ClaimReference* other) {
if (other == this) return;
InternalSwap(other);
}
void ClaimReference::InternalSwap(ClaimReference* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
claim_hash_.Swap(&other->claim_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
::google::protobuf::Metadata ClaimReference::GetMetadata() const {
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_claim_2eproto);
return ::file_level_metadata_claim_2eproto[kIndexInFileMessages];
}
// ===================================================================
void ClaimList::InitAsDefaultInstance() {
}
class ClaimList::HasBitSetters {
public:
};
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ClaimList::kListTypeFieldNumber;
const int ClaimList::kClaimReferencesFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ClaimList::ClaimList()
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:pb.ClaimList)
}
ClaimList::ClaimList(const ClaimList& from)
: ::google::protobuf::Message(),
_internal_metadata_(nullptr),
claim_references_(from.claim_references_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
list_type_ = from.list_type_;
// @@protoc_insertion_point(copy_constructor:pb.ClaimList)
}
void ClaimList::SharedCtor() {
::google::protobuf::internal::InitSCC(
&scc_info_ClaimList_claim_2eproto.base);
list_type_ = 0;
}
ClaimList::~ClaimList() {
// @@protoc_insertion_point(destructor:pb.ClaimList)
SharedDtor();
}
void ClaimList::SharedDtor() {
}
void ClaimList::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const ClaimList& ClaimList::default_instance() {
::google::protobuf::internal::InitSCC(&::scc_info_ClaimList_claim_2eproto.base);
return *internal_default_instance();
}
void ClaimList::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.ClaimList)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
claim_references_.Clear();
list_type_ = 0;
_internal_metadata_.Clear();
}
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* ClaimList::_InternalParse(const char* begin, const char* end, void* object,
::google::protobuf::internal::ParseContext* ctx) {
auto msg = static_cast<ClaimList*>(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.ClaimList.ListType list_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_list_type(static_cast<::pb::ClaimList_ListType>(val));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
// repeated .pb.ClaimReference claim_references = 2;
case 2: {
if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
do {
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
parser_till_end = ::pb::ClaimReference::_InternalParse;
object = msg->add_claim_references();
if (size > end - ptr) goto len_delim_till_end;
ptr += size;
GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
{parser_till_end, object}, ptr - size, ptr));
if (ptr >= end) break;
} while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1));
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 ClaimList::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.ClaimList)
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.ClaimList.ListType list_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_list_type(static_cast< ::pb::ClaimList_ListType >(value));
} else {
goto handle_unusual;
}
break;
}
// repeated .pb.ClaimReference claim_references = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_claim_references()));
} 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.ClaimList)
return true;
failure:
// @@protoc_insertion_point(parse_failure:pb.ClaimList)
return false;
#undef DO_
}
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void ClaimList::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:pb.ClaimList)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// .pb.ClaimList.ListType list_type = 1;
if (this->list_type() != 0) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->list_type(), output);
}
// repeated .pb.ClaimReference claim_references = 2;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->claim_references_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2,
this->claim_references(static_cast<int>(i)),
output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:pb.ClaimList)
}
::google::protobuf::uint8* ClaimList::InternalSerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.ClaimList)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// .pb.ClaimList.ListType list_type = 1;
if (this->list_type() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->list_type(), target);
}
// repeated .pb.ClaimReference claim_references = 2;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->claim_references_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
2, this->claim_references(static_cast<int>(i)), 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.ClaimList)
return target;
}
size_t ClaimList::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.ClaimList)
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 .pb.ClaimReference claim_references = 2;
{
unsigned int count = static_cast<unsigned int>(this->claim_references_size());
total_size += 1UL * count;
for (unsigned int i = 0; i < count; i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(
this->claim_references(static_cast<int>(i)));
}
}
// .pb.ClaimList.ListType list_type = 1;
if (this->list_type() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->list_type());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void ClaimList::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:pb.ClaimList)
GOOGLE_DCHECK_NE(&from, this);
const ClaimList* source =
::google::protobuf::DynamicCastToGenerated<ClaimList>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.ClaimList)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.ClaimList)
MergeFrom(*source);
}
}
void ClaimList::MergeFrom(const ClaimList& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.ClaimList)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
claim_references_.MergeFrom(from.claim_references_);
if (from.list_type() != 0) {
set_list_type(from.list_type());
}
}
void ClaimList::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:pb.ClaimList)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ClaimList::CopyFrom(const ClaimList& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.ClaimList)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ClaimList::IsInitialized() const {
return true;
}
void ClaimList::Swap(ClaimList* other) {
if (other == this) return;
InternalSwap(other);
}
void ClaimList::InternalSwap(ClaimList* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
CastToBase(&claim_references_)->InternalSwap(CastToBase(&other->claim_references_));
swap(list_type_, other->list_type_);
}
::google::protobuf::Metadata ClaimList::GetMetadata() const {
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_claim_2eproto);
return ::file_level_metadata_claim_2eproto[kIndexInFileMessages];
}
// ===================================================================
void Source::InitAsDefaultInstance() {
}
class Source::HasBitSetters {
public:
};
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Source::kHashFieldNumber;
const int Source::kNameFieldNumber;
const int Source::kSizeFieldNumber;
const int Source::kMediaTypeFieldNumber;
const int Source::kUrlFieldNumber;
const int Source::kSdHashFieldNumber;
const int Source::kBtInfohashFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Source::Source()
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:pb.Source)
}
Source::Source(const Source& from)
: ::google::protobuf::Message(),
_internal_metadata_(nullptr) {
_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_);
}
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.name().size() > 0) {
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
}
media_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.media_type().size() > 0) {
media_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.media_type_);
}
url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.url().size() > 0) {
url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_);
}
sd_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.sd_hash().size() > 0) {
sd_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sd_hash_);
}
bt_infohash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.bt_infohash().size() > 0) {
bt_infohash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bt_infohash_);
}
size_ = from.size_;
// @@protoc_insertion_point(copy_constructor:pb.Source)
}
void Source::SharedCtor() {
::google::protobuf::internal::InitSCC(
&scc_info_Source_claim_2eproto.base);
hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
media_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
sd_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
bt_infohash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
size_ = PROTOBUF_ULONGLONG(0);
}
Source::~Source() {
// @@protoc_insertion_point(destructor:pb.Source)
SharedDtor();
}
void Source::SharedDtor() {
hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
media_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
sd_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
bt_infohash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Source::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Source& Source::default_instance() {
::google::protobuf::internal::InitSCC(&::scc_info_Source_claim_2eproto.base);
return *internal_default_instance();
}
void Source::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Source)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
media_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
sd_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
bt_infohash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
size_ = PROTOBUF_ULONGLONG(0);
_internal_metadata_.Clear();
}
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* Source::_InternalParse(const char* begin, const char* end, void* object,
::google::protobuf::internal::ParseContext* ctx) {
auto msg = static_cast<Source*>(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 name = 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.Source.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 = 3;
case 3: {
if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
msg->set_size(::google::protobuf::internal::ReadVarint(&ptr));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
// string media_type = 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.Source.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 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.Source.url");
object = msg->mutable_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;
}
// bytes sd_hash = 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);
object = msg->mutable_sd_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;
}
// bytes bt_infohash = 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);
object = msg->mutable_bt_infohash();
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;
}
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 Source::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.Source)
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)) {
// 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 name = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 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.Source.name"));
} else {
goto handle_unusual;
}
break;
}
// uint64 size = 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, &size_)));
} else {
goto handle_unusual;
}
break;
}
// string media_type = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 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.Source.media_type"));
} else {
goto handle_unusual;
}
break;
}
// string url = 5;
case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_url()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->url().data(), static_cast<int>(this->url().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Source.url"));
} else {
goto handle_unusual;
}
break;
}
// bytes sd_hash = 6;
case 6: {
if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_sd_hash()));
} else {
goto handle_unusual;
}
break;
}
// bytes bt_infohash = 7;
case 7: {
if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_bt_infohash()));
} 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.Source)
return true;
failure:
// @@protoc_insertion_point(parse_failure:pb.Source)
return false;
#undef DO_
}
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void Source::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:pb.Source)
::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 name = 2;
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.Source.name");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->name(), output);
}
// uint64 size = 3;
if (this->size() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->size(), output);
}
// string media_type = 4;
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.Source.media_type");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->media_type(), output);
}
// string url = 5;
if (this->url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->url().data(), static_cast<int>(this->url().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Source.url");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5, this->url(), output);
}
// bytes sd_hash = 6;
if (this->sd_hash().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6, this->sd_hash(), output);
}
// bytes bt_infohash = 7;
if (this->bt_infohash().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7, this->bt_infohash(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:pb.Source)
}
::google::protobuf::uint8* Source::InternalSerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.Source)
::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 name = 2;
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.Source.name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->name(), target);
}
// uint64 size = 3;
if (this->size() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->size(), target);
}
// string media_type = 4;
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.Source.media_type");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->media_type(), target);
}
// string url = 5;
if (this->url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->url().data(), static_cast<int>(this->url().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Source.url");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5, this->url(), target);
}
// bytes sd_hash = 6;
if (this->sd_hash().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6, this->sd_hash(), target);
}
// bytes bt_infohash = 7;
if (this->bt_infohash().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
7, this->bt_infohash(), 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.Source)
return target;
}
size_t Source::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.Source)
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 hash = 1;
if (this->hash().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->hash());
}
// string name = 2;
if (this->name().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->name());
}
// string media_type = 4;
if (this->media_type().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->media_type());
}
// string url = 5;
if (this->url().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->url());
}
// bytes sd_hash = 6;
if (this->sd_hash().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->sd_hash());
}
// bytes bt_infohash = 7;
if (this->bt_infohash().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->bt_infohash());
}
// uint64 size = 3;
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 Source::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:pb.Source)
GOOGLE_DCHECK_NE(&from, this);
const Source* source =
::google::protobuf::DynamicCastToGenerated<Source>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Source)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Source)
MergeFrom(*source);
}
}
void Source::MergeFrom(const Source& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Source)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.hash().size() > 0) {
hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_);
}
if (from.name().size() > 0) {
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
}
if (from.media_type().size() > 0) {
media_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.media_type_);
}
if (from.url().size() > 0) {
url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_);
}
if (from.sd_hash().size() > 0) {
sd_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sd_hash_);
}
if (from.bt_infohash().size() > 0) {
bt_infohash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bt_infohash_);
}
if (from.size() != 0) {
set_size(from.size());
}
}
void Source::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:pb.Source)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Source::CopyFrom(const Source& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Source)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Source::IsInitialized() const {
return true;
}
void Source::Swap(Source* other) {
if (other == this) return;
InternalSwap(other);
}
void Source::InternalSwap(Source* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
hash_.Swap(&other->hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
media_type_.Swap(&other->media_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
url_.Swap(&other->url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
sd_hash_.Swap(&other->sd_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
bt_infohash_.Swap(&other->bt_infohash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
swap(size_, other->size_);
}
::google::protobuf::Metadata Source::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 Image::InitAsDefaultInstance() {
}
class Image::HasBitSetters {
public:
};
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Image::kWidthFieldNumber;
const int Image::kHeightFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Image::Image()
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:pb.Image)
}
Image::Image(const Image& 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.Image)
}
void Image::SharedCtor() {
::memset(&width_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&height_) -
reinterpret_cast<char*>(&width_)) + sizeof(height_));
}
Image::~Image() {
// @@protoc_insertion_point(destructor:pb.Image)
SharedDtor();
}
void Image::SharedDtor() {
}
void Image::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Image& Image::default_instance() {
::google::protobuf::internal::InitSCC(&::scc_info_Image_claim_2eproto.base);
return *internal_default_instance();
}
void Image::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Image)
::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* Image::_InternalParse(const char* begin, const char* end, void* object,
::google::protobuf::internal::ParseContext* ctx) {
auto msg = static_cast<Image*>(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 Image::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.Image)
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.Image)
return true;
failure:
// @@protoc_insertion_point(parse_failure:pb.Image)
return false;
#undef DO_
}
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void Image::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:pb.Image)
::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.Image)
}
::google::protobuf::uint8* Image::InternalSerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.Image)
::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.Image)
return target;
}
size_t Image::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.Image)
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 Image::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:pb.Image)
GOOGLE_DCHECK_NE(&from, this);
const Image* source =
::google::protobuf::DynamicCastToGenerated<Image>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Image)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Image)
MergeFrom(*source);
}
}
void Image::MergeFrom(const Image& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Image)
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 Image::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:pb.Image)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Image::CopyFrom(const Image& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Image)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Image::IsInitialized() const {
return true;
}
void Image::Swap(Image* other) {
if (other == this) return;
InternalSwap(other);
}
void Image::InternalSwap(Image* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
swap(width_, other->width_);
swap(height_, other->height_);
}
::google::protobuf::Metadata Image::GetMetadata() const {
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_claim_2eproto);
return ::file_level_metadata_claim_2eproto[kIndexInFileMessages];
}
// ===================================================================
void Video::InitAsDefaultInstance() {
::pb::_Video_default_instance_._instance.get_mutable()->audio_ = const_cast< ::pb::Audio*>(
::pb::Audio::internal_default_instance());
}
class Video::HasBitSetters {
public:
static const ::pb::Audio& audio(const Video* msg);
};
const ::pb::Audio&
Video::HasBitSetters::audio(const Video* msg) {
return *msg->audio_;
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Video::kWidthFieldNumber;
const int Video::kHeightFieldNumber;
const int Video::kDurationFieldNumber;
const int Video::kAudioFieldNumber;
#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_);
if (from.has_audio()) {
audio_ = new ::pb::Audio(*from.audio_);
} else {
audio_ = nullptr;
}
::memcpy(&width_, &from.width_,
static_cast<size_t>(reinterpret_cast<char*>(&duration_) -
reinterpret_cast<char*>(&width_)) + sizeof(duration_));
// @@protoc_insertion_point(copy_constructor:pb.Video)
}
void Video::SharedCtor() {
::google::protobuf::internal::InitSCC(
&scc_info_Video_claim_2eproto.base);
::memset(&audio_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&duration_) -
reinterpret_cast<char*>(&audio_)) + sizeof(duration_));
}
Video::~Video() {
// @@protoc_insertion_point(destructor:pb.Video)
SharedDtor();
}
void Video::SharedDtor() {
if (this != internal_default_instance()) delete audio_;
}
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;
if (GetArenaNoVirtual() == nullptr && audio_ != nullptr) {
delete audio_;
}
audio_ = nullptr;
::memset(&width_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&duration_) -
reinterpret_cast<char*>(&width_)) + sizeof(duration_));
_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;
}
// uint32 duration = 3;
case 3: {
if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
msg->set_duration(::google::protobuf::internal::ReadVarint(&ptr));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
// .pb.Audio audio = 15;
case 15: {
if (static_cast<::google::protobuf::uint8>(tag) != 122) goto handle_unusual;
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
parser_till_end = ::pb::Audio::_InternalParse;
object = msg->mutable_audio();
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 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;
}
// uint32 duration = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &duration_)));
} else {
goto handle_unusual;
}
break;
}
// .pb.Audio audio = 15;
case 15: {
if (static_cast< ::google::protobuf::uint8>(tag) == (122 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_audio()));
} 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);
}
// uint32 duration = 3;
if (this->duration() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->duration(), output);
}
// .pb.Audio audio = 15;
if (this->has_audio()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15, HasBitSetters::audio(this), 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);
}
// uint32 duration = 3;
if (this->duration() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->duration(), target);
}
// .pb.Audio audio = 15;
if (this->has_audio()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
15, HasBitSetters::audio(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.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;
// .pb.Audio audio = 15;
if (this->has_audio()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*audio_);
}
// 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());
}
// uint32 duration = 3;
if (this->duration() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->duration());
}
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.has_audio()) {
mutable_audio()->::pb::Audio::MergeFrom(from.audio());
}
if (from.width() != 0) {
set_width(from.width());
}
if (from.height() != 0) {
set_height(from.height());
}
if (from.duration() != 0) {
set_duration(from.duration());
}
}
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(audio_, other->audio_);
swap(width_, other->width_);
swap(height_, other->height_);
swap(duration_, other->duration_);
}
::google::protobuf::Metadata Video::GetMetadata() const {
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_claim_2eproto);
return ::file_level_metadata_claim_2eproto[kIndexInFileMessages];
}
// ===================================================================
void Audio::InitAsDefaultInstance() {
}
class Audio::HasBitSetters {
public:
};
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Audio::kDurationFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Audio::Audio()
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:pb.Audio)
}
Audio::Audio(const Audio& from)
: ::google::protobuf::Message(),
_internal_metadata_(nullptr) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
duration_ = from.duration_;
// @@protoc_insertion_point(copy_constructor:pb.Audio)
}
void Audio::SharedCtor() {
duration_ = 0u;
}
Audio::~Audio() {
// @@protoc_insertion_point(destructor:pb.Audio)
SharedDtor();
}
void Audio::SharedDtor() {
}
void Audio::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Audio& Audio::default_instance() {
::google::protobuf::internal::InitSCC(&::scc_info_Audio_claim_2eproto.base);
return *internal_default_instance();
}
void Audio::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Audio)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
duration_ = 0u;
_internal_metadata_.Clear();
}
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* Audio::_InternalParse(const char* begin, const char* end, void* object,
::google::protobuf::internal::ParseContext* ctx) {
auto msg = static_cast<Audio*>(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 duration = 1;
case 1: {
if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
msg->set_duration(::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 Audio::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.Audio)
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 duration = 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, &duration_)));
} 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.Audio)
return true;
failure:
// @@protoc_insertion_point(parse_failure:pb.Audio)
return false;
#undef DO_
}
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void Audio::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:pb.Audio)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// uint32 duration = 1;
if (this->duration() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->duration(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:pb.Audio)
}
::google::protobuf::uint8* Audio::InternalSerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.Audio)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// uint32 duration = 1;
if (this->duration() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->duration(), 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.Audio)
return target;
}
size_t Audio::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.Audio)
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 duration = 1;
if (this->duration() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->duration());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void Audio::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:pb.Audio)
GOOGLE_DCHECK_NE(&from, this);
const Audio* source =
::google::protobuf::DynamicCastToGenerated<Audio>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Audio)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Audio)
MergeFrom(*source);
}
}
void Audio::MergeFrom(const Audio& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Audio)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.duration() != 0) {
set_duration(from.duration());
}
}
void Audio::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:pb.Audio)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Audio::CopyFrom(const Audio& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Audio)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Audio::IsInitialized() const {
return true;
}
void Audio::Swap(Audio* other) {
if (other == this) return;
InternalSwap(other);
}
void Audio::InternalSwap(Audio* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
swap(duration_, other->duration_);
}
::google::protobuf::Metadata Audio::GetMetadata() const {
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_claim_2eproto);
return ::file_level_metadata_claim_2eproto[kIndexInFileMessages];
}
// ===================================================================
void Software::InitAsDefaultInstance() {
}
class Software::HasBitSetters {
public:
};
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Software::kOsFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Software::Software()
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:pb.Software)
}
Software::Software(const Software& from)
: ::google::protobuf::Message(),
_internal_metadata_(nullptr) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
os_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.os().size() > 0) {
os_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.os_);
}
// @@protoc_insertion_point(copy_constructor:pb.Software)
}
void Software::SharedCtor() {
::google::protobuf::internal::InitSCC(
&scc_info_Software_claim_2eproto.base);
os_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
Software::~Software() {
// @@protoc_insertion_point(destructor:pb.Software)
SharedDtor();
}
void Software::SharedDtor() {
os_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Software::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Software& Software::default_instance() {
::google::protobuf::internal::InitSCC(&::scc_info_Software_claim_2eproto.base);
return *internal_default_instance();
}
void Software::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Software)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
os_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
_internal_metadata_.Clear();
}
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* Software::_InternalParse(const char* begin, const char* end, void* object,
::google::protobuf::internal::ParseContext* ctx) {
auto msg = static_cast<Software*>(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 os = 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.Software.os");
object = msg->mutable_os();
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 Software::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.Software)
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 os = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_os()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->os().data(), static_cast<int>(this->os().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Software.os"));
} 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.Software)
return true;
failure:
// @@protoc_insertion_point(parse_failure:pb.Software)
return false;
#undef DO_
}
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void Software::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:pb.Software)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// string os = 1;
if (this->os().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->os().data(), static_cast<int>(this->os().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Software.os");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->os(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:pb.Software)
}
::google::protobuf::uint8* Software::InternalSerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.Software)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// string os = 1;
if (this->os().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->os().data(), static_cast<int>(this->os().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Software.os");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->os(), 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.Software)
return target;
}
size_t Software::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.Software)
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 os = 1;
if (this->os().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->os());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void Software::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:pb.Software)
GOOGLE_DCHECK_NE(&from, this);
const Software* source =
::google::protobuf::DynamicCastToGenerated<Software>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Software)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Software)
MergeFrom(*source);
}
}
void Software::MergeFrom(const Software& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Software)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.os().size() > 0) {
os_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.os_);
}
}
void Software::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:pb.Software)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Software::CopyFrom(const Software& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Software)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Software::IsInitialized() const {
return true;
}
void Software::Swap(Software* other) {
if (other == this) return;
InternalSwap(other);
}
void Software::InternalSwap(Software* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
os_.Swap(&other->os_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
::google::protobuf::Metadata Software::GetMetadata() const {
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_claim_2eproto);
return ::file_level_metadata_claim_2eproto[kIndexInFileMessages];
}
// ===================================================================
void Language::InitAsDefaultInstance() {
}
class Language::HasBitSetters {
public:
};
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Language::kLanguageFieldNumber;
const int Language::kScriptFieldNumber;
const int Language::kRegionFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Language::Language()
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:pb.Language)
}
Language::Language(const Language& from)
: ::google::protobuf::Message(),
_internal_metadata_(nullptr) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&language_, &from.language_,
static_cast<size_t>(reinterpret_cast<char*>(&region_) -
reinterpret_cast<char*>(&language_)) + sizeof(region_));
// @@protoc_insertion_point(copy_constructor:pb.Language)
}
void Language::SharedCtor() {
::memset(&language_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&region_) -
reinterpret_cast<char*>(&language_)) + sizeof(region_));
}
Language::~Language() {
// @@protoc_insertion_point(destructor:pb.Language)
SharedDtor();
}
void Language::SharedDtor() {
}
void Language::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Language& Language::default_instance() {
::google::protobuf::internal::InitSCC(&::scc_info_Language_claim_2eproto.base);
return *internal_default_instance();
}
void Language::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Language)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&language_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&region_) -
reinterpret_cast<char*>(&language_)) + sizeof(region_));
_internal_metadata_.Clear();
}
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* Language::_InternalParse(const char* begin, const char* end, void* object,
::google::protobuf::internal::ParseContext* ctx) {
auto msg = static_cast<Language*>(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.Language.Language language = 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_language(static_cast<::pb::Language_Language>(val));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
// .pb.Language.Script script = 2;
case 2: {
if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
msg->set_script(static_cast<::pb::Language_Script>(val));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
// .pb.Location.Country region = 3;
case 3: {
if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
msg->set_region(static_cast<::pb::Location_Country>(val));
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 Language::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.Language)
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.Language.Language language = 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_language(static_cast< ::pb::Language_Language >(value));
} else {
goto handle_unusual;
}
break;
}
// .pb.Language.Script script = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
int value = 0;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
set_script(static_cast< ::pb::Language_Script >(value));
} else {
goto handle_unusual;
}
break;
}
// .pb.Location.Country region = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
int value = 0;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
set_region(static_cast< ::pb::Location_Country >(value));
} 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.Language)
return true;
failure:
// @@protoc_insertion_point(parse_failure:pb.Language)
return false;
#undef DO_
}
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void Language::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:pb.Language)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// .pb.Language.Language language = 1;
if (this->language() != 0) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->language(), output);
}
// .pb.Language.Script script = 2;
if (this->script() != 0) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
2, this->script(), output);
}
// .pb.Location.Country region = 3;
if (this->region() != 0) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
3, this->region(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:pb.Language)
}
::google::protobuf::uint8* Language::InternalSerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.Language)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// .pb.Language.Language language = 1;
if (this->language() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->language(), target);
}
// .pb.Language.Script script = 2;
if (this->script() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2, this->script(), target);
}
// .pb.Location.Country region = 3;
if (this->region() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3, this->region(), 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.Language)
return target;
}
size_t Language::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.Language)
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.Language.Language language = 1;
if (this->language() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->language());
}
// .pb.Language.Script script = 2;
if (this->script() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->script());
}
// .pb.Location.Country region = 3;
if (this->region() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->region());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void Language::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:pb.Language)
GOOGLE_DCHECK_NE(&from, this);
const Language* source =
::google::protobuf::DynamicCastToGenerated<Language>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Language)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Language)
MergeFrom(*source);
}
}
void Language::MergeFrom(const Language& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Language)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.language() != 0) {
set_language(from.language());
}
if (from.script() != 0) {
set_script(from.script());
}
if (from.region() != 0) {
set_region(from.region());
}
}
void Language::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:pb.Language)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Language::CopyFrom(const Language& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Language)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Language::IsInitialized() const {
return true;
}
void Language::Swap(Language* other) {
if (other == this) return;
InternalSwap(other);
}
void Language::InternalSwap(Language* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
swap(language_, other->language_);
swap(script_, other->script_);
swap(region_, other->region_);
}
::google::protobuf::Metadata Language::GetMetadata() const {
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_claim_2eproto);
return ::file_level_metadata_claim_2eproto[kIndexInFileMessages];
}
// ===================================================================
void Location::InitAsDefaultInstance() {
}
class Location::HasBitSetters {
public:
};
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Location::kCountryFieldNumber;
const int Location::kStateFieldNumber;
const int Location::kCityFieldNumber;
const int Location::kCodeFieldNumber;
const int Location::kLatitudeFieldNumber;
const int Location::kLongitudeFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Location::Location()
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:pb.Location)
}
Location::Location(const Location& from)
: ::google::protobuf::Message(),
_internal_metadata_(nullptr) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
state_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.state().size() > 0) {
state_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_);
}
city_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.city().size() > 0) {
city_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.city_);
}
code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.code().size() > 0) {
code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_);
}
::memcpy(&country_, &from.country_,
static_cast<size_t>(reinterpret_cast<char*>(&longitude_) -
reinterpret_cast<char*>(&country_)) + sizeof(longitude_));
// @@protoc_insertion_point(copy_constructor:pb.Location)
}
void Location::SharedCtor() {
::google::protobuf::internal::InitSCC(
&scc_info_Location_claim_2eproto.base);
state_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
city_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&country_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&longitude_) -
reinterpret_cast<char*>(&country_)) + sizeof(longitude_));
}
Location::~Location() {
// @@protoc_insertion_point(destructor:pb.Location)
SharedDtor();
}
void Location::SharedDtor() {
state_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
city_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Location::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Location& Location::default_instance() {
::google::protobuf::internal::InitSCC(&::scc_info_Location_claim_2eproto.base);
return *internal_default_instance();
}
void Location::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Location)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
state_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
city_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&country_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&longitude_) -
reinterpret_cast<char*>(&country_)) + sizeof(longitude_));
_internal_metadata_.Clear();
}
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const char* Location::_InternalParse(const char* begin, const char* end, void* object,
::google::protobuf::internal::ParseContext* ctx) {
auto msg = static_cast<Location*>(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.Location.Country country = 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_country(static_cast<::pb::Location_Country>(val));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
// string state = 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.Location.state");
object = msg->mutable_state();
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 city = 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.Location.city");
object = msg->mutable_city();
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 code = 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.Location.code");
object = msg->mutable_code();
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;
}
// sint32 latitude = 5;
case 5: {
if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual;
msg->set_latitude(::google::protobuf::internal::ReadVarintZigZag32(&ptr));
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
break;
}
// sint32 longitude = 6;
case 6: {
if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual;
msg->set_longitude(::google::protobuf::internal::ReadVarintZigZag32(&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 Location::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.Location)
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.Location.Country country = 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_country(static_cast< ::pb::Location_Country >(value));
} else {
goto handle_unusual;
}
break;
}
// string state = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_state()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->state().data(), static_cast<int>(this->state().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Location.state"));
} else {
goto handle_unusual;
}
break;
}
// string city = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_city()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->city().data(), static_cast<int>(this->city().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Location.city"));
} else {
goto handle_unusual;
}
break;
}
// string code = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_code()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->code().data(), static_cast<int>(this->code().length()),
::google::protobuf::internal::WireFormatLite::PARSE,
"pb.Location.code"));
} else {
goto handle_unusual;
}
break;
}
// sint32 latitude = 5;
case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
input, &latitude_)));
} else {
goto handle_unusual;
}
break;
}
// sint32 longitude = 6;
case 6: {
if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
input, &longitude_)));
} 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.Location)
return true;
failure:
// @@protoc_insertion_point(parse_failure:pb.Location)
return false;
#undef DO_
}
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void Location::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:pb.Location)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// .pb.Location.Country country = 1;
if (this->country() != 0) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->country(), output);
}
// string state = 2;
if (this->state().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->state().data(), static_cast<int>(this->state().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Location.state");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->state(), output);
}
// string city = 3;
if (this->city().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->city().data(), static_cast<int>(this->city().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Location.city");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->city(), output);
}
// string code = 4;
if (this->code().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->code().data(), static_cast<int>(this->code().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Location.code");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->code(), output);
}
// sint32 latitude = 5;
if (this->latitude() != 0) {
::google::protobuf::internal::WireFormatLite::WriteSInt32(5, this->latitude(), output);
}
// sint32 longitude = 6;
if (this->longitude() != 0) {
::google::protobuf::internal::WireFormatLite::WriteSInt32(6, this->longitude(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:pb.Location)
}
::google::protobuf::uint8* Location::InternalSerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.Location)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// .pb.Location.Country country = 1;
if (this->country() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->country(), target);
}
// string state = 2;
if (this->state().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->state().data(), static_cast<int>(this->state().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Location.state");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->state(), target);
}
// string city = 3;
if (this->city().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->city().data(), static_cast<int>(this->city().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Location.city");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->city(), target);
}
// string code = 4;
if (this->code().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->code().data(), static_cast<int>(this->code().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"pb.Location.code");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->code(), target);
}
// sint32 latitude = 5;
if (this->latitude() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(5, this->latitude(), target);
}
// sint32 longitude = 6;
if (this->longitude() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(6, this->longitude(), 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.Location)
return target;
}
size_t Location::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.Location)
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 state = 2;
if (this->state().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->state());
}
// string city = 3;
if (this->city().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->city());
}
// string code = 4;
if (this->code().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->code());
}
// .pb.Location.Country country = 1;
if (this->country() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->country());
}
// sint32 latitude = 5;
if (this->latitude() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::SInt32Size(
this->latitude());
}
// sint32 longitude = 6;
if (this->longitude() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::SInt32Size(
this->longitude());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void Location::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:pb.Location)
GOOGLE_DCHECK_NE(&from, this);
const Location* source =
::google::protobuf::DynamicCastToGenerated<Location>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Location)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Location)
MergeFrom(*source);
}
}
void Location::MergeFrom(const Location& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Location)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.state().size() > 0) {
state_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_);
}
if (from.city().size() > 0) {
city_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.city_);
}
if (from.code().size() > 0) {
code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_);
}
if (from.country() != 0) {
set_country(from.country());
}
if (from.latitude() != 0) {
set_latitude(from.latitude());
}
if (from.longitude() != 0) {
set_longitude(from.longitude());
}
}
void Location::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:pb.Location)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Location::CopyFrom(const Location& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Location)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Location::IsInitialized() const {
return true;
}
void Location::Swap(Location* other) {
if (other == this) return;
InternalSwap(other);
}
void Location::InternalSwap(Location* other) {
using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_);
state_.Swap(&other->state_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
city_.Swap(&other->city_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
code_.Swap(&other->code_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
swap(country_, other->country_);
swap(latitude_, other->latitude_);
swap(longitude_, other->longitude_);
}
::google::protobuf::Metadata Location::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::Stream* Arena::CreateMaybeMessage< ::pb::Stream >(Arena* arena) {
return Arena::CreateInternal< ::pb::Stream >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::Channel* Arena::CreateMaybeMessage< ::pb::Channel >(Arena* arena) {
return Arena::CreateInternal< ::pb::Channel >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::ClaimReference* Arena::CreateMaybeMessage< ::pb::ClaimReference >(Arena* arena) {
return Arena::CreateInternal< ::pb::ClaimReference >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::ClaimList* Arena::CreateMaybeMessage< ::pb::ClaimList >(Arena* arena) {
return Arena::CreateInternal< ::pb::ClaimList >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::Source* Arena::CreateMaybeMessage< ::pb::Source >(Arena* arena) {
return Arena::CreateInternal< ::pb::Source >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::Fee* Arena::CreateMaybeMessage< ::pb::Fee >(Arena* arena) {
return Arena::CreateInternal< ::pb::Fee >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::Image* Arena::CreateMaybeMessage< ::pb::Image >(Arena* arena) {
return Arena::CreateInternal< ::pb::Image >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::Video* Arena::CreateMaybeMessage< ::pb::Video >(Arena* arena) {
return Arena::CreateInternal< ::pb::Video >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::Audio* Arena::CreateMaybeMessage< ::pb::Audio >(Arena* arena) {
return Arena::CreateInternal< ::pb::Audio >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::Software* Arena::CreateMaybeMessage< ::pb::Software >(Arena* arena) {
return Arena::CreateInternal< ::pb::Software >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::Language* Arena::CreateMaybeMessage< ::pb::Language >(Arena* arena) {
return Arena::CreateInternal< ::pb::Language >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::Location* Arena::CreateMaybeMessage< ::pb::Location >(Arena* arena) {
return Arena::CreateInternal< ::pb::Location >(arena);
}
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>