update built pb files

This commit is contained in:
Jack Robison 2021-09-14 22:57:14 -04:00
parent 8252dad07d
commit 4ae981a031
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
31 changed files with 20338 additions and 5900 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

3381
v2/cpp/hub.pb.cc Normal file

File diff suppressed because it is too large Load diff

5885
v2/cpp/hub.pb.h Normal file

File diff suppressed because it is too large Load diff

View file

@ -14,26 +14,22 @@
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace pb {
class PurchaseDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Purchase> _instance;
} _Purchase_default_instance_;
constexpr Purchase::Purchase(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: claim_hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
struct PurchaseDefaultTypeInternal {
constexpr PurchaseDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~PurchaseDefaultTypeInternal() {}
union {
Purchase _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PurchaseDefaultTypeInternal _Purchase_default_instance_;
} // namespace pb
static void InitDefaultsscc_info_Purchase_purchase_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Purchase_default_instance_;
new (ptr) ::pb::Purchase();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::pb::Purchase::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Purchase_purchase_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Purchase_purchase_2eproto}, {}};
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_purchase_2eproto[1];
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_purchase_2eproto = nullptr;
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_purchase_2eproto = nullptr;
@ -56,29 +52,28 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] =
const char descriptor_table_protodef_purchase_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\016purchase.proto\022\002pb\"\036\n\010Purchase\022\022\n\nclai"
"m_hash\030\001 \001(\014b\006proto3"
"m_hash\030\001 \001(\014B\037Z\035github.com/lbryio/types/"
"go/pbb\006proto3"
;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_purchase_2eproto_deps[1] = {
};
static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_purchase_2eproto_sccs[1] = {
&scc_info_Purchase_purchase_2eproto.base,
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_purchase_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_purchase_2eproto = {
false, false, descriptor_table_protodef_purchase_2eproto, "purchase.proto", 60,
&descriptor_table_purchase_2eproto_once, descriptor_table_purchase_2eproto_sccs, descriptor_table_purchase_2eproto_deps, 1, 0,
false, false, 93, descriptor_table_protodef_purchase_2eproto, "purchase.proto",
&descriptor_table_purchase_2eproto_once, nullptr, 0, 1,
schemas, file_default_instances, TableStruct_purchase_2eproto::offsets,
file_level_metadata_purchase_2eproto, 1, file_level_enum_descriptors_purchase_2eproto, file_level_service_descriptors_purchase_2eproto,
file_level_metadata_purchase_2eproto, file_level_enum_descriptors_purchase_2eproto, file_level_service_descriptors_purchase_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata
descriptor_table_purchase_2eproto_metadata_getter(int index) {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_purchase_2eproto);
return descriptor_table_purchase_2eproto.file_level_metadata[index];
}
// Force running AddDescriptors() at dynamic initialization time.
static bool dynamic_init_dummy_purchase_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_purchase_2eproto)), true);
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_purchase_2eproto(&descriptor_table_purchase_2eproto);
namespace pb {
// ===================================================================
void Purchase::InitAsDefaultInstance() {
}
class Purchase::_Internal {
public:
};
@ -94,15 +89,14 @@ Purchase::Purchase(const Purchase& from)
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
claim_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from._internal_claim_hash().empty()) {
claim_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_claim_hash(),
claim_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_claim_hash(),
GetArena());
}
// @@protoc_insertion_point(copy_constructor:pb.Purchase)
}
void Purchase::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Purchase_purchase_2eproto.base);
claim_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
claim_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
Purchase::~Purchase() {
@ -125,11 +119,6 @@ void Purchase::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
void Purchase::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Purchase& Purchase::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Purchase_purchase_2eproto.base);
return *internal_default_instance();
}
void Purchase::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Purchase)
@ -137,13 +126,12 @@ void Purchase::Clear() {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
claim_hash_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
claim_hash_.ClearToEmpty();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* Purchase::_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);

View file

@ -8,12 +8,12 @@
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3012000
#if PROTOBUF_VERSION < 3015000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3012004 < PROTOBUF_MIN_PROTOC_VERSION
#if 3015008 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
@ -25,7 +25,6 @@
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
@ -45,7 +44,7 @@ PROTOBUF_NAMESPACE_CLOSE
struct TableStruct_purchase_2eproto {
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
@ -54,9 +53,10 @@ struct TableStruct_purchase_2eproto {
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_purchase_2eproto;
::PROTOBUF_NAMESPACE_ID::Metadata descriptor_table_purchase_2eproto_metadata_getter(int index);
namespace pb {
class Purchase;
class PurchaseDefaultTypeInternal;
struct PurchaseDefaultTypeInternal;
extern PurchaseDefaultTypeInternal _Purchase_default_instance_;
} // namespace pb
PROTOBUF_NAMESPACE_OPEN
@ -69,8 +69,9 @@ namespace pb {
class Purchase PROTOBUF_FINAL :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.Purchase) */ {
public:
inline Purchase() : Purchase(nullptr) {};
inline Purchase() : Purchase(nullptr) {}
virtual ~Purchase();
explicit constexpr Purchase(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Purchase(const Purchase& from);
Purchase(Purchase&& from) noexcept
@ -100,9 +101,9 @@ class Purchase PROTOBUF_FINAL :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
static const Purchase& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static const Purchase& default_instance() {
return *internal_default_instance();
}
static inline const Purchase* internal_default_instance() {
return reinterpret_cast<const Purchase*>(
&_Purchase_default_instance_);
@ -168,8 +169,7 @@ class Purchase PROTOBUF_FINAL :
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
private:
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_purchase_2eproto);
return ::descriptor_table_purchase_2eproto.file_level_metadata[kIndexInFileMessages];
return ::descriptor_table_purchase_2eproto_metadata_getter(kIndexInFileMessages);
}
public:
@ -191,15 +191,6 @@ class Purchase PROTOBUF_FINAL :
std::string* mutable_claim_hash();
std::string* release_claim_hash();
void set_allocated_claim_hash(std::string* claim_hash);
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
std::string* unsafe_arena_release_claim_hash();
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_claim_hash(
std::string* claim_hash);
private:
const std::string& _internal_claim_hash() const;
void _internal_set_claim_hash(const std::string& value);
@ -230,7 +221,7 @@ class Purchase PROTOBUF_FINAL :
// bytes claim_hash = 1;
inline void Purchase::clear_claim_hash() {
claim_hash_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
claim_hash_.ClearToEmpty();
}
inline const std::string& Purchase::claim_hash() const {
// @@protoc_insertion_point(field_get:pb.Purchase.claim_hash)
@ -249,31 +240,30 @@ inline const std::string& Purchase::_internal_claim_hash() const {
}
inline void Purchase::_internal_set_claim_hash(const std::string& value) {
claim_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
claim_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
inline void Purchase::set_claim_hash(std::string&& value) {
claim_hash_.Set(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
// @@protoc_insertion_point(field_set_rvalue:pb.Purchase.claim_hash)
}
inline void Purchase::set_claim_hash(const char* value) {
GOOGLE_DCHECK(value != nullptr);
claim_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArena());
claim_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
// @@protoc_insertion_point(field_set_char:pb.Purchase.claim_hash)
}
inline void Purchase::set_claim_hash(const void* value,
size_t size) {
claim_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
claim_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
// @@protoc_insertion_point(field_set_pointer:pb.Purchase.claim_hash)
}
inline std::string* Purchase::_internal_mutable_claim_hash() {
return claim_hash_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
return claim_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
inline std::string* Purchase::release_claim_hash() {
// @@protoc_insertion_point(field_release:pb.Purchase.claim_hash)
@ -289,25 +279,6 @@ inline void Purchase::set_allocated_claim_hash(std::string* claim_hash) {
GetArena());
// @@protoc_insertion_point(field_set_allocated:pb.Purchase.claim_hash)
}
inline std::string* Purchase::unsafe_arena_release_claim_hash() {
// @@protoc_insertion_point(field_unsafe_arena_release:pb.Purchase.claim_hash)
GOOGLE_DCHECK(GetArena() != nullptr);
return claim_hash_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArena());
}
inline void Purchase::unsafe_arena_set_allocated_claim_hash(
std::string* claim_hash) {
GOOGLE_DCHECK(GetArena() != nullptr);
if (claim_hash != nullptr) {
} else {
}
claim_hash_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
claim_hash, GetArena());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:pb.Purchase.claim_hash)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop

View file

@ -14,78 +14,95 @@
#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;
PROTOBUF_PRAGMA_INIT_SEG
namespace pb {
class OutputsDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Outputs> _instance;
} _Outputs_default_instance_;
class OutputDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Output> _instance;
const ::pb::ClaimMeta* claim_;
const ::pb::Error* error_;
} _Output_default_instance_;
class ClaimMetaDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ClaimMeta> _instance;
} _ClaimMeta_default_instance_;
class ErrorDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Error> _instance;
} _Error_default_instance_;
class BlockedDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Blocked> _instance;
} _Blocked_default_instance_;
constexpr Outputs::Outputs(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: txos_()
, extra_txos_()
, blocked_()
, total_(0u)
, offset_(0u)
, blocked_total_(0u){}
struct OutputsDefaultTypeInternal {
constexpr OutputsDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~OutputsDefaultTypeInternal() {}
union {
Outputs _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OutputsDefaultTypeInternal _Outputs_default_instance_;
constexpr Output::Output(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: tx_hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, nout_(0u)
, height_(0u)
, _oneof_case_{}{}
struct OutputDefaultTypeInternal {
constexpr OutputDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~OutputDefaultTypeInternal() {}
union {
Output _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OutputDefaultTypeInternal _Output_default_instance_;
constexpr ClaimMeta::ClaimMeta(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: short_url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, canonical_url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, channel_(nullptr)
, repost_(nullptr)
, is_controlling_(false)
, take_over_height_(0u)
, creation_height_(0u)
, activation_height_(0u)
, expiration_height_(0u)
, claims_in_channel_(0u)
, reposted_(0u)
, effective_amount_(PROTOBUF_ULONGLONG(0))
, support_amount_(PROTOBUF_ULONGLONG(0))
, trending_score_(0){}
struct ClaimMetaDefaultTypeInternal {
constexpr ClaimMetaDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~ClaimMetaDefaultTypeInternal() {}
union {
ClaimMeta _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ClaimMetaDefaultTypeInternal _ClaimMeta_default_instance_;
constexpr Error::Error(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: text_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, blocked_(nullptr)
, code_(0)
{}
struct ErrorDefaultTypeInternal {
constexpr ErrorDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~ErrorDefaultTypeInternal() {}
union {
Error _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ErrorDefaultTypeInternal _Error_default_instance_;
constexpr Blocked::Blocked(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: channel_(nullptr)
, count_(0u){}
struct BlockedDefaultTypeInternal {
constexpr BlockedDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~BlockedDefaultTypeInternal() {}
union {
Blocked _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BlockedDefaultTypeInternal _Blocked_default_instance_;
} // namespace pb
static void InitDefaultsscc_info_Blocked_result_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Output_default_instance_;
new (ptr) ::pb::Output();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
{
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);
}
::pb::Output::InitAsDefaultInstance();
::pb::ClaimMeta::InitAsDefaultInstance();
::pb::Error::InitAsDefaultInstance();
::pb::Blocked::InitAsDefaultInstance();
}
::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}, {}};
static void InitDefaultsscc_info_Outputs_result_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Outputs_default_instance_;
new (ptr) ::pb::Outputs();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::pb::Outputs::InitAsDefaultInstance();
}
::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,}};
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;
@ -110,8 +127,8 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_result_2eproto::offsets[] PROT
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_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag,
PROTOBUF_FIELD_OFFSET(::pb::Output, meta_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, _internal_metadata_),
@ -131,10 +148,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_result_2eproto::offsets[] PROT
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_),
PROTOBUF_FIELD_OFFSET(::pb::ClaimMeta, trending_score_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::pb::Error, _internal_metadata_),
~0u, // no _extensions_
@ -155,8 +169,8 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB
{ 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)},
{ 41, -1, sizeof(::pb::Error)},
{ 49, -1, sizeof(::pb::Blocked)},
};
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
@ -175,7 +189,7 @@ const char descriptor_table_protodef_result_2eproto[] PROTOBUF_SECTION_VARIABLE(
"_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"
"b.ErrorH\000B\006\n\004meta\"\346\002\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"
@ -184,31 +198,29 @@ const char descriptor_table_protodef_result_2eproto[] PROTOBUF_SECTION_VARIABLE(
"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"
"ending_score\030\026 \001(\001\"\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\007bloc"
"ked\030\003 \001(\0132\013.pb.Blocked\"A\n\004Code\022\020\n\014UNKNOW"
"N_CODE\020\000\022\r\n\tNOT_FOUND\020\001\022\013\n\007INVALID\020\002\022\013\n\007"
"BLOCKED\020\003\"5\n\007Blocked\022\r\n\005count\030\001 \001(\r\022\033\n\007c"
"hannel\030\002 \001(\0132\n.pb.OutputB\"Z github.com/l"
"bryio/types/v2/go/pbb\006proto3"
;
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,
false, false, 908, descriptor_table_protodef_result_2eproto, "result.proto",
&descriptor_table_result_2eproto_once, nullptr, 0, 5,
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,
file_level_metadata_result_2eproto, file_level_enum_descriptors_result_2eproto, file_level_service_descriptors_result_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata
descriptor_table_result_2eproto_metadata_getter(int index) {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_result_2eproto);
return descriptor_table_result_2eproto.file_level_metadata[index];
}
// 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);
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_result_2eproto(&descriptor_table_result_2eproto);
namespace pb {
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Error_Code_descriptor() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_result_2eproto);
@ -238,8 +250,6 @@ constexpr int Error::Code_ARRAYSIZE;
// ===================================================================
void Outputs::InitAsDefaultInstance() {
}
class Outputs::_Internal {
public:
};
@ -266,10 +276,10 @@ Outputs::Outputs(const Outputs& from)
}
void Outputs::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Outputs_result_2eproto.base);
::memset(&total_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&blocked_total_) -
reinterpret_cast<char*>(&total_)) + sizeof(blocked_total_));
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
reinterpret_cast<char*>(&total_) - reinterpret_cast<char*>(this)),
0, static_cast<size_t>(reinterpret_cast<char*>(&blocked_total_) -
reinterpret_cast<char*>(&total_)) + sizeof(blocked_total_));
}
Outputs::~Outputs() {
@ -291,11 +301,6 @@ void Outputs::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
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);
return *internal_default_instance();
}
void Outputs::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Outputs)
@ -314,7 +319,6 @@ void Outputs::Clear() {
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);
@ -589,12 +593,6 @@ void Outputs::InternalSwap(Outputs* other) {
// ===================================================================
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 {
public:
static const ::pb::ClaimMeta& claim(const Output* msg);
@ -650,7 +648,7 @@ Output::Output(const Output& from)
_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(),
tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_tx_hash(),
GetArena());
}
::memcpy(&nout_, &from.nout_,
@ -674,12 +672,12 @@ Output::Output(const Output& from)
}
void Output::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Blocked_result_2eproto.base);
tx_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
::memset(&nout_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&height_) -
reinterpret_cast<char*>(&nout_)) + sizeof(height_));
clear_has_meta();
tx_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
reinterpret_cast<char*>(&nout_) - reinterpret_cast<char*>(this)),
0, static_cast<size_t>(reinterpret_cast<char*>(&height_) -
reinterpret_cast<char*>(&nout_)) + sizeof(height_));
clear_has_meta();
}
Output::~Output() {
@ -705,11 +703,6 @@ void Output::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
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);
return *internal_default_instance();
}
void Output::clear_meta() {
// @@protoc_insertion_point(one_of_clear_start:pb.Output)
@ -740,7 +733,7 @@ void Output::Clear() {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
tx_hash_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
tx_hash_.ClearToEmpty();
::memset(&nout_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&height_) -
reinterpret_cast<char*>(&nout_)) + sizeof(height_));
@ -750,7 +743,6 @@ void Output::Clear() {
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);
@ -1004,12 +996,6 @@ void Output::InternalSwap(Output* other) {
// ===================================================================
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 {
public:
static const ::pb::Output& channel(const ClaimMeta* msg);
@ -1035,12 +1021,12 @@ ClaimMeta::ClaimMeta(const ClaimMeta& from)
_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(),
short_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, 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(),
canonical_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_canonical_url(),
GetArena());
}
if (from._internal_has_channel()) {
@ -1054,18 +1040,18 @@ ClaimMeta::ClaimMeta(const ClaimMeta& from)
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_));
static_cast<size_t>(reinterpret_cast<char*>(&trending_score_) -
reinterpret_cast<char*>(&is_controlling_)) + sizeof(trending_score_));
// @@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());
::memset(&channel_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&trending_local_) -
reinterpret_cast<char*>(&channel_)) + sizeof(trending_local_));
short_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
canonical_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
reinterpret_cast<char*>(&channel_) - reinterpret_cast<char*>(this)),
0, static_cast<size_t>(reinterpret_cast<char*>(&trending_score_) -
reinterpret_cast<char*>(&channel_)) + sizeof(trending_score_));
}
ClaimMeta::~ClaimMeta() {
@ -1091,11 +1077,6 @@ void ClaimMeta::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
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);
return *internal_default_instance();
}
void ClaimMeta::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.ClaimMeta)
@ -1103,8 +1084,8 @@ void ClaimMeta::Clear() {
// 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());
short_url_.ClearToEmpty();
canonical_url_.ClearToEmpty();
if (GetArena() == nullptr && channel_ != nullptr) {
delete channel_;
}
@ -1114,14 +1095,13 @@ void ClaimMeta::Clear() {
}
repost_ = nullptr;
::memset(&is_controlling_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&trending_local_) -
reinterpret_cast<char*>(&is_controlling_)) + sizeof(trending_local_));
reinterpret_cast<char*>(&trending_score_) -
reinterpret_cast<char*>(&is_controlling_)) + sizeof(trending_score_));
_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);
@ -1222,32 +1202,11 @@ const char* ClaimMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::
CHK_(ptr);
} else goto handle_unusual;
continue;
// uint32 trending_group = 22;
// double trending_score = 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;
// 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;
// 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;
// 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);
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 177)) {
trending_score_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
ptr += sizeof(double);
} else goto handle_unusual;
continue;
default: {
@ -1368,28 +1327,10 @@ failure:
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(21, this->_internal_support_amount(), target);
}
// uint32 trending_group = 22;
if (this->trending_group() != 0) {
// double trending_score = 22;
if (!(this->trending_score() <= 0 && this->trending_score() >= 0)) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(22, this->_internal_trending_group(), target);
}
// 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);
}
// 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);
}
// 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);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(22, this->_internal_trending_score(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@ -1483,18 +1424,6 @@ size_t ClaimMeta::ByteSizeLong() const {
this->_internal_reposted());
}
// uint32 trending_group = 22;
if (this->trending_group() != 0) {
total_size += 2 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
this->_internal_trending_group());
}
// float trending_global = 25;
if (!(this->trending_global() <= 0 && this->trending_global() >= 0)) {
total_size += 2 + 4;
}
// uint64 effective_amount = 20;
if (this->effective_amount() != 0) {
total_size += 2 +
@ -1509,14 +1438,9 @@ size_t ClaimMeta::ByteSizeLong() const {
this->_internal_support_amount());
}
// float trending_mixed = 23;
if (!(this->trending_mixed() <= 0 && this->trending_mixed() >= 0)) {
total_size += 2 + 4;
}
// float trending_local = 24;
if (!(this->trending_local() <= 0 && this->trending_local() >= 0)) {
total_size += 2 + 4;
// double trending_score = 22;
if (!(this->trending_score() <= 0 && this->trending_score() >= 0)) {
total_size += 2 + 8;
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@ -1583,23 +1507,14 @@ void ClaimMeta::MergeFrom(const ClaimMeta& from) {
if (from.reposted() != 0) {
_internal_set_reposted(from._internal_reposted());
}
if (from.trending_group() != 0) {
_internal_set_trending_group(from._internal_trending_group());
}
if (!(from.trending_global() <= 0 && from.trending_global() >= 0)) {
_internal_set_trending_global(from._internal_trending_global());
}
if (from.effective_amount() != 0) {
_internal_set_effective_amount(from._internal_effective_amount());
}
if (from.support_amount() != 0) {
_internal_set_support_amount(from._internal_support_amount());
}
if (!(from.trending_mixed() <= 0 && from.trending_mixed() >= 0)) {
_internal_set_trending_mixed(from._internal_trending_mixed());
}
if (!(from.trending_local() <= 0 && from.trending_local() >= 0)) {
_internal_set_trending_local(from._internal_trending_local());
if (!(from.trending_score() <= 0 && from.trending_score() >= 0)) {
_internal_set_trending_score(from._internal_trending_score());
}
}
@ -1627,8 +1542,8 @@ void ClaimMeta::InternalSwap(ClaimMeta* other) {
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, trending_score_)
+ sizeof(ClaimMeta::trending_score_)
- PROTOBUF_FIELD_OFFSET(ClaimMeta, channel_)>(
reinterpret_cast<char*>(&channel_),
reinterpret_cast<char*>(&other->channel_));
@ -1641,10 +1556,6 @@ void ClaimMeta::InternalSwap(ClaimMeta* other) {
// ===================================================================
void Error::InitAsDefaultInstance() {
::pb::_Error_default_instance_._instance.get_mutable()->blocked_ = const_cast< ::pb::Blocked*>(
::pb::Blocked::internal_default_instance());
}
class Error::_Internal {
public:
static const ::pb::Blocked& blocked(const Error* msg);
@ -1665,7 +1576,7 @@ Error::Error(const Error& from)
_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(),
text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_text(),
GetArena());
}
if (from._internal_has_blocked()) {
@ -1678,11 +1589,11 @@ Error::Error(const Error& from)
}
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_));
text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
reinterpret_cast<char*>(&blocked_) - reinterpret_cast<char*>(this)),
0, static_cast<size_t>(reinterpret_cast<char*>(&code_) -
reinterpret_cast<char*>(&blocked_)) + sizeof(code_));
}
Error::~Error() {
@ -1706,11 +1617,6 @@ void Error::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
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);
return *internal_default_instance();
}
void Error::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Error)
@ -1718,7 +1624,7 @@ void Error::Clear() {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
text_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
text_.ClearToEmpty();
if (GetArena() == nullptr && blocked_ != nullptr) {
delete blocked_;
}
@ -1729,7 +1635,6 @@ void Error::Clear() {
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);
@ -1927,10 +1832,6 @@ void Error::InternalSwap(Error* other) {
// ===================================================================
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);
@ -1959,10 +1860,10 @@ Blocked::Blocked(const Blocked& from)
}
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_));
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
reinterpret_cast<char*>(&channel_) - reinterpret_cast<char*>(this)),
0, static_cast<size_t>(reinterpret_cast<char*>(&count_) -
reinterpret_cast<char*>(&channel_)) + sizeof(count_));
}
Blocked::~Blocked() {
@ -1985,11 +1886,6 @@ 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)
@ -2007,7 +1903,6 @@ void Blocked::Clear() {
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);

View file

@ -8,12 +8,12 @@
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3012000
#if PROTOBUF_VERSION < 3015000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3012004 < PROTOBUF_MIN_PROTOC_VERSION
#if 3015008 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
@ -25,7 +25,6 @@
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
@ -46,7 +45,7 @@ PROTOBUF_NAMESPACE_CLOSE
struct TableStruct_result_2eproto {
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
@ -55,21 +54,22 @@ struct TableStruct_result_2eproto {
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_result_2eproto;
::PROTOBUF_NAMESPACE_ID::Metadata descriptor_table_result_2eproto_metadata_getter(int index);
namespace pb {
class Blocked;
class BlockedDefaultTypeInternal;
struct BlockedDefaultTypeInternal;
extern BlockedDefaultTypeInternal _Blocked_default_instance_;
class ClaimMeta;
class ClaimMetaDefaultTypeInternal;
struct ClaimMetaDefaultTypeInternal;
extern ClaimMetaDefaultTypeInternal _ClaimMeta_default_instance_;
class Error;
class ErrorDefaultTypeInternal;
struct ErrorDefaultTypeInternal;
extern ErrorDefaultTypeInternal _Error_default_instance_;
class Output;
class OutputDefaultTypeInternal;
struct OutputDefaultTypeInternal;
extern OutputDefaultTypeInternal _Output_default_instance_;
class Outputs;
class OutputsDefaultTypeInternal;
struct OutputsDefaultTypeInternal;
extern OutputsDefaultTypeInternal _Outputs_default_instance_;
} // namespace pb
PROTOBUF_NAMESPACE_OPEN
@ -104,7 +104,7 @@ inline const std::string& Error_Code_Name(T enum_t_value) {
Error_Code_descriptor(), enum_t_value);
}
inline bool Error_Code_Parse(
const std::string& name, Error_Code* value) {
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Error_Code* value) {
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Error_Code>(
Error_Code_descriptor(), name, value);
}
@ -113,8 +113,9 @@ inline bool Error_Code_Parse(
class Outputs PROTOBUF_FINAL :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.Outputs) */ {
public:
inline Outputs() : Outputs(nullptr) {};
inline Outputs() : Outputs(nullptr) {}
virtual ~Outputs();
explicit constexpr Outputs(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Outputs(const Outputs& from);
Outputs(Outputs&& from) noexcept
@ -144,9 +145,9 @@ class Outputs PROTOBUF_FINAL :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
static const Outputs& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static const Outputs& default_instance() {
return *internal_default_instance();
}
static inline const Outputs* internal_default_instance() {
return reinterpret_cast<const Outputs*>(
&_Outputs_default_instance_);
@ -212,8 +213,7 @@ class Outputs PROTOBUF_FINAL :
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
private:
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_result_2eproto);
return ::descriptor_table_result_2eproto.file_level_metadata[kIndexInFileMessages];
return ::descriptor_table_result_2eproto_metadata_getter(kIndexInFileMessages);
}
public:
@ -332,8 +332,9 @@ class Outputs PROTOBUF_FINAL :
class Output PROTOBUF_FINAL :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.Output) */ {
public:
inline Output() : Output(nullptr) {};
inline Output() : Output(nullptr) {}
virtual ~Output();
explicit constexpr Output(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Output(const Output& from);
Output(Output&& from) noexcept
@ -363,15 +364,15 @@ class Output PROTOBUF_FINAL :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
static const Output& default_instance();
static const Output& default_instance() {
return *internal_default_instance();
}
enum MetaCase {
kClaim = 7,
kError = 15,
META_NOT_SET = 0,
};
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const Output* internal_default_instance() {
return reinterpret_cast<const Output*>(
&_Output_default_instance_);
@ -437,8 +438,7 @@ class Output PROTOBUF_FINAL :
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
private:
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_result_2eproto);
return ::descriptor_table_result_2eproto.file_level_metadata[kIndexInFileMessages];
return ::descriptor_table_result_2eproto_metadata_getter(kIndexInFileMessages);
}
public:
@ -464,15 +464,6 @@ class Output PROTOBUF_FINAL :
std::string* mutable_tx_hash();
std::string* release_tx_hash();
void set_allocated_tx_hash(std::string* tx_hash);
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
std::string* unsafe_arena_release_tx_hash();
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_tx_hash(
std::string* tx_hash);
private:
const std::string& _internal_tx_hash() const;
void _internal_set_tx_hash(const std::string& value);
@ -551,7 +542,8 @@ class Output PROTOBUF_FINAL :
::PROTOBUF_NAMESPACE_ID::uint32 nout_;
::PROTOBUF_NAMESPACE_ID::uint32 height_;
union MetaUnion {
MetaUnion() {}
constexpr MetaUnion() : _constinit_{} {}
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
::pb::ClaimMeta* claim_;
::pb::Error* error_;
} meta_;
@ -565,8 +557,9 @@ class Output PROTOBUF_FINAL :
class ClaimMeta PROTOBUF_FINAL :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.ClaimMeta) */ {
public:
inline ClaimMeta() : ClaimMeta(nullptr) {};
inline ClaimMeta() : ClaimMeta(nullptr) {}
virtual ~ClaimMeta();
explicit constexpr ClaimMeta(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ClaimMeta(const ClaimMeta& from);
ClaimMeta(ClaimMeta&& from) noexcept
@ -596,9 +589,9 @@ class ClaimMeta PROTOBUF_FINAL :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
static const ClaimMeta& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static const ClaimMeta& default_instance() {
return *internal_default_instance();
}
static inline const ClaimMeta* internal_default_instance() {
return reinterpret_cast<const ClaimMeta*>(
&_ClaimMeta_default_instance_);
@ -664,8 +657,7 @@ class ClaimMeta PROTOBUF_FINAL :
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
private:
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_result_2eproto);
return ::descriptor_table_result_2eproto.file_level_metadata[kIndexInFileMessages];
return ::descriptor_table_result_2eproto_metadata_getter(kIndexInFileMessages);
}
public:
@ -686,12 +678,9 @@ class ClaimMeta PROTOBUF_FINAL :
kExpirationHeightFieldNumber = 9,
kClaimsInChannelFieldNumber = 10,
kRepostedFieldNumber = 11,
kTrendingGroupFieldNumber = 22,
kTrendingGlobalFieldNumber = 25,
kEffectiveAmountFieldNumber = 20,
kSupportAmountFieldNumber = 21,
kTrendingMixedFieldNumber = 23,
kTrendingLocalFieldNumber = 24,
kTrendingScoreFieldNumber = 22,
};
// string short_url = 3;
void clear_short_url();
@ -703,15 +692,6 @@ class ClaimMeta PROTOBUF_FINAL :
std::string* mutable_short_url();
std::string* release_short_url();
void set_allocated_short_url(std::string* short_url);
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
std::string* unsafe_arena_release_short_url();
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_short_url(
std::string* short_url);
private:
const std::string& _internal_short_url() const;
void _internal_set_short_url(const std::string& value);
@ -728,15 +708,6 @@ class ClaimMeta PROTOBUF_FINAL :
std::string* mutable_canonical_url();
std::string* release_canonical_url();
void set_allocated_canonical_url(std::string* canonical_url);
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
std::string* unsafe_arena_release_canonical_url();
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_canonical_url(
std::string* canonical_url);
private:
const std::string& _internal_canonical_url() const;
void _internal_set_canonical_url(const std::string& value);
@ -842,24 +813,6 @@ class ClaimMeta PROTOBUF_FINAL :
void _internal_set_reposted(::PROTOBUF_NAMESPACE_ID::uint32 value);
public:
// uint32 trending_group = 22;
void clear_trending_group();
::PROTOBUF_NAMESPACE_ID::uint32 trending_group() const;
void set_trending_group(::PROTOBUF_NAMESPACE_ID::uint32 value);
private:
::PROTOBUF_NAMESPACE_ID::uint32 _internal_trending_group() const;
void _internal_set_trending_group(::PROTOBUF_NAMESPACE_ID::uint32 value);
public:
// float trending_global = 25;
void clear_trending_global();
float trending_global() const;
void set_trending_global(float value);
private:
float _internal_trending_global() const;
void _internal_set_trending_global(float value);
public:
// uint64 effective_amount = 20;
void clear_effective_amount();
::PROTOBUF_NAMESPACE_ID::uint64 effective_amount() const;
@ -878,22 +831,13 @@ class ClaimMeta PROTOBUF_FINAL :
void _internal_set_support_amount(::PROTOBUF_NAMESPACE_ID::uint64 value);
public:
// float trending_mixed = 23;
void clear_trending_mixed();
float trending_mixed() const;
void set_trending_mixed(float value);
// double trending_score = 22;
void clear_trending_score();
double trending_score() const;
void set_trending_score(double value);
private:
float _internal_trending_mixed() const;
void _internal_set_trending_mixed(float value);
public:
// float trending_local = 24;
void clear_trending_local();
float trending_local() const;
void set_trending_local(float value);
private:
float _internal_trending_local() const;
void _internal_set_trending_local(float value);
double _internal_trending_score() const;
void _internal_set_trending_score(double value);
public:
// @@protoc_insertion_point(class_scope:pb.ClaimMeta)
@ -914,12 +858,9 @@ class ClaimMeta PROTOBUF_FINAL :
::PROTOBUF_NAMESPACE_ID::uint32 expiration_height_;
::PROTOBUF_NAMESPACE_ID::uint32 claims_in_channel_;
::PROTOBUF_NAMESPACE_ID::uint32 reposted_;
::PROTOBUF_NAMESPACE_ID::uint32 trending_group_;
float trending_global_;
::PROTOBUF_NAMESPACE_ID::uint64 effective_amount_;
::PROTOBUF_NAMESPACE_ID::uint64 support_amount_;
float trending_mixed_;
float trending_local_;
double trending_score_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_result_2eproto;
};
@ -928,8 +869,9 @@ class ClaimMeta PROTOBUF_FINAL :
class Error PROTOBUF_FINAL :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.Error) */ {
public:
inline Error() : Error(nullptr) {};
inline Error() : Error(nullptr) {}
virtual ~Error();
explicit constexpr Error(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Error(const Error& from);
Error(Error&& from) noexcept
@ -959,9 +901,9 @@ class Error PROTOBUF_FINAL :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
static const Error& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static const Error& default_instance() {
return *internal_default_instance();
}
static inline const Error* internal_default_instance() {
return reinterpret_cast<const Error*>(
&_Error_default_instance_);
@ -1027,8 +969,7 @@ class Error PROTOBUF_FINAL :
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
private:
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_result_2eproto);
return ::descriptor_table_result_2eproto.file_level_metadata[kIndexInFileMessages];
return ::descriptor_table_result_2eproto_metadata_getter(kIndexInFileMessages);
}
public:
@ -1064,7 +1005,7 @@ class Error PROTOBUF_FINAL :
"Incorrect type passed to function Code_Name.");
return Error_Code_Name(enum_t_value);
}
static inline bool Code_Parse(const std::string& name,
static inline bool Code_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
Code* value) {
return Error_Code_Parse(name, value);
}
@ -1086,15 +1027,6 @@ class Error PROTOBUF_FINAL :
std::string* mutable_text();
std::string* release_text();
void set_allocated_text(std::string* text);
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
std::string* unsafe_arena_release_text();
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_text(
std::string* text);
private:
const std::string& _internal_text() const;
void _internal_set_text(const std::string& value);
@ -1146,8 +1078,9 @@ class Error PROTOBUF_FINAL :
class Blocked PROTOBUF_FINAL :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.Blocked) */ {
public:
inline Blocked() : Blocked(nullptr) {};
inline Blocked() : Blocked(nullptr) {}
virtual ~Blocked();
explicit constexpr Blocked(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Blocked(const Blocked& from);
Blocked(Blocked&& from) noexcept
@ -1177,9 +1110,9 @@ class Blocked PROTOBUF_FINAL :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
static const Blocked& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static const Blocked& default_instance() {
return *internal_default_instance();
}
static inline const Blocked* internal_default_instance() {
return reinterpret_cast<const Blocked*>(
&_Blocked_default_instance_);
@ -1245,8 +1178,7 @@ class Blocked PROTOBUF_FINAL :
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
private:
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_result_2eproto);
return ::descriptor_table_result_2eproto.file_level_metadata[kIndexInFileMessages];
return ::descriptor_table_result_2eproto_metadata_getter(kIndexInFileMessages);
}
public:
@ -1492,7 +1424,7 @@ inline void Outputs::set_blocked_total(::PROTOBUF_NAMESPACE_ID::uint32 value) {
// bytes tx_hash = 1;
inline void Output::clear_tx_hash() {
tx_hash_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
tx_hash_.ClearToEmpty();
}
inline const std::string& Output::tx_hash() const {
// @@protoc_insertion_point(field_get:pb.Output.tx_hash)
@ -1511,31 +1443,30 @@ inline const std::string& Output::_internal_tx_hash() const {
}
inline void Output::_internal_set_tx_hash(const std::string& value) {
tx_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
inline void Output::set_tx_hash(std::string&& value) {
tx_hash_.Set(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
// @@protoc_insertion_point(field_set_rvalue:pb.Output.tx_hash)
}
inline void Output::set_tx_hash(const char* value) {
GOOGLE_DCHECK(value != nullptr);
tx_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArena());
tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
// @@protoc_insertion_point(field_set_char:pb.Output.tx_hash)
}
inline void Output::set_tx_hash(const void* value,
size_t size) {
tx_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
tx_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
// @@protoc_insertion_point(field_set_pointer:pb.Output.tx_hash)
}
inline std::string* Output::_internal_mutable_tx_hash() {
return tx_hash_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
return tx_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
inline std::string* Output::release_tx_hash() {
// @@protoc_insertion_point(field_release:pb.Output.tx_hash)
@ -1551,25 +1482,6 @@ inline void Output::set_allocated_tx_hash(std::string* tx_hash) {
GetArena());
// @@protoc_insertion_point(field_set_allocated:pb.Output.tx_hash)
}
inline std::string* Output::unsafe_arena_release_tx_hash() {
// @@protoc_insertion_point(field_unsafe_arena_release:pb.Output.tx_hash)
GOOGLE_DCHECK(GetArena() != nullptr);
return tx_hash_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArena());
}
inline void Output::unsafe_arena_set_allocated_tx_hash(
std::string* tx_hash) {
GOOGLE_DCHECK(GetArena() != nullptr);
if (tx_hash != nullptr) {
} else {
}
tx_hash_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
tx_hash, GetArena());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:pb.Output.tx_hash)
}
// uint32 nout = 2;
inline void Output::clear_nout() {
@ -1646,7 +1558,7 @@ inline ::pb::ClaimMeta* Output::release_claim() {
inline const ::pb::ClaimMeta& Output::_internal_claim() const {
return _internal_has_claim()
? *meta_.claim_
: *reinterpret_cast< ::pb::ClaimMeta*>(&::pb::_ClaimMeta_default_instance_);
: reinterpret_cast< ::pb::ClaimMeta&>(::pb::_ClaimMeta_default_instance_);
}
inline const ::pb::ClaimMeta& Output::claim() const {
// @@protoc_insertion_point(field_get:pb.Output.claim)
@ -1719,7 +1631,7 @@ inline ::pb::Error* Output::release_error() {
inline const ::pb::Error& Output::_internal_error() const {
return _internal_has_error()
? *meta_.error_
: *reinterpret_cast< ::pb::Error*>(&::pb::_Error_default_instance_);
: reinterpret_cast< ::pb::Error&>(::pb::_Error_default_instance_);
}
inline const ::pb::Error& Output::error() const {
// @@protoc_insertion_point(field_get:pb.Output.error)
@ -1785,8 +1697,8 @@ inline void ClaimMeta::clear_channel() {
}
inline const ::pb::Output& ClaimMeta::_internal_channel() const {
const ::pb::Output* p = channel_;
return p != nullptr ? *p : *reinterpret_cast<const ::pb::Output*>(
&::pb::_Output_default_instance_);
return p != nullptr ? *p : reinterpret_cast<const ::pb::Output&>(
::pb::_Output_default_instance_);
}
inline const ::pb::Output& ClaimMeta::channel() const {
// @@protoc_insertion_point(field_get:pb.ClaimMeta.channel)
@ -1806,7 +1718,9 @@ inline void ClaimMeta::unsafe_arena_set_allocated_channel(
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:pb.ClaimMeta.channel)
}
inline ::pb::Output* ClaimMeta::release_channel() {
auto temp = unsafe_arena_release_channel();
::pb::Output* temp = channel_;
channel_ = nullptr;
if (GetArena() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
@ -1866,8 +1780,8 @@ inline void ClaimMeta::clear_repost() {
}
inline const ::pb::Output& ClaimMeta::_internal_repost() const {
const ::pb::Output* p = repost_;
return p != nullptr ? *p : *reinterpret_cast<const ::pb::Output*>(
&::pb::_Output_default_instance_);
return p != nullptr ? *p : reinterpret_cast<const ::pb::Output&>(
::pb::_Output_default_instance_);
}
inline const ::pb::Output& ClaimMeta::repost() const {
// @@protoc_insertion_point(field_get:pb.ClaimMeta.repost)
@ -1887,7 +1801,9 @@ inline void ClaimMeta::unsafe_arena_set_allocated_repost(
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:pb.ClaimMeta.repost)
}
inline ::pb::Output* ClaimMeta::release_repost() {
auto temp = unsafe_arena_release_repost();
::pb::Output* temp = repost_;
repost_ = nullptr;
if (GetArena() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
@ -1934,7 +1850,7 @@ inline void ClaimMeta::set_allocated_repost(::pb::Output* repost) {
// string short_url = 3;
inline void ClaimMeta::clear_short_url() {
short_url_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
short_url_.ClearToEmpty();
}
inline const std::string& ClaimMeta::short_url() const {
// @@protoc_insertion_point(field_get:pb.ClaimMeta.short_url)
@ -1953,31 +1869,30 @@ inline const std::string& ClaimMeta::_internal_short_url() const {
}
inline void ClaimMeta::_internal_set_short_url(const std::string& value) {
short_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
short_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
inline void ClaimMeta::set_short_url(std::string&& value) {
short_url_.Set(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
// @@protoc_insertion_point(field_set_rvalue:pb.ClaimMeta.short_url)
}
inline void ClaimMeta::set_short_url(const char* value) {
GOOGLE_DCHECK(value != nullptr);
short_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArena());
short_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
// @@protoc_insertion_point(field_set_char:pb.ClaimMeta.short_url)
}
inline void ClaimMeta::set_short_url(const char* value,
size_t size) {
short_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
short_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
// @@protoc_insertion_point(field_set_pointer:pb.ClaimMeta.short_url)
}
inline std::string* ClaimMeta::_internal_mutable_short_url() {
return short_url_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
return short_url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
inline std::string* ClaimMeta::release_short_url() {
// @@protoc_insertion_point(field_release:pb.ClaimMeta.short_url)
@ -1993,29 +1908,10 @@ inline void ClaimMeta::set_allocated_short_url(std::string* short_url) {
GetArena());
// @@protoc_insertion_point(field_set_allocated:pb.ClaimMeta.short_url)
}
inline std::string* ClaimMeta::unsafe_arena_release_short_url() {
// @@protoc_insertion_point(field_unsafe_arena_release:pb.ClaimMeta.short_url)
GOOGLE_DCHECK(GetArena() != nullptr);
return short_url_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArena());
}
inline void ClaimMeta::unsafe_arena_set_allocated_short_url(
std::string* short_url) {
GOOGLE_DCHECK(GetArena() != nullptr);
if (short_url != nullptr) {
} else {
}
short_url_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
short_url, GetArena());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:pb.ClaimMeta.short_url)
}
// string canonical_url = 4;
inline void ClaimMeta::clear_canonical_url() {
canonical_url_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
canonical_url_.ClearToEmpty();
}
inline const std::string& ClaimMeta::canonical_url() const {
// @@protoc_insertion_point(field_get:pb.ClaimMeta.canonical_url)
@ -2034,31 +1930,30 @@ inline const std::string& ClaimMeta::_internal_canonical_url() const {
}
inline void ClaimMeta::_internal_set_canonical_url(const std::string& value) {
canonical_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
canonical_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
inline void ClaimMeta::set_canonical_url(std::string&& value) {
canonical_url_.Set(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
// @@protoc_insertion_point(field_set_rvalue:pb.ClaimMeta.canonical_url)
}
inline void ClaimMeta::set_canonical_url(const char* value) {
GOOGLE_DCHECK(value != nullptr);
canonical_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArena());
canonical_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
// @@protoc_insertion_point(field_set_char:pb.ClaimMeta.canonical_url)
}
inline void ClaimMeta::set_canonical_url(const char* value,
size_t size) {
canonical_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
canonical_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
// @@protoc_insertion_point(field_set_pointer:pb.ClaimMeta.canonical_url)
}
inline std::string* ClaimMeta::_internal_mutable_canonical_url() {
return canonical_url_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
return canonical_url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
inline std::string* ClaimMeta::release_canonical_url() {
// @@protoc_insertion_point(field_release:pb.ClaimMeta.canonical_url)
@ -2074,25 +1969,6 @@ inline void ClaimMeta::set_allocated_canonical_url(std::string* canonical_url) {
GetArena());
// @@protoc_insertion_point(field_set_allocated:pb.ClaimMeta.canonical_url)
}
inline std::string* ClaimMeta::unsafe_arena_release_canonical_url() {
// @@protoc_insertion_point(field_unsafe_arena_release:pb.ClaimMeta.canonical_url)
GOOGLE_DCHECK(GetArena() != nullptr);
return canonical_url_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArena());
}
inline void ClaimMeta::unsafe_arena_set_allocated_canonical_url(
std::string* canonical_url) {
GOOGLE_DCHECK(GetArena() != nullptr);
if (canonical_url != nullptr) {
} else {
}
canonical_url_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
canonical_url, GetArena());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:pb.ClaimMeta.canonical_url)
}
// bool is_controlling = 5;
inline void ClaimMeta::clear_is_controlling() {
@ -2274,84 +2150,24 @@ inline void ClaimMeta::set_support_amount(::PROTOBUF_NAMESPACE_ID::uint64 value)
// @@protoc_insertion_point(field_set:pb.ClaimMeta.support_amount)
}
// uint32 trending_group = 22;
inline void ClaimMeta::clear_trending_group() {
trending_group_ = 0u;
// double trending_score = 22;
inline void ClaimMeta::clear_trending_score() {
trending_score_ = 0;
}
inline ::PROTOBUF_NAMESPACE_ID::uint32 ClaimMeta::_internal_trending_group() const {
return trending_group_;
inline double ClaimMeta::_internal_trending_score() const {
return trending_score_;
}
inline ::PROTOBUF_NAMESPACE_ID::uint32 ClaimMeta::trending_group() const {
// @@protoc_insertion_point(field_get:pb.ClaimMeta.trending_group)
return _internal_trending_group();
inline double ClaimMeta::trending_score() const {
// @@protoc_insertion_point(field_get:pb.ClaimMeta.trending_score)
return _internal_trending_score();
}
inline void ClaimMeta::_internal_set_trending_group(::PROTOBUF_NAMESPACE_ID::uint32 value) {
inline void ClaimMeta::_internal_set_trending_score(double value) {
trending_group_ = value;
trending_score_ = value;
}
inline void ClaimMeta::set_trending_group(::PROTOBUF_NAMESPACE_ID::uint32 value) {
_internal_set_trending_group(value);
// @@protoc_insertion_point(field_set:pb.ClaimMeta.trending_group)
}
// float trending_mixed = 23;
inline void ClaimMeta::clear_trending_mixed() {
trending_mixed_ = 0;
}
inline float ClaimMeta::_internal_trending_mixed() const {
return trending_mixed_;
}
inline float ClaimMeta::trending_mixed() const {
// @@protoc_insertion_point(field_get:pb.ClaimMeta.trending_mixed)
return _internal_trending_mixed();
}
inline void ClaimMeta::_internal_set_trending_mixed(float value) {
trending_mixed_ = value;
}
inline void ClaimMeta::set_trending_mixed(float value) {
_internal_set_trending_mixed(value);
// @@protoc_insertion_point(field_set:pb.ClaimMeta.trending_mixed)
}
// float trending_local = 24;
inline void ClaimMeta::clear_trending_local() {
trending_local_ = 0;
}
inline float ClaimMeta::_internal_trending_local() const {
return trending_local_;
}
inline float ClaimMeta::trending_local() const {
// @@protoc_insertion_point(field_get:pb.ClaimMeta.trending_local)
return _internal_trending_local();
}
inline void ClaimMeta::_internal_set_trending_local(float value) {
trending_local_ = value;
}
inline void ClaimMeta::set_trending_local(float value) {
_internal_set_trending_local(value);
// @@protoc_insertion_point(field_set:pb.ClaimMeta.trending_local)
}
// float trending_global = 25;
inline void ClaimMeta::clear_trending_global() {
trending_global_ = 0;
}
inline float ClaimMeta::_internal_trending_global() const {
return trending_global_;
}
inline float ClaimMeta::trending_global() const {
// @@protoc_insertion_point(field_get:pb.ClaimMeta.trending_global)
return _internal_trending_global();
}
inline void ClaimMeta::_internal_set_trending_global(float value) {
trending_global_ = value;
}
inline void ClaimMeta::set_trending_global(float value) {
_internal_set_trending_global(value);
// @@protoc_insertion_point(field_set:pb.ClaimMeta.trending_global)
inline void ClaimMeta::set_trending_score(double value) {
_internal_set_trending_score(value);
// @@protoc_insertion_point(field_set:pb.ClaimMeta.trending_score)
}
// -------------------------------------------------------------------
@ -2380,7 +2196,7 @@ inline void Error::set_code(::pb::Error_Code value) {
// string text = 2;
inline void Error::clear_text() {
text_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
text_.ClearToEmpty();
}
inline const std::string& Error::text() const {
// @@protoc_insertion_point(field_get:pb.Error.text)
@ -2399,31 +2215,30 @@ inline const std::string& Error::_internal_text() const {
}
inline void Error::_internal_set_text(const std::string& value) {
text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
inline void Error::set_text(std::string&& value) {
text_.Set(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
// @@protoc_insertion_point(field_set_rvalue:pb.Error.text)
}
inline void Error::set_text(const char* value) {
GOOGLE_DCHECK(value != nullptr);
text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArena());
text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
// @@protoc_insertion_point(field_set_char:pb.Error.text)
}
inline void Error::set_text(const char* value,
size_t size) {
text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
// @@protoc_insertion_point(field_set_pointer:pb.Error.text)
}
inline std::string* Error::_internal_mutable_text() {
return text_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
return text_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
inline std::string* Error::release_text() {
// @@protoc_insertion_point(field_release:pb.Error.text)
@ -2439,25 +2254,6 @@ inline void Error::set_allocated_text(std::string* text) {
GetArena());
// @@protoc_insertion_point(field_set_allocated:pb.Error.text)
}
inline std::string* Error::unsafe_arena_release_text() {
// @@protoc_insertion_point(field_unsafe_arena_release:pb.Error.text)
GOOGLE_DCHECK(GetArena() != nullptr);
return text_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArena());
}
inline void Error::unsafe_arena_set_allocated_text(
std::string* text) {
GOOGLE_DCHECK(GetArena() != nullptr);
if (text != nullptr) {
} else {
}
text_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
text, GetArena());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:pb.Error.text)
}
// .pb.Blocked blocked = 3;
inline bool Error::_internal_has_blocked() const {
@ -2474,8 +2270,8 @@ inline void Error::clear_blocked() {
}
inline const ::pb::Blocked& Error::_internal_blocked() const {
const ::pb::Blocked* p = blocked_;
return p != nullptr ? *p : *reinterpret_cast<const ::pb::Blocked*>(
&::pb::_Blocked_default_instance_);
return p != nullptr ? *p : reinterpret_cast<const ::pb::Blocked&>(
::pb::_Blocked_default_instance_);
}
inline const ::pb::Blocked& Error::blocked() const {
// @@protoc_insertion_point(field_get:pb.Error.blocked)
@ -2495,7 +2291,9 @@ inline void Error::unsafe_arena_set_allocated_blocked(
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:pb.Error.blocked)
}
inline ::pb::Blocked* Error::release_blocked() {
auto temp = unsafe_arena_release_blocked();
::pb::Blocked* temp = blocked_;
blocked_ = nullptr;
if (GetArena() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
@ -2579,8 +2377,8 @@ inline void Blocked::clear_channel() {
}
inline const ::pb::Output& Blocked::_internal_channel() const {
const ::pb::Output* p = channel_;
return p != nullptr ? *p : *reinterpret_cast<const ::pb::Output*>(
&::pb::_Output_default_instance_);
return p != nullptr ? *p : reinterpret_cast<const ::pb::Output&>(
::pb::_Output_default_instance_);
}
inline const ::pb::Output& Blocked::channel() const {
// @@protoc_insertion_point(field_get:pb.Blocked.channel)
@ -2600,7 +2398,9 @@ inline void Blocked::unsafe_arena_set_allocated_channel(
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:pb.Blocked.channel)
}
inline ::pb::Output* Blocked::release_channel() {
auto temp = unsafe_arena_release_channel();
::pb::Output* temp = channel_;
channel_ = nullptr;
if (GetArena() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}

View file

@ -14,26 +14,23 @@
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace pb {
class SupportDefaultTypeInternal {
public:
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Support> _instance;
} _Support_default_instance_;
constexpr Support::Support(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: emoji_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, comment_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
struct SupportDefaultTypeInternal {
constexpr SupportDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~SupportDefaultTypeInternal() {}
union {
Support _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SupportDefaultTypeInternal _Support_default_instance_;
} // namespace pb
static void InitDefaultsscc_info_Support_support_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::pb::_Support_default_instance_;
new (ptr) ::pb::Support();
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::pb::Support::InitAsDefaultInstance();
}
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Support_support_2eproto =
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Support_support_2eproto}, {}};
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_support_2eproto[1];
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_support_2eproto = nullptr;
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_support_2eproto = nullptr;
@ -45,6 +42,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_support_2eproto::offsets[] PRO
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::pb::Support, emoji_),
PROTOBUF_FIELD_OFFSET(::pb::Support, comment_),
};
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, sizeof(::pb::Support)},
@ -55,30 +53,29 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] =
};
const char descriptor_table_protodef_support_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\rsupport.proto\022\002pb\"\030\n\007Support\022\r\n\005emoji\030"
"\001 \001(\tb\006proto3"
"\n\rsupport.proto\022\002pb\")\n\007Support\022\r\n\005emoji\030"
"\001 \001(\t\022\017\n\007comment\030\002 \001(\tB\037Z\035github.com/lbr"
"yio/types/go/pbb\006proto3"
;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_support_2eproto_deps[1] = {
};
static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_support_2eproto_sccs[1] = {
&scc_info_Support_support_2eproto.base,
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_support_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_support_2eproto = {
false, false, descriptor_table_protodef_support_2eproto, "support.proto", 53,
&descriptor_table_support_2eproto_once, descriptor_table_support_2eproto_sccs, descriptor_table_support_2eproto_deps, 1, 0,
false, false, 103, descriptor_table_protodef_support_2eproto, "support.proto",
&descriptor_table_support_2eproto_once, nullptr, 0, 1,
schemas, file_default_instances, TableStruct_support_2eproto::offsets,
file_level_metadata_support_2eproto, 1, file_level_enum_descriptors_support_2eproto, file_level_service_descriptors_support_2eproto,
file_level_metadata_support_2eproto, file_level_enum_descriptors_support_2eproto, file_level_service_descriptors_support_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata
descriptor_table_support_2eproto_metadata_getter(int index) {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_support_2eproto);
return descriptor_table_support_2eproto.file_level_metadata[index];
}
// Force running AddDescriptors() at dynamic initialization time.
static bool dynamic_init_dummy_support_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_support_2eproto)), true);
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_support_2eproto(&descriptor_table_support_2eproto);
namespace pb {
// ===================================================================
void Support::InitAsDefaultInstance() {
}
class Support::_Internal {
public:
};
@ -94,15 +91,20 @@ Support::Support(const Support& from)
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
emoji_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from._internal_emoji().empty()) {
emoji_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_emoji(),
emoji_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_emoji(),
GetArena());
}
comment_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from._internal_comment().empty()) {
comment_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_comment(),
GetArena());
}
// @@protoc_insertion_point(copy_constructor:pb.Support)
}
void Support::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Support_support_2eproto.base);
emoji_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
emoji_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
comment_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
Support::~Support() {
@ -114,6 +116,7 @@ Support::~Support() {
void Support::SharedDtor() {
GOOGLE_DCHECK(GetArena() == nullptr);
emoji_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
comment_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
void Support::ArenaDtor(void* object) {
@ -125,11 +128,6 @@ void Support::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
void Support::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const Support& Support::default_instance() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Support_support_2eproto.base);
return *internal_default_instance();
}
void Support::Clear() {
// @@protoc_insertion_point(message_clear_start:pb.Support)
@ -137,13 +135,13 @@ void Support::Clear() {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
emoji_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
emoji_.ClearToEmpty();
comment_.ClearToEmpty();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* Support::_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);
@ -158,6 +156,15 @@ const char* Support::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in
CHK_(ptr);
} else goto handle_unusual;
continue;
// string comment = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
auto str = _internal_mutable_comment();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Support.comment"));
CHK_(ptr);
} else goto handle_unusual;
continue;
default: {
handle_unusual:
if ((tag & 7) == 4 || tag == 0) {
@ -196,6 +203,16 @@ failure:
1, this->_internal_emoji(), target);
}
// string comment = 2;
if (this->comment().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_comment().data(), static_cast<int>(this->_internal_comment().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"pb.Support.comment");
target = stream->WriteStringMaybeAliased(
2, this->_internal_comment(), target);
}
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);
@ -219,6 +236,13 @@ size_t Support::ByteSizeLong() const {
this->_internal_emoji());
}
// string comment = 2;
if (this->comment().size() > 0) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_comment());
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
_internal_metadata_, total_size, &_cached_size_);
@ -253,6 +277,9 @@ void Support::MergeFrom(const Support& from) {
if (from.emoji().size() > 0) {
_internal_set_emoji(from._internal_emoji());
}
if (from.comment().size() > 0) {
_internal_set_comment(from._internal_comment());
}
}
void Support::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
@ -277,6 +304,7 @@ void Support::InternalSwap(Support* other) {
using std::swap;
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
emoji_.Swap(&other->emoji_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
comment_.Swap(&other->comment_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
::PROTOBUF_NAMESPACE_ID::Metadata Support::GetMetadata() const {

View file

@ -8,12 +8,12 @@
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3012000
#if PROTOBUF_VERSION < 3015000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3012004 < PROTOBUF_MIN_PROTOC_VERSION
#if 3015008 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
@ -25,7 +25,6 @@
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
@ -45,7 +44,7 @@ PROTOBUF_NAMESPACE_CLOSE
struct TableStruct_support_2eproto {
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
@ -54,9 +53,10 @@ struct TableStruct_support_2eproto {
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_support_2eproto;
::PROTOBUF_NAMESPACE_ID::Metadata descriptor_table_support_2eproto_metadata_getter(int index);
namespace pb {
class Support;
class SupportDefaultTypeInternal;
struct SupportDefaultTypeInternal;
extern SupportDefaultTypeInternal _Support_default_instance_;
} // namespace pb
PROTOBUF_NAMESPACE_OPEN
@ -69,8 +69,9 @@ namespace pb {
class Support PROTOBUF_FINAL :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.Support) */ {
public:
inline Support() : Support(nullptr) {};
inline Support() : Support(nullptr) {}
virtual ~Support();
explicit constexpr Support(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Support(const Support& from);
Support(Support&& from) noexcept
@ -100,9 +101,9 @@ class Support PROTOBUF_FINAL :
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
static const Support& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static const Support& default_instance() {
return *internal_default_instance();
}
static inline const Support* internal_default_instance() {
return reinterpret_cast<const Support*>(
&_Support_default_instance_);
@ -168,8 +169,7 @@ class Support PROTOBUF_FINAL :
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
private:
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_support_2eproto);
return ::descriptor_table_support_2eproto.file_level_metadata[kIndexInFileMessages];
return ::descriptor_table_support_2eproto_metadata_getter(kIndexInFileMessages);
}
public:
@ -180,6 +180,7 @@ class Support PROTOBUF_FINAL :
enum : int {
kEmojiFieldNumber = 1,
kCommentFieldNumber = 2,
};
// string emoji = 1;
void clear_emoji();
@ -191,21 +192,28 @@ class Support PROTOBUF_FINAL :
std::string* mutable_emoji();
std::string* release_emoji();
void set_allocated_emoji(std::string* emoji);
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
std::string* unsafe_arena_release_emoji();
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_emoji(
std::string* emoji);
private:
const std::string& _internal_emoji() const;
void _internal_set_emoji(const std::string& value);
std::string* _internal_mutable_emoji();
public:
// string comment = 2;
void clear_comment();
const std::string& comment() const;
void set_comment(const std::string& value);
void set_comment(std::string&& value);
void set_comment(const char* value);
void set_comment(const char* value, size_t size);
std::string* mutable_comment();
std::string* release_comment();
void set_allocated_comment(std::string* comment);
private:
const std::string& _internal_comment() const;
void _internal_set_comment(const std::string& value);
std::string* _internal_mutable_comment();
public:
// @@protoc_insertion_point(class_scope:pb.Support)
private:
class _Internal;
@ -214,6 +222,7 @@ class Support PROTOBUF_FINAL :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr emoji_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_support_2eproto;
};
@ -230,7 +239,7 @@ class Support PROTOBUF_FINAL :
// string emoji = 1;
inline void Support::clear_emoji() {
emoji_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
emoji_.ClearToEmpty();
}
inline const std::string& Support::emoji() const {
// @@protoc_insertion_point(field_get:pb.Support.emoji)
@ -249,31 +258,30 @@ inline const std::string& Support::_internal_emoji() const {
}
inline void Support::_internal_set_emoji(const std::string& value) {
emoji_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
emoji_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
inline void Support::set_emoji(std::string&& value) {
emoji_.Set(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
// @@protoc_insertion_point(field_set_rvalue:pb.Support.emoji)
}
inline void Support::set_emoji(const char* value) {
GOOGLE_DCHECK(value != nullptr);
emoji_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArena());
emoji_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
// @@protoc_insertion_point(field_set_char:pb.Support.emoji)
}
inline void Support::set_emoji(const char* value,
size_t size) {
emoji_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
emoji_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
// @@protoc_insertion_point(field_set_pointer:pb.Support.emoji)
}
inline std::string* Support::_internal_mutable_emoji() {
return emoji_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
return emoji_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
inline std::string* Support::release_emoji() {
// @@protoc_insertion_point(field_release:pb.Support.emoji)
@ -289,24 +297,66 @@ inline void Support::set_allocated_emoji(std::string* emoji) {
GetArena());
// @@protoc_insertion_point(field_set_allocated:pb.Support.emoji)
}
inline std::string* Support::unsafe_arena_release_emoji() {
// @@protoc_insertion_point(field_unsafe_arena_release:pb.Support.emoji)
GOOGLE_DCHECK(GetArena() != nullptr);
return emoji_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArena());
// string comment = 2;
inline void Support::clear_comment() {
comment_.ClearToEmpty();
}
inline void Support::unsafe_arena_set_allocated_emoji(
std::string* emoji) {
GOOGLE_DCHECK(GetArena() != nullptr);
if (emoji != nullptr) {
inline const std::string& Support::comment() const {
// @@protoc_insertion_point(field_get:pb.Support.comment)
return _internal_comment();
}
inline void Support::set_comment(const std::string& value) {
_internal_set_comment(value);
// @@protoc_insertion_point(field_set:pb.Support.comment)
}
inline std::string* Support::mutable_comment() {
// @@protoc_insertion_point(field_mutable:pb.Support.comment)
return _internal_mutable_comment();
}
inline const std::string& Support::_internal_comment() const {
return comment_.Get();
}
inline void Support::_internal_set_comment(const std::string& value) {
comment_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
}
inline void Support::set_comment(std::string&& value) {
comment_.Set(
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
// @@protoc_insertion_point(field_set_rvalue:pb.Support.comment)
}
inline void Support::set_comment(const char* value) {
GOOGLE_DCHECK(value != nullptr);
comment_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
// @@protoc_insertion_point(field_set_char:pb.Support.comment)
}
inline void Support::set_comment(const char* value,
size_t size) {
comment_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
// @@protoc_insertion_point(field_set_pointer:pb.Support.comment)
}
inline std::string* Support::_internal_mutable_comment() {
return comment_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
}
inline std::string* Support::release_comment() {
// @@protoc_insertion_point(field_release:pb.Support.comment)
return comment_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
inline void Support::set_allocated_comment(std::string* comment) {
if (comment != nullptr) {
} else {
}
emoji_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
emoji, GetArena());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:pb.Support.emoji)
comment_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), comment,
GetArena());
// @@protoc_insertion_point(field_set_allocated:pb.Support.comment)
}
#ifdef __GNUC__

File diff suppressed because it is too large Load diff

1075
v2/go/hub.pb.go Normal file

File diff suppressed because it is too large Load diff

102
v2/go/hub_grpc.pb.go Normal file
View file

@ -0,0 +1,102 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package pb
import (
context "context"
pb "github.com/lbryio/types/v2/go/pb"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// HubClient is the client API for Hub service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type HubClient interface {
Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*pb.Outputs, error)
}
type hubClient struct {
cc grpc.ClientConnInterface
}
func NewHubClient(cc grpc.ClientConnInterface) HubClient {
return &hubClient{cc}
}
func (c *hubClient) Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*pb.Outputs, error) {
out := new(pb.Outputs)
err := c.cc.Invoke(ctx, "/pb.Hub/Search", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// HubServer is the server API for Hub service.
// All implementations must embed UnimplementedHubServer
// for forward compatibility
type HubServer interface {
Search(context.Context, *SearchRequest) (*pb.Outputs, error)
mustEmbedUnimplementedHubServer()
}
// UnimplementedHubServer must be embedded to have forward compatible implementations.
type UnimplementedHubServer struct {
}
func (UnimplementedHubServer) Search(context.Context, *SearchRequest) (*pb.Outputs, error) {
return nil, status.Errorf(codes.Unimplemented, "method Search not implemented")
}
func (UnimplementedHubServer) mustEmbedUnimplementedHubServer() {}
// UnsafeHubServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to HubServer will
// result in compilation errors.
type UnsafeHubServer interface {
mustEmbedUnimplementedHubServer()
}
func RegisterHubServer(s grpc.ServiceRegistrar, srv HubServer) {
s.RegisterService(&Hub_ServiceDesc, srv)
}
func _Hub_Search_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SearchRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HubServer).Search(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.Hub/Search",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HubServer).Search(ctx, req.(*SearchRequest))
}
return interceptor(ctx, in, info, handler)
}
// Hub_ServiceDesc is the grpc.ServiceDesc for Hub service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Hub_ServiceDesc = grpc.ServiceDesc{
ServiceName: "pb.Hub",
HandlerType: (*HubServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Search",
Handler: _Hub_Search_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "hub.proto",
}

View file

@ -1,76 +1,143 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.8
// source: purchase.proto
package pb
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Purchase struct {
ClaimHash []byte `protobuf:"bytes,1,opt,name=claim_hash,json=claimHash,proto3" json:"claim_hash"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ClaimHash []byte `protobuf:"bytes,1,opt,name=claim_hash,json=claimHash,proto3" json:"claim_hash"`
}
func (m *Purchase) Reset() { *m = Purchase{} }
func (m *Purchase) String() string { return proto.CompactTextString(m) }
func (*Purchase) ProtoMessage() {}
func (x *Purchase) Reset() {
*x = Purchase{}
if protoimpl.UnsafeEnabled {
mi := &file_purchase_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Purchase) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Purchase) ProtoMessage() {}
func (x *Purchase) ProtoReflect() protoreflect.Message {
mi := &file_purchase_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Purchase.ProtoReflect.Descriptor instead.
func (*Purchase) Descriptor() ([]byte, []int) {
return fileDescriptor_ea8c7f112c6b4e9e, []int{0}
return file_purchase_proto_rawDescGZIP(), []int{0}
}
func (m *Purchase) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Purchase.Unmarshal(m, b)
}
func (m *Purchase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Purchase.Marshal(b, m, deterministic)
}
func (m *Purchase) XXX_Merge(src proto.Message) {
xxx_messageInfo_Purchase.Merge(m, src)
}
func (m *Purchase) XXX_Size() int {
return xxx_messageInfo_Purchase.Size(m)
}
func (m *Purchase) XXX_DiscardUnknown() {
xxx_messageInfo_Purchase.DiscardUnknown(m)
}
var xxx_messageInfo_Purchase proto.InternalMessageInfo
func (m *Purchase) GetClaimHash() []byte {
if m != nil {
return m.ClaimHash
func (x *Purchase) GetClaimHash() []byte {
if x != nil {
return x.ClaimHash
}
return nil
}
func init() {
proto.RegisterType((*Purchase)(nil), "pb.Purchase")
var File_purchase_proto protoreflect.FileDescriptor
var file_purchase_proto_rawDesc = []byte{
0x0a, 0x0e, 0x70, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x02, 0x70, 0x62, 0x22, 0x29, 0x0a, 0x08, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65,
0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x48, 0x61, 0x73, 0x68, 0x42,
0x1f, 0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x62,
0x72, 0x79, 0x69, 0x6f, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x62,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() { proto.RegisterFile("purchase.proto", fileDescriptor_ea8c7f112c6b4e9e) }
var (
file_purchase_proto_rawDescOnce sync.Once
file_purchase_proto_rawDescData = file_purchase_proto_rawDesc
)
var fileDescriptor_ea8c7f112c6b4e9e = []byte{
// 84 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2b, 0x28, 0x2d, 0x4a,
0xce, 0x48, 0x2c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48, 0x52, 0xd2,
0xe4, 0xe2, 0x08, 0x80, 0x8a, 0x0a, 0xc9, 0x72, 0x71, 0x25, 0xe7, 0x24, 0x66, 0xe6, 0xc6, 0x67,
0x24, 0x16, 0x67, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0xf0, 0x04, 0x71, 0x82, 0x45, 0x3c, 0x12, 0x8b,
0x33, 0x92, 0xd8, 0xc0, 0xba, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xba, 0x94, 0x00,
0x47, 0x00, 0x00, 0x00,
func file_purchase_proto_rawDescGZIP() []byte {
file_purchase_proto_rawDescOnce.Do(func() {
file_purchase_proto_rawDescData = protoimpl.X.CompressGZIP(file_purchase_proto_rawDescData)
})
return file_purchase_proto_rawDescData
}
var file_purchase_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_purchase_proto_goTypes = []interface{}{
(*Purchase)(nil), // 0: pb.Purchase
}
var file_purchase_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_purchase_proto_init() }
func file_purchase_proto_init() {
if File_purchase_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_purchase_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Purchase); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_purchase_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_purchase_proto_goTypes,
DependencyIndexes: file_purchase_proto_depIdxs,
MessageInfos: file_purchase_proto_msgTypes,
}.Build()
File_purchase_proto = out.File
file_purchase_proto_rawDesc = nil
file_purchase_proto_goTypes = nil
file_purchase_proto_depIdxs = nil
}

File diff suppressed because it is too large Load diff

View file

@ -1,75 +1,152 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.8
// source: support.proto
package pb
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Support struct {
Emoji string `protobuf:"bytes,1,opt,name=emoji,proto3" json:"emoji"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Emoji string `protobuf:"bytes,1,opt,name=emoji,proto3" json:"emoji"`
Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment"`
}
func (m *Support) Reset() { *m = Support{} }
func (m *Support) String() string { return proto.CompactTextString(m) }
func (*Support) ProtoMessage() {}
func (x *Support) Reset() {
*x = Support{}
if protoimpl.UnsafeEnabled {
mi := &file_support_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Support) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Support) ProtoMessage() {}
func (x *Support) ProtoReflect() protoreflect.Message {
mi := &file_support_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Support.ProtoReflect.Descriptor instead.
func (*Support) Descriptor() ([]byte, []int) {
return fileDescriptor_61fc54fa3a6fab31, []int{0}
return file_support_proto_rawDescGZIP(), []int{0}
}
func (m *Support) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Support.Unmarshal(m, b)
}
func (m *Support) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Support.Marshal(b, m, deterministic)
}
func (m *Support) XXX_Merge(src proto.Message) {
xxx_messageInfo_Support.Merge(m, src)
}
func (m *Support) XXX_Size() int {
return xxx_messageInfo_Support.Size(m)
}
func (m *Support) XXX_DiscardUnknown() {
xxx_messageInfo_Support.DiscardUnknown(m)
}
var xxx_messageInfo_Support proto.InternalMessageInfo
func (m *Support) GetEmoji() string {
if m != nil {
return m.Emoji
func (x *Support) GetEmoji() string {
if x != nil {
return x.Emoji
}
return ""
}
func init() {
proto.RegisterType((*Support)(nil), "pb.Support")
func (x *Support) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func init() { proto.RegisterFile("support.proto", fileDescriptor_61fc54fa3a6fab31) }
var File_support_proto protoreflect.FileDescriptor
var fileDescriptor_61fc54fa3a6fab31 = []byte{
// 73 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2d, 0x2e, 0x2d, 0x28,
0xc8, 0x2f, 0x2a, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48, 0x52, 0x92, 0xe7,
0x62, 0x0f, 0x86, 0x08, 0x0a, 0x89, 0x70, 0xb1, 0xa6, 0xe6, 0xe6, 0x67, 0x65, 0x4a, 0x30, 0x2a,
0x30, 0x6a, 0x70, 0x06, 0x41, 0x38, 0x49, 0x6c, 0x60, 0xb5, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff,
0xff, 0xa8, 0xd2, 0x7f, 0x5d, 0x3c, 0x00, 0x00, 0x00,
var file_support_proto_rawDesc = []byte{
0x0a, 0x0d, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x02, 0x70, 0x62, 0x22, 0x39, 0x0a, 0x07, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x14,
0x0a, 0x05, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65,
0x6d, 0x6f, 0x6a, 0x69, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x1f,
0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x62, 0x72,
0x79, 0x69, 0x6f, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x62, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_support_proto_rawDescOnce sync.Once
file_support_proto_rawDescData = file_support_proto_rawDesc
)
func file_support_proto_rawDescGZIP() []byte {
file_support_proto_rawDescOnce.Do(func() {
file_support_proto_rawDescData = protoimpl.X.CompressGZIP(file_support_proto_rawDescData)
})
return file_support_proto_rawDescData
}
var file_support_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_support_proto_goTypes = []interface{}{
(*Support)(nil), // 0: pb.Support
}
var file_support_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_support_proto_init() }
func file_support_proto_init() {
if File_support_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_support_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Support); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_support_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_support_proto_goTypes,
DependencyIndexes: file_support_proto_depIdxs,
MessageInfos: file_support_proto_msgTypes,
}.Build()
File_support_proto = out.File
file_support_proto_rawDesc = nil
file_support_proto_goTypes = nil
file_support_proto_depIdxs = nil
}

View file

@ -2,11 +2,14 @@
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;

3164
v2/js/hub_pb.js Normal file

File diff suppressed because it is too large Load diff

View file

@ -2,11 +2,14 @@
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;

View file

@ -2,11 +2,14 @@
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
@ -867,10 +870,7 @@ proto.pb.ClaimMeta.toObject = function(includeInstance, msg) {
reposted: jspb.Message.getFieldWithDefault(msg, 11, 0),
effectiveAmount: jspb.Message.getFieldWithDefault(msg, 20, 0),
supportAmount: jspb.Message.getFieldWithDefault(msg, 21, 0),
trendingGroup: jspb.Message.getFieldWithDefault(msg, 22, 0),
trendingMixed: jspb.Message.getFloatingPointFieldWithDefault(msg, 23, 0.0),
trendingLocal: jspb.Message.getFloatingPointFieldWithDefault(msg, 24, 0.0),
trendingGlobal: jspb.Message.getFloatingPointFieldWithDefault(msg, 25, 0.0)
trendingScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 22, 0.0)
};
if (includeInstance) {
@ -962,20 +962,8 @@ proto.pb.ClaimMeta.deserializeBinaryFromReader = function(msg, reader) {
msg.setSupportAmount(value);
break;
case 22:
var value = /** @type {number} */ (reader.readUint32());
msg.setTrendingGroup(value);
break;
case 23:
var value = /** @type {number} */ (reader.readFloat());
msg.setTrendingMixed(value);
break;
case 24:
var value = /** @type {number} */ (reader.readFloat());
msg.setTrendingLocal(value);
break;
case 25:
var value = /** @type {number} */ (reader.readFloat());
msg.setTrendingGlobal(value);
var value = /** @type {number} */ (reader.readDouble());
msg.setTrendingScore(value);
break;
default:
reader.skipField();
@ -1099,34 +1087,13 @@ proto.pb.ClaimMeta.serializeBinaryToWriter = function(message, writer) {
f
);
}
f = message.getTrendingGroup();
if (f !== 0) {
writer.writeUint32(
f = message.getTrendingScore();
if (f !== 0.0) {
writer.writeDouble(
22,
f
);
}
f = message.getTrendingMixed();
if (f !== 0.0) {
writer.writeFloat(
23,
f
);
}
f = message.getTrendingLocal();
if (f !== 0.0) {
writer.writeFloat(
24,
f
);
}
f = message.getTrendingGlobal();
if (f !== 0.0) {
writer.writeFloat(
25,
f
);
}
};
@ -1403,11 +1370,11 @@ proto.pb.ClaimMeta.prototype.setSupportAmount = function(value) {
/**
* optional uint32 trending_group = 22;
* optional double trending_score = 22;
* @return {number}
*/
proto.pb.ClaimMeta.prototype.getTrendingGroup = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0));
proto.pb.ClaimMeta.prototype.getTrendingScore = function() {
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 22, 0.0));
};
@ -1415,62 +1382,8 @@ proto.pb.ClaimMeta.prototype.getTrendingGroup = function() {
* @param {number} value
* @return {!proto.pb.ClaimMeta} returns this
*/
proto.pb.ClaimMeta.prototype.setTrendingGroup = function(value) {
return jspb.Message.setProto3IntField(this, 22, value);
};
/**
* optional float trending_mixed = 23;
* @return {number}
*/
proto.pb.ClaimMeta.prototype.getTrendingMixed = function() {
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 23, 0.0));
};
/**
* @param {number} value
* @return {!proto.pb.ClaimMeta} returns this
*/
proto.pb.ClaimMeta.prototype.setTrendingMixed = function(value) {
return jspb.Message.setProto3FloatField(this, 23, value);
};
/**
* optional float trending_local = 24;
* @return {number}
*/
proto.pb.ClaimMeta.prototype.getTrendingLocal = function() {
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 24, 0.0));
};
/**
* @param {number} value
* @return {!proto.pb.ClaimMeta} returns this
*/
proto.pb.ClaimMeta.prototype.setTrendingLocal = function(value) {
return jspb.Message.setProto3FloatField(this, 24, value);
};
/**
* optional float trending_global = 25;
* @return {number}
*/
proto.pb.ClaimMeta.prototype.getTrendingGlobal = function() {
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 25, 0.0));
};
/**
* @param {number} value
* @return {!proto.pb.ClaimMeta} returns this
*/
proto.pb.ClaimMeta.prototype.setTrendingGlobal = function(value) {
return jspb.Message.setProto3FloatField(this, 25, value);
proto.pb.ClaimMeta.prototype.setTrendingScore = function(value) {
return jspb.Message.setProto3FloatField(this, 22, value);
};

View file

@ -2,11 +2,14 @@
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
@ -66,7 +69,8 @@ proto.pb.Support.prototype.toObject = function(opt_includeInstance) {
*/
proto.pb.Support.toObject = function(includeInstance, msg) {
var f, obj = {
emoji: jspb.Message.getFieldWithDefault(msg, 1, "")
emoji: jspb.Message.getFieldWithDefault(msg, 1, ""),
comment: jspb.Message.getFieldWithDefault(msg, 2, "")
};
if (includeInstance) {
@ -107,6 +111,10 @@ proto.pb.Support.deserializeBinaryFromReader = function(msg, reader) {
var value = /** @type {string} */ (reader.readString());
msg.setEmoji(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setComment(value);
break;
default:
reader.skipField();
break;
@ -143,6 +151,13 @@ proto.pb.Support.serializeBinaryToWriter = function(message, writer) {
f
);
}
f = message.getComment();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
@ -164,4 +179,22 @@ proto.pb.Support.prototype.setEmoji = function(value) {
};
/**
* optional string comment = 2;
* @return {string}
*/
proto.pb.Support.prototype.getComment = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.pb.Support} returns this
*/
proto.pb.Support.prototype.setComment = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
goog.object.extend(exports, proto.pb);

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,4 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

716
v2/python/hub_pb2.py Normal file
View file

@ -0,0 +1,716 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: hub.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
import result_pb2 as result__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='hub.proto',
package='pb',
syntax='proto3',
serialized_options=b'Z\035github.com/lbryio/types/go/pb',
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\thub.proto\x12\x02pb\x1a\x0cresult.proto\"0\n\x0fInvertibleField\x12\x0e\n\x06invert\x18\x01 \x01(\x08\x12\r\n\x05value\x18\x02 \x03(\t\"\x1a\n\tBoolValue\x12\r\n\x05value\x18\x01 \x01(\x08\"\x1c\n\x0bUInt32Value\x12\r\n\x05value\x18\x01 \x01(\r\"j\n\nRangeField\x12\x1d\n\x02op\x18\x01 \x01(\x0e\x32\x11.pb.RangeField.Op\x12\r\n\x05value\x18\x02 \x03(\t\".\n\x02Op\x12\x06\n\x02\x45Q\x10\x00\x12\x07\n\x03LTE\x10\x01\x12\x07\n\x03GTE\x10\x02\x12\x06\n\x02LT\x10\x03\x12\x06\n\x02GT\x10\x04\"\x9d\x0c\n\rSearchRequest\x12%\n\x08\x63laim_id\x18\x01 \x01(\x0b\x32\x13.pb.InvertibleField\x12\'\n\nchannel_id\x18\x02 \x01(\x0b\x32\x13.pb.InvertibleField\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\r\n\x05limit\x18\x04 \x01(\r\x12\x10\n\x08order_by\x18\x05 \x03(\t\x12\x0e\n\x06offset\x18\x06 \x01(\r\x12\x16\n\x0eis_controlling\x18\x07 \x01(\x08\x12\x1d\n\x15last_take_over_height\x18\x08 \x01(\t\x12\x0c\n\x04name\x18\t \x01(\t\x12\x17\n\x0fnormalized_name\x18\n \x01(\t\x12#\n\x0btx_position\x18\x0b \x01(\x0b\x32\x0e.pb.RangeField\x12\x1e\n\x06\x61mount\x18\x0c \x01(\x0b\x32\x0e.pb.RangeField\x12!\n\ttimestamp\x18\r \x01(\x0b\x32\x0e.pb.RangeField\x12*\n\x12\x63reation_timestamp\x18\x0e \x01(\x0b\x32\x0e.pb.RangeField\x12\x1e\n\x06height\x18\x0f \x01(\x0b\x32\x0e.pb.RangeField\x12\'\n\x0f\x63reation_height\x18\x10 \x01(\x0b\x32\x0e.pb.RangeField\x12)\n\x11\x61\x63tivation_height\x18\x11 \x01(\x0b\x32\x0e.pb.RangeField\x12)\n\x11\x65xpiration_height\x18\x12 \x01(\x0b\x32\x0e.pb.RangeField\x12$\n\x0crelease_time\x18\x13 \x01(\x0b\x32\x0e.pb.RangeField\x12\x11\n\tshort_url\x18\x14 \x01(\t\x12\x15\n\rcanonical_url\x18\x15 \x01(\t\x12\r\n\x05title\x18\x16 \x01(\t\x12\x0e\n\x06\x61uthor\x18\x17 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x18 \x01(\t\x12\x12\n\nclaim_type\x18\x19 \x03(\t\x12$\n\x0crepost_count\x18\x1a \x01(\x0b\x32\x0e.pb.RangeField\x12\x13\n\x0bstream_type\x18\x1b \x03(\t\x12\x12\n\nmedia_type\x18\x1c \x03(\t\x12\"\n\nfee_amount\x18\x1d \x01(\x0b\x32\x0e.pb.RangeField\x12\x14\n\x0c\x66\x65\x65_currency\x18\x1e \x01(\t\x12 \n\x08\x64uration\x18\x1f \x01(\x0b\x32\x0e.pb.RangeField\x12\x19\n\x11reposted_claim_id\x18 \x01(\t\x12#\n\x0b\x63\x65nsor_type\x18! \x01(\x0b\x32\x0e.pb.RangeField\x12\x19\n\x11\x63laims_in_channel\x18\" \x01(\t\x12$\n\x0c\x63hannel_join\x18# \x01(\x0b\x32\x0e.pb.RangeField\x12)\n\x12is_signature_valid\x18$ \x01(\x0b\x32\r.pb.BoolValue\x12(\n\x10\x65\x66\x66\x65\x63tive_amount\x18% \x01(\x0b\x32\x0e.pb.RangeField\x12&\n\x0esupport_amount\x18& \x01(\x0b\x32\x0e.pb.RangeField\x12&\n\x0etrending_score\x18\' \x01(\x0b\x32\x0e.pb.RangeField\x12\r\n\x05tx_id\x18+ \x01(\t\x12 \n\x07tx_nout\x18, \x01(\x0b\x32\x0f.pb.UInt32Value\x12\x11\n\tsignature\x18- \x01(\t\x12\x18\n\x10signature_digest\x18. \x01(\t\x12\x18\n\x10public_key_bytes\x18/ \x01(\t\x12\x15\n\rpublic_key_id\x18\x30 \x01(\t\x12\x10\n\x08\x61ny_tags\x18\x31 \x03(\t\x12\x10\n\x08\x61ll_tags\x18\x32 \x03(\t\x12\x10\n\x08not_tags\x18\x33 \x03(\t\x12\x1d\n\x15has_channel_signature\x18\x34 \x01(\x08\x12!\n\nhas_source\x18\x35 \x01(\x0b\x32\r.pb.BoolValue\x12 \n\x18limit_claims_per_channel\x18\x36 \x01(\r\x12\x15\n\rany_languages\x18\x37 \x03(\t\x12\x15\n\rall_languages\x18\x38 \x03(\t\x12\x19\n\x11remove_duplicates\x18\x39 \x01(\x08\x12\x11\n\tno_totals\x18: \x01(\x08\x32\x31\n\x03Hub\x12*\n\x06Search\x12\x11.pb.SearchRequest\x1a\x0b.pb.Outputs\"\x00\x42\x1fZ\x1dgithub.com/lbryio/types/go/pbb\x06proto3'
,
dependencies=[result__pb2.DESCRIPTOR,])
_RANGEFIELD_OP = _descriptor.EnumDescriptor(
name='Op',
full_name='pb.RangeField.Op',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='EQ', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='LTE', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='GTE', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='LT', index=3, number=3,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='GT', index=4, number=4,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=199,
serialized_end=245,
)
_sym_db.RegisterEnumDescriptor(_RANGEFIELD_OP)
_INVERTIBLEFIELD = _descriptor.Descriptor(
name='InvertibleField',
full_name='pb.InvertibleField',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='invert', full_name='pb.InvertibleField.invert', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='value', full_name='pb.InvertibleField.value', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=31,
serialized_end=79,
)
_BOOLVALUE = _descriptor.Descriptor(
name='BoolValue',
full_name='pb.BoolValue',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='value', full_name='pb.BoolValue.value', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=81,
serialized_end=107,
)
_UINT32VALUE = _descriptor.Descriptor(
name='UInt32Value',
full_name='pb.UInt32Value',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='value', full_name='pb.UInt32Value.value', index=0,
number=1, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=109,
serialized_end=137,
)
_RANGEFIELD = _descriptor.Descriptor(
name='RangeField',
full_name='pb.RangeField',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='op', full_name='pb.RangeField.op', index=0,
number=1, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='value', full_name='pb.RangeField.value', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
_RANGEFIELD_OP,
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=139,
serialized_end=245,
)
_SEARCHREQUEST = _descriptor.Descriptor(
name='SearchRequest',
full_name='pb.SearchRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='claim_id', full_name='pb.SearchRequest.claim_id', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='channel_id', full_name='pb.SearchRequest.channel_id', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='text', full_name='pb.SearchRequest.text', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='limit', full_name='pb.SearchRequest.limit', index=3,
number=4, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='order_by', full_name='pb.SearchRequest.order_by', index=4,
number=5, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='offset', full_name='pb.SearchRequest.offset', index=5,
number=6, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='is_controlling', full_name='pb.SearchRequest.is_controlling', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='last_take_over_height', full_name='pb.SearchRequest.last_take_over_height', index=7,
number=8, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='name', full_name='pb.SearchRequest.name', index=8,
number=9, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='normalized_name', full_name='pb.SearchRequest.normalized_name', index=9,
number=10, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='tx_position', full_name='pb.SearchRequest.tx_position', index=10,
number=11, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='amount', full_name='pb.SearchRequest.amount', index=11,
number=12, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='timestamp', full_name='pb.SearchRequest.timestamp', index=12,
number=13, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='creation_timestamp', full_name='pb.SearchRequest.creation_timestamp', index=13,
number=14, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='height', full_name='pb.SearchRequest.height', index=14,
number=15, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='creation_height', full_name='pb.SearchRequest.creation_height', index=15,
number=16, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='activation_height', full_name='pb.SearchRequest.activation_height', index=16,
number=17, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='expiration_height', full_name='pb.SearchRequest.expiration_height', index=17,
number=18, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='release_time', full_name='pb.SearchRequest.release_time', index=18,
number=19, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='short_url', full_name='pb.SearchRequest.short_url', index=19,
number=20, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='canonical_url', full_name='pb.SearchRequest.canonical_url', index=20,
number=21, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='title', full_name='pb.SearchRequest.title', index=21,
number=22, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='author', full_name='pb.SearchRequest.author', index=22,
number=23, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='description', full_name='pb.SearchRequest.description', index=23,
number=24, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='claim_type', full_name='pb.SearchRequest.claim_type', index=24,
number=25, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='repost_count', full_name='pb.SearchRequest.repost_count', index=25,
number=26, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='stream_type', full_name='pb.SearchRequest.stream_type', index=26,
number=27, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='media_type', full_name='pb.SearchRequest.media_type', index=27,
number=28, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='fee_amount', full_name='pb.SearchRequest.fee_amount', index=28,
number=29, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='fee_currency', full_name='pb.SearchRequest.fee_currency', index=29,
number=30, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='duration', full_name='pb.SearchRequest.duration', index=30,
number=31, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='reposted_claim_id', full_name='pb.SearchRequest.reposted_claim_id', index=31,
number=32, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='censor_type', full_name='pb.SearchRequest.censor_type', index=32,
number=33, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='claims_in_channel', full_name='pb.SearchRequest.claims_in_channel', index=33,
number=34, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='channel_join', full_name='pb.SearchRequest.channel_join', index=34,
number=35, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='is_signature_valid', full_name='pb.SearchRequest.is_signature_valid', index=35,
number=36, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='effective_amount', full_name='pb.SearchRequest.effective_amount', index=36,
number=37, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='support_amount', full_name='pb.SearchRequest.support_amount', index=37,
number=38, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='trending_score', full_name='pb.SearchRequest.trending_score', index=38,
number=39, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='tx_id', full_name='pb.SearchRequest.tx_id', index=39,
number=43, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='tx_nout', full_name='pb.SearchRequest.tx_nout', index=40,
number=44, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='signature', full_name='pb.SearchRequest.signature', index=41,
number=45, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='signature_digest', full_name='pb.SearchRequest.signature_digest', index=42,
number=46, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='public_key_bytes', full_name='pb.SearchRequest.public_key_bytes', index=43,
number=47, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='public_key_id', full_name='pb.SearchRequest.public_key_id', index=44,
number=48, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='any_tags', full_name='pb.SearchRequest.any_tags', index=45,
number=49, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='all_tags', full_name='pb.SearchRequest.all_tags', index=46,
number=50, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='not_tags', full_name='pb.SearchRequest.not_tags', index=47,
number=51, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='has_channel_signature', full_name='pb.SearchRequest.has_channel_signature', index=48,
number=52, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='has_source', full_name='pb.SearchRequest.has_source', index=49,
number=53, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='limit_claims_per_channel', full_name='pb.SearchRequest.limit_claims_per_channel', index=50,
number=54, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='any_languages', full_name='pb.SearchRequest.any_languages', index=51,
number=55, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='all_languages', full_name='pb.SearchRequest.all_languages', index=52,
number=56, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='remove_duplicates', full_name='pb.SearchRequest.remove_duplicates', index=53,
number=57, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='no_totals', full_name='pb.SearchRequest.no_totals', index=54,
number=58, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=248,
serialized_end=1813,
)
_RANGEFIELD.fields_by_name['op'].enum_type = _RANGEFIELD_OP
_RANGEFIELD_OP.containing_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['claim_id'].message_type = _INVERTIBLEFIELD
_SEARCHREQUEST.fields_by_name['channel_id'].message_type = _INVERTIBLEFIELD
_SEARCHREQUEST.fields_by_name['tx_position'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['amount'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['timestamp'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['creation_timestamp'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['height'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['creation_height'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['activation_height'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['expiration_height'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['release_time'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['repost_count'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['fee_amount'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['duration'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['censor_type'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['channel_join'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['is_signature_valid'].message_type = _BOOLVALUE
_SEARCHREQUEST.fields_by_name['effective_amount'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['support_amount'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['trending_score'].message_type = _RANGEFIELD
_SEARCHREQUEST.fields_by_name['tx_nout'].message_type = _UINT32VALUE
_SEARCHREQUEST.fields_by_name['has_source'].message_type = _BOOLVALUE
DESCRIPTOR.message_types_by_name['InvertibleField'] = _INVERTIBLEFIELD
DESCRIPTOR.message_types_by_name['BoolValue'] = _BOOLVALUE
DESCRIPTOR.message_types_by_name['UInt32Value'] = _UINT32VALUE
DESCRIPTOR.message_types_by_name['RangeField'] = _RANGEFIELD
DESCRIPTOR.message_types_by_name['SearchRequest'] = _SEARCHREQUEST
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
InvertibleField = _reflection.GeneratedProtocolMessageType('InvertibleField', (_message.Message,), {
'DESCRIPTOR' : _INVERTIBLEFIELD,
'__module__' : 'hub_pb2'
# @@protoc_insertion_point(class_scope:pb.InvertibleField)
})
_sym_db.RegisterMessage(InvertibleField)
BoolValue = _reflection.GeneratedProtocolMessageType('BoolValue', (_message.Message,), {
'DESCRIPTOR' : _BOOLVALUE,
'__module__' : 'hub_pb2'
# @@protoc_insertion_point(class_scope:pb.BoolValue)
})
_sym_db.RegisterMessage(BoolValue)
UInt32Value = _reflection.GeneratedProtocolMessageType('UInt32Value', (_message.Message,), {
'DESCRIPTOR' : _UINT32VALUE,
'__module__' : 'hub_pb2'
# @@protoc_insertion_point(class_scope:pb.UInt32Value)
})
_sym_db.RegisterMessage(UInt32Value)
RangeField = _reflection.GeneratedProtocolMessageType('RangeField', (_message.Message,), {
'DESCRIPTOR' : _RANGEFIELD,
'__module__' : 'hub_pb2'
# @@protoc_insertion_point(class_scope:pb.RangeField)
})
_sym_db.RegisterMessage(RangeField)
SearchRequest = _reflection.GeneratedProtocolMessageType('SearchRequest', (_message.Message,), {
'DESCRIPTOR' : _SEARCHREQUEST,
'__module__' : 'hub_pb2'
# @@protoc_insertion_point(class_scope:pb.SearchRequest)
})
_sym_db.RegisterMessage(SearchRequest)
DESCRIPTOR._options = None
_HUB = _descriptor.ServiceDescriptor(
name='Hub',
full_name='pb.Hub',
file=DESCRIPTOR,
index=0,
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_start=1815,
serialized_end=1864,
methods=[
_descriptor.MethodDescriptor(
name='Search',
full_name='pb.Hub.Search',
index=0,
containing_service=None,
input_type=_SEARCHREQUEST,
output_type=result__pb2._OUTPUTS,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
])
_sym_db.RegisterServiceDescriptor(_HUB)
DESCRIPTOR.services_by_name['Hub'] = _HUB
# @@protoc_insertion_point(module_scope)

67
v2/python/hub_pb2_grpc.py Normal file
View file

@ -0,0 +1,67 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import hub_pb2 as hub__pb2
import result_pb2 as result__pb2
class HubStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Search = channel.unary_unary(
'/pb.Hub/Search',
request_serializer=hub__pb2.SearchRequest.SerializeToString,
response_deserializer=result__pb2.Outputs.FromString,
)
class HubServicer(object):
"""Missing associated documentation comment in .proto file."""
def Search(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_HubServicer_to_server(servicer, server):
rpc_method_handlers = {
'Search': grpc.unary_unary_rpc_method_handler(
servicer.Search,
request_deserializer=hub__pb2.SearchRequest.FromString,
response_serializer=result__pb2.Outputs.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'pb.Hub', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class Hub(object):
"""Missing associated documentation comment in .proto file."""
@staticmethod
def Search(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/pb.Hub/Search',
hub__pb2.SearchRequest.SerializeToString,
result__pb2.Outputs.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

View file

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: purchase.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
@ -17,9 +17,9 @@ DESCRIPTOR = _descriptor.FileDescriptor(
name='purchase.proto',
package='pb',
syntax='proto3',
serialized_options=None,
serialized_options=b'Z\035github.com/lbryio/types/go/pb',
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x0epurchase.proto\x12\x02pb\"\x1e\n\x08Purchase\x12\x12\n\nclaim_hash\x18\x01 \x01(\x0c\x62\x06proto3'
serialized_pb=b'\n\x0epurchase.proto\x12\x02pb\"\x1e\n\x08Purchase\x12\x12\n\nclaim_hash\x18\x01 \x01(\x0c\x42\x1fZ\x1dgithub.com/lbryio/types/go/pbb\x06proto3'
)
@ -67,4 +67,5 @@ Purchase = _reflection.GeneratedProtocolMessageType('Purchase', (_message.Messag
_sym_db.RegisterMessage(Purchase)
DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)

View file

@ -0,0 +1,4 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

View file

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: result.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
@ -17,9 +17,9 @@ DESCRIPTOR = _descriptor.FileDescriptor(
name='result.proto',
package='pb',
syntax='proto3',
serialized_options=None,
serialized_options=b'Z github.com/lbryio/types/v2/go/pb',
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x0cresult.proto\x12\x02pb\"\x97\x01\n\x07Outputs\x12\x18\n\x04txos\x18\x01 \x03(\x0b\x32\n.pb.Output\x12\x1e\n\nextra_txos\x18\x02 \x03(\x0b\x32\n.pb.Output\x12\r\n\x05total\x18\x03 \x01(\r\x12\x0e\n\x06offset\x18\x04 \x01(\r\x12\x1c\n\x07\x62locked\x18\x05 \x03(\x0b\x32\x0b.pb.Blocked\x12\x15\n\rblocked_total\x18\x06 \x01(\r\"{\n\x06Output\x12\x0f\n\x07tx_hash\x18\x01 \x01(\x0c\x12\x0c\n\x04nout\x18\x02 \x01(\r\x12\x0e\n\x06height\x18\x03 \x01(\r\x12\x1e\n\x05\x63laim\x18\x07 \x01(\x0b\x32\r.pb.ClaimMetaH\x00\x12\x1a\n\x05\x65rror\x18\x0f \x01(\x0b\x32\t.pb.ErrorH\x00\x42\x06\n\x04meta\"\xaf\x03\n\tClaimMeta\x12\x1b\n\x07\x63hannel\x18\x01 \x01(\x0b\x32\n.pb.Output\x12\x1a\n\x06repost\x18\x02 \x01(\x0b\x32\n.pb.Output\x12\x11\n\tshort_url\x18\x03 \x01(\t\x12\x15\n\rcanonical_url\x18\x04 \x01(\t\x12\x16\n\x0eis_controlling\x18\x05 \x01(\x08\x12\x18\n\x10take_over_height\x18\x06 \x01(\r\x12\x17\n\x0f\x63reation_height\x18\x07 \x01(\r\x12\x19\n\x11\x61\x63tivation_height\x18\x08 \x01(\r\x12\x19\n\x11\x65xpiration_height\x18\t \x01(\r\x12\x19\n\x11\x63laims_in_channel\x18\n \x01(\r\x12\x10\n\x08reposted\x18\x0b \x01(\r\x12\x18\n\x10\x65\x66\x66\x65\x63tive_amount\x18\x14 \x01(\x04\x12\x16\n\x0esupport_amount\x18\x15 \x01(\x04\x12\x16\n\x0etrending_group\x18\x16 \x01(\r\x12\x16\n\x0etrending_mixed\x18\x17 \x01(\x02\x12\x16\n\x0etrending_local\x18\x18 \x01(\x02\x12\x17\n\x0ftrending_global\x18\x19 \x01(\x02\"\x94\x01\n\x05\x45rror\x12\x1c\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0e.pb.Error.Code\x12\x0c\n\x04text\x18\x02 \x01(\t\x12\x1c\n\x07\x62locked\x18\x03 \x01(\x0b\x32\x0b.pb.Blocked\"A\n\x04\x43ode\x12\x10\n\x0cUNKNOWN_CODE\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\x0b\n\x07\x42LOCKED\x10\x03\"5\n\x07\x42locked\x12\r\n\x05\x63ount\x18\x01 \x01(\r\x12\x1b\n\x07\x63hannel\x18\x02 \x01(\x0b\x32\n.pb.Outputb\x06proto3'
serialized_pb=b'\n\x0cresult.proto\x12\x02pb\"\x97\x01\n\x07Outputs\x12\x18\n\x04txos\x18\x01 \x03(\x0b\x32\n.pb.Output\x12\x1e\n\nextra_txos\x18\x02 \x03(\x0b\x32\n.pb.Output\x12\r\n\x05total\x18\x03 \x01(\r\x12\x0e\n\x06offset\x18\x04 \x01(\r\x12\x1c\n\x07\x62locked\x18\x05 \x03(\x0b\x32\x0b.pb.Blocked\x12\x15\n\rblocked_total\x18\x06 \x01(\r\"{\n\x06Output\x12\x0f\n\x07tx_hash\x18\x01 \x01(\x0c\x12\x0c\n\x04nout\x18\x02 \x01(\r\x12\x0e\n\x06height\x18\x03 \x01(\r\x12\x1e\n\x05\x63laim\x18\x07 \x01(\x0b\x32\r.pb.ClaimMetaH\x00\x12\x1a\n\x05\x65rror\x18\x0f \x01(\x0b\x32\t.pb.ErrorH\x00\x42\x06\n\x04meta\"\xe6\x02\n\tClaimMeta\x12\x1b\n\x07\x63hannel\x18\x01 \x01(\x0b\x32\n.pb.Output\x12\x1a\n\x06repost\x18\x02 \x01(\x0b\x32\n.pb.Output\x12\x11\n\tshort_url\x18\x03 \x01(\t\x12\x15\n\rcanonical_url\x18\x04 \x01(\t\x12\x16\n\x0eis_controlling\x18\x05 \x01(\x08\x12\x18\n\x10take_over_height\x18\x06 \x01(\r\x12\x17\n\x0f\x63reation_height\x18\x07 \x01(\r\x12\x19\n\x11\x61\x63tivation_height\x18\x08 \x01(\r\x12\x19\n\x11\x65xpiration_height\x18\t \x01(\r\x12\x19\n\x11\x63laims_in_channel\x18\n \x01(\r\x12\x10\n\x08reposted\x18\x0b \x01(\r\x12\x18\n\x10\x65\x66\x66\x65\x63tive_amount\x18\x14 \x01(\x04\x12\x16\n\x0esupport_amount\x18\x15 \x01(\x04\x12\x16\n\x0etrending_score\x18\x16 \x01(\x01\"\x94\x01\n\x05\x45rror\x12\x1c\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x0e.pb.Error.Code\x12\x0c\n\x04text\x18\x02 \x01(\t\x12\x1c\n\x07\x62locked\x18\x03 \x01(\x0b\x32\x0b.pb.Blocked\"A\n\x04\x43ode\x12\x10\n\x0cUNKNOWN_CODE\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\x0b\n\x07\x42LOCKED\x10\x03\"5\n\x07\x42locked\x12\r\n\x05\x63ount\x18\x01 \x01(\r\x12\x1b\n\x07\x63hannel\x18\x02 \x01(\x0b\x32\n.pb.OutputB\"Z github.com/lbryio/types/v2/go/pbb\x06proto3'
)
@ -54,8 +54,8 @@ _ERROR_CODE = _descriptor.EnumDescriptor(
],
containing_type=None,
serialized_options=None,
serialized_start=817,
serialized_end=882,
serialized_start=744,
serialized_end=809,
)
_sym_db.RegisterEnumDescriptor(_ERROR_CODE)
@ -292,29 +292,8 @@ _CLAIMMETA = _descriptor.Descriptor(
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='trending_group', full_name='pb.ClaimMeta.trending_group', index=13,
number=22, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='trending_mixed', full_name='pb.ClaimMeta.trending_mixed', index=14,
number=23, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='trending_local', full_name='pb.ClaimMeta.trending_local', index=15,
number=24, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='trending_global', full_name='pb.ClaimMeta.trending_global', index=16,
number=25, type=2, cpp_type=6, label=1,
name='trending_score', full_name='pb.ClaimMeta.trending_score', index=13,
number=22, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
@ -332,7 +311,7 @@ _CLAIMMETA = _descriptor.Descriptor(
oneofs=[
],
serialized_start=300,
serialized_end=731,
serialized_end=658,
)
@ -378,8 +357,8 @@ _ERROR = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=734,
serialized_end=882,
serialized_start=661,
serialized_end=809,
)
@ -417,8 +396,8 @@ _BLOCKED = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=884,
serialized_end=937,
serialized_start=811,
serialized_end=864,
)
_OUTPUTS.fields_by_name['txos'].message_type = _OUTPUT
@ -481,4 +460,5 @@ Blocked = _reflection.GeneratedProtocolMessageType('Blocked', (_message.Message,
_sym_db.RegisterMessage(Blocked)
DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)

View file

@ -0,0 +1,4 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

View file

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: support.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
@ -17,9 +17,9 @@ DESCRIPTOR = _descriptor.FileDescriptor(
name='support.proto',
package='pb',
syntax='proto3',
serialized_options=None,
serialized_options=b'Z\035github.com/lbryio/types/go/pb',
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\rsupport.proto\x12\x02pb\"\x18\n\x07Support\x12\r\n\x05\x65moji\x18\x01 \x01(\tb\x06proto3'
serialized_pb=b'\n\rsupport.proto\x12\x02pb\")\n\x07Support\x12\r\n\x05\x65moji\x18\x01 \x01(\t\x12\x0f\n\x07\x63omment\x18\x02 \x01(\tB\x1fZ\x1dgithub.com/lbryio/types/go/pbb\x06proto3'
)
@ -40,6 +40,13 @@ _SUPPORT = _descriptor.Descriptor(
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='comment', full_name='pb.Support.comment', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
@ -53,7 +60,7 @@ _SUPPORT = _descriptor.Descriptor(
oneofs=[
],
serialized_start=21,
serialized_end=45,
serialized_end=62,
)
DESCRIPTOR.message_types_by_name['Support'] = _SUPPORT
@ -67,4 +74,5 @@ Support = _reflection.GeneratedProtocolMessageType('Support', (_message.Message,
_sym_db.RegisterMessage(Support)
DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)

View file

@ -0,0 +1,4 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc