Compare commits
9 commits
support_pr
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
73610f6654 | ||
|
edf970d25a | ||
|
1aa23dcdbf | ||
|
e741df19b0 | ||
|
f19399ae55 | ||
|
3adee97e90 | ||
|
f0b4476ef3 | ||
|
366870b286 | ||
|
7bf7cc8e09 |
21 changed files with 14871 additions and 11527 deletions
|
@ -1,9 +1,12 @@
|
|||
# LBRY Types
|
||||
|
||||
Cross-language definitions for standard LBRY types.
|
||||
Cross-language definitions for standard LBRY types.
|
||||
|
||||
`v1/` contains the old proto2 files. `v2/` contains the new proto3 files. See the README.md file in each dir for instructions on using each.
|
||||
|
||||
`jsonschema/` contains the definition of the wallet file.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
|
139
jsonschema/wallet.json
Normal file
139
jsonschema/wallet.json
Normal file
|
@ -0,0 +1,139 @@
|
|||
{
|
||||
"title": "Wallet",
|
||||
"description": "An LBC wallet",
|
||||
"type": "object",
|
||||
"required": ["name", "version", "accounts", "preferences"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Human readable name for this wallet",
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"description": "Wallet spec version",
|
||||
"type": "integer",
|
||||
"$comment": "Should this be a string? We may need some sort of decimal type if we want exact decimal versions."
|
||||
},
|
||||
"accounts": {
|
||||
"description": "Accounts associated with this wallet",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["address_generator", "certificates", "encrypted", "ledger", "modified_on", "name", "private_key", "public_key", "seed"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"address_generator": {
|
||||
"description": "Higher level manager of either singular or deterministically generated addresses",
|
||||
"type": "object",
|
||||
"oneOf": [
|
||||
{
|
||||
"required": ["name", "change", "receiving"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "type of address generator: a deterministic chain of addresses",
|
||||
"enum": ["deterministic-chain"],
|
||||
"type": "string"
|
||||
},
|
||||
"change": {
|
||||
"$ref": "#/$defs/address_manager",
|
||||
"description": "Manager for deterministically generated change address (not used for single address)"
|
||||
},
|
||||
"receiving": {
|
||||
"$ref": "#/$defs/address_manager",
|
||||
"description": "Manager for deterministically generated receiving address (not used for single address)"
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"required": ["name"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "type of address generator: a single address",
|
||||
"enum": ["single-address"],
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"certificates": {
|
||||
"type": "object",
|
||||
"description": "Channel keys. Mapping from public key address to pem-formatted private key.",
|
||||
"additionalProperties": {"type": "string"}
|
||||
},
|
||||
"encrypted": {
|
||||
"type": "boolean",
|
||||
"description": "Whether private key and seed are encrypted with a password"
|
||||
},
|
||||
"ledger": {
|
||||
"description": "Which network to use",
|
||||
"type": "string",
|
||||
"examples": [
|
||||
"lbc_mainnet",
|
||||
"lbc_testnet"
|
||||
]
|
||||
},
|
||||
"modified_on": {
|
||||
"description": "last modified time in Unix Time",
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"description": "Name for account, possibly human readable",
|
||||
"type": "string"
|
||||
},
|
||||
"private_key": {
|
||||
"description": "Private key for address if `address_generator` is a single address. Root of chain of private keys for addresses if `address_generator` is a deterministic chain of addresses. Encrypted if `encrypted` is true.",
|
||||
"type": "string"
|
||||
},
|
||||
"public_key": {
|
||||
"description": "Public key for address if `address_generator` is a single address. Root of chain of public keys for addresses if `address_generator` is a deterministic chain of addresses.",
|
||||
"type": "string"
|
||||
},
|
||||
"seed": {
|
||||
"description": "Human readable representation of `private_key`. encrypted if `encrypted` is set to `true`",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"preferences": {
|
||||
"description": "Timestamped application-level preferences. Values can be objects or of a primitive type.",
|
||||
"$comment": "enable-sync is seen in example wallet. encrypt-on-disk is seen in example wallet. they both have a boolean `value` field. Do we want them explicitly defined here? local and shared seem to have at least a similar structure (type, value [yes, again], version), value being the free-form part. Should we define those here? Or can there be any key under preferences, and `value` be literally be anything in any form?",
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "object",
|
||||
"required": ["ts", "value"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"ts": {
|
||||
"type": "number",
|
||||
"description": "When the item was set, in Unix time format.",
|
||||
"$comment": "Do we want a string (decimal)?"
|
||||
},
|
||||
"value": {
|
||||
"$comment": "Sometimes this has been an object, sometimes just a boolean. I don't want to prescribe anything."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"$defs": {
|
||||
"address_manager": {
|
||||
"description": "Manager for deterministically generated addresses",
|
||||
"type": "object",
|
||||
"required": ["gap", "maximum_uses_per_address"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"gap": {
|
||||
"description": "Maximum allowed consecutive generated addresses with no transactions",
|
||||
"type": "integer"
|
||||
},
|
||||
"maximum_uses_per_address": {
|
||||
"description": "Maximum number of uses for each generated address",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
8043
v2/cpp/claim.pb.cc
8043
v2/cpp/claim.pb.cc
File diff suppressed because it is too large
Load diff
7073
v2/cpp/claim.pb.h
7073
v2/cpp/claim.pb.h
File diff suppressed because it is too large
Load diff
|
@ -5,46 +5,40 @@
|
|||
|
||||
#include <algorithm>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/extension_set.h>
|
||||
#include <google/protobuf/wire_format_lite_inl.h>
|
||||
#include <google/protobuf/wire_format_lite.h>
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/reflection_ops.h>
|
||||
#include <google/protobuf/wire_format.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
|
||||
namespace pb {
|
||||
class PurchaseDefaultTypeInternal {
|
||||
public:
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Purchase> _instance;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Purchase> _instance;
|
||||
} _Purchase_default_instance_;
|
||||
} // namespace pb
|
||||
static void InitDefaultsPurchase_purchase_2eproto() {
|
||||
static void InitDefaultsscc_info_Purchase_purchase_2eproto() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
{
|
||||
void* ptr = &::pb::_Purchase_default_instance_;
|
||||
new (ptr) ::pb::Purchase();
|
||||
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
||||
}
|
||||
::pb::Purchase::InitAsDefaultInstance();
|
||||
}
|
||||
|
||||
::google::protobuf::internal::SCCInfo<0> scc_info_Purchase_purchase_2eproto =
|
||||
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPurchase_purchase_2eproto}, {}};
|
||||
::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}, {}};
|
||||
|
||||
void InitDefaults_purchase_2eproto() {
|
||||
::google::protobuf::internal::InitSCC(&scc_info_Purchase_purchase_2eproto.base);
|
||||
}
|
||||
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;
|
||||
|
||||
::google::protobuf::Metadata file_level_metadata_purchase_2eproto[1];
|
||||
constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_purchase_2eproto = nullptr;
|
||||
constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_purchase_2eproto = nullptr;
|
||||
|
||||
const ::google::protobuf::uint32 TableStruct_purchase_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_purchase_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::pb::Purchase, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
|
@ -52,232 +46,154 @@ const ::google::protobuf::uint32 TableStruct_purchase_2eproto::offsets[] PROTOBU
|
|||
~0u, // no _weak_field_map_
|
||||
PROTOBUF_FIELD_OFFSET(::pb::Purchase, claim_hash_),
|
||||
};
|
||||
static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, -1, sizeof(::pb::Purchase)},
|
||||
};
|
||||
|
||||
static ::google::protobuf::Message const * const file_default_instances[] = {
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Purchase_default_instance_),
|
||||
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
||||
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Purchase_default_instance_),
|
||||
};
|
||||
|
||||
::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_purchase_2eproto = {
|
||||
{}, AddDescriptors_purchase_2eproto, "purchase.proto", 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,
|
||||
};
|
||||
|
||||
const char descriptor_table_protodef_purchase_2eproto[] =
|
||||
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"
|
||||
;
|
||||
::google::protobuf::internal::DescriptorTable descriptor_table_purchase_2eproto = {
|
||||
false, InitDefaults_purchase_2eproto,
|
||||
descriptor_table_protodef_purchase_2eproto,
|
||||
"purchase.proto", &assign_descriptors_table_purchase_2eproto, 60,
|
||||
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,
|
||||
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,
|
||||
};
|
||||
|
||||
void AddDescriptors_purchase_2eproto() {
|
||||
static constexpr ::google::protobuf::internal::InitFunc deps[1] =
|
||||
{
|
||||
};
|
||||
::google::protobuf::internal::AddDescriptors(&descriptor_table_purchase_2eproto, deps, 0);
|
||||
}
|
||||
|
||||
// Force running AddDescriptors() at dynamic initialization time.
|
||||
static bool dynamic_init_dummy_purchase_2eproto = []() { AddDescriptors_purchase_2eproto(); return true; }();
|
||||
static bool dynamic_init_dummy_purchase_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_purchase_2eproto)), true);
|
||||
namespace pb {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
void Purchase::InitAsDefaultInstance() {
|
||||
}
|
||||
class Purchase::HasBitSetters {
|
||||
class Purchase::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const int Purchase::kClaimHashFieldNumber;
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
||||
Purchase::Purchase()
|
||||
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
|
||||
Purchase::Purchase(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:pb.Purchase)
|
||||
RegisterArenaDtor(arena);
|
||||
// @@protoc_insertion_point(arena_constructor:pb.Purchase)
|
||||
}
|
||||
Purchase::Purchase(const Purchase& from)
|
||||
: ::google::protobuf::Message(),
|
||||
_internal_metadata_(nullptr) {
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
claim_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
if (from.claim_hash().size() > 0) {
|
||||
claim_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.claim_hash_);
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
claim_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
if (!from._internal_claim_hash().empty()) {
|
||||
claim_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_claim_hash(),
|
||||
GetArena());
|
||||
}
|
||||
// @@protoc_insertion_point(copy_constructor:pb.Purchase)
|
||||
}
|
||||
|
||||
void Purchase::SharedCtor() {
|
||||
::google::protobuf::internal::InitSCC(
|
||||
&scc_info_Purchase_purchase_2eproto.base);
|
||||
claim_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Purchase_purchase_2eproto.base);
|
||||
claim_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
|
||||
Purchase::~Purchase() {
|
||||
// @@protoc_insertion_point(destructor:pb.Purchase)
|
||||
SharedDtor();
|
||||
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
void Purchase::SharedDtor() {
|
||||
claim_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
GOOGLE_DCHECK(GetArena() == nullptr);
|
||||
claim_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
|
||||
void Purchase::ArenaDtor(void* object) {
|
||||
Purchase* _this = reinterpret_cast< Purchase* >(object);
|
||||
(void)_this;
|
||||
}
|
||||
void Purchase::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
||||
}
|
||||
void Purchase::SetCachedSize(int size) const {
|
||||
_cached_size_.Set(size);
|
||||
}
|
||||
const Purchase& Purchase::default_instance() {
|
||||
::google::protobuf::internal::InitSCC(&::scc_info_Purchase_purchase_2eproto.base);
|
||||
::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)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
claim_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
_internal_metadata_.Clear();
|
||||
claim_hash_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
const char* Purchase::_InternalParse(const char* begin, const char* end, void* object,
|
||||
::google::protobuf::internal::ParseContext* ctx) {
|
||||
auto msg = static_cast<Purchase*>(object);
|
||||
::google::protobuf::int32 size; (void)size;
|
||||
int depth; (void)depth;
|
||||
::google::protobuf::uint32 tag;
|
||||
::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
|
||||
auto ptr = begin;
|
||||
while (ptr < end) {
|
||||
ptr = ::google::protobuf::io::Parse32(ptr, &tag);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
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);
|
||||
CHK_(ptr);
|
||||
switch (tag >> 3) {
|
||||
// bytes claim_hash = 1;
|
||||
case 1: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
|
||||
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
object = msg->mutable_claim_hash();
|
||||
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
|
||||
parser_till_end = ::google::protobuf::internal::GreedyStringParser;
|
||||
goto string_till_end;
|
||||
}
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx));
|
||||
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
|
||||
ptr += size;
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
||||
auto str = _internal_mutable_claim_hash();
|
||||
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
||||
CHK_(ptr);
|
||||
} else goto handle_unusual;
|
||||
continue;
|
||||
default: {
|
||||
handle_unusual:
|
||||
if ((tag & 7) == 4 || tag == 0) {
|
||||
ctx->EndGroup(tag);
|
||||
return ptr;
|
||||
ctx->SetLastTag(tag);
|
||||
goto success;
|
||||
}
|
||||
auto res = UnknownFieldParse(tag, {_InternalParse, msg},
|
||||
ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
|
||||
ptr = res.first;
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
|
||||
if (res.second) return ptr;
|
||||
ptr = UnknownFieldParse(tag,
|
||||
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
||||
ptr, ctx);
|
||||
CHK_(ptr != nullptr);
|
||||
continue;
|
||||
}
|
||||
} // switch
|
||||
} // while
|
||||
return ptr;
|
||||
string_till_end:
|
||||
static_cast<::std::string*>(object)->clear();
|
||||
static_cast<::std::string*>(object)->reserve(size);
|
||||
goto len_delim_till_end;
|
||||
len_delim_till_end:
|
||||
return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
|
||||
{parser_till_end, object}, size);
|
||||
}
|
||||
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
bool Purchase::MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) {
|
||||
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
::google::protobuf::uint32 tag;
|
||||
// @@protoc_insertion_point(parse_start:pb.Purchase)
|
||||
for (;;) {
|
||||
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
||||
tag = p.first;
|
||||
if (!p.second) goto handle_unusual;
|
||||
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
||||
// bytes claim_hash = 1;
|
||||
case 1: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
||||
input, this->mutable_claim_hash()));
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
handle_unusual:
|
||||
if (tag == 0) {
|
||||
goto success;
|
||||
}
|
||||
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
||||
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
success:
|
||||
// @@protoc_insertion_point(parse_success:pb.Purchase)
|
||||
return true;
|
||||
return ptr;
|
||||
failure:
|
||||
// @@protoc_insertion_point(parse_failure:pb.Purchase)
|
||||
return false;
|
||||
#undef DO_
|
||||
}
|
||||
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
|
||||
void Purchase::SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const {
|
||||
// @@protoc_insertion_point(serialize_start:pb.Purchase)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// bytes claim_hash = 1;
|
||||
if (this->claim_hash().size() > 0) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
||||
1, this->claim_hash(), output);
|
||||
}
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
||||
_internal_metadata_.unknown_fields(), output);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_end:pb.Purchase)
|
||||
ptr = nullptr;
|
||||
goto success;
|
||||
#undef CHK_
|
||||
}
|
||||
|
||||
::google::protobuf::uint8* Purchase::InternalSerializeWithCachedSizesToArray(
|
||||
::google::protobuf::uint8* target) const {
|
||||
::PROTOBUF_NAMESPACE_ID::uint8* Purchase::_InternalSerialize(
|
||||
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:pb.Purchase)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// bytes claim_hash = 1;
|
||||
if (this->claim_hash().size() > 0) {
|
||||
target =
|
||||
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
|
||||
1, this->claim_hash(), target);
|
||||
target = stream->WriteBytesMaybeAliased(
|
||||
1, this->_internal_claim_hash(), target);
|
||||
}
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields(), 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);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:pb.Purchase)
|
||||
return target;
|
||||
|
@ -287,36 +203,35 @@ size_t Purchase::ByteSizeLong() const {
|
|||
// @@protoc_insertion_point(message_byte_size_start:pb.Purchase)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
total_size +=
|
||||
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
||||
_internal_metadata_.unknown_fields());
|
||||
}
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// bytes claim_hash = 1;
|
||||
if (this->claim_hash().size() > 0) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::BytesSize(
|
||||
this->claim_hash());
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
||||
this->_internal_claim_hash());
|
||||
}
|
||||
|
||||
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
||||
_internal_metadata_, total_size, &_cached_size_);
|
||||
}
|
||||
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
||||
SetCachedSize(cached_size);
|
||||
return total_size;
|
||||
}
|
||||
|
||||
void Purchase::MergeFrom(const ::google::protobuf::Message& from) {
|
||||
void Purchase::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:pb.Purchase)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
const Purchase* source =
|
||||
::google::protobuf::DynamicCastToGenerated<Purchase>(
|
||||
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Purchase>(
|
||||
&from);
|
||||
if (source == nullptr) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Purchase)
|
||||
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
||||
} else {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Purchase)
|
||||
MergeFrom(*source);
|
||||
|
@ -326,17 +241,16 @@ void Purchase::MergeFrom(const ::google::protobuf::Message& from) {
|
|||
void Purchase::MergeFrom(const Purchase& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Purchase)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from.claim_hash().size() > 0) {
|
||||
|
||||
claim_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.claim_hash_);
|
||||
_internal_set_claim_hash(from._internal_claim_hash());
|
||||
}
|
||||
}
|
||||
|
||||
void Purchase::CopyFrom(const ::google::protobuf::Message& from) {
|
||||
void Purchase::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:pb.Purchase)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
|
@ -354,32 +268,24 @@ bool Purchase::IsInitialized() const {
|
|||
return true;
|
||||
}
|
||||
|
||||
void Purchase::Swap(Purchase* other) {
|
||||
if (other == this) return;
|
||||
InternalSwap(other);
|
||||
}
|
||||
void Purchase::InternalSwap(Purchase* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
claim_hash_.Swap(&other->claim_hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
GetArenaNoVirtual());
|
||||
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
||||
claim_hash_.Swap(&other->claim_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata Purchase::GetMetadata() const {
|
||||
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_purchase_2eproto);
|
||||
return ::file_level_metadata_purchase_2eproto[kIndexInFileMessages];
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata Purchase::GetMetadata() const {
|
||||
return GetMetadataStatic();
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> PROTOBUF_NOINLINE ::pb::Purchase* Arena::CreateMaybeMessage< ::pb::Purchase >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::pb::Purchase >(arena);
|
||||
return Arena::CreateMessageInternal< ::pb::Purchase >(arena);
|
||||
}
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: purchase.proto
|
||||
|
||||
#ifndef PROTOBUF_INCLUDED_purchase_2eproto
|
||||
#define PROTOBUF_INCLUDED_purchase_2eproto
|
||||
#ifndef GOOGLE_PROTOBUF_INCLUDED_purchase_2eproto
|
||||
#define GOOGLE_PROTOBUF_INCLUDED_purchase_2eproto
|
||||
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#if PROTOBUF_VERSION < 3007000
|
||||
#if PROTOBUF_VERSION < 3012000
|
||||
#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 3007000 < PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3012004 < 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.
|
||||
|
@ -26,7 +26,8 @@
|
|||
#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.h>
|
||||
#include <google/protobuf/metadata_lite.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/message.h>
|
||||
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
||||
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
||||
|
@ -34,63 +35,70 @@
|
|||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_purchase_2eproto
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
namespace internal {
|
||||
class AnyMetadata;
|
||||
} // namespace internal
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// Internal implementation detail -- do not use these members.
|
||||
struct TableStruct_purchase_2eproto {
|
||||
static const ::google::protobuf::internal::ParseTableField entries[]
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::ParseTable schema[1]
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
|
||||
static const ::google::protobuf::internal::SerializationTable serialization_table[];
|
||||
static const ::google::protobuf::uint32 offsets[];
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
|
||||
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
|
||||
};
|
||||
void AddDescriptors_purchase_2eproto();
|
||||
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_purchase_2eproto;
|
||||
namespace pb {
|
||||
class Purchase;
|
||||
class PurchaseDefaultTypeInternal;
|
||||
extern PurchaseDefaultTypeInternal _Purchase_default_instance_;
|
||||
} // namespace pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::pb::Purchase* Arena::CreateMaybeMessage<::pb::Purchase>(Arena*);
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
namespace pb {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class Purchase final :
|
||||
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Purchase) */ {
|
||||
class Purchase PROTOBUF_FINAL :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.Purchase) */ {
|
||||
public:
|
||||
Purchase();
|
||||
inline Purchase() : Purchase(nullptr) {};
|
||||
virtual ~Purchase();
|
||||
|
||||
Purchase(const Purchase& from);
|
||||
|
||||
inline Purchase& operator=(const Purchase& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
#if LANG_CXX11
|
||||
Purchase(Purchase&& from) noexcept
|
||||
: Purchase() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline Purchase& operator=(const Purchase& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline Purchase& operator=(Purchase&& from) noexcept {
|
||||
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
|
||||
if (GetArena() == from.GetArena()) {
|
||||
if (this != &from) InternalSwap(&from);
|
||||
} else {
|
||||
CopyFrom(from);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
static const ::google::protobuf::Descriptor* descriptor() {
|
||||
return default_instance().GetDescriptor();
|
||||
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
||||
return GetDescriptor();
|
||||
}
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
||||
return GetMetadataStatic().descriptor;
|
||||
}
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
||||
return GetMetadataStatic().reflection;
|
||||
}
|
||||
static const Purchase& default_instance();
|
||||
|
||||
|
@ -102,10 +110,22 @@ class Purchase final :
|
|||
static constexpr int kIndexInFileMessages =
|
||||
0;
|
||||
|
||||
void Swap(Purchase* other);
|
||||
friend void swap(Purchase& a, Purchase& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(Purchase* other) {
|
||||
if (other == this) return;
|
||||
if (GetArena() == other->GetArena()) {
|
||||
InternalSwap(other);
|
||||
} else {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
||||
}
|
||||
}
|
||||
void UnsafeArenaSwap(Purchase* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
|
@ -113,71 +133,88 @@ class Purchase final :
|
|||
return CreateMaybeMessage<Purchase>(nullptr);
|
||||
}
|
||||
|
||||
Purchase* New(::google::protobuf::Arena* arena) const final {
|
||||
Purchase* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
||||
return CreateMaybeMessage<Purchase>(arena);
|
||||
}
|
||||
void CopyFrom(const ::google::protobuf::Message& from) final;
|
||||
void MergeFrom(const ::google::protobuf::Message& from) final;
|
||||
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
||||
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
||||
void CopyFrom(const Purchase& from);
|
||||
void MergeFrom(const Purchase& from);
|
||||
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
||||
bool IsInitialized() const final;
|
||||
|
||||
size_t ByteSizeLong() const final;
|
||||
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
|
||||
::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
|
||||
#else
|
||||
bool MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) final;
|
||||
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
void SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const final;
|
||||
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
|
||||
::google::protobuf::uint8* target) const final;
|
||||
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
|
||||
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
|
||||
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
|
||||
int GetCachedSize() const final { return _cached_size_.Get(); }
|
||||
|
||||
private:
|
||||
void SharedCtor();
|
||||
void SharedDtor();
|
||||
inline void SharedCtor();
|
||||
inline void SharedDtor();
|
||||
void SetCachedSize(int size) const final;
|
||||
void InternalSwap(Purchase* other);
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "pb.Purchase";
|
||||
}
|
||||
protected:
|
||||
explicit Purchase(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
||||
private:
|
||||
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
|
||||
return nullptr;
|
||||
}
|
||||
inline void* MaybeArenaPtr() const {
|
||||
return nullptr;
|
||||
}
|
||||
static void ArenaDtor(void* object);
|
||||
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
||||
public:
|
||||
|
||||
::google::protobuf::Metadata GetMetadata() const 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];
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kClaimHashFieldNumber = 1,
|
||||
};
|
||||
// bytes claim_hash = 1;
|
||||
void clear_claim_hash();
|
||||
static const int kClaimHashFieldNumber = 1;
|
||||
const ::std::string& claim_hash() const;
|
||||
void set_claim_hash(const ::std::string& value);
|
||||
#if LANG_CXX11
|
||||
void set_claim_hash(::std::string&& value);
|
||||
#endif
|
||||
const std::string& claim_hash() const;
|
||||
void set_claim_hash(const std::string& value);
|
||||
void set_claim_hash(std::string&& value);
|
||||
void set_claim_hash(const char* value);
|
||||
void set_claim_hash(const void* value, size_t size);
|
||||
::std::string* mutable_claim_hash();
|
||||
::std::string* release_claim_hash();
|
||||
void set_allocated_claim_hash(::std::string* claim_hash);
|
||||
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);
|
||||
std::string* _internal_mutable_claim_hash();
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:pb.Purchase)
|
||||
private:
|
||||
class HasBitSetters;
|
||||
class _Internal;
|
||||
|
||||
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
|
||||
::google::protobuf::internal::ArenaStringPtr claim_hash_;
|
||||
mutable ::google::protobuf::internal::CachedSize _cached_size_;
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr claim_hash_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
friend struct ::TableStruct_purchase_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
@ -193,56 +230,84 @@ class Purchase final :
|
|||
|
||||
// bytes claim_hash = 1;
|
||||
inline void Purchase::clear_claim_hash() {
|
||||
claim_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
claim_hash_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
||||
}
|
||||
inline const ::std::string& Purchase::claim_hash() const {
|
||||
inline const std::string& Purchase::claim_hash() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Purchase.claim_hash)
|
||||
return claim_hash_.GetNoArena();
|
||||
return _internal_claim_hash();
|
||||
}
|
||||
inline void Purchase::set_claim_hash(const ::std::string& value) {
|
||||
|
||||
claim_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
||||
inline void Purchase::set_claim_hash(const std::string& value) {
|
||||
_internal_set_claim_hash(value);
|
||||
// @@protoc_insertion_point(field_set:pb.Purchase.claim_hash)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Purchase::set_claim_hash(::std::string&& value) {
|
||||
inline std::string* Purchase::mutable_claim_hash() {
|
||||
// @@protoc_insertion_point(field_mutable:pb.Purchase.claim_hash)
|
||||
return _internal_mutable_claim_hash();
|
||||
}
|
||||
inline const std::string& Purchase::_internal_claim_hash() const {
|
||||
return claim_hash_.Get();
|
||||
}
|
||||
inline void Purchase::_internal_set_claim_hash(const std::string& value) {
|
||||
|
||||
claim_hash_.SetNoArena(
|
||||
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
||||
claim_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
|
||||
}
|
||||
inline void Purchase::set_claim_hash(std::string&& value) {
|
||||
|
||||
claim_hash_.Set(
|
||||
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
|
||||
// @@protoc_insertion_point(field_set_rvalue:pb.Purchase.claim_hash)
|
||||
}
|
||||
#endif
|
||||
inline void Purchase::set_claim_hash(const char* value) {
|
||||
GOOGLE_DCHECK(value != nullptr);
|
||||
|
||||
claim_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
||||
claim_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::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) {
|
||||
inline void Purchase::set_claim_hash(const void* value,
|
||||
size_t size) {
|
||||
|
||||
claim_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
::std::string(reinterpret_cast<const char*>(value), size));
|
||||
claim_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
|
||||
reinterpret_cast<const char*>(value), size), GetArena());
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Purchase.claim_hash)
|
||||
}
|
||||
inline ::std::string* Purchase::mutable_claim_hash() {
|
||||
inline std::string* Purchase::_internal_mutable_claim_hash() {
|
||||
|
||||
// @@protoc_insertion_point(field_mutable:pb.Purchase.claim_hash)
|
||||
return claim_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
return claim_hash_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
||||
}
|
||||
inline ::std::string* Purchase::release_claim_hash() {
|
||||
inline std::string* Purchase::release_claim_hash() {
|
||||
// @@protoc_insertion_point(field_release:pb.Purchase.claim_hash)
|
||||
|
||||
return claim_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
return claim_hash_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
||||
}
|
||||
inline void Purchase::set_allocated_claim_hash(::std::string* claim_hash) {
|
||||
inline void Purchase::set_allocated_claim_hash(std::string* claim_hash) {
|
||||
if (claim_hash != nullptr) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
claim_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), claim_hash);
|
||||
claim_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), 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
|
||||
|
@ -255,4 +320,4 @@ inline void Purchase::set_allocated_claim_hash(::std::string* claim_hash) {
|
|||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#endif // PROTOBUF_INCLUDED_purchase_2eproto
|
||||
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_purchase_2eproto
|
||||
|
|
2730
v2/cpp/result.pb.cc
2730
v2/cpp/result.pb.cc
File diff suppressed because it is too large
Load diff
2118
v2/cpp/result.pb.h
2118
v2/cpp/result.pb.h
File diff suppressed because it is too large
Load diff
296
v2/cpp/support.pb.cc
Normal file
296
v2/cpp/support.pb.cc
Normal file
|
@ -0,0 +1,296 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: support.proto
|
||||
|
||||
#include "support.pb.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/extension_set.h>
|
||||
#include <google/protobuf/wire_format_lite.h>
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/reflection_ops.h>
|
||||
#include <google/protobuf/wire_format.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
namespace pb {
|
||||
class SupportDefaultTypeInternal {
|
||||
public:
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Support> _instance;
|
||||
} _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;
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_support_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::pb::Support, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
PROTOBUF_FIELD_OFFSET(::pb::Support, emoji_),
|
||||
};
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, -1, sizeof(::pb::Support)},
|
||||
};
|
||||
|
||||
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
||||
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Support_default_instance_),
|
||||
};
|
||||
|
||||
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"
|
||||
;
|
||||
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,
|
||||
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,
|
||||
};
|
||||
|
||||
// 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);
|
||||
namespace pb {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
void Support::InitAsDefaultInstance() {
|
||||
}
|
||||
class Support::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
Support::Support(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
||||
SharedCtor();
|
||||
RegisterArenaDtor(arena);
|
||||
// @@protoc_insertion_point(arena_constructor:pb.Support)
|
||||
}
|
||||
Support::Support(const Support& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
_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(),
|
||||
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());
|
||||
}
|
||||
|
||||
Support::~Support() {
|
||||
// @@protoc_insertion_point(destructor:pb.Support)
|
||||
SharedDtor();
|
||||
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
void Support::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArena() == nullptr);
|
||||
emoji_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
|
||||
void Support::ArenaDtor(void* object) {
|
||||
Support* _this = reinterpret_cast< Support* >(object);
|
||||
(void)_this;
|
||||
}
|
||||
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)
|
||||
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
emoji_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
||||
_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);
|
||||
CHK_(ptr);
|
||||
switch (tag >> 3) {
|
||||
// string emoji = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
||||
auto str = _internal_mutable_emoji();
|
||||
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
||||
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "pb.Support.emoji"));
|
||||
CHK_(ptr);
|
||||
} else goto handle_unusual;
|
||||
continue;
|
||||
default: {
|
||||
handle_unusual:
|
||||
if ((tag & 7) == 4 || tag == 0) {
|
||||
ctx->SetLastTag(tag);
|
||||
goto success;
|
||||
}
|
||||
ptr = UnknownFieldParse(tag,
|
||||
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
||||
ptr, ctx);
|
||||
CHK_(ptr != nullptr);
|
||||
continue;
|
||||
}
|
||||
} // switch
|
||||
} // while
|
||||
success:
|
||||
return ptr;
|
||||
failure:
|
||||
ptr = nullptr;
|
||||
goto success;
|
||||
#undef CHK_
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::uint8* Support::_InternalSerialize(
|
||||
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:pb.Support)
|
||||
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// string emoji = 1;
|
||||
if (this->emoji().size() > 0) {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||
this->_internal_emoji().data(), static_cast<int>(this->_internal_emoji().length()),
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||
"pb.Support.emoji");
|
||||
target = stream->WriteStringMaybeAliased(
|
||||
1, this->_internal_emoji(), 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);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:pb.Support)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t Support::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:pb.Support)
|
||||
size_t total_size = 0;
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// string emoji = 1;
|
||||
if (this->emoji().size() > 0) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
||||
this->_internal_emoji());
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
||||
_internal_metadata_, total_size, &_cached_size_);
|
||||
}
|
||||
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
||||
SetCachedSize(cached_size);
|
||||
return total_size;
|
||||
}
|
||||
|
||||
void Support::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:pb.Support)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
const Support* source =
|
||||
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Support>(
|
||||
&from);
|
||||
if (source == nullptr) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Support)
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
||||
} else {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Support)
|
||||
MergeFrom(*source);
|
||||
}
|
||||
}
|
||||
|
||||
void Support::MergeFrom(const Support& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Support)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from.emoji().size() > 0) {
|
||||
_internal_set_emoji(from._internal_emoji());
|
||||
}
|
||||
}
|
||||
|
||||
void Support::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:pb.Support)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
void Support::CopyFrom(const Support& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Support)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool Support::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
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());
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata Support::GetMetadata() const {
|
||||
return GetMetadataStatic();
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace pb
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> PROTOBUF_NOINLINE ::pb::Support* Arena::CreateMaybeMessage< ::pb::Support >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::pb::Support >(arena);
|
||||
}
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
#include <google/protobuf/port_undef.inc>
|
323
v2/cpp/support.pb.h
Normal file
323
v2/cpp/support.pb.h
Normal file
|
@ -0,0 +1,323 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: support.proto
|
||||
|
||||
#ifndef GOOGLE_PROTOBUF_INCLUDED_support_2eproto
|
||||
#define GOOGLE_PROTOBUF_INCLUDED_support_2eproto
|
||||
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#if PROTOBUF_VERSION < 3012000
|
||||
#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
|
||||
#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.
|
||||
#endif
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/arena.h>
|
||||
#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>
|
||||
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
||||
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
||||
#include <google/protobuf/unknown_field_set.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_support_2eproto
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
namespace internal {
|
||||
class AnyMetadata;
|
||||
} // namespace internal
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// Internal implementation detail -- do not use these members.
|
||||
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[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
|
||||
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
|
||||
};
|
||||
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_support_2eproto;
|
||||
namespace pb {
|
||||
class Support;
|
||||
class SupportDefaultTypeInternal;
|
||||
extern SupportDefaultTypeInternal _Support_default_instance_;
|
||||
} // namespace pb
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::pb::Support* Arena::CreateMaybeMessage<::pb::Support>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
namespace pb {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class Support PROTOBUF_FINAL :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.Support) */ {
|
||||
public:
|
||||
inline Support() : Support(nullptr) {};
|
||||
virtual ~Support();
|
||||
|
||||
Support(const Support& from);
|
||||
Support(Support&& from) noexcept
|
||||
: Support() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline Support& operator=(const Support& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline Support& operator=(Support&& from) noexcept {
|
||||
if (GetArena() == from.GetArena()) {
|
||||
if (this != &from) InternalSwap(&from);
|
||||
} else {
|
||||
CopyFrom(from);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
||||
return GetDescriptor();
|
||||
}
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
||||
return GetMetadataStatic().descriptor;
|
||||
}
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
||||
return GetMetadataStatic().reflection;
|
||||
}
|
||||
static const Support& default_instance();
|
||||
|
||||
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
||||
static inline const Support* internal_default_instance() {
|
||||
return reinterpret_cast<const Support*>(
|
||||
&_Support_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
0;
|
||||
|
||||
friend void swap(Support& a, Support& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(Support* other) {
|
||||
if (other == this) return;
|
||||
if (GetArena() == other->GetArena()) {
|
||||
InternalSwap(other);
|
||||
} else {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
||||
}
|
||||
}
|
||||
void UnsafeArenaSwap(Support* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
inline Support* New() const final {
|
||||
return CreateMaybeMessage<Support>(nullptr);
|
||||
}
|
||||
|
||||
Support* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
||||
return CreateMaybeMessage<Support>(arena);
|
||||
}
|
||||
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
||||
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
||||
void CopyFrom(const Support& from);
|
||||
void MergeFrom(const Support& from);
|
||||
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
||||
bool IsInitialized() const final;
|
||||
|
||||
size_t ByteSizeLong() const final;
|
||||
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
|
||||
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
|
||||
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
|
||||
int GetCachedSize() const final { return _cached_size_.Get(); }
|
||||
|
||||
private:
|
||||
inline void SharedCtor();
|
||||
inline void SharedDtor();
|
||||
void SetCachedSize(int size) const final;
|
||||
void InternalSwap(Support* other);
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "pb.Support";
|
||||
}
|
||||
protected:
|
||||
explicit Support(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
||||
private:
|
||||
static void ArenaDtor(void* object);
|
||||
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
||||
public:
|
||||
|
||||
::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];
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kEmojiFieldNumber = 1,
|
||||
};
|
||||
// string emoji = 1;
|
||||
void clear_emoji();
|
||||
const std::string& emoji() const;
|
||||
void set_emoji(const std::string& value);
|
||||
void set_emoji(std::string&& value);
|
||||
void set_emoji(const char* value);
|
||||
void set_emoji(const char* value, size_t size);
|
||||
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:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:pb.Support)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr emoji_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
friend struct ::TableStruct_support_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif // __GNUC__
|
||||
// Support
|
||||
|
||||
// string emoji = 1;
|
||||
inline void Support::clear_emoji() {
|
||||
emoji_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
||||
}
|
||||
inline const std::string& Support::emoji() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Support.emoji)
|
||||
return _internal_emoji();
|
||||
}
|
||||
inline void Support::set_emoji(const std::string& value) {
|
||||
_internal_set_emoji(value);
|
||||
// @@protoc_insertion_point(field_set:pb.Support.emoji)
|
||||
}
|
||||
inline std::string* Support::mutable_emoji() {
|
||||
// @@protoc_insertion_point(field_mutable:pb.Support.emoji)
|
||||
return _internal_mutable_emoji();
|
||||
}
|
||||
inline const std::string& Support::_internal_emoji() const {
|
||||
return emoji_.Get();
|
||||
}
|
||||
inline void Support::_internal_set_emoji(const std::string& value) {
|
||||
|
||||
emoji_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
|
||||
}
|
||||
inline void Support::set_emoji(std::string&& value) {
|
||||
|
||||
emoji_.Set(
|
||||
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::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());
|
||||
// @@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(
|
||||
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());
|
||||
}
|
||||
inline std::string* Support::release_emoji() {
|
||||
// @@protoc_insertion_point(field_release:pb.Support.emoji)
|
||||
return emoji_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
||||
}
|
||||
inline void Support::set_allocated_emoji(std::string* emoji) {
|
||||
if (emoji != nullptr) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
emoji_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), 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());
|
||||
}
|
||||
inline void Support::unsafe_arena_set_allocated_emoji(
|
||||
std::string* emoji) {
|
||||
GOOGLE_DCHECK(GetArena() != nullptr);
|
||||
if (emoji != nullptr) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
emoji_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
||||
emoji, GetArena());
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:pb.Support.emoji)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace pb
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_support_2eproto
|
|
@ -26,18 +26,21 @@ const (
|
|||
Error_UNKNOWN_CODE Error_Code = 0
|
||||
Error_NOT_FOUND Error_Code = 1
|
||||
Error_INVALID Error_Code = 2
|
||||
Error_BLOCKED Error_Code = 3
|
||||
)
|
||||
|
||||
var Error_Code_name = map[int32]string{
|
||||
0: "UNKNOWN_CODE",
|
||||
1: "NOT_FOUND",
|
||||
2: "INVALID",
|
||||
3: "BLOCKED",
|
||||
}
|
||||
|
||||
var Error_Code_value = map[string]int32{
|
||||
"UNKNOWN_CODE": 0,
|
||||
"NOT_FOUND": 1,
|
||||
"INVALID": 2,
|
||||
"BLOCKED": 3,
|
||||
}
|
||||
|
||||
func (x Error_Code) String() string {
|
||||
|
@ -49,13 +52,15 @@ func (Error_Code) EnumDescriptor() ([]byte, []int) {
|
|||
}
|
||||
|
||||
type Outputs struct {
|
||||
Txos []*Output `protobuf:"bytes,1,rep,name=txos,proto3" json:"txos"`
|
||||
ExtraTxos []*Output `protobuf:"bytes,2,rep,name=extra_txos,json=extraTxos,proto3" json:"extra_txos"`
|
||||
Total uint32 `protobuf:"varint,3,opt,name=total,proto3" json:"total"`
|
||||
Offset uint32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Txos []*Output `protobuf:"bytes,1,rep,name=txos,proto3" json:"txos"`
|
||||
ExtraTxos []*Output `protobuf:"bytes,2,rep,name=extra_txos,json=extraTxos,proto3" json:"extra_txos"`
|
||||
Total uint32 `protobuf:"varint,3,opt,name=total,proto3" json:"total"`
|
||||
Offset uint32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset"`
|
||||
Blocked []*Blocked `protobuf:"bytes,5,rep,name=blocked,proto3" json:"blocked"`
|
||||
BlockedTotal uint32 `protobuf:"varint,6,opt,name=blocked_total,json=blockedTotal,proto3" json:"blocked_total"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Outputs) Reset() { *m = Outputs{} }
|
||||
|
@ -111,6 +116,20 @@ func (m *Outputs) GetOffset() uint32 {
|
|||
return 0
|
||||
}
|
||||
|
||||
func (m *Outputs) GetBlocked() []*Blocked {
|
||||
if m != nil {
|
||||
return m.Blocked
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Outputs) GetBlockedTotal() uint32 {
|
||||
if m != nil {
|
||||
return m.BlockedTotal
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type Output struct {
|
||||
TxHash []byte `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash"`
|
||||
Nout uint32 `protobuf:"varint,2,opt,name=nout,proto3" json:"nout"`
|
||||
|
@ -385,6 +404,7 @@ func (m *ClaimMeta) GetTrendingGlobal() float32 {
|
|||
type Error struct {
|
||||
Code Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=pb.Error_Code" json:"code"`
|
||||
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text"`
|
||||
Blocked *Blocked `protobuf:"bytes,3,opt,name=blocked,proto3" json:"blocked"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
|
@ -429,55 +449,115 @@ func (m *Error) GetText() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (m *Error) GetBlocked() *Blocked {
|
||||
if m != nil {
|
||||
return m.Blocked
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Blocked struct {
|
||||
Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count"`
|
||||
Channel *Output `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Blocked) Reset() { *m = Blocked{} }
|
||||
func (m *Blocked) String() string { return proto.CompactTextString(m) }
|
||||
func (*Blocked) ProtoMessage() {}
|
||||
func (*Blocked) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4feee897733d2100, []int{4}
|
||||
}
|
||||
|
||||
func (m *Blocked) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Blocked.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Blocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Blocked.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Blocked) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Blocked.Merge(m, src)
|
||||
}
|
||||
func (m *Blocked) XXX_Size() int {
|
||||
return xxx_messageInfo_Blocked.Size(m)
|
||||
}
|
||||
func (m *Blocked) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Blocked.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Blocked proto.InternalMessageInfo
|
||||
|
||||
func (m *Blocked) GetCount() uint32 {
|
||||
if m != nil {
|
||||
return m.Count
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Blocked) GetChannel() *Output {
|
||||
if m != nil {
|
||||
return m.Channel
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("pb.Error_Code", Error_Code_name, Error_Code_value)
|
||||
proto.RegisterType((*Outputs)(nil), "pb.Outputs")
|
||||
proto.RegisterType((*Output)(nil), "pb.Output")
|
||||
proto.RegisterType((*ClaimMeta)(nil), "pb.ClaimMeta")
|
||||
proto.RegisterType((*Error)(nil), "pb.Error")
|
||||
proto.RegisterType((*Blocked)(nil), "pb.Blocked")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("result.proto", fileDescriptor_4feee897733d2100) }
|
||||
|
||||
var fileDescriptor_4feee897733d2100 = []byte{
|
||||
// 617 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x94, 0xdd, 0x6e, 0xd3, 0x30,
|
||||
0x18, 0x86, 0x97, 0x2e, 0xfd, 0xc9, 0xd7, 0xdf, 0x59, 0x63, 0x33, 0x20, 0xa1, 0x10, 0x98, 0xc8,
|
||||
0x40, 0xea, 0xc1, 0xe0, 0x06, 0x46, 0x37, 0xb6, 0x89, 0xad, 0x95, 0xa2, 0x0d, 0x0e, 0x23, 0x37,
|
||||
0x75, 0x9b, 0x88, 0x34, 0x8e, 0x1c, 0x67, 0xca, 0x31, 0x37, 0xc2, 0x01, 0x37, 0x8a, 0xfc, 0x25,
|
||||
0x6d, 0x14, 0x71, 0x16, 0x3f, 0xef, 0xe3, 0x1f, 0xbd, 0x76, 0x0b, 0x03, 0xc9, 0xb3, 0x3c, 0x56,
|
||||
0xd3, 0x54, 0x0a, 0x25, 0x48, 0x2b, 0x5d, 0x3a, 0xbf, 0x0d, 0xe8, 0x2e, 0x72, 0x95, 0xe6, 0x2a,
|
||||
0x23, 0x6f, 0xc0, 0x54, 0x85, 0xc8, 0xa8, 0x61, 0x1f, 0xba, 0xfd, 0x0b, 0x98, 0xa6, 0xcb, 0x69,
|
||||
0x19, 0x79, 0xc8, 0xc9, 0x39, 0x00, 0x2f, 0x94, 0x64, 0x3e, 0x5a, 0xad, 0xff, 0x2c, 0x0b, 0xd3,
|
||||
0x47, 0xad, 0x1e, 0x43, 0x5b, 0x09, 0xc5, 0x62, 0x7a, 0x68, 0x1b, 0xee, 0xd0, 0x2b, 0x07, 0xe4,
|
||||
0x04, 0x3a, 0x62, 0xbd, 0xce, 0xb8, 0xa2, 0x26, 0xe2, 0x6a, 0xe4, 0xfc, 0x31, 0xa0, 0x53, 0xae,
|
||||
0x41, 0x4e, 0xa1, 0xab, 0x0a, 0x3f, 0x64, 0x59, 0x48, 0x0d, 0xdb, 0x70, 0x07, 0x5e, 0x47, 0x15,
|
||||
0xb7, 0x2c, 0x0b, 0x09, 0x01, 0x33, 0x11, 0xb9, 0xa2, 0x2d, 0x9c, 0x89, 0xdf, 0x7a, 0xbd, 0x90,
|
||||
0x47, 0x9b, 0x50, 0x55, 0xdb, 0x54, 0x23, 0x72, 0x06, 0xed, 0x20, 0x66, 0xd1, 0x96, 0x76, 0x6d,
|
||||
0xc3, 0xed, 0x5f, 0x0c, 0xf5, 0x19, 0x67, 0x1a, 0x3c, 0x70, 0xc5, 0x6e, 0x0f, 0xbc, 0x32, 0x25,
|
||||
0x6f, 0xa1, 0xcd, 0xa5, 0x14, 0x92, 0x8e, 0x51, 0xb3, 0xb4, 0x76, 0xad, 0x81, 0x56, 0x30, 0xf9,
|
||||
0xda, 0x01, 0x73, 0xcb, 0x15, 0x73, 0xfe, 0xb6, 0xc1, 0xda, 0xaf, 0x40, 0xde, 0x43, 0x37, 0x08,
|
||||
0x59, 0x92, 0xf0, 0x18, 0x0f, 0xd9, 0x6c, 0x61, 0x17, 0x11, 0x07, 0x3a, 0x92, 0xa7, 0x22, 0x2b,
|
||||
0xcf, 0xdc, 0x94, 0xaa, 0x84, 0xbc, 0x06, 0x2b, 0x0b, 0x85, 0x54, 0x7e, 0x2e, 0xcb, 0xae, 0x2c,
|
||||
0xaf, 0x87, 0xe0, 0x49, 0xc6, 0xe4, 0x1d, 0x0c, 0x03, 0x96, 0x88, 0x24, 0x0a, 0x58, 0x8c, 0x82,
|
||||
0x89, 0xc2, 0x60, 0x0f, 0xb5, 0x74, 0x06, 0xa3, 0x28, 0xf3, 0x03, 0x91, 0x28, 0x29, 0xe2, 0x38,
|
||||
0x4a, 0x36, 0xb4, 0x6d, 0x1b, 0x6e, 0xcf, 0x1b, 0x46, 0xd9, 0xac, 0x86, 0xc4, 0x85, 0x89, 0x62,
|
||||
0xbf, 0xb8, 0x2f, 0x9e, 0xb9, 0xf4, 0xab, 0xd2, 0x3a, 0x58, 0xda, 0x48, 0xf3, 0xc5, 0x33, 0x97,
|
||||
0xb7, 0x65, 0x79, 0x1f, 0x60, 0x1c, 0x48, 0xce, 0x54, 0x24, 0x92, 0x9d, 0xd8, 0x2d, 0xc5, 0x1d,
|
||||
0xae, 0xc4, 0x4f, 0x70, 0xc4, 0x02, 0x15, 0x3d, 0x37, 0xd4, 0x1e, 0xaa, 0x93, 0x3a, 0xa8, 0x65,
|
||||
0x5e, 0xa4, 0x91, 0x6c, 0xc8, 0x56, 0x29, 0xd7, 0x41, 0x25, 0x7f, 0x84, 0x23, 0xbc, 0xa1, 0xcc,
|
||||
0x8f, 0x12, 0x7f, 0xd7, 0x34, 0xa0, 0x3c, 0x2e, 0x83, 0xbb, 0x64, 0x56, 0xb5, 0xfc, 0x0a, 0x7a,
|
||||
0x65, 0x97, 0x7c, 0x45, 0xfb, 0xa8, 0xec, 0xc7, 0xe4, 0x1c, 0x26, 0x7c, 0xbd, 0xe6, 0xfa, 0x2c,
|
||||
0xdc, 0x67, 0x5b, 0x91, 0x27, 0x8a, 0x1e, 0xdb, 0x86, 0x6b, 0x7a, 0xe3, 0x3d, 0xbf, 0x44, 0xac,
|
||||
0x6b, 0xcc, 0xf2, 0x34, 0xd5, 0x57, 0x51, 0x89, 0x2f, 0x50, 0x1c, 0x56, 0xb4, 0xd6, 0x94, 0xe4,
|
||||
0xc9, 0x2a, 0x4a, 0x36, 0xfe, 0x46, 0x8a, 0x3c, 0xa5, 0x27, 0xb8, 0xe7, 0x70, 0x47, 0x6f, 0x34,
|
||||
0x6c, 0x68, 0xdb, 0xa8, 0xe0, 0x2b, 0x7a, 0x6a, 0x1b, 0x6e, 0xab, 0xd6, 0x1e, 0x34, 0x6c, 0x68,
|
||||
0xb1, 0x08, 0x58, 0x4c, 0x69, 0x53, 0xbb, 0xd7, 0x50, 0xdf, 0x48, 0xbd, 0x69, 0x2c, 0x96, 0x2c,
|
||||
0xa6, 0x2f, 0xd1, 0xdb, 0xcf, 0xbe, 0x41, 0xea, 0xe4, 0xd0, 0xc6, 0xf7, 0x4b, 0x1c, 0x30, 0x03,
|
||||
0xb1, 0xe2, 0xf8, 0x3a, 0x47, 0x17, 0xa3, 0xfd, 0xc3, 0x9e, 0xce, 0xc4, 0x8a, 0x7b, 0x98, 0xe9,
|
||||
0x1f, 0x94, 0xe2, 0x45, 0xf9, 0x38, 0x2d, 0x0f, 0xbf, 0x9d, 0x2f, 0x60, 0x6a, 0x83, 0x4c, 0x60,
|
||||
0xf0, 0x34, 0xff, 0x3e, 0x5f, 0xfc, 0x9c, 0xfb, 0xb3, 0xc5, 0xd5, 0xf5, 0xe4, 0x80, 0x0c, 0xc1,
|
||||
0x9a, 0x2f, 0x1e, 0xfd, 0x6f, 0x8b, 0xa7, 0xf9, 0xd5, 0xc4, 0x20, 0x7d, 0xe8, 0xde, 0xcd, 0x7f,
|
||||
0x5c, 0xde, 0xdf, 0x5d, 0x4d, 0x5a, 0xcb, 0x0e, 0xfe, 0x9d, 0x7c, 0xfe, 0x17, 0x00, 0x00, 0xff,
|
||||
0xff, 0x89, 0x3e, 0xbd, 0x1e, 0x5e, 0x04, 0x00, 0x00,
|
||||
// 698 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x94, 0xdd, 0x6e, 0xea, 0x46,
|
||||
0x14, 0x85, 0x63, 0x30, 0x18, 0x6f, 0xfe, 0x9c, 0x51, 0x9a, 0x4c, 0x5b, 0xa9, 0xa2, 0x6e, 0xa3,
|
||||
0x3a, 0xad, 0xc4, 0x45, 0xfa, 0x04, 0x09, 0xd0, 0x24, 0x4a, 0x02, 0x92, 0x95, 0xb4, 0x97, 0xd6,
|
||||
0x60, 0x06, 0xb0, 0x62, 0x3c, 0xd6, 0x78, 0x1c, 0xf1, 0x36, 0xbd, 0xe8, 0x55, 0x5f, 0xe6, 0x3c,
|
||||
0xd3, 0xd1, 0xec, 0x31, 0x10, 0x74, 0xce, 0xb9, 0x9b, 0xbd, 0xd6, 0xe7, 0xed, 0xad, 0x35, 0x3f,
|
||||
0xd0, 0x91, 0xbc, 0x28, 0x53, 0x35, 0xcc, 0xa5, 0x50, 0x82, 0xd4, 0xf2, 0xb9, 0xff, 0xc9, 0x02,
|
||||
0x67, 0x56, 0xaa, 0xbc, 0x54, 0x05, 0xf9, 0x09, 0x6c, 0xb5, 0x15, 0x05, 0xb5, 0x06, 0xf5, 0xa0,
|
||||
0x7d, 0x0d, 0xc3, 0x7c, 0x3e, 0x34, 0x56, 0x88, 0x3a, 0xb9, 0x02, 0xe0, 0x5b, 0x25, 0x59, 0x84,
|
||||
0x54, 0xed, 0x0b, 0xca, 0x45, 0xf7, 0x45, 0xa3, 0x67, 0xd0, 0x50, 0x42, 0xb1, 0x94, 0xd6, 0x07,
|
||||
0x56, 0xd0, 0x0d, 0x4d, 0x41, 0xce, 0xa1, 0x29, 0x96, 0xcb, 0x82, 0x2b, 0x6a, 0xa3, 0x5c, 0x55,
|
||||
0xe4, 0x12, 0x9c, 0x79, 0x2a, 0xe2, 0x37, 0xbe, 0xa0, 0x0d, 0xec, 0xda, 0xd6, 0x5d, 0x6f, 0x8d,
|
||||
0x14, 0xee, 0x3c, 0xf2, 0x0b, 0x74, 0xab, 0x65, 0x64, 0x9a, 0x37, 0xb1, 0x4b, 0xa7, 0x12, 0x5f,
|
||||
0xb4, 0xe6, 0xff, 0x6b, 0x41, 0xd3, 0xcc, 0x43, 0x2e, 0xc0, 0x51, 0xdb, 0x68, 0xcd, 0x8a, 0x35,
|
||||
0xb5, 0x06, 0x56, 0xd0, 0x09, 0x9b, 0x6a, 0x7b, 0xcf, 0x8a, 0x35, 0x21, 0x60, 0x67, 0xa2, 0x54,
|
||||
0xb4, 0x86, 0xdf, 0xe3, 0x5a, 0xcf, 0xb6, 0xe6, 0xc9, 0x6a, 0xad, 0xaa, 0x91, 0xab, 0x8a, 0x5c,
|
||||
0x42, 0x23, 0x4e, 0x59, 0xb2, 0xa1, 0xce, 0xc0, 0x0a, 0xda, 0xd7, 0x5d, 0x3d, 0xd9, 0x48, 0x0b,
|
||||
0xcf, 0x5c, 0xb1, 0xfb, 0x93, 0xd0, 0xb8, 0xe4, 0x67, 0x68, 0x70, 0x29, 0x85, 0xa4, 0x7d, 0xc4,
|
||||
0x5c, 0x8d, 0x4d, 0xb4, 0xa0, 0x11, 0x74, 0x6e, 0x9b, 0x60, 0x6f, 0xb8, 0x62, 0xfe, 0x7f, 0x0d,
|
||||
0x70, 0xf7, 0x1d, 0xc8, 0xaf, 0xe0, 0xc4, 0x6b, 0x96, 0x65, 0x3c, 0xc5, 0x21, 0x8f, 0x13, 0xdd,
|
||||
0x59, 0xc4, 0x87, 0xa6, 0xe4, 0xb9, 0x28, 0xcc, 0xcc, 0xc7, 0x50, 0xe5, 0x90, 0x1f, 0xc1, 0x2d,
|
||||
0xd6, 0x42, 0xaa, 0xa8, 0x94, 0x26, 0x77, 0x37, 0x6c, 0xa1, 0xf0, 0x2a, 0x53, 0x9d, 0x5d, 0xcc,
|
||||
0x32, 0x91, 0x25, 0x31, 0x4b, 0x11, 0xb0, 0x11, 0xe8, 0xec, 0x45, 0x0d, 0x5d, 0x42, 0x2f, 0x29,
|
||||
0xa2, 0x58, 0x64, 0x4a, 0x8a, 0x34, 0x4d, 0xb2, 0x15, 0x6d, 0x0c, 0xac, 0xa0, 0x15, 0x76, 0x93,
|
||||
0x62, 0x74, 0x10, 0x49, 0x00, 0x9e, 0x62, 0x6f, 0x3c, 0x12, 0xef, 0x5c, 0x46, 0x55, 0x68, 0x66,
|
||||
0x2b, 0x7a, 0x5a, 0x9f, 0xbd, 0x73, 0x79, 0x6f, 0xc2, 0xfb, 0x0d, 0xfa, 0xb1, 0xe4, 0x4c, 0x25,
|
||||
0x22, 0xdb, 0x81, 0x8e, 0x01, 0x77, 0x72, 0x05, 0xfe, 0x01, 0xa7, 0x2c, 0x56, 0xc9, 0xfb, 0x11,
|
||||
0xda, 0x42, 0xd4, 0x3b, 0x18, 0x07, 0x98, 0x6f, 0xf3, 0x44, 0x1e, 0xc1, 0xae, 0x81, 0x0f, 0x46,
|
||||
0x05, 0xff, 0x0e, 0xa7, 0xb8, 0x43, 0x45, 0x94, 0x64, 0xd1, 0x2e, 0x69, 0x40, 0xb8, 0x6f, 0x8c,
|
||||
0x87, 0x6c, 0x54, 0xa5, 0xfc, 0x03, 0xb4, 0x4c, 0x96, 0x7c, 0x41, 0xdb, 0x88, 0xec, 0x6b, 0x72,
|
||||
0x05, 0x1e, 0x5f, 0x2e, 0xb9, 0x9e, 0x85, 0x47, 0x6c, 0x23, 0xca, 0x4c, 0xd1, 0xb3, 0x81, 0x15,
|
||||
0xd8, 0x61, 0x7f, 0xaf, 0xdf, 0xa0, 0xac, 0x63, 0x2c, 0xca, 0x3c, 0xd7, 0x5b, 0x51, 0x81, 0xdf,
|
||||
0x21, 0xd8, 0xad, 0xd4, 0x03, 0xa6, 0x24, 0xcf, 0x16, 0x49, 0xb6, 0x8a, 0x56, 0x52, 0x94, 0x39,
|
||||
0x3d, 0xc7, 0x7f, 0x76, 0x77, 0xea, 0x9d, 0x16, 0x8f, 0xb0, 0x4d, 0xb2, 0xe5, 0x0b, 0x7a, 0x31,
|
||||
0xb0, 0x82, 0xda, 0x01, 0x7b, 0xd6, 0xe2, 0x11, 0x96, 0x8a, 0x98, 0xa5, 0x94, 0x1e, 0x63, 0x4f,
|
||||
0x5a, 0xd4, 0x3b, 0x72, 0xf8, 0x69, 0x2a, 0xe6, 0x2c, 0xa5, 0xdf, 0x23, 0xb7, 0xff, 0xfa, 0x0e,
|
||||
0x55, 0xff, 0x7f, 0x0b, 0x1a, 0x78, 0x80, 0x89, 0x0f, 0x76, 0x2c, 0x16, 0x1c, 0x8f, 0x67, 0xef,
|
||||
0xba, 0xb7, 0x3f, 0xd9, 0xc3, 0x91, 0x58, 0xf0, 0x10, 0x3d, 0x7d, 0xa3, 0x14, 0xdf, 0x9a, 0xd3,
|
||||
0xe9, 0x86, 0xb8, 0xfe, 0x78, 0xab, 0xeb, 0x78, 0x68, 0xbf, 0x7a, 0xab, 0xfd, 0x1b, 0xb0, 0x75,
|
||||
0x23, 0xe2, 0x41, 0xe7, 0x75, 0xfa, 0x38, 0x9d, 0xfd, 0x33, 0x8d, 0x46, 0xb3, 0xf1, 0xc4, 0x3b,
|
||||
0x21, 0x5d, 0x70, 0xa7, 0xb3, 0x97, 0xe8, 0xaf, 0xd9, 0xeb, 0x74, 0xec, 0x59, 0xa4, 0x0d, 0xce,
|
||||
0xc3, 0xf4, 0xef, 0x9b, 0xa7, 0x87, 0xb1, 0x57, 0xd3, 0xc5, 0xed, 0xd3, 0x6c, 0xf4, 0x38, 0x19,
|
||||
0x7b, 0x75, 0x7f, 0x02, 0x4e, 0xd5, 0x56, 0x3f, 0x3c, 0x31, 0x46, 0x6e, 0x99, 0x87, 0x07, 0x8b,
|
||||
0x8f, 0x97, 0xac, 0xf6, 0xcd, 0x4b, 0x36, 0x6f, 0xe2, 0xb3, 0xf8, 0xe7, 0xe7, 0x00, 0x00, 0x00,
|
||||
0xff, 0xff, 0x7c, 0x8a, 0x17, 0xf5, 0x26, 0x05, 0x00, 0x00,
|
||||
}
|
||||
|
|
75
v2/go/support.pb.go
Normal file
75
v2/go/support.pb.go
Normal file
|
@ -0,0 +1,75 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: support.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *Support) Reset() { *m = Support{} }
|
||||
func (m *Support) String() string { return proto.CompactTextString(m) }
|
||||
func (*Support) ProtoMessage() {}
|
||||
func (*Support) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_61fc54fa3a6fab31, []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
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Support)(nil), "pb.Support")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("support.proto", fileDescriptor_61fc54fa3a6fab31) }
|
||||
|
||||
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,
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -1,3 +1,4 @@
|
|||
// source: purchase.proto
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
|
@ -38,13 +39,15 @@ if (goog.DEBUG && !COMPILED) {
|
|||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
||||
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.pb.Purchase.prototype.toObject = function(opt_includeInstance) {
|
||||
|
@ -54,15 +57,15 @@ proto.pb.Purchase.prototype.toObject = function(opt_includeInstance) {
|
|||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.pb.Purchase} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Purchase.toObject = function(includeInstance, msg) {
|
||||
var obj = {
|
||||
var f, obj = {
|
||||
claimHash: msg.getClaimHash_asB64()
|
||||
};
|
||||
|
||||
|
@ -176,9 +179,12 @@ proto.pb.Purchase.prototype.getClaimHash_asU8 = function() {
|
|||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
/**
|
||||
* @param {!(string|Uint8Array)} value
|
||||
* @return {!proto.pb.Purchase} returns this
|
||||
*/
|
||||
proto.pb.Purchase.prototype.setClaimHash = function(value) {
|
||||
jspb.Message.setProto3BytesField(this, 1, value);
|
||||
return jspb.Message.setProto3BytesField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
167
v2/js/support_pb.js
Normal file
167
v2/js/support_pb.js
Normal file
|
@ -0,0 +1,167 @@
|
|||
// source: support.proto
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @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!
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
goog.exportSymbol('proto.pb.Support', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.pb.Support = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.pb.Support, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.pb.Support.displayName = 'proto.pb.Support';
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.pb.Support.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.pb.Support.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.pb.Support} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Support.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
emoji: jspb.Message.getFieldWithDefault(msg, 1, "")
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.pb.Support}
|
||||
*/
|
||||
proto.pb.Support.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.pb.Support;
|
||||
return proto.pb.Support.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.pb.Support} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.pb.Support}
|
||||
*/
|
||||
proto.pb.Support.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setEmoji(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.pb.Support.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.pb.Support.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.pb.Support} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Support.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getEmoji();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string emoji = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.pb.Support.prototype.getEmoji = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.pb.Support} returns this
|
||||
*/
|
||||
proto.pb.Support.prototype.setEmoji = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.pb);
|
|
@ -4,10 +4,10 @@ package pb;
|
|||
|
||||
message Support {
|
||||
string emoji = 1;
|
||||
string comment = 2;
|
||||
/*
|
||||
oneof type {
|
||||
Edit edit = 1;
|
||||
Comment comment = 2;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
@ -17,8 +17,4 @@ message Edit {
|
|||
string key = 1;
|
||||
string value = 2;
|
||||
}
|
||||
|
||||
message Comment {
|
||||
string body = 1;
|
||||
}
|
||||
*/
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2,8 +2,6 @@
|
|||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: purchase.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
|
@ -20,7 +18,8 @@ DESCRIPTOR = _descriptor.FileDescriptor(
|
|||
package='pb',
|
||||
syntax='proto3',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\x0epurchase.proto\x12\x02pb\"\x1e\n\x08Purchase\x12\x12\n\nclaim_hash\x18\x01 \x01(\x0c\x62\x06proto3')
|
||||
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'
|
||||
)
|
||||
|
||||
|
||||
|
@ -32,14 +31,15 @@ _PURCHASE = _descriptor.Descriptor(
|
|||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
create_key=_descriptor._internal_create_key,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='claim_hash', full_name='pb.Purchase.claim_hash', index=0,
|
||||
number=1, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
has_default_value=False, default_value=b"",
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
|
@ -59,11 +59,11 @@ _PURCHASE = _descriptor.Descriptor(
|
|||
DESCRIPTOR.message_types_by_name['Purchase'] = _PURCHASE
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
Purchase = _reflection.GeneratedProtocolMessageType('Purchase', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PURCHASE,
|
||||
__module__ = 'purchase_pb2'
|
||||
Purchase = _reflection.GeneratedProtocolMessageType('Purchase', (_message.Message,), {
|
||||
'DESCRIPTOR' : _PURCHASE,
|
||||
'__module__' : 'purchase_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Purchase)
|
||||
))
|
||||
})
|
||||
_sym_db.RegisterMessage(Purchase)
|
||||
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: result.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
|
@ -20,7 +18,8 @@ DESCRIPTOR = _descriptor.FileDescriptor(
|
|||
package='pb',
|
||||
syntax='proto3',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\x0cresult.proto\x12\x02pb\"b\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\"{\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\"i\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\"4\n\x04\x43ode\x12\x10\n\x0cUNKNOWN_CODE\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x62\x06proto3')
|
||||
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'
|
||||
)
|
||||
|
||||
|
||||
|
@ -30,24 +29,33 @@ _ERROR_CODE = _descriptor.EnumDescriptor(
|
|||
full_name='pb.Error.Code',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
create_key=_descriptor._internal_create_key,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN_CODE', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
type=None,
|
||||
create_key=_descriptor._internal_create_key),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='NOT_FOUND', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
type=None,
|
||||
create_key=_descriptor._internal_create_key),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='INVALID', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
type=None,
|
||||
create_key=_descriptor._internal_create_key),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='BLOCKED', index=3, number=3,
|
||||
serialized_options=None,
|
||||
type=None,
|
||||
create_key=_descriptor._internal_create_key),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=732,
|
||||
serialized_end=784,
|
||||
serialized_start=817,
|
||||
serialized_end=882,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_ERROR_CODE)
|
||||
|
||||
|
@ -58,6 +66,7 @@ _OUTPUTS = _descriptor.Descriptor(
|
|||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
create_key=_descriptor._internal_create_key,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='txos', full_name='pb.Outputs.txos', index=0,
|
||||
|
@ -65,28 +74,42 @@ _OUTPUTS = _descriptor.Descriptor(
|
|||
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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='extra_txos', full_name='pb.Outputs.extra_txos', index=1,
|
||||
number=2, type=11, cpp_type=10, 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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='total', full_name='pb.Outputs.total', index=2,
|
||||
number=3, 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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='offset', full_name='pb.Outputs.offset', 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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='blocked', full_name='pb.Outputs.blocked', index=4,
|
||||
number=5, type=11, cpp_type=10, 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='blocked_total', full_name='pb.Outputs.blocked_total', 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),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
|
@ -99,8 +122,8 @@ _OUTPUTS = _descriptor.Descriptor(
|
|||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=20,
|
||||
serialized_end=118,
|
||||
serialized_start=21,
|
||||
serialized_end=172,
|
||||
)
|
||||
|
||||
|
||||
|
@ -110,42 +133,43 @@ _OUTPUT = _descriptor.Descriptor(
|
|||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
create_key=_descriptor._internal_create_key,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='tx_hash', full_name='pb.Output.tx_hash', index=0,
|
||||
number=1, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
has_default_value=False, default_value=b"",
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='nout', full_name='pb.Output.nout', index=1,
|
||||
number=2, 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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='height', full_name='pb.Output.height', index=2,
|
||||
number=3, 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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='claim', full_name='pb.Output.claim', index=3,
|
||||
number=7, 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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='error', full_name='pb.Output.error', index=4,
|
||||
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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
|
@ -159,10 +183,12 @@ _OUTPUT = _descriptor.Descriptor(
|
|||
oneofs=[
|
||||
_descriptor.OneofDescriptor(
|
||||
name='meta', full_name='pb.Output.meta',
|
||||
index=0, containing_type=None, fields=[]),
|
||||
index=0, containing_type=None,
|
||||
create_key=_descriptor._internal_create_key,
|
||||
fields=[]),
|
||||
],
|
||||
serialized_start=120,
|
||||
serialized_end=243,
|
||||
serialized_start=174,
|
||||
serialized_end=297,
|
||||
)
|
||||
|
||||
|
||||
|
@ -172,6 +198,7 @@ _CLAIMMETA = _descriptor.Descriptor(
|
|||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
create_key=_descriptor._internal_create_key,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='channel', full_name='pb.ClaimMeta.channel', index=0,
|
||||
|
@ -179,119 +206,119 @@ _CLAIMMETA = _descriptor.Descriptor(
|
|||
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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='repost', full_name='pb.ClaimMeta.repost', 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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='short_url', full_name='pb.ClaimMeta.short_url', index=2,
|
||||
number=3, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='canonical_url', full_name='pb.ClaimMeta.canonical_url', index=3,
|
||||
number=4, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='is_controlling', full_name='pb.ClaimMeta.is_controlling', index=4,
|
||||
number=5, 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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='take_over_height', full_name='pb.ClaimMeta.take_over_height', 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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='creation_height', full_name='pb.ClaimMeta.creation_height', index=6,
|
||||
number=7, 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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='activation_height', full_name='pb.ClaimMeta.activation_height', index=7,
|
||||
number=8, 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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='expiration_height', full_name='pb.ClaimMeta.expiration_height', index=8,
|
||||
number=9, 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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='claims_in_channel', full_name='pb.ClaimMeta.claims_in_channel', index=9,
|
||||
number=10, 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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='reposted', full_name='pb.ClaimMeta.reposted', index=10,
|
||||
number=11, 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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='effective_amount', full_name='pb.ClaimMeta.effective_amount', index=11,
|
||||
number=20, type=4, cpp_type=4, 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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='support_amount', full_name='pb.ClaimMeta.support_amount', index=12,
|
||||
number=21, type=4, cpp_type=4, 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),
|
||||
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),
|
||||
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),
|
||||
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),
|
||||
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,
|
||||
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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
|
@ -304,8 +331,8 @@ _CLAIMMETA = _descriptor.Descriptor(
|
|||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=246,
|
||||
serialized_end=677,
|
||||
serialized_start=300,
|
||||
serialized_end=731,
|
||||
)
|
||||
|
||||
|
||||
|
@ -315,6 +342,7 @@ _ERROR = _descriptor.Descriptor(
|
|||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
create_key=_descriptor._internal_create_key,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='code', full_name='pb.Error.code', index=0,
|
||||
|
@ -322,14 +350,21 @@ _ERROR = _descriptor.Descriptor(
|
|||
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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='text', full_name='pb.Error.text', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
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),
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='blocked', full_name='pb.Error.blocked', index=2,
|
||||
number=3, 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),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
|
@ -343,12 +378,52 @@ _ERROR = _descriptor.Descriptor(
|
|||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=679,
|
||||
serialized_end=784,
|
||||
serialized_start=734,
|
||||
serialized_end=882,
|
||||
)
|
||||
|
||||
|
||||
_BLOCKED = _descriptor.Descriptor(
|
||||
name='Blocked',
|
||||
full_name='pb.Blocked',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
create_key=_descriptor._internal_create_key,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='count', full_name='pb.Blocked.count', 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),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='channel', full_name='pb.Blocked.channel', 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),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=884,
|
||||
serialized_end=937,
|
||||
)
|
||||
|
||||
_OUTPUTS.fields_by_name['txos'].message_type = _OUTPUT
|
||||
_OUTPUTS.fields_by_name['extra_txos'].message_type = _OUTPUT
|
||||
_OUTPUTS.fields_by_name['blocked'].message_type = _BLOCKED
|
||||
_OUTPUT.fields_by_name['claim'].message_type = _CLAIMMETA
|
||||
_OUTPUT.fields_by_name['error'].message_type = _ERROR
|
||||
_OUTPUT.oneofs_by_name['meta'].fields.append(
|
||||
|
@ -360,40 +435,50 @@ _OUTPUT.fields_by_name['error'].containing_oneof = _OUTPUT.oneofs_by_name['meta'
|
|||
_CLAIMMETA.fields_by_name['channel'].message_type = _OUTPUT
|
||||
_CLAIMMETA.fields_by_name['repost'].message_type = _OUTPUT
|
||||
_ERROR.fields_by_name['code'].enum_type = _ERROR_CODE
|
||||
_ERROR.fields_by_name['blocked'].message_type = _BLOCKED
|
||||
_ERROR_CODE.containing_type = _ERROR
|
||||
_BLOCKED.fields_by_name['channel'].message_type = _OUTPUT
|
||||
DESCRIPTOR.message_types_by_name['Outputs'] = _OUTPUTS
|
||||
DESCRIPTOR.message_types_by_name['Output'] = _OUTPUT
|
||||
DESCRIPTOR.message_types_by_name['ClaimMeta'] = _CLAIMMETA
|
||||
DESCRIPTOR.message_types_by_name['Error'] = _ERROR
|
||||
DESCRIPTOR.message_types_by_name['Blocked'] = _BLOCKED
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
Outputs = _reflection.GeneratedProtocolMessageType('Outputs', (_message.Message,), dict(
|
||||
DESCRIPTOR = _OUTPUTS,
|
||||
__module__ = 'result_pb2'
|
||||
Outputs = _reflection.GeneratedProtocolMessageType('Outputs', (_message.Message,), {
|
||||
'DESCRIPTOR' : _OUTPUTS,
|
||||
'__module__' : 'result_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Outputs)
|
||||
))
|
||||
})
|
||||
_sym_db.RegisterMessage(Outputs)
|
||||
|
||||
Output = _reflection.GeneratedProtocolMessageType('Output', (_message.Message,), dict(
|
||||
DESCRIPTOR = _OUTPUT,
|
||||
__module__ = 'result_pb2'
|
||||
Output = _reflection.GeneratedProtocolMessageType('Output', (_message.Message,), {
|
||||
'DESCRIPTOR' : _OUTPUT,
|
||||
'__module__' : 'result_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Output)
|
||||
))
|
||||
})
|
||||
_sym_db.RegisterMessage(Output)
|
||||
|
||||
ClaimMeta = _reflection.GeneratedProtocolMessageType('ClaimMeta', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CLAIMMETA,
|
||||
__module__ = 'result_pb2'
|
||||
ClaimMeta = _reflection.GeneratedProtocolMessageType('ClaimMeta', (_message.Message,), {
|
||||
'DESCRIPTOR' : _CLAIMMETA,
|
||||
'__module__' : 'result_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.ClaimMeta)
|
||||
))
|
||||
})
|
||||
_sym_db.RegisterMessage(ClaimMeta)
|
||||
|
||||
Error = _reflection.GeneratedProtocolMessageType('Error', (_message.Message,), dict(
|
||||
DESCRIPTOR = _ERROR,
|
||||
__module__ = 'result_pb2'
|
||||
Error = _reflection.GeneratedProtocolMessageType('Error', (_message.Message,), {
|
||||
'DESCRIPTOR' : _ERROR,
|
||||
'__module__' : 'result_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Error)
|
||||
))
|
||||
})
|
||||
_sym_db.RegisterMessage(Error)
|
||||
|
||||
Blocked = _reflection.GeneratedProtocolMessageType('Blocked', (_message.Message,), {
|
||||
'DESCRIPTOR' : _BLOCKED,
|
||||
'__module__' : 'result_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Blocked)
|
||||
})
|
||||
_sym_db.RegisterMessage(Blocked)
|
||||
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
|
|
70
v2/python/support_pb2.py
Normal file
70
v2/python/support_pb2.py
Normal file
|
@ -0,0 +1,70 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: support.proto
|
||||
|
||||
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()
|
||||
|
||||
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='support.proto',
|
||||
package='pb',
|
||||
syntax='proto3',
|
||||
serialized_options=None,
|
||||
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'
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
_SUPPORT = _descriptor.Descriptor(
|
||||
name='Support',
|
||||
full_name='pb.Support',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
create_key=_descriptor._internal_create_key,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='emoji', full_name='pb.Support.emoji', index=0,
|
||||
number=1, 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=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=21,
|
||||
serialized_end=45,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['Support'] = _SUPPORT
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
Support = _reflection.GeneratedProtocolMessageType('Support', (_message.Message,), {
|
||||
'DESCRIPTOR' : _SUPPORT,
|
||||
'__module__' : 'support_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Support)
|
||||
})
|
||||
_sym_db.RegisterMessage(Support)
|
||||
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
Loading…
Reference in a new issue