2019-02-27 18:03:57 +01:00
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
// source: claim.proto
|
|
|
|
|
|
|
|
#include "claim.pb.h"
|
|
|
|
|
|
|
|
#include <algorithm>
|
|
|
|
|
|
|
|
#include <google/protobuf/io/coded_stream.h>
|
2019-12-28 17:35:59 +01:00
|
|
|
#include <google/protobuf/extension_set.h>
|
2020-10-19 05:24:47 +02:00
|
|
|
#include <google/protobuf/wire_format_lite.h>
|
2019-02-27 18:03:57 +01:00
|
|
|
#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)
|
2019-12-28 17:35:59 +01:00
|
|
|
#include <google/protobuf/port_def.inc>
|
2021-09-15 04:57:14 +02:00
|
|
|
|
|
|
|
PROTOBUF_PRAGMA_INIT_SEG
|
2019-02-27 18:03:57 +01:00
|
|
|
namespace pb {
|
2021-09-15 04:57:14 +02:00
|
|
|
constexpr Claim::Claim(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
|
|
|
: tags_()
|
|
|
|
, languages_()
|
|
|
|
, locations_()
|
|
|
|
, title_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, description_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, thumbnail_(nullptr)
|
|
|
|
, _oneof_case_{}{}
|
|
|
|
struct ClaimDefaultTypeInternal {
|
|
|
|
constexpr ClaimDefaultTypeInternal()
|
|
|
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
|
|
|
~ClaimDefaultTypeInternal() {}
|
|
|
|
union {
|
|
|
|
Claim _instance;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ClaimDefaultTypeInternal _Claim_default_instance_;
|
|
|
|
constexpr Stream::Stream(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
|
|
|
: author_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, license_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, license_url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, source_(nullptr)
|
|
|
|
, fee_(nullptr)
|
|
|
|
, release_time_(PROTOBUF_LONGLONG(0))
|
|
|
|
, _oneof_case_{}{}
|
|
|
|
struct StreamDefaultTypeInternal {
|
|
|
|
constexpr StreamDefaultTypeInternal()
|
|
|
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
|
|
|
~StreamDefaultTypeInternal() {}
|
|
|
|
union {
|
|
|
|
Stream _instance;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StreamDefaultTypeInternal _Stream_default_instance_;
|
|
|
|
constexpr Channel::Channel(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
|
|
|
: public_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, email_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, website_url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, cover_(nullptr)
|
|
|
|
, featured_(nullptr){}
|
|
|
|
struct ChannelDefaultTypeInternal {
|
|
|
|
constexpr ChannelDefaultTypeInternal()
|
|
|
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
|
|
|
~ChannelDefaultTypeInternal() {}
|
|
|
|
union {
|
|
|
|
Channel _instance;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ChannelDefaultTypeInternal _Channel_default_instance_;
|
|
|
|
constexpr ClaimReference::ClaimReference(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
|
|
|
: claim_hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
|
|
|
|
struct ClaimReferenceDefaultTypeInternal {
|
|
|
|
constexpr ClaimReferenceDefaultTypeInternal()
|
|
|
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
|
|
|
~ClaimReferenceDefaultTypeInternal() {}
|
|
|
|
union {
|
|
|
|
ClaimReference _instance;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ClaimReferenceDefaultTypeInternal _ClaimReference_default_instance_;
|
|
|
|
constexpr ClaimList::ClaimList(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
|
|
|
: claim_references_()
|
|
|
|
, list_type_(0)
|
|
|
|
{}
|
|
|
|
struct ClaimListDefaultTypeInternal {
|
|
|
|
constexpr ClaimListDefaultTypeInternal()
|
|
|
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
|
|
|
~ClaimListDefaultTypeInternal() {}
|
|
|
|
union {
|
|
|
|
ClaimList _instance;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ClaimListDefaultTypeInternal _ClaimList_default_instance_;
|
|
|
|
constexpr Source::Source(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
|
|
|
: hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, media_type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, sd_hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, bt_infohash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, size_(PROTOBUF_ULONGLONG(0)){}
|
|
|
|
struct SourceDefaultTypeInternal {
|
|
|
|
constexpr SourceDefaultTypeInternal()
|
|
|
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
|
|
|
~SourceDefaultTypeInternal() {}
|
|
|
|
union {
|
|
|
|
Source _instance;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SourceDefaultTypeInternal _Source_default_instance_;
|
|
|
|
constexpr Fee::Fee(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
|
|
|
: address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, amount_(PROTOBUF_ULONGLONG(0))
|
|
|
|
, currency_(0)
|
|
|
|
{}
|
|
|
|
struct FeeDefaultTypeInternal {
|
|
|
|
constexpr FeeDefaultTypeInternal()
|
|
|
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
|
|
|
~FeeDefaultTypeInternal() {}
|
|
|
|
union {
|
|
|
|
Fee _instance;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FeeDefaultTypeInternal _Fee_default_instance_;
|
|
|
|
constexpr Image::Image(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
|
|
|
: width_(0u)
|
|
|
|
, height_(0u){}
|
|
|
|
struct ImageDefaultTypeInternal {
|
|
|
|
constexpr ImageDefaultTypeInternal()
|
|
|
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
|
|
|
~ImageDefaultTypeInternal() {}
|
|
|
|
union {
|
|
|
|
Image _instance;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ImageDefaultTypeInternal _Image_default_instance_;
|
|
|
|
constexpr Video::Video(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
|
|
|
: audio_(nullptr)
|
|
|
|
, width_(0u)
|
|
|
|
, height_(0u)
|
|
|
|
, duration_(0u){}
|
|
|
|
struct VideoDefaultTypeInternal {
|
|
|
|
constexpr VideoDefaultTypeInternal()
|
|
|
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
|
|
|
~VideoDefaultTypeInternal() {}
|
|
|
|
union {
|
|
|
|
Video _instance;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT VideoDefaultTypeInternal _Video_default_instance_;
|
|
|
|
constexpr Audio::Audio(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
|
|
|
: duration_(0u){}
|
|
|
|
struct AudioDefaultTypeInternal {
|
|
|
|
constexpr AudioDefaultTypeInternal()
|
|
|
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
|
|
|
~AudioDefaultTypeInternal() {}
|
|
|
|
union {
|
|
|
|
Audio _instance;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AudioDefaultTypeInternal _Audio_default_instance_;
|
|
|
|
constexpr Software::Software(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
|
|
|
: os_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
|
|
|
|
struct SoftwareDefaultTypeInternal {
|
|
|
|
constexpr SoftwareDefaultTypeInternal()
|
|
|
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
|
|
|
~SoftwareDefaultTypeInternal() {}
|
|
|
|
union {
|
|
|
|
Software _instance;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SoftwareDefaultTypeInternal _Software_default_instance_;
|
|
|
|
constexpr Language::Language(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
|
|
|
: language_(0)
|
|
|
|
|
|
|
|
, script_(0)
|
|
|
|
|
|
|
|
, region_(0)
|
|
|
|
{}
|
|
|
|
struct LanguageDefaultTypeInternal {
|
|
|
|
constexpr LanguageDefaultTypeInternal()
|
|
|
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
|
|
|
~LanguageDefaultTypeInternal() {}
|
|
|
|
union {
|
|
|
|
Language _instance;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LanguageDefaultTypeInternal _Language_default_instance_;
|
|
|
|
constexpr Location::Location(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
|
|
|
: state_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, city_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, code_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
|
|
, country_(0)
|
|
|
|
|
|
|
|
, latitude_(0)
|
|
|
|
, longitude_(0){}
|
|
|
|
struct LocationDefaultTypeInternal {
|
|
|
|
constexpr LocationDefaultTypeInternal()
|
|
|
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
|
|
|
~LocationDefaultTypeInternal() {}
|
|
|
|
union {
|
|
|
|
Location _instance;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocationDefaultTypeInternal _Location_default_instance_;
|
2019-02-27 18:03:57 +01:00
|
|
|
} // namespace pb
|
2020-10-19 05:24:47 +02:00
|
|
|
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_claim_2eproto[13];
|
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_claim_2eproto[6];
|
|
|
|
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_claim_2eproto = nullptr;
|
2019-02-27 18:03:57 +01:00
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_claim_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
2019-03-31 06:21:44 +02:00
|
|
|
~0u, // no _has_bits_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Claim, _internal_metadata_),
|
2019-03-31 06:21:44 +02:00
|
|
|
~0u, // no _extensions_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Claim, _oneof_case_[0]),
|
2019-03-31 06:21:44 +02:00
|
|
|
~0u, // no _weak_field_map_
|
2021-09-15 04:57:14 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
|
2019-12-28 17:35:59 +01:00
|
|
|
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_),
|
2019-02-27 18:03:57 +01:00
|
|
|
~0u, // no _has_bits_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Stream, _internal_metadata_),
|
2019-03-31 06:21:44 +02:00
|
|
|
~0u, // no _extensions_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Stream, _oneof_case_[0]),
|
2019-03-31 06:21:44 +02:00
|
|
|
~0u, // no _weak_field_map_
|
2019-12-28 17:35:59 +01:00
|
|
|
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_),
|
2021-09-15 04:57:14 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Stream, type_),
|
2019-03-31 06:21:44 +02:00
|
|
|
~0u, // no _has_bits_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Channel, _internal_metadata_),
|
2019-03-31 06:21:44 +02:00
|
|
|
~0u, // no _extensions_
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
~0u, // no _weak_field_map_
|
2019-12-28 17:35:59 +01:00
|
|
|
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_),
|
2019-04-20 17:04:32 +02:00
|
|
|
~0u, // no _has_bits_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::ClaimReference, _internal_metadata_),
|
2019-04-20 17:04:32 +02:00
|
|
|
~0u, // no _extensions_
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
~0u, // no _weak_field_map_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::ClaimReference, claim_hash_),
|
2019-04-20 17:04:32 +02:00
|
|
|
~0u, // no _has_bits_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::ClaimList, _internal_metadata_),
|
2019-04-20 17:04:32 +02:00
|
|
|
~0u, // no _extensions_
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
~0u, // no _weak_field_map_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::ClaimList, list_type_),
|
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::ClaimList, claim_references_),
|
2019-04-20 17:04:32 +02:00
|
|
|
~0u, // no _has_bits_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Source, _internal_metadata_),
|
2019-04-20 17:04:32 +02:00
|
|
|
~0u, // no _extensions_
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
~0u, // no _weak_field_map_
|
2019-12-28 17:35:59 +01:00
|
|
|
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_),
|
2019-03-31 06:21:44 +02:00
|
|
|
~0u, // no _has_bits_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Fee, _internal_metadata_),
|
2019-03-31 06:21:44 +02:00
|
|
|
~0u, // no _extensions_
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
~0u, // no _weak_field_map_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Fee, currency_),
|
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Fee, address_),
|
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Fee, amount_),
|
2019-03-31 06:21:44 +02:00
|
|
|
~0u, // no _has_bits_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Image, _internal_metadata_),
|
2019-02-27 18:03:57 +01:00
|
|
|
~0u, // no _extensions_
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
~0u, // no _weak_field_map_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Image, width_),
|
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Image, height_),
|
2019-02-27 18:03:57 +01:00
|
|
|
~0u, // no _has_bits_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Video, _internal_metadata_),
|
2019-02-27 18:03:57 +01:00
|
|
|
~0u, // no _extensions_
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
~0u, // no _weak_field_map_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Video, width_),
|
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Video, height_),
|
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Video, duration_),
|
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Video, audio_),
|
2019-02-27 18:03:57 +01:00
|
|
|
~0u, // no _has_bits_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Audio, _internal_metadata_),
|
2019-02-27 18:03:57 +01:00
|
|
|
~0u, // no _extensions_
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
~0u, // no _weak_field_map_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Audio, duration_),
|
2019-02-27 18:03:57 +01:00
|
|
|
~0u, // no _has_bits_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Software, _internal_metadata_),
|
2019-04-20 17:04:32 +02:00
|
|
|
~0u, // no _extensions_
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
~0u, // no _weak_field_map_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Software, os_),
|
2019-04-20 17:04:32 +02:00
|
|
|
~0u, // no _has_bits_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Language, _internal_metadata_),
|
2019-02-27 18:03:57 +01:00
|
|
|
~0u, // no _extensions_
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
~0u, // no _weak_field_map_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Language, language_),
|
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Language, script_),
|
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Language, region_),
|
2019-02-27 18:03:57 +01:00
|
|
|
~0u, // no _has_bits_
|
2019-12-28 17:35:59 +01:00
|
|
|
PROTOBUF_FIELD_OFFSET(::pb::Location, _internal_metadata_),
|
2019-02-27 18:03:57 +01:00
|
|
|
~0u, // no _extensions_
|
|
|
|
~0u, // no _oneof_case_
|
|
|
|
~0u, // no _weak_field_map_
|
2019-12-28 17:35:59 +01:00
|
|
|
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_),
|
2019-02-27 18:03:57 +01:00
|
|
|
};
|
2020-10-19 05:24:47 +02:00
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
2019-02-27 18:03:57 +01:00
|
|
|
{ 0, -1, sizeof(::pb::Claim)},
|
2019-04-20 17:04:32 +02:00
|
|
|
{ 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)},
|
2019-12-28 17:35:59 +01:00
|
|
|
{ 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)},
|
2019-02-27 18:03:57 +01:00
|
|
|
};
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Claim_default_instance_),
|
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Stream_default_instance_),
|
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Channel_default_instance_),
|
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_ClaimReference_default_instance_),
|
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_ClaimList_default_instance_),
|
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Source_default_instance_),
|
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Fee_default_instance_),
|
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Image_default_instance_),
|
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Video_default_instance_),
|
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Audio_default_instance_),
|
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Software_default_instance_),
|
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Language_default_instance_),
|
|
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Location_default_instance_),
|
2019-12-28 17:35:59 +01:00
|
|
|
};
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
const char descriptor_table_protodef_claim_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
2019-12-28 17:35:59 +01:00
|
|
|
"\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"
|
2021-09-15 04:57:14 +02:00
|
|
|
"\004B\037Z\035github.com/lbryio/types/go/pbb\006prot"
|
|
|
|
"o3"
|
2019-12-28 17:35:59 +01:00
|
|
|
;
|
2020-10-19 05:24:47 +02:00
|
|
|
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_claim_2eproto_once;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_claim_2eproto = {
|
2021-09-15 04:57:14 +02:00
|
|
|
false, false, 10602, descriptor_table_protodef_claim_2eproto, "claim.proto",
|
|
|
|
&descriptor_table_claim_2eproto_once, nullptr, 0, 13,
|
2020-10-19 05:24:47 +02:00
|
|
|
schemas, file_default_instances, TableStruct_claim_2eproto::offsets,
|
2021-09-15 04:57:14 +02:00
|
|
|
file_level_metadata_claim_2eproto, file_level_enum_descriptors_claim_2eproto, file_level_service_descriptors_claim_2eproto,
|
2019-12-28 17:35:59 +01:00
|
|
|
};
|
2021-09-15 04:57:14 +02:00
|
|
|
PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata
|
|
|
|
descriptor_table_claim_2eproto_metadata_getter(int index) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_claim_2eproto);
|
|
|
|
return descriptor_table_claim_2eproto.file_level_metadata[index];
|
|
|
|
}
|
2019-02-27 18:03:57 +01:00
|
|
|
|
2019-12-28 17:35:59 +01:00
|
|
|
// Force running AddDescriptors() at dynamic initialization time.
|
2021-09-15 04:57:14 +02:00
|
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_claim_2eproto(&descriptor_table_claim_2eproto);
|
2019-02-27 18:03:57 +01:00
|
|
|
namespace pb {
|
2020-10-19 05:24:47 +02:00
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ClaimList_ListType_descriptor() {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_claim_2eproto);
|
2019-12-28 17:35:59 +01:00
|
|
|
return file_level_enum_descriptors_claim_2eproto[0];
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
bool ClaimList_ListType_IsValid(int value) {
|
|
|
|
switch (value) {
|
|
|
|
case 0:
|
|
|
|
case 2:
|
|
|
|
return true;
|
|
|
|
default:
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
|
|
constexpr ClaimList_ListType ClaimList::COLLECTION;
|
|
|
|
constexpr ClaimList_ListType ClaimList::DERIVATION;
|
|
|
|
constexpr ClaimList_ListType ClaimList::ListType_MIN;
|
|
|
|
constexpr ClaimList_ListType ClaimList::ListType_MAX;
|
|
|
|
constexpr int ClaimList::ListType_ARRAYSIZE;
|
|
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Fee_Currency_descriptor() {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_claim_2eproto);
|
2019-12-28 17:35:59 +01:00
|
|
|
return file_level_enum_descriptors_claim_2eproto[1];
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
bool Fee_Currency_IsValid(int value) {
|
2019-02-27 18:03:57 +01:00
|
|
|
switch (value) {
|
|
|
|
case 0:
|
|
|
|
case 1:
|
2019-03-31 06:21:44 +02:00
|
|
|
case 2:
|
|
|
|
case 3:
|
2019-02-27 18:03:57 +01:00
|
|
|
return true;
|
|
|
|
default:
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
|
|
constexpr Fee_Currency Fee::UNKNOWN_CURRENCY;
|
|
|
|
constexpr Fee_Currency Fee::LBC;
|
|
|
|
constexpr Fee_Currency Fee::BTC;
|
|
|
|
constexpr Fee_Currency Fee::USD;
|
|
|
|
constexpr Fee_Currency Fee::Currency_MIN;
|
|
|
|
constexpr Fee_Currency Fee::Currency_MAX;
|
|
|
|
constexpr int Fee::Currency_ARRAYSIZE;
|
|
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Software_OS_descriptor() {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_claim_2eproto);
|
2019-12-28 17:35:59 +01:00
|
|
|
return file_level_enum_descriptors_claim_2eproto[2];
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
|
|
constexpr Software_OS Software::UNKNOWN_OS;
|
|
|
|
constexpr Software_OS Software::ANY;
|
|
|
|
constexpr Software_OS Software::LINUX;
|
|
|
|
constexpr Software_OS Software::WINDOWS;
|
|
|
|
constexpr Software_OS Software::MAC;
|
|
|
|
constexpr Software_OS Software::ANDROID;
|
|
|
|
constexpr Software_OS Software::IOS;
|
|
|
|
constexpr Software_OS Software::OS_MIN;
|
|
|
|
constexpr Software_OS Software::OS_MAX;
|
|
|
|
constexpr int Software::OS_ARRAYSIZE;
|
|
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Language_Language_descriptor() {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_claim_2eproto);
|
2019-12-28 17:35:59 +01:00
|
|
|
return file_level_enum_descriptors_claim_2eproto[3];
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
bool Language_Language_IsValid(int value) {
|
2019-02-27 18:03:57 +01:00
|
|
|
switch (value) {
|
|
|
|
case 0:
|
|
|
|
case 1:
|
2019-03-31 06:21:44 +02:00
|
|
|
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:
|
2019-02-27 18:03:57 +01:00
|
|
|
return true;
|
|
|
|
default:
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
|
|
constexpr Language_Language Language::UNKNOWN_LANGUAGE;
|
|
|
|
constexpr Language_Language Language::en;
|
|
|
|
constexpr Language_Language Language::aa;
|
|
|
|
constexpr Language_Language Language::ab;
|
|
|
|
constexpr Language_Language Language::ae;
|
|
|
|
constexpr Language_Language Language::af;
|
|
|
|
constexpr Language_Language Language::ak;
|
|
|
|
constexpr Language_Language Language::am;
|
|
|
|
constexpr Language_Language Language::an;
|
|
|
|
constexpr Language_Language Language::ar;
|
|
|
|
constexpr Language_Language Language::as;
|
|
|
|
constexpr Language_Language Language::av;
|
|
|
|
constexpr Language_Language Language::ay;
|
|
|
|
constexpr Language_Language Language::az;
|
|
|
|
constexpr Language_Language Language::ba;
|
|
|
|
constexpr Language_Language Language::be;
|
|
|
|
constexpr Language_Language Language::bg;
|
|
|
|
constexpr Language_Language Language::bh;
|
|
|
|
constexpr Language_Language Language::bi;
|
|
|
|
constexpr Language_Language Language::bm;
|
|
|
|
constexpr Language_Language Language::bn;
|
|
|
|
constexpr Language_Language Language::bo;
|
|
|
|
constexpr Language_Language Language::br;
|
|
|
|
constexpr Language_Language Language::bs;
|
|
|
|
constexpr Language_Language Language::ca;
|
|
|
|
constexpr Language_Language Language::ce;
|
|
|
|
constexpr Language_Language Language::ch;
|
|
|
|
constexpr Language_Language Language::co;
|
|
|
|
constexpr Language_Language Language::cr;
|
|
|
|
constexpr Language_Language Language::cs;
|
|
|
|
constexpr Language_Language Language::cu;
|
|
|
|
constexpr Language_Language Language::cv;
|
|
|
|
constexpr Language_Language Language::cy;
|
|
|
|
constexpr Language_Language Language::da;
|
|
|
|
constexpr Language_Language Language::de;
|
|
|
|
constexpr Language_Language Language::dv;
|
|
|
|
constexpr Language_Language Language::dz;
|
|
|
|
constexpr Language_Language Language::ee;
|
|
|
|
constexpr Language_Language Language::el;
|
|
|
|
constexpr Language_Language Language::eo;
|
|
|
|
constexpr Language_Language Language::es;
|
|
|
|
constexpr Language_Language Language::et;
|
|
|
|
constexpr Language_Language Language::eu;
|
|
|
|
constexpr Language_Language Language::fa;
|
|
|
|
constexpr Language_Language Language::ff;
|
|
|
|
constexpr Language_Language Language::fi;
|
|
|
|
constexpr Language_Language Language::fj;
|
|
|
|
constexpr Language_Language Language::fo;
|
|
|
|
constexpr Language_Language Language::fr;
|
|
|
|
constexpr Language_Language Language::fy;
|
|
|
|
constexpr Language_Language Language::ga;
|
|
|
|
constexpr Language_Language Language::gd;
|
|
|
|
constexpr Language_Language Language::gl;
|
|
|
|
constexpr Language_Language Language::gn;
|
|
|
|
constexpr Language_Language Language::gu;
|
|
|
|
constexpr Language_Language Language::gv;
|
|
|
|
constexpr Language_Language Language::ha;
|
|
|
|
constexpr Language_Language Language::he;
|
|
|
|
constexpr Language_Language Language::hi;
|
|
|
|
constexpr Language_Language Language::ho;
|
|
|
|
constexpr Language_Language Language::hr;
|
|
|
|
constexpr Language_Language Language::ht;
|
|
|
|
constexpr Language_Language Language::hu;
|
|
|
|
constexpr Language_Language Language::hy;
|
|
|
|
constexpr Language_Language Language::hz;
|
|
|
|
constexpr Language_Language Language::ia;
|
|
|
|
constexpr Language_Language Language::id;
|
|
|
|
constexpr Language_Language Language::ie;
|
|
|
|
constexpr Language_Language Language::ig;
|
|
|
|
constexpr Language_Language Language::ii;
|
|
|
|
constexpr Language_Language Language::ik;
|
|
|
|
constexpr Language_Language Language::io;
|
|
|
|
constexpr Language_Language Language::is;
|
|
|
|
constexpr Language_Language Language::it;
|
|
|
|
constexpr Language_Language Language::iu;
|
|
|
|
constexpr Language_Language Language::ja;
|
|
|
|
constexpr Language_Language Language::jv;
|
|
|
|
constexpr Language_Language Language::ka;
|
|
|
|
constexpr Language_Language Language::kg;
|
|
|
|
constexpr Language_Language Language::ki;
|
|
|
|
constexpr Language_Language Language::kj;
|
|
|
|
constexpr Language_Language Language::kk;
|
|
|
|
constexpr Language_Language Language::kl;
|
|
|
|
constexpr Language_Language Language::km;
|
|
|
|
constexpr Language_Language Language::kn;
|
|
|
|
constexpr Language_Language Language::ko;
|
|
|
|
constexpr Language_Language Language::kr;
|
|
|
|
constexpr Language_Language Language::ks;
|
|
|
|
constexpr Language_Language Language::ku;
|
|
|
|
constexpr Language_Language Language::kv;
|
|
|
|
constexpr Language_Language Language::kw;
|
|
|
|
constexpr Language_Language Language::ky;
|
|
|
|
constexpr Language_Language Language::la;
|
|
|
|
constexpr Language_Language Language::lb;
|
|
|
|
constexpr Language_Language Language::lg;
|
|
|
|
constexpr Language_Language Language::li;
|
|
|
|
constexpr Language_Language Language::ln;
|
|
|
|
constexpr Language_Language Language::lo;
|
|
|
|
constexpr Language_Language Language::lt;
|
|
|
|
constexpr Language_Language Language::lu;
|
|
|
|
constexpr Language_Language Language::lv;
|
|
|
|
constexpr Language_Language Language::mg;
|
|
|
|
constexpr Language_Language Language::mh;
|
|
|
|
constexpr Language_Language Language::mi;
|
|
|
|
constexpr Language_Language Language::mk;
|
|
|
|
constexpr Language_Language Language::ml;
|
|
|
|
constexpr Language_Language Language::mn;
|
|
|
|
constexpr Language_Language Language::mr;
|
|
|
|
constexpr Language_Language Language::ms;
|
|
|
|
constexpr Language_Language Language::mt;
|
|
|
|
constexpr Language_Language Language::my;
|
|
|
|
constexpr Language_Language Language::na;
|
|
|
|
constexpr Language_Language Language::nb;
|
|
|
|
constexpr Language_Language Language::nd;
|
|
|
|
constexpr Language_Language Language::ne;
|
|
|
|
constexpr Language_Language Language::ng;
|
|
|
|
constexpr Language_Language Language::nl;
|
|
|
|
constexpr Language_Language Language::nn;
|
|
|
|
constexpr Language_Language Language::no;
|
|
|
|
constexpr Language_Language Language::nr;
|
|
|
|
constexpr Language_Language Language::nv;
|
|
|
|
constexpr Language_Language Language::ny;
|
|
|
|
constexpr Language_Language Language::oc;
|
|
|
|
constexpr Language_Language Language::oj;
|
|
|
|
constexpr Language_Language Language::om;
|
|
|
|
constexpr Language_Language Language::or_;
|
|
|
|
constexpr Language_Language Language::os;
|
|
|
|
constexpr Language_Language Language::pa;
|
|
|
|
constexpr Language_Language Language::pi;
|
|
|
|
constexpr Language_Language Language::pl;
|
|
|
|
constexpr Language_Language Language::ps;
|
|
|
|
constexpr Language_Language Language::pt;
|
|
|
|
constexpr Language_Language Language::qu;
|
|
|
|
constexpr Language_Language Language::rm;
|
|
|
|
constexpr Language_Language Language::rn;
|
|
|
|
constexpr Language_Language Language::ro;
|
|
|
|
constexpr Language_Language Language::ru;
|
|
|
|
constexpr Language_Language Language::rw;
|
|
|
|
constexpr Language_Language Language::sa;
|
|
|
|
constexpr Language_Language Language::sc;
|
|
|
|
constexpr Language_Language Language::sd;
|
|
|
|
constexpr Language_Language Language::se;
|
|
|
|
constexpr Language_Language Language::sg;
|
|
|
|
constexpr Language_Language Language::si;
|
|
|
|
constexpr Language_Language Language::sk;
|
|
|
|
constexpr Language_Language Language::sl;
|
|
|
|
constexpr Language_Language Language::sm;
|
|
|
|
constexpr Language_Language Language::sn;
|
|
|
|
constexpr Language_Language Language::so;
|
|
|
|
constexpr Language_Language Language::sq;
|
|
|
|
constexpr Language_Language Language::sr;
|
|
|
|
constexpr Language_Language Language::ss;
|
|
|
|
constexpr Language_Language Language::st;
|
|
|
|
constexpr Language_Language Language::su;
|
|
|
|
constexpr Language_Language Language::sv;
|
|
|
|
constexpr Language_Language Language::sw;
|
|
|
|
constexpr Language_Language Language::ta;
|
|
|
|
constexpr Language_Language Language::te;
|
|
|
|
constexpr Language_Language Language::tg;
|
|
|
|
constexpr Language_Language Language::th;
|
|
|
|
constexpr Language_Language Language::ti;
|
|
|
|
constexpr Language_Language Language::tk;
|
|
|
|
constexpr Language_Language Language::tl;
|
|
|
|
constexpr Language_Language Language::tn;
|
|
|
|
constexpr Language_Language Language::to;
|
|
|
|
constexpr Language_Language Language::tr;
|
|
|
|
constexpr Language_Language Language::ts;
|
|
|
|
constexpr Language_Language Language::tt;
|
|
|
|
constexpr Language_Language Language::tw;
|
|
|
|
constexpr Language_Language Language::ty;
|
|
|
|
constexpr Language_Language Language::ug;
|
|
|
|
constexpr Language_Language Language::uk;
|
|
|
|
constexpr Language_Language Language::ur;
|
|
|
|
constexpr Language_Language Language::uz;
|
|
|
|
constexpr Language_Language Language::ve;
|
|
|
|
constexpr Language_Language Language::vi;
|
|
|
|
constexpr Language_Language Language::vo;
|
|
|
|
constexpr Language_Language Language::wa;
|
|
|
|
constexpr Language_Language Language::wo;
|
|
|
|
constexpr Language_Language Language::xh;
|
|
|
|
constexpr Language_Language Language::yi;
|
|
|
|
constexpr Language_Language Language::yo;
|
|
|
|
constexpr Language_Language Language::za;
|
|
|
|
constexpr Language_Language Language::zh;
|
|
|
|
constexpr Language_Language Language::zu;
|
|
|
|
constexpr Language_Language Language::Language_MIN;
|
|
|
|
constexpr Language_Language Language::Language_MAX;
|
|
|
|
constexpr int Language::Language_ARRAYSIZE;
|
|
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Language_Script_descriptor() {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_claim_2eproto);
|
2019-12-28 17:35:59 +01:00
|
|
|
return file_level_enum_descriptors_claim_2eproto[4];
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
|
|
constexpr Language_Script Language::UNKNOWN_SCRIPT;
|
|
|
|
constexpr Language_Script Language::Adlm;
|
|
|
|
constexpr Language_Script Language::Afak;
|
|
|
|
constexpr Language_Script Language::Aghb;
|
|
|
|
constexpr Language_Script Language::Ahom;
|
|
|
|
constexpr Language_Script Language::Arab;
|
|
|
|
constexpr Language_Script Language::Aran;
|
|
|
|
constexpr Language_Script Language::Armi;
|
|
|
|
constexpr Language_Script Language::Armn;
|
|
|
|
constexpr Language_Script Language::Avst;
|
|
|
|
constexpr Language_Script Language::Bali;
|
|
|
|
constexpr Language_Script Language::Bamu;
|
|
|
|
constexpr Language_Script Language::Bass;
|
|
|
|
constexpr Language_Script Language::Batk;
|
|
|
|
constexpr Language_Script Language::Beng;
|
|
|
|
constexpr Language_Script Language::Bhks;
|
|
|
|
constexpr Language_Script Language::Blis;
|
|
|
|
constexpr Language_Script Language::Bopo;
|
|
|
|
constexpr Language_Script Language::Brah;
|
|
|
|
constexpr Language_Script Language::Brai;
|
|
|
|
constexpr Language_Script Language::Bugi;
|
|
|
|
constexpr Language_Script Language::Buhd;
|
|
|
|
constexpr Language_Script Language::Cakm;
|
|
|
|
constexpr Language_Script Language::Cans;
|
|
|
|
constexpr Language_Script Language::Cari;
|
|
|
|
constexpr Language_Script Language::Cham;
|
|
|
|
constexpr Language_Script Language::Cher;
|
|
|
|
constexpr Language_Script Language::Cirt;
|
|
|
|
constexpr Language_Script Language::Copt;
|
|
|
|
constexpr Language_Script Language::Cpmn;
|
|
|
|
constexpr Language_Script Language::Cprt;
|
|
|
|
constexpr Language_Script Language::Cyrl;
|
|
|
|
constexpr Language_Script Language::Cyrs;
|
|
|
|
constexpr Language_Script Language::Deva;
|
|
|
|
constexpr Language_Script Language::Dogr;
|
|
|
|
constexpr Language_Script Language::Dsrt;
|
|
|
|
constexpr Language_Script Language::Dupl;
|
|
|
|
constexpr Language_Script Language::Egyd;
|
|
|
|
constexpr Language_Script Language::Egyh;
|
|
|
|
constexpr Language_Script Language::Egyp;
|
|
|
|
constexpr Language_Script Language::Elba;
|
|
|
|
constexpr Language_Script Language::Elym;
|
|
|
|
constexpr Language_Script Language::Ethi;
|
|
|
|
constexpr Language_Script Language::Geok;
|
|
|
|
constexpr Language_Script Language::Geor;
|
|
|
|
constexpr Language_Script Language::Glag;
|
|
|
|
constexpr Language_Script Language::Gong;
|
|
|
|
constexpr Language_Script Language::Gonm;
|
|
|
|
constexpr Language_Script Language::Goth;
|
|
|
|
constexpr Language_Script Language::Gran;
|
|
|
|
constexpr Language_Script Language::Grek;
|
|
|
|
constexpr Language_Script Language::Gujr;
|
|
|
|
constexpr Language_Script Language::Guru;
|
|
|
|
constexpr Language_Script Language::Hanb;
|
|
|
|
constexpr Language_Script Language::Hang;
|
|
|
|
constexpr Language_Script Language::Hani;
|
|
|
|
constexpr Language_Script Language::Hano;
|
|
|
|
constexpr Language_Script Language::Hans;
|
|
|
|
constexpr Language_Script Language::Hant;
|
|
|
|
constexpr Language_Script Language::Hatr;
|
|
|
|
constexpr Language_Script Language::Hebr;
|
|
|
|
constexpr Language_Script Language::Hira;
|
|
|
|
constexpr Language_Script Language::Hluw;
|
|
|
|
constexpr Language_Script Language::Hmng;
|
|
|
|
constexpr Language_Script Language::Hmnp;
|
|
|
|
constexpr Language_Script Language::Hrkt;
|
|
|
|
constexpr Language_Script Language::Hung;
|
|
|
|
constexpr Language_Script Language::Inds;
|
|
|
|
constexpr Language_Script Language::Ital;
|
|
|
|
constexpr Language_Script Language::Jamo;
|
|
|
|
constexpr Language_Script Language::Java;
|
|
|
|
constexpr Language_Script Language::Jpan;
|
|
|
|
constexpr Language_Script Language::Jurc;
|
|
|
|
constexpr Language_Script Language::Kali;
|
|
|
|
constexpr Language_Script Language::Kana;
|
|
|
|
constexpr Language_Script Language::Khar;
|
|
|
|
constexpr Language_Script Language::Khmr;
|
|
|
|
constexpr Language_Script Language::Khoj;
|
|
|
|
constexpr Language_Script Language::Kitl;
|
|
|
|
constexpr Language_Script Language::Kits;
|
|
|
|
constexpr Language_Script Language::Knda;
|
|
|
|
constexpr Language_Script Language::Kore;
|
|
|
|
constexpr Language_Script Language::Kpel;
|
|
|
|
constexpr Language_Script Language::Kthi;
|
|
|
|
constexpr Language_Script Language::Lana;
|
|
|
|
constexpr Language_Script Language::Laoo;
|
|
|
|
constexpr Language_Script Language::Latf;
|
|
|
|
constexpr Language_Script Language::Latg;
|
|
|
|
constexpr Language_Script Language::Latn;
|
|
|
|
constexpr Language_Script Language::Leke;
|
|
|
|
constexpr Language_Script Language::Lepc;
|
|
|
|
constexpr Language_Script Language::Limb;
|
|
|
|
constexpr Language_Script Language::Lina;
|
|
|
|
constexpr Language_Script Language::Linb;
|
|
|
|
constexpr Language_Script Language::Lisu;
|
|
|
|
constexpr Language_Script Language::Loma;
|
|
|
|
constexpr Language_Script Language::Lyci;
|
|
|
|
constexpr Language_Script Language::Lydi;
|
|
|
|
constexpr Language_Script Language::Mahj;
|
|
|
|
constexpr Language_Script Language::Maka;
|
|
|
|
constexpr Language_Script Language::Mand;
|
|
|
|
constexpr Language_Script Language::Mani;
|
|
|
|
constexpr Language_Script Language::Marc;
|
|
|
|
constexpr Language_Script Language::Maya;
|
|
|
|
constexpr Language_Script Language::Medf;
|
|
|
|
constexpr Language_Script Language::Mend;
|
|
|
|
constexpr Language_Script Language::Merc;
|
|
|
|
constexpr Language_Script Language::Mero;
|
|
|
|
constexpr Language_Script Language::Mlym;
|
|
|
|
constexpr Language_Script Language::Modi;
|
|
|
|
constexpr Language_Script Language::Mong;
|
|
|
|
constexpr Language_Script Language::Moon;
|
|
|
|
constexpr Language_Script Language::Mroo;
|
|
|
|
constexpr Language_Script Language::Mtei;
|
|
|
|
constexpr Language_Script Language::Mult;
|
|
|
|
constexpr Language_Script Language::Mymr;
|
|
|
|
constexpr Language_Script Language::Nand;
|
|
|
|
constexpr Language_Script Language::Narb;
|
|
|
|
constexpr Language_Script Language::Nbat;
|
|
|
|
constexpr Language_Script Language::Newa;
|
|
|
|
constexpr Language_Script Language::Nkdb;
|
|
|
|
constexpr Language_Script Language::Nkgb;
|
|
|
|
constexpr Language_Script Language::Nkoo;
|
|
|
|
constexpr Language_Script Language::Nshu;
|
|
|
|
constexpr Language_Script Language::Ogam;
|
|
|
|
constexpr Language_Script Language::Olck;
|
|
|
|
constexpr Language_Script Language::Orkh;
|
|
|
|
constexpr Language_Script Language::Orya;
|
|
|
|
constexpr Language_Script Language::Osge;
|
|
|
|
constexpr Language_Script Language::Osma;
|
|
|
|
constexpr Language_Script Language::Palm;
|
|
|
|
constexpr Language_Script Language::Pauc;
|
|
|
|
constexpr Language_Script Language::Perm;
|
|
|
|
constexpr Language_Script Language::Phag;
|
|
|
|
constexpr Language_Script Language::Phli;
|
|
|
|
constexpr Language_Script Language::Phlp;
|
|
|
|
constexpr Language_Script Language::Phlv;
|
|
|
|
constexpr Language_Script Language::Phnx;
|
|
|
|
constexpr Language_Script Language::Plrd;
|
|
|
|
constexpr Language_Script Language::Piqd;
|
|
|
|
constexpr Language_Script Language::Prti;
|
|
|
|
constexpr Language_Script Language::Qaaa;
|
|
|
|
constexpr Language_Script Language::Qabx;
|
|
|
|
constexpr Language_Script Language::Rjng;
|
|
|
|
constexpr Language_Script Language::Rohg;
|
|
|
|
constexpr Language_Script Language::Roro;
|
|
|
|
constexpr Language_Script Language::Runr;
|
|
|
|
constexpr Language_Script Language::Samr;
|
|
|
|
constexpr Language_Script Language::Sara;
|
|
|
|
constexpr Language_Script Language::Sarb;
|
|
|
|
constexpr Language_Script Language::Saur;
|
|
|
|
constexpr Language_Script Language::Sgnw;
|
|
|
|
constexpr Language_Script Language::Shaw;
|
|
|
|
constexpr Language_Script Language::Shrd;
|
|
|
|
constexpr Language_Script Language::Shui;
|
|
|
|
constexpr Language_Script Language::Sidd;
|
|
|
|
constexpr Language_Script Language::Sind;
|
|
|
|
constexpr Language_Script Language::Sinh;
|
|
|
|
constexpr Language_Script Language::Sogd;
|
|
|
|
constexpr Language_Script Language::Sogo;
|
|
|
|
constexpr Language_Script Language::Sora;
|
|
|
|
constexpr Language_Script Language::Soyo;
|
|
|
|
constexpr Language_Script Language::Sund;
|
|
|
|
constexpr Language_Script Language::Sylo;
|
|
|
|
constexpr Language_Script Language::Syrc;
|
|
|
|
constexpr Language_Script Language::Syre;
|
|
|
|
constexpr Language_Script Language::Syrj;
|
|
|
|
constexpr Language_Script Language::Syrn;
|
|
|
|
constexpr Language_Script Language::Tagb;
|
|
|
|
constexpr Language_Script Language::Takr;
|
|
|
|
constexpr Language_Script Language::Tale;
|
|
|
|
constexpr Language_Script Language::Talu;
|
|
|
|
constexpr Language_Script Language::Taml;
|
|
|
|
constexpr Language_Script Language::Tang;
|
|
|
|
constexpr Language_Script Language::Tavt;
|
|
|
|
constexpr Language_Script Language::Telu;
|
|
|
|
constexpr Language_Script Language::Teng;
|
|
|
|
constexpr Language_Script Language::Tfng;
|
|
|
|
constexpr Language_Script Language::Tglg;
|
|
|
|
constexpr Language_Script Language::Thaa;
|
|
|
|
constexpr Language_Script Language::Thai;
|
|
|
|
constexpr Language_Script Language::Tibt;
|
|
|
|
constexpr Language_Script Language::Tirh;
|
|
|
|
constexpr Language_Script Language::Ugar;
|
|
|
|
constexpr Language_Script Language::Vaii;
|
|
|
|
constexpr Language_Script Language::Visp;
|
|
|
|
constexpr Language_Script Language::Wara;
|
|
|
|
constexpr Language_Script Language::Wcho;
|
|
|
|
constexpr Language_Script Language::Wole;
|
|
|
|
constexpr Language_Script Language::Xpeo;
|
|
|
|
constexpr Language_Script Language::Xsux;
|
|
|
|
constexpr Language_Script Language::Yiii;
|
|
|
|
constexpr Language_Script Language::Zanb;
|
|
|
|
constexpr Language_Script Language::Zinh;
|
|
|
|
constexpr Language_Script Language::Zmth;
|
|
|
|
constexpr Language_Script Language::Zsye;
|
|
|
|
constexpr Language_Script Language::Zsym;
|
|
|
|
constexpr Language_Script Language::Zxxx;
|
|
|
|
constexpr Language_Script Language::Zyyy;
|
|
|
|
constexpr Language_Script Language::Zzzz;
|
|
|
|
constexpr Language_Script Language::Script_MIN;
|
|
|
|
constexpr Language_Script Language::Script_MAX;
|
|
|
|
constexpr int Language::Script_ARRAYSIZE;
|
|
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Location_Country_descriptor() {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_claim_2eproto);
|
2019-12-28 17:35:59 +01:00
|
|
|
return file_level_enum_descriptors_claim_2eproto[5];
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
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:
|
2019-12-28 17:35:59 +01:00
|
|
|
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:
|
2019-03-31 06:21:44 +02:00
|
|
|
return true;
|
|
|
|
default:
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
|
|
constexpr Location_Country Location::UNKNOWN_COUNTRY;
|
|
|
|
constexpr Location_Country Location::AF;
|
|
|
|
constexpr Location_Country Location::AX;
|
|
|
|
constexpr Location_Country Location::AL;
|
|
|
|
constexpr Location_Country Location::DZ;
|
|
|
|
constexpr Location_Country Location::AS;
|
|
|
|
constexpr Location_Country Location::AD;
|
|
|
|
constexpr Location_Country Location::AO;
|
|
|
|
constexpr Location_Country Location::AI;
|
|
|
|
constexpr Location_Country Location::AQ;
|
|
|
|
constexpr Location_Country Location::AG;
|
|
|
|
constexpr Location_Country Location::AR;
|
|
|
|
constexpr Location_Country Location::AM;
|
|
|
|
constexpr Location_Country Location::AW;
|
|
|
|
constexpr Location_Country Location::AU;
|
|
|
|
constexpr Location_Country Location::AT;
|
|
|
|
constexpr Location_Country Location::AZ;
|
|
|
|
constexpr Location_Country Location::BS;
|
|
|
|
constexpr Location_Country Location::BH;
|
|
|
|
constexpr Location_Country Location::BD;
|
|
|
|
constexpr Location_Country Location::BB;
|
|
|
|
constexpr Location_Country Location::BY;
|
|
|
|
constexpr Location_Country Location::BE;
|
|
|
|
constexpr Location_Country Location::BZ;
|
|
|
|
constexpr Location_Country Location::BJ;
|
|
|
|
constexpr Location_Country Location::BM;
|
|
|
|
constexpr Location_Country Location::BT;
|
|
|
|
constexpr Location_Country Location::BO;
|
|
|
|
constexpr Location_Country Location::BQ;
|
|
|
|
constexpr Location_Country Location::BA;
|
|
|
|
constexpr Location_Country Location::BW;
|
|
|
|
constexpr Location_Country Location::BV;
|
|
|
|
constexpr Location_Country Location::BR;
|
|
|
|
constexpr Location_Country Location::IO;
|
|
|
|
constexpr Location_Country Location::BN;
|
|
|
|
constexpr Location_Country Location::BG;
|
|
|
|
constexpr Location_Country Location::BF;
|
|
|
|
constexpr Location_Country Location::BI;
|
|
|
|
constexpr Location_Country Location::KH;
|
|
|
|
constexpr Location_Country Location::CM;
|
|
|
|
constexpr Location_Country Location::CA;
|
|
|
|
constexpr Location_Country Location::CV;
|
|
|
|
constexpr Location_Country Location::KY;
|
|
|
|
constexpr Location_Country Location::CF;
|
|
|
|
constexpr Location_Country Location::TD;
|
|
|
|
constexpr Location_Country Location::CL;
|
|
|
|
constexpr Location_Country Location::CN;
|
|
|
|
constexpr Location_Country Location::CX;
|
|
|
|
constexpr Location_Country Location::CC;
|
|
|
|
constexpr Location_Country Location::CO;
|
|
|
|
constexpr Location_Country Location::KM;
|
|
|
|
constexpr Location_Country Location::CG;
|
|
|
|
constexpr Location_Country Location::CD;
|
|
|
|
constexpr Location_Country Location::CK;
|
|
|
|
constexpr Location_Country Location::CR;
|
|
|
|
constexpr Location_Country Location::CI;
|
|
|
|
constexpr Location_Country Location::HR;
|
|
|
|
constexpr Location_Country Location::CU;
|
|
|
|
constexpr Location_Country Location::CW;
|
|
|
|
constexpr Location_Country Location::CY;
|
|
|
|
constexpr Location_Country Location::CZ;
|
|
|
|
constexpr Location_Country Location::DK;
|
|
|
|
constexpr Location_Country Location::DJ;
|
|
|
|
constexpr Location_Country Location::DM;
|
|
|
|
constexpr Location_Country Location::DO;
|
|
|
|
constexpr Location_Country Location::EC;
|
|
|
|
constexpr Location_Country Location::EG;
|
|
|
|
constexpr Location_Country Location::SV;
|
|
|
|
constexpr Location_Country Location::GQ;
|
|
|
|
constexpr Location_Country Location::ER;
|
|
|
|
constexpr Location_Country Location::EE;
|
|
|
|
constexpr Location_Country Location::ET;
|
|
|
|
constexpr Location_Country Location::FK;
|
|
|
|
constexpr Location_Country Location::FO;
|
|
|
|
constexpr Location_Country Location::FJ;
|
|
|
|
constexpr Location_Country Location::FI;
|
|
|
|
constexpr Location_Country Location::FR;
|
|
|
|
constexpr Location_Country Location::GF;
|
|
|
|
constexpr Location_Country Location::PF;
|
|
|
|
constexpr Location_Country Location::TF;
|
|
|
|
constexpr Location_Country Location::GA;
|
|
|
|
constexpr Location_Country Location::GM;
|
|
|
|
constexpr Location_Country Location::GE;
|
|
|
|
constexpr Location_Country Location::DE;
|
|
|
|
constexpr Location_Country Location::GH;
|
|
|
|
constexpr Location_Country Location::GI;
|
|
|
|
constexpr Location_Country Location::GR;
|
|
|
|
constexpr Location_Country Location::GL;
|
|
|
|
constexpr Location_Country Location::GD;
|
|
|
|
constexpr Location_Country Location::GP;
|
|
|
|
constexpr Location_Country Location::GU;
|
|
|
|
constexpr Location_Country Location::GT;
|
|
|
|
constexpr Location_Country Location::GG;
|
|
|
|
constexpr Location_Country Location::GN;
|
|
|
|
constexpr Location_Country Location::GW;
|
|
|
|
constexpr Location_Country Location::GY;
|
|
|
|
constexpr Location_Country Location::HT;
|
|
|
|
constexpr Location_Country Location::HM;
|
|
|
|
constexpr Location_Country Location::VA;
|
|
|
|
constexpr Location_Country Location::HN;
|
|
|
|
constexpr Location_Country Location::HK;
|
|
|
|
constexpr Location_Country Location::HU;
|
|
|
|
constexpr Location_Country Location::IS;
|
|
|
|
constexpr Location_Country Location::IN;
|
|
|
|
constexpr Location_Country Location::ID;
|
|
|
|
constexpr Location_Country Location::IR;
|
|
|
|
constexpr Location_Country Location::IQ;
|
|
|
|
constexpr Location_Country Location::IE;
|
|
|
|
constexpr Location_Country Location::IM;
|
|
|
|
constexpr Location_Country Location::IL;
|
|
|
|
constexpr Location_Country Location::IT;
|
|
|
|
constexpr Location_Country Location::JM;
|
|
|
|
constexpr Location_Country Location::JP;
|
|
|
|
constexpr Location_Country Location::JE;
|
|
|
|
constexpr Location_Country Location::JO;
|
|
|
|
constexpr Location_Country Location::KZ;
|
|
|
|
constexpr Location_Country Location::KE;
|
|
|
|
constexpr Location_Country Location::KI;
|
|
|
|
constexpr Location_Country Location::KP;
|
|
|
|
constexpr Location_Country Location::KR;
|
|
|
|
constexpr Location_Country Location::KW;
|
|
|
|
constexpr Location_Country Location::KG;
|
|
|
|
constexpr Location_Country Location::LA;
|
|
|
|
constexpr Location_Country Location::LV;
|
|
|
|
constexpr Location_Country Location::LB;
|
|
|
|
constexpr Location_Country Location::LS;
|
|
|
|
constexpr Location_Country Location::LR;
|
|
|
|
constexpr Location_Country Location::LY;
|
|
|
|
constexpr Location_Country Location::LI;
|
|
|
|
constexpr Location_Country Location::LT;
|
|
|
|
constexpr Location_Country Location::LU;
|
|
|
|
constexpr Location_Country Location::MO;
|
|
|
|
constexpr Location_Country Location::MK;
|
|
|
|
constexpr Location_Country Location::MG;
|
|
|
|
constexpr Location_Country Location::MW;
|
|
|
|
constexpr Location_Country Location::MY;
|
|
|
|
constexpr Location_Country Location::MV;
|
|
|
|
constexpr Location_Country Location::ML;
|
|
|
|
constexpr Location_Country Location::MT;
|
|
|
|
constexpr Location_Country Location::MH;
|
|
|
|
constexpr Location_Country Location::MQ;
|
|
|
|
constexpr Location_Country Location::MR;
|
|
|
|
constexpr Location_Country Location::MU;
|
|
|
|
constexpr Location_Country Location::YT;
|
|
|
|
constexpr Location_Country Location::MX;
|
|
|
|
constexpr Location_Country Location::FM;
|
|
|
|
constexpr Location_Country Location::MD;
|
|
|
|
constexpr Location_Country Location::MC;
|
|
|
|
constexpr Location_Country Location::MN;
|
|
|
|
constexpr Location_Country Location::ME;
|
|
|
|
constexpr Location_Country Location::MS;
|
|
|
|
constexpr Location_Country Location::MA;
|
|
|
|
constexpr Location_Country Location::MZ;
|
|
|
|
constexpr Location_Country Location::MM;
|
|
|
|
constexpr Location_Country Location::NA;
|
|
|
|
constexpr Location_Country Location::NR;
|
|
|
|
constexpr Location_Country Location::NP;
|
|
|
|
constexpr Location_Country Location::NL;
|
|
|
|
constexpr Location_Country Location::NC;
|
|
|
|
constexpr Location_Country Location::NZ;
|
|
|
|
constexpr Location_Country Location::NI;
|
|
|
|
constexpr Location_Country Location::NE;
|
|
|
|
constexpr Location_Country Location::NG;
|
|
|
|
constexpr Location_Country Location::NU;
|
|
|
|
constexpr Location_Country Location::NF;
|
|
|
|
constexpr Location_Country Location::MP;
|
|
|
|
constexpr Location_Country Location::NO;
|
|
|
|
constexpr Location_Country Location::OM;
|
|
|
|
constexpr Location_Country Location::PK;
|
|
|
|
constexpr Location_Country Location::PW;
|
|
|
|
constexpr Location_Country Location::PS;
|
|
|
|
constexpr Location_Country Location::PA;
|
|
|
|
constexpr Location_Country Location::PG;
|
|
|
|
constexpr Location_Country Location::PY;
|
|
|
|
constexpr Location_Country Location::PE;
|
|
|
|
constexpr Location_Country Location::PH;
|
|
|
|
constexpr Location_Country Location::PN;
|
|
|
|
constexpr Location_Country Location::PL;
|
|
|
|
constexpr Location_Country Location::PT;
|
|
|
|
constexpr Location_Country Location::PR;
|
|
|
|
constexpr Location_Country Location::QA;
|
|
|
|
constexpr Location_Country Location::RE;
|
|
|
|
constexpr Location_Country Location::RO;
|
|
|
|
constexpr Location_Country Location::RU;
|
|
|
|
constexpr Location_Country Location::RW;
|
|
|
|
constexpr Location_Country Location::BL;
|
|
|
|
constexpr Location_Country Location::SH;
|
|
|
|
constexpr Location_Country Location::KN;
|
|
|
|
constexpr Location_Country Location::LC;
|
|
|
|
constexpr Location_Country Location::MF;
|
|
|
|
constexpr Location_Country Location::PM;
|
|
|
|
constexpr Location_Country Location::VC;
|
|
|
|
constexpr Location_Country Location::WS;
|
|
|
|
constexpr Location_Country Location::SM;
|
|
|
|
constexpr Location_Country Location::ST;
|
|
|
|
constexpr Location_Country Location::SA;
|
|
|
|
constexpr Location_Country Location::SN;
|
|
|
|
constexpr Location_Country Location::RS;
|
|
|
|
constexpr Location_Country Location::SC;
|
|
|
|
constexpr Location_Country Location::SL;
|
|
|
|
constexpr Location_Country Location::SG;
|
|
|
|
constexpr Location_Country Location::SX;
|
|
|
|
constexpr Location_Country Location::SK;
|
|
|
|
constexpr Location_Country Location::SI;
|
|
|
|
constexpr Location_Country Location::SB;
|
|
|
|
constexpr Location_Country Location::SO;
|
|
|
|
constexpr Location_Country Location::ZA;
|
|
|
|
constexpr Location_Country Location::GS;
|
|
|
|
constexpr Location_Country Location::SS;
|
|
|
|
constexpr Location_Country Location::ES;
|
|
|
|
constexpr Location_Country Location::LK;
|
|
|
|
constexpr Location_Country Location::SD;
|
|
|
|
constexpr Location_Country Location::SR;
|
|
|
|
constexpr Location_Country Location::SJ;
|
|
|
|
constexpr Location_Country Location::SZ;
|
|
|
|
constexpr Location_Country Location::SE;
|
|
|
|
constexpr Location_Country Location::CH;
|
|
|
|
constexpr Location_Country Location::SY;
|
|
|
|
constexpr Location_Country Location::TW;
|
|
|
|
constexpr Location_Country Location::TJ;
|
|
|
|
constexpr Location_Country Location::TZ;
|
|
|
|
constexpr Location_Country Location::TH;
|
|
|
|
constexpr Location_Country Location::TL;
|
|
|
|
constexpr Location_Country Location::TG;
|
|
|
|
constexpr Location_Country Location::TK;
|
|
|
|
constexpr Location_Country Location::TO;
|
|
|
|
constexpr Location_Country Location::TT;
|
|
|
|
constexpr Location_Country Location::TN;
|
|
|
|
constexpr Location_Country Location::TR;
|
|
|
|
constexpr Location_Country Location::TM;
|
|
|
|
constexpr Location_Country Location::TC;
|
|
|
|
constexpr Location_Country Location::TV;
|
|
|
|
constexpr Location_Country Location::UG;
|
|
|
|
constexpr Location_Country Location::UA;
|
|
|
|
constexpr Location_Country Location::AE;
|
|
|
|
constexpr Location_Country Location::GB;
|
|
|
|
constexpr Location_Country Location::US;
|
|
|
|
constexpr Location_Country Location::UM;
|
|
|
|
constexpr Location_Country Location::UY;
|
|
|
|
constexpr Location_Country Location::UZ;
|
|
|
|
constexpr Location_Country Location::VU;
|
|
|
|
constexpr Location_Country Location::VE;
|
|
|
|
constexpr Location_Country Location::VN;
|
|
|
|
constexpr Location_Country Location::VG;
|
|
|
|
constexpr Location_Country Location::VI;
|
|
|
|
constexpr Location_Country Location::WF;
|
|
|
|
constexpr Location_Country Location::EH;
|
|
|
|
constexpr Location_Country Location::YE;
|
|
|
|
constexpr Location_Country Location::ZM;
|
|
|
|
constexpr Location_Country Location::ZW;
|
|
|
|
constexpr Location_Country Location::R001;
|
|
|
|
constexpr Location_Country Location::R002;
|
|
|
|
constexpr Location_Country Location::R015;
|
|
|
|
constexpr Location_Country Location::R012;
|
|
|
|
constexpr Location_Country Location::R818;
|
|
|
|
constexpr Location_Country Location::R434;
|
|
|
|
constexpr Location_Country Location::R504;
|
|
|
|
constexpr Location_Country Location::R729;
|
|
|
|
constexpr Location_Country Location::R788;
|
|
|
|
constexpr Location_Country Location::R732;
|
|
|
|
constexpr Location_Country Location::R202;
|
|
|
|
constexpr Location_Country Location::R014;
|
|
|
|
constexpr Location_Country Location::R086;
|
|
|
|
constexpr Location_Country Location::R108;
|
|
|
|
constexpr Location_Country Location::R174;
|
|
|
|
constexpr Location_Country Location::R262;
|
|
|
|
constexpr Location_Country Location::R232;
|
|
|
|
constexpr Location_Country Location::R231;
|
|
|
|
constexpr Location_Country Location::R260;
|
|
|
|
constexpr Location_Country Location::R404;
|
|
|
|
constexpr Location_Country Location::R450;
|
|
|
|
constexpr Location_Country Location::R454;
|
|
|
|
constexpr Location_Country Location::R480;
|
|
|
|
constexpr Location_Country Location::R175;
|
|
|
|
constexpr Location_Country Location::R508;
|
|
|
|
constexpr Location_Country Location::R638;
|
|
|
|
constexpr Location_Country Location::R646;
|
|
|
|
constexpr Location_Country Location::R690;
|
|
|
|
constexpr Location_Country Location::R706;
|
|
|
|
constexpr Location_Country Location::R728;
|
|
|
|
constexpr Location_Country Location::R800;
|
|
|
|
constexpr Location_Country Location::R834;
|
|
|
|
constexpr Location_Country Location::R894;
|
|
|
|
constexpr Location_Country Location::R716;
|
|
|
|
constexpr Location_Country Location::R017;
|
|
|
|
constexpr Location_Country Location::R024;
|
|
|
|
constexpr Location_Country Location::R120;
|
|
|
|
constexpr Location_Country Location::R140;
|
|
|
|
constexpr Location_Country Location::R148;
|
|
|
|
constexpr Location_Country Location::R178;
|
|
|
|
constexpr Location_Country Location::R180;
|
|
|
|
constexpr Location_Country Location::R226;
|
|
|
|
constexpr Location_Country Location::R266;
|
|
|
|
constexpr Location_Country Location::R678;
|
|
|
|
constexpr Location_Country Location::R018;
|
|
|
|
constexpr Location_Country Location::R072;
|
|
|
|
constexpr Location_Country Location::R748;
|
|
|
|
constexpr Location_Country Location::R426;
|
|
|
|
constexpr Location_Country Location::R516;
|
|
|
|
constexpr Location_Country Location::R710;
|
|
|
|
constexpr Location_Country Location::R011;
|
|
|
|
constexpr Location_Country Location::R204;
|
|
|
|
constexpr Location_Country Location::R854;
|
|
|
|
constexpr Location_Country Location::R132;
|
|
|
|
constexpr Location_Country Location::R384;
|
|
|
|
constexpr Location_Country Location::R270;
|
|
|
|
constexpr Location_Country Location::R288;
|
|
|
|
constexpr Location_Country Location::R324;
|
|
|
|
constexpr Location_Country Location::R624;
|
|
|
|
constexpr Location_Country Location::R430;
|
|
|
|
constexpr Location_Country Location::R466;
|
|
|
|
constexpr Location_Country Location::R478;
|
|
|
|
constexpr Location_Country Location::R562;
|
|
|
|
constexpr Location_Country Location::R566;
|
|
|
|
constexpr Location_Country Location::R654;
|
|
|
|
constexpr Location_Country Location::R686;
|
|
|
|
constexpr Location_Country Location::R694;
|
|
|
|
constexpr Location_Country Location::R768;
|
|
|
|
constexpr Location_Country Location::R019;
|
|
|
|
constexpr Location_Country Location::R419;
|
|
|
|
constexpr Location_Country Location::R029;
|
|
|
|
constexpr Location_Country Location::R660;
|
|
|
|
constexpr Location_Country Location::R028;
|
|
|
|
constexpr Location_Country Location::R533;
|
|
|
|
constexpr Location_Country Location::R044;
|
|
|
|
constexpr Location_Country Location::R052;
|
|
|
|
constexpr Location_Country Location::R535;
|
|
|
|
constexpr Location_Country Location::R092;
|
|
|
|
constexpr Location_Country Location::R136;
|
|
|
|
constexpr Location_Country Location::R192;
|
|
|
|
constexpr Location_Country Location::R531;
|
|
|
|
constexpr Location_Country Location::R212;
|
|
|
|
constexpr Location_Country Location::R214;
|
|
|
|
constexpr Location_Country Location::R308;
|
|
|
|
constexpr Location_Country Location::R312;
|
|
|
|
constexpr Location_Country Location::R332;
|
|
|
|
constexpr Location_Country Location::R388;
|
|
|
|
constexpr Location_Country Location::R474;
|
|
|
|
constexpr Location_Country Location::R500;
|
|
|
|
constexpr Location_Country Location::R630;
|
|
|
|
constexpr Location_Country Location::R652;
|
|
|
|
constexpr Location_Country Location::R659;
|
|
|
|
constexpr Location_Country Location::R662;
|
|
|
|
constexpr Location_Country Location::R663;
|
|
|
|
constexpr Location_Country Location::R670;
|
|
|
|
constexpr Location_Country Location::R534;
|
|
|
|
constexpr Location_Country Location::R780;
|
|
|
|
constexpr Location_Country Location::R796;
|
|
|
|
constexpr Location_Country Location::R850;
|
|
|
|
constexpr Location_Country Location::R013;
|
|
|
|
constexpr Location_Country Location::R084;
|
|
|
|
constexpr Location_Country Location::R188;
|
|
|
|
constexpr Location_Country Location::R222;
|
|
|
|
constexpr Location_Country Location::R320;
|
|
|
|
constexpr Location_Country Location::R340;
|
|
|
|
constexpr Location_Country Location::R484;
|
|
|
|
constexpr Location_Country Location::R558;
|
|
|
|
constexpr Location_Country Location::R591;
|
|
|
|
constexpr Location_Country Location::R005;
|
|
|
|
constexpr Location_Country Location::R032;
|
|
|
|
constexpr Location_Country Location::R068;
|
|
|
|
constexpr Location_Country Location::R074;
|
|
|
|
constexpr Location_Country Location::R076;
|
|
|
|
constexpr Location_Country Location::R152;
|
|
|
|
constexpr Location_Country Location::R170;
|
|
|
|
constexpr Location_Country Location::R218;
|
|
|
|
constexpr Location_Country Location::R238;
|
|
|
|
constexpr Location_Country Location::R254;
|
|
|
|
constexpr Location_Country Location::R328;
|
|
|
|
constexpr Location_Country Location::R600;
|
|
|
|
constexpr Location_Country Location::R604;
|
|
|
|
constexpr Location_Country Location::R239;
|
|
|
|
constexpr Location_Country Location::R740;
|
|
|
|
constexpr Location_Country Location::R858;
|
|
|
|
constexpr Location_Country Location::R862;
|
|
|
|
constexpr Location_Country Location::R021;
|
|
|
|
constexpr Location_Country Location::R060;
|
|
|
|
constexpr Location_Country Location::R124;
|
|
|
|
constexpr Location_Country Location::R304;
|
|
|
|
constexpr Location_Country Location::R666;
|
|
|
|
constexpr Location_Country Location::R840;
|
|
|
|
constexpr Location_Country Location::R010;
|
|
|
|
constexpr Location_Country Location::R142;
|
|
|
|
constexpr Location_Country Location::R143;
|
|
|
|
constexpr Location_Country Location::R398;
|
|
|
|
constexpr Location_Country Location::R417;
|
|
|
|
constexpr Location_Country Location::R762;
|
|
|
|
constexpr Location_Country Location::R795;
|
|
|
|
constexpr Location_Country Location::R860;
|
|
|
|
constexpr Location_Country Location::R030;
|
|
|
|
constexpr Location_Country Location::R156;
|
|
|
|
constexpr Location_Country Location::R344;
|
|
|
|
constexpr Location_Country Location::R446;
|
|
|
|
constexpr Location_Country Location::R408;
|
|
|
|
constexpr Location_Country Location::R392;
|
|
|
|
constexpr Location_Country Location::R496;
|
|
|
|
constexpr Location_Country Location::R410;
|
|
|
|
constexpr Location_Country Location::R035;
|
|
|
|
constexpr Location_Country Location::R096;
|
|
|
|
constexpr Location_Country Location::R116;
|
|
|
|
constexpr Location_Country Location::R360;
|
|
|
|
constexpr Location_Country Location::R418;
|
|
|
|
constexpr Location_Country Location::R458;
|
|
|
|
constexpr Location_Country Location::R104;
|
|
|
|
constexpr Location_Country Location::R608;
|
|
|
|
constexpr Location_Country Location::R702;
|
|
|
|
constexpr Location_Country Location::R764;
|
|
|
|
constexpr Location_Country Location::R626;
|
|
|
|
constexpr Location_Country Location::R704;
|
|
|
|
constexpr Location_Country Location::R034;
|
|
|
|
constexpr Location_Country Location::R004;
|
|
|
|
constexpr Location_Country Location::R050;
|
|
|
|
constexpr Location_Country Location::R064;
|
|
|
|
constexpr Location_Country Location::R356;
|
|
|
|
constexpr Location_Country Location::R364;
|
|
|
|
constexpr Location_Country Location::R462;
|
|
|
|
constexpr Location_Country Location::R524;
|
|
|
|
constexpr Location_Country Location::R586;
|
|
|
|
constexpr Location_Country Location::R144;
|
|
|
|
constexpr Location_Country Location::R145;
|
|
|
|
constexpr Location_Country Location::R051;
|
|
|
|
constexpr Location_Country Location::R031;
|
|
|
|
constexpr Location_Country Location::R048;
|
|
|
|
constexpr Location_Country Location::R196;
|
|
|
|
constexpr Location_Country Location::R268;
|
|
|
|
constexpr Location_Country Location::R368;
|
|
|
|
constexpr Location_Country Location::R376;
|
|
|
|
constexpr Location_Country Location::R400;
|
|
|
|
constexpr Location_Country Location::R414;
|
|
|
|
constexpr Location_Country Location::R422;
|
|
|
|
constexpr Location_Country Location::R512;
|
|
|
|
constexpr Location_Country Location::R634;
|
|
|
|
constexpr Location_Country Location::R682;
|
|
|
|
constexpr Location_Country Location::R275;
|
|
|
|
constexpr Location_Country Location::R760;
|
|
|
|
constexpr Location_Country Location::R792;
|
|
|
|
constexpr Location_Country Location::R784;
|
|
|
|
constexpr Location_Country Location::R887;
|
|
|
|
constexpr Location_Country Location::R150;
|
|
|
|
constexpr Location_Country Location::R151;
|
|
|
|
constexpr Location_Country Location::R112;
|
|
|
|
constexpr Location_Country Location::R100;
|
|
|
|
constexpr Location_Country Location::R203;
|
|
|
|
constexpr Location_Country Location::R348;
|
|
|
|
constexpr Location_Country Location::R616;
|
|
|
|
constexpr Location_Country Location::R498;
|
|
|
|
constexpr Location_Country Location::R642;
|
|
|
|
constexpr Location_Country Location::R643;
|
|
|
|
constexpr Location_Country Location::R703;
|
|
|
|
constexpr Location_Country Location::R804;
|
|
|
|
constexpr Location_Country Location::R154;
|
|
|
|
constexpr Location_Country Location::R248;
|
|
|
|
constexpr Location_Country Location::R830;
|
|
|
|
constexpr Location_Country Location::R831;
|
|
|
|
constexpr Location_Country Location::R832;
|
|
|
|
constexpr Location_Country Location::R680;
|
|
|
|
constexpr Location_Country Location::R208;
|
|
|
|
constexpr Location_Country Location::R233;
|
|
|
|
constexpr Location_Country Location::R234;
|
|
|
|
constexpr Location_Country Location::R246;
|
|
|
|
constexpr Location_Country Location::R352;
|
|
|
|
constexpr Location_Country Location::R372;
|
|
|
|
constexpr Location_Country Location::R833;
|
|
|
|
constexpr Location_Country Location::R428;
|
|
|
|
constexpr Location_Country Location::R440;
|
|
|
|
constexpr Location_Country Location::R578;
|
|
|
|
constexpr Location_Country Location::R744;
|
|
|
|
constexpr Location_Country Location::R752;
|
|
|
|
constexpr Location_Country Location::R826;
|
|
|
|
constexpr Location_Country Location::R039;
|
|
|
|
constexpr Location_Country Location::R008;
|
|
|
|
constexpr Location_Country Location::R020;
|
|
|
|
constexpr Location_Country Location::R070;
|
|
|
|
constexpr Location_Country Location::R191;
|
|
|
|
constexpr Location_Country Location::R292;
|
|
|
|
constexpr Location_Country Location::R300;
|
|
|
|
constexpr Location_Country Location::R336;
|
|
|
|
constexpr Location_Country Location::R380;
|
|
|
|
constexpr Location_Country Location::R470;
|
|
|
|
constexpr Location_Country Location::R499;
|
|
|
|
constexpr Location_Country Location::R807;
|
|
|
|
constexpr Location_Country Location::R620;
|
|
|
|
constexpr Location_Country Location::R674;
|
|
|
|
constexpr Location_Country Location::R688;
|
|
|
|
constexpr Location_Country Location::R705;
|
|
|
|
constexpr Location_Country Location::R724;
|
|
|
|
constexpr Location_Country Location::R155;
|
|
|
|
constexpr Location_Country Location::R040;
|
|
|
|
constexpr Location_Country Location::R056;
|
|
|
|
constexpr Location_Country Location::R250;
|
|
|
|
constexpr Location_Country Location::R276;
|
|
|
|
constexpr Location_Country Location::R438;
|
|
|
|
constexpr Location_Country Location::R442;
|
|
|
|
constexpr Location_Country Location::R492;
|
|
|
|
constexpr Location_Country Location::R528;
|
|
|
|
constexpr Location_Country Location::R756;
|
|
|
|
constexpr Location_Country Location::R009;
|
|
|
|
constexpr Location_Country Location::R053;
|
|
|
|
constexpr Location_Country Location::R036;
|
|
|
|
constexpr Location_Country Location::R162;
|
|
|
|
constexpr Location_Country Location::R166;
|
|
|
|
constexpr Location_Country Location::R334;
|
|
|
|
constexpr Location_Country Location::R554;
|
|
|
|
constexpr Location_Country Location::R574;
|
|
|
|
constexpr Location_Country Location::R054;
|
|
|
|
constexpr Location_Country Location::R242;
|
|
|
|
constexpr Location_Country Location::R540;
|
|
|
|
constexpr Location_Country Location::R598;
|
|
|
|
constexpr Location_Country Location::R090;
|
|
|
|
constexpr Location_Country Location::R548;
|
|
|
|
constexpr Location_Country Location::R057;
|
|
|
|
constexpr Location_Country Location::R316;
|
|
|
|
constexpr Location_Country Location::R296;
|
|
|
|
constexpr Location_Country Location::R584;
|
|
|
|
constexpr Location_Country Location::R583;
|
|
|
|
constexpr Location_Country Location::R520;
|
|
|
|
constexpr Location_Country Location::R580;
|
|
|
|
constexpr Location_Country Location::R585;
|
|
|
|
constexpr Location_Country Location::R581;
|
|
|
|
constexpr Location_Country Location::R061;
|
|
|
|
constexpr Location_Country Location::R016;
|
|
|
|
constexpr Location_Country Location::R184;
|
|
|
|
constexpr Location_Country Location::R258;
|
|
|
|
constexpr Location_Country Location::R570;
|
|
|
|
constexpr Location_Country Location::R612;
|
|
|
|
constexpr Location_Country Location::R882;
|
|
|
|
constexpr Location_Country Location::R772;
|
|
|
|
constexpr Location_Country Location::R776;
|
|
|
|
constexpr Location_Country Location::R798;
|
|
|
|
constexpr Location_Country Location::R876;
|
|
|
|
constexpr Location_Country Location::Country_MIN;
|
|
|
|
constexpr Location_Country Location::Country_MAX;
|
|
|
|
constexpr int Location::Country_ARRAYSIZE;
|
|
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
2019-02-27 18:03:57 +01:00
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
class Claim::_Internal {
|
2019-12-28 17:35:59 +01:00
|
|
|
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&
|
2020-10-19 05:24:47 +02:00
|
|
|
Claim::_Internal::stream(const Claim* msg) {
|
2019-12-28 17:35:59 +01:00
|
|
|
return *msg->type_.stream_;
|
|
|
|
}
|
|
|
|
const ::pb::Channel&
|
2020-10-19 05:24:47 +02:00
|
|
|
Claim::_Internal::channel(const Claim* msg) {
|
2019-12-28 17:35:59 +01:00
|
|
|
return *msg->type_.channel_;
|
|
|
|
}
|
|
|
|
const ::pb::ClaimList&
|
2020-10-19 05:24:47 +02:00
|
|
|
Claim::_Internal::collection(const Claim* msg) {
|
2019-12-28 17:35:59 +01:00
|
|
|
return *msg->type_.collection_;
|
|
|
|
}
|
|
|
|
const ::pb::ClaimReference&
|
2020-10-19 05:24:47 +02:00
|
|
|
Claim::_Internal::repost(const Claim* msg) {
|
2019-12-28 17:35:59 +01:00
|
|
|
return *msg->type_.repost_;
|
|
|
|
}
|
|
|
|
const ::pb::Source&
|
2020-10-19 05:24:47 +02:00
|
|
|
Claim::_Internal::thumbnail(const Claim* msg) {
|
2019-12-28 17:35:59 +01:00
|
|
|
return *msg->thumbnail_;
|
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
void Claim::set_allocated_stream(::pb::Stream* stream) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
2019-03-31 06:21:44 +02:00
|
|
|
clear_type();
|
|
|
|
if (stream) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(stream);
|
2019-03-31 06:21:44 +02:00
|
|
|
if (message_arena != submessage_arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
stream = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
2019-03-31 06:21:44 +02:00
|
|
|
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) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
2019-03-31 06:21:44 +02:00
|
|
|
clear_type();
|
|
|
|
if (channel) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(channel);
|
2019-03-31 06:21:44 +02:00
|
|
|
if (message_arena != submessage_arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
channel = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
2019-03-31 06:21:44 +02:00
|
|
|
message_arena, channel, submessage_arena);
|
|
|
|
}
|
|
|
|
set_has_channel();
|
|
|
|
type_.channel_ = channel;
|
|
|
|
}
|
|
|
|
// @@protoc_insertion_point(field_set_allocated:pb.Claim.channel)
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-22 05:32:10 +02:00
|
|
|
void Claim::set_allocated_collection(::pb::ClaimList* collection) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
2019-04-20 17:04:32 +02:00
|
|
|
clear_type();
|
2019-04-22 05:32:10 +02:00
|
|
|
if (collection) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(collection);
|
2019-04-20 17:04:32 +02:00
|
|
|
if (message_arena != submessage_arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
collection = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
2019-04-22 05:32:10 +02:00
|
|
|
message_arena, collection, submessage_arena);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
2019-04-22 05:32:10 +02:00
|
|
|
set_has_collection();
|
|
|
|
type_.collection_ = collection;
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
2019-04-22 05:32:10 +02:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:pb.Claim.collection)
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
void Claim::set_allocated_repost(::pb::ClaimReference* repost) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
2019-04-20 17:04:32 +02:00
|
|
|
clear_type();
|
|
|
|
if (repost) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(repost);
|
2019-04-20 17:04:32 +02:00
|
|
|
if (message_arena != submessage_arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
repost = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
2019-04-20 17:04:32 +02:00
|
|
|
message_arena, repost, submessage_arena);
|
|
|
|
}
|
|
|
|
set_has_repost();
|
|
|
|
type_.repost_ = repost;
|
|
|
|
}
|
|
|
|
// @@protoc_insertion_point(field_set_allocated:pb.Claim.repost)
|
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
Claim::Claim(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena),
|
|
|
|
tags_(arena),
|
|
|
|
languages_(arena),
|
|
|
|
locations_(arena) {
|
2019-02-27 18:03:57 +01:00
|
|
|
SharedCtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
RegisterArenaDtor(arena);
|
|
|
|
// @@protoc_insertion_point(arena_constructor:pb.Claim)
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
Claim::Claim(const Claim& from)
|
2020-10-19 05:24:47 +02:00
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
2019-04-20 17:04:32 +02:00
|
|
|
tags_(from.tags_),
|
|
|
|
languages_(from.languages_),
|
2019-12-28 17:35:59 +01:00
|
|
|
locations_(from.locations_) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_title().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
|
|
|
}
|
|
|
|
description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_description().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
|
|
|
}
|
|
|
|
if (from._internal_has_thumbnail()) {
|
2019-04-20 17:04:32 +02:00
|
|
|
thumbnail_ = new ::pb::Source(*from.thumbnail_);
|
|
|
|
} else {
|
2019-12-28 17:35:59 +01:00
|
|
|
thumbnail_ = nullptr;
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
clear_has_type();
|
|
|
|
switch (from.type_case()) {
|
|
|
|
case kStream: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_stream()->::pb::Stream::MergeFrom(from._internal_stream());
|
2019-03-31 06:21:44 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case kChannel: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_channel()->::pb::Channel::MergeFrom(from._internal_channel());
|
2019-03-31 06:21:44 +02:00
|
|
|
break;
|
|
|
|
}
|
2019-04-22 05:32:10 +02:00
|
|
|
case kCollection: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_collection()->::pb::ClaimList::MergeFrom(from._internal_collection());
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case kRepost: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_repost()->::pb::ClaimReference::MergeFrom(from._internal_repost());
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
case TYPE_NOT_SET: {
|
|
|
|
break;
|
|
|
|
}
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
// @@protoc_insertion_point(copy_constructor:pb.Claim)
|
|
|
|
}
|
|
|
|
|
|
|
|
void Claim::SharedCtor() {
|
2021-09-15 04:57:14 +02:00
|
|
|
title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
thumbnail_ = nullptr;
|
|
|
|
clear_has_type();
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
Claim::~Claim() {
|
|
|
|
// @@protoc_insertion_point(destructor:pb.Claim)
|
|
|
|
SharedDtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void Claim::SharedDtor() {
|
2020-10-19 05:24:47 +02:00
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
|
title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
2019-04-20 17:04:32 +02:00
|
|
|
if (this != internal_default_instance()) delete thumbnail_;
|
2019-03-31 06:21:44 +02:00
|
|
|
if (has_type()) {
|
|
|
|
clear_type();
|
|
|
|
}
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Claim::ArenaDtor(void* object) {
|
|
|
|
Claim* _this = reinterpret_cast< Claim* >(object);
|
|
|
|
(void)_this;
|
|
|
|
}
|
|
|
|
void Claim::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
|
}
|
2019-02-27 18:03:57 +01:00
|
|
|
void Claim::SetCachedSize(int size) const {
|
2019-12-28 17:35:59 +01:00
|
|
|
_cached_size_.Set(size);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
|
|
|
|
void Claim::clear_type() {
|
|
|
|
// @@protoc_insertion_point(one_of_clear_start:pb.Claim)
|
|
|
|
switch (type_case()) {
|
|
|
|
case kStream: {
|
2020-10-19 05:24:47 +02:00
|
|
|
if (GetArena() == nullptr) {
|
|
|
|
delete type_.stream_;
|
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case kChannel: {
|
2020-10-19 05:24:47 +02:00
|
|
|
if (GetArena() == nullptr) {
|
|
|
|
delete type_.channel_;
|
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
break;
|
|
|
|
}
|
2019-04-22 05:32:10 +02:00
|
|
|
case kCollection: {
|
2020-10-19 05:24:47 +02:00
|
|
|
if (GetArena() == nullptr) {
|
|
|
|
delete type_.collection_;
|
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case kRepost: {
|
2020-10-19 05:24:47 +02:00
|
|
|
if (GetArena() == nullptr) {
|
|
|
|
delete type_.repost_;
|
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
case TYPE_NOT_SET: {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
_oneof_case_[0] = TYPE_NOT_SET;
|
|
|
|
}
|
|
|
|
|
2019-02-27 18:03:57 +01:00
|
|
|
|
|
|
|
void Claim::Clear() {
|
|
|
|
// @@protoc_insertion_point(message_clear_start:pb.Claim)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
tags_.Clear();
|
|
|
|
languages_.Clear();
|
|
|
|
locations_.Clear();
|
2021-09-15 04:57:14 +02:00
|
|
|
title_.ClearToEmpty();
|
|
|
|
description_.ClearToEmpty();
|
2020-10-19 05:24:47 +02:00
|
|
|
if (GetArena() == nullptr && thumbnail_ != nullptr) {
|
2019-04-20 17:04:32 +02:00
|
|
|
delete thumbnail_;
|
|
|
|
}
|
2019-12-28 17:35:59 +01:00
|
|
|
thumbnail_ = nullptr;
|
2019-03-31 06:21:44 +02:00
|
|
|
clear_type();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* Claim::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
|
while (!ctx->Done(&ptr)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
|
CHK_(ptr);
|
2019-12-28 17:35:59 +01:00
|
|
|
switch (tag >> 3) {
|
|
|
|
// .pb.Stream stream = 1;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 1:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_stream(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// .pb.Channel channel = 2;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 2:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_channel(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// .pb.ClaimList collection = 3;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 3:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_collection(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// .pb.ClaimReference repost = 4;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 4:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_repost(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// string title = 8;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 8:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
|
|
|
|
auto str = _internal_mutable_title();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Claim.title"));
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// string description = 9;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 9:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
|
|
|
|
auto str = _internal_mutable_description();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Claim.description"));
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// .pb.Source thumbnail = 10;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 10:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_thumbnail(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// repeated string tags = 11;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 11:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) {
|
|
|
|
ptr -= 1;
|
|
|
|
do {
|
|
|
|
ptr += 1;
|
|
|
|
auto str = _internal_add_tags();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Claim.tags"));
|
|
|
|
CHK_(ptr);
|
|
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr));
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// repeated .pb.Language languages = 12;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 12:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) {
|
|
|
|
ptr -= 1;
|
|
|
|
do {
|
|
|
|
ptr += 1;
|
|
|
|
ptr = ctx->ParseMessage(_internal_add_languages(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr));
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// repeated .pb.Location locations = 13;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 13:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) {
|
|
|
|
ptr -= 1;
|
|
|
|
do {
|
|
|
|
ptr += 1;
|
|
|
|
ptr = ctx->ParseMessage(_internal_add_locations(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<106>(ptr));
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
default: {
|
|
|
|
handle_unusual:
|
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
ctx->SetLastTag(tag);
|
|
|
|
goto success;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = UnknownFieldParse(tag,
|
|
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
|
ptr, ctx);
|
|
|
|
CHK_(ptr != nullptr);
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
} // switch
|
|
|
|
} // while
|
2019-04-20 17:04:32 +02:00
|
|
|
success:
|
2020-10-19 05:24:47 +02:00
|
|
|
return ptr;
|
2019-04-20 17:04:32 +02:00
|
|
|
failure:
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = nullptr;
|
|
|
|
goto success;
|
|
|
|
#undef CHK_
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Claim::_InternalSerialize(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
2019-02-27 18:03:57 +01:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:pb.Claim)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
// .pb.Stream stream = 1;
|
2020-10-19 05:24:47 +02:00
|
|
|
if (_internal_has_stream()) {
|
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(
|
|
|
|
1, _Internal::stream(this), target, stream);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
// .pb.Channel channel = 2;
|
2020-10-19 05:24:47 +02:00
|
|
|
if (_internal_has_channel()) {
|
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(
|
|
|
|
2, _Internal::channel(this), target, stream);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-22 05:32:10 +02:00
|
|
|
// .pb.ClaimList collection = 3;
|
2020-10-19 05:24:47 +02:00
|
|
|
if (_internal_has_collection()) {
|
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(
|
|
|
|
3, _Internal::collection(this), target, stream);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// .pb.ClaimReference repost = 4;
|
2020-10-19 05:24:47 +02:00
|
|
|
if (_internal_has_repost()) {
|
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(
|
|
|
|
4, _Internal::repost(this), target, stream);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// string title = 8;
|
|
|
|
if (this->title().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
this->_internal_title().data(), static_cast<int>(this->_internal_title().length()),
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
2019-04-20 17:04:32 +02:00
|
|
|
"pb.Claim.title");
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteStringMaybeAliased(
|
|
|
|
8, this->_internal_title(), target);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// string description = 9;
|
|
|
|
if (this->description().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
this->_internal_description().data(), static_cast<int>(this->_internal_description().length()),
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
2019-04-20 17:04:32 +02:00
|
|
|
"pb.Claim.description");
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteStringMaybeAliased(
|
|
|
|
9, this->_internal_description(), target);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// .pb.Source thumbnail = 10;
|
|
|
|
if (this->has_thumbnail()) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(
|
|
|
|
10, _Internal::thumbnail(this), target, stream);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// repeated string tags = 11;
|
2020-10-19 05:24:47 +02:00
|
|
|
for (int i = 0, n = this->_internal_tags_size(); i < n; i++) {
|
|
|
|
const auto& s = this->_internal_tags(i);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
s.data(), static_cast<int>(s.length()),
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
2019-04-20 17:04:32 +02:00
|
|
|
"pb.Claim.tags");
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteString(11, s, target);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// repeated .pb.Language languages = 12;
|
|
|
|
for (unsigned int i = 0,
|
2020-10-19 05:24:47 +02:00
|
|
|
n = static_cast<unsigned int>(this->_internal_languages_size()); i < n; i++) {
|
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(12, this->_internal_languages(i), target, stream);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// repeated .pb.Location locations = 13;
|
|
|
|
for (unsigned int i = 0,
|
2020-10-19 05:24:47 +02:00
|
|
|
n = static_cast<unsigned int>(this->_internal_locations_size()); i < n; i++) {
|
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(13, this->_internal_locations(i), target, stream);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
// @@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;
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-12-28 17:35:59 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// repeated string tags = 11;
|
|
|
|
total_size += 1 *
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(tags_.size());
|
|
|
|
for (int i = 0, n = tags_.size(); i < n; i++) {
|
|
|
|
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
|
tags_.Get(i));
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// repeated .pb.Language languages = 12;
|
2020-10-19 05:24:47 +02:00
|
|
|
total_size += 1UL * this->_internal_languages_size();
|
|
|
|
for (const auto& msg : this->languages_) {
|
|
|
|
total_size +=
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// repeated .pb.Location locations = 13;
|
2020-10-19 05:24:47 +02:00
|
|
|
total_size += 1UL * this->_internal_locations_size();
|
|
|
|
for (const auto& msg : this->locations_) {
|
|
|
|
total_size +=
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// string title = 8;
|
|
|
|
if (this->title().size() > 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
|
this->_internal_title());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// string description = 9;
|
|
|
|
if (this->description().size() > 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
|
this->_internal_description());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// .pb.Source thumbnail = 10;
|
|
|
|
if (this->has_thumbnail()) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
2019-12-28 17:35:59 +01:00
|
|
|
*thumbnail_);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
switch (type_case()) {
|
|
|
|
// .pb.Stream stream = 1;
|
|
|
|
case kStream: {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
2019-03-31 06:21:44 +02:00
|
|
|
*type_.stream_);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
// .pb.Channel channel = 2;
|
|
|
|
case kChannel: {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
2019-03-31 06:21:44 +02:00
|
|
|
*type_.channel_);
|
|
|
|
break;
|
|
|
|
}
|
2019-04-22 05:32:10 +02:00
|
|
|
// .pb.ClaimList collection = 3;
|
|
|
|
case kCollection: {
|
2019-04-20 17:04:32 +02:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
2019-04-22 05:32:10 +02:00
|
|
|
*type_.collection_);
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
// .pb.ClaimReference repost = 4;
|
|
|
|
case kRepost: {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
2019-04-20 17:04:32 +02:00
|
|
|
*type_.repost_);
|
|
|
|
break;
|
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
case TYPE_NOT_SET: {
|
|
|
|
break;
|
|
|
|
}
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
2019-12-28 17:35:59 +01:00
|
|
|
SetCachedSize(cached_size);
|
2019-02-27 18:03:57 +01:00
|
|
|
return total_size;
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Claim::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-02-27 18:03:57 +01:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_start:pb.Claim)
|
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
|
|
const Claim* source =
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Claim>(
|
2019-02-27 18:03:57 +01:00
|
|
|
&from);
|
2019-12-28 17:35:59 +01:00
|
|
|
if (source == nullptr) {
|
2019-02-27 18:03:57 +01:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Claim)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
2019-02-27 18:03:57 +01:00
|
|
|
} 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);
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
tags_.MergeFrom(from.tags_);
|
|
|
|
languages_.MergeFrom(from.languages_);
|
|
|
|
locations_.MergeFrom(from.locations_);
|
|
|
|
if (from.title().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_title(from._internal_title());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
if (from.description().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_description(from._internal_description());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
if (from.has_thumbnail()) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_thumbnail()->::pb::Source::MergeFrom(from._internal_thumbnail());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
switch (from.type_case()) {
|
|
|
|
case kStream: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_stream()->::pb::Stream::MergeFrom(from._internal_stream());
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case kChannel: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_channel()->::pb::Channel::MergeFrom(from._internal_channel());
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
2019-04-22 05:32:10 +02:00
|
|
|
case kCollection: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_collection()->::pb::ClaimList::MergeFrom(from._internal_collection());
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case kRepost: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_repost()->::pb::ClaimReference::MergeFrom(from._internal_repost());
|
2019-03-31 06:21:44 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case TYPE_NOT_SET: {
|
|
|
|
break;
|
|
|
|
}
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Claim::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-02-27 18:03:57 +01:00
|
|
|
// @@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::InternalSwap(Claim* other) {
|
|
|
|
using std::swap;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
|
tags_.InternalSwap(&other->tags_);
|
|
|
|
languages_.InternalSwap(&other->languages_);
|
|
|
|
locations_.InternalSwap(&other->locations_);
|
|
|
|
title_.Swap(&other->title_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
description_.Swap(&other->description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
2019-04-20 17:04:32 +02:00
|
|
|
swap(thumbnail_, other->thumbnail_);
|
2019-02-27 18:03:57 +01:00
|
|
|
swap(type_, other->type_);
|
2019-03-31 06:21:44 +02:00
|
|
|
swap(_oneof_case_[0], other->_oneof_case_[0]);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Claim::GetMetadata() const {
|
|
|
|
return GetMetadataStatic();
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
class Stream::_Internal {
|
2019-12-28 17:35:59 +01:00
|
|
|
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&
|
2020-10-19 05:24:47 +02:00
|
|
|
Stream::_Internal::source(const Stream* msg) {
|
2019-12-28 17:35:59 +01:00
|
|
|
return *msg->source_;
|
|
|
|
}
|
|
|
|
const ::pb::Fee&
|
2020-10-19 05:24:47 +02:00
|
|
|
Stream::_Internal::fee(const Stream* msg) {
|
2019-12-28 17:35:59 +01:00
|
|
|
return *msg->fee_;
|
|
|
|
}
|
|
|
|
const ::pb::Image&
|
2020-10-19 05:24:47 +02:00
|
|
|
Stream::_Internal::image(const Stream* msg) {
|
2019-12-28 17:35:59 +01:00
|
|
|
return *msg->type_.image_;
|
|
|
|
}
|
|
|
|
const ::pb::Video&
|
2020-10-19 05:24:47 +02:00
|
|
|
Stream::_Internal::video(const Stream* msg) {
|
2019-12-28 17:35:59 +01:00
|
|
|
return *msg->type_.video_;
|
|
|
|
}
|
|
|
|
const ::pb::Audio&
|
2020-10-19 05:24:47 +02:00
|
|
|
Stream::_Internal::audio(const Stream* msg) {
|
2019-12-28 17:35:59 +01:00
|
|
|
return *msg->type_.audio_;
|
|
|
|
}
|
|
|
|
const ::pb::Software&
|
2020-10-19 05:24:47 +02:00
|
|
|
Stream::_Internal::software(const Stream* msg) {
|
2019-12-28 17:35:59 +01:00
|
|
|
return *msg->type_.software_;
|
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
void Stream::set_allocated_image(::pb::Image* image) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
2019-04-20 17:04:32 +02:00
|
|
|
clear_type();
|
|
|
|
if (image) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(image);
|
2019-04-20 17:04:32 +02:00
|
|
|
if (message_arena != submessage_arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
image = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
2019-04-20 17:04:32 +02:00
|
|
|
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) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
2019-04-20 17:04:32 +02:00
|
|
|
clear_type();
|
|
|
|
if (video) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(video);
|
2019-04-20 17:04:32 +02:00
|
|
|
if (message_arena != submessage_arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
video = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
2019-04-20 17:04:32 +02:00
|
|
|
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) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
2019-04-20 17:04:32 +02:00
|
|
|
clear_type();
|
|
|
|
if (audio) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(audio);
|
2019-04-20 17:04:32 +02:00
|
|
|
if (message_arena != submessage_arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
audio = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
2019-04-20 17:04:32 +02:00
|
|
|
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) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
2019-04-20 17:04:32 +02:00
|
|
|
clear_type();
|
|
|
|
if (software) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(software);
|
2019-04-20 17:04:32 +02:00
|
|
|
if (message_arena != submessage_arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
software = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
2019-04-20 17:04:32 +02:00
|
|
|
message_arena, software, submessage_arena);
|
|
|
|
}
|
|
|
|
set_has_software();
|
|
|
|
type_.software_ = software;
|
|
|
|
}
|
|
|
|
// @@protoc_insertion_point(field_set_allocated:pb.Stream.software)
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
Stream::Stream(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
2019-02-27 18:03:57 +01:00
|
|
|
SharedCtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
RegisterArenaDtor(arena);
|
|
|
|
// @@protoc_insertion_point(arena_constructor:pb.Stream)
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
Stream::Stream(const Stream& from)
|
2020-10-19 05:24:47 +02:00
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
author_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_author().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
author_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_author(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
|
|
|
}
|
|
|
|
license_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_license().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
license_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_license(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
|
|
|
}
|
|
|
|
license_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_license_url().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
license_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_license_url(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
|
|
|
}
|
|
|
|
if (from._internal_has_source()) {
|
2019-04-20 17:04:32 +02:00
|
|
|
source_ = new ::pb::Source(*from.source_);
|
|
|
|
} else {
|
2019-12-28 17:35:59 +01:00
|
|
|
source_ = nullptr;
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
if (from._internal_has_fee()) {
|
2019-04-20 17:04:32 +02:00
|
|
|
fee_ = new ::pb::Fee(*from.fee_);
|
|
|
|
} else {
|
2019-12-28 17:35:59 +01:00
|
|
|
fee_ = nullptr;
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
release_time_ = from.release_time_;
|
|
|
|
clear_has_type();
|
|
|
|
switch (from.type_case()) {
|
|
|
|
case kImage: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_image()->::pb::Image::MergeFrom(from._internal_image());
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case kVideo: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_video()->::pb::Video::MergeFrom(from._internal_video());
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case kAudio: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_audio()->::pb::Audio::MergeFrom(from._internal_audio());
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case kSoftware: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_software()->::pb::Software::MergeFrom(from._internal_software());
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case TYPE_NOT_SET: {
|
|
|
|
break;
|
|
|
|
}
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(copy_constructor:pb.Stream)
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Stream::SharedCtor() {
|
2021-09-15 04:57:14 +02:00
|
|
|
author_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
license_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
license_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
|
|
|
|
reinterpret_cast<char*>(&source_) - reinterpret_cast<char*>(this)),
|
|
|
|
0, static_cast<size_t>(reinterpret_cast<char*>(&release_time_) -
|
|
|
|
reinterpret_cast<char*>(&source_)) + sizeof(release_time_));
|
|
|
|
clear_has_type();
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
Stream::~Stream() {
|
|
|
|
// @@protoc_insertion_point(destructor:pb.Stream)
|
2019-02-27 18:03:57 +01:00
|
|
|
SharedDtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Stream::SharedDtor() {
|
2020-10-19 05:24:47 +02:00
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
|
author_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
license_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
license_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
2019-04-20 17:04:32 +02:00
|
|
|
if (this != internal_default_instance()) delete source_;
|
|
|
|
if (this != internal_default_instance()) delete fee_;
|
|
|
|
if (has_type()) {
|
|
|
|
clear_type();
|
|
|
|
}
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Stream::ArenaDtor(void* object) {
|
|
|
|
Stream* _this = reinterpret_cast< Stream* >(object);
|
|
|
|
(void)_this;
|
|
|
|
}
|
|
|
|
void Stream::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
void Stream::SetCachedSize(int size) const {
|
2019-12-28 17:35:59 +01:00
|
|
|
_cached_size_.Set(size);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Stream::clear_type() {
|
|
|
|
// @@protoc_insertion_point(one_of_clear_start:pb.Stream)
|
|
|
|
switch (type_case()) {
|
|
|
|
case kImage: {
|
2020-10-19 05:24:47 +02:00
|
|
|
if (GetArena() == nullptr) {
|
|
|
|
delete type_.image_;
|
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case kVideo: {
|
2020-10-19 05:24:47 +02:00
|
|
|
if (GetArena() == nullptr) {
|
|
|
|
delete type_.video_;
|
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case kAudio: {
|
2020-10-19 05:24:47 +02:00
|
|
|
if (GetArena() == nullptr) {
|
|
|
|
delete type_.audio_;
|
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case kSoftware: {
|
2020-10-19 05:24:47 +02:00
|
|
|
if (GetArena() == nullptr) {
|
|
|
|
delete type_.software_;
|
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case TYPE_NOT_SET: {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
_oneof_case_[0] = TYPE_NOT_SET;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Stream::Clear() {
|
|
|
|
// @@protoc_insertion_point(message_clear_start:pb.Stream)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2021-09-15 04:57:14 +02:00
|
|
|
author_.ClearToEmpty();
|
|
|
|
license_.ClearToEmpty();
|
|
|
|
license_url_.ClearToEmpty();
|
2020-10-19 05:24:47 +02:00
|
|
|
if (GetArena() == nullptr && source_ != nullptr) {
|
2019-04-20 17:04:32 +02:00
|
|
|
delete source_;
|
|
|
|
}
|
2019-12-28 17:35:59 +01:00
|
|
|
source_ = nullptr;
|
2020-10-19 05:24:47 +02:00
|
|
|
if (GetArena() == nullptr && fee_ != nullptr) {
|
2019-04-20 17:04:32 +02:00
|
|
|
delete fee_;
|
|
|
|
}
|
2019-12-28 17:35:59 +01:00
|
|
|
fee_ = nullptr;
|
|
|
|
release_time_ = PROTOBUF_LONGLONG(0);
|
2019-04-20 17:04:32 +02:00
|
|
|
clear_type();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* Stream::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
|
while (!ctx->Done(&ptr)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
|
CHK_(ptr);
|
2019-12-28 17:35:59 +01:00
|
|
|
switch (tag >> 3) {
|
|
|
|
// .pb.Source source = 1;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 1:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// string author = 2;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 2:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
|
auto str = _internal_mutable_author();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Stream.author"));
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// string license = 3;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 3:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
|
|
auto str = _internal_mutable_license();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Stream.license"));
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// string license_url = 4;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 4:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
|
auto str = _internal_mutable_license_url();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Stream.license_url"));
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// int64 release_time = 5;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 5:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
|
|
|
|
release_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// .pb.Fee fee = 6;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 6:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_fee(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// .pb.Image image = 10;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 10:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_image(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// .pb.Video video = 11;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 11:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) {
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_video(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// .pb.Audio audio = 12;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 12:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) {
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_audio(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// .pb.Software software = 13;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 13:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) {
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_software(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
default: {
|
|
|
|
handle_unusual:
|
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
ctx->SetLastTag(tag);
|
|
|
|
goto success;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = UnknownFieldParse(tag,
|
|
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
|
ptr, ctx);
|
|
|
|
CHK_(ptr != nullptr);
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
} // switch
|
|
|
|
} // while
|
2019-02-27 18:03:57 +01:00
|
|
|
success:
|
2020-10-19 05:24:47 +02:00
|
|
|
return ptr;
|
2019-02-27 18:03:57 +01:00
|
|
|
failure:
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = nullptr;
|
|
|
|
goto success;
|
|
|
|
#undef CHK_
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Stream::_InternalSerialize(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:pb.Stream)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// .pb.Source source = 1;
|
|
|
|
if (this->has_source()) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(
|
|
|
|
1, _Internal::source(this), target, stream);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// string author = 2;
|
|
|
|
if (this->author().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
this->_internal_author().data(), static_cast<int>(this->_internal_author().length()),
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
2019-04-20 17:04:32 +02:00
|
|
|
"pb.Stream.author");
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteStringMaybeAliased(
|
|
|
|
2, this->_internal_author(), target);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// string license = 3;
|
|
|
|
if (this->license().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
this->_internal_license().data(), static_cast<int>(this->_internal_license().length()),
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
2019-04-20 17:04:32 +02:00
|
|
|
"pb.Stream.license");
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteStringMaybeAliased(
|
|
|
|
3, this->_internal_license(), target);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// string license_url = 4;
|
|
|
|
if (this->license_url().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
this->_internal_license_url().data(), static_cast<int>(this->_internal_license_url().length()),
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
2019-04-20 17:04:32 +02:00
|
|
|
"pb.Stream.license_url");
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteStringMaybeAliased(
|
|
|
|
4, this->_internal_license_url(), target);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// int64 release_time = 5;
|
|
|
|
if (this->release_time() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_release_time(), target);
|
2019-03-01 21:06:55 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// .pb.Fee fee = 6;
|
|
|
|
if (this->has_fee()) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(
|
|
|
|
6, _Internal::fee(this), target, stream);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// .pb.Image image = 10;
|
2020-10-19 05:24:47 +02:00
|
|
|
if (_internal_has_image()) {
|
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(
|
|
|
|
10, _Internal::image(this), target, stream);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// .pb.Video video = 11;
|
2020-10-19 05:24:47 +02:00
|
|
|
if (_internal_has_video()) {
|
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(
|
|
|
|
11, _Internal::video(this), target, stream);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// .pb.Audio audio = 12;
|
2020-10-19 05:24:47 +02:00
|
|
|
if (_internal_has_audio()) {
|
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(
|
|
|
|
12, _Internal::audio(this), target, stream);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// .pb.Software software = 13;
|
2020-10-19 05:24:47 +02:00
|
|
|
if (_internal_has_software()) {
|
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(
|
|
|
|
13, _Internal::software(this), target, stream);
|
2019-03-04 16:46:08 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_end:pb.Stream)
|
2019-02-27 18:03:57 +01:00
|
|
|
return target;
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
size_t Stream::ByteSizeLong() const {
|
|
|
|
// @@protoc_insertion_point(message_byte_size_start:pb.Stream)
|
2019-02-27 18:03:57 +01:00
|
|
|
size_t total_size = 0;
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-12-28 17:35:59 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// string author = 2;
|
|
|
|
if (this->author().size() > 0) {
|
2019-02-27 18:03:57 +01:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
|
this->_internal_author());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// string license = 3;
|
|
|
|
if (this->license().size() > 0) {
|
2019-02-27 18:03:57 +01:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
|
this->_internal_license());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// string license_url = 4;
|
|
|
|
if (this->license_url().size() > 0) {
|
2019-03-31 06:21:44 +02:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
|
this->_internal_license_url());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// .pb.Source source = 1;
|
|
|
|
if (this->has_source()) {
|
2019-02-27 18:03:57 +01:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
2019-12-28 17:35:59 +01:00
|
|
|
*source_);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// .pb.Fee fee = 6;
|
|
|
|
if (this->has_fee()) {
|
2019-02-27 18:03:57 +01:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
2019-12-28 17:35:59 +01:00
|
|
|
*fee_);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// int64 release_time = 5;
|
|
|
|
if (this->release_time() != 0) {
|
2019-03-31 06:21:44 +02:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
|
|
|
|
this->_internal_release_time());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
switch (type_case()) {
|
|
|
|
// .pb.Image image = 10;
|
|
|
|
case kImage: {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
2019-04-20 17:04:32 +02:00
|
|
|
*type_.image_);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
// .pb.Video video = 11;
|
|
|
|
case kVideo: {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
2019-04-20 17:04:32 +02:00
|
|
|
*type_.video_);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
// .pb.Audio audio = 12;
|
|
|
|
case kAudio: {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
2019-04-20 17:04:32 +02:00
|
|
|
*type_.audio_);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
// .pb.Software software = 13;
|
|
|
|
case kSoftware: {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
2019-04-20 17:04:32 +02:00
|
|
|
*type_.software_);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case TYPE_NOT_SET: {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
2019-12-28 17:35:59 +01:00
|
|
|
SetCachedSize(cached_size);
|
2019-02-27 18:03:57 +01:00
|
|
|
return total_size;
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Stream::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_start:pb.Stream)
|
2019-02-27 18:03:57 +01:00
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
2019-04-20 17:04:32 +02:00
|
|
|
const Stream* source =
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Stream>(
|
2019-02-27 18:03:57 +01:00
|
|
|
&from);
|
2019-12-28 17:35:59 +01:00
|
|
|
if (source == nullptr) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Stream)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
2019-02-27 18:03:57 +01:00
|
|
|
} else {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Stream)
|
2019-02-27 18:03:57 +01:00
|
|
|
MergeFrom(*source);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Stream::MergeFrom(const Stream& from) {
|
|
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Stream)
|
2019-02-27 18:03:57 +01:00
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.author().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_author(from._internal_author());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.license().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_license(from._internal_license());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.license_url().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_license_url(from._internal_license_url());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.has_source()) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_source()->::pb::Source::MergeFrom(from._internal_source());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.has_fee()) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_fee()->::pb::Fee::MergeFrom(from._internal_fee());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.release_time() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_release_time(from._internal_release_time());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
switch (from.type_case()) {
|
|
|
|
case kImage: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_image()->::pb::Image::MergeFrom(from._internal_image());
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case kVideo: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_video()->::pb::Video::MergeFrom(from._internal_video());
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case kAudio: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_audio()->::pb::Audio::MergeFrom(from._internal_audio());
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case kSoftware: {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_software()->::pb::Software::MergeFrom(from._internal_software());
|
2019-04-20 17:04:32 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case TYPE_NOT_SET: {
|
|
|
|
break;
|
|
|
|
}
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Stream::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_copy_from_start:pb.Stream)
|
2019-02-27 18:03:57 +01:00
|
|
|
if (&from == this) return;
|
|
|
|
Clear();
|
|
|
|
MergeFrom(from);
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Stream::CopyFrom(const Stream& from) {
|
|
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Stream)
|
2019-02-27 18:03:57 +01:00
|
|
|
if (&from == this) return;
|
|
|
|
Clear();
|
|
|
|
MergeFrom(from);
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
bool Stream::IsInitialized() const {
|
2019-02-27 18:03:57 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Stream::InternalSwap(Stream* other) {
|
2019-02-27 18:03:57 +01:00
|
|
|
using std::swap;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
|
author_.Swap(&other->author_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
license_.Swap(&other->license_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
license_url_.Swap(&other->license_url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
|
PROTOBUF_FIELD_OFFSET(Stream, release_time_)
|
|
|
|
+ sizeof(Stream::release_time_)
|
|
|
|
- PROTOBUF_FIELD_OFFSET(Stream, source_)>(
|
|
|
|
reinterpret_cast<char*>(&source_),
|
|
|
|
reinterpret_cast<char*>(&other->source_));
|
2019-04-20 17:04:32 +02:00
|
|
|
swap(type_, other->type_);
|
|
|
|
swap(_oneof_case_[0], other->_oneof_case_[0]);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Stream::GetMetadata() const {
|
|
|
|
return GetMetadataStatic();
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
class Channel::_Internal {
|
2019-12-28 17:35:59 +01:00
|
|
|
public:
|
|
|
|
static const ::pb::Source& cover(const Channel* msg);
|
|
|
|
static const ::pb::ClaimList& featured(const Channel* msg);
|
|
|
|
};
|
|
|
|
|
|
|
|
const ::pb::Source&
|
2020-10-19 05:24:47 +02:00
|
|
|
Channel::_Internal::cover(const Channel* msg) {
|
2019-12-28 17:35:59 +01:00
|
|
|
return *msg->cover_;
|
|
|
|
}
|
|
|
|
const ::pb::ClaimList&
|
2020-10-19 05:24:47 +02:00
|
|
|
Channel::_Internal::featured(const Channel* msg) {
|
2019-12-28 17:35:59 +01:00
|
|
|
return *msg->featured_;
|
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
Channel::Channel(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
2019-02-27 18:03:57 +01:00
|
|
|
SharedCtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
RegisterArenaDtor(arena);
|
|
|
|
// @@protoc_insertion_point(arena_constructor:pb.Channel)
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
Channel::Channel(const Channel& from)
|
2020-10-19 05:24:47 +02:00
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_public_key().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_public_key(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
|
|
|
}
|
|
|
|
email_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_email().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
email_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_email(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
|
|
|
}
|
|
|
|
website_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_website_url().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
website_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_website_url(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
|
|
|
}
|
|
|
|
if (from._internal_has_cover()) {
|
2019-04-20 17:04:32 +02:00
|
|
|
cover_ = new ::pb::Source(*from.cover_);
|
2019-02-27 18:03:57 +01:00
|
|
|
} else {
|
2019-12-28 17:35:59 +01:00
|
|
|
cover_ = nullptr;
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
if (from._internal_has_featured()) {
|
2019-04-20 17:04:32 +02:00
|
|
|
featured_ = new ::pb::ClaimList(*from.featured_);
|
2019-02-27 18:03:57 +01:00
|
|
|
} else {
|
2019-12-28 17:35:59 +01:00
|
|
|
featured_ = nullptr;
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(copy_constructor:pb.Channel)
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Channel::SharedCtor() {
|
2021-09-15 04:57:14 +02:00
|
|
|
public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
email_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
website_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
|
|
|
|
reinterpret_cast<char*>(&cover_) - reinterpret_cast<char*>(this)),
|
|
|
|
0, static_cast<size_t>(reinterpret_cast<char*>(&featured_) -
|
|
|
|
reinterpret_cast<char*>(&cover_)) + sizeof(featured_));
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
Channel::~Channel() {
|
|
|
|
// @@protoc_insertion_point(destructor:pb.Channel)
|
2019-02-27 18:03:57 +01:00
|
|
|
SharedDtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Channel::SharedDtor() {
|
2020-10-19 05:24:47 +02:00
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
|
public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
email_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
website_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
2019-04-20 17:04:32 +02:00
|
|
|
if (this != internal_default_instance()) delete cover_;
|
|
|
|
if (this != internal_default_instance()) delete featured_;
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Channel::ArenaDtor(void* object) {
|
|
|
|
Channel* _this = reinterpret_cast< Channel* >(object);
|
|
|
|
(void)_this;
|
|
|
|
}
|
|
|
|
void Channel::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
void Channel::SetCachedSize(int size) const {
|
2019-12-28 17:35:59 +01:00
|
|
|
_cached_size_.Set(size);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Channel::Clear() {
|
|
|
|
// @@protoc_insertion_point(message_clear_start:pb.Channel)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2021-09-15 04:57:14 +02:00
|
|
|
public_key_.ClearToEmpty();
|
|
|
|
email_.ClearToEmpty();
|
|
|
|
website_url_.ClearToEmpty();
|
2020-10-19 05:24:47 +02:00
|
|
|
if (GetArena() == nullptr && cover_ != nullptr) {
|
2019-04-20 17:04:32 +02:00
|
|
|
delete cover_;
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-12-28 17:35:59 +01:00
|
|
|
cover_ = nullptr;
|
2020-10-19 05:24:47 +02:00
|
|
|
if (GetArena() == nullptr && featured_ != nullptr) {
|
2019-04-20 17:04:32 +02:00
|
|
|
delete featured_;
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-12-28 17:35:59 +01:00
|
|
|
featured_ = nullptr;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* Channel::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
|
while (!ctx->Done(&ptr)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
|
CHK_(ptr);
|
2019-12-28 17:35:59 +01:00
|
|
|
switch (tag >> 3) {
|
|
|
|
// bytes public_key = 1;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 1:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
|
auto str = _internal_mutable_public_key();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// string email = 2;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 2:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
|
auto str = _internal_mutable_email();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Channel.email"));
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// string website_url = 3;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 3:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
|
|
auto str = _internal_mutable_website_url();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Channel.website_url"));
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// .pb.Source cover = 4;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 4:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_cover(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// .pb.ClaimList featured = 5;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 5:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_featured(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
default: {
|
|
|
|
handle_unusual:
|
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
ctx->SetLastTag(tag);
|
|
|
|
goto success;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = UnknownFieldParse(tag,
|
|
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
|
ptr, ctx);
|
|
|
|
CHK_(ptr != nullptr);
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
} // switch
|
|
|
|
} // while
|
2019-02-27 18:03:57 +01:00
|
|
|
success:
|
2020-10-19 05:24:47 +02:00
|
|
|
return ptr;
|
2019-02-27 18:03:57 +01:00
|
|
|
failure:
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = nullptr;
|
|
|
|
goto success;
|
|
|
|
#undef CHK_
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Channel::_InternalSerialize(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:pb.Channel)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-04-20 17:04:32 +02:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
// bytes public_key = 1;
|
|
|
|
if (this->public_key().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteBytesMaybeAliased(
|
|
|
|
1, this->_internal_public_key(), target);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// string email = 2;
|
|
|
|
if (this->email().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
this->_internal_email().data(), static_cast<int>(this->_internal_email().length()),
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
2019-04-20 17:04:32 +02:00
|
|
|
"pb.Channel.email");
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteStringMaybeAliased(
|
|
|
|
2, this->_internal_email(), target);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// string website_url = 3;
|
|
|
|
if (this->website_url().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
this->_internal_website_url().data(), static_cast<int>(this->_internal_website_url().length()),
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
2019-04-20 17:04:32 +02:00
|
|
|
"pb.Channel.website_url");
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteStringMaybeAliased(
|
|
|
|
3, this->_internal_website_url(), target);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// .pb.Source cover = 4;
|
|
|
|
if (this->has_cover()) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(
|
|
|
|
4, _Internal::cover(this), target, stream);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// .pb.ClaimList featured = 5;
|
|
|
|
if (this->has_featured()) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(
|
|
|
|
5, _Internal::featured(this), target, stream);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_end:pb.Channel)
|
2019-02-27 18:03:57 +01:00
|
|
|
return target;
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
size_t Channel::ByteSizeLong() const {
|
|
|
|
// @@protoc_insertion_point(message_byte_size_start:pb.Channel)
|
2019-02-27 18:03:57 +01:00
|
|
|
size_t total_size = 0;
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-12-28 17:35:59 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// bytes public_key = 1;
|
|
|
|
if (this->public_key().size() > 0) {
|
2019-02-27 18:03:57 +01:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
|
|
this->_internal_public_key());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// string email = 2;
|
|
|
|
if (this->email().size() > 0) {
|
2019-03-31 06:21:44 +02:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
|
this->_internal_email());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// string website_url = 3;
|
|
|
|
if (this->website_url().size() > 0) {
|
2019-03-31 06:21:44 +02:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
|
this->_internal_website_url());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// .pb.Source cover = 4;
|
|
|
|
if (this->has_cover()) {
|
2019-02-27 18:03:57 +01:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
2019-12-28 17:35:59 +01:00
|
|
|
*cover_);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// .pb.ClaimList featured = 5;
|
|
|
|
if (this->has_featured()) {
|
2019-03-31 06:21:44 +02:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
2019-12-28 17:35:59 +01:00
|
|
|
*featured_);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
2019-12-28 17:35:59 +01:00
|
|
|
SetCachedSize(cached_size);
|
2019-02-27 18:03:57 +01:00
|
|
|
return total_size;
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Channel::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_start:pb.Channel)
|
2019-02-27 18:03:57 +01:00
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
2019-04-20 17:04:32 +02:00
|
|
|
const Channel* source =
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Channel>(
|
2019-02-27 18:03:57 +01:00
|
|
|
&from);
|
2019-12-28 17:35:59 +01:00
|
|
|
if (source == nullptr) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Channel)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
2019-02-27 18:03:57 +01:00
|
|
|
} else {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Channel)
|
2019-02-27 18:03:57 +01:00
|
|
|
MergeFrom(*source);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Channel::MergeFrom(const Channel& from) {
|
|
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Channel)
|
2019-02-27 18:03:57 +01:00
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.public_key().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_public_key(from._internal_public_key());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.email().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_email(from._internal_email());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.website_url().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_website_url(from._internal_website_url());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.has_cover()) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_cover()->::pb::Source::MergeFrom(from._internal_cover());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
if (from.has_featured()) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_featured()->::pb::ClaimList::MergeFrom(from._internal_featured());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Channel::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@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::InternalSwap(Channel* other) {
|
|
|
|
using std::swap;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
|
public_key_.Swap(&other->public_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
email_.Swap(&other->email_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
website_url_.Swap(&other->website_url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
|
PROTOBUF_FIELD_OFFSET(Channel, featured_)
|
|
|
|
+ sizeof(Channel::featured_)
|
|
|
|
- PROTOBUF_FIELD_OFFSET(Channel, cover_)>(
|
|
|
|
reinterpret_cast<char*>(&cover_),
|
|
|
|
reinterpret_cast<char*>(&other->cover_));
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Channel::GetMetadata() const {
|
|
|
|
return GetMetadataStatic();
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
class ClaimReference::_Internal {
|
2019-12-28 17:35:59 +01:00
|
|
|
public:
|
|
|
|
};
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
ClaimReference::ClaimReference(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
2019-04-20 17:04:32 +02:00
|
|
|
SharedCtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
RegisterArenaDtor(arena);
|
|
|
|
// @@protoc_insertion_point(arena_constructor:pb.ClaimReference)
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
ClaimReference::ClaimReference(const ClaimReference& from)
|
2020-10-19 05:24:47 +02:00
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
claim_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_claim_hash().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
claim_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_claim_hash(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
// @@protoc_insertion_point(copy_constructor:pb.ClaimReference)
|
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void ClaimReference::SharedCtor() {
|
2021-09-15 04:57:14 +02:00
|
|
|
claim_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ClaimReference::~ClaimReference() {
|
|
|
|
// @@protoc_insertion_point(destructor:pb.ClaimReference)
|
|
|
|
SharedDtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void ClaimReference::SharedDtor() {
|
2020-10-19 05:24:47 +02:00
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
|
claim_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void ClaimReference::ArenaDtor(void* object) {
|
|
|
|
ClaimReference* _this = reinterpret_cast< ClaimReference* >(object);
|
|
|
|
(void)_this;
|
|
|
|
}
|
|
|
|
void ClaimReference::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
void ClaimReference::SetCachedSize(int size) const {
|
2019-12-28 17:35:59 +01:00
|
|
|
_cached_size_.Set(size);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void ClaimReference::Clear() {
|
|
|
|
// @@protoc_insertion_point(message_clear_start:pb.ClaimReference)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-04-20 17:04:32 +02:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2021-09-15 04:57:14 +02:00
|
|
|
claim_hash_.ClearToEmpty();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* ClaimReference::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
|
while (!ctx->Done(&ptr)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
|
CHK_(ptr);
|
2019-12-28 17:35:59 +01:00
|
|
|
switch (tag >> 3) {
|
|
|
|
// bytes claim_hash = 1;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 1:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
|
auto str = _internal_mutable_claim_hash();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
default: {
|
|
|
|
handle_unusual:
|
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
ctx->SetLastTag(tag);
|
|
|
|
goto success;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = UnknownFieldParse(tag,
|
|
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
|
ptr, ctx);
|
|
|
|
CHK_(ptr != nullptr);
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
} // switch
|
|
|
|
} // while
|
2019-04-20 17:04:32 +02:00
|
|
|
success:
|
2020-10-19 05:24:47 +02:00
|
|
|
return ptr;
|
2019-04-20 17:04:32 +02:00
|
|
|
failure:
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = nullptr;
|
|
|
|
goto success;
|
|
|
|
#undef CHK_
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* ClaimReference::_InternalSerialize(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:pb.ClaimReference)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-04-20 17:04:32 +02:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
// bytes claim_hash = 1;
|
|
|
|
if (this->claim_hash().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteBytesMaybeAliased(
|
|
|
|
1, this->_internal_claim_hash(), target);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
// @@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;
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-12-28 17:35:59 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// bytes claim_hash = 1;
|
|
|
|
if (this->claim_hash().size() > 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
|
|
this->_internal_claim_hash());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
2019-12-28 17:35:59 +01:00
|
|
|
SetCachedSize(cached_size);
|
2019-04-20 17:04:32 +02:00
|
|
|
return total_size;
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void ClaimReference::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_start:pb.ClaimReference)
|
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
|
|
const ClaimReference* source =
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ClaimReference>(
|
2019-04-20 17:04:32 +02:00
|
|
|
&from);
|
2019-12-28 17:35:59 +01:00
|
|
|
if (source == nullptr) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.ClaimReference)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
2019-04-20 17:04:32 +02:00
|
|
|
} 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);
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-04-20 17:04:32 +02:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
if (from.claim_hash().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_claim_hash(from._internal_claim_hash());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void ClaimReference::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@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::InternalSwap(ClaimReference* other) {
|
|
|
|
using std::swap;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
|
claim_hash_.Swap(&other->claim_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata ClaimReference::GetMetadata() const {
|
|
|
|
return GetMetadataStatic();
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
class ClaimList::_Internal {
|
2019-12-28 17:35:59 +01:00
|
|
|
public:
|
|
|
|
};
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
ClaimList::ClaimList(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena),
|
|
|
|
claim_references_(arena) {
|
2019-04-20 17:04:32 +02:00
|
|
|
SharedCtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
RegisterArenaDtor(arena);
|
|
|
|
// @@protoc_insertion_point(arena_constructor:pb.ClaimList)
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
ClaimList::ClaimList(const ClaimList& from)
|
2020-10-19 05:24:47 +02:00
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
2019-12-28 17:35:59 +01:00
|
|
|
claim_references_(from.claim_references_) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
2019-04-20 17:04:32 +02:00
|
|
|
list_type_ = from.list_type_;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:pb.ClaimList)
|
|
|
|
}
|
|
|
|
|
|
|
|
void ClaimList::SharedCtor() {
|
2021-09-15 04:57:14 +02:00
|
|
|
list_type_ = 0;
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ClaimList::~ClaimList() {
|
|
|
|
// @@protoc_insertion_point(destructor:pb.ClaimList)
|
|
|
|
SharedDtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void ClaimList::SharedDtor() {
|
2020-10-19 05:24:47 +02:00
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void ClaimList::ArenaDtor(void* object) {
|
|
|
|
ClaimList* _this = reinterpret_cast< ClaimList* >(object);
|
|
|
|
(void)_this;
|
|
|
|
}
|
|
|
|
void ClaimList::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
void ClaimList::SetCachedSize(int size) const {
|
2019-12-28 17:35:59 +01:00
|
|
|
_cached_size_.Set(size);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void ClaimList::Clear() {
|
|
|
|
// @@protoc_insertion_point(message_clear_start:pb.ClaimList)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-04-20 17:04:32 +02:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
claim_references_.Clear();
|
|
|
|
list_type_ = 0;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* ClaimList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
|
while (!ctx->Done(&ptr)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
|
CHK_(ptr);
|
2019-12-28 17:35:59 +01:00
|
|
|
switch (tag >> 3) {
|
|
|
|
// .pb.ClaimList.ListType list_type = 1;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 1:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
_internal_set_list_type(static_cast<::pb::ClaimList_ListType>(val));
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// repeated .pb.ClaimReference claim_references = 2;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 2:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
|
ptr -= 1;
|
|
|
|
do {
|
|
|
|
ptr += 1;
|
|
|
|
ptr = ctx->ParseMessage(_internal_add_claim_references(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
default: {
|
|
|
|
handle_unusual:
|
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
ctx->SetLastTag(tag);
|
|
|
|
goto success;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = UnknownFieldParse(tag,
|
|
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
|
ptr, ctx);
|
|
|
|
CHK_(ptr != nullptr);
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
} // switch
|
|
|
|
} // while
|
2019-04-20 17:04:32 +02:00
|
|
|
success:
|
2020-10-19 05:24:47 +02:00
|
|
|
return ptr;
|
2019-04-20 17:04:32 +02:00
|
|
|
failure:
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = nullptr;
|
|
|
|
goto success;
|
|
|
|
#undef CHK_
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* ClaimList::_InternalSerialize(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:pb.ClaimList)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-04-20 17:04:32 +02:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
// .pb.ClaimList.ListType list_type = 1;
|
|
|
|
if (this->list_type() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
|
|
|
1, this->_internal_list_type(), target);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// repeated .pb.ClaimReference claim_references = 2;
|
|
|
|
for (unsigned int i = 0,
|
2020-10-19 05:24:47 +02:00
|
|
|
n = static_cast<unsigned int>(this->_internal_claim_references_size()); i < n; i++) {
|
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(2, this->_internal_claim_references(i), target, stream);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
// @@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;
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-12-28 17:35:59 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// repeated .pb.ClaimReference claim_references = 2;
|
2020-10-19 05:24:47 +02:00
|
|
|
total_size += 1UL * this->_internal_claim_references_size();
|
|
|
|
for (const auto& msg : this->claim_references_) {
|
|
|
|
total_size +=
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// .pb.ClaimList.ListType list_type = 1;
|
|
|
|
if (this->list_type() != 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_list_type());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
2019-12-28 17:35:59 +01:00
|
|
|
SetCachedSize(cached_size);
|
2019-04-20 17:04:32 +02:00
|
|
|
return total_size;
|
|
|
|
}
|
2019-02-27 18:03:57 +01:00
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void ClaimList::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_start:pb.ClaimList)
|
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
|
|
const ClaimList* source =
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ClaimList>(
|
2019-04-20 17:04:32 +02:00
|
|
|
&from);
|
2019-12-28 17:35:59 +01:00
|
|
|
if (source == nullptr) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.ClaimList)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
2019-04-20 17:04:32 +02:00
|
|
|
} else {
|
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.ClaimList)
|
|
|
|
MergeFrom(*source);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
2019-02-27 18:03:57 +01:00
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void ClaimList::MergeFrom(const ClaimList& from) {
|
|
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:pb.ClaimList)
|
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-04-20 17:04:32 +02:00
|
|
|
(void) cached_has_bits;
|
2019-02-27 18:03:57 +01:00
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
claim_references_.MergeFrom(from.claim_references_);
|
|
|
|
if (from.list_type() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_list_type(from._internal_list_type());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void ClaimList::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_copy_from_start:pb.ClaimList)
|
2019-02-27 18:03:57 +01:00
|
|
|
if (&from == this) return;
|
|
|
|
Clear();
|
|
|
|
MergeFrom(from);
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void ClaimList::CopyFrom(const ClaimList& from) {
|
|
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:pb.ClaimList)
|
2019-02-27 18:03:57 +01:00
|
|
|
if (&from == this) return;
|
|
|
|
Clear();
|
|
|
|
MergeFrom(from);
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
bool ClaimList::IsInitialized() const {
|
2019-02-27 18:03:57 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void ClaimList::InternalSwap(ClaimList* other) {
|
2019-02-27 18:03:57 +01:00
|
|
|
using std::swap;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
|
claim_references_.InternalSwap(&other->claim_references_);
|
2019-12-28 17:35:59 +01:00
|
|
|
swap(list_type_, other->list_type_);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata ClaimList::GetMetadata() const {
|
|
|
|
return GetMetadataStatic();
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
class Source::_Internal {
|
2019-12-28 17:35:59 +01:00
|
|
|
public:
|
|
|
|
};
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
Source::Source(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
2019-02-27 18:03:57 +01:00
|
|
|
SharedCtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
RegisterArenaDtor(arena);
|
|
|
|
// @@protoc_insertion_point(arena_constructor:pb.Source)
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
Source::Source(const Source& from)
|
2020-10-19 05:24:47 +02:00
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_hash().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_hash(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
|
|
|
}
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_name().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
|
|
|
}
|
|
|
|
media_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_media_type().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
media_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_media_type(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
|
|
|
}
|
|
|
|
url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_url().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
|
|
|
}
|
|
|
|
sd_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_sd_hash().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
sd_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sd_hash(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
|
|
|
}
|
|
|
|
bt_infohash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_bt_infohash().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
bt_infohash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_bt_infohash(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
size_ = from.size_;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:pb.Source)
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Source::SharedCtor() {
|
2021-09-15 04:57:14 +02:00
|
|
|
hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
media_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
sd_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
bt_infohash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
size_ = PROTOBUF_ULONGLONG(0);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
Source::~Source() {
|
|
|
|
// @@protoc_insertion_point(destructor:pb.Source)
|
2019-02-27 18:03:57 +01:00
|
|
|
SharedDtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Source::SharedDtor() {
|
2020-10-19 05:24:47 +02:00
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
|
hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
media_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
sd_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
bt_infohash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Source::ArenaDtor(void* object) {
|
|
|
|
Source* _this = reinterpret_cast< Source* >(object);
|
|
|
|
(void)_this;
|
|
|
|
}
|
|
|
|
void Source::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
void Source::SetCachedSize(int size) const {
|
2019-12-28 17:35:59 +01:00
|
|
|
_cached_size_.Set(size);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Source::Clear() {
|
|
|
|
// @@protoc_insertion_point(message_clear_start:pb.Source)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2021-09-15 04:57:14 +02:00
|
|
|
hash_.ClearToEmpty();
|
|
|
|
name_.ClearToEmpty();
|
|
|
|
media_type_.ClearToEmpty();
|
|
|
|
url_.ClearToEmpty();
|
|
|
|
sd_hash_.ClearToEmpty();
|
|
|
|
bt_infohash_.ClearToEmpty();
|
2019-12-28 17:35:59 +01:00
|
|
|
size_ = PROTOBUF_ULONGLONG(0);
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* Source::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
|
while (!ctx->Done(&ptr)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
|
CHK_(ptr);
|
2019-12-28 17:35:59 +01:00
|
|
|
switch (tag >> 3) {
|
|
|
|
// bytes hash = 1;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 1:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
|
auto str = _internal_mutable_hash();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// string name = 2;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 2:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
|
auto str = _internal_mutable_name();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Source.name"));
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// uint64 size = 3;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 3:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
|
|
size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// string media_type = 4;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 4:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
|
auto str = _internal_mutable_media_type();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Source.media_type"));
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// string url = 5;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 5:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
|
|
|
auto str = _internal_mutable_url();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Source.url"));
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// bytes sd_hash = 6;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 6:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
|
|
|
|
auto str = _internal_mutable_sd_hash();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// bytes bt_infohash = 7;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 7:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
|
|
|
|
auto str = _internal_mutable_bt_infohash();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
default: {
|
|
|
|
handle_unusual:
|
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
ctx->SetLastTag(tag);
|
|
|
|
goto success;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = UnknownFieldParse(tag,
|
|
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
|
ptr, ctx);
|
|
|
|
CHK_(ptr != nullptr);
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
} // switch
|
|
|
|
} // while
|
2019-02-27 18:03:57 +01:00
|
|
|
success:
|
2020-10-19 05:24:47 +02:00
|
|
|
return ptr;
|
2019-02-27 18:03:57 +01:00
|
|
|
failure:
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = nullptr;
|
|
|
|
goto success;
|
|
|
|
#undef CHK_
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Source::_InternalSerialize(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:pb.Source)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// bytes hash = 1;
|
|
|
|
if (this->hash().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteBytesMaybeAliased(
|
|
|
|
1, this->_internal_hash(), target);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// string name = 2;
|
|
|
|
if (this->name().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
2019-04-20 17:04:32 +02:00
|
|
|
"pb.Source.name");
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteStringMaybeAliased(
|
|
|
|
2, this->_internal_name(), target);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// uint64 size = 3;
|
|
|
|
if (this->size() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_size(), target);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// string media_type = 4;
|
|
|
|
if (this->media_type().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
this->_internal_media_type().data(), static_cast<int>(this->_internal_media_type().length()),
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
2019-04-20 17:04:32 +02:00
|
|
|
"pb.Source.media_type");
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteStringMaybeAliased(
|
|
|
|
4, this->_internal_media_type(), target);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// string url = 5;
|
|
|
|
if (this->url().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
this->_internal_url().data(), static_cast<int>(this->_internal_url().length()),
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
2019-04-20 17:04:32 +02:00
|
|
|
"pb.Source.url");
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteStringMaybeAliased(
|
|
|
|
5, this->_internal_url(), target);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// bytes sd_hash = 6;
|
|
|
|
if (this->sd_hash().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteBytesMaybeAliased(
|
|
|
|
6, this->_internal_sd_hash(), target);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-12-28 17:35:59 +01:00
|
|
|
// bytes bt_infohash = 7;
|
|
|
|
if (this->bt_infohash().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteBytesMaybeAliased(
|
|
|
|
7, this->_internal_bt_infohash(), target);
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_end:pb.Source)
|
2019-02-27 18:03:57 +01:00
|
|
|
return target;
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
size_t Source::ByteSizeLong() const {
|
|
|
|
// @@protoc_insertion_point(message_byte_size_start:pb.Source)
|
2019-02-27 18:03:57 +01:00
|
|
|
size_t total_size = 0;
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-12-28 17:35:59 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// bytes hash = 1;
|
|
|
|
if (this->hash().size() > 0) {
|
2019-02-27 18:03:57 +01:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
|
|
this->_internal_hash());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// string name = 2;
|
|
|
|
if (this->name().size() > 0) {
|
2019-02-27 18:03:57 +01:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
|
this->_internal_name());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// string media_type = 4;
|
|
|
|
if (this->media_type().size() > 0) {
|
2019-02-27 18:03:57 +01:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
|
this->_internal_media_type());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// string url = 5;
|
|
|
|
if (this->url().size() > 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
|
this->_internal_url());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// bytes sd_hash = 6;
|
|
|
|
if (this->sd_hash().size() > 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
|
|
this->_internal_sd_hash());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2019-12-28 17:35:59 +01:00
|
|
|
// bytes bt_infohash = 7;
|
|
|
|
if (this->bt_infohash().size() > 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
|
|
this->_internal_bt_infohash());
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// uint64 size = 3;
|
|
|
|
if (this->size() != 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
|
|
|
|
this->_internal_size());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
2019-12-28 17:35:59 +01:00
|
|
|
SetCachedSize(cached_size);
|
2019-02-27 18:03:57 +01:00
|
|
|
return total_size;
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Source::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_start:pb.Source)
|
2019-02-27 18:03:57 +01:00
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
2019-04-20 17:04:32 +02:00
|
|
|
const Source* source =
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Source>(
|
2019-02-27 18:03:57 +01:00
|
|
|
&from);
|
2019-12-28 17:35:59 +01:00
|
|
|
if (source == nullptr) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Source)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
2019-02-27 18:03:57 +01:00
|
|
|
} else {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Source)
|
2019-02-27 18:03:57 +01:00
|
|
|
MergeFrom(*source);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Source::MergeFrom(const Source& from) {
|
|
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Source)
|
2019-02-27 18:03:57 +01:00
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.hash().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_hash(from._internal_hash());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.name().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_name(from._internal_name());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.media_type().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_media_type(from._internal_media_type());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
if (from.url().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_url(from._internal_url());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
if (from.sd_hash().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_sd_hash(from._internal_sd_hash());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
2019-12-28 17:35:59 +01:00
|
|
|
if (from.bt_infohash().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_bt_infohash(from._internal_bt_infohash());
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.size() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_size(from._internal_size());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Source::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_copy_from_start:pb.Source)
|
2019-02-27 18:03:57 +01:00
|
|
|
if (&from == this) return;
|
|
|
|
Clear();
|
|
|
|
MergeFrom(from);
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Source::CopyFrom(const Source& from) {
|
|
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Source)
|
2019-02-27 18:03:57 +01:00
|
|
|
if (&from == this) return;
|
|
|
|
Clear();
|
|
|
|
MergeFrom(from);
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
bool Source::IsInitialized() const {
|
2019-02-27 18:03:57 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Source::InternalSwap(Source* other) {
|
2019-02-27 18:03:57 +01:00
|
|
|
using std::swap;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
|
hash_.Swap(&other->hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
media_type_.Swap(&other->media_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
url_.Swap(&other->url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
sd_hash_.Swap(&other->sd_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
bt_infohash_.Swap(&other->bt_infohash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
2019-12-28 17:35:59 +01:00
|
|
|
swap(size_, other->size_);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Source::GetMetadata() const {
|
|
|
|
return GetMetadataStatic();
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
class Fee::_Internal {
|
2019-12-28 17:35:59 +01:00
|
|
|
public:
|
|
|
|
};
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
Fee::Fee(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
2019-02-27 18:03:57 +01:00
|
|
|
SharedCtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
RegisterArenaDtor(arena);
|
|
|
|
// @@protoc_insertion_point(arena_constructor:pb.Fee)
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
Fee::Fee(const Fee& from)
|
2020-10-19 05:24:47 +02:00
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_address().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_address(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
::memcpy(&amount_, &from.amount_,
|
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(¤cy_) -
|
|
|
|
reinterpret_cast<char*>(&amount_)) + sizeof(currency_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:pb.Fee)
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Fee::SharedCtor() {
|
2021-09-15 04:57:14 +02:00
|
|
|
address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
|
|
|
|
reinterpret_cast<char*>(&amount_) - reinterpret_cast<char*>(this)),
|
|
|
|
0, static_cast<size_t>(reinterpret_cast<char*>(¤cy_) -
|
|
|
|
reinterpret_cast<char*>(&amount_)) + sizeof(currency_));
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
Fee::~Fee() {
|
|
|
|
// @@protoc_insertion_point(destructor:pb.Fee)
|
2019-02-27 18:03:57 +01:00
|
|
|
SharedDtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Fee::SharedDtor() {
|
2020-10-19 05:24:47 +02:00
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
|
address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Fee::ArenaDtor(void* object) {
|
|
|
|
Fee* _this = reinterpret_cast< Fee* >(object);
|
|
|
|
(void)_this;
|
|
|
|
}
|
|
|
|
void Fee::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
void Fee::SetCachedSize(int size) const {
|
2019-12-28 17:35:59 +01:00
|
|
|
_cached_size_.Set(size);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Fee::Clear() {
|
|
|
|
// @@protoc_insertion_point(message_clear_start:pb.Fee)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2021-09-15 04:57:14 +02:00
|
|
|
address_.ClearToEmpty();
|
2019-04-20 17:04:32 +02:00
|
|
|
::memset(&amount_, 0, static_cast<size_t>(
|
|
|
|
reinterpret_cast<char*>(¤cy_) -
|
|
|
|
reinterpret_cast<char*>(&amount_)) + sizeof(currency_));
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* Fee::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
|
while (!ctx->Done(&ptr)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
|
CHK_(ptr);
|
2019-12-28 17:35:59 +01:00
|
|
|
switch (tag >> 3) {
|
|
|
|
// .pb.Fee.Currency currency = 1;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 1:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
_internal_set_currency(static_cast<::pb::Fee_Currency>(val));
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// bytes address = 2;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 2:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
|
auto str = _internal_mutable_address();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// uint64 amount = 3;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 3:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
|
|
amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
default: {
|
|
|
|
handle_unusual:
|
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
ctx->SetLastTag(tag);
|
|
|
|
goto success;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = UnknownFieldParse(tag,
|
|
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
|
ptr, ctx);
|
|
|
|
CHK_(ptr != nullptr);
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
} // switch
|
|
|
|
} // while
|
2019-02-27 18:03:57 +01:00
|
|
|
success:
|
2020-10-19 05:24:47 +02:00
|
|
|
return ptr;
|
2019-02-27 18:03:57 +01:00
|
|
|
failure:
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = nullptr;
|
|
|
|
goto success;
|
|
|
|
#undef CHK_
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Fee::_InternalSerialize(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:pb.Fee)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// .pb.Fee.Currency currency = 1;
|
|
|
|
if (this->currency() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
|
|
|
1, this->_internal_currency(), target);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// bytes address = 2;
|
|
|
|
if (this->address().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteBytesMaybeAliased(
|
|
|
|
2, this->_internal_address(), target);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// uint64 amount = 3;
|
|
|
|
if (this->amount() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_amount(), target);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_end:pb.Fee)
|
2019-02-27 18:03:57 +01:00
|
|
|
return target;
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
size_t Fee::ByteSizeLong() const {
|
|
|
|
// @@protoc_insertion_point(message_byte_size_start:pb.Fee)
|
2019-02-27 18:03:57 +01:00
|
|
|
size_t total_size = 0;
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-12-28 17:35:59 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// bytes address = 2;
|
|
|
|
if (this->address().size() > 0) {
|
2019-02-27 18:03:57 +01:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
|
|
this->_internal_address());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// uint64 amount = 3;
|
|
|
|
if (this->amount() != 0) {
|
2019-03-31 06:21:44 +02:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
|
|
|
|
this->_internal_amount());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// .pb.Fee.Currency currency = 1;
|
|
|
|
if (this->currency() != 0) {
|
2019-02-27 18:03:57 +01:00
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_currency());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
2019-12-28 17:35:59 +01:00
|
|
|
SetCachedSize(cached_size);
|
2019-02-27 18:03:57 +01:00
|
|
|
return total_size;
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Fee::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_start:pb.Fee)
|
2019-02-27 18:03:57 +01:00
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
2019-04-20 17:04:32 +02:00
|
|
|
const Fee* source =
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Fee>(
|
2019-02-27 18:03:57 +01:00
|
|
|
&from);
|
2019-12-28 17:35:59 +01:00
|
|
|
if (source == nullptr) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Fee)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
2019-02-27 18:03:57 +01:00
|
|
|
} else {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Fee)
|
2019-02-27 18:03:57 +01:00
|
|
|
MergeFrom(*source);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Fee::MergeFrom(const Fee& from) {
|
|
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Fee)
|
2019-02-27 18:03:57 +01:00
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.address().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_address(from._internal_address());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.amount() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_amount(from._internal_amount());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.currency() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_currency(from._internal_currency());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Fee::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_copy_from_start:pb.Fee)
|
2019-02-27 18:03:57 +01:00
|
|
|
if (&from == this) return;
|
|
|
|
Clear();
|
|
|
|
MergeFrom(from);
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Fee::CopyFrom(const Fee& from) {
|
|
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Fee)
|
2019-02-27 18:03:57 +01:00
|
|
|
if (&from == this) return;
|
|
|
|
Clear();
|
|
|
|
MergeFrom(from);
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
bool Fee::IsInitialized() const {
|
2019-02-27 18:03:57 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
void Fee::InternalSwap(Fee* other) {
|
2019-02-27 18:03:57 +01:00
|
|
|
using std::swap;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
|
address_.Swap(&other->address_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
|
PROTOBUF_FIELD_OFFSET(Fee, currency_)
|
|
|
|
+ sizeof(Fee::currency_)
|
|
|
|
- PROTOBUF_FIELD_OFFSET(Fee, amount_)>(
|
|
|
|
reinterpret_cast<char*>(&amount_),
|
|
|
|
reinterpret_cast<char*>(&other->amount_));
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Fee::GetMetadata() const {
|
|
|
|
return GetMetadataStatic();
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
class Image::_Internal {
|
2019-12-28 17:35:59 +01:00
|
|
|
public:
|
|
|
|
};
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
Image::Image(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
2019-02-27 18:03:57 +01:00
|
|
|
SharedCtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
RegisterArenaDtor(arena);
|
|
|
|
// @@protoc_insertion_point(arena_constructor:pb.Image)
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
Image::Image(const Image& from)
|
2020-10-19 05:24:47 +02:00
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
2019-02-27 18:03:57 +01:00
|
|
|
::memcpy(&width_, &from.width_,
|
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(&height_) -
|
|
|
|
reinterpret_cast<char*>(&width_)) + sizeof(height_));
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(copy_constructor:pb.Image)
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
void Image::SharedCtor() {
|
2021-09-15 04:57:14 +02:00
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
|
|
|
|
reinterpret_cast<char*>(&width_) - reinterpret_cast<char*>(this)),
|
|
|
|
0, static_cast<size_t>(reinterpret_cast<char*>(&height_) -
|
|
|
|
reinterpret_cast<char*>(&width_)) + sizeof(height_));
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
Image::~Image() {
|
|
|
|
// @@protoc_insertion_point(destructor:pb.Image)
|
2019-02-27 18:03:57 +01:00
|
|
|
SharedDtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
void Image::SharedDtor() {
|
2020-10-19 05:24:47 +02:00
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Image::ArenaDtor(void* object) {
|
|
|
|
Image* _this = reinterpret_cast< Image* >(object);
|
|
|
|
(void)_this;
|
|
|
|
}
|
|
|
|
void Image::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
void Image::SetCachedSize(int size) const {
|
2019-12-28 17:35:59 +01:00
|
|
|
_cached_size_.Set(size);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
void Image::Clear() {
|
|
|
|
// @@protoc_insertion_point(message_clear_start:pb.Image)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
// 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_));
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* Image::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
|
while (!ctx->Done(&ptr)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
|
CHK_(ptr);
|
2019-12-28 17:35:59 +01:00
|
|
|
switch (tag >> 3) {
|
|
|
|
// uint32 width = 1;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 1:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
|
|
width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// uint32 height = 2;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 2:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
|
|
height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
default: {
|
|
|
|
handle_unusual:
|
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
ctx->SetLastTag(tag);
|
|
|
|
goto success;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = UnknownFieldParse(tag,
|
|
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
|
ptr, ctx);
|
|
|
|
CHK_(ptr != nullptr);
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
} // switch
|
|
|
|
} // while
|
2019-02-27 18:03:57 +01:00
|
|
|
success:
|
2020-10-19 05:24:47 +02:00
|
|
|
return ptr;
|
2019-02-27 18:03:57 +01:00
|
|
|
failure:
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = nullptr;
|
|
|
|
goto success;
|
|
|
|
#undef CHK_
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Image::_InternalSerialize(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:pb.Image)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
// uint32 width = 1;
|
|
|
|
if (this->width() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_width(), target);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// uint32 height = 2;
|
|
|
|
if (this->height() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_height(), target);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_end:pb.Image)
|
2019-02-27 18:03:57 +01:00
|
|
|
return target;
|
|
|
|
}
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
size_t Image::ByteSizeLong() const {
|
|
|
|
// @@protoc_insertion_point(message_byte_size_start:pb.Image)
|
2019-02-27 18:03:57 +01:00
|
|
|
size_t total_size = 0;
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-12-28 17:35:59 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-02-27 18:03:57 +01:00
|
|
|
// uint32 width = 1;
|
|
|
|
if (this->width() != 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
|
|
this->_internal_width());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// uint32 height = 2;
|
|
|
|
if (this->height() != 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
|
|
this->_internal_height());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
2019-12-28 17:35:59 +01:00
|
|
|
SetCachedSize(cached_size);
|
2019-02-27 18:03:57 +01:00
|
|
|
return total_size;
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Image::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_start:pb.Image)
|
2019-02-27 18:03:57 +01:00
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
2019-03-31 06:21:44 +02:00
|
|
|
const Image* source =
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Image>(
|
2019-02-27 18:03:57 +01:00
|
|
|
&from);
|
2019-12-28 17:35:59 +01:00
|
|
|
if (source == nullptr) {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Image)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
2019-02-27 18:03:57 +01:00
|
|
|
} else {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Image)
|
2019-02-27 18:03:57 +01:00
|
|
|
MergeFrom(*source);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
void Image::MergeFrom(const Image& from) {
|
|
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Image)
|
2019-02-27 18:03:57 +01:00
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-02-27 18:03:57 +01:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
if (from.width() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_width(from._internal_width());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
if (from.height() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_height(from._internal_height());
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Image::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(generalized_copy_from_start:pb.Image)
|
2019-02-27 18:03:57 +01:00
|
|
|
if (&from == this) return;
|
|
|
|
Clear();
|
|
|
|
MergeFrom(from);
|
|
|
|
}
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
void Image::CopyFrom(const Image& from) {
|
|
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Image)
|
2019-02-27 18:03:57 +01:00
|
|
|
if (&from == this) return;
|
|
|
|
Clear();
|
|
|
|
MergeFrom(from);
|
|
|
|
}
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
bool Image::IsInitialized() const {
|
2019-02-27 18:03:57 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
void Image::InternalSwap(Image* other) {
|
2019-02-27 18:03:57 +01:00
|
|
|
using std::swap;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
|
PROTOBUF_FIELD_OFFSET(Image, height_)
|
|
|
|
+ sizeof(Image::height_)
|
|
|
|
- PROTOBUF_FIELD_OFFSET(Image, width_)>(
|
|
|
|
reinterpret_cast<char*>(&width_),
|
|
|
|
reinterpret_cast<char*>(&other->width_));
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Image::GetMetadata() const {
|
|
|
|
return GetMetadataStatic();
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
// ===================================================================
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
class Video::_Internal {
|
2019-12-28 17:35:59 +01:00
|
|
|
public:
|
|
|
|
static const ::pb::Audio& audio(const Video* msg);
|
|
|
|
};
|
|
|
|
|
|
|
|
const ::pb::Audio&
|
2020-10-19 05:24:47 +02:00
|
|
|
Video::_Internal::audio(const Video* msg) {
|
2019-12-28 17:35:59 +01:00
|
|
|
return *msg->audio_;
|
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
Video::Video(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
2019-03-31 06:21:44 +02:00
|
|
|
SharedCtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
RegisterArenaDtor(arena);
|
|
|
|
// @@protoc_insertion_point(arena_constructor:pb.Video)
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
Video::Video(const Video& from)
|
2020-10-19 05:24:47 +02:00
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
if (from._internal_has_audio()) {
|
2019-04-20 17:04:32 +02:00
|
|
|
audio_ = new ::pb::Audio(*from.audio_);
|
|
|
|
} else {
|
2019-12-28 17:35:59 +01:00
|
|
|
audio_ = nullptr;
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
::memcpy(&width_, &from.width_,
|
2019-04-22 05:32:10 +02:00
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(&duration_) -
|
|
|
|
reinterpret_cast<char*>(&width_)) + sizeof(duration_));
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(copy_constructor:pb.Video)
|
|
|
|
}
|
|
|
|
|
|
|
|
void Video::SharedCtor() {
|
2021-09-15 04:57:14 +02:00
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
|
|
|
|
reinterpret_cast<char*>(&audio_) - reinterpret_cast<char*>(this)),
|
|
|
|
0, static_cast<size_t>(reinterpret_cast<char*>(&duration_) -
|
|
|
|
reinterpret_cast<char*>(&audio_)) + sizeof(duration_));
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Video::~Video() {
|
|
|
|
// @@protoc_insertion_point(destructor:pb.Video)
|
|
|
|
SharedDtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void Video::SharedDtor() {
|
2020-10-19 05:24:47 +02:00
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
2019-04-20 17:04:32 +02:00
|
|
|
if (this != internal_default_instance()) delete audio_;
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Video::ArenaDtor(void* object) {
|
|
|
|
Video* _this = reinterpret_cast< Video* >(object);
|
|
|
|
(void)_this;
|
|
|
|
}
|
|
|
|
void Video::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
void Video::SetCachedSize(int size) const {
|
2019-12-28 17:35:59 +01:00
|
|
|
_cached_size_.Set(size);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void Video::Clear() {
|
|
|
|
// @@protoc_insertion_point(message_clear_start:pb.Video)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-03-31 06:21:44 +02:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (GetArena() == nullptr && audio_ != nullptr) {
|
2019-04-20 17:04:32 +02:00
|
|
|
delete audio_;
|
|
|
|
}
|
2019-12-28 17:35:59 +01:00
|
|
|
audio_ = nullptr;
|
2019-03-31 06:21:44 +02:00
|
|
|
::memset(&width_, 0, static_cast<size_t>(
|
2019-04-22 05:32:10 +02:00
|
|
|
reinterpret_cast<char*>(&duration_) -
|
|
|
|
reinterpret_cast<char*>(&width_)) + sizeof(duration_));
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
const char* Video::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
|
while (!ctx->Done(&ptr)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
|
CHK_(ptr);
|
|
|
|
switch (tag >> 3) {
|
|
|
|
// uint32 width = 1;
|
|
|
|
case 1:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
|
|
width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
|
|
|
// uint32 height = 2;
|
|
|
|
case 2:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
|
|
height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
|
|
|
// uint32 duration = 3;
|
|
|
|
case 3:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
|
|
duration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
|
|
|
// .pb.Audio audio = 15;
|
|
|
|
case 15:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) {
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_audio(), ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-03-31 06:21:44 +02:00
|
|
|
default: {
|
|
|
|
handle_unusual:
|
2020-10-19 05:24:47 +02:00
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
|
|
ctx->SetLastTag(tag);
|
2019-03-31 06:21:44 +02:00
|
|
|
goto success;
|
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = UnknownFieldParse(tag,
|
|
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
|
ptr, ctx);
|
|
|
|
CHK_(ptr != nullptr);
|
|
|
|
continue;
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
} // switch
|
|
|
|
} // while
|
2019-03-31 06:21:44 +02:00
|
|
|
success:
|
2020-10-19 05:24:47 +02:00
|
|
|
return ptr;
|
2019-03-31 06:21:44 +02:00
|
|
|
failure:
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = nullptr;
|
|
|
|
goto success;
|
|
|
|
#undef CHK_
|
2019-02-27 18:03:57 +01:00
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Video::_InternalSerialize(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:pb.Video)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-03-31 06:21:44 +02:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
// uint32 width = 1;
|
|
|
|
if (this->width() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_width(), target);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// uint32 height = 2;
|
|
|
|
if (this->height() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_height(), target);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2019-04-22 05:32:10 +02:00
|
|
|
// uint32 duration = 3;
|
|
|
|
if (this->duration() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_duration(), target);
|
2019-04-22 05:32:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// .pb.Audio audio = 15;
|
2019-04-20 17:04:32 +02:00
|
|
|
if (this->has_audio()) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
|
InternalWriteMessage(
|
|
|
|
15, _Internal::audio(this), target, stream);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
// @@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;
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-12-28 17:35:59 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-22 05:32:10 +02:00
|
|
|
// .pb.Audio audio = 15;
|
2019-04-20 17:04:32 +02:00
|
|
|
if (this->has_audio()) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
2019-12-28 17:35:59 +01:00
|
|
|
*audio_);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
// uint32 width = 1;
|
|
|
|
if (this->width() != 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
|
|
this->_internal_width());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// uint32 height = 2;
|
|
|
|
if (this->height() != 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
|
|
this->_internal_height());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2019-04-22 05:32:10 +02:00
|
|
|
// uint32 duration = 3;
|
|
|
|
if (this->duration() != 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
|
|
this->_internal_duration());
|
2019-04-22 05:32:10 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
2019-12-28 17:35:59 +01:00
|
|
|
SetCachedSize(cached_size);
|
2019-03-31 06:21:44 +02:00
|
|
|
return total_size;
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Video::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_start:pb.Video)
|
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
|
|
const Video* source =
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Video>(
|
2019-03-31 06:21:44 +02:00
|
|
|
&from);
|
2019-12-28 17:35:59 +01:00
|
|
|
if (source == nullptr) {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Video)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
2019-03-31 06:21:44 +02:00
|
|
|
} 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);
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-03-31 06:21:44 +02:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
if (from.has_audio()) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_mutable_audio()->::pb::Audio::MergeFrom(from._internal_audio());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
if (from.width() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_width(from._internal_width());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
if (from.height() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_height(from._internal_height());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
2019-04-22 05:32:10 +02:00
|
|
|
if (from.duration() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_duration(from._internal_duration());
|
2019-04-22 05:32:10 +02:00
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Video::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@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::InternalSwap(Video* other) {
|
|
|
|
using std::swap;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
|
PROTOBUF_FIELD_OFFSET(Video, duration_)
|
|
|
|
+ sizeof(Video::duration_)
|
|
|
|
- PROTOBUF_FIELD_OFFSET(Video, audio_)>(
|
|
|
|
reinterpret_cast<char*>(&audio_),
|
|
|
|
reinterpret_cast<char*>(&other->audio_));
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Video::GetMetadata() const {
|
|
|
|
return GetMetadataStatic();
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
class Audio::_Internal {
|
2019-12-28 17:35:59 +01:00
|
|
|
public:
|
|
|
|
};
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
Audio::Audio(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
2019-03-31 06:21:44 +02:00
|
|
|
SharedCtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
RegisterArenaDtor(arena);
|
|
|
|
// @@protoc_insertion_point(arena_constructor:pb.Audio)
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
Audio::Audio(const Audio& from)
|
2020-10-19 05:24:47 +02:00
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
2019-03-31 06:21:44 +02:00
|
|
|
duration_ = from.duration_;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:pb.Audio)
|
|
|
|
}
|
|
|
|
|
|
|
|
void Audio::SharedCtor() {
|
2021-09-15 04:57:14 +02:00
|
|
|
duration_ = 0u;
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Audio::~Audio() {
|
|
|
|
// @@protoc_insertion_point(destructor:pb.Audio)
|
|
|
|
SharedDtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void Audio::SharedDtor() {
|
2020-10-19 05:24:47 +02:00
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Audio::ArenaDtor(void* object) {
|
|
|
|
Audio* _this = reinterpret_cast< Audio* >(object);
|
|
|
|
(void)_this;
|
|
|
|
}
|
|
|
|
void Audio::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
void Audio::SetCachedSize(int size) const {
|
2019-12-28 17:35:59 +01:00
|
|
|
_cached_size_.Set(size);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void Audio::Clear() {
|
|
|
|
// @@protoc_insertion_point(message_clear_start:pb.Audio)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-03-31 06:21:44 +02:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
duration_ = 0u;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* Audio::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
|
while (!ctx->Done(&ptr)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
|
CHK_(ptr);
|
2019-12-28 17:35:59 +01:00
|
|
|
switch (tag >> 3) {
|
|
|
|
// uint32 duration = 1;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 1:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
|
|
duration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
default: {
|
|
|
|
handle_unusual:
|
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
ctx->SetLastTag(tag);
|
|
|
|
goto success;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = UnknownFieldParse(tag,
|
|
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
|
ptr, ctx);
|
|
|
|
CHK_(ptr != nullptr);
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
} // switch
|
|
|
|
} // while
|
2019-03-31 06:21:44 +02:00
|
|
|
success:
|
2020-10-19 05:24:47 +02:00
|
|
|
return ptr;
|
2019-03-31 06:21:44 +02:00
|
|
|
failure:
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = nullptr;
|
|
|
|
goto success;
|
|
|
|
#undef CHK_
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Audio::_InternalSerialize(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:pb.Audio)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-03-31 06:21:44 +02:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
// uint32 duration = 1;
|
|
|
|
if (this->duration() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_duration(), target);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
// @@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;
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-12-28 17:35:59 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
// uint32 duration = 1;
|
|
|
|
if (this->duration() != 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
|
|
this->_internal_duration());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
2019-12-28 17:35:59 +01:00
|
|
|
SetCachedSize(cached_size);
|
2019-03-31 06:21:44 +02:00
|
|
|
return total_size;
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Audio::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_start:pb.Audio)
|
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
|
|
const Audio* source =
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Audio>(
|
2019-03-31 06:21:44 +02:00
|
|
|
&from);
|
2019-12-28 17:35:59 +01:00
|
|
|
if (source == nullptr) {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Audio)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
2019-03-31 06:21:44 +02:00
|
|
|
} 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);
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-03-31 06:21:44 +02:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
if (from.duration() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_duration(from._internal_duration());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Audio::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@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::InternalSwap(Audio* other) {
|
|
|
|
using std::swap;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
2019-12-28 17:35:59 +01:00
|
|
|
swap(duration_, other->duration_);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Audio::GetMetadata() const {
|
|
|
|
return GetMetadataStatic();
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// ===================================================================
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
class Software::_Internal {
|
2019-12-28 17:35:59 +01:00
|
|
|
public:
|
|
|
|
};
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
Software::Software(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
2019-04-20 17:04:32 +02:00
|
|
|
SharedCtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
RegisterArenaDtor(arena);
|
|
|
|
// @@protoc_insertion_point(arena_constructor:pb.Software)
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
Software::Software(const Software& from)
|
2020-10-19 05:24:47 +02:00
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
os_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_os().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
os_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_os(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
// @@protoc_insertion_point(copy_constructor:pb.Software)
|
|
|
|
}
|
|
|
|
|
|
|
|
void Software::SharedCtor() {
|
2021-09-15 04:57:14 +02:00
|
|
|
os_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Software::~Software() {
|
|
|
|
// @@protoc_insertion_point(destructor:pb.Software)
|
|
|
|
SharedDtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void Software::SharedDtor() {
|
2020-10-19 05:24:47 +02:00
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
|
os_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Software::ArenaDtor(void* object) {
|
|
|
|
Software* _this = reinterpret_cast< Software* >(object);
|
|
|
|
(void)_this;
|
|
|
|
}
|
|
|
|
void Software::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
|
}
|
2019-04-20 17:04:32 +02:00
|
|
|
void Software::SetCachedSize(int size) const {
|
2019-12-28 17:35:59 +01:00
|
|
|
_cached_size_.Set(size);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void Software::Clear() {
|
|
|
|
// @@protoc_insertion_point(message_clear_start:pb.Software)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-04-20 17:04:32 +02:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2021-09-15 04:57:14 +02:00
|
|
|
os_.ClearToEmpty();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* Software::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
|
while (!ctx->Done(&ptr)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
|
CHK_(ptr);
|
2019-12-28 17:35:59 +01:00
|
|
|
switch (tag >> 3) {
|
|
|
|
// string os = 1;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 1:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
|
auto str = _internal_mutable_os();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Software.os"));
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
default: {
|
|
|
|
handle_unusual:
|
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
ctx->SetLastTag(tag);
|
|
|
|
goto success;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = UnknownFieldParse(tag,
|
|
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
|
ptr, ctx);
|
|
|
|
CHK_(ptr != nullptr);
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
} // switch
|
|
|
|
} // while
|
2019-04-20 17:04:32 +02:00
|
|
|
success:
|
2020-10-19 05:24:47 +02:00
|
|
|
return ptr;
|
2019-04-20 17:04:32 +02:00
|
|
|
failure:
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = nullptr;
|
|
|
|
goto success;
|
|
|
|
#undef CHK_
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Software::_InternalSerialize(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:pb.Software)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-04-20 17:04:32 +02:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
// string os = 1;
|
|
|
|
if (this->os().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
this->_internal_os().data(), static_cast<int>(this->_internal_os().length()),
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
2019-04-20 17:04:32 +02:00
|
|
|
"pb.Software.os");
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteStringMaybeAliased(
|
|
|
|
1, this->_internal_os(), target);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
// @@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;
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-12-28 17:35:59 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-04-20 17:04:32 +02:00
|
|
|
// string os = 1;
|
|
|
|
if (this->os().size() > 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
|
this->_internal_os());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
2019-12-28 17:35:59 +01:00
|
|
|
SetCachedSize(cached_size);
|
2019-04-20 17:04:32 +02:00
|
|
|
return total_size;
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Software::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_start:pb.Software)
|
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
|
|
const Software* source =
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Software>(
|
2019-04-20 17:04:32 +02:00
|
|
|
&from);
|
2019-12-28 17:35:59 +01:00
|
|
|
if (source == nullptr) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Software)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
2019-04-20 17:04:32 +02:00
|
|
|
} 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);
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-04-20 17:04:32 +02:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
if (from.os().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_os(from._internal_os());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Software::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-04-20 17:04:32 +02:00
|
|
|
// @@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::InternalSwap(Software* other) {
|
|
|
|
using std::swap;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
|
os_.Swap(&other->os_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Software::GetMetadata() const {
|
|
|
|
return GetMetadataStatic();
|
2019-04-20 17:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
// ===================================================================
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
class Language::_Internal {
|
2019-12-28 17:35:59 +01:00
|
|
|
public:
|
|
|
|
};
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
Language::Language(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
2019-03-31 06:21:44 +02:00
|
|
|
SharedCtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
RegisterArenaDtor(arena);
|
|
|
|
// @@protoc_insertion_point(arena_constructor:pb.Language)
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
Language::Language(const Language& from)
|
2020-10-19 05:24:47 +02:00
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
2019-03-31 06:21:44 +02:00
|
|
|
::memcpy(&language_, &from.language_,
|
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(®ion_) -
|
|
|
|
reinterpret_cast<char*>(&language_)) + sizeof(region_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:pb.Language)
|
|
|
|
}
|
|
|
|
|
|
|
|
void Language::SharedCtor() {
|
2021-09-15 04:57:14 +02:00
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
|
|
|
|
reinterpret_cast<char*>(&language_) - reinterpret_cast<char*>(this)),
|
|
|
|
0, static_cast<size_t>(reinterpret_cast<char*>(®ion_) -
|
|
|
|
reinterpret_cast<char*>(&language_)) + sizeof(region_));
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Language::~Language() {
|
|
|
|
// @@protoc_insertion_point(destructor:pb.Language)
|
|
|
|
SharedDtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void Language::SharedDtor() {
|
2020-10-19 05:24:47 +02:00
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Language::ArenaDtor(void* object) {
|
|
|
|
Language* _this = reinterpret_cast< Language* >(object);
|
|
|
|
(void)_this;
|
|
|
|
}
|
|
|
|
void Language::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
void Language::SetCachedSize(int size) const {
|
2019-12-28 17:35:59 +01:00
|
|
|
_cached_size_.Set(size);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void Language::Clear() {
|
|
|
|
// @@protoc_insertion_point(message_clear_start:pb.Language)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-03-31 06:21:44 +02:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
::memset(&language_, 0, static_cast<size_t>(
|
|
|
|
reinterpret_cast<char*>(®ion_) -
|
|
|
|
reinterpret_cast<char*>(&language_)) + sizeof(region_));
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* Language::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
|
while (!ctx->Done(&ptr)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
|
CHK_(ptr);
|
2019-12-28 17:35:59 +01:00
|
|
|
switch (tag >> 3) {
|
|
|
|
// .pb.Language.Language language = 1;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 1:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
_internal_set_language(static_cast<::pb::Language_Language>(val));
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// .pb.Language.Script script = 2;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 2:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
_internal_set_script(static_cast<::pb::Language_Script>(val));
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// .pb.Location.Country region = 3;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 3:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
_internal_set_region(static_cast<::pb::Location_Country>(val));
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
default: {
|
|
|
|
handle_unusual:
|
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
ctx->SetLastTag(tag);
|
|
|
|
goto success;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = UnknownFieldParse(tag,
|
|
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
|
ptr, ctx);
|
|
|
|
CHK_(ptr != nullptr);
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
} // switch
|
|
|
|
} // while
|
2019-03-31 06:21:44 +02:00
|
|
|
success:
|
2020-10-19 05:24:47 +02:00
|
|
|
return ptr;
|
2019-03-31 06:21:44 +02:00
|
|
|
failure:
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = nullptr;
|
|
|
|
goto success;
|
|
|
|
#undef CHK_
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Language::_InternalSerialize(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:pb.Language)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-03-31 06:21:44 +02:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
// .pb.Language.Language language = 1;
|
|
|
|
if (this->language() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
|
|
|
1, this->_internal_language(), target);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// .pb.Language.Script script = 2;
|
|
|
|
if (this->script() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
|
|
|
2, this->_internal_script(), target);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// .pb.Location.Country region = 3;
|
|
|
|
if (this->region() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
|
|
|
3, this->_internal_region(), target);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
// @@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;
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-12-28 17:35:59 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
// .pb.Language.Language language = 1;
|
|
|
|
if (this->language() != 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_language());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// .pb.Language.Script script = 2;
|
|
|
|
if (this->script() != 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_script());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// .pb.Location.Country region = 3;
|
|
|
|
if (this->region() != 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_region());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
2019-12-28 17:35:59 +01:00
|
|
|
SetCachedSize(cached_size);
|
2019-03-31 06:21:44 +02:00
|
|
|
return total_size;
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Language::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_start:pb.Language)
|
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
|
|
const Language* source =
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Language>(
|
2019-03-31 06:21:44 +02:00
|
|
|
&from);
|
2019-12-28 17:35:59 +01:00
|
|
|
if (source == nullptr) {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Language)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
2019-03-31 06:21:44 +02:00
|
|
|
} 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);
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-03-31 06:21:44 +02:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
if (from.language() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_language(from._internal_language());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
if (from.script() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_script(from._internal_script());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
if (from.region() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_region(from._internal_region());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Language::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@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::InternalSwap(Language* other) {
|
|
|
|
using std::swap;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
|
PROTOBUF_FIELD_OFFSET(Language, region_)
|
|
|
|
+ sizeof(Language::region_)
|
|
|
|
- PROTOBUF_FIELD_OFFSET(Language, language_)>(
|
|
|
|
reinterpret_cast<char*>(&language_),
|
|
|
|
reinterpret_cast<char*>(&other->language_));
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Language::GetMetadata() const {
|
|
|
|
return GetMetadataStatic();
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
class Location::_Internal {
|
2019-12-28 17:35:59 +01:00
|
|
|
public:
|
|
|
|
};
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
Location::Location(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
2019-03-31 06:21:44 +02:00
|
|
|
SharedCtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
RegisterArenaDtor(arena);
|
|
|
|
// @@protoc_insertion_point(arena_constructor:pb.Location)
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
Location::Location(const Location& from)
|
2020-10-19 05:24:47 +02:00
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
state_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_state().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
state_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_state(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
|
|
|
}
|
|
|
|
city_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_city().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
city_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_city(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
|
|
|
}
|
|
|
|
code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
if (!from._internal_code().empty()) {
|
2021-09-15 04:57:14 +02:00
|
|
|
code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_code(),
|
2020-10-19 05:24:47 +02:00
|
|
|
GetArena());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
::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() {
|
2021-09-15 04:57:14 +02:00
|
|
|
state_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
city_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
|
|
|
|
reinterpret_cast<char*>(&country_) - reinterpret_cast<char*>(this)),
|
|
|
|
0, static_cast<size_t>(reinterpret_cast<char*>(&longitude_) -
|
|
|
|
reinterpret_cast<char*>(&country_)) + sizeof(longitude_));
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Location::~Location() {
|
|
|
|
// @@protoc_insertion_point(destructor:pb.Location)
|
|
|
|
SharedDtor();
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void Location::SharedDtor() {
|
2020-10-19 05:24:47 +02:00
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
|
state_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
city_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
|
code_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Location::ArenaDtor(void* object) {
|
|
|
|
Location* _this = reinterpret_cast< Location* >(object);
|
|
|
|
(void)_this;
|
|
|
|
}
|
|
|
|
void Location::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
|
|
}
|
2019-03-31 06:21:44 +02:00
|
|
|
void Location::SetCachedSize(int size) const {
|
2019-12-28 17:35:59 +01:00
|
|
|
_cached_size_.Set(size);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void Location::Clear() {
|
|
|
|
// @@protoc_insertion_point(message_clear_start:pb.Location)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-03-31 06:21:44 +02:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2021-09-15 04:57:14 +02:00
|
|
|
state_.ClearToEmpty();
|
|
|
|
city_.ClearToEmpty();
|
|
|
|
code_.ClearToEmpty();
|
2019-03-31 06:21:44 +02:00
|
|
|
::memset(&country_, 0, static_cast<size_t>(
|
|
|
|
reinterpret_cast<char*>(&longitude_) -
|
|
|
|
reinterpret_cast<char*>(&country_)) + sizeof(longitude_));
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* Location::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
|
while (!ctx->Done(&ptr)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
|
CHK_(ptr);
|
2019-12-28 17:35:59 +01:00
|
|
|
switch (tag >> 3) {
|
|
|
|
// .pb.Location.Country country = 1;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 1:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
_internal_set_country(static_cast<::pb::Location_Country>(val));
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// string state = 2;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 2:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
|
auto str = _internal_mutable_state();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Location.state"));
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// string city = 3;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 3:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
|
|
auto str = _internal_mutable_city();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Location.city"));
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// string code = 4;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 4:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
|
auto str = _internal_mutable_code();
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Location.code"));
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// sint32 latitude = 5;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 5:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
|
|
|
|
latitude_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag32(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
// sint32 longitude = 6;
|
2020-10-19 05:24:47 +02:00
|
|
|
case 6:
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
|
|
|
|
longitude_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag32(&ptr);
|
|
|
|
CHK_(ptr);
|
|
|
|
} else goto handle_unusual;
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
default: {
|
|
|
|
handle_unusual:
|
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
ctx->SetLastTag(tag);
|
|
|
|
goto success;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = UnknownFieldParse(tag,
|
|
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
|
ptr, ctx);
|
|
|
|
CHK_(ptr != nullptr);
|
|
|
|
continue;
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
} // switch
|
|
|
|
} // while
|
2019-03-31 06:21:44 +02:00
|
|
|
success:
|
2020-10-19 05:24:47 +02:00
|
|
|
return ptr;
|
2019-03-31 06:21:44 +02:00
|
|
|
failure:
|
2020-10-19 05:24:47 +02:00
|
|
|
ptr = nullptr;
|
|
|
|
goto success;
|
|
|
|
#undef CHK_
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Location::_InternalSerialize(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:pb.Location)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-03-31 06:21:44 +02:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
// .pb.Location.Country country = 1;
|
|
|
|
if (this->country() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
|
|
|
1, this->_internal_country(), target);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// string state = 2;
|
|
|
|
if (this->state().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
this->_internal_state().data(), static_cast<int>(this->_internal_state().length()),
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
2019-03-31 06:21:44 +02:00
|
|
|
"pb.Location.state");
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteStringMaybeAliased(
|
|
|
|
2, this->_internal_state(), target);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// string city = 3;
|
|
|
|
if (this->city().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
this->_internal_city().data(), static_cast<int>(this->_internal_city().length()),
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
2019-03-31 06:21:44 +02:00
|
|
|
"pb.Location.city");
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteStringMaybeAliased(
|
|
|
|
3, this->_internal_city(), target);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// string code = 4;
|
|
|
|
if (this->code().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
|
this->_internal_code().data(), static_cast<int>(this->_internal_code().length()),
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
2019-03-31 06:21:44 +02:00
|
|
|
"pb.Location.code");
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->WriteStringMaybeAliased(
|
|
|
|
4, this->_internal_code(), target);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// sint32 latitude = 5;
|
|
|
|
if (this->latitude() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt32ToArray(5, this->_internal_latitude(), target);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// sint32 longitude = 6;
|
|
|
|
if (this->longitude() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
target = stream->EnsureSpace(target);
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt32ToArray(6, this->_internal_longitude(), target);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
// @@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;
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-12-28 17:35:59 +01:00
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
(void) cached_has_bits;
|
|
|
|
|
2019-03-31 06:21:44 +02:00
|
|
|
// string state = 2;
|
|
|
|
if (this->state().size() > 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
|
this->_internal_state());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// string city = 3;
|
|
|
|
if (this->city().size() > 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
|
this->_internal_city());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// string code = 4;
|
|
|
|
if (this->code().size() > 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
|
this->_internal_code());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// .pb.Location.Country country = 1;
|
|
|
|
if (this->country() != 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_country());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// sint32 latitude = 5;
|
|
|
|
if (this->latitude() != 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt32Size(
|
|
|
|
this->_internal_latitude());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// sint32 longitude = 6;
|
|
|
|
if (this->longitude() != 0) {
|
|
|
|
total_size += 1 +
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt32Size(
|
|
|
|
this->_internal_longitude());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
2019-12-28 17:35:59 +01:00
|
|
|
SetCachedSize(cached_size);
|
2019-03-31 06:21:44 +02:00
|
|
|
return total_size;
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Location::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_start:pb.Location)
|
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
|
|
const Location* source =
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Location>(
|
2019-03-31 06:21:44 +02:00
|
|
|
&from);
|
2019-12-28 17:35:59 +01:00
|
|
|
if (source == nullptr) {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Location)
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
2019-03-31 06:21:44 +02:00
|
|
|
} 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);
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
2019-03-31 06:21:44 +02:00
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
|
|
if (from.state().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_state(from._internal_state());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
if (from.city().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_city(from._internal_city());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
if (from.code().size() > 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_code(from._internal_code());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
if (from.country() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_country(from._internal_country());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
if (from.latitude() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_latitude(from._internal_latitude());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
if (from.longitude() != 0) {
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_set_longitude(from._internal_longitude());
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
void Location::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
2019-03-31 06:21:44 +02:00
|
|
|
// @@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::InternalSwap(Location* other) {
|
|
|
|
using std::swap;
|
2020-10-19 05:24:47 +02:00
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
|
state_.Swap(&other->state_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
city_.Swap(&other->city_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
code_.Swap(&other->code_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
|
PROTOBUF_FIELD_OFFSET(Location, longitude_)
|
|
|
|
+ sizeof(Location::longitude_)
|
|
|
|
- PROTOBUF_FIELD_OFFSET(Location, country_)>(
|
|
|
|
reinterpret_cast<char*>(&country_),
|
|
|
|
reinterpret_cast<char*>(&other->country_));
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 05:24:47 +02:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Location::GetMetadata() const {
|
|
|
|
return GetMetadataStatic();
|
2019-03-31 06:21:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace pb
|
2020-10-19 05:24:47 +02:00
|
|
|
PROTOBUF_NAMESPACE_OPEN
|
2019-12-28 17:35:59 +01:00
|
|
|
template<> PROTOBUF_NOINLINE ::pb::Claim* Arena::CreateMaybeMessage< ::pb::Claim >(Arena* arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
return Arena::CreateMessageInternal< ::pb::Claim >(arena);
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
template<> PROTOBUF_NOINLINE ::pb::Stream* Arena::CreateMaybeMessage< ::pb::Stream >(Arena* arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
return Arena::CreateMessageInternal< ::pb::Stream >(arena);
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
template<> PROTOBUF_NOINLINE ::pb::Channel* Arena::CreateMaybeMessage< ::pb::Channel >(Arena* arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
return Arena::CreateMessageInternal< ::pb::Channel >(arena);
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
template<> PROTOBUF_NOINLINE ::pb::ClaimReference* Arena::CreateMaybeMessage< ::pb::ClaimReference >(Arena* arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
return Arena::CreateMessageInternal< ::pb::ClaimReference >(arena);
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
template<> PROTOBUF_NOINLINE ::pb::ClaimList* Arena::CreateMaybeMessage< ::pb::ClaimList >(Arena* arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
return Arena::CreateMessageInternal< ::pb::ClaimList >(arena);
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
template<> PROTOBUF_NOINLINE ::pb::Source* Arena::CreateMaybeMessage< ::pb::Source >(Arena* arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
return Arena::CreateMessageInternal< ::pb::Source >(arena);
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
template<> PROTOBUF_NOINLINE ::pb::Fee* Arena::CreateMaybeMessage< ::pb::Fee >(Arena* arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
return Arena::CreateMessageInternal< ::pb::Fee >(arena);
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
template<> PROTOBUF_NOINLINE ::pb::Image* Arena::CreateMaybeMessage< ::pb::Image >(Arena* arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
return Arena::CreateMessageInternal< ::pb::Image >(arena);
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
template<> PROTOBUF_NOINLINE ::pb::Video* Arena::CreateMaybeMessage< ::pb::Video >(Arena* arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
return Arena::CreateMessageInternal< ::pb::Video >(arena);
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
template<> PROTOBUF_NOINLINE ::pb::Audio* Arena::CreateMaybeMessage< ::pb::Audio >(Arena* arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
return Arena::CreateMessageInternal< ::pb::Audio >(arena);
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
template<> PROTOBUF_NOINLINE ::pb::Software* Arena::CreateMaybeMessage< ::pb::Software >(Arena* arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
return Arena::CreateMessageInternal< ::pb::Software >(arena);
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
template<> PROTOBUF_NOINLINE ::pb::Language* Arena::CreateMaybeMessage< ::pb::Language >(Arena* arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
return Arena::CreateMessageInternal< ::pb::Language >(arena);
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
|
|
|
template<> PROTOBUF_NOINLINE ::pb::Location* Arena::CreateMaybeMessage< ::pb::Location >(Arena* arena) {
|
2020-10-19 05:24:47 +02:00
|
|
|
return Arena::CreateMessageInternal< ::pb::Location >(arena);
|
2019-12-28 17:35:59 +01:00
|
|
|
}
|
2020-10-19 05:24:47 +02:00
|
|
|
PROTOBUF_NAMESPACE_CLOSE
|
2019-02-27 18:03:57 +01:00
|
|
|
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
2019-12-28 17:35:59 +01:00
|
|
|
#include <google/protobuf/port_undef.inc>
|