Compare commits
45 commits
update_go_
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
73610f6654 | ||
|
edf970d25a | ||
|
1aa23dcdbf | ||
|
e741df19b0 | ||
|
f19399ae55 | ||
|
3adee97e90 | ||
|
f0b4476ef3 | ||
|
366870b286 | ||
|
7bf7cc8e09 | ||
|
5f1de72fc6 | ||
|
24152bfd4b | ||
|
188f557927 | ||
|
05a22073b4 | ||
|
5ab4c9c726 | ||
|
0d0c566b5a | ||
|
081412d9c7 | ||
|
59c0212c21 | ||
|
1bb8107e04 | ||
|
73078c17ef | ||
|
fe180635ea | ||
|
42cdb2c90d | ||
|
9ee6922fcc | ||
|
1a39853d99 | ||
|
8483ac4f66 | ||
|
39252541fb | ||
|
ea76bbc774 | ||
|
f456fbbf5c | ||
|
547d6aba37 | ||
|
ffb5f861d8 | ||
|
4194941748 | ||
|
e993d79fd6 | ||
|
321fb2abda | ||
|
24967e320d | ||
|
41b2658ca3 | ||
|
3af925981a | ||
|
0ca364efb5 | ||
|
10a5d98e9b | ||
|
35ddf1afe7 | ||
|
ded1edbac9 | ||
|
3a8e42248e | ||
|
164c5a5b34 | ||
|
77dab83c91 | ||
|
d326456f6e | ||
|
bfcf51f9cc | ||
|
54c3c28f67 |
27 changed files with 30037 additions and 10947 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -29,3 +29,5 @@ find $DIR/go $DIR/python $DIR/js $DIR/cpp -type f -delete
|
|||
|
||||
|
||||
protoc --proto_path="$DIR/proto" --python_out="$DIR/python" --go_out="$DIR/go" --js_out="import_style=commonjs,binary:$DIR/js" --cpp_out="$DIR/cpp" $DIR/proto/*.proto
|
||||
|
||||
ls "$DIR"/go/*.pb.go | xargs -n1 -IX bash -c "sed -e 's/,omitempty//' X > X.tmp && mv X{.tmp,}"
|
||||
|
|
9287
v2/cpp/claim.pb.cc
9287
v2/cpp/claim.pb.cc
File diff suppressed because it is too large
Load diff
10005
v2/cpp/claim.pb.h
10005
v2/cpp/claim.pb.h
File diff suppressed because it is too large
Load diff
291
v2/cpp/purchase.pb.cc
Normal file
291
v2/cpp/purchase.pb.cc
Normal file
|
@ -0,0 +1,291 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: purchase.proto
|
||||
|
||||
#include "purchase.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 PurchaseDefaultTypeInternal {
|
||||
public:
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Purchase> _instance;
|
||||
} _Purchase_default_instance_;
|
||||
} // namespace pb
|
||||
static void InitDefaultsscc_info_Purchase_purchase_2eproto() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
{
|
||||
void* ptr = &::pb::_Purchase_default_instance_;
|
||||
new (ptr) ::pb::Purchase();
|
||||
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
||||
}
|
||||
::pb::Purchase::InitAsDefaultInstance();
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Purchase_purchase_2eproto =
|
||||
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Purchase_purchase_2eproto}, {}};
|
||||
|
||||
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_purchase_2eproto[1];
|
||||
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_purchase_2eproto = nullptr;
|
||||
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_purchase_2eproto = nullptr;
|
||||
|
||||
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_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
PROTOBUF_FIELD_OFFSET(::pb::Purchase, claim_hash_),
|
||||
};
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, -1, sizeof(::pb::Purchase)},
|
||||
};
|
||||
|
||||
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
||||
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::pb::_Purchase_default_instance_),
|
||||
};
|
||||
|
||||
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"
|
||||
;
|
||||
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,
|
||||
};
|
||||
|
||||
// Force running AddDescriptors() at dynamic initialization time.
|
||||
static bool dynamic_init_dummy_purchase_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_purchase_2eproto)), true);
|
||||
namespace pb {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
void Purchase::InitAsDefaultInstance() {
|
||||
}
|
||||
class Purchase::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
Purchase::Purchase(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
||||
SharedCtor();
|
||||
RegisterArenaDtor(arena);
|
||||
// @@protoc_insertion_point(arena_constructor:pb.Purchase)
|
||||
}
|
||||
Purchase::Purchase(const Purchase& from)
|
||||
: ::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() {
|
||||
::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() {
|
||||
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() {
|
||||
::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)
|
||||
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
claim_hash_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* Purchase::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
|
||||
while (!ctx->Done(&ptr)) {
|
||||
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
||||
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
||||
CHK_(ptr);
|
||||
switch (tag >> 3) {
|
||||
// bytes claim_hash = 1;
|
||||
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->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* Purchase::_InternalSerialize(
|
||||
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:pb.Purchase)
|
||||
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// bytes claim_hash = 1;
|
||||
if (this->claim_hash().size() > 0) {
|
||||
target = stream->WriteBytesMaybeAliased(
|
||||
1, this->_internal_claim_hash(), 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;
|
||||
}
|
||||
|
||||
size_t Purchase::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:pb.Purchase)
|
||||
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;
|
||||
|
||||
// bytes claim_hash = 1;
|
||||
if (this->claim_hash().size() > 0) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
||||
this->_internal_claim_hash());
|
||||
}
|
||||
|
||||
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 ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:pb.Purchase)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
const Purchase* source =
|
||||
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Purchase>(
|
||||
&from);
|
||||
if (source == nullptr) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Purchase)
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
||||
} else {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Purchase)
|
||||
MergeFrom(*source);
|
||||
}
|
||||
}
|
||||
|
||||
void Purchase::MergeFrom(const Purchase& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Purchase)
|
||||
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.claim_hash().size() > 0) {
|
||||
_internal_set_claim_hash(from._internal_claim_hash());
|
||||
}
|
||||
}
|
||||
|
||||
void Purchase::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:pb.Purchase)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
void Purchase::CopyFrom(const Purchase& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Purchase)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool Purchase::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void Purchase::InternalSwap(Purchase* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
||||
claim_hash_.Swap(&other->claim_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata Purchase::GetMetadata() const {
|
||||
return GetMetadataStatic();
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace pb
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> PROTOBUF_NOINLINE ::pb::Purchase* Arena::CreateMaybeMessage< ::pb::Purchase >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::pb::Purchase >(arena);
|
||||
}
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
#include <google/protobuf/port_undef.inc>
|
323
v2/cpp/purchase.pb.h
Normal file
323
v2/cpp/purchase.pb.h
Normal file
|
@ -0,0 +1,323 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: purchase.proto
|
||||
|
||||
#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 < 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_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 ::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_purchase_2eproto;
|
||||
namespace pb {
|
||||
class Purchase;
|
||||
class PurchaseDefaultTypeInternal;
|
||||
extern PurchaseDefaultTypeInternal _Purchase_default_instance_;
|
||||
} // namespace pb
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::pb::Purchase* Arena::CreateMaybeMessage<::pb::Purchase>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
namespace pb {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class Purchase PROTOBUF_FINAL :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pb.Purchase) */ {
|
||||
public:
|
||||
inline Purchase() : Purchase(nullptr) {};
|
||||
virtual ~Purchase();
|
||||
|
||||
Purchase(const Purchase& from);
|
||||
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 (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 Purchase& default_instance();
|
||||
|
||||
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
||||
static inline const Purchase* internal_default_instance() {
|
||||
return reinterpret_cast<const Purchase*>(
|
||||
&_Purchase_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
0;
|
||||
|
||||
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 ----------------------------------------------
|
||||
|
||||
inline Purchase* New() const final {
|
||||
return CreateMaybeMessage<Purchase>(nullptr);
|
||||
}
|
||||
|
||||
Purchase* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
||||
return CreateMaybeMessage<Purchase>(arena);
|
||||
}
|
||||
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;
|
||||
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(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:
|
||||
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_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();
|
||||
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);
|
||||
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 _Internal;
|
||||
|
||||
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;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif // __GNUC__
|
||||
// Purchase
|
||||
|
||||
// bytes claim_hash = 1;
|
||||
inline void Purchase::clear_claim_hash() {
|
||||
claim_hash_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
||||
}
|
||||
inline const std::string& Purchase::claim_hash() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Purchase.claim_hash)
|
||||
return _internal_claim_hash();
|
||||
}
|
||||
inline void Purchase::set_claim_hash(const std::string& value) {
|
||||
_internal_set_claim_hash(value);
|
||||
// @@protoc_insertion_point(field_set:pb.Purchase.claim_hash)
|
||||
}
|
||||
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_.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)
|
||||
}
|
||||
inline void Purchase::set_claim_hash(const char* value) {
|
||||
GOOGLE_DCHECK(value != nullptr);
|
||||
|
||||
claim_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
|
||||
GetArena());
|
||||
// @@protoc_insertion_point(field_set_char:pb.Purchase.claim_hash)
|
||||
}
|
||||
inline void Purchase::set_claim_hash(const void* value,
|
||||
size_t size) {
|
||||
|
||||
claim_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
|
||||
reinterpret_cast<const char*>(value), size), GetArena());
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Purchase.claim_hash)
|
||||
}
|
||||
inline std::string* Purchase::_internal_mutable_claim_hash() {
|
||||
|
||||
return claim_hash_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
||||
}
|
||||
inline std::string* Purchase::release_claim_hash() {
|
||||
// @@protoc_insertion_point(field_release:pb.Purchase.claim_hash)
|
||||
return claim_hash_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
||||
}
|
||||
inline void Purchase::set_allocated_claim_hash(std::string* claim_hash) {
|
||||
if (claim_hash != nullptr) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
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
|
||||
#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_purchase_2eproto
|
2196
v2/cpp/result.pb.cc
Normal file
2196
v2/cpp/result.pb.cc
Normal file
File diff suppressed because it is too large
Load diff
2677
v2/cpp/result.pb.h
Normal file
2677
v2/cpp/result.pb.h
Normal file
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
|
2097
v2/go/claim.pb.go
2097
v2/go/claim.pb.go
File diff suppressed because it is too large
Load diff
76
v2/go/purchase.pb.go
Normal file
76
v2/go/purchase.pb.go
Normal file
|
@ -0,0 +1,76 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: purchase.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 Purchase struct {
|
||||
ClaimHash []byte `protobuf:"bytes,1,opt,name=claim_hash,json=claimHash,proto3" json:"claim_hash"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Purchase) Reset() { *m = Purchase{} }
|
||||
func (m *Purchase) String() string { return proto.CompactTextString(m) }
|
||||
func (*Purchase) ProtoMessage() {}
|
||||
func (*Purchase) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ea8c7f112c6b4e9e, []int{0}
|
||||
}
|
||||
|
||||
func (m *Purchase) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Purchase.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Purchase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Purchase.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Purchase) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Purchase.Merge(m, src)
|
||||
}
|
||||
func (m *Purchase) XXX_Size() int {
|
||||
return xxx_messageInfo_Purchase.Size(m)
|
||||
}
|
||||
func (m *Purchase) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Purchase.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Purchase proto.InternalMessageInfo
|
||||
|
||||
func (m *Purchase) GetClaimHash() []byte {
|
||||
if m != nil {
|
||||
return m.ClaimHash
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Purchase)(nil), "pb.Purchase")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("purchase.proto", fileDescriptor_ea8c7f112c6b4e9e) }
|
||||
|
||||
var fileDescriptor_ea8c7f112c6b4e9e = []byte{
|
||||
// 84 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2b, 0x28, 0x2d, 0x4a,
|
||||
0xce, 0x48, 0x2c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48, 0x52, 0xd2,
|
||||
0xe4, 0xe2, 0x08, 0x80, 0x8a, 0x0a, 0xc9, 0x72, 0x71, 0x25, 0xe7, 0x24, 0x66, 0xe6, 0xc6, 0x67,
|
||||
0x24, 0x16, 0x67, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0xf0, 0x04, 0x71, 0x82, 0x45, 0x3c, 0x12, 0x8b,
|
||||
0x33, 0x92, 0xd8, 0xc0, 0xba, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xba, 0x94, 0x00,
|
||||
0x47, 0x00, 0x00, 0x00,
|
||||
}
|
563
v2/go/result.pb.go
Normal file
563
v2/go/result.pb.go
Normal file
|
@ -0,0 +1,563 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: result.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 Error_Code int32
|
||||
|
||||
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 {
|
||||
return proto.EnumName(Error_Code_name, int32(x))
|
||||
}
|
||||
|
||||
func (Error_Code) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4feee897733d2100, []int{3, 0}
|
||||
}
|
||||
|
||||
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"`
|
||||
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{} }
|
||||
func (m *Outputs) String() string { return proto.CompactTextString(m) }
|
||||
func (*Outputs) ProtoMessage() {}
|
||||
func (*Outputs) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4feee897733d2100, []int{0}
|
||||
}
|
||||
|
||||
func (m *Outputs) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Outputs.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Outputs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Outputs.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Outputs) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Outputs.Merge(m, src)
|
||||
}
|
||||
func (m *Outputs) XXX_Size() int {
|
||||
return xxx_messageInfo_Outputs.Size(m)
|
||||
}
|
||||
func (m *Outputs) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Outputs.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Outputs proto.InternalMessageInfo
|
||||
|
||||
func (m *Outputs) GetTxos() []*Output {
|
||||
if m != nil {
|
||||
return m.Txos
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Outputs) GetExtraTxos() []*Output {
|
||||
if m != nil {
|
||||
return m.ExtraTxos
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Outputs) GetTotal() uint32 {
|
||||
if m != nil {
|
||||
return m.Total
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Outputs) GetOffset() uint32 {
|
||||
if m != nil {
|
||||
return m.Offset
|
||||
}
|
||||
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"`
|
||||
Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height"`
|
||||
// Types that are valid to be assigned to Meta:
|
||||
// *Output_Claim
|
||||
// *Output_Error
|
||||
Meta isOutput_Meta `protobuf_oneof:"meta"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Output) Reset() { *m = Output{} }
|
||||
func (m *Output) String() string { return proto.CompactTextString(m) }
|
||||
func (*Output) ProtoMessage() {}
|
||||
func (*Output) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4feee897733d2100, []int{1}
|
||||
}
|
||||
|
||||
func (m *Output) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Output.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Output.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Output) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Output.Merge(m, src)
|
||||
}
|
||||
func (m *Output) XXX_Size() int {
|
||||
return xxx_messageInfo_Output.Size(m)
|
||||
}
|
||||
func (m *Output) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Output.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Output proto.InternalMessageInfo
|
||||
|
||||
func (m *Output) GetTxHash() []byte {
|
||||
if m != nil {
|
||||
return m.TxHash
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Output) GetNout() uint32 {
|
||||
if m != nil {
|
||||
return m.Nout
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Output) GetHeight() uint32 {
|
||||
if m != nil {
|
||||
return m.Height
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type isOutput_Meta interface {
|
||||
isOutput_Meta()
|
||||
}
|
||||
|
||||
type Output_Claim struct {
|
||||
Claim *ClaimMeta `protobuf:"bytes,7,opt,name=claim,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Output_Error struct {
|
||||
Error *Error `protobuf:"bytes,15,opt,name=error,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Output_Claim) isOutput_Meta() {}
|
||||
|
||||
func (*Output_Error) isOutput_Meta() {}
|
||||
|
||||
func (m *Output) GetMeta() isOutput_Meta {
|
||||
if m != nil {
|
||||
return m.Meta
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Output) GetClaim() *ClaimMeta {
|
||||
if x, ok := m.GetMeta().(*Output_Claim); ok {
|
||||
return x.Claim
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Output) GetError() *Error {
|
||||
if x, ok := m.GetMeta().(*Output_Error); ok {
|
||||
return x.Error
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofWrappers is for the internal use of the proto package.
|
||||
func (*Output) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
(*Output_Claim)(nil),
|
||||
(*Output_Error)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
type ClaimMeta struct {
|
||||
Channel *Output `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel"`
|
||||
Repost *Output `protobuf:"bytes,2,opt,name=repost,proto3" json:"repost"`
|
||||
ShortUrl string `protobuf:"bytes,3,opt,name=short_url,json=shortUrl,proto3" json:"short_url"`
|
||||
CanonicalUrl string `protobuf:"bytes,4,opt,name=canonical_url,json=canonicalUrl,proto3" json:"canonical_url"`
|
||||
IsControlling bool `protobuf:"varint,5,opt,name=is_controlling,json=isControlling,proto3" json:"is_controlling"`
|
||||
TakeOverHeight uint32 `protobuf:"varint,6,opt,name=take_over_height,json=takeOverHeight,proto3" json:"take_over_height"`
|
||||
CreationHeight uint32 `protobuf:"varint,7,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height"`
|
||||
ActivationHeight uint32 `protobuf:"varint,8,opt,name=activation_height,json=activationHeight,proto3" json:"activation_height"`
|
||||
ExpirationHeight uint32 `protobuf:"varint,9,opt,name=expiration_height,json=expirationHeight,proto3" json:"expiration_height"`
|
||||
ClaimsInChannel uint32 `protobuf:"varint,10,opt,name=claims_in_channel,json=claimsInChannel,proto3" json:"claims_in_channel"`
|
||||
Reposted uint32 `protobuf:"varint,11,opt,name=reposted,proto3" json:"reposted"`
|
||||
EffectiveAmount uint64 `protobuf:"varint,20,opt,name=effective_amount,json=effectiveAmount,proto3" json:"effective_amount"`
|
||||
SupportAmount uint64 `protobuf:"varint,21,opt,name=support_amount,json=supportAmount,proto3" json:"support_amount"`
|
||||
TrendingGroup uint32 `protobuf:"varint,22,opt,name=trending_group,json=trendingGroup,proto3" json:"trending_group"`
|
||||
TrendingMixed float32 `protobuf:"fixed32,23,opt,name=trending_mixed,json=trendingMixed,proto3" json:"trending_mixed"`
|
||||
TrendingLocal float32 `protobuf:"fixed32,24,opt,name=trending_local,json=trendingLocal,proto3" json:"trending_local"`
|
||||
TrendingGlobal float32 `protobuf:"fixed32,25,opt,name=trending_global,json=trendingGlobal,proto3" json:"trending_global"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) Reset() { *m = ClaimMeta{} }
|
||||
func (m *ClaimMeta) String() string { return proto.CompactTextString(m) }
|
||||
func (*ClaimMeta) ProtoMessage() {}
|
||||
func (*ClaimMeta) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4feee897733d2100, []int{2}
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ClaimMeta.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ClaimMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ClaimMeta.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ClaimMeta) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ClaimMeta.Merge(m, src)
|
||||
}
|
||||
func (m *ClaimMeta) XXX_Size() int {
|
||||
return xxx_messageInfo_ClaimMeta.Size(m)
|
||||
}
|
||||
func (m *ClaimMeta) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ClaimMeta.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ClaimMeta proto.InternalMessageInfo
|
||||
|
||||
func (m *ClaimMeta) GetChannel() *Output {
|
||||
if m != nil {
|
||||
return m.Channel
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetRepost() *Output {
|
||||
if m != nil {
|
||||
return m.Repost
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetShortUrl() string {
|
||||
if m != nil {
|
||||
return m.ShortUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetCanonicalUrl() string {
|
||||
if m != nil {
|
||||
return m.CanonicalUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetIsControlling() bool {
|
||||
if m != nil {
|
||||
return m.IsControlling
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetTakeOverHeight() uint32 {
|
||||
if m != nil {
|
||||
return m.TakeOverHeight
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetCreationHeight() uint32 {
|
||||
if m != nil {
|
||||
return m.CreationHeight
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetActivationHeight() uint32 {
|
||||
if m != nil {
|
||||
return m.ActivationHeight
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetExpirationHeight() uint32 {
|
||||
if m != nil {
|
||||
return m.ExpirationHeight
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetClaimsInChannel() uint32 {
|
||||
if m != nil {
|
||||
return m.ClaimsInChannel
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetReposted() uint32 {
|
||||
if m != nil {
|
||||
return m.Reposted
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetEffectiveAmount() uint64 {
|
||||
if m != nil {
|
||||
return m.EffectiveAmount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetSupportAmount() uint64 {
|
||||
if m != nil {
|
||||
return m.SupportAmount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetTrendingGroup() uint32 {
|
||||
if m != nil {
|
||||
return m.TrendingGroup
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetTrendingMixed() float32 {
|
||||
if m != nil {
|
||||
return m.TrendingMixed
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetTrendingLocal() float32 {
|
||||
if m != nil {
|
||||
return m.TrendingLocal
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ClaimMeta) GetTrendingGlobal() float32 {
|
||||
if m != nil {
|
||||
return m.TrendingGlobal
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *Error) Reset() { *m = Error{} }
|
||||
func (m *Error) String() string { return proto.CompactTextString(m) }
|
||||
func (*Error) ProtoMessage() {}
|
||||
func (*Error) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_4feee897733d2100, []int{3}
|
||||
}
|
||||
|
||||
func (m *Error) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Error.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Error.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Error) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Error.Merge(m, src)
|
||||
}
|
||||
func (m *Error) XXX_Size() int {
|
||||
return xxx_messageInfo_Error.Size(m)
|
||||
}
|
||||
func (m *Error) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Error.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Error proto.InternalMessageInfo
|
||||
|
||||
func (m *Error) GetCode() Error_Code {
|
||||
if m != nil {
|
||||
return m.Code
|
||||
}
|
||||
return Error_UNKNOWN_CODE
|
||||
}
|
||||
|
||||
func (m *Error) GetText() string {
|
||||
if m != nil {
|
||||
return m.Text
|
||||
}
|
||||
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{
|
||||
// 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,
|
||||
}
|
3778
v2/js/claim_pb.js
3778
v2/js/claim_pb.js
File diff suppressed because it is too large
Load diff
191
v2/js/purchase_pb.js
Normal file
191
v2/js/purchase_pb.js
Normal file
|
@ -0,0 +1,191 @@
|
|||
// source: purchase.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.Purchase', 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.Purchase = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.pb.Purchase, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.pb.Purchase.displayName = 'proto.pb.Purchase';
|
||||
}
|
||||
|
||||
|
||||
|
||||
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.Purchase.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.pb.Purchase.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.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 f, obj = {
|
||||
claimHash: msg.getClaimHash_asB64()
|
||||
};
|
||||
|
||||
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.Purchase}
|
||||
*/
|
||||
proto.pb.Purchase.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.pb.Purchase;
|
||||
return proto.pb.Purchase.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.pb.Purchase} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.pb.Purchase}
|
||||
*/
|
||||
proto.pb.Purchase.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.setClaimHash(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.pb.Purchase.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.pb.Purchase.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.Purchase} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Purchase.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getClaimHash_asU8();
|
||||
if (f.length > 0) {
|
||||
writer.writeBytes(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes claim_hash = 1;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.pb.Purchase.prototype.getClaimHash = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes claim_hash = 1;
|
||||
* This is a type-conversion wrapper around `getClaimHash()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.pb.Purchase.prototype.getClaimHash_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getClaimHash()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bytes claim_hash = 1;
|
||||
* Note that Uint8Array is not supported on all browsers.
|
||||
* @see http://caniuse.com/Uint8Array
|
||||
* This is a type-conversion wrapper around `getClaimHash()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.pb.Purchase.prototype.getClaimHash_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getClaimHash()));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!(string|Uint8Array)} value
|
||||
* @return {!proto.pb.Purchase} returns this
|
||||
*/
|
||||
proto.pb.Purchase.prototype.setClaimHash = function(value) {
|
||||
return jspb.Message.setProto3BytesField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.pb);
|
1879
v2/js/result_pb.js
Normal file
1879
v2/js/result_pb.js
Normal file
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,50 +4,64 @@ package pb;
|
|||
|
||||
message Claim {
|
||||
oneof type {
|
||||
Stream stream = 1;
|
||||
Channel channel = 2;
|
||||
}
|
||||
Stream stream = 1;
|
||||
Channel channel = 2;
|
||||
ClaimList collection = 3;
|
||||
ClaimReference repost = 4;
|
||||
}
|
||||
string title = 8;
|
||||
string description = 9;
|
||||
Source thumbnail = 10;
|
||||
repeated string tags = 11;
|
||||
repeated Language languages = 12;
|
||||
repeated Location locations = 13;
|
||||
}
|
||||
|
||||
message Stream {
|
||||
Source source = 1;
|
||||
string author = 2;
|
||||
string license = 3;
|
||||
string license_url = 4;
|
||||
int64 release_time = 5; // seconds since UNIX epoch
|
||||
Fee fee = 6;
|
||||
oneof type {
|
||||
Image image = 10;
|
||||
Video video = 11;
|
||||
Audio audio = 12;
|
||||
Software software = 13;
|
||||
}
|
||||
}
|
||||
|
||||
message Channel {
|
||||
bytes public_key = 1;
|
||||
|
||||
string title = 2;
|
||||
string description = 3;
|
||||
string thumbnail_url = 4;
|
||||
repeated string tags = 5;
|
||||
repeated Language languages = 6;
|
||||
repeated Location locations = 7;
|
||||
|
||||
string contact_email = 8;
|
||||
string homepage_url = 9;
|
||||
string cover_url = 10;
|
||||
string email = 2;
|
||||
string website_url = 3;
|
||||
Source cover = 4;
|
||||
ClaimList featured = 5;
|
||||
}
|
||||
|
||||
message Stream {
|
||||
bytes sd_hash = 1;
|
||||
message ClaimReference {
|
||||
bytes claim_hash = 1;
|
||||
}
|
||||
|
||||
string title = 2;
|
||||
string description = 3;
|
||||
string thumbnail_url = 4;
|
||||
repeated string tags = 5;
|
||||
repeated Language languages = 6;
|
||||
repeated Location locations = 7;
|
||||
message ClaimList {
|
||||
enum ListType {
|
||||
COLLECTION = 0; // play lists, etc
|
||||
DERIVATION = 2; // movie in multiple languages, software for different OSes
|
||||
}
|
||||
ListType list_type = 1;
|
||||
repeated ClaimReference claim_references = 2;
|
||||
}
|
||||
|
||||
string author = 8;
|
||||
string license = 9;
|
||||
string license_url = 10;
|
||||
int64 release_time = 11; // seconds since UNIX epoch
|
||||
message Source {
|
||||
bytes hash = 1; // SHA-384 hash of the entire unencrypted file
|
||||
string name = 2;
|
||||
uint64 size = 3;
|
||||
string media_type = 4;
|
||||
|
||||
string media_type = 13;
|
||||
File file = 14;
|
||||
Fee fee = 15;
|
||||
|
||||
oneof type {
|
||||
Image image = 16;
|
||||
Video video = 17;
|
||||
Audio audio = 18;
|
||||
}
|
||||
string url = 5;
|
||||
bytes sd_hash = 6; // SHA-384 hash of the streams manifest blob
|
||||
bytes bt_infohash = 7; // 20-byte SHA1 hash used to reference a torrent file
|
||||
}
|
||||
|
||||
message Fee {
|
||||
|
@ -62,12 +76,6 @@ message Fee {
|
|||
uint64 amount = 3; // deweys for LBC/BTC, cents for USD
|
||||
}
|
||||
|
||||
message File {
|
||||
bytes hash = 3;
|
||||
string name = 1;
|
||||
uint64 size = 2;
|
||||
}
|
||||
|
||||
message Image {
|
||||
uint32 width = 1;
|
||||
uint32 height = 2;
|
||||
|
@ -77,12 +85,26 @@ message Video {
|
|||
uint32 width = 1;
|
||||
uint32 height = 2;
|
||||
uint32 duration = 3;
|
||||
Audio audio = 15;
|
||||
}
|
||||
|
||||
message Audio {
|
||||
uint32 duration = 1;
|
||||
}
|
||||
|
||||
message Software {
|
||||
enum OS {
|
||||
UNKNOWN_OS = 0;
|
||||
ANY = 1;
|
||||
LINUX = 2;
|
||||
WINDOWS = 3;
|
||||
MAC = 4;
|
||||
ANDROID = 5;
|
||||
IOS = 6;
|
||||
}
|
||||
string os = 1;
|
||||
}
|
||||
|
||||
// RFC 5646
|
||||
message Language {
|
||||
Language language = 1;
|
||||
|
@ -742,5 +764,286 @@ message Location {
|
|||
YE = 247;
|
||||
ZM = 248;
|
||||
ZW = 249;
|
||||
// UN M.49 Geographic Regions
|
||||
R001 = 250; // World
|
||||
R002 = 251; // Africa
|
||||
R015 = 252; // Northern Africa
|
||||
R012 = 253; // Algeria DZA
|
||||
R818 = 254; // Egypt EGY
|
||||
R434 = 255; // Libya LBY
|
||||
R504 = 256; // Morocco MAR
|
||||
R729 = 257; // Sudan SDN LDC
|
||||
R788 = 258; // Tunisia TUN
|
||||
R732 = 259; // Western Sahara ESH
|
||||
R202 = 260; // Sub-Saharan Africa
|
||||
R014 = 261; // Eastern Africa
|
||||
R086 = 262; // British Indian Ocean Territory IOT
|
||||
R108 = 263; // Burundi BDI LDC LLDC
|
||||
R174 = 264; // Comoros COM LDC SIDS
|
||||
R262 = 265; // Djibouti DJI LDC
|
||||
R232 = 266; // Eritrea ERI LDC
|
||||
R231 = 267; // Ethiopia ETH LDC LLDC
|
||||
R260 = 268; // French Southern Territories ATF
|
||||
R404 = 269; // Kenya KEN
|
||||
R450 = 270; // Madagascar MDG LDC
|
||||
R454 = 271; // Malawi MWI LDC LLDC
|
||||
R480 = 272; // Mauritius MUS SIDS
|
||||
R175 = 273; // Mayotte MYT
|
||||
R508 = 274; // Mozambique MOZ LDC
|
||||
R638 = 275; // Réunion REU
|
||||
R646 = 276; // Rwanda RWA LDC LLDC
|
||||
R690 = 277; // Seychelles SYC SIDS
|
||||
R706 = 278; // Somalia SOM LDC
|
||||
R728 = 279; // South Sudan SSD LDC LLDC
|
||||
R800 = 280; // Uganda UGA LDC LLDC
|
||||
R834 = 281; // United Republic of Tanzania TZA LDC
|
||||
R894 = 282; // Zambia ZMB LDC LLDC
|
||||
R716 = 283; // Zimbabwe ZWE LLDC
|
||||
R017 = 284; // Middle Africa
|
||||
R024 = 285; // Angola AGO LDC
|
||||
R120 = 286; // Cameroon CMR
|
||||
R140 = 287; // Central African Republic CAF LDC LLDC
|
||||
R148 = 288; // Chad TCD LDC LLDC
|
||||
R178 = 289; // Congo COG
|
||||
R180 = 290; // Democratic Republic of the Congo COD LDC
|
||||
R226 = 291; // Equatorial Guinea GNQ
|
||||
R266 = 292; // Gabon GAB
|
||||
R678 = 293; // Sao Tome and Principe STP LDC SIDS
|
||||
R018 = 294; // Southern Africa
|
||||
R072 = 295; // Botswana BWA LLDC
|
||||
R748 = 296; // Eswatini SWZ LLDC
|
||||
R426 = 297; // Lesotho LSO LDC LLDC
|
||||
R516 = 298; // Namibia NAM
|
||||
R710 = 299; // South Africa ZAF
|
||||
R011 = 300; // Western Africa
|
||||
R204 = 301; // Benin BEN LDC
|
||||
R854 = 302; // Burkina Faso BFA LDC LLDC
|
||||
R132 = 303; // Cabo Verde CPV SIDS
|
||||
R384 = 304; // Côte d’Ivoire CIV
|
||||
R270 = 305; // Gambia GMB LDC
|
||||
R288 = 306; // Ghana GHA
|
||||
R324 = 307; // Guinea GIN LDC
|
||||
R624 = 308; // Guinea-Bissau GNB LDC SIDS
|
||||
R430 = 309; // Liberia LBR LDC
|
||||
R466 = 310; // Mali MLI LDC LLDC
|
||||
R478 = 311; // Mauritania MRT LDC
|
||||
R562 = 312; // Niger NER LDC LLDC
|
||||
R566 = 313; // Nigeria NGA
|
||||
R654 = 314; // Saint Helena SHN
|
||||
R686 = 315; // Senegal SEN LDC
|
||||
R694 = 316; // Sierra Leone SLE LDC
|
||||
R768 = 317; // Togo TGO LDC
|
||||
R019 = 318; // Americas
|
||||
R419 = 319; // Latin America and the Caribbean
|
||||
R029 = 320; // Caribbean
|
||||
R660 = 321; // Anguilla AIA SIDS
|
||||
R028 = 322; // Antigua and Barbuda ATG SIDS
|
||||
R533 = 323; // Aruba ABW SIDS
|
||||
R044 = 324; // Bahamas BHS SIDS
|
||||
R052 = 325; // Barbados BRB SIDS
|
||||
R535 = 326; // Bonaire, Sint Eustatius and Saba BES SIDS
|
||||
R092 = 327; // British Virgin Islands VGB SIDS
|
||||
R136 = 328; // Cayman Islands CYM
|
||||
R192 = 329; // Cuba CUB SIDS
|
||||
R531 = 330; // Curaçao CUW SIDS
|
||||
R212 = 331; // Dominica DMA SIDS
|
||||
R214 = 332; // Dominican Republic DOM SIDS
|
||||
R308 = 333; // Grenada GRD SIDS
|
||||
R312 = 334; // Guadeloupe GLP
|
||||
R332 = 335; // Haiti HTI LDC SIDS
|
||||
R388 = 336; // Jamaica JAM SIDS
|
||||
R474 = 337; // Martinique MTQ
|
||||
R500 = 338; // Montserrat MSR SIDS
|
||||
R630 = 339; // Puerto Rico PRI SIDS
|
||||
R652 = 340; // Saint Barthélemy BLM
|
||||
R659 = 341; // Saint Kitts and Nevis KNA SIDS
|
||||
R662 = 342; // Saint Lucia LCA SIDS
|
||||
R663 = 343; // Saint Martin (French Part) MAF
|
||||
R670 = 344; // Saint Vincent and the Grenadines VCT SIDS
|
||||
R534 = 345; // Sint Maarten (Dutch part) SXM SIDS
|
||||
R780 = 346; // Trinidad and Tobago TTO SIDS
|
||||
R796 = 347; // Turks and Caicos Islands TCA
|
||||
R850 = 348; // United States Virgin Islands VIR SIDS
|
||||
R013 = 349; // Central America
|
||||
R084 = 350; // Belize BLZ SIDS
|
||||
R188 = 351; // Costa Rica CRI
|
||||
R222 = 352; // El Salvador SLV
|
||||
R320 = 353; // Guatemala GTM
|
||||
R340 = 354; // Honduras HND
|
||||
R484 = 355; // Mexico MEX
|
||||
R558 = 356; // Nicaragua NIC
|
||||
R591 = 357; // Panama PAN
|
||||
R005 = 358; // South America
|
||||
R032 = 359; // Argentina ARG
|
||||
R068 = 360; // Bolivia (Plurinational State of) BOL LLDC
|
||||
R074 = 361; // Bouvet Island BVT
|
||||
R076 = 362; // Brazil BRA
|
||||
R152 = 363; // Chile CHL
|
||||
R170 = 364; // Colombia COL
|
||||
R218 = 365; // Ecuador ECU
|
||||
R238 = 366; // Falkland Islands (Malvinas) FLK
|
||||
R254 = 367; // French Guiana GUF
|
||||
R328 = 368; // Guyana GUY SIDS
|
||||
R600 = 369; // Paraguay PRY LLDC
|
||||
R604 = 370; // Peru PER
|
||||
R239 = 371; // South Georgia and the South Sandwich Islands SGS
|
||||
R740 = 372; // Suriname SUR SIDS
|
||||
R858 = 373; // Uruguay URY
|
||||
R862 = 374; // Venezuela (Bolivarian Republic of) VEN
|
||||
R021 = 375; // Northern America
|
||||
R060 = 376; // Bermuda BMU
|
||||
R124 = 377; // Canada CAN
|
||||
R304 = 378; // Greenland GRL
|
||||
R666 = 379; // Saint Pierre and Miquelon SPM
|
||||
R840 = 380; // United States of America USA
|
||||
R010 = 381; // Antarctica ATA
|
||||
R142 = 382; // Asia
|
||||
R143 = 383; // Central Asia
|
||||
R398 = 384; // Kazakhstan KAZ LLDC
|
||||
R417 = 385; // Kyrgyzstan KGZ LLDC
|
||||
R762 = 386; // Tajikistan TJK LLDC
|
||||
R795 = 387; // Turkmenistan TKM LLDC
|
||||
R860 = 388; // Uzbekistan UZB LLDC
|
||||
R030 = 389; // Eastern Asia
|
||||
R156 = 390; // China CHN
|
||||
R344 = 391; // China, Hong Kong Special Administrative Region HKG
|
||||
R446 = 392; // China, Macao Special Administrative Region MAC
|
||||
R408 = 393; // Democratic People's Republic of Korea PRK
|
||||
R392 = 394; // Japan JPN
|
||||
R496 = 395; // Mongolia MNG LLDC
|
||||
R410 = 396; // Republic of Korea KOR
|
||||
R035 = 397; // South-eastern Asia
|
||||
R096 = 398; // Brunei Darussalam BRN
|
||||
R116 = 399; // Cambodia KHM LDC
|
||||
R360 = 400; // Indonesia IDN
|
||||
R418 = 401; // Lao People's Democratic Republic LAO LDC LLDC
|
||||
R458 = 402; // Malaysia MYS
|
||||
R104 = 403; // Myanmar MMR LDC
|
||||
R608 = 404; // Philippines PHL
|
||||
R702 = 405; // Singapore SGP SIDS
|
||||
R764 = 406; // Thailand THA
|
||||
R626 = 407; // Timor-Leste TLS LDC SIDS
|
||||
R704 = 408; // Viet Nam VNM
|
||||
R034 = 409; // Southern Asia
|
||||
R004 = 410; // Afghanistan AFG LDC LLDC
|
||||
R050 = 411; // Bangladesh BGD LDC
|
||||
R064 = 412; // Bhutan BTN LDC LLDC
|
||||
R356 = 413; // India IND
|
||||
R364 = 414; // Iran (Islamic Republic of) IRN
|
||||
R462 = 415; // Maldives MDV SIDS
|
||||
R524 = 416; // Nepal NPL LDC LLDC
|
||||
R586 = 417; // Pakistan PAK
|
||||
R144 = 418; // Sri Lanka LKA
|
||||
R145 = 419; // Western Asia
|
||||
R051 = 420; // Armenia ARM LLDC
|
||||
R031 = 421; // Azerbaijan AZE LLDC
|
||||
R048 = 422; // Bahrain BHR
|
||||
R196 = 423; // Cyprus CYP
|
||||
R268 = 424; // Georgia GEO
|
||||
R368 = 425; // Iraq IRQ
|
||||
R376 = 426; // Israel ISR
|
||||
R400 = 427; // Jordan JOR
|
||||
R414 = 428; // Kuwait KWT
|
||||
R422 = 429; // Lebanon LBN
|
||||
R512 = 430; // Oman OMN
|
||||
R634 = 431; // Qatar QAT
|
||||
R682 = 432; // Saudi Arabia SAU
|
||||
R275 = 433; // State of Palestine PSE
|
||||
R760 = 434; // Syrian Arab Republic SYR
|
||||
R792 = 435; // Turkey TUR
|
||||
R784 = 436; // United Arab Emirates ARE
|
||||
R887 = 437; // Yemen YEM LDC
|
||||
R150 = 438; // Europe
|
||||
R151 = 439; // Eastern Europe
|
||||
R112 = 440; // Belarus BLR
|
||||
R100 = 441; // Bulgaria BGR
|
||||
R203 = 442; // Czechia CZE
|
||||
R348 = 443; // Hungary HUN
|
||||
R616 = 444; // Poland POL
|
||||
R498 = 445; // Republic of Moldova MDA LLDC
|
||||
R642 = 446; // Romania ROU
|
||||
R643 = 447; // Russian Federation RUS
|
||||
R703 = 448; // Slovakia SVK
|
||||
R804 = 449; // Ukraine UKR
|
||||
R154 = 450; // Northern Europe
|
||||
R248 = 451; // Åland Islands ALA
|
||||
R830 = 452; // Channel Islands
|
||||
R831 = 453; // Guernsey GGY
|
||||
R832 = 454; // Jersey JEY
|
||||
R680 = 455; // Sark
|
||||
R208 = 456; // Denmark DNK
|
||||
R233 = 457; // Estonia EST
|
||||
R234 = 458; // Faroe Islands FRO
|
||||
R246 = 459; // Finland FIN
|
||||
R352 = 460; // Iceland ISL
|
||||
R372 = 461; // Ireland IRL
|
||||
R833 = 462; // Isle of Man IMN
|
||||
R428 = 463; // Latvia LVA
|
||||
R440 = 464; // Lithuania LTU
|
||||
R578 = 465; // Norway NOR
|
||||
R744 = 466; // Svalbard and Jan Mayen Islands SJM
|
||||
R752 = 467; // Sweden SWE
|
||||
R826 = 468; // United Kingdom of Great Britain and Northern Ireland GBR
|
||||
R039 = 469; // Southern Europe
|
||||
R008 = 470; // Albania ALB
|
||||
R020 = 471; // Andorra AND
|
||||
R070 = 472; // Bosnia and Herzegovina BIH
|
||||
R191 = 473; // Croatia HRV
|
||||
R292 = 474; // Gibraltar GIB
|
||||
R300 = 475; // Greece GRC
|
||||
R336 = 476; // Holy See VAT
|
||||
R380 = 477; // Italy ITA
|
||||
R470 = 478; // Malta MLT
|
||||
R499 = 479; // Montenegro MNE
|
||||
R807 = 480; // North Macedonia MKD LLDC
|
||||
R620 = 481; // Portugal PRT
|
||||
R674 = 482; // San Marino SMR
|
||||
R688 = 483; // Serbia SRB
|
||||
R705 = 484; // Slovenia SVN
|
||||
R724 = 485; // Spain ESP
|
||||
R155 = 486; // Western Europe
|
||||
R040 = 487; // Austria AUT
|
||||
R056 = 488; // Belgium BEL
|
||||
R250 = 489; // France FRA
|
||||
R276 = 490; // Germany DEU
|
||||
R438 = 491; // Liechtenstein LIE
|
||||
R442 = 492; // Luxembourg LUX
|
||||
R492 = 493; // Monaco MCO
|
||||
R528 = 494; // Netherlands NLD
|
||||
R756 = 495; // Switzerland CHE
|
||||
R009 = 496; // Oceania
|
||||
R053 = 497; // Australia and New Zealand
|
||||
R036 = 498; // Australia AUS
|
||||
R162 = 499; // Christmas Island CXR
|
||||
R166 = 500; // Cocos (Keeling) Islands CCK
|
||||
R334 = 501; // Heard Island and McDonald Islands HMD
|
||||
R554 = 502; // New Zealand NZL
|
||||
R574 = 503; // Norfolk Island NFK
|
||||
R054 = 504; // Melanesia
|
||||
R242 = 505; // Fiji FJI SIDS
|
||||
R540 = 506; // New Caledonia NCL SIDS
|
||||
R598 = 507; // Papua New Guinea PNG SIDS
|
||||
R090 = 508; // Solomon Islands SLB LDC SIDS
|
||||
R548 = 509; // Vanuatu VUT LDC SIDS
|
||||
R057 = 510; // Micronesia
|
||||
R316 = 511; // Guam GUM SIDS
|
||||
R296 = 512; // Kiribati KIR LDC SIDS
|
||||
R584 = 513; // Marshall Islands MHL SIDS
|
||||
R583 = 514; // Micronesia (Federated States of) FSM SIDS
|
||||
R520 = 515; // Nauru NRU SIDS
|
||||
R580 = 516; // Northern Mariana Islands MNP SIDS
|
||||
R585 = 517; // Palau PLW SIDS
|
||||
R581 = 518; // United States Minor Outlying Islands UMI
|
||||
R061 = 519; // Polynesia
|
||||
R016 = 520; // American Samoa ASM SIDS
|
||||
R184 = 521; // Cook Islands COK SIDS
|
||||
R258 = 522; // French Polynesia PYF SIDS
|
||||
R570 = 523; // Niue NIU SIDS
|
||||
R612 = 524; // Pitcairn PCN
|
||||
R882 = 525; // Samoa WSM SIDS
|
||||
R772 = 526; // Tokelau TKL
|
||||
R776 = 527; // Tonga TON SIDS
|
||||
R798 = 528; // Tuvalu TUV LDC SIDS
|
||||
R876 = 529; // Wallis and Futuna Islands WLF
|
||||
}
|
||||
}
|
||||
|
|
7
v2/proto/purchase.proto
Normal file
7
v2/proto/purchase.proto
Normal file
|
@ -0,0 +1,7 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package pb;
|
||||
|
||||
message Purchase {
|
||||
bytes claim_hash = 1;
|
||||
}
|
60
v2/proto/result.proto
Normal file
60
v2/proto/result.proto
Normal file
|
@ -0,0 +1,60 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package pb;
|
||||
|
||||
message Outputs {
|
||||
repeated Output txos = 1;
|
||||
repeated Output extra_txos = 2;
|
||||
uint32 total = 3;
|
||||
uint32 offset = 4;
|
||||
repeated Blocked blocked = 5;
|
||||
uint32 blocked_total = 6;
|
||||
}
|
||||
|
||||
message Output {
|
||||
bytes tx_hash = 1;
|
||||
uint32 nout = 2;
|
||||
uint32 height = 3;
|
||||
oneof meta {
|
||||
ClaimMeta claim = 7;
|
||||
Error error = 15;
|
||||
}
|
||||
}
|
||||
|
||||
message ClaimMeta {
|
||||
Output channel = 1;
|
||||
Output repost = 2;
|
||||
string short_url = 3;
|
||||
string canonical_url = 4;
|
||||
bool is_controlling = 5;
|
||||
uint32 take_over_height = 6;
|
||||
uint32 creation_height = 7;
|
||||
uint32 activation_height = 8;
|
||||
uint32 expiration_height = 9;
|
||||
uint32 claims_in_channel = 10;
|
||||
uint32 reposted = 11;
|
||||
|
||||
uint64 effective_amount = 20;
|
||||
uint64 support_amount = 21;
|
||||
uint32 trending_group = 22;
|
||||
float trending_mixed = 23;
|
||||
float trending_local = 24;
|
||||
float trending_global = 25;
|
||||
}
|
||||
|
||||
message Error {
|
||||
enum Code {
|
||||
UNKNOWN_CODE = 0;
|
||||
NOT_FOUND = 1;
|
||||
INVALID = 2;
|
||||
BLOCKED = 3;
|
||||
}
|
||||
Code code = 1;
|
||||
string text = 2;
|
||||
Blocked blocked = 3;
|
||||
}
|
||||
|
||||
message Blocked {
|
||||
uint32 count = 1;
|
||||
Output channel = 2;
|
||||
}
|
20
v2/proto/support.proto
Normal file
20
v2/proto/support.proto
Normal file
|
@ -0,0 +1,20 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package pb;
|
||||
|
||||
message Support {
|
||||
string emoji = 1;
|
||||
string comment = 2;
|
||||
/*
|
||||
oneof type {
|
||||
Edit edit = 1;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
message Edit {
|
||||
string key = 1;
|
||||
string value = 2;
|
||||
}
|
||||
*/
|
File diff suppressed because one or more lines are too long
70
v2/python/purchase_pb2.py
Normal file
70
v2/python/purchase_pb2.py
Normal file
|
@ -0,0 +1,70 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: purchase.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='purchase.proto',
|
||||
package='pb',
|
||||
syntax='proto3',
|
||||
serialized_options=None,
|
||||
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'
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
_PURCHASE = _descriptor.Descriptor(
|
||||
name='Purchase',
|
||||
full_name='pb.Purchase',
|
||||
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"",
|
||||
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=22,
|
||||
serialized_end=52,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['Purchase'] = _PURCHASE
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
Purchase = _reflection.GeneratedProtocolMessageType('Purchase', (_message.Message,), {
|
||||
'DESCRIPTOR' : _PURCHASE,
|
||||
'__module__' : 'purchase_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Purchase)
|
||||
})
|
||||
_sym_db.RegisterMessage(Purchase)
|
||||
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
484
v2/python/result_pb2.py
Normal file
484
v2/python/result_pb2.py
Normal file
|
@ -0,0 +1,484 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: result.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='result.proto',
|
||||
package='pb',
|
||||
syntax='proto3',
|
||||
serialized_options=None,
|
||||
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'
|
||||
)
|
||||
|
||||
|
||||
|
||||
_ERROR_CODE = _descriptor.EnumDescriptor(
|
||||
name='Code',
|
||||
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,
|
||||
create_key=_descriptor._internal_create_key),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='NOT_FOUND', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None,
|
||||
create_key=_descriptor._internal_create_key),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='INVALID', index=2, number=2,
|
||||
serialized_options=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=817,
|
||||
serialized_end=882,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_ERROR_CODE)
|
||||
|
||||
|
||||
_OUTPUTS = _descriptor.Descriptor(
|
||||
name='Outputs',
|
||||
full_name='pb.Outputs',
|
||||
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,
|
||||
number=1, 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='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, 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, 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, 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=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=21,
|
||||
serialized_end=172,
|
||||
)
|
||||
|
||||
|
||||
_OUTPUT = _descriptor.Descriptor(
|
||||
name='Output',
|
||||
full_name='pb.Output',
|
||||
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"",
|
||||
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='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, 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, 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, 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, create_key=_descriptor._internal_create_key),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
_descriptor.OneofDescriptor(
|
||||
name='meta', full_name='pb.Output.meta',
|
||||
index=0, containing_type=None,
|
||||
create_key=_descriptor._internal_create_key,
|
||||
fields=[]),
|
||||
],
|
||||
serialized_start=174,
|
||||
serialized_end=297,
|
||||
)
|
||||
|
||||
|
||||
_CLAIMMETA = _descriptor.Descriptor(
|
||||
name='ClaimMeta',
|
||||
full_name='pb.ClaimMeta',
|
||||
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,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='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, 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'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='canonical_url', full_name='pb.ClaimMeta.canonical_url', index=3,
|
||||
number=4, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=b"".decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='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, 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, 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, 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, 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, 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, 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, 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, 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, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='trending_group', full_name='pb.ClaimMeta.trending_group', index=13,
|
||||
number=22, type=13, cpp_type=3, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='trending_mixed', full_name='pb.ClaimMeta.trending_mixed', index=14,
|
||||
number=23, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='trending_local', full_name='pb.ClaimMeta.trending_local', index=15,
|
||||
number=24, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='trending_global', full_name='pb.ClaimMeta.trending_global', index=16,
|
||||
number=25, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=300,
|
||||
serialized_end=731,
|
||||
)
|
||||
|
||||
|
||||
_ERROR = _descriptor.Descriptor(
|
||||
name='Error',
|
||||
full_name='pb.Error',
|
||||
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,
|
||||
number=1, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='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'),
|
||||
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', 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=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_ERROR_CODE,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto3',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
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(
|
||||
_OUTPUT.fields_by_name['claim'])
|
||||
_OUTPUT.fields_by_name['claim'].containing_oneof = _OUTPUT.oneofs_by_name['meta']
|
||||
_OUTPUT.oneofs_by_name['meta'].fields.append(
|
||||
_OUTPUT.fields_by_name['error'])
|
||||
_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,), {
|
||||
'DESCRIPTOR' : _OUTPUTS,
|
||||
'__module__' : 'result_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Outputs)
|
||||
})
|
||||
_sym_db.RegisterMessage(Outputs)
|
||||
|
||||
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,), {
|
||||
'DESCRIPTOR' : _CLAIMMETA,
|
||||
'__module__' : 'result_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.ClaimMeta)
|
||||
})
|
||||
_sym_db.RegisterMessage(ClaimMeta)
|
||||
|
||||
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