types/v2/cpp/result.pb.cc

2197 lines
79 KiB
C++
Raw Normal View History

2019-12-28 17:35:59 +01:00
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: result.proto
#include "result.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
2019-12-28 17:35:59 +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)
#include <google/protobuf/port_def.inc>
extern PROTOBUF_INTERNAL_EXPORT_result_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Blocked_result_2eproto;
2019-12-28 17:35:59 +01:00
namespace pb {
class OutputsDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Outputs> _instance;
2019-12-28 17:35:59 +01:00
} _Outputs_default_instance_;
class OutputDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Output> _instance;
2019-12-28 17:35:59 +01:00
const ::pb::ClaimMeta* claim_;
const ::pb::Error* error_;
} _Output_default_instance_;
class ClaimMetaDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ClaimMeta> _instance;
2019-12-28 17:35:59 +01:00
} _ClaimMeta_default_instance_;
class ErrorDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Error> _instance;
2019-12-28 17:35:59 +01:00
} _Error_default_instance_;
class BlockedDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Blocked> _instance;
} _Blocked_default_instance_;
2019-12-28 17:35:59 +01:00
} // namespace pb
static void InitDefaultsscc_info_Blocked_result_2eproto() {
2019-12-28 17:35:59 +01:00
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Output_default_instance_;
new (ptr) ::pb::Output();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
2019-12-28 17:35:59 +01:00
}
{
void* ptr = &::pb::_ClaimMeta_default_instance_;
new (ptr) ::pb::ClaimMeta();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
{
void* ptr = &::pb::_Error_default_instance_;
new (ptr) ::pb::Error();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
{
void* ptr = &::pb::_Blocked_default_instance_;
new (ptr) ::pb::Blocked();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
2019-12-28 17:35:59 +01:00
}
::pb::Output::InitAsDefaultInstance();
::pb::ClaimMeta::InitAsDefaultInstance();
::pb::Error::InitAsDefaultInstance();
::pb::Blocked::InitAsDefaultInstance();
2019-12-28 17:35:59 +01:00
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Blocked_result_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Blocked_result_2eproto}, {}};
2019-12-28 17:35:59 +01:00
static void InitDefaultsscc_info_Outputs_result_2eproto() {
2019-12-28 17:35:59 +01:00
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Outputs_default_instance_;
new (ptr) ::pb::Outputs();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
2019-12-28 17:35:59 +01:00
}
::pb::Outputs::InitAsDefaultInstance();
2019-12-28 17:35:59 +01:00
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Outputs_result_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Outputs_result_2eproto}, {
&scc_info_Blocked_result_2eproto.base,}};
2019-12-28 17:35:59 +01:00
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_result_2eproto[5];
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_result_2eproto[1];
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_result_2eproto = nullptr;
2019-12-28 17:35:59 +01:00
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_result_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
2019-12-28 17:35:59 +01:00
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Outputs, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Outputs, txos_),
PROTOBUF_FIELD_OFFSET(::pb::Outputs, extra_txos_),
PROTOBUF_FIELD_OFFSET(::pb::Outputs, total_),
PROTOBUF_FIELD_OFFSET(::pb::Outputs, offset_),
PROTOBUF_FIELD_OFFSET(::pb::Outputs, blocked_),
PROTOBUF_FIELD_OFFSET(::pb::Outputs, blocked_total_),
2019-12-28 17:35:59 +01:00
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Output, _internal_metadata_),
~0u, // no _extensions_
PROTOBUF_FIELD_OFFSET(::pb::Output, _oneof_case_[0]),
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Output, tx_hash_),
PROTOBUF_FIELD_OFFSET(::pb::Output, nout_),
PROTOBUF_FIELD_OFFSET(::pb::Output, height_),
offsetof(::pb::OutputDefaultTypeInternal, claim_),
offsetof(::pb::OutputDefaultTypeInternal, error_),
PROTOBUF_FIELD_OFFSET(::pb::Output, meta_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, channel_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, repost_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, short_url_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, canonical_url_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, is_controlling_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, take_over_height_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, creation_height_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, activation_height_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, expiration_height_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, claims_in_channel_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, reposted_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, effective_amount_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, support_amount_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, trending_group_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, trending_mixed_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, trending_local_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, trending_global_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Error, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Error, code_),
PROTOBUF_FIELD_OFFSET(::pb::Error, text_),
PROTOBUF_FIELD_OFFSET(::pb::Error, blocked_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Blocked, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Blocked, count_),
PROTOBUF_FIELD_OFFSET(::pb::Blocked, channel_),
2019-12-28 17:35:59 +01:00
};
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
2019-12-28 17:35:59 +01:00
{ 0, -1, sizeof(::pb::Outputs)},
{ 11, -1, sizeof(::pb::Output)},
{ 22, -1, sizeof(::pb::ClaimMeta)},
{ 44, -1, sizeof(::pb::Error)},
{ 52, -1, sizeof(::pb::Blocked)},
2019-12-28 17:35:59 +01:00
};
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Outputs_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Output_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_ClaimMeta_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Error_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Blocked_default_instance_),
2019-12-28 17:35:59 +01:00
};
const char descriptor_table_protodef_result_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\014result.proto\022\002pb\"\227\001\n\007Outputs\022\030\n\004txos\030\001"
" \003(\0132\n.pb.Output\022\036\n\nextra_txos\030\002 \003(\0132\n.p"
"b.Output\022\r\n\005total\030\003 \001(\r\022\016\n\006offset\030\004 \001(\r\022"
"\034\n\007blocked\030\005 \003(\0132\013.pb.Blocked\022\025\n\rblocked"
"_total\030\006 \001(\r\"{\n\006Output\022\017\n\007tx_hash\030\001 \001(\014\022"
"\014\n\004nout\030\002 \001(\r\022\016\n\006height\030\003 \001(\r\022\036\n\005claim\030\007"
" \001(\0132\r.pb.ClaimMetaH\000\022\032\n\005error\030\017 \001(\0132\t.p"
"b.ErrorH\000B\006\n\004meta\"\257\003\n\tClaimMeta\022\033\n\007chann"
"el\030\001 \001(\0132\n.pb.Output\022\032\n\006repost\030\002 \001(\0132\n.p"
"b.Output\022\021\n\tshort_url\030\003 \001(\t\022\025\n\rcanonical"
"_url\030\004 \001(\t\022\026\n\016is_controlling\030\005 \001(\010\022\030\n\020ta"
"ke_over_height\030\006 \001(\r\022\027\n\017creation_height\030"
"\007 \001(\r\022\031\n\021activation_height\030\010 \001(\r\022\031\n\021expi"
"ration_height\030\t \001(\r\022\031\n\021claims_in_channel"
"\030\n \001(\r\022\020\n\010reposted\030\013 \001(\r\022\030\n\020effective_am"
"ount\030\024 \001(\004\022\026\n\016support_amount\030\025 \001(\004\022\026\n\016tr"
"ending_group\030\026 \001(\r\022\026\n\016trending_mixed\030\027 \001"
"(\002\022\026\n\016trending_local\030\030 \001(\002\022\027\n\017trending_g"
"lobal\030\031 \001(\002\"\224\001\n\005Error\022\034\n\004code\030\001 \001(\0162\016.pb"
".Error.Code\022\014\n\004text\030\002 \001(\t\022\034\n\007blocked\030\003 \001"
"(\0132\013.pb.Blocked\"A\n\004Code\022\020\n\014UNKNOWN_CODE\020"
"\000\022\r\n\tNOT_FOUND\020\001\022\013\n\007INVALID\020\002\022\013\n\007BLOCKED"
"\020\003\"5\n\007Blocked\022\r\n\005count\030\001 \001(\r\022\033\n\007channel\030"
"\002 \001(\0132\n.pb.Outputb\006proto3"
2019-12-28 17:35:59 +01:00
;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_result_2eproto_deps[1] = {
};
static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_result_2eproto_sccs[2] = {
&scc_info_Blocked_result_2eproto.base,
&scc_info_Outputs_result_2eproto.base,
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_result_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_result_2eproto = {
false, false, descriptor_table_protodef_result_2eproto, "result.proto", 945,
&descriptor_table_result_2eproto_once, descriptor_table_result_2eproto_sccs, descriptor_table_result_2eproto_deps, 2, 0,
schemas, file_default_instances, TableStruct_result_2eproto::offsets,
file_level_metadata_result_2eproto, 5, file_level_enum_descriptors_result_2eproto, file_level_service_descriptors_result_2eproto,
2019-12-28 17:35:59 +01:00
};
// Force running AddDescriptors() at dynamic initialization time.
static bool dynamic_init_dummy_result_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_result_2eproto)), true);
2019-12-28 17:35:59 +01:00
namespace pb {
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Error_Code_descriptor() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_result_2eproto);
2019-12-28 17:35:59 +01:00
return file_level_enum_descriptors_result_2eproto[0];
}
bool Error_Code_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
2019-12-28 17:35:59 +01:00
return true;
default:
return false;
}
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
constexpr Error_Code Error::UNKNOWN_CODE;
constexpr Error_Code Error::NOT_FOUND;
constexpr Error_Code Error::INVALID;
constexpr Error_Code Error::BLOCKED;
constexpr Error_Code Error::Code_MIN;
constexpr Error_Code Error::Code_MAX;
constexpr int Error::Code_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
2019-12-28 17:35:59 +01:00
// ===================================================================
void Outputs::InitAsDefaultInstance() {
}
class Outputs::_Internal {
2019-12-28 17:35:59 +01:00
public:
};
Outputs::Outputs(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena),
txos_(arena),
extra_txos_(arena),
blocked_(arena) {
2019-12-28 17:35:59 +01:00
SharedCtor();
RegisterArenaDtor(arena);
// @@protoc_insertion_point(arena_constructor:pb.Outputs)
2019-12-28 17:35:59 +01:00
}
Outputs::Outputs(const Outputs& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
2019-12-28 17:35:59 +01:00
txos_(from.txos_),
extra_txos_(from.extra_txos_),
blocked_(from.blocked_) {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2019-12-28 17:35:59 +01:00
::memcpy(&total_, &from.total_,
static_cast<size_t>(reinterpret_cast<char*>(&blocked_total_) -
reinterpret_cast<char*>(&total_)) + sizeof(blocked_total_));
2019-12-28 17:35:59 +01:00
// @@protoc_insertion_point(copy_constructor:pb.Outputs)
}
void Outputs::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Outputs_result_2eproto.base);
2019-12-28 17:35:59 +01:00
::memset(&total_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&blocked_total_) -
reinterpret_cast<char*>(&total_)) + sizeof(blocked_total_));
2019-12-28 17:35:59 +01:00
}
Outputs::~Outputs() {
// @@protoc_insertion_point(destructor:pb.Outputs)
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2019-12-28 17:35:59 +01:00
}
void Outputs::SharedDtor() {
GOOGLE_DCHECK(GetArena() == nullptr);
2019-12-28 17:35:59 +01:00
}
void Outputs::ArenaDtor(void* object) {
Outputs* _this = reinterpret_cast< Outputs* >(object);
(void)_this;
}
void Outputs::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
2019-12-28 17:35:59 +01:00
void Outputs::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Outputs& Outputs::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Outputs_result_2eproto.base);
2019-12-28 17:35:59 +01:00
return *internal_default_instance();
}
void Outputs::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Outputs)
::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;
txos_.Clear();
extra_txos_.Clear();
blocked_.Clear();
2019-12-28 17:35:59 +01:00
::memset(&total_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&blocked_total_) -
reinterpret_cast<char*>(&total_)) + sizeof(blocked_total_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* Outputs::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
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) {
// repeated .pb.Output txos = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_txos(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// repeated .pb.Output extra_txos = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_extra_txos(), 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
// uint32 total = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
total_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// uint32 offset = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// repeated .pb.Blocked blocked = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_blocked(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
} else goto handle_unusual;
continue;
// uint32 blocked_total = 6;
case 6:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
blocked_total_ = ::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) {
ctx->SetLastTag(tag);
goto success;
2019-12-28 17:35:59 +01: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
success:
return ptr;
2019-12-28 17:35:59 +01:00
failure:
ptr = nullptr;
goto success;
#undef CHK_
2019-12-28 17:35:59 +01:00
}
::PROTOBUF_NAMESPACE_ID::uint8* Outputs::_InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.Outputs)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2019-12-28 17:35:59 +01:00
(void) cached_has_bits;
// repeated .pb.Output txos = 1;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->_internal_txos_size()); i < n; i++) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(1, this->_internal_txos(i), target, stream);
2019-12-28 17:35:59 +01:00
}
// repeated .pb.Output extra_txos = 2;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->_internal_extra_txos_size()); i < n; i++) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(2, this->_internal_extra_txos(i), target, stream);
2019-12-28 17:35:59 +01:00
}
// uint32 total = 3;
if (this->total() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_total(), target);
2019-12-28 17:35:59 +01:00
}
// uint32 offset = 4;
if (this->offset() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_offset(), target);
2019-12-28 17:35:59 +01:00
}
// repeated .pb.Blocked blocked = 5;
2019-12-28 17:35:59 +01:00
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->_internal_blocked_size()); i < n; i++) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(5, this->_internal_blocked(i), target, stream);
2019-12-28 17:35:59 +01:00
}
// uint32 blocked_total = 6;
if (this->blocked_total() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_blocked_total(), target);
2019-12-28 17:35:59 +01: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-12-28 17:35:59 +01:00
}
// @@protoc_insertion_point(serialize_to_array_end:pb.Outputs)
return target;
}
size_t Outputs::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.Outputs)
size_t total_size = 0;
::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;
// repeated .pb.Output txos = 1;
total_size += 1UL * this->_internal_txos_size();
for (const auto& msg : this->txos_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
2019-12-28 17:35:59 +01:00
}
// repeated .pb.Output extra_txos = 2;
total_size += 1UL * this->_internal_extra_txos_size();
for (const auto& msg : this->extra_txos_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
// repeated .pb.Blocked blocked = 5;
total_size += 1UL * this->_internal_blocked_size();
for (const auto& msg : this->blocked_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
2019-12-28 17:35:59 +01:00
}
// uint32 total = 3;
if (this->total() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
this->_internal_total());
2019-12-28 17:35:59 +01:00
}
// uint32 offset = 4;
if (this->offset() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
this->_internal_offset());
}
// uint32 blocked_total = 6;
if (this->blocked_total() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
this->_internal_blocked_total());
2019-12-28 17:35:59 +01: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);
return total_size;
}
void Outputs::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2019-12-28 17:35:59 +01:00
// @@protoc_insertion_point(generalized_merge_from_start:pb.Outputs)
GOOGLE_DCHECK_NE(&from, this);
const Outputs* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Outputs>(
2019-12-28 17:35:59 +01:00
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Outputs)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2019-12-28 17:35:59 +01:00
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Outputs)
MergeFrom(*source);
}
}
void Outputs::MergeFrom(const Outputs& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Outputs)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2019-12-28 17:35:59 +01:00
(void) cached_has_bits;
txos_.MergeFrom(from.txos_);
extra_txos_.MergeFrom(from.extra_txos_);
blocked_.MergeFrom(from.blocked_);
2019-12-28 17:35:59 +01:00
if (from.total() != 0) {
_internal_set_total(from._internal_total());
2019-12-28 17:35:59 +01:00
}
if (from.offset() != 0) {
_internal_set_offset(from._internal_offset());
}
if (from.blocked_total() != 0) {
_internal_set_blocked_total(from._internal_blocked_total());
2019-12-28 17:35:59 +01:00
}
}
void Outputs::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2019-12-28 17:35:59 +01:00
// @@protoc_insertion_point(generalized_copy_from_start:pb.Outputs)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Outputs::CopyFrom(const Outputs& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Outputs)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Outputs::IsInitialized() const {
return true;
}
void Outputs::InternalSwap(Outputs* other) {
using std::swap;
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
txos_.InternalSwap(&other->txos_);
extra_txos_.InternalSwap(&other->extra_txos_);
blocked_.InternalSwap(&other->blocked_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(Outputs, blocked_total_)
+ sizeof(Outputs::blocked_total_)
- PROTOBUF_FIELD_OFFSET(Outputs, total_)>(
reinterpret_cast<char*>(&total_),
reinterpret_cast<char*>(&other->total_));
2019-12-28 17:35:59 +01:00
}
::PROTOBUF_NAMESPACE_ID::Metadata Outputs::GetMetadata() const {
return GetMetadataStatic();
2019-12-28 17:35:59 +01:00
}
// ===================================================================
void Output::InitAsDefaultInstance() {
::pb::_Output_default_instance_.claim_ = const_cast< ::pb::ClaimMeta*>(
::pb::ClaimMeta::internal_default_instance());
::pb::_Output_default_instance_.error_ = const_cast< ::pb::Error*>(
::pb::Error::internal_default_instance());
}
class Output::_Internal {
2019-12-28 17:35:59 +01:00
public:
static const ::pb::ClaimMeta& claim(const Output* msg);
static const ::pb::Error& error(const Output* msg);
};
const ::pb::ClaimMeta&
Output::_Internal::claim(const Output* msg) {
2019-12-28 17:35:59 +01:00
return *msg->meta_.claim_;
}
const ::pb::Error&
Output::_Internal::error(const Output* msg) {
2019-12-28 17:35:59 +01:00
return *msg->meta_.error_;
}
void Output::set_allocated_claim(::pb::ClaimMeta* claim) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
2019-12-28 17:35:59 +01:00
clear_meta();
if (claim) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(claim);
2019-12-28 17:35:59 +01:00
if (message_arena != submessage_arena) {
claim = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2019-12-28 17:35:59 +01:00
message_arena, claim, submessage_arena);
}
set_has_claim();
meta_.claim_ = claim;
}
// @@protoc_insertion_point(field_set_allocated:pb.Output.claim)
}
void Output::set_allocated_error(::pb::Error* error) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
2019-12-28 17:35:59 +01:00
clear_meta();
if (error) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(error);
2019-12-28 17:35:59 +01:00
if (message_arena != submessage_arena) {
error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2019-12-28 17:35:59 +01:00
message_arena, error, submessage_arena);
}
set_has_error();
meta_.error_ = error;
}
// @@protoc_insertion_point(field_set_allocated:pb.Output.error)
}
Output::Output(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
2019-12-28 17:35:59 +01:00
SharedCtor();
RegisterArenaDtor(arena);
// @@protoc_insertion_point(arena_constructor:pb.Output)
2019-12-28 17:35:59 +01:00
}
Output::Output(const Output& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
tx_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from._internal_tx_hash().empty()) {
tx_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_tx_hash(),
GetArena());
2019-12-28 17:35:59 +01:00
}
::memcpy(&nout_, &from.nout_,
static_cast<size_t>(reinterpret_cast<char*>(&height_) -
reinterpret_cast<char*>(&nout_)) + sizeof(height_));
clear_has_meta();
switch (from.meta_case()) {
case kClaim: {
_internal_mutable_claim()->::pb::ClaimMeta::MergeFrom(from._internal_claim());
2019-12-28 17:35:59 +01:00
break;
}
case kError: {
_internal_mutable_error()->::pb::Error::MergeFrom(from._internal_error());
2019-12-28 17:35:59 +01:00
break;
}
case META_NOT_SET: {
break;
}
}
// @@protoc_insertion_point(copy_constructor:pb.Output)
}
void Output::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Blocked_result_2eproto.base);
tx_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2019-12-28 17:35:59 +01:00
::memset(&nout_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&height_) -
reinterpret_cast<char*>(&nout_)) + sizeof(height_));
clear_has_meta();
}
Output::~Output() {
// @@protoc_insertion_point(destructor:pb.Output)
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2019-12-28 17:35:59 +01:00
}
void Output::SharedDtor() {
GOOGLE_DCHECK(GetArena() == nullptr);
tx_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2019-12-28 17:35:59 +01:00
if (has_meta()) {
clear_meta();
}
}
void Output::ArenaDtor(void* object) {
Output* _this = reinterpret_cast< Output* >(object);
(void)_this;
}
void Output::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
2019-12-28 17:35:59 +01:00
void Output::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Output& Output::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Blocked_result_2eproto.base);
2019-12-28 17:35:59 +01:00
return *internal_default_instance();
}
void Output::clear_meta() {
// @@protoc_insertion_point(one_of_clear_start:pb.Output)
switch (meta_case()) {
case kClaim: {
if (GetArena() == nullptr) {
delete meta_.claim_;
}
2019-12-28 17:35:59 +01:00
break;
}
case kError: {
if (GetArena() == nullptr) {
delete meta_.error_;
}
2019-12-28 17:35:59 +01:00
break;
}
case META_NOT_SET: {
break;
}
}
_oneof_case_[0] = META_NOT_SET;
}
void Output::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Output)
::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;
tx_hash_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2019-12-28 17:35:59 +01:00
::memset(&nout_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&height_) -
reinterpret_cast<char*>(&nout_)) + sizeof(height_));
clear_meta();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* Output::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
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 tx_hash = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
auto str = _internal_mutable_tx_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
// uint32 nout = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
nout_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// uint32 height = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// .pb.ClaimMeta claim = 7;
case 7:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
ptr = ctx->ParseMessage(_internal_mutable_claim(), ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// .pb.Error error = 15;
case 15:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) {
ptr = ctx->ParseMessage(_internal_mutable_error(), 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) {
ctx->SetLastTag(tag);
goto success;
2019-12-28 17:35:59 +01: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
success:
return ptr;
2019-12-28 17:35:59 +01:00
failure:
ptr = nullptr;
goto success;
#undef CHK_
2019-12-28 17:35:59 +01:00
}
::PROTOBUF_NAMESPACE_ID::uint8* Output::_InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2019-12-28 17:35:59 +01:00
// @@protoc_insertion_point(serialize_to_array_start:pb.Output)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2019-12-28 17:35:59 +01:00
(void) cached_has_bits;
// bytes tx_hash = 1;
if (this->tx_hash().size() > 0) {
target = stream->WriteBytesMaybeAliased(
1, this->_internal_tx_hash(), target);
2019-12-28 17:35:59 +01:00
}
// uint32 nout = 2;
if (this->nout() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_nout(), target);
2019-12-28 17:35:59 +01:00
}
// uint32 height = 3;
if (this->height() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_height(), target);
2019-12-28 17:35:59 +01:00
}
// .pb.ClaimMeta claim = 7;
if (_internal_has_claim()) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
7, _Internal::claim(this), target, stream);
2019-12-28 17:35:59 +01:00
}
// .pb.Error error = 15;
if (_internal_has_error()) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
15, _Internal::error(this), target, stream);
2019-12-28 17:35:59 +01: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-12-28 17:35:59 +01:00
}
// @@protoc_insertion_point(serialize_to_array_end:pb.Output)
return target;
}
size_t Output::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.Output)
size_t total_size = 0;
::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;
// bytes tx_hash = 1;
if (this->tx_hash().size() > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
this->_internal_tx_hash());
2019-12-28 17:35:59 +01:00
}
// uint32 nout = 2;
if (this->nout() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
this->_internal_nout());
2019-12-28 17:35:59 +01:00
}
// uint32 height = 3;
if (this->height() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
this->_internal_height());
2019-12-28 17:35:59 +01:00
}
switch (meta_case()) {
// .pb.ClaimMeta claim = 7;
case kClaim: {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2019-12-28 17:35:59 +01:00
*meta_.claim_);
break;
}
// .pb.Error error = 15;
case kError: {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2019-12-28 17:35:59 +01:00
*meta_.error_);
break;
}
case META_NOT_SET: {
break;
}
}
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);
return total_size;
}
void Output::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2019-12-28 17:35:59 +01:00
// @@protoc_insertion_point(generalized_merge_from_start:pb.Output)
GOOGLE_DCHECK_NE(&from, this);
const Output* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Output>(
2019-12-28 17:35:59 +01:00
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Output)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2019-12-28 17:35:59 +01:00
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Output)
MergeFrom(*source);
}
}
void Output::MergeFrom(const Output& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Output)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2019-12-28 17:35:59 +01:00
(void) cached_has_bits;
if (from.tx_hash().size() > 0) {
_internal_set_tx_hash(from._internal_tx_hash());
2019-12-28 17:35:59 +01:00
}
if (from.nout() != 0) {
_internal_set_nout(from._internal_nout());
2019-12-28 17:35:59 +01:00
}
if (from.height() != 0) {
_internal_set_height(from._internal_height());
2019-12-28 17:35:59 +01:00
}
switch (from.meta_case()) {
case kClaim: {
_internal_mutable_claim()->::pb::ClaimMeta::MergeFrom(from._internal_claim());
2019-12-28 17:35:59 +01:00
break;
}
case kError: {
_internal_mutable_error()->::pb::Error::MergeFrom(from._internal_error());
2019-12-28 17:35:59 +01:00
break;
}
case META_NOT_SET: {
break;
}
}
}
void Output::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2019-12-28 17:35:59 +01:00
// @@protoc_insertion_point(generalized_copy_from_start:pb.Output)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Output::CopyFrom(const Output& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Output)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Output::IsInitialized() const {
return true;
}
void Output::InternalSwap(Output* other) {
using std::swap;
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
tx_hash_.Swap(&other->tx_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(Output, height_)
+ sizeof(Output::height_)
- PROTOBUF_FIELD_OFFSET(Output, nout_)>(
reinterpret_cast<char*>(&nout_),
reinterpret_cast<char*>(&other->nout_));
2019-12-28 17:35:59 +01:00
swap(meta_, other->meta_);
swap(_oneof_case_[0], other->_oneof_case_[0]);
}
::PROTOBUF_NAMESPACE_ID::Metadata Output::GetMetadata() const {
return GetMetadataStatic();
2019-12-28 17:35:59 +01:00
}
// ===================================================================
void ClaimMeta::InitAsDefaultInstance() {
::pb::_ClaimMeta_default_instance_._instance.get_mutable()->channel_ = const_cast< ::pb::Output*>(
::pb::Output::internal_default_instance());
::pb::_ClaimMeta_default_instance_._instance.get_mutable()->repost_ = const_cast< ::pb::Output*>(
::pb::Output::internal_default_instance());
}
class ClaimMeta::_Internal {
2019-12-28 17:35:59 +01:00
public:
static const ::pb::Output& channel(const ClaimMeta* msg);
static const ::pb::Output& repost(const ClaimMeta* msg);
};
const ::pb::Output&
ClaimMeta::_Internal::channel(const ClaimMeta* msg) {
2019-12-28 17:35:59 +01:00
return *msg->channel_;
}
const ::pb::Output&
ClaimMeta::_Internal::repost(const ClaimMeta* msg) {
2019-12-28 17:35:59 +01:00
return *msg->repost_;
}
ClaimMeta::ClaimMeta(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
2019-12-28 17:35:59 +01:00
SharedCtor();
RegisterArenaDtor(arena);
// @@protoc_insertion_point(arena_constructor:pb.ClaimMeta)
2019-12-28 17:35:59 +01:00
}
ClaimMeta::ClaimMeta(const ClaimMeta& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
short_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from._internal_short_url().empty()) {
short_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_short_url(),
GetArena());
}
canonical_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from._internal_canonical_url().empty()) {
canonical_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_canonical_url(),
GetArena());
}
if (from._internal_has_channel()) {
2019-12-28 17:35:59 +01:00
channel_ = new ::pb::Output(*from.channel_);
} else {
channel_ = nullptr;
}
if (from._internal_has_repost()) {
2019-12-28 17:35:59 +01:00
repost_ = new ::pb::Output(*from.repost_);
} else {
repost_ = nullptr;
}
::memcpy(&is_controlling_, &from.is_controlling_,
static_cast<size_t>(reinterpret_cast<char*>(&trending_local_) -
reinterpret_cast<char*>(&is_controlling_)) + sizeof(trending_local_));
// @@protoc_insertion_point(copy_constructor:pb.ClaimMeta)
}
void ClaimMeta::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Blocked_result_2eproto.base);
short_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
canonical_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2019-12-28 17:35:59 +01:00
::memset(&channel_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&trending_local_) -
reinterpret_cast<char*>(&channel_)) + sizeof(trending_local_));
}
ClaimMeta::~ClaimMeta() {
// @@protoc_insertion_point(destructor:pb.ClaimMeta)
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2019-12-28 17:35:59 +01:00
}
void ClaimMeta::SharedDtor() {
GOOGLE_DCHECK(GetArena() == nullptr);
short_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
canonical_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2019-12-28 17:35:59 +01:00
if (this != internal_default_instance()) delete channel_;
if (this != internal_default_instance()) delete repost_;
}
void ClaimMeta::ArenaDtor(void* object) {
ClaimMeta* _this = reinterpret_cast< ClaimMeta* >(object);
(void)_this;
}
void ClaimMeta::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
2019-12-28 17:35:59 +01:00
void ClaimMeta::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const ClaimMeta& ClaimMeta::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Blocked_result_2eproto.base);
2019-12-28 17:35:59 +01:00
return *internal_default_instance();
}
void ClaimMeta::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.ClaimMeta)
::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;
short_url_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
canonical_url_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
if (GetArena() == nullptr && channel_ != nullptr) {
2019-12-28 17:35:59 +01:00
delete channel_;
}
channel_ = nullptr;
if (GetArena() == nullptr && repost_ != nullptr) {
2019-12-28 17:35:59 +01:00
delete repost_;
}
repost_ = nullptr;
::memset(&is_controlling_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&trending_local_) -
reinterpret_cast<char*>(&is_controlling_)) + sizeof(trending_local_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* ClaimMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
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.Output channel = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
ptr = ctx->ParseMessage(_internal_mutable_channel(), ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// .pb.Output repost = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
ptr = ctx->ParseMessage(_internal_mutable_repost(), ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// string short_url = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
auto str = _internal_mutable_short_url();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.ClaimMeta.short_url"));
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// string canonical_url = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
auto str = _internal_mutable_canonical_url();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.ClaimMeta.canonical_url"));
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// bool is_controlling = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
is_controlling_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// uint32 take_over_height = 6;
case 6:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
take_over_height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// uint32 creation_height = 7;
case 7:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
creation_height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// uint32 activation_height = 8;
case 8:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
activation_height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// uint32 expiration_height = 9;
case 9:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
expiration_height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// uint32 claims_in_channel = 10;
case 10:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
claims_in_channel_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// uint32 reposted = 11;
case 11:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
reposted_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// uint64 effective_amount = 20;
case 20:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 160)) {
effective_amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// uint64 support_amount = 21;
case 21:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 168)) {
support_amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// uint32 trending_group = 22;
case 22:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 176)) {
trending_group_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// float trending_mixed = 23;
case 23:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 189)) {
trending_mixed_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
ptr += sizeof(float);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// float trending_local = 24;
case 24:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 197)) {
trending_local_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
ptr += sizeof(float);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// float trending_global = 25;
case 25:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 205)) {
trending_global_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
ptr += sizeof(float);
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->SetLastTag(tag);
goto success;
2019-12-28 17:35:59 +01: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
success:
2019-12-28 17:35:59 +01:00
return ptr;
failure:
ptr = nullptr;
goto success;
#undef CHK_
}
2019-12-28 17:35:59 +01:00
::PROTOBUF_NAMESPACE_ID::uint8* ClaimMeta::_InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.ClaimMeta)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
2019-12-28 17:35:59 +01:00
// .pb.Output channel = 1;
if (this->has_channel()) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
1, _Internal::channel(this), target, stream);
}
2019-12-28 17:35:59 +01:00
// .pb.Output repost = 2;
if (this->has_repost()) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
2, _Internal::repost(this), target, stream);
}
2019-12-28 17:35:59 +01:00
// string short_url = 3;
if (this->short_url().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_short_url().data(), static_cast<int>(this->_internal_short_url().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"pb.ClaimMeta.short_url");
target = stream->WriteStringMaybeAliased(
3, this->_internal_short_url(), target);
}
2019-12-28 17:35:59 +01:00
// string canonical_url = 4;
if (this->canonical_url().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_canonical_url().data(), static_cast<int>(this->_internal_canonical_url().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"pb.ClaimMeta.canonical_url");
target = stream->WriteStringMaybeAliased(
4, this->_internal_canonical_url(), target);
}
2019-12-28 17:35:59 +01:00
// bool is_controlling = 5;
if (this->is_controlling() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_is_controlling(), target);
}
2019-12-28 17:35:59 +01:00
// uint32 take_over_height = 6;
if (this->take_over_height() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_take_over_height(), target);
2019-12-28 17:35:59 +01:00
}
// uint32 creation_height = 7;
if (this->creation_height() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_creation_height(), target);
2019-12-28 17:35:59 +01:00
}
// uint32 activation_height = 8;
if (this->activation_height() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(8, this->_internal_activation_height(), target);
2019-12-28 17:35:59 +01:00
}
// uint32 expiration_height = 9;
if (this->expiration_height() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(9, this->_internal_expiration_height(), target);
2019-12-28 17:35:59 +01:00
}
// uint32 claims_in_channel = 10;
if (this->claims_in_channel() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(10, this->_internal_claims_in_channel(), target);
2019-12-28 17:35:59 +01:00
}
// uint32 reposted = 11;
if (this->reposted() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(11, this->_internal_reposted(), target);
2019-12-28 17:35:59 +01:00
}
// uint64 effective_amount = 20;
if (this->effective_amount() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(20, this->_internal_effective_amount(), target);
2019-12-28 17:35:59 +01:00
}
// uint64 support_amount = 21;
if (this->support_amount() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(21, this->_internal_support_amount(), target);
2019-12-28 17:35:59 +01:00
}
// uint32 trending_group = 22;
if (this->trending_group() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(22, this->_internal_trending_group(), target);
2019-12-28 17:35:59 +01:00
}
// float trending_mixed = 23;
if (!(this->trending_mixed() <= 0 && this->trending_mixed() >= 0)) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(23, this->_internal_trending_mixed(), target);
2019-12-28 17:35:59 +01:00
}
// float trending_local = 24;
if (!(this->trending_local() <= 0 && this->trending_local() >= 0)) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(24, this->_internal_trending_local(), target);
2019-12-28 17:35:59 +01:00
}
// float trending_global = 25;
if (!(this->trending_global() <= 0 && this->trending_global() >= 0)) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(25, this->_internal_trending_global(), target);
2019-12-28 17:35:59 +01: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-12-28 17:35:59 +01:00
}
// @@protoc_insertion_point(serialize_to_array_end:pb.ClaimMeta)
return target;
}
size_t ClaimMeta::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.ClaimMeta)
size_t total_size = 0;
::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;
// string short_url = 3;
if (this->short_url().size() > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_short_url());
2019-12-28 17:35:59 +01:00
}
// string canonical_url = 4;
if (this->canonical_url().size() > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_canonical_url());
2019-12-28 17:35:59 +01:00
}
// .pb.Output channel = 1;
if (this->has_channel()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2019-12-28 17:35:59 +01:00
*channel_);
}
// .pb.Output repost = 2;
if (this->has_repost()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2019-12-28 17:35:59 +01:00
*repost_);
}
// bool is_controlling = 5;
if (this->is_controlling() != 0) {
total_size += 1 + 1;
}
// uint32 take_over_height = 6;
if (this->take_over_height() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
this->_internal_take_over_height());
2019-12-28 17:35:59 +01:00
}
// uint32 creation_height = 7;
if (this->creation_height() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
this->_internal_creation_height());
2019-12-28 17:35:59 +01:00
}
// uint32 activation_height = 8;
if (this->activation_height() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
this->_internal_activation_height());
2019-12-28 17:35:59 +01:00
}
// uint32 expiration_height = 9;
if (this->expiration_height() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
this->_internal_expiration_height());
2019-12-28 17:35:59 +01:00
}
// uint32 claims_in_channel = 10;
if (this->claims_in_channel() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
this->_internal_claims_in_channel());
2019-12-28 17:35:59 +01:00
}
// uint32 reposted = 11;
if (this->reposted() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
this->_internal_reposted());
2019-12-28 17:35:59 +01:00
}
// uint32 trending_group = 22;
if (this->trending_group() != 0) {
total_size += 2 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
this->_internal_trending_group());
2019-12-28 17:35:59 +01:00
}
// float trending_global = 25;
if (!(this->trending_global() <= 0 && this->trending_global() >= 0)) {
2019-12-28 17:35:59 +01:00
total_size += 2 + 4;
}
// uint64 effective_amount = 20;
if (this->effective_amount() != 0) {
total_size += 2 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
this->_internal_effective_amount());
2019-12-28 17:35:59 +01:00
}
// uint64 support_amount = 21;
if (this->support_amount() != 0) {
total_size += 2 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
this->_internal_support_amount());
2019-12-28 17:35:59 +01:00
}
// float trending_mixed = 23;
if (!(this->trending_mixed() <= 0 && this->trending_mixed() >= 0)) {
2019-12-28 17:35:59 +01:00
total_size += 2 + 4;
}
// float trending_local = 24;
if (!(this->trending_local() <= 0 && this->trending_local() >= 0)) {
2019-12-28 17:35:59 +01:00
total_size += 2 + 4;
}
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);
return total_size;
}
void ClaimMeta::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2019-12-28 17:35:59 +01:00
// @@protoc_insertion_point(generalized_merge_from_start:pb.ClaimMeta)
GOOGLE_DCHECK_NE(&from, this);
const ClaimMeta* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ClaimMeta>(
2019-12-28 17:35:59 +01:00
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.ClaimMeta)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2019-12-28 17:35:59 +01:00
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.ClaimMeta)
MergeFrom(*source);
}
}
void ClaimMeta::MergeFrom(const ClaimMeta& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.ClaimMeta)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2019-12-28 17:35:59 +01:00
(void) cached_has_bits;
if (from.short_url().size() > 0) {
_internal_set_short_url(from._internal_short_url());
2019-12-28 17:35:59 +01:00
}
if (from.canonical_url().size() > 0) {
_internal_set_canonical_url(from._internal_canonical_url());
2019-12-28 17:35:59 +01:00
}
if (from.has_channel()) {
_internal_mutable_channel()->::pb::Output::MergeFrom(from._internal_channel());
2019-12-28 17:35:59 +01:00
}
if (from.has_repost()) {
_internal_mutable_repost()->::pb::Output::MergeFrom(from._internal_repost());
2019-12-28 17:35:59 +01:00
}
if (from.is_controlling() != 0) {
_internal_set_is_controlling(from._internal_is_controlling());
2019-12-28 17:35:59 +01:00
}
if (from.take_over_height() != 0) {
_internal_set_take_over_height(from._internal_take_over_height());
2019-12-28 17:35:59 +01:00
}
if (from.creation_height() != 0) {
_internal_set_creation_height(from._internal_creation_height());
2019-12-28 17:35:59 +01:00
}
if (from.activation_height() != 0) {
_internal_set_activation_height(from._internal_activation_height());
2019-12-28 17:35:59 +01:00
}
if (from.expiration_height() != 0) {
_internal_set_expiration_height(from._internal_expiration_height());
2019-12-28 17:35:59 +01:00
}
if (from.claims_in_channel() != 0) {
_internal_set_claims_in_channel(from._internal_claims_in_channel());
2019-12-28 17:35:59 +01:00
}
if (from.reposted() != 0) {
_internal_set_reposted(from._internal_reposted());
2019-12-28 17:35:59 +01:00
}
if (from.trending_group() != 0) {
_internal_set_trending_group(from._internal_trending_group());
2019-12-28 17:35:59 +01:00
}
if (!(from.trending_global() <= 0 && from.trending_global() >= 0)) {
_internal_set_trending_global(from._internal_trending_global());
2019-12-28 17:35:59 +01:00
}
if (from.effective_amount() != 0) {
_internal_set_effective_amount(from._internal_effective_amount());
2019-12-28 17:35:59 +01:00
}
if (from.support_amount() != 0) {
_internal_set_support_amount(from._internal_support_amount());
2019-12-28 17:35:59 +01:00
}
if (!(from.trending_mixed() <= 0 && from.trending_mixed() >= 0)) {
_internal_set_trending_mixed(from._internal_trending_mixed());
2019-12-28 17:35:59 +01:00
}
if (!(from.trending_local() <= 0 && from.trending_local() >= 0)) {
_internal_set_trending_local(from._internal_trending_local());
2019-12-28 17:35:59 +01:00
}
}
void ClaimMeta::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2019-12-28 17:35:59 +01:00
// @@protoc_insertion_point(generalized_copy_from_start:pb.ClaimMeta)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ClaimMeta::CopyFrom(const ClaimMeta& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.ClaimMeta)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ClaimMeta::IsInitialized() const {
return true;
}
void ClaimMeta::InternalSwap(ClaimMeta* other) {
using std::swap;
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
short_url_.Swap(&other->short_url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
canonical_url_.Swap(&other->canonical_url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(ClaimMeta, trending_local_)
+ sizeof(ClaimMeta::trending_local_)
- PROTOBUF_FIELD_OFFSET(ClaimMeta, channel_)>(
reinterpret_cast<char*>(&channel_),
reinterpret_cast<char*>(&other->channel_));
}
::PROTOBUF_NAMESPACE_ID::Metadata ClaimMeta::GetMetadata() const {
return GetMetadataStatic();
2019-12-28 17:35:59 +01:00
}
// ===================================================================
void Error::InitAsDefaultInstance() {
::pb::_Error_default_instance_._instance.get_mutable()->blocked_ = const_cast< ::pb::Blocked*>(
::pb::Blocked::internal_default_instance());
2019-12-28 17:35:59 +01:00
}
class Error::_Internal {
2019-12-28 17:35:59 +01:00
public:
static const ::pb::Blocked& blocked(const Error* msg);
2019-12-28 17:35:59 +01:00
};
const ::pb::Blocked&
Error::_Internal::blocked(const Error* msg) {
return *msg->blocked_;
}
Error::Error(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
2019-12-28 17:35:59 +01:00
SharedCtor();
RegisterArenaDtor(arena);
// @@protoc_insertion_point(arena_constructor:pb.Error)
2019-12-28 17:35:59 +01:00
}
Error::Error(const Error& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from._internal_text().empty()) {
text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_text(),
GetArena());
}
if (from._internal_has_blocked()) {
blocked_ = new ::pb::Blocked(*from.blocked_);
} else {
blocked_ = nullptr;
2019-12-28 17:35:59 +01:00
}
code_ = from.code_;
// @@protoc_insertion_point(copy_constructor:pb.Error)
}
void Error::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Blocked_result_2eproto.base);
text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
::memset(&blocked_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&code_) -
reinterpret_cast<char*>(&blocked_)) + sizeof(code_));
2019-12-28 17:35:59 +01:00
}
Error::~Error() {
// @@protoc_insertion_point(destructor:pb.Error)
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2019-12-28 17:35:59 +01:00
}
void Error::SharedDtor() {
GOOGLE_DCHECK(GetArena() == nullptr);
text_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) delete blocked_;
2019-12-28 17:35:59 +01:00
}
void Error::ArenaDtor(void* object) {
Error* _this = reinterpret_cast< Error* >(object);
(void)_this;
}
void Error::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
2019-12-28 17:35:59 +01:00
void Error::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Error& Error::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Blocked_result_2eproto.base);
2019-12-28 17:35:59 +01:00
return *internal_default_instance();
}
void Error::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Error)
::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;
text_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
if (GetArena() == nullptr && blocked_ != nullptr) {
delete blocked_;
}
blocked_ = nullptr;
2019-12-28 17:35:59 +01:00
code_ = 0;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* Error::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
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.Error.Code code = 1;
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_code(static_cast<::pb::Error_Code>(val));
} else goto handle_unusual;
continue;
2019-12-28 17:35:59 +01:00
// string text = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
auto str = _internal_mutable_text();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Error.text"));
CHK_(ptr);
} else goto handle_unusual;
continue;
// .pb.Blocked blocked = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_blocked(), 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) {
ctx->SetLastTag(tag);
goto success;
2019-12-28 17:35:59 +01: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
success:
return ptr;
2019-12-28 17:35:59 +01:00
failure:
ptr = nullptr;
goto success;
#undef CHK_
2019-12-28 17:35:59 +01:00
}
::PROTOBUF_NAMESPACE_ID::uint8* Error::_InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.Error)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2019-12-28 17:35:59 +01:00
(void) cached_has_bits;
// .pb.Error.Code code = 1;
if (this->code() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
1, this->_internal_code(), target);
2019-12-28 17:35:59 +01:00
}
// string text = 2;
if (this->text().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_text().data(), static_cast<int>(this->_internal_text().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2019-12-28 17:35:59 +01:00
"pb.Error.text");
target = stream->WriteStringMaybeAliased(
2, this->_internal_text(), target);
2019-12-28 17:35:59 +01:00
}
// .pb.Blocked blocked = 3;
if (this->has_blocked()) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
3, _Internal::blocked(this), target, stream);
2019-12-28 17:35:59 +01: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-12-28 17:35:59 +01:00
}
// @@protoc_insertion_point(serialize_to_array_end:pb.Error)
return target;
}
size_t Error::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.Error)
size_t total_size = 0;
::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;
// string text = 2;
if (this->text().size() > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_text());
}
// .pb.Blocked blocked = 3;
if (this->has_blocked()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*blocked_);
2019-12-28 17:35:59 +01:00
}
// .pb.Error.Code code = 1;
if (this->code() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_code());
2019-12-28 17:35:59 +01: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);
return total_size;
}
void Error::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2019-12-28 17:35:59 +01:00
// @@protoc_insertion_point(generalized_merge_from_start:pb.Error)
GOOGLE_DCHECK_NE(&from, this);
const Error* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Error>(
2019-12-28 17:35:59 +01:00
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Error)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2019-12-28 17:35:59 +01:00
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Error)
MergeFrom(*source);
}
}
void Error::MergeFrom(const Error& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Error)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2019-12-28 17:35:59 +01:00
(void) cached_has_bits;
if (from.text().size() > 0) {
_internal_set_text(from._internal_text());
}
if (from.has_blocked()) {
_internal_mutable_blocked()->::pb::Blocked::MergeFrom(from._internal_blocked());
2019-12-28 17:35:59 +01:00
}
if (from.code() != 0) {
_internal_set_code(from._internal_code());
2019-12-28 17:35:59 +01:00
}
}
void Error::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2019-12-28 17:35:59 +01:00
// @@protoc_insertion_point(generalized_copy_from_start:pb.Error)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Error::CopyFrom(const Error& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Error)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Error::IsInitialized() const {
return true;
}
void Error::InternalSwap(Error* other) {
using std::swap;
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
text_.Swap(&other->text_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(Error, code_)
+ sizeof(Error::code_)
- PROTOBUF_FIELD_OFFSET(Error, blocked_)>(
reinterpret_cast<char*>(&blocked_),
reinterpret_cast<char*>(&other->blocked_));
2019-12-28 17:35:59 +01:00
}
::PROTOBUF_NAMESPACE_ID::Metadata Error::GetMetadata() const {
return GetMetadataStatic();
}
// ===================================================================
void Blocked::InitAsDefaultInstance() {
::pb::_Blocked_default_instance_._instance.get_mutable()->channel_ = const_cast< ::pb::Output*>(
::pb::Output::internal_default_instance());
}
class Blocked::_Internal {
public:
static const ::pb::Output& channel(const Blocked* msg);
};
const ::pb::Output&
Blocked::_Internal::channel(const Blocked* msg) {
return *msg->channel_;
}
Blocked::Blocked(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
SharedCtor();
RegisterArenaDtor(arena);
// @@protoc_insertion_point(arena_constructor:pb.Blocked)
}
Blocked::Blocked(const Blocked& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
if (from._internal_has_channel()) {
channel_ = new ::pb::Output(*from.channel_);
} else {
channel_ = nullptr;
}
count_ = from.count_;
// @@protoc_insertion_point(copy_constructor:pb.Blocked)
}
void Blocked::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Blocked_result_2eproto.base);
::memset(&channel_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&count_) -
reinterpret_cast<char*>(&channel_)) + sizeof(count_));
}
Blocked::~Blocked() {
// @@protoc_insertion_point(destructor:pb.Blocked)
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
void Blocked::SharedDtor() {
GOOGLE_DCHECK(GetArena() == nullptr);
if (this != internal_default_instance()) delete channel_;
}
void Blocked::ArenaDtor(void* object) {
Blocked* _this = reinterpret_cast< Blocked* >(object);
(void)_this;
}
void Blocked::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void Blocked::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Blocked& Blocked::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Blocked_result_2eproto.base);
return *internal_default_instance();
}
void Blocked::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Blocked)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
if (GetArena() == nullptr && channel_ != nullptr) {
delete channel_;
}
channel_ = nullptr;
count_ = 0u;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* Blocked::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
while (!ctx->Done(&ptr)) {
::PROTOBUF_NAMESPACE_ID::uint32 tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr);
switch (tag >> 3) {
// uint32 count = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else goto handle_unusual;
continue;
// .pb.Output channel = 2;
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;
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
ctx->SetLastTag(tag);
goto success;
}
ptr = UnknownFieldParse(tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
continue;
}
} // switch
} // while
success:
return ptr;
failure:
ptr = nullptr;
goto success;
#undef CHK_
}
::PROTOBUF_NAMESPACE_ID::uint8* Blocked::_InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:pb.Blocked)
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// uint32 count = 1;
if (this->count() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_count(), target);
}
// .pb.Output channel = 2;
if (this->has_channel()) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
2, _Internal::channel(this), target, stream);
}
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);
}
// @@protoc_insertion_point(serialize_to_array_end:pb.Blocked)
return target;
}
size_t Blocked::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:pb.Blocked)
size_t total_size = 0;
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// .pb.Output channel = 2;
if (this->has_channel()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*channel_);
}
// uint32 count = 1;
if (this->count() != 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
this->_internal_count());
}
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);
SetCachedSize(cached_size);
return total_size;
}
void Blocked::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:pb.Blocked)
GOOGLE_DCHECK_NE(&from, this);
const Blocked* source =
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Blocked>(
&from);
if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Blocked)
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Blocked)
MergeFrom(*source);
}
}
void Blocked::MergeFrom(const Blocked& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Blocked)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.has_channel()) {
_internal_mutable_channel()->::pb::Output::MergeFrom(from._internal_channel());
}
if (from.count() != 0) {
_internal_set_count(from._internal_count());
}
}
void Blocked::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:pb.Blocked)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Blocked::CopyFrom(const Blocked& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Blocked)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Blocked::IsInitialized() const {
return true;
}
void Blocked::InternalSwap(Blocked* other) {
using std::swap;
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(Blocked, count_)
+ sizeof(Blocked::count_)
- PROTOBUF_FIELD_OFFSET(Blocked, channel_)>(
reinterpret_cast<char*>(&channel_),
reinterpret_cast<char*>(&other->channel_));
}
::PROTOBUF_NAMESPACE_ID::Metadata Blocked::GetMetadata() const {
return GetMetadataStatic();
2019-12-28 17:35:59 +01:00
}
// @@protoc_insertion_point(namespace_scope)
} // namespace pb
PROTOBUF_NAMESPACE_OPEN
2019-12-28 17:35:59 +01:00
template<> PROTOBUF_NOINLINE ::pb::Outputs* Arena::CreateMaybeMessage< ::pb::Outputs >(Arena* arena) {
return Arena::CreateMessageInternal< ::pb::Outputs >(arena);
2019-12-28 17:35:59 +01:00
}
template<> PROTOBUF_NOINLINE ::pb::Output* Arena::CreateMaybeMessage< ::pb::Output >(Arena* arena) {
return Arena::CreateMessageInternal< ::pb::Output >(arena);
2019-12-28 17:35:59 +01:00
}
template<> PROTOBUF_NOINLINE ::pb::ClaimMeta* Arena::CreateMaybeMessage< ::pb::ClaimMeta >(Arena* arena) {
return Arena::CreateMessageInternal< ::pb::ClaimMeta >(arena);
2019-12-28 17:35:59 +01:00
}
template<> PROTOBUF_NOINLINE ::pb::Error* Arena::CreateMaybeMessage< ::pb::Error >(Arena* arena) {
return Arena::CreateMessageInternal< ::pb::Error >(arena);
}
template<> PROTOBUF_NOINLINE ::pb::Blocked* Arena::CreateMaybeMessage< ::pb::Blocked >(Arena* arena) {
return Arena::CreateMessageInternal< ::pb::Blocked >(arena);
2019-12-28 17:35:59 +01:00
}
PROTOBUF_NAMESPACE_CLOSE
2019-12-28 17:35:59 +01:00
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>