Merge branch 'minor_changes'
* minor_changes: rename proto to avoid namespace conflicts when importing v1+v2
This commit is contained in:
commit
076e2ccdae
50 changed files with 5279 additions and 4183 deletions
|
@ -6,119 +6,99 @@
|
|||
#include <algorithm>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
#include <google/protobuf/stubs/port.h>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/extension_set.h>
|
||||
#include <google/protobuf/wire_format_lite_inl.h>
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/reflection_ops.h>
|
||||
#include <google/protobuf/wire_format.h>
|
||||
// This is a temporary google only hack
|
||||
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
||||
#include "third_party/protobuf/version.h"
|
||||
#endif
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
class CertificateDefaultTypeInternal {
|
||||
public:
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Certificate>
|
||||
_instance;
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Certificate> _instance;
|
||||
} _Certificate_default_instance_;
|
||||
} // namespace pb
|
||||
namespace protobuf_certificate_2eproto {
|
||||
static void InitDefaultsCertificate() {
|
||||
} // namespace legacy_pb
|
||||
static void InitDefaultsCertificate_certificate_2eproto() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
{
|
||||
void* ptr = &::pb::_Certificate_default_instance_;
|
||||
new (ptr) ::pb::Certificate();
|
||||
void* ptr = &::legacy_pb::_Certificate_default_instance_;
|
||||
new (ptr) ::legacy_pb::Certificate();
|
||||
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
||||
}
|
||||
::pb::Certificate::InitAsDefaultInstance();
|
||||
::legacy_pb::Certificate::InitAsDefaultInstance();
|
||||
}
|
||||
|
||||
::google::protobuf::internal::SCCInfo<0> scc_info_Certificate =
|
||||
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCertificate}, {}};
|
||||
::google::protobuf::internal::SCCInfo<0> scc_info_Certificate_certificate_2eproto =
|
||||
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCertificate_certificate_2eproto}, {}};
|
||||
|
||||
void InitDefaults() {
|
||||
::google::protobuf::internal::InitSCC(&scc_info_Certificate.base);
|
||||
void InitDefaults_certificate_2eproto() {
|
||||
::google::protobuf::internal::InitSCC(&scc_info_Certificate_certificate_2eproto.base);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata file_level_metadata[1];
|
||||
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2];
|
||||
::google::protobuf::Metadata file_level_metadata_certificate_2eproto[1];
|
||||
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_certificate_2eproto[2];
|
||||
constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_certificate_2eproto = nullptr;
|
||||
|
||||
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Certificate, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Certificate, _internal_metadata_),
|
||||
const ::google::protobuf::uint32 TableStruct_certificate_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Certificate, _has_bits_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Certificate, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Certificate, version_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Certificate, keytype_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Certificate, publickey_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Certificate, version_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Certificate, keytype_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Certificate, publickey_),
|
||||
1,
|
||||
2,
|
||||
0,
|
||||
};
|
||||
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 8, sizeof(::pb::Certificate)},
|
||||
static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 8, sizeof(::legacy_pb::Certificate)},
|
||||
};
|
||||
|
||||
static ::google::protobuf::Message const * const file_default_instances[] = {
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Certificate_default_instance_),
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::legacy_pb::_Certificate_default_instance_),
|
||||
};
|
||||
|
||||
void protobuf_AssignDescriptors() {
|
||||
AddDescriptors();
|
||||
AssignDescriptors(
|
||||
"certificate.proto", schemas, file_default_instances, TableStruct::offsets,
|
||||
file_level_metadata, file_level_enum_descriptors, NULL);
|
||||
}
|
||||
::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_certificate_2eproto = {
|
||||
{}, AddDescriptors_certificate_2eproto, "certificate.proto", schemas,
|
||||
file_default_instances, TableStruct_certificate_2eproto::offsets,
|
||||
file_level_metadata_certificate_2eproto, 1, file_level_enum_descriptors_certificate_2eproto, file_level_service_descriptors_certificate_2eproto,
|
||||
};
|
||||
|
||||
void protobuf_AssignDescriptorsOnce() {
|
||||
static ::google::protobuf::internal::once_flag once;
|
||||
::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
|
||||
}
|
||||
const char descriptor_table_protodef_certificate_2eproto[] =
|
||||
"\n\021certificate.proto\022\tlegacy_pb\"\242\001\n\013Certi"
|
||||
"ficate\022/\n\007version\030\001 \002(\0162\036.legacy_pb.Cert"
|
||||
"ificate.Version\022#\n\007keyType\030\002 \002(\0162\022.legac"
|
||||
"y_pb.KeyType\022\021\n\tpublicKey\030\004 \002(\014\"*\n\007Versi"
|
||||
"on\022\023\n\017UNKNOWN_VERSION\020\000\022\n\n\006_0_0_1\020\001*Q\n\007K"
|
||||
"eyType\022\033\n\027UNKNOWN_PUBLIC_KEY_TYPE\020\000\022\014\n\010N"
|
||||
"IST256p\020\001\022\014\n\010NIST384p\020\002\022\r\n\tSECP256k1\020\003"
|
||||
;
|
||||
::google::protobuf::internal::DescriptorTable descriptor_table_certificate_2eproto = {
|
||||
false, InitDefaults_certificate_2eproto,
|
||||
descriptor_table_protodef_certificate_2eproto,
|
||||
"certificate.proto", &assign_descriptors_table_certificate_2eproto, 278,
|
||||
};
|
||||
|
||||
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
||||
void protobuf_RegisterTypes(const ::std::string&) {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
|
||||
}
|
||||
|
||||
void AddDescriptorsImpl() {
|
||||
InitDefaults();
|
||||
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
"\n\021certificate.proto\022\002pb\"\224\001\n\013Certificate\022"
|
||||
"(\n\007version\030\001 \002(\0162\027.pb.Certificate.Versio"
|
||||
"n\022\034\n\007keyType\030\002 \002(\0162\013.pb.KeyType\022\021\n\tpubli"
|
||||
"cKey\030\004 \002(\014\"*\n\007Version\022\023\n\017UNKNOWN_VERSION"
|
||||
"\020\000\022\n\n\006_0_0_1\020\001*Q\n\007KeyType\022\033\n\027UNKNOWN_PUB"
|
||||
"LIC_KEY_TYPE\020\000\022\014\n\010NIST256p\020\001\022\014\n\010NIST384p"
|
||||
"\020\002\022\r\n\tSECP256k1\020\003"
|
||||
void AddDescriptors_certificate_2eproto() {
|
||||
static constexpr ::google::protobuf::internal::InitFunc deps[1] =
|
||||
{
|
||||
};
|
||||
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
||||
descriptor, 257);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"certificate.proto", &protobuf_RegisterTypes);
|
||||
::google::protobuf::internal::AddDescriptors(&descriptor_table_certificate_2eproto, deps, 0);
|
||||
}
|
||||
|
||||
void AddDescriptors() {
|
||||
static ::google::protobuf::internal::once_flag once;
|
||||
::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
|
||||
}
|
||||
// Force AddDescriptors() to be called at dynamic initialization time.
|
||||
struct StaticDescriptorInitializer {
|
||||
StaticDescriptorInitializer() {
|
||||
AddDescriptors();
|
||||
}
|
||||
} static_descriptor_initializer;
|
||||
} // namespace protobuf_certificate_2eproto
|
||||
namespace pb {
|
||||
// Force running AddDescriptors() at dynamic initialization time.
|
||||
static bool dynamic_init_dummy_certificate_2eproto = []() { AddDescriptors_certificate_2eproto(); return true; }();
|
||||
namespace legacy_pb {
|
||||
const ::google::protobuf::EnumDescriptor* Certificate_Version_descriptor() {
|
||||
protobuf_certificate_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_certificate_2eproto::file_level_enum_descriptors[0];
|
||||
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_certificate_2eproto);
|
||||
return file_level_enum_descriptors_certificate_2eproto[0];
|
||||
}
|
||||
bool Certificate_Version_IsValid(int value) {
|
||||
switch (value) {
|
||||
|
@ -138,8 +118,8 @@ const Certificate_Version Certificate::Version_MAX;
|
|||
const int Certificate::Version_ARRAYSIZE;
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const ::google::protobuf::EnumDescriptor* KeyType_descriptor() {
|
||||
protobuf_certificate_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_certificate_2eproto::file_level_enum_descriptors[1];
|
||||
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_certificate_2eproto);
|
||||
return file_level_enum_descriptors_certificate_2eproto[1];
|
||||
}
|
||||
bool KeyType_IsValid(int value) {
|
||||
switch (value) {
|
||||
|
@ -158,6 +138,19 @@ bool KeyType_IsValid(int value) {
|
|||
|
||||
void Certificate::InitAsDefaultInstance() {
|
||||
}
|
||||
class Certificate::HasBitSetters {
|
||||
public:
|
||||
static void set_has_version(Certificate* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000002u;
|
||||
}
|
||||
static void set_has_keytype(Certificate* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000004u;
|
||||
}
|
||||
static void set_has_publickey(Certificate* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000001u;
|
||||
}
|
||||
};
|
||||
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const int Certificate::kVersionFieldNumber;
|
||||
const int Certificate::kKeyTypeFieldNumber;
|
||||
|
@ -165,15 +158,13 @@ const int Certificate::kPublicKeyFieldNumber;
|
|||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
||||
Certificate::Certificate()
|
||||
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
||||
::google::protobuf::internal::InitSCC(
|
||||
&protobuf_certificate_2eproto::scc_info_Certificate.base);
|
||||
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:pb.Certificate)
|
||||
// @@protoc_insertion_point(constructor:legacy_pb.Certificate)
|
||||
}
|
||||
Certificate::Certificate(const Certificate& from)
|
||||
: ::google::protobuf::Message(),
|
||||
_internal_metadata_(NULL),
|
||||
_internal_metadata_(nullptr),
|
||||
_has_bits_(from._has_bits_) {
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
publickey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
|
@ -183,10 +174,12 @@ Certificate::Certificate(const Certificate& from)
|
|||
::memcpy(&version_, &from.version_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&keytype_) -
|
||||
reinterpret_cast<char*>(&version_)) + sizeof(keytype_));
|
||||
// @@protoc_insertion_point(copy_constructor:pb.Certificate)
|
||||
// @@protoc_insertion_point(copy_constructor:legacy_pb.Certificate)
|
||||
}
|
||||
|
||||
void Certificate::SharedCtor() {
|
||||
::google::protobuf::internal::InitSCC(
|
||||
&scc_info_Certificate_certificate_2eproto.base);
|
||||
publickey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
::memset(&version_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&keytype_) -
|
||||
|
@ -194,7 +187,7 @@ void Certificate::SharedCtor() {
|
|||
}
|
||||
|
||||
Certificate::~Certificate() {
|
||||
// @@protoc_insertion_point(destructor:pb.Certificate)
|
||||
// @@protoc_insertion_point(destructor:legacy_pb.Certificate)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
|
@ -205,19 +198,14 @@ void Certificate::SharedDtor() {
|
|||
void Certificate::SetCachedSize(int size) const {
|
||||
_cached_size_.Set(size);
|
||||
}
|
||||
const ::google::protobuf::Descriptor* Certificate::descriptor() {
|
||||
::protobuf_certificate_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return ::protobuf_certificate_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
||||
}
|
||||
|
||||
const Certificate& Certificate::default_instance() {
|
||||
::google::protobuf::internal::InitSCC(&protobuf_certificate_2eproto::scc_info_Certificate.base);
|
||||
::google::protobuf::internal::InitSCC(&::scc_info_Certificate_certificate_2eproto.base);
|
||||
return *internal_default_instance();
|
||||
}
|
||||
|
||||
|
||||
void Certificate::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:pb.Certificate)
|
||||
// @@protoc_insertion_point(message_clear_start:legacy_pb.Certificate)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
@ -226,7 +214,7 @@ void Certificate::Clear() {
|
|||
if (cached_has_bits & 0x00000001u) {
|
||||
publickey_.ClearNonDefaultToEmptyNoArena();
|
||||
}
|
||||
if (cached_has_bits & 6u) {
|
||||
if (cached_has_bits & 0x00000006u) {
|
||||
::memset(&version_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&keytype_) -
|
||||
reinterpret_cast<char*>(&version_)) + sizeof(keytype_));
|
||||
|
@ -235,29 +223,104 @@ void Certificate::Clear() {
|
|||
_internal_metadata_.Clear();
|
||||
}
|
||||
|
||||
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
const char* Certificate::_InternalParse(const char* begin, const char* end, void* object,
|
||||
::google::protobuf::internal::ParseContext* ctx) {
|
||||
auto msg = static_cast<Certificate*>(object);
|
||||
::google::protobuf::int32 size; (void)size;
|
||||
int depth; (void)depth;
|
||||
::google::protobuf::uint32 tag;
|
||||
::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
|
||||
auto ptr = begin;
|
||||
while (ptr < end) {
|
||||
ptr = ::google::protobuf::io::Parse32(ptr, &tag);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
switch (tag >> 3) {
|
||||
// required .legacy_pb.Certificate.Version version = 1;
|
||||
case 1: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
|
||||
::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
|
||||
if (!::legacy_pb::Certificate_Version_IsValid(val)) {
|
||||
::google::protobuf::internal::WriteVarint(1, val, msg->mutable_unknown_fields());
|
||||
break;
|
||||
}
|
||||
msg->set_version(static_cast<::legacy_pb::Certificate_Version>(val));
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
break;
|
||||
}
|
||||
// required .legacy_pb.KeyType keyType = 2;
|
||||
case 2: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
|
||||
::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
|
||||
if (!::legacy_pb::KeyType_IsValid(val)) {
|
||||
::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields());
|
||||
break;
|
||||
}
|
||||
msg->set_keytype(static_cast<::legacy_pb::KeyType>(val));
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
break;
|
||||
}
|
||||
// required bytes publicKey = 4;
|
||||
case 4: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
|
||||
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
object = msg->mutable_publickey();
|
||||
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
|
||||
parser_till_end = ::google::protobuf::internal::GreedyStringParser;
|
||||
goto string_till_end;
|
||||
}
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx));
|
||||
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
|
||||
ptr += size;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
handle_unusual:
|
||||
if ((tag & 7) == 4 || tag == 0) {
|
||||
ctx->EndGroup(tag);
|
||||
return ptr;
|
||||
}
|
||||
auto res = UnknownFieldParse(tag, {_InternalParse, msg},
|
||||
ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
|
||||
ptr = res.first;
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
|
||||
if (res.second) return ptr;
|
||||
}
|
||||
} // switch
|
||||
} // while
|
||||
return ptr;
|
||||
string_till_end:
|
||||
static_cast<::std::string*>(object)->clear();
|
||||
static_cast<::std::string*>(object)->reserve(size);
|
||||
goto len_delim_till_end;
|
||||
len_delim_till_end:
|
||||
return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
|
||||
{parser_till_end, object}, size);
|
||||
}
|
||||
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
bool Certificate::MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) {
|
||||
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
::google::protobuf::uint32 tag;
|
||||
// @@protoc_insertion_point(parse_start:pb.Certificate)
|
||||
// @@protoc_insertion_point(parse_start:legacy_pb.Certificate)
|
||||
for (;;) {
|
||||
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
||||
tag = p.first;
|
||||
if (!p.second) goto handle_unusual;
|
||||
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
||||
// required .pb.Certificate.Version version = 1;
|
||||
// required .legacy_pb.Certificate.Version version = 1;
|
||||
case 1: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
||||
int value;
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
|
||||
int value = 0;
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
||||
input, &value)));
|
||||
if (::pb::Certificate_Version_IsValid(value)) {
|
||||
set_version(static_cast< ::pb::Certificate_Version >(value));
|
||||
if (::legacy_pb::Certificate_Version_IsValid(value)) {
|
||||
set_version(static_cast< ::legacy_pb::Certificate_Version >(value));
|
||||
} else {
|
||||
mutable_unknown_fields()->AddVarint(
|
||||
1, static_cast< ::google::protobuf::uint64>(value));
|
||||
1, static_cast<::google::protobuf::uint64>(value));
|
||||
}
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
|
@ -265,19 +328,18 @@ bool Certificate::MergePartialFromCodedStream(
|
|||
break;
|
||||
}
|
||||
|
||||
// required .pb.KeyType keyType = 2;
|
||||
// required .legacy_pb.KeyType keyType = 2;
|
||||
case 2: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
||||
int value;
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
|
||||
int value = 0;
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
||||
input, &value)));
|
||||
if (::pb::KeyType_IsValid(value)) {
|
||||
set_keytype(static_cast< ::pb::KeyType >(value));
|
||||
if (::legacy_pb::KeyType_IsValid(value)) {
|
||||
set_keytype(static_cast< ::legacy_pb::KeyType >(value));
|
||||
} else {
|
||||
mutable_unknown_fields()->AddVarint(
|
||||
2, static_cast< ::google::protobuf::uint64>(value));
|
||||
2, static_cast<::google::protobuf::uint64>(value));
|
||||
}
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
|
@ -287,8 +349,7 @@ bool Certificate::MergePartialFromCodedStream(
|
|||
|
||||
// required bytes publicKey = 4;
|
||||
case 4: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
||||
input, this->mutable_publickey()));
|
||||
} else {
|
||||
|
@ -309,28 +370,29 @@ bool Certificate::MergePartialFromCodedStream(
|
|||
}
|
||||
}
|
||||
success:
|
||||
// @@protoc_insertion_point(parse_success:pb.Certificate)
|
||||
// @@protoc_insertion_point(parse_success:legacy_pb.Certificate)
|
||||
return true;
|
||||
failure:
|
||||
// @@protoc_insertion_point(parse_failure:pb.Certificate)
|
||||
// @@protoc_insertion_point(parse_failure:legacy_pb.Certificate)
|
||||
return false;
|
||||
#undef DO_
|
||||
}
|
||||
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
|
||||
void Certificate::SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const {
|
||||
// @@protoc_insertion_point(serialize_start:pb.Certificate)
|
||||
// @@protoc_insertion_point(serialize_start:legacy_pb.Certificate)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .pb.Certificate.Version version = 1;
|
||||
// required .legacy_pb.Certificate.Version version = 1;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
1, this->version(), output);
|
||||
}
|
||||
|
||||
// required .pb.KeyType keyType = 2;
|
||||
// required .legacy_pb.KeyType keyType = 2;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
2, this->keytype(), output);
|
||||
|
@ -346,24 +408,23 @@ void Certificate::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
||||
_internal_metadata_.unknown_fields(), output);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_end:pb.Certificate)
|
||||
// @@protoc_insertion_point(serialize_end:legacy_pb.Certificate)
|
||||
}
|
||||
|
||||
::google::protobuf::uint8* Certificate::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:pb.Certificate)
|
||||
::google::protobuf::uint8* target) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:legacy_pb.Certificate)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .pb.Certificate.Version version = 1;
|
||||
// required .legacy_pb.Certificate.Version version = 1;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
||||
1, this->version(), target);
|
||||
}
|
||||
|
||||
// required .pb.KeyType keyType = 2;
|
||||
// required .legacy_pb.KeyType keyType = 2;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
||||
2, this->keytype(), target);
|
||||
|
@ -380,12 +441,12 @@ void Certificate::SerializeWithCachedSizes(
|
|||
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields(), target);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:pb.Certificate)
|
||||
// @@protoc_insertion_point(serialize_to_array_end:legacy_pb.Certificate)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t Certificate::RequiredFieldsByteSizeFallback() const {
|
||||
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:pb.Certificate)
|
||||
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:legacy_pb.Certificate)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (has_publickey()) {
|
||||
|
@ -396,13 +457,13 @@ size_t Certificate::RequiredFieldsByteSizeFallback() const {
|
|||
}
|
||||
|
||||
if (has_version()) {
|
||||
// required .pb.Certificate.Version version = 1;
|
||||
// required .legacy_pb.Certificate.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
}
|
||||
|
||||
if (has_keytype()) {
|
||||
// required .pb.KeyType keyType = 2;
|
||||
// required .legacy_pb.KeyType keyType = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->keytype());
|
||||
}
|
||||
|
@ -410,7 +471,7 @@ size_t Certificate::RequiredFieldsByteSizeFallback() const {
|
|||
return total_size;
|
||||
}
|
||||
size_t Certificate::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:pb.Certificate)
|
||||
// @@protoc_insertion_point(message_byte_size_start:legacy_pb.Certificate)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
|
@ -424,48 +485,52 @@ size_t Certificate::ByteSizeLong() const {
|
|||
::google::protobuf::internal::WireFormatLite::BytesSize(
|
||||
this->publickey());
|
||||
|
||||
// required .pb.Certificate.Version version = 1;
|
||||
// required .legacy_pb.Certificate.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
|
||||
// required .pb.KeyType keyType = 2;
|
||||
// required .legacy_pb.KeyType keyType = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->keytype());
|
||||
|
||||
} else {
|
||||
total_size += RequiredFieldsByteSizeFallback();
|
||||
}
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
||||
SetCachedSize(cached_size);
|
||||
return total_size;
|
||||
}
|
||||
|
||||
void Certificate::MergeFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:pb.Certificate)
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:legacy_pb.Certificate)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
const Certificate* source =
|
||||
::google::protobuf::internal::DynamicCastToGenerated<const Certificate>(
|
||||
::google::protobuf::DynamicCastToGenerated<Certificate>(
|
||||
&from);
|
||||
if (source == NULL) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Certificate)
|
||||
if (source == nullptr) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:legacy_pb.Certificate)
|
||||
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
||||
} else {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Certificate)
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:legacy_pb.Certificate)
|
||||
MergeFrom(*source);
|
||||
}
|
||||
}
|
||||
|
||||
void Certificate::MergeFrom(const Certificate& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Certificate)
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:legacy_pb.Certificate)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = from._has_bits_[0];
|
||||
if (cached_has_bits & 7u) {
|
||||
if (cached_has_bits & 0x00000007u) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
set_has_publickey();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
publickey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.publickey_);
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
|
@ -479,14 +544,14 @@ void Certificate::MergeFrom(const Certificate& from) {
|
|||
}
|
||||
|
||||
void Certificate::CopyFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:pb.Certificate)
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:legacy_pb.Certificate)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
void Certificate::CopyFrom(const Certificate& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Certificate)
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:legacy_pb.Certificate)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
|
@ -503,28 +568,29 @@ void Certificate::Swap(Certificate* other) {
|
|||
}
|
||||
void Certificate::InternalSwap(Certificate* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
swap(_has_bits_[0], other->_has_bits_[0]);
|
||||
publickey_.Swap(&other->publickey_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
GetArenaNoVirtual());
|
||||
swap(version_, other->version_);
|
||||
swap(keytype_, other->keytype_);
|
||||
swap(_has_bits_[0], other->_has_bits_[0]);
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata Certificate::GetMetadata() const {
|
||||
protobuf_certificate_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return ::protobuf_certificate_2eproto::file_level_metadata[kIndexInFileMessages];
|
||||
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_certificate_2eproto);
|
||||
return ::file_level_metadata_certificate_2eproto[kIndexInFileMessages];
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pb::Certificate* Arena::CreateMaybeMessage< ::pb::Certificate >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::pb::Certificate >(arena);
|
||||
template<> PROTOBUF_NOINLINE ::legacy_pb::Certificate* Arena::CreateMaybeMessage< ::legacy_pb::Certificate >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::legacy_pb::Certificate >(arena);
|
||||
}
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
|
|
|
@ -4,21 +4,22 @@
|
|||
#ifndef PROTOBUF_INCLUDED_certificate_2eproto
|
||||
#define PROTOBUF_INCLUDED_certificate_2eproto
|
||||
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006000
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#if PROTOBUF_VERSION < 3007000
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3007000 < 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 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>
|
||||
|
@ -32,31 +33,33 @@
|
|||
#include <google/protobuf/generated_enum_reflection.h>
|
||||
#include <google/protobuf/unknown_field_set.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
#define PROTOBUF_INTERNAL_EXPORT_protobuf_certificate_2eproto
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_certificate_2eproto
|
||||
|
||||
namespace protobuf_certificate_2eproto {
|
||||
// Internal implementation detail -- do not use these members.
|
||||
struct TableStruct {
|
||||
static const ::google::protobuf::internal::ParseTableField entries[];
|
||||
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
|
||||
static const ::google::protobuf::internal::ParseTable schema[1];
|
||||
struct TableStruct_certificate_2eproto {
|
||||
static const ::google::protobuf::internal::ParseTableField entries[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::ParseTable schema[1]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
|
||||
static const ::google::protobuf::internal::SerializationTable serialization_table[];
|
||||
static const ::google::protobuf::uint32 offsets[];
|
||||
};
|
||||
void AddDescriptors();
|
||||
} // namespace protobuf_certificate_2eproto
|
||||
namespace pb {
|
||||
void AddDescriptors_certificate_2eproto();
|
||||
namespace legacy_pb {
|
||||
class Certificate;
|
||||
class CertificateDefaultTypeInternal;
|
||||
extern CertificateDefaultTypeInternal _Certificate_default_instance_;
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> ::pb::Certificate* Arena::CreateMaybeMessage<::pb::Certificate>(Arena*);
|
||||
template<> ::legacy_pb::Certificate* Arena::CreateMaybeMessage<::legacy_pb::Certificate>(Arena*);
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
|
||||
enum Certificate_Version {
|
||||
Certificate_Version_UNKNOWN_VERSION = 0,
|
||||
|
@ -100,7 +103,8 @@ inline bool KeyType_Parse(
|
|||
}
|
||||
// ===================================================================
|
||||
|
||||
class Certificate : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Certificate) */ {
|
||||
class Certificate final :
|
||||
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Certificate) */ {
|
||||
public:
|
||||
Certificate();
|
||||
virtual ~Certificate();
|
||||
|
@ -133,7 +137,9 @@ class Certificate : public ::google::protobuf::Message /* @@protoc_insertion_poi
|
|||
return _internal_metadata_.mutable_unknown_fields();
|
||||
}
|
||||
|
||||
static const ::google::protobuf::Descriptor* descriptor();
|
||||
static const ::google::protobuf::Descriptor* descriptor() {
|
||||
return default_instance().GetDescriptor();
|
||||
}
|
||||
static const Certificate& default_instance();
|
||||
|
||||
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
||||
|
@ -152,7 +158,7 @@ class Certificate : public ::google::protobuf::Message /* @@protoc_insertion_poi
|
|||
// implements Message ----------------------------------------------
|
||||
|
||||
inline Certificate* New() const final {
|
||||
return CreateMaybeMessage<Certificate>(NULL);
|
||||
return CreateMaybeMessage<Certificate>(nullptr);
|
||||
}
|
||||
|
||||
Certificate* New(::google::protobuf::Arena* arena) const final {
|
||||
|
@ -162,16 +168,21 @@ class Certificate : public ::google::protobuf::Message /* @@protoc_insertion_poi
|
|||
void MergeFrom(const ::google::protobuf::Message& from) final;
|
||||
void CopyFrom(const Certificate& from);
|
||||
void MergeFrom(const Certificate& from);
|
||||
void Clear() final;
|
||||
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
||||
bool IsInitialized() const final;
|
||||
|
||||
size_t ByteSizeLong() const final;
|
||||
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
|
||||
::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
|
||||
#else
|
||||
bool MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) final;
|
||||
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
void SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const final;
|
||||
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const final;
|
||||
::google::protobuf::uint8* target) const final;
|
||||
int GetCachedSize() const final { return _cached_size_.Get(); }
|
||||
|
||||
private:
|
||||
|
@ -181,10 +192,10 @@ class Certificate : public ::google::protobuf::Message /* @@protoc_insertion_poi
|
|||
void InternalSwap(Certificate* other);
|
||||
private:
|
||||
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
inline void* MaybeArenaPtr() const {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
public:
|
||||
|
||||
|
@ -235,28 +246,23 @@ class Certificate : public ::google::protobuf::Message /* @@protoc_insertion_poi
|
|||
::std::string* release_publickey();
|
||||
void set_allocated_publickey(::std::string* publickey);
|
||||
|
||||
// required .pb.Certificate.Version version = 1;
|
||||
// required .legacy_pb.Certificate.Version version = 1;
|
||||
bool has_version() const;
|
||||
void clear_version();
|
||||
static const int kVersionFieldNumber = 1;
|
||||
::pb::Certificate_Version version() const;
|
||||
void set_version(::pb::Certificate_Version value);
|
||||
::legacy_pb::Certificate_Version version() const;
|
||||
void set_version(::legacy_pb::Certificate_Version value);
|
||||
|
||||
// required .pb.KeyType keyType = 2;
|
||||
// required .legacy_pb.KeyType keyType = 2;
|
||||
bool has_keytype() const;
|
||||
void clear_keytype();
|
||||
static const int kKeyTypeFieldNumber = 2;
|
||||
::pb::KeyType keytype() const;
|
||||
void set_keytype(::pb::KeyType value);
|
||||
::legacy_pb::KeyType keytype() const;
|
||||
void set_keytype(::legacy_pb::KeyType value);
|
||||
|
||||
// @@protoc_insertion_point(class_scope:pb.Certificate)
|
||||
// @@protoc_insertion_point(class_scope:legacy_pb.Certificate)
|
||||
private:
|
||||
void set_has_version();
|
||||
void clear_has_version();
|
||||
void set_has_keytype();
|
||||
void clear_has_keytype();
|
||||
void set_has_publickey();
|
||||
void clear_has_publickey();
|
||||
class HasBitSetters;
|
||||
|
||||
// helper for ByteSizeLong()
|
||||
size_t RequiredFieldsByteSizeFallback() const;
|
||||
|
@ -267,7 +273,7 @@ class Certificate : public ::google::protobuf::Message /* @@protoc_insertion_poi
|
|||
::google::protobuf::internal::ArenaStringPtr publickey_;
|
||||
int version_;
|
||||
int keytype_;
|
||||
friend struct ::protobuf_certificate_2eproto::TableStruct;
|
||||
friend struct ::TableStruct_certificate_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
@ -280,120 +286,102 @@ class Certificate : public ::google::protobuf::Message /* @@protoc_insertion_poi
|
|||
#endif // __GNUC__
|
||||
// Certificate
|
||||
|
||||
// required .pb.Certificate.Version version = 1;
|
||||
// required .legacy_pb.Certificate.Version version = 1;
|
||||
inline bool Certificate::has_version() const {
|
||||
return (_has_bits_[0] & 0x00000002u) != 0;
|
||||
}
|
||||
inline void Certificate::set_has_version() {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
}
|
||||
inline void Certificate::clear_has_version() {
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline void Certificate::clear_version() {
|
||||
version_ = 0;
|
||||
clear_has_version();
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline ::pb::Certificate_Version Certificate::version() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Certificate.version)
|
||||
return static_cast< ::pb::Certificate_Version >(version_);
|
||||
inline ::legacy_pb::Certificate_Version Certificate::version() const {
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Certificate.version)
|
||||
return static_cast< ::legacy_pb::Certificate_Version >(version_);
|
||||
}
|
||||
inline void Certificate::set_version(::pb::Certificate_Version value) {
|
||||
assert(::pb::Certificate_Version_IsValid(value));
|
||||
set_has_version();
|
||||
inline void Certificate::set_version(::legacy_pb::Certificate_Version value) {
|
||||
assert(::legacy_pb::Certificate_Version_IsValid(value));
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
version_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Certificate.version)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Certificate.version)
|
||||
}
|
||||
|
||||
// required .pb.KeyType keyType = 2;
|
||||
// required .legacy_pb.KeyType keyType = 2;
|
||||
inline bool Certificate::has_keytype() const {
|
||||
return (_has_bits_[0] & 0x00000004u) != 0;
|
||||
}
|
||||
inline void Certificate::set_has_keytype() {
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
}
|
||||
inline void Certificate::clear_has_keytype() {
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline void Certificate::clear_keytype() {
|
||||
keytype_ = 0;
|
||||
clear_has_keytype();
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline ::pb::KeyType Certificate::keytype() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Certificate.keyType)
|
||||
return static_cast< ::pb::KeyType >(keytype_);
|
||||
inline ::legacy_pb::KeyType Certificate::keytype() const {
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Certificate.keyType)
|
||||
return static_cast< ::legacy_pb::KeyType >(keytype_);
|
||||
}
|
||||
inline void Certificate::set_keytype(::pb::KeyType value) {
|
||||
assert(::pb::KeyType_IsValid(value));
|
||||
set_has_keytype();
|
||||
inline void Certificate::set_keytype(::legacy_pb::KeyType value) {
|
||||
assert(::legacy_pb::KeyType_IsValid(value));
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
keytype_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Certificate.keyType)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Certificate.keyType)
|
||||
}
|
||||
|
||||
// required bytes publicKey = 4;
|
||||
inline bool Certificate::has_publickey() const {
|
||||
return (_has_bits_[0] & 0x00000001u) != 0;
|
||||
}
|
||||
inline void Certificate::set_has_publickey() {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
}
|
||||
inline void Certificate::clear_has_publickey() {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline void Certificate::clear_publickey() {
|
||||
publickey_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
clear_has_publickey();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline const ::std::string& Certificate::publickey() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Certificate.publicKey)
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Certificate.publicKey)
|
||||
return publickey_.GetNoArena();
|
||||
}
|
||||
inline void Certificate::set_publickey(const ::std::string& value) {
|
||||
set_has_publickey();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
publickey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
||||
// @@protoc_insertion_point(field_set:pb.Certificate.publicKey)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Certificate.publicKey)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Certificate::set_publickey(::std::string&& value) {
|
||||
set_has_publickey();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
publickey_.SetNoArena(
|
||||
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
||||
// @@protoc_insertion_point(field_set_rvalue:pb.Certificate.publicKey)
|
||||
// @@protoc_insertion_point(field_set_rvalue:legacy_pb.Certificate.publicKey)
|
||||
}
|
||||
#endif
|
||||
inline void Certificate::set_publickey(const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
set_has_publickey();
|
||||
GOOGLE_DCHECK(value != nullptr);
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
publickey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
||||
// @@protoc_insertion_point(field_set_char:pb.Certificate.publicKey)
|
||||
// @@protoc_insertion_point(field_set_char:legacy_pb.Certificate.publicKey)
|
||||
}
|
||||
inline void Certificate::set_publickey(const void* value, size_t size) {
|
||||
set_has_publickey();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
publickey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
::std::string(reinterpret_cast<const char*>(value), size));
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Certificate.publicKey)
|
||||
// @@protoc_insertion_point(field_set_pointer:legacy_pb.Certificate.publicKey)
|
||||
}
|
||||
inline ::std::string* Certificate::mutable_publickey() {
|
||||
set_has_publickey();
|
||||
// @@protoc_insertion_point(field_mutable:pb.Certificate.publicKey)
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Certificate.publicKey)
|
||||
return publickey_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline ::std::string* Certificate::release_publickey() {
|
||||
// @@protoc_insertion_point(field_release:pb.Certificate.publicKey)
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Certificate.publicKey)
|
||||
if (!has_publickey()) {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
clear_has_publickey();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
return publickey_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline void Certificate::set_allocated_publickey(::std::string* publickey) {
|
||||
if (publickey != NULL) {
|
||||
set_has_publickey();
|
||||
if (publickey != nullptr) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
clear_has_publickey();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
publickey_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), publickey);
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Certificate.publicKey)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Certificate.publicKey)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
@ -402,20 +390,20 @@ inline void Certificate::set_allocated_publickey(::std::string* publickey) {
|
|||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
|
||||
template <> struct is_proto_enum< ::pb::Certificate_Version> : ::std::true_type {};
|
||||
template <> struct is_proto_enum< ::legacy_pb::Certificate_Version> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::pb::Certificate_Version>() {
|
||||
return ::pb::Certificate_Version_descriptor();
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::Certificate_Version>() {
|
||||
return ::legacy_pb::Certificate_Version_descriptor();
|
||||
}
|
||||
template <> struct is_proto_enum< ::pb::KeyType> : ::std::true_type {};
|
||||
template <> struct is_proto_enum< ::legacy_pb::KeyType> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::pb::KeyType>() {
|
||||
return ::pb::KeyType_descriptor();
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::KeyType>() {
|
||||
return ::legacy_pb::KeyType_descriptor();
|
||||
}
|
||||
|
||||
} // namespace protobuf
|
||||
|
@ -423,4 +411,5 @@ inline const EnumDescriptor* GetEnumDescriptor< ::pb::KeyType>() {
|
|||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#endif // PROTOBUF_INCLUDED_certificate_2eproto
|
||||
|
|
|
@ -1,678 +0,0 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: claim.proto
|
||||
|
||||
#include "claim.pb.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
#include <google/protobuf/stubs/port.h>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/wire_format_lite_inl.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>
|
||||
// This is a temporary google only hack
|
||||
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
||||
#include "third_party/protobuf/version.h"
|
||||
#endif
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace protobuf_certificate_2eproto {
|
||||
extern PROTOBUF_INTERNAL_EXPORT_protobuf_certificate_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Certificate;
|
||||
} // namespace protobuf_certificate_2eproto
|
||||
namespace protobuf_signature_2eproto {
|
||||
extern PROTOBUF_INTERNAL_EXPORT_protobuf_signature_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Signature;
|
||||
} // namespace protobuf_signature_2eproto
|
||||
namespace protobuf_stream_2eproto {
|
||||
extern PROTOBUF_INTERNAL_EXPORT_protobuf_stream_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Stream;
|
||||
} // namespace protobuf_stream_2eproto
|
||||
namespace pb {
|
||||
class ClaimDefaultTypeInternal {
|
||||
public:
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Claim>
|
||||
_instance;
|
||||
} _Claim_default_instance_;
|
||||
} // namespace pb
|
||||
namespace protobuf_claim_2eproto {
|
||||
static void InitDefaultsClaim() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
{
|
||||
void* ptr = &::pb::_Claim_default_instance_;
|
||||
new (ptr) ::pb::Claim();
|
||||
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
||||
}
|
||||
::pb::Claim::InitAsDefaultInstance();
|
||||
}
|
||||
|
||||
::google::protobuf::internal::SCCInfo<3> scc_info_Claim =
|
||||
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsClaim}, {
|
||||
&protobuf_stream_2eproto::scc_info_Stream.base,
|
||||
&protobuf_certificate_2eproto::scc_info_Certificate.base,
|
||||
&protobuf_signature_2eproto::scc_info_Signature.base,}};
|
||||
|
||||
void InitDefaults() {
|
||||
::google::protobuf::internal::InitSCC(&scc_info_Claim.base);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata file_level_metadata[1];
|
||||
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2];
|
||||
|
||||
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Claim, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Claim, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Claim, version_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Claim, claimtype_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Claim, stream_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Claim, certificate_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Claim, publishersignature_),
|
||||
3,
|
||||
4,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
};
|
||||
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 10, sizeof(::pb::Claim)},
|
||||
};
|
||||
|
||||
static ::google::protobuf::Message const * const file_default_instances[] = {
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Claim_default_instance_),
|
||||
};
|
||||
|
||||
void protobuf_AssignDescriptors() {
|
||||
AddDescriptors();
|
||||
AssignDescriptors(
|
||||
"claim.proto", schemas, file_default_instances, TableStruct::offsets,
|
||||
file_level_metadata, file_level_enum_descriptors, NULL);
|
||||
}
|
||||
|
||||
void protobuf_AssignDescriptorsOnce() {
|
||||
static ::google::protobuf::internal::once_flag once;
|
||||
::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
|
||||
}
|
||||
|
||||
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
||||
void protobuf_RegisterTypes(const ::std::string&) {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
|
||||
}
|
||||
|
||||
void AddDescriptorsImpl() {
|
||||
InitDefaults();
|
||||
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
"\n\013claim.proto\022\002pb\032\014stream.proto\032\021certifi"
|
||||
"cate.proto\032\017signature.proto\"\266\002\n\005Claim\022\"\n"
|
||||
"\007version\030\001 \002(\0162\021.pb.Claim.Version\022&\n\tcla"
|
||||
"imType\030\002 \002(\0162\023.pb.Claim.ClaimType\022\032\n\006str"
|
||||
"eam\030\003 \001(\0132\n.pb.Stream\022$\n\013certificate\030\004 \001"
|
||||
"(\0132\017.pb.Certificate\022)\n\022publisherSignatur"
|
||||
"e\030\005 \001(\0132\r.pb.Signature\"*\n\007Version\022\023\n\017UNK"
|
||||
"NOWN_VERSION\020\000\022\n\n\006_0_0_1\020\001\"H\n\tClaimType\022"
|
||||
"\026\n\022UNKNOWN_CLAIM_TYPE\020\000\022\016\n\nstreamType\020\001\022"
|
||||
"\023\n\017certificateType\020\002"
|
||||
};
|
||||
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
||||
descriptor, 380);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"claim.proto", &protobuf_RegisterTypes);
|
||||
::protobuf_stream_2eproto::AddDescriptors();
|
||||
::protobuf_certificate_2eproto::AddDescriptors();
|
||||
::protobuf_signature_2eproto::AddDescriptors();
|
||||
}
|
||||
|
||||
void AddDescriptors() {
|
||||
static ::google::protobuf::internal::once_flag once;
|
||||
::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
|
||||
}
|
||||
// Force AddDescriptors() to be called at dynamic initialization time.
|
||||
struct StaticDescriptorInitializer {
|
||||
StaticDescriptorInitializer() {
|
||||
AddDescriptors();
|
||||
}
|
||||
} static_descriptor_initializer;
|
||||
} // namespace protobuf_claim_2eproto
|
||||
namespace pb {
|
||||
const ::google::protobuf::EnumDescriptor* Claim_Version_descriptor() {
|
||||
protobuf_claim_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_claim_2eproto::file_level_enum_descriptors[0];
|
||||
}
|
||||
bool Claim_Version_IsValid(int value) {
|
||||
switch (value) {
|
||||
case 0:
|
||||
case 1:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const Claim_Version Claim::UNKNOWN_VERSION;
|
||||
const Claim_Version Claim::_0_0_1;
|
||||
const Claim_Version Claim::Version_MIN;
|
||||
const Claim_Version Claim::Version_MAX;
|
||||
const int Claim::Version_ARRAYSIZE;
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const ::google::protobuf::EnumDescriptor* Claim_ClaimType_descriptor() {
|
||||
protobuf_claim_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_claim_2eproto::file_level_enum_descriptors[1];
|
||||
}
|
||||
bool Claim_ClaimType_IsValid(int value) {
|
||||
switch (value) {
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const Claim_ClaimType Claim::UNKNOWN_CLAIM_TYPE;
|
||||
const Claim_ClaimType Claim::streamType;
|
||||
const Claim_ClaimType Claim::certificateType;
|
||||
const Claim_ClaimType Claim::ClaimType_MIN;
|
||||
const Claim_ClaimType Claim::ClaimType_MAX;
|
||||
const int Claim::ClaimType_ARRAYSIZE;
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
||||
// ===================================================================
|
||||
|
||||
void Claim::InitAsDefaultInstance() {
|
||||
::pb::_Claim_default_instance_._instance.get_mutable()->stream_ = const_cast< ::pb::Stream*>(
|
||||
::pb::Stream::internal_default_instance());
|
||||
::pb::_Claim_default_instance_._instance.get_mutable()->certificate_ = const_cast< ::pb::Certificate*>(
|
||||
::pb::Certificate::internal_default_instance());
|
||||
::pb::_Claim_default_instance_._instance.get_mutable()->publishersignature_ = const_cast< ::pb::Signature*>(
|
||||
::pb::Signature::internal_default_instance());
|
||||
}
|
||||
void Claim::clear_stream() {
|
||||
if (stream_ != NULL) stream_->Clear();
|
||||
clear_has_stream();
|
||||
}
|
||||
void Claim::clear_certificate() {
|
||||
if (certificate_ != NULL) certificate_->Clear();
|
||||
clear_has_certificate();
|
||||
}
|
||||
void Claim::clear_publishersignature() {
|
||||
if (publishersignature_ != NULL) publishersignature_->Clear();
|
||||
clear_has_publishersignature();
|
||||
}
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const int Claim::kVersionFieldNumber;
|
||||
const int Claim::kClaimTypeFieldNumber;
|
||||
const int Claim::kStreamFieldNumber;
|
||||
const int Claim::kCertificateFieldNumber;
|
||||
const int Claim::kPublisherSignatureFieldNumber;
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
||||
Claim::Claim()
|
||||
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
||||
::google::protobuf::internal::InitSCC(
|
||||
&protobuf_claim_2eproto::scc_info_Claim.base);
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:pb.Claim)
|
||||
}
|
||||
Claim::Claim(const Claim& from)
|
||||
: ::google::protobuf::Message(),
|
||||
_internal_metadata_(NULL),
|
||||
_has_bits_(from._has_bits_) {
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
if (from.has_stream()) {
|
||||
stream_ = new ::pb::Stream(*from.stream_);
|
||||
} else {
|
||||
stream_ = NULL;
|
||||
}
|
||||
if (from.has_certificate()) {
|
||||
certificate_ = new ::pb::Certificate(*from.certificate_);
|
||||
} else {
|
||||
certificate_ = NULL;
|
||||
}
|
||||
if (from.has_publishersignature()) {
|
||||
publishersignature_ = new ::pb::Signature(*from.publishersignature_);
|
||||
} else {
|
||||
publishersignature_ = NULL;
|
||||
}
|
||||
::memcpy(&version_, &from.version_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&claimtype_) -
|
||||
reinterpret_cast<char*>(&version_)) + sizeof(claimtype_));
|
||||
// @@protoc_insertion_point(copy_constructor:pb.Claim)
|
||||
}
|
||||
|
||||
void Claim::SharedCtor() {
|
||||
::memset(&stream_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&claimtype_) -
|
||||
reinterpret_cast<char*>(&stream_)) + sizeof(claimtype_));
|
||||
}
|
||||
|
||||
Claim::~Claim() {
|
||||
// @@protoc_insertion_point(destructor:pb.Claim)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
void Claim::SharedDtor() {
|
||||
if (this != internal_default_instance()) delete stream_;
|
||||
if (this != internal_default_instance()) delete certificate_;
|
||||
if (this != internal_default_instance()) delete publishersignature_;
|
||||
}
|
||||
|
||||
void Claim::SetCachedSize(int size) const {
|
||||
_cached_size_.Set(size);
|
||||
}
|
||||
const ::google::protobuf::Descriptor* Claim::descriptor() {
|
||||
::protobuf_claim_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return ::protobuf_claim_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
||||
}
|
||||
|
||||
const Claim& Claim::default_instance() {
|
||||
::google::protobuf::internal::InitSCC(&protobuf_claim_2eproto::scc_info_Claim.base);
|
||||
return *internal_default_instance();
|
||||
}
|
||||
|
||||
|
||||
void Claim::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:pb.Claim)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
if (cached_has_bits & 7u) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
GOOGLE_DCHECK(stream_ != NULL);
|
||||
stream_->Clear();
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
GOOGLE_DCHECK(certificate_ != NULL);
|
||||
certificate_->Clear();
|
||||
}
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
GOOGLE_DCHECK(publishersignature_ != NULL);
|
||||
publishersignature_->Clear();
|
||||
}
|
||||
}
|
||||
if (cached_has_bits & 24u) {
|
||||
::memset(&version_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&claimtype_) -
|
||||
reinterpret_cast<char*>(&version_)) + sizeof(claimtype_));
|
||||
}
|
||||
_has_bits_.Clear();
|
||||
_internal_metadata_.Clear();
|
||||
}
|
||||
|
||||
bool Claim::MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) {
|
||||
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
::google::protobuf::uint32 tag;
|
||||
// @@protoc_insertion_point(parse_start:pb.Claim)
|
||||
for (;;) {
|
||||
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
||||
tag = p.first;
|
||||
if (!p.second) goto handle_unusual;
|
||||
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
||||
// required .pb.Claim.Version version = 1;
|
||||
case 1: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
||||
int value;
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
||||
input, &value)));
|
||||
if (::pb::Claim_Version_IsValid(value)) {
|
||||
set_version(static_cast< ::pb::Claim_Version >(value));
|
||||
} else {
|
||||
mutable_unknown_fields()->AddVarint(
|
||||
1, static_cast< ::google::protobuf::uint64>(value));
|
||||
}
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// required .pb.Claim.ClaimType claimType = 2;
|
||||
case 2: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
||||
int value;
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
||||
input, &value)));
|
||||
if (::pb::Claim_ClaimType_IsValid(value)) {
|
||||
set_claimtype(static_cast< ::pb::Claim_ClaimType >(value));
|
||||
} else {
|
||||
mutable_unknown_fields()->AddVarint(
|
||||
2, static_cast< ::google::protobuf::uint64>(value));
|
||||
}
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// optional .pb.Stream stream = 3;
|
||||
case 3: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
||||
input, mutable_stream()));
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// optional .pb.Certificate certificate = 4;
|
||||
case 4: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
||||
input, mutable_certificate()));
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// optional .pb.Signature publisherSignature = 5;
|
||||
case 5: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
||||
input, mutable_publishersignature()));
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
handle_unusual:
|
||||
if (tag == 0) {
|
||||
goto success;
|
||||
}
|
||||
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
||||
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
success:
|
||||
// @@protoc_insertion_point(parse_success:pb.Claim)
|
||||
return true;
|
||||
failure:
|
||||
// @@protoc_insertion_point(parse_failure:pb.Claim)
|
||||
return false;
|
||||
#undef DO_
|
||||
}
|
||||
|
||||
void Claim::SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const {
|
||||
// @@protoc_insertion_point(serialize_start:pb.Claim)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .pb.Claim.Version version = 1;
|
||||
if (cached_has_bits & 0x00000008u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
1, this->version(), output);
|
||||
}
|
||||
|
||||
// required .pb.Claim.ClaimType claimType = 2;
|
||||
if (cached_has_bits & 0x00000010u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
2, this->claimtype(), output);
|
||||
}
|
||||
|
||||
// optional .pb.Stream stream = 3;
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
||||
3, this->_internal_stream(), output);
|
||||
}
|
||||
|
||||
// optional .pb.Certificate certificate = 4;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
||||
4, this->_internal_certificate(), output);
|
||||
}
|
||||
|
||||
// optional .pb.Signature publisherSignature = 5;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
||||
5, this->_internal_publishersignature(), output);
|
||||
}
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
||||
_internal_metadata_.unknown_fields(), output);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_end:pb.Claim)
|
||||
}
|
||||
|
||||
::google::protobuf::uint8* Claim::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:pb.Claim)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .pb.Claim.Version version = 1;
|
||||
if (cached_has_bits & 0x00000008u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
||||
1, this->version(), target);
|
||||
}
|
||||
|
||||
// required .pb.Claim.ClaimType claimType = 2;
|
||||
if (cached_has_bits & 0x00000010u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
||||
2, this->claimtype(), target);
|
||||
}
|
||||
|
||||
// optional .pb.Stream stream = 3;
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::
|
||||
InternalWriteMessageToArray(
|
||||
3, this->_internal_stream(), deterministic, target);
|
||||
}
|
||||
|
||||
// optional .pb.Certificate certificate = 4;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::
|
||||
InternalWriteMessageToArray(
|
||||
4, this->_internal_certificate(), deterministic, target);
|
||||
}
|
||||
|
||||
// optional .pb.Signature publisherSignature = 5;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::
|
||||
InternalWriteMessageToArray(
|
||||
5, this->_internal_publishersignature(), deterministic, target);
|
||||
}
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields(), target);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:pb.Claim)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t Claim::RequiredFieldsByteSizeFallback() const {
|
||||
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:pb.Claim)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (has_version()) {
|
||||
// required .pb.Claim.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
}
|
||||
|
||||
if (has_claimtype()) {
|
||||
// required .pb.Claim.ClaimType claimType = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->claimtype());
|
||||
}
|
||||
|
||||
return total_size;
|
||||
}
|
||||
size_t Claim::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:pb.Claim)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
total_size +=
|
||||
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
||||
_internal_metadata_.unknown_fields());
|
||||
}
|
||||
if (((_has_bits_[0] & 0x00000018) ^ 0x00000018) == 0) { // All required fields are present.
|
||||
// required .pb.Claim.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
|
||||
// required .pb.Claim.ClaimType claimType = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->claimtype());
|
||||
|
||||
} else {
|
||||
total_size += RequiredFieldsByteSizeFallback();
|
||||
}
|
||||
if (_has_bits_[0 / 32] & 7u) {
|
||||
// optional .pb.Stream stream = 3;
|
||||
if (has_stream()) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||||
*stream_);
|
||||
}
|
||||
|
||||
// optional .pb.Certificate certificate = 4;
|
||||
if (has_certificate()) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||||
*certificate_);
|
||||
}
|
||||
|
||||
// optional .pb.Signature publisherSignature = 5;
|
||||
if (has_publishersignature()) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||||
*publishersignature_);
|
||||
}
|
||||
|
||||
}
|
||||
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
||||
SetCachedSize(cached_size);
|
||||
return total_size;
|
||||
}
|
||||
|
||||
void Claim::MergeFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:pb.Claim)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
const Claim* source =
|
||||
::google::protobuf::internal::DynamicCastToGenerated<const Claim>(
|
||||
&from);
|
||||
if (source == NULL) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Claim)
|
||||
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
||||
} else {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Claim)
|
||||
MergeFrom(*source);
|
||||
}
|
||||
}
|
||||
|
||||
void Claim::MergeFrom(const Claim& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Claim)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = from._has_bits_[0];
|
||||
if (cached_has_bits & 31u) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
mutable_stream()->::pb::Stream::MergeFrom(from.stream());
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
mutable_certificate()->::pb::Certificate::MergeFrom(from.certificate());
|
||||
}
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
mutable_publishersignature()->::pb::Signature::MergeFrom(from.publishersignature());
|
||||
}
|
||||
if (cached_has_bits & 0x00000008u) {
|
||||
version_ = from.version_;
|
||||
}
|
||||
if (cached_has_bits & 0x00000010u) {
|
||||
claimtype_ = from.claimtype_;
|
||||
}
|
||||
_has_bits_[0] |= cached_has_bits;
|
||||
}
|
||||
}
|
||||
|
||||
void Claim::CopyFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:pb.Claim)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
void Claim::CopyFrom(const Claim& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Claim)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool Claim::IsInitialized() const {
|
||||
if ((_has_bits_[0] & 0x00000018) != 0x00000018) return false;
|
||||
if (has_stream()) {
|
||||
if (!this->stream_->IsInitialized()) return false;
|
||||
}
|
||||
if (has_certificate()) {
|
||||
if (!this->certificate_->IsInitialized()) return false;
|
||||
}
|
||||
if (has_publishersignature()) {
|
||||
if (!this->publishersignature_->IsInitialized()) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void Claim::Swap(Claim* other) {
|
||||
if (other == this) return;
|
||||
InternalSwap(other);
|
||||
}
|
||||
void Claim::InternalSwap(Claim* other) {
|
||||
using std::swap;
|
||||
swap(stream_, other->stream_);
|
||||
swap(certificate_, other->certificate_);
|
||||
swap(publishersignature_, other->publishersignature_);
|
||||
swap(version_, other->version_);
|
||||
swap(claimtype_, other->claimtype_);
|
||||
swap(_has_bits_[0], other->_has_bits_[0]);
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata Claim::GetMetadata() const {
|
||||
protobuf_claim_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return ::protobuf_claim_2eproto::file_level_metadata[kIndexInFileMessages];
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pb::Claim* Arena::CreateMaybeMessage< ::pb::Claim >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::pb::Claim >(arena);
|
||||
}
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
368
v1/cpp/fee.pb.cc
368
v1/cpp/fee.pb.cc
|
@ -6,120 +6,101 @@
|
|||
#include <algorithm>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
#include <google/protobuf/stubs/port.h>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/extension_set.h>
|
||||
#include <google/protobuf/wire_format_lite_inl.h>
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/reflection_ops.h>
|
||||
#include <google/protobuf/wire_format.h>
|
||||
// This is a temporary google only hack
|
||||
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
||||
#include "third_party/protobuf/version.h"
|
||||
#endif
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
class FeeDefaultTypeInternal {
|
||||
public:
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Fee>
|
||||
_instance;
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Fee> _instance;
|
||||
} _Fee_default_instance_;
|
||||
} // namespace pb
|
||||
namespace protobuf_fee_2eproto {
|
||||
static void InitDefaultsFee() {
|
||||
} // namespace legacy_pb
|
||||
static void InitDefaultsFee_fee_2eproto() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
{
|
||||
void* ptr = &::pb::_Fee_default_instance_;
|
||||
new (ptr) ::pb::Fee();
|
||||
void* ptr = &::legacy_pb::_Fee_default_instance_;
|
||||
new (ptr) ::legacy_pb::Fee();
|
||||
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
||||
}
|
||||
::pb::Fee::InitAsDefaultInstance();
|
||||
::legacy_pb::Fee::InitAsDefaultInstance();
|
||||
}
|
||||
|
||||
::google::protobuf::internal::SCCInfo<0> scc_info_Fee =
|
||||
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFee}, {}};
|
||||
::google::protobuf::internal::SCCInfo<0> scc_info_Fee_fee_2eproto =
|
||||
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFee_fee_2eproto}, {}};
|
||||
|
||||
void InitDefaults() {
|
||||
::google::protobuf::internal::InitSCC(&scc_info_Fee.base);
|
||||
void InitDefaults_fee_2eproto() {
|
||||
::google::protobuf::internal::InitSCC(&scc_info_Fee_fee_2eproto.base);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata file_level_metadata[1];
|
||||
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2];
|
||||
::google::protobuf::Metadata file_level_metadata_fee_2eproto[1];
|
||||
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_fee_2eproto[2];
|
||||
constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_fee_2eproto = nullptr;
|
||||
|
||||
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Fee, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Fee, _internal_metadata_),
|
||||
const ::google::protobuf::uint32 TableStruct_fee_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Fee, _has_bits_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Fee, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Fee, version_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Fee, currency_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Fee, address_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Fee, amount_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Fee, version_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Fee, currency_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Fee, address_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Fee, amount_),
|
||||
1,
|
||||
2,
|
||||
0,
|
||||
3,
|
||||
};
|
||||
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 9, sizeof(::pb::Fee)},
|
||||
static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 9, sizeof(::legacy_pb::Fee)},
|
||||
};
|
||||
|
||||
static ::google::protobuf::Message const * const file_default_instances[] = {
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Fee_default_instance_),
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::legacy_pb::_Fee_default_instance_),
|
||||
};
|
||||
|
||||
void protobuf_AssignDescriptors() {
|
||||
AddDescriptors();
|
||||
AssignDescriptors(
|
||||
"fee.proto", schemas, file_default_instances, TableStruct::offsets,
|
||||
file_level_metadata, file_level_enum_descriptors, NULL);
|
||||
}
|
||||
::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_fee_2eproto = {
|
||||
{}, AddDescriptors_fee_2eproto, "fee.proto", schemas,
|
||||
file_default_instances, TableStruct_fee_2eproto::offsets,
|
||||
file_level_metadata_fee_2eproto, 1, file_level_enum_descriptors_fee_2eproto, file_level_service_descriptors_fee_2eproto,
|
||||
};
|
||||
|
||||
void protobuf_AssignDescriptorsOnce() {
|
||||
static ::google::protobuf::internal::once_flag once;
|
||||
::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
|
||||
}
|
||||
const char descriptor_table_protodef_fee_2eproto[] =
|
||||
"\n\tfee.proto\022\tlegacy_pb\"\343\001\n\003Fee\022\'\n\007versio"
|
||||
"n\030\001 \002(\0162\026.legacy_pb.Fee.Version\022)\n\010curre"
|
||||
"ncy\030\002 \002(\0162\027.legacy_pb.Fee.Currency\022\017\n\007ad"
|
||||
"dress\030\003 \002(\014\022\016\n\006amount\030\004 \002(\002\"*\n\007Version\022\023"
|
||||
"\n\017UNKNOWN_VERSION\020\000\022\n\n\006_0_0_1\020\001\";\n\010Curre"
|
||||
"ncy\022\024\n\020UNKNOWN_CURRENCY\020\000\022\007\n\003LBC\020\001\022\007\n\003BT"
|
||||
"C\020\002\022\007\n\003USD\020\003"
|
||||
;
|
||||
::google::protobuf::internal::DescriptorTable descriptor_table_fee_2eproto = {
|
||||
false, InitDefaults_fee_2eproto,
|
||||
descriptor_table_protodef_fee_2eproto,
|
||||
"fee.proto", &assign_descriptors_table_fee_2eproto, 252,
|
||||
};
|
||||
|
||||
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
||||
void protobuf_RegisterTypes(const ::std::string&) {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
|
||||
}
|
||||
|
||||
void AddDescriptorsImpl() {
|
||||
InitDefaults();
|
||||
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
"\n\tfee.proto\022\002pb\"\325\001\n\003Fee\022 \n\007version\030\001 \002(\016"
|
||||
"2\017.pb.Fee.Version\022\"\n\010currency\030\002 \002(\0162\020.pb"
|
||||
".Fee.Currency\022\017\n\007address\030\003 \002(\014\022\016\n\006amount"
|
||||
"\030\004 \002(\002\"*\n\007Version\022\023\n\017UNKNOWN_VERSION\020\000\022\n"
|
||||
"\n\006_0_0_1\020\001\";\n\010Currency\022\024\n\020UNKNOWN_CURREN"
|
||||
"CY\020\000\022\007\n\003LBC\020\001\022\007\n\003BTC\020\002\022\007\n\003USD\020\003"
|
||||
void AddDescriptors_fee_2eproto() {
|
||||
static constexpr ::google::protobuf::internal::InitFunc deps[1] =
|
||||
{
|
||||
};
|
||||
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
||||
descriptor, 231);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"fee.proto", &protobuf_RegisterTypes);
|
||||
::google::protobuf::internal::AddDescriptors(&descriptor_table_fee_2eproto, deps, 0);
|
||||
}
|
||||
|
||||
void AddDescriptors() {
|
||||
static ::google::protobuf::internal::once_flag once;
|
||||
::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
|
||||
}
|
||||
// Force AddDescriptors() to be called at dynamic initialization time.
|
||||
struct StaticDescriptorInitializer {
|
||||
StaticDescriptorInitializer() {
|
||||
AddDescriptors();
|
||||
}
|
||||
} static_descriptor_initializer;
|
||||
} // namespace protobuf_fee_2eproto
|
||||
namespace pb {
|
||||
// Force running AddDescriptors() at dynamic initialization time.
|
||||
static bool dynamic_init_dummy_fee_2eproto = []() { AddDescriptors_fee_2eproto(); return true; }();
|
||||
namespace legacy_pb {
|
||||
const ::google::protobuf::EnumDescriptor* Fee_Version_descriptor() {
|
||||
protobuf_fee_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_fee_2eproto::file_level_enum_descriptors[0];
|
||||
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_fee_2eproto);
|
||||
return file_level_enum_descriptors_fee_2eproto[0];
|
||||
}
|
||||
bool Fee_Version_IsValid(int value) {
|
||||
switch (value) {
|
||||
|
@ -139,8 +120,8 @@ const Fee_Version Fee::Version_MAX;
|
|||
const int Fee::Version_ARRAYSIZE;
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const ::google::protobuf::EnumDescriptor* Fee_Currency_descriptor() {
|
||||
protobuf_fee_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_fee_2eproto::file_level_enum_descriptors[1];
|
||||
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_fee_2eproto);
|
||||
return file_level_enum_descriptors_fee_2eproto[1];
|
||||
}
|
||||
bool Fee_Currency_IsValid(int value) {
|
||||
switch (value) {
|
||||
|
@ -168,6 +149,22 @@ const int Fee::Currency_ARRAYSIZE;
|
|||
|
||||
void Fee::InitAsDefaultInstance() {
|
||||
}
|
||||
class Fee::HasBitSetters {
|
||||
public:
|
||||
static void set_has_version(Fee* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000002u;
|
||||
}
|
||||
static void set_has_currency(Fee* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000004u;
|
||||
}
|
||||
static void set_has_address(Fee* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000001u;
|
||||
}
|
||||
static void set_has_amount(Fee* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000008u;
|
||||
}
|
||||
};
|
||||
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const int Fee::kVersionFieldNumber;
|
||||
const int Fee::kCurrencyFieldNumber;
|
||||
|
@ -176,15 +173,13 @@ const int Fee::kAmountFieldNumber;
|
|||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
||||
Fee::Fee()
|
||||
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
||||
::google::protobuf::internal::InitSCC(
|
||||
&protobuf_fee_2eproto::scc_info_Fee.base);
|
||||
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:pb.Fee)
|
||||
// @@protoc_insertion_point(constructor:legacy_pb.Fee)
|
||||
}
|
||||
Fee::Fee(const Fee& from)
|
||||
: ::google::protobuf::Message(),
|
||||
_internal_metadata_(NULL),
|
||||
_internal_metadata_(nullptr),
|
||||
_has_bits_(from._has_bits_) {
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
|
@ -194,10 +189,12 @@ Fee::Fee(const Fee& from)
|
|||
::memcpy(&version_, &from.version_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&amount_) -
|
||||
reinterpret_cast<char*>(&version_)) + sizeof(amount_));
|
||||
// @@protoc_insertion_point(copy_constructor:pb.Fee)
|
||||
// @@protoc_insertion_point(copy_constructor:legacy_pb.Fee)
|
||||
}
|
||||
|
||||
void Fee::SharedCtor() {
|
||||
::google::protobuf::internal::InitSCC(
|
||||
&scc_info_Fee_fee_2eproto.base);
|
||||
address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
::memset(&version_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&amount_) -
|
||||
|
@ -205,7 +202,7 @@ void Fee::SharedCtor() {
|
|||
}
|
||||
|
||||
Fee::~Fee() {
|
||||
// @@protoc_insertion_point(destructor:pb.Fee)
|
||||
// @@protoc_insertion_point(destructor:legacy_pb.Fee)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
|
@ -216,19 +213,14 @@ void Fee::SharedDtor() {
|
|||
void Fee::SetCachedSize(int size) const {
|
||||
_cached_size_.Set(size);
|
||||
}
|
||||
const ::google::protobuf::Descriptor* Fee::descriptor() {
|
||||
::protobuf_fee_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return ::protobuf_fee_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
||||
}
|
||||
|
||||
const Fee& Fee::default_instance() {
|
||||
::google::protobuf::internal::InitSCC(&protobuf_fee_2eproto::scc_info_Fee.base);
|
||||
::google::protobuf::internal::InitSCC(&::scc_info_Fee_fee_2eproto.base);
|
||||
return *internal_default_instance();
|
||||
}
|
||||
|
||||
|
||||
void Fee::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:pb.Fee)
|
||||
// @@protoc_insertion_point(message_clear_start:legacy_pb.Fee)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
@ -237,7 +229,7 @@ void Fee::Clear() {
|
|||
if (cached_has_bits & 0x00000001u) {
|
||||
address_.ClearNonDefaultToEmptyNoArena();
|
||||
}
|
||||
if (cached_has_bits & 14u) {
|
||||
if (cached_has_bits & 0x0000000eu) {
|
||||
::memset(&version_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&amount_) -
|
||||
reinterpret_cast<char*>(&version_)) + sizeof(amount_));
|
||||
|
@ -246,29 +238,111 @@ void Fee::Clear() {
|
|||
_internal_metadata_.Clear();
|
||||
}
|
||||
|
||||
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
const char* Fee::_InternalParse(const char* begin, const char* end, void* object,
|
||||
::google::protobuf::internal::ParseContext* ctx) {
|
||||
auto msg = static_cast<Fee*>(object);
|
||||
::google::protobuf::int32 size; (void)size;
|
||||
int depth; (void)depth;
|
||||
::google::protobuf::uint32 tag;
|
||||
::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
|
||||
auto ptr = begin;
|
||||
while (ptr < end) {
|
||||
ptr = ::google::protobuf::io::Parse32(ptr, &tag);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
switch (tag >> 3) {
|
||||
// required .legacy_pb.Fee.Version version = 1;
|
||||
case 1: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
|
||||
::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
|
||||
if (!::legacy_pb::Fee_Version_IsValid(val)) {
|
||||
::google::protobuf::internal::WriteVarint(1, val, msg->mutable_unknown_fields());
|
||||
break;
|
||||
}
|
||||
msg->set_version(static_cast<::legacy_pb::Fee_Version>(val));
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
break;
|
||||
}
|
||||
// required .legacy_pb.Fee.Currency currency = 2;
|
||||
case 2: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
|
||||
::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
|
||||
if (!::legacy_pb::Fee_Currency_IsValid(val)) {
|
||||
::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields());
|
||||
break;
|
||||
}
|
||||
msg->set_currency(static_cast<::legacy_pb::Fee_Currency>(val));
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
break;
|
||||
}
|
||||
// required bytes address = 3;
|
||||
case 3: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
|
||||
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
object = msg->mutable_address();
|
||||
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
|
||||
parser_till_end = ::google::protobuf::internal::GreedyStringParser;
|
||||
goto string_till_end;
|
||||
}
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx));
|
||||
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
|
||||
ptr += size;
|
||||
break;
|
||||
}
|
||||
// required float amount = 4;
|
||||
case 4: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 37) goto handle_unusual;
|
||||
msg->set_amount(::google::protobuf::io::UnalignedLoad<float>(ptr));
|
||||
ptr += sizeof(float);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
handle_unusual:
|
||||
if ((tag & 7) == 4 || tag == 0) {
|
||||
ctx->EndGroup(tag);
|
||||
return ptr;
|
||||
}
|
||||
auto res = UnknownFieldParse(tag, {_InternalParse, msg},
|
||||
ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
|
||||
ptr = res.first;
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
|
||||
if (res.second) return ptr;
|
||||
}
|
||||
} // switch
|
||||
} // while
|
||||
return ptr;
|
||||
string_till_end:
|
||||
static_cast<::std::string*>(object)->clear();
|
||||
static_cast<::std::string*>(object)->reserve(size);
|
||||
goto len_delim_till_end;
|
||||
len_delim_till_end:
|
||||
return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
|
||||
{parser_till_end, object}, size);
|
||||
}
|
||||
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
bool Fee::MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) {
|
||||
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
::google::protobuf::uint32 tag;
|
||||
// @@protoc_insertion_point(parse_start:pb.Fee)
|
||||
// @@protoc_insertion_point(parse_start:legacy_pb.Fee)
|
||||
for (;;) {
|
||||
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
||||
tag = p.first;
|
||||
if (!p.second) goto handle_unusual;
|
||||
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
||||
// required .pb.Fee.Version version = 1;
|
||||
// required .legacy_pb.Fee.Version version = 1;
|
||||
case 1: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
||||
int value;
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
|
||||
int value = 0;
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
||||
input, &value)));
|
||||
if (::pb::Fee_Version_IsValid(value)) {
|
||||
set_version(static_cast< ::pb::Fee_Version >(value));
|
||||
if (::legacy_pb::Fee_Version_IsValid(value)) {
|
||||
set_version(static_cast< ::legacy_pb::Fee_Version >(value));
|
||||
} else {
|
||||
mutable_unknown_fields()->AddVarint(
|
||||
1, static_cast< ::google::protobuf::uint64>(value));
|
||||
1, static_cast<::google::protobuf::uint64>(value));
|
||||
}
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
|
@ -276,19 +350,18 @@ bool Fee::MergePartialFromCodedStream(
|
|||
break;
|
||||
}
|
||||
|
||||
// required .pb.Fee.Currency currency = 2;
|
||||
// required .legacy_pb.Fee.Currency currency = 2;
|
||||
case 2: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
||||
int value;
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
|
||||
int value = 0;
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
||||
input, &value)));
|
||||
if (::pb::Fee_Currency_IsValid(value)) {
|
||||
set_currency(static_cast< ::pb::Fee_Currency >(value));
|
||||
if (::legacy_pb::Fee_Currency_IsValid(value)) {
|
||||
set_currency(static_cast< ::legacy_pb::Fee_Currency >(value));
|
||||
} else {
|
||||
mutable_unknown_fields()->AddVarint(
|
||||
2, static_cast< ::google::protobuf::uint64>(value));
|
||||
2, static_cast<::google::protobuf::uint64>(value));
|
||||
}
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
|
@ -298,8 +371,7 @@ bool Fee::MergePartialFromCodedStream(
|
|||
|
||||
// required bytes address = 3;
|
||||
case 3: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
||||
input, this->mutable_address()));
|
||||
} else {
|
||||
|
@ -310,9 +382,8 @@ bool Fee::MergePartialFromCodedStream(
|
|||
|
||||
// required float amount = 4;
|
||||
case 4: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
|
||||
set_has_amount();
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (37 & 0xFF)) {
|
||||
HasBitSetters::set_has_amount(this);
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
||||
input, &amount_)));
|
||||
|
@ -334,28 +405,29 @@ bool Fee::MergePartialFromCodedStream(
|
|||
}
|
||||
}
|
||||
success:
|
||||
// @@protoc_insertion_point(parse_success:pb.Fee)
|
||||
// @@protoc_insertion_point(parse_success:legacy_pb.Fee)
|
||||
return true;
|
||||
failure:
|
||||
// @@protoc_insertion_point(parse_failure:pb.Fee)
|
||||
// @@protoc_insertion_point(parse_failure:legacy_pb.Fee)
|
||||
return false;
|
||||
#undef DO_
|
||||
}
|
||||
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
|
||||
void Fee::SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const {
|
||||
// @@protoc_insertion_point(serialize_start:pb.Fee)
|
||||
// @@protoc_insertion_point(serialize_start:legacy_pb.Fee)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .pb.Fee.Version version = 1;
|
||||
// required .legacy_pb.Fee.Version version = 1;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
1, this->version(), output);
|
||||
}
|
||||
|
||||
// required .pb.Fee.Currency currency = 2;
|
||||
// required .legacy_pb.Fee.Currency currency = 2;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
2, this->currency(), output);
|
||||
|
@ -376,24 +448,23 @@ void Fee::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
||||
_internal_metadata_.unknown_fields(), output);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_end:pb.Fee)
|
||||
// @@protoc_insertion_point(serialize_end:legacy_pb.Fee)
|
||||
}
|
||||
|
||||
::google::protobuf::uint8* Fee::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:pb.Fee)
|
||||
::google::protobuf::uint8* target) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:legacy_pb.Fee)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .pb.Fee.Version version = 1;
|
||||
// required .legacy_pb.Fee.Version version = 1;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
||||
1, this->version(), target);
|
||||
}
|
||||
|
||||
// required .pb.Fee.Currency currency = 2;
|
||||
// required .legacy_pb.Fee.Currency currency = 2;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
||||
2, this->currency(), target);
|
||||
|
@ -415,12 +486,12 @@ void Fee::SerializeWithCachedSizes(
|
|||
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields(), target);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:pb.Fee)
|
||||
// @@protoc_insertion_point(serialize_to_array_end:legacy_pb.Fee)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t Fee::RequiredFieldsByteSizeFallback() const {
|
||||
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:pb.Fee)
|
||||
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:legacy_pb.Fee)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (has_address()) {
|
||||
|
@ -431,13 +502,13 @@ size_t Fee::RequiredFieldsByteSizeFallback() const {
|
|||
}
|
||||
|
||||
if (has_version()) {
|
||||
// required .pb.Fee.Version version = 1;
|
||||
// required .legacy_pb.Fee.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
}
|
||||
|
||||
if (has_currency()) {
|
||||
// required .pb.Fee.Currency currency = 2;
|
||||
// required .legacy_pb.Fee.Currency currency = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->currency());
|
||||
}
|
||||
|
@ -450,7 +521,7 @@ size_t Fee::RequiredFieldsByteSizeFallback() const {
|
|||
return total_size;
|
||||
}
|
||||
size_t Fee::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:pb.Fee)
|
||||
// @@protoc_insertion_point(message_byte_size_start:legacy_pb.Fee)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
|
@ -464,11 +535,11 @@ size_t Fee::ByteSizeLong() const {
|
|||
::google::protobuf::internal::WireFormatLite::BytesSize(
|
||||
this->address());
|
||||
|
||||
// required .pb.Fee.Version version = 1;
|
||||
// required .legacy_pb.Fee.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
|
||||
// required .pb.Fee.Currency currency = 2;
|
||||
// required .legacy_pb.Fee.Currency currency = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->currency());
|
||||
|
||||
|
@ -478,37 +549,41 @@ size_t Fee::ByteSizeLong() const {
|
|||
} else {
|
||||
total_size += RequiredFieldsByteSizeFallback();
|
||||
}
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
||||
SetCachedSize(cached_size);
|
||||
return total_size;
|
||||
}
|
||||
|
||||
void Fee::MergeFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:pb.Fee)
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:legacy_pb.Fee)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
const Fee* source =
|
||||
::google::protobuf::internal::DynamicCastToGenerated<const Fee>(
|
||||
::google::protobuf::DynamicCastToGenerated<Fee>(
|
||||
&from);
|
||||
if (source == NULL) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Fee)
|
||||
if (source == nullptr) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:legacy_pb.Fee)
|
||||
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
||||
} else {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Fee)
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:legacy_pb.Fee)
|
||||
MergeFrom(*source);
|
||||
}
|
||||
}
|
||||
|
||||
void Fee::MergeFrom(const Fee& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Fee)
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:legacy_pb.Fee)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = from._has_bits_[0];
|
||||
if (cached_has_bits & 15u) {
|
||||
if (cached_has_bits & 0x0000000fu) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
set_has_address();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_);
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
|
@ -525,14 +600,14 @@ void Fee::MergeFrom(const Fee& from) {
|
|||
}
|
||||
|
||||
void Fee::CopyFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:pb.Fee)
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:legacy_pb.Fee)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
void Fee::CopyFrom(const Fee& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Fee)
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:legacy_pb.Fee)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
|
@ -549,29 +624,30 @@ void Fee::Swap(Fee* other) {
|
|||
}
|
||||
void Fee::InternalSwap(Fee* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
swap(_has_bits_[0], other->_has_bits_[0]);
|
||||
address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
GetArenaNoVirtual());
|
||||
swap(version_, other->version_);
|
||||
swap(currency_, other->currency_);
|
||||
swap(amount_, other->amount_);
|
||||
swap(_has_bits_[0], other->_has_bits_[0]);
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata Fee::GetMetadata() const {
|
||||
protobuf_fee_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return ::protobuf_fee_2eproto::file_level_metadata[kIndexInFileMessages];
|
||||
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_fee_2eproto);
|
||||
return ::file_level_metadata_fee_2eproto[kIndexInFileMessages];
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pb::Fee* Arena::CreateMaybeMessage< ::pb::Fee >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::pb::Fee >(arena);
|
||||
template<> PROTOBUF_NOINLINE ::legacy_pb::Fee* Arena::CreateMaybeMessage< ::legacy_pb::Fee >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::legacy_pb::Fee >(arena);
|
||||
}
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
|
|
209
v1/cpp/fee.pb.h
209
v1/cpp/fee.pb.h
|
@ -4,21 +4,22 @@
|
|||
#ifndef PROTOBUF_INCLUDED_fee_2eproto
|
||||
#define PROTOBUF_INCLUDED_fee_2eproto
|
||||
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006000
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#if PROTOBUF_VERSION < 3007000
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3007000 < 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 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>
|
||||
|
@ -32,31 +33,33 @@
|
|||
#include <google/protobuf/generated_enum_reflection.h>
|
||||
#include <google/protobuf/unknown_field_set.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
#define PROTOBUF_INTERNAL_EXPORT_protobuf_fee_2eproto
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_fee_2eproto
|
||||
|
||||
namespace protobuf_fee_2eproto {
|
||||
// Internal implementation detail -- do not use these members.
|
||||
struct TableStruct {
|
||||
static const ::google::protobuf::internal::ParseTableField entries[];
|
||||
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
|
||||
static const ::google::protobuf::internal::ParseTable schema[1];
|
||||
struct TableStruct_fee_2eproto {
|
||||
static const ::google::protobuf::internal::ParseTableField entries[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::ParseTable schema[1]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
|
||||
static const ::google::protobuf::internal::SerializationTable serialization_table[];
|
||||
static const ::google::protobuf::uint32 offsets[];
|
||||
};
|
||||
void AddDescriptors();
|
||||
} // namespace protobuf_fee_2eproto
|
||||
namespace pb {
|
||||
void AddDescriptors_fee_2eproto();
|
||||
namespace legacy_pb {
|
||||
class Fee;
|
||||
class FeeDefaultTypeInternal;
|
||||
extern FeeDefaultTypeInternal _Fee_default_instance_;
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> ::pb::Fee* Arena::CreateMaybeMessage<::pb::Fee>(Arena*);
|
||||
template<> ::legacy_pb::Fee* Arena::CreateMaybeMessage<::legacy_pb::Fee>(Arena*);
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
|
||||
enum Fee_Version {
|
||||
Fee_Version_UNKNOWN_VERSION = 0,
|
||||
|
@ -100,7 +103,8 @@ inline bool Fee_Currency_Parse(
|
|||
}
|
||||
// ===================================================================
|
||||
|
||||
class Fee : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Fee) */ {
|
||||
class Fee final :
|
||||
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Fee) */ {
|
||||
public:
|
||||
Fee();
|
||||
virtual ~Fee();
|
||||
|
@ -133,7 +137,9 @@ class Fee : public ::google::protobuf::Message /* @@protoc_insertion_point(class
|
|||
return _internal_metadata_.mutable_unknown_fields();
|
||||
}
|
||||
|
||||
static const ::google::protobuf::Descriptor* descriptor();
|
||||
static const ::google::protobuf::Descriptor* descriptor() {
|
||||
return default_instance().GetDescriptor();
|
||||
}
|
||||
static const Fee& default_instance();
|
||||
|
||||
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
||||
|
@ -152,7 +158,7 @@ class Fee : public ::google::protobuf::Message /* @@protoc_insertion_point(class
|
|||
// implements Message ----------------------------------------------
|
||||
|
||||
inline Fee* New() const final {
|
||||
return CreateMaybeMessage<Fee>(NULL);
|
||||
return CreateMaybeMessage<Fee>(nullptr);
|
||||
}
|
||||
|
||||
Fee* New(::google::protobuf::Arena* arena) const final {
|
||||
|
@ -162,16 +168,21 @@ class Fee : public ::google::protobuf::Message /* @@protoc_insertion_point(class
|
|||
void MergeFrom(const ::google::protobuf::Message& from) final;
|
||||
void CopyFrom(const Fee& from);
|
||||
void MergeFrom(const Fee& from);
|
||||
void Clear() final;
|
||||
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
||||
bool IsInitialized() const final;
|
||||
|
||||
size_t ByteSizeLong() const final;
|
||||
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
|
||||
::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
|
||||
#else
|
||||
bool MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) final;
|
||||
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
void SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const final;
|
||||
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const final;
|
||||
::google::protobuf::uint8* target) const final;
|
||||
int GetCachedSize() const final { return _cached_size_.Get(); }
|
||||
|
||||
private:
|
||||
|
@ -181,10 +192,10 @@ class Fee : public ::google::protobuf::Message /* @@protoc_insertion_point(class
|
|||
void InternalSwap(Fee* other);
|
||||
private:
|
||||
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
inline void* MaybeArenaPtr() const {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
public:
|
||||
|
||||
|
@ -265,19 +276,19 @@ class Fee : public ::google::protobuf::Message /* @@protoc_insertion_point(class
|
|||
::std::string* release_address();
|
||||
void set_allocated_address(::std::string* address);
|
||||
|
||||
// required .pb.Fee.Version version = 1;
|
||||
// required .legacy_pb.Fee.Version version = 1;
|
||||
bool has_version() const;
|
||||
void clear_version();
|
||||
static const int kVersionFieldNumber = 1;
|
||||
::pb::Fee_Version version() const;
|
||||
void set_version(::pb::Fee_Version value);
|
||||
::legacy_pb::Fee_Version version() const;
|
||||
void set_version(::legacy_pb::Fee_Version value);
|
||||
|
||||
// required .pb.Fee.Currency currency = 2;
|
||||
// required .legacy_pb.Fee.Currency currency = 2;
|
||||
bool has_currency() const;
|
||||
void clear_currency();
|
||||
static const int kCurrencyFieldNumber = 2;
|
||||
::pb::Fee_Currency currency() const;
|
||||
void set_currency(::pb::Fee_Currency value);
|
||||
::legacy_pb::Fee_Currency currency() const;
|
||||
void set_currency(::legacy_pb::Fee_Currency value);
|
||||
|
||||
// required float amount = 4;
|
||||
bool has_amount() const;
|
||||
|
@ -286,16 +297,9 @@ class Fee : public ::google::protobuf::Message /* @@protoc_insertion_point(class
|
|||
float amount() const;
|
||||
void set_amount(float value);
|
||||
|
||||
// @@protoc_insertion_point(class_scope:pb.Fee)
|
||||
// @@protoc_insertion_point(class_scope:legacy_pb.Fee)
|
||||
private:
|
||||
void set_has_version();
|
||||
void clear_has_version();
|
||||
void set_has_currency();
|
||||
void clear_has_currency();
|
||||
void set_has_address();
|
||||
void clear_has_address();
|
||||
void set_has_amount();
|
||||
void clear_has_amount();
|
||||
class HasBitSetters;
|
||||
|
||||
// helper for ByteSizeLong()
|
||||
size_t RequiredFieldsByteSizeFallback() const;
|
||||
|
@ -307,7 +311,7 @@ class Fee : public ::google::protobuf::Message /* @@protoc_insertion_point(class
|
|||
int version_;
|
||||
int currency_;
|
||||
float amount_;
|
||||
friend struct ::protobuf_fee_2eproto::TableStruct;
|
||||
friend struct ::TableStruct_fee_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
@ -320,144 +324,120 @@ class Fee : public ::google::protobuf::Message /* @@protoc_insertion_point(class
|
|||
#endif // __GNUC__
|
||||
// Fee
|
||||
|
||||
// required .pb.Fee.Version version = 1;
|
||||
// required .legacy_pb.Fee.Version version = 1;
|
||||
inline bool Fee::has_version() const {
|
||||
return (_has_bits_[0] & 0x00000002u) != 0;
|
||||
}
|
||||
inline void Fee::set_has_version() {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
}
|
||||
inline void Fee::clear_has_version() {
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline void Fee::clear_version() {
|
||||
version_ = 0;
|
||||
clear_has_version();
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline ::pb::Fee_Version Fee::version() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Fee.version)
|
||||
return static_cast< ::pb::Fee_Version >(version_);
|
||||
inline ::legacy_pb::Fee_Version Fee::version() const {
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Fee.version)
|
||||
return static_cast< ::legacy_pb::Fee_Version >(version_);
|
||||
}
|
||||
inline void Fee::set_version(::pb::Fee_Version value) {
|
||||
assert(::pb::Fee_Version_IsValid(value));
|
||||
set_has_version();
|
||||
inline void Fee::set_version(::legacy_pb::Fee_Version value) {
|
||||
assert(::legacy_pb::Fee_Version_IsValid(value));
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
version_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Fee.version)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Fee.version)
|
||||
}
|
||||
|
||||
// required .pb.Fee.Currency currency = 2;
|
||||
// required .legacy_pb.Fee.Currency currency = 2;
|
||||
inline bool Fee::has_currency() const {
|
||||
return (_has_bits_[0] & 0x00000004u) != 0;
|
||||
}
|
||||
inline void Fee::set_has_currency() {
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
}
|
||||
inline void Fee::clear_has_currency() {
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline void Fee::clear_currency() {
|
||||
currency_ = 0;
|
||||
clear_has_currency();
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline ::pb::Fee_Currency Fee::currency() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Fee.currency)
|
||||
return static_cast< ::pb::Fee_Currency >(currency_);
|
||||
inline ::legacy_pb::Fee_Currency Fee::currency() const {
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Fee.currency)
|
||||
return static_cast< ::legacy_pb::Fee_Currency >(currency_);
|
||||
}
|
||||
inline void Fee::set_currency(::pb::Fee_Currency value) {
|
||||
assert(::pb::Fee_Currency_IsValid(value));
|
||||
set_has_currency();
|
||||
inline void Fee::set_currency(::legacy_pb::Fee_Currency value) {
|
||||
assert(::legacy_pb::Fee_Currency_IsValid(value));
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
currency_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Fee.currency)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Fee.currency)
|
||||
}
|
||||
|
||||
// required bytes address = 3;
|
||||
inline bool Fee::has_address() const {
|
||||
return (_has_bits_[0] & 0x00000001u) != 0;
|
||||
}
|
||||
inline void Fee::set_has_address() {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
}
|
||||
inline void Fee::clear_has_address() {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline void Fee::clear_address() {
|
||||
address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
clear_has_address();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline const ::std::string& Fee::address() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Fee.address)
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Fee.address)
|
||||
return address_.GetNoArena();
|
||||
}
|
||||
inline void Fee::set_address(const ::std::string& value) {
|
||||
set_has_address();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
||||
// @@protoc_insertion_point(field_set:pb.Fee.address)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Fee.address)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Fee::set_address(::std::string&& value) {
|
||||
set_has_address();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
address_.SetNoArena(
|
||||
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
||||
// @@protoc_insertion_point(field_set_rvalue:pb.Fee.address)
|
||||
// @@protoc_insertion_point(field_set_rvalue:legacy_pb.Fee.address)
|
||||
}
|
||||
#endif
|
||||
inline void Fee::set_address(const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
set_has_address();
|
||||
GOOGLE_DCHECK(value != nullptr);
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
||||
// @@protoc_insertion_point(field_set_char:pb.Fee.address)
|
||||
// @@protoc_insertion_point(field_set_char:legacy_pb.Fee.address)
|
||||
}
|
||||
inline void Fee::set_address(const void* value, size_t size) {
|
||||
set_has_address();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
::std::string(reinterpret_cast<const char*>(value), size));
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Fee.address)
|
||||
// @@protoc_insertion_point(field_set_pointer:legacy_pb.Fee.address)
|
||||
}
|
||||
inline ::std::string* Fee::mutable_address() {
|
||||
set_has_address();
|
||||
// @@protoc_insertion_point(field_mutable:pb.Fee.address)
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Fee.address)
|
||||
return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline ::std::string* Fee::release_address() {
|
||||
// @@protoc_insertion_point(field_release:pb.Fee.address)
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Fee.address)
|
||||
if (!has_address()) {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
clear_has_address();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline void Fee::set_allocated_address(::std::string* address) {
|
||||
if (address != NULL) {
|
||||
set_has_address();
|
||||
if (address != nullptr) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
clear_has_address();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address);
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Fee.address)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Fee.address)
|
||||
}
|
||||
|
||||
// required float amount = 4;
|
||||
inline bool Fee::has_amount() const {
|
||||
return (_has_bits_[0] & 0x00000008u) != 0;
|
||||
}
|
||||
inline void Fee::set_has_amount() {
|
||||
_has_bits_[0] |= 0x00000008u;
|
||||
}
|
||||
inline void Fee::clear_has_amount() {
|
||||
_has_bits_[0] &= ~0x00000008u;
|
||||
}
|
||||
inline void Fee::clear_amount() {
|
||||
amount_ = 0;
|
||||
clear_has_amount();
|
||||
_has_bits_[0] &= ~0x00000008u;
|
||||
}
|
||||
inline float Fee::amount() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Fee.amount)
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Fee.amount)
|
||||
return amount_;
|
||||
}
|
||||
inline void Fee::set_amount(float value) {
|
||||
set_has_amount();
|
||||
_has_bits_[0] |= 0x00000008u;
|
||||
amount_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Fee.amount)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Fee.amount)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
@ -466,20 +446,20 @@ inline void Fee::set_amount(float value) {
|
|||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
|
||||
template <> struct is_proto_enum< ::pb::Fee_Version> : ::std::true_type {};
|
||||
template <> struct is_proto_enum< ::legacy_pb::Fee_Version> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::pb::Fee_Version>() {
|
||||
return ::pb::Fee_Version_descriptor();
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::Fee_Version>() {
|
||||
return ::legacy_pb::Fee_Version_descriptor();
|
||||
}
|
||||
template <> struct is_proto_enum< ::pb::Fee_Currency> : ::std::true_type {};
|
||||
template <> struct is_proto_enum< ::legacy_pb::Fee_Currency> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::pb::Fee_Currency>() {
|
||||
return ::pb::Fee_Currency_descriptor();
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::Fee_Currency>() {
|
||||
return ::legacy_pb::Fee_Currency_descriptor();
|
||||
}
|
||||
|
||||
} // namespace protobuf
|
||||
|
@ -487,4 +467,5 @@ inline const EnumDescriptor* GetEnumDescriptor< ::pb::Fee_Currency>() {
|
|||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#endif // PROTOBUF_INCLUDED_fee_2eproto
|
||||
|
|
779
v1/cpp/legacy_claim.pb.cc
Normal file
779
v1/cpp/legacy_claim.pb.cc
Normal file
|
@ -0,0 +1,779 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: legacy_claim.proto
|
||||
|
||||
#include "legacy_claim.pb.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/extension_set.h>
|
||||
#include <google/protobuf/wire_format_lite_inl.h>
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/reflection_ops.h>
|
||||
#include <google/protobuf/wire_format.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
|
||||
extern PROTOBUF_INTERNAL_EXPORT_certificate_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Certificate_certificate_2eproto;
|
||||
extern PROTOBUF_INTERNAL_EXPORT_signature_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Signature_signature_2eproto;
|
||||
extern PROTOBUF_INTERNAL_EXPORT_stream_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Stream_stream_2eproto;
|
||||
namespace legacy_pb {
|
||||
class ClaimDefaultTypeInternal {
|
||||
public:
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Claim> _instance;
|
||||
} _Claim_default_instance_;
|
||||
} // namespace legacy_pb
|
||||
static void InitDefaultsClaim_legacy_5fclaim_2eproto() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
{
|
||||
void* ptr = &::legacy_pb::_Claim_default_instance_;
|
||||
new (ptr) ::legacy_pb::Claim();
|
||||
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
||||
}
|
||||
::legacy_pb::Claim::InitAsDefaultInstance();
|
||||
}
|
||||
|
||||
::google::protobuf::internal::SCCInfo<3> scc_info_Claim_legacy_5fclaim_2eproto =
|
||||
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsClaim_legacy_5fclaim_2eproto}, {
|
||||
&scc_info_Stream_stream_2eproto.base,
|
||||
&scc_info_Certificate_certificate_2eproto.base,
|
||||
&scc_info_Signature_signature_2eproto.base,}};
|
||||
|
||||
void InitDefaults_legacy_5fclaim_2eproto() {
|
||||
::google::protobuf::internal::InitSCC(&scc_info_Claim_legacy_5fclaim_2eproto.base);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata file_level_metadata_legacy_5fclaim_2eproto[1];
|
||||
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_legacy_5fclaim_2eproto[2];
|
||||
constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_legacy_5fclaim_2eproto = nullptr;
|
||||
|
||||
const ::google::protobuf::uint32 TableStruct_legacy_5fclaim_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Claim, _has_bits_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Claim, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Claim, version_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Claim, claimtype_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Claim, stream_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Claim, certificate_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Claim, publishersignature_),
|
||||
3,
|
||||
4,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
};
|
||||
static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 10, sizeof(::legacy_pb::Claim)},
|
||||
};
|
||||
|
||||
static ::google::protobuf::Message const * const file_default_instances[] = {
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::legacy_pb::_Claim_default_instance_),
|
||||
};
|
||||
|
||||
::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_legacy_5fclaim_2eproto = {
|
||||
{}, AddDescriptors_legacy_5fclaim_2eproto, "legacy_claim.proto", schemas,
|
||||
file_default_instances, TableStruct_legacy_5fclaim_2eproto::offsets,
|
||||
file_level_metadata_legacy_5fclaim_2eproto, 1, file_level_enum_descriptors_legacy_5fclaim_2eproto, file_level_service_descriptors_legacy_5fclaim_2eproto,
|
||||
};
|
||||
|
||||
const char descriptor_table_protodef_legacy_5fclaim_2eproto[] =
|
||||
"\n\022legacy_claim.proto\022\tlegacy_pb\032\014stream."
|
||||
"proto\032\021certificate.proto\032\017signature.prot"
|
||||
"o\"\331\002\n\005Claim\022)\n\007version\030\001 \002(\0162\030.legacy_pb"
|
||||
".Claim.Version\022-\n\tclaimType\030\002 \002(\0162\032.lega"
|
||||
"cy_pb.Claim.ClaimType\022!\n\006stream\030\003 \001(\0132\021."
|
||||
"legacy_pb.Stream\022+\n\013certificate\030\004 \001(\0132\026."
|
||||
"legacy_pb.Certificate\0220\n\022publisherSignat"
|
||||
"ure\030\005 \001(\0132\024.legacy_pb.Signature\"*\n\007Versi"
|
||||
"on\022\023\n\017UNKNOWN_VERSION\020\000\022\n\n\006_0_0_1\020\001\"H\n\tC"
|
||||
"laimType\022\026\n\022UNKNOWN_CLAIM_TYPE\020\000\022\016\n\nstre"
|
||||
"amType\020\001\022\023\n\017certificateType\020\002"
|
||||
;
|
||||
::google::protobuf::internal::DescriptorTable descriptor_table_legacy_5fclaim_2eproto = {
|
||||
false, InitDefaults_legacy_5fclaim_2eproto,
|
||||
descriptor_table_protodef_legacy_5fclaim_2eproto,
|
||||
"legacy_claim.proto", &assign_descriptors_table_legacy_5fclaim_2eproto, 429,
|
||||
};
|
||||
|
||||
void AddDescriptors_legacy_5fclaim_2eproto() {
|
||||
static constexpr ::google::protobuf::internal::InitFunc deps[3] =
|
||||
{
|
||||
::AddDescriptors_stream_2eproto,
|
||||
::AddDescriptors_certificate_2eproto,
|
||||
::AddDescriptors_signature_2eproto,
|
||||
};
|
||||
::google::protobuf::internal::AddDescriptors(&descriptor_table_legacy_5fclaim_2eproto, deps, 3);
|
||||
}
|
||||
|
||||
// Force running AddDescriptors() at dynamic initialization time.
|
||||
static bool dynamic_init_dummy_legacy_5fclaim_2eproto = []() { AddDescriptors_legacy_5fclaim_2eproto(); return true; }();
|
||||
namespace legacy_pb {
|
||||
const ::google::protobuf::EnumDescriptor* Claim_Version_descriptor() {
|
||||
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_legacy_5fclaim_2eproto);
|
||||
return file_level_enum_descriptors_legacy_5fclaim_2eproto[0];
|
||||
}
|
||||
bool Claim_Version_IsValid(int value) {
|
||||
switch (value) {
|
||||
case 0:
|
||||
case 1:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const Claim_Version Claim::UNKNOWN_VERSION;
|
||||
const Claim_Version Claim::_0_0_1;
|
||||
const Claim_Version Claim::Version_MIN;
|
||||
const Claim_Version Claim::Version_MAX;
|
||||
const int Claim::Version_ARRAYSIZE;
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const ::google::protobuf::EnumDescriptor* Claim_ClaimType_descriptor() {
|
||||
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_legacy_5fclaim_2eproto);
|
||||
return file_level_enum_descriptors_legacy_5fclaim_2eproto[1];
|
||||
}
|
||||
bool Claim_ClaimType_IsValid(int value) {
|
||||
switch (value) {
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const Claim_ClaimType Claim::UNKNOWN_CLAIM_TYPE;
|
||||
const Claim_ClaimType Claim::streamType;
|
||||
const Claim_ClaimType Claim::certificateType;
|
||||
const Claim_ClaimType Claim::ClaimType_MIN;
|
||||
const Claim_ClaimType Claim::ClaimType_MAX;
|
||||
const int Claim::ClaimType_ARRAYSIZE;
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
||||
// ===================================================================
|
||||
|
||||
void Claim::InitAsDefaultInstance() {
|
||||
::legacy_pb::_Claim_default_instance_._instance.get_mutable()->stream_ = const_cast< ::legacy_pb::Stream*>(
|
||||
::legacy_pb::Stream::internal_default_instance());
|
||||
::legacy_pb::_Claim_default_instance_._instance.get_mutable()->certificate_ = const_cast< ::legacy_pb::Certificate*>(
|
||||
::legacy_pb::Certificate::internal_default_instance());
|
||||
::legacy_pb::_Claim_default_instance_._instance.get_mutable()->publishersignature_ = const_cast< ::legacy_pb::Signature*>(
|
||||
::legacy_pb::Signature::internal_default_instance());
|
||||
}
|
||||
class Claim::HasBitSetters {
|
||||
public:
|
||||
static void set_has_version(Claim* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000008u;
|
||||
}
|
||||
static void set_has_claimtype(Claim* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000010u;
|
||||
}
|
||||
static const ::legacy_pb::Stream& stream(const Claim* msg);
|
||||
static void set_has_stream(Claim* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000001u;
|
||||
}
|
||||
static const ::legacy_pb::Certificate& certificate(const Claim* msg);
|
||||
static void set_has_certificate(Claim* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000002u;
|
||||
}
|
||||
static const ::legacy_pb::Signature& publishersignature(const Claim* msg);
|
||||
static void set_has_publishersignature(Claim* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000004u;
|
||||
}
|
||||
};
|
||||
|
||||
const ::legacy_pb::Stream&
|
||||
Claim::HasBitSetters::stream(const Claim* msg) {
|
||||
return *msg->stream_;
|
||||
}
|
||||
const ::legacy_pb::Certificate&
|
||||
Claim::HasBitSetters::certificate(const Claim* msg) {
|
||||
return *msg->certificate_;
|
||||
}
|
||||
const ::legacy_pb::Signature&
|
||||
Claim::HasBitSetters::publishersignature(const Claim* msg) {
|
||||
return *msg->publishersignature_;
|
||||
}
|
||||
void Claim::clear_stream() {
|
||||
if (stream_ != nullptr) stream_->Clear();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
void Claim::clear_certificate() {
|
||||
if (certificate_ != nullptr) certificate_->Clear();
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
void Claim::clear_publishersignature() {
|
||||
if (publishersignature_ != nullptr) publishersignature_->Clear();
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const int Claim::kVersionFieldNumber;
|
||||
const int Claim::kClaimTypeFieldNumber;
|
||||
const int Claim::kStreamFieldNumber;
|
||||
const int Claim::kCertificateFieldNumber;
|
||||
const int Claim::kPublisherSignatureFieldNumber;
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
||||
Claim::Claim()
|
||||
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:legacy_pb.Claim)
|
||||
}
|
||||
Claim::Claim(const Claim& from)
|
||||
: ::google::protobuf::Message(),
|
||||
_internal_metadata_(nullptr),
|
||||
_has_bits_(from._has_bits_) {
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
if (from.has_stream()) {
|
||||
stream_ = new ::legacy_pb::Stream(*from.stream_);
|
||||
} else {
|
||||
stream_ = nullptr;
|
||||
}
|
||||
if (from.has_certificate()) {
|
||||
certificate_ = new ::legacy_pb::Certificate(*from.certificate_);
|
||||
} else {
|
||||
certificate_ = nullptr;
|
||||
}
|
||||
if (from.has_publishersignature()) {
|
||||
publishersignature_ = new ::legacy_pb::Signature(*from.publishersignature_);
|
||||
} else {
|
||||
publishersignature_ = nullptr;
|
||||
}
|
||||
::memcpy(&version_, &from.version_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&claimtype_) -
|
||||
reinterpret_cast<char*>(&version_)) + sizeof(claimtype_));
|
||||
// @@protoc_insertion_point(copy_constructor:legacy_pb.Claim)
|
||||
}
|
||||
|
||||
void Claim::SharedCtor() {
|
||||
::google::protobuf::internal::InitSCC(
|
||||
&scc_info_Claim_legacy_5fclaim_2eproto.base);
|
||||
::memset(&stream_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&claimtype_) -
|
||||
reinterpret_cast<char*>(&stream_)) + sizeof(claimtype_));
|
||||
}
|
||||
|
||||
Claim::~Claim() {
|
||||
// @@protoc_insertion_point(destructor:legacy_pb.Claim)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
void Claim::SharedDtor() {
|
||||
if (this != internal_default_instance()) delete stream_;
|
||||
if (this != internal_default_instance()) delete certificate_;
|
||||
if (this != internal_default_instance()) delete publishersignature_;
|
||||
}
|
||||
|
||||
void Claim::SetCachedSize(int size) const {
|
||||
_cached_size_.Set(size);
|
||||
}
|
||||
const Claim& Claim::default_instance() {
|
||||
::google::protobuf::internal::InitSCC(&::scc_info_Claim_legacy_5fclaim_2eproto.base);
|
||||
return *internal_default_instance();
|
||||
}
|
||||
|
||||
|
||||
void Claim::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:legacy_pb.Claim)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
if (cached_has_bits & 0x00000007u) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
GOOGLE_DCHECK(stream_ != nullptr);
|
||||
stream_->Clear();
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
GOOGLE_DCHECK(certificate_ != nullptr);
|
||||
certificate_->Clear();
|
||||
}
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
GOOGLE_DCHECK(publishersignature_ != nullptr);
|
||||
publishersignature_->Clear();
|
||||
}
|
||||
}
|
||||
if (cached_has_bits & 0x00000018u) {
|
||||
::memset(&version_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&claimtype_) -
|
||||
reinterpret_cast<char*>(&version_)) + sizeof(claimtype_));
|
||||
}
|
||||
_has_bits_.Clear();
|
||||
_internal_metadata_.Clear();
|
||||
}
|
||||
|
||||
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
const char* Claim::_InternalParse(const char* begin, const char* end, void* object,
|
||||
::google::protobuf::internal::ParseContext* ctx) {
|
||||
auto msg = static_cast<Claim*>(object);
|
||||
::google::protobuf::int32 size; (void)size;
|
||||
int depth; (void)depth;
|
||||
::google::protobuf::uint32 tag;
|
||||
::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
|
||||
auto ptr = begin;
|
||||
while (ptr < end) {
|
||||
ptr = ::google::protobuf::io::Parse32(ptr, &tag);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
switch (tag >> 3) {
|
||||
// required .legacy_pb.Claim.Version version = 1;
|
||||
case 1: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
|
||||
::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
|
||||
if (!::legacy_pb::Claim_Version_IsValid(val)) {
|
||||
::google::protobuf::internal::WriteVarint(1, val, msg->mutable_unknown_fields());
|
||||
break;
|
||||
}
|
||||
msg->set_version(static_cast<::legacy_pb::Claim_Version>(val));
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
break;
|
||||
}
|
||||
// required .legacy_pb.Claim.ClaimType claimType = 2;
|
||||
case 2: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
|
||||
::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
|
||||
if (!::legacy_pb::Claim_ClaimType_IsValid(val)) {
|
||||
::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields());
|
||||
break;
|
||||
}
|
||||
msg->set_claimtype(static_cast<::legacy_pb::Claim_ClaimType>(val));
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
break;
|
||||
}
|
||||
// optional .legacy_pb.Stream stream = 3;
|
||||
case 3: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
|
||||
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
parser_till_end = ::legacy_pb::Stream::_InternalParse;
|
||||
object = msg->mutable_stream();
|
||||
if (size > end - ptr) goto len_delim_till_end;
|
||||
ptr += size;
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
|
||||
{parser_till_end, object}, ptr - size, ptr));
|
||||
break;
|
||||
}
|
||||
// optional .legacy_pb.Certificate certificate = 4;
|
||||
case 4: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
|
||||
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
parser_till_end = ::legacy_pb::Certificate::_InternalParse;
|
||||
object = msg->mutable_certificate();
|
||||
if (size > end - ptr) goto len_delim_till_end;
|
||||
ptr += size;
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
|
||||
{parser_till_end, object}, ptr - size, ptr));
|
||||
break;
|
||||
}
|
||||
// optional .legacy_pb.Signature publisherSignature = 5;
|
||||
case 5: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
|
||||
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
parser_till_end = ::legacy_pb::Signature::_InternalParse;
|
||||
object = msg->mutable_publishersignature();
|
||||
if (size > end - ptr) goto len_delim_till_end;
|
||||
ptr += size;
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
|
||||
{parser_till_end, object}, ptr - size, ptr));
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
handle_unusual:
|
||||
if ((tag & 7) == 4 || tag == 0) {
|
||||
ctx->EndGroup(tag);
|
||||
return ptr;
|
||||
}
|
||||
auto res = UnknownFieldParse(tag, {_InternalParse, msg},
|
||||
ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
|
||||
ptr = res.first;
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
|
||||
if (res.second) return ptr;
|
||||
}
|
||||
} // switch
|
||||
} // while
|
||||
return ptr;
|
||||
len_delim_till_end:
|
||||
return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
|
||||
{parser_till_end, object}, size);
|
||||
}
|
||||
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
bool Claim::MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) {
|
||||
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
::google::protobuf::uint32 tag;
|
||||
// @@protoc_insertion_point(parse_start:legacy_pb.Claim)
|
||||
for (;;) {
|
||||
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
||||
tag = p.first;
|
||||
if (!p.second) goto handle_unusual;
|
||||
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
||||
// required .legacy_pb.Claim.Version version = 1;
|
||||
case 1: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
|
||||
int value = 0;
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
||||
input, &value)));
|
||||
if (::legacy_pb::Claim_Version_IsValid(value)) {
|
||||
set_version(static_cast< ::legacy_pb::Claim_Version >(value));
|
||||
} else {
|
||||
mutable_unknown_fields()->AddVarint(
|
||||
1, static_cast<::google::protobuf::uint64>(value));
|
||||
}
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// required .legacy_pb.Claim.ClaimType claimType = 2;
|
||||
case 2: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
|
||||
int value = 0;
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
||||
input, &value)));
|
||||
if (::legacy_pb::Claim_ClaimType_IsValid(value)) {
|
||||
set_claimtype(static_cast< ::legacy_pb::Claim_ClaimType >(value));
|
||||
} else {
|
||||
mutable_unknown_fields()->AddVarint(
|
||||
2, static_cast<::google::protobuf::uint64>(value));
|
||||
}
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// optional .legacy_pb.Stream stream = 3;
|
||||
case 3: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
||||
input, mutable_stream()));
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// optional .legacy_pb.Certificate certificate = 4;
|
||||
case 4: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
||||
input, mutable_certificate()));
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// optional .legacy_pb.Signature publisherSignature = 5;
|
||||
case 5: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
||||
input, mutable_publishersignature()));
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
handle_unusual:
|
||||
if (tag == 0) {
|
||||
goto success;
|
||||
}
|
||||
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
||||
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
success:
|
||||
// @@protoc_insertion_point(parse_success:legacy_pb.Claim)
|
||||
return true;
|
||||
failure:
|
||||
// @@protoc_insertion_point(parse_failure:legacy_pb.Claim)
|
||||
return false;
|
||||
#undef DO_
|
||||
}
|
||||
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
|
||||
void Claim::SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const {
|
||||
// @@protoc_insertion_point(serialize_start:legacy_pb.Claim)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .legacy_pb.Claim.Version version = 1;
|
||||
if (cached_has_bits & 0x00000008u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
1, this->version(), output);
|
||||
}
|
||||
|
||||
// required .legacy_pb.Claim.ClaimType claimType = 2;
|
||||
if (cached_has_bits & 0x00000010u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
2, this->claimtype(), output);
|
||||
}
|
||||
|
||||
// optional .legacy_pb.Stream stream = 3;
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
||||
3, HasBitSetters::stream(this), output);
|
||||
}
|
||||
|
||||
// optional .legacy_pb.Certificate certificate = 4;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
||||
4, HasBitSetters::certificate(this), output);
|
||||
}
|
||||
|
||||
// optional .legacy_pb.Signature publisherSignature = 5;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
||||
5, HasBitSetters::publishersignature(this), output);
|
||||
}
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
||||
_internal_metadata_.unknown_fields(), output);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_end:legacy_pb.Claim)
|
||||
}
|
||||
|
||||
::google::protobuf::uint8* Claim::InternalSerializeWithCachedSizesToArray(
|
||||
::google::protobuf::uint8* target) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:legacy_pb.Claim)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .legacy_pb.Claim.Version version = 1;
|
||||
if (cached_has_bits & 0x00000008u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
||||
1, this->version(), target);
|
||||
}
|
||||
|
||||
// required .legacy_pb.Claim.ClaimType claimType = 2;
|
||||
if (cached_has_bits & 0x00000010u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
||||
2, this->claimtype(), target);
|
||||
}
|
||||
|
||||
// optional .legacy_pb.Stream stream = 3;
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::
|
||||
InternalWriteMessageToArray(
|
||||
3, HasBitSetters::stream(this), target);
|
||||
}
|
||||
|
||||
// optional .legacy_pb.Certificate certificate = 4;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::
|
||||
InternalWriteMessageToArray(
|
||||
4, HasBitSetters::certificate(this), target);
|
||||
}
|
||||
|
||||
// optional .legacy_pb.Signature publisherSignature = 5;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::
|
||||
InternalWriteMessageToArray(
|
||||
5, HasBitSetters::publishersignature(this), target);
|
||||
}
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields(), target);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:legacy_pb.Claim)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t Claim::RequiredFieldsByteSizeFallback() const {
|
||||
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:legacy_pb.Claim)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (has_version()) {
|
||||
// required .legacy_pb.Claim.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
}
|
||||
|
||||
if (has_claimtype()) {
|
||||
// required .legacy_pb.Claim.ClaimType claimType = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->claimtype());
|
||||
}
|
||||
|
||||
return total_size;
|
||||
}
|
||||
size_t Claim::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:legacy_pb.Claim)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
total_size +=
|
||||
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
||||
_internal_metadata_.unknown_fields());
|
||||
}
|
||||
if (((_has_bits_[0] & 0x00000018) ^ 0x00000018) == 0) { // All required fields are present.
|
||||
// required .legacy_pb.Claim.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
|
||||
// required .legacy_pb.Claim.ClaimType claimType = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->claimtype());
|
||||
|
||||
} else {
|
||||
total_size += RequiredFieldsByteSizeFallback();
|
||||
}
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
if (cached_has_bits & 0x00000007u) {
|
||||
// optional .legacy_pb.Stream stream = 3;
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||||
*stream_);
|
||||
}
|
||||
|
||||
// optional .legacy_pb.Certificate certificate = 4;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||||
*certificate_);
|
||||
}
|
||||
|
||||
// optional .legacy_pb.Signature publisherSignature = 5;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||||
*publishersignature_);
|
||||
}
|
||||
|
||||
}
|
||||
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
||||
SetCachedSize(cached_size);
|
||||
return total_size;
|
||||
}
|
||||
|
||||
void Claim::MergeFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:legacy_pb.Claim)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
const Claim* source =
|
||||
::google::protobuf::DynamicCastToGenerated<Claim>(
|
||||
&from);
|
||||
if (source == nullptr) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:legacy_pb.Claim)
|
||||
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
||||
} else {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:legacy_pb.Claim)
|
||||
MergeFrom(*source);
|
||||
}
|
||||
}
|
||||
|
||||
void Claim::MergeFrom(const Claim& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:legacy_pb.Claim)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = from._has_bits_[0];
|
||||
if (cached_has_bits & 0x0000001fu) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
mutable_stream()->::legacy_pb::Stream::MergeFrom(from.stream());
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
mutable_certificate()->::legacy_pb::Certificate::MergeFrom(from.certificate());
|
||||
}
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
mutable_publishersignature()->::legacy_pb::Signature::MergeFrom(from.publishersignature());
|
||||
}
|
||||
if (cached_has_bits & 0x00000008u) {
|
||||
version_ = from.version_;
|
||||
}
|
||||
if (cached_has_bits & 0x00000010u) {
|
||||
claimtype_ = from.claimtype_;
|
||||
}
|
||||
_has_bits_[0] |= cached_has_bits;
|
||||
}
|
||||
}
|
||||
|
||||
void Claim::CopyFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:legacy_pb.Claim)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
void Claim::CopyFrom(const Claim& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:legacy_pb.Claim)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool Claim::IsInitialized() const {
|
||||
if ((_has_bits_[0] & 0x00000018) != 0x00000018) return false;
|
||||
if (has_stream()) {
|
||||
if (!this->stream_->IsInitialized()) return false;
|
||||
}
|
||||
if (has_certificate()) {
|
||||
if (!this->certificate_->IsInitialized()) return false;
|
||||
}
|
||||
if (has_publishersignature()) {
|
||||
if (!this->publishersignature_->IsInitialized()) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void Claim::Swap(Claim* other) {
|
||||
if (other == this) return;
|
||||
InternalSwap(other);
|
||||
}
|
||||
void Claim::InternalSwap(Claim* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
swap(_has_bits_[0], other->_has_bits_[0]);
|
||||
swap(stream_, other->stream_);
|
||||
swap(certificate_, other->certificate_);
|
||||
swap(publishersignature_, other->publishersignature_);
|
||||
swap(version_, other->version_);
|
||||
swap(claimtype_, other->claimtype_);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata Claim::GetMetadata() const {
|
||||
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_legacy_5fclaim_2eproto);
|
||||
return ::file_level_metadata_legacy_5fclaim_2eproto[kIndexInFileMessages];
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace legacy_pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> PROTOBUF_NOINLINE ::legacy_pb::Claim* Arena::CreateMaybeMessage< ::legacy_pb::Claim >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::legacy_pb::Claim >(arena);
|
||||
}
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
#include <google/protobuf/port_undef.inc>
|
|
@ -1,24 +1,25 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: claim.proto
|
||||
// source: legacy_claim.proto
|
||||
|
||||
#ifndef PROTOBUF_INCLUDED_claim_2eproto
|
||||
#define PROTOBUF_INCLUDED_claim_2eproto
|
||||
#ifndef PROTOBUF_INCLUDED_legacy_5fclaim_2eproto
|
||||
#define PROTOBUF_INCLUDED_legacy_5fclaim_2eproto
|
||||
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006000
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#if PROTOBUF_VERSION < 3007000
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3007000 < 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 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>
|
||||
|
@ -35,31 +36,33 @@
|
|||
#include "certificate.pb.h"
|
||||
#include "signature.pb.h"
|
||||
// @@protoc_insertion_point(includes)
|
||||
#define PROTOBUF_INTERNAL_EXPORT_protobuf_claim_2eproto
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_legacy_5fclaim_2eproto
|
||||
|
||||
namespace protobuf_claim_2eproto {
|
||||
// Internal implementation detail -- do not use these members.
|
||||
struct TableStruct {
|
||||
static const ::google::protobuf::internal::ParseTableField entries[];
|
||||
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
|
||||
static const ::google::protobuf::internal::ParseTable schema[1];
|
||||
struct TableStruct_legacy_5fclaim_2eproto {
|
||||
static const ::google::protobuf::internal::ParseTableField entries[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::ParseTable schema[1]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
|
||||
static const ::google::protobuf::internal::SerializationTable serialization_table[];
|
||||
static const ::google::protobuf::uint32 offsets[];
|
||||
};
|
||||
void AddDescriptors();
|
||||
} // namespace protobuf_claim_2eproto
|
||||
namespace pb {
|
||||
void AddDescriptors_legacy_5fclaim_2eproto();
|
||||
namespace legacy_pb {
|
||||
class Claim;
|
||||
class ClaimDefaultTypeInternal;
|
||||
extern ClaimDefaultTypeInternal _Claim_default_instance_;
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> ::pb::Claim* Arena::CreateMaybeMessage<::pb::Claim>(Arena*);
|
||||
template<> ::legacy_pb::Claim* Arena::CreateMaybeMessage<::legacy_pb::Claim>(Arena*);
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
|
||||
enum Claim_Version {
|
||||
Claim_Version_UNKNOWN_VERSION = 0,
|
||||
|
@ -102,7 +105,8 @@ inline bool Claim_ClaimType_Parse(
|
|||
}
|
||||
// ===================================================================
|
||||
|
||||
class Claim : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Claim) */ {
|
||||
class Claim final :
|
||||
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Claim) */ {
|
||||
public:
|
||||
Claim();
|
||||
virtual ~Claim();
|
||||
|
@ -135,7 +139,9 @@ class Claim : public ::google::protobuf::Message /* @@protoc_insertion_point(cla
|
|||
return _internal_metadata_.mutable_unknown_fields();
|
||||
}
|
||||
|
||||
static const ::google::protobuf::Descriptor* descriptor();
|
||||
static const ::google::protobuf::Descriptor* descriptor() {
|
||||
return default_instance().GetDescriptor();
|
||||
}
|
||||
static const Claim& default_instance();
|
||||
|
||||
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
||||
|
@ -154,7 +160,7 @@ class Claim : public ::google::protobuf::Message /* @@protoc_insertion_point(cla
|
|||
// implements Message ----------------------------------------------
|
||||
|
||||
inline Claim* New() const final {
|
||||
return CreateMaybeMessage<Claim>(NULL);
|
||||
return CreateMaybeMessage<Claim>(nullptr);
|
||||
}
|
||||
|
||||
Claim* New(::google::protobuf::Arena* arena) const final {
|
||||
|
@ -164,16 +170,21 @@ class Claim : public ::google::protobuf::Message /* @@protoc_insertion_point(cla
|
|||
void MergeFrom(const ::google::protobuf::Message& from) final;
|
||||
void CopyFrom(const Claim& from);
|
||||
void MergeFrom(const Claim& from);
|
||||
void Clear() final;
|
||||
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
||||
bool IsInitialized() const final;
|
||||
|
||||
size_t ByteSizeLong() const final;
|
||||
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
|
||||
::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
|
||||
#else
|
||||
bool MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) final;
|
||||
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
void SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const final;
|
||||
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const final;
|
||||
::google::protobuf::uint8* target) const final;
|
||||
int GetCachedSize() const final { return _cached_size_.Get(); }
|
||||
|
||||
private:
|
||||
|
@ -183,10 +194,10 @@ class Claim : public ::google::protobuf::Message /* @@protoc_insertion_point(cla
|
|||
void InternalSwap(Claim* other);
|
||||
private:
|
||||
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
inline void* MaybeArenaPtr() const {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
public:
|
||||
|
||||
|
@ -250,68 +261,50 @@ class Claim : public ::google::protobuf::Message /* @@protoc_insertion_point(cla
|
|||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
// optional .pb.Stream stream = 3;
|
||||
// optional .legacy_pb.Stream stream = 3;
|
||||
bool has_stream() const;
|
||||
void clear_stream();
|
||||
static const int kStreamFieldNumber = 3;
|
||||
private:
|
||||
const ::pb::Stream& _internal_stream() const;
|
||||
public:
|
||||
const ::pb::Stream& stream() const;
|
||||
::pb::Stream* release_stream();
|
||||
::pb::Stream* mutable_stream();
|
||||
void set_allocated_stream(::pb::Stream* stream);
|
||||
const ::legacy_pb::Stream& stream() const;
|
||||
::legacy_pb::Stream* release_stream();
|
||||
::legacy_pb::Stream* mutable_stream();
|
||||
void set_allocated_stream(::legacy_pb::Stream* stream);
|
||||
|
||||
// optional .pb.Certificate certificate = 4;
|
||||
// optional .legacy_pb.Certificate certificate = 4;
|
||||
bool has_certificate() const;
|
||||
void clear_certificate();
|
||||
static const int kCertificateFieldNumber = 4;
|
||||
private:
|
||||
const ::pb::Certificate& _internal_certificate() const;
|
||||
public:
|
||||
const ::pb::Certificate& certificate() const;
|
||||
::pb::Certificate* release_certificate();
|
||||
::pb::Certificate* mutable_certificate();
|
||||
void set_allocated_certificate(::pb::Certificate* certificate);
|
||||
const ::legacy_pb::Certificate& certificate() const;
|
||||
::legacy_pb::Certificate* release_certificate();
|
||||
::legacy_pb::Certificate* mutable_certificate();
|
||||
void set_allocated_certificate(::legacy_pb::Certificate* certificate);
|
||||
|
||||
// optional .pb.Signature publisherSignature = 5;
|
||||
// optional .legacy_pb.Signature publisherSignature = 5;
|
||||
bool has_publishersignature() const;
|
||||
void clear_publishersignature();
|
||||
static const int kPublisherSignatureFieldNumber = 5;
|
||||
private:
|
||||
const ::pb::Signature& _internal_publishersignature() const;
|
||||
public:
|
||||
const ::pb::Signature& publishersignature() const;
|
||||
::pb::Signature* release_publishersignature();
|
||||
::pb::Signature* mutable_publishersignature();
|
||||
void set_allocated_publishersignature(::pb::Signature* publishersignature);
|
||||
const ::legacy_pb::Signature& publishersignature() const;
|
||||
::legacy_pb::Signature* release_publishersignature();
|
||||
::legacy_pb::Signature* mutable_publishersignature();
|
||||
void set_allocated_publishersignature(::legacy_pb::Signature* publishersignature);
|
||||
|
||||
// required .pb.Claim.Version version = 1;
|
||||
// required .legacy_pb.Claim.Version version = 1;
|
||||
bool has_version() const;
|
||||
void clear_version();
|
||||
static const int kVersionFieldNumber = 1;
|
||||
::pb::Claim_Version version() const;
|
||||
void set_version(::pb::Claim_Version value);
|
||||
::legacy_pb::Claim_Version version() const;
|
||||
void set_version(::legacy_pb::Claim_Version value);
|
||||
|
||||
// required .pb.Claim.ClaimType claimType = 2;
|
||||
// required .legacy_pb.Claim.ClaimType claimType = 2;
|
||||
bool has_claimtype() const;
|
||||
void clear_claimtype();
|
||||
static const int kClaimTypeFieldNumber = 2;
|
||||
::pb::Claim_ClaimType claimtype() const;
|
||||
void set_claimtype(::pb::Claim_ClaimType value);
|
||||
::legacy_pb::Claim_ClaimType claimtype() const;
|
||||
void set_claimtype(::legacy_pb::Claim_ClaimType value);
|
||||
|
||||
// @@protoc_insertion_point(class_scope:pb.Claim)
|
||||
// @@protoc_insertion_point(class_scope:legacy_pb.Claim)
|
||||
private:
|
||||
void set_has_version();
|
||||
void clear_has_version();
|
||||
void set_has_claimtype();
|
||||
void clear_has_claimtype();
|
||||
void set_has_stream();
|
||||
void clear_has_stream();
|
||||
void set_has_certificate();
|
||||
void clear_has_certificate();
|
||||
void set_has_publishersignature();
|
||||
void clear_has_publishersignature();
|
||||
class HasBitSetters;
|
||||
|
||||
// helper for ByteSizeLong()
|
||||
size_t RequiredFieldsByteSizeFallback() const;
|
||||
|
@ -319,12 +312,12 @@ class Claim : public ::google::protobuf::Message /* @@protoc_insertion_point(cla
|
|||
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
|
||||
::google::protobuf::internal::HasBits<1> _has_bits_;
|
||||
mutable ::google::protobuf::internal::CachedSize _cached_size_;
|
||||
::pb::Stream* stream_;
|
||||
::pb::Certificate* certificate_;
|
||||
::pb::Signature* publishersignature_;
|
||||
::legacy_pb::Stream* stream_;
|
||||
::legacy_pb::Certificate* certificate_;
|
||||
::legacy_pb::Signature* publishersignature_;
|
||||
int version_;
|
||||
int claimtype_;
|
||||
friend struct ::protobuf_claim_2eproto::TableStruct;
|
||||
friend struct ::TableStruct_legacy_5fclaim_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
@ -337,216 +330,177 @@ class Claim : public ::google::protobuf::Message /* @@protoc_insertion_point(cla
|
|||
#endif // __GNUC__
|
||||
// Claim
|
||||
|
||||
// required .pb.Claim.Version version = 1;
|
||||
// required .legacy_pb.Claim.Version version = 1;
|
||||
inline bool Claim::has_version() const {
|
||||
return (_has_bits_[0] & 0x00000008u) != 0;
|
||||
}
|
||||
inline void Claim::set_has_version() {
|
||||
_has_bits_[0] |= 0x00000008u;
|
||||
}
|
||||
inline void Claim::clear_has_version() {
|
||||
_has_bits_[0] &= ~0x00000008u;
|
||||
}
|
||||
inline void Claim::clear_version() {
|
||||
version_ = 0;
|
||||
clear_has_version();
|
||||
_has_bits_[0] &= ~0x00000008u;
|
||||
}
|
||||
inline ::pb::Claim_Version Claim::version() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Claim.version)
|
||||
return static_cast< ::pb::Claim_Version >(version_);
|
||||
inline ::legacy_pb::Claim_Version Claim::version() const {
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Claim.version)
|
||||
return static_cast< ::legacy_pb::Claim_Version >(version_);
|
||||
}
|
||||
inline void Claim::set_version(::pb::Claim_Version value) {
|
||||
assert(::pb::Claim_Version_IsValid(value));
|
||||
set_has_version();
|
||||
inline void Claim::set_version(::legacy_pb::Claim_Version value) {
|
||||
assert(::legacy_pb::Claim_Version_IsValid(value));
|
||||
_has_bits_[0] |= 0x00000008u;
|
||||
version_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Claim.version)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Claim.version)
|
||||
}
|
||||
|
||||
// required .pb.Claim.ClaimType claimType = 2;
|
||||
// required .legacy_pb.Claim.ClaimType claimType = 2;
|
||||
inline bool Claim::has_claimtype() const {
|
||||
return (_has_bits_[0] & 0x00000010u) != 0;
|
||||
}
|
||||
inline void Claim::set_has_claimtype() {
|
||||
_has_bits_[0] |= 0x00000010u;
|
||||
}
|
||||
inline void Claim::clear_has_claimtype() {
|
||||
_has_bits_[0] &= ~0x00000010u;
|
||||
}
|
||||
inline void Claim::clear_claimtype() {
|
||||
claimtype_ = 0;
|
||||
clear_has_claimtype();
|
||||
_has_bits_[0] &= ~0x00000010u;
|
||||
}
|
||||
inline ::pb::Claim_ClaimType Claim::claimtype() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Claim.claimType)
|
||||
return static_cast< ::pb::Claim_ClaimType >(claimtype_);
|
||||
inline ::legacy_pb::Claim_ClaimType Claim::claimtype() const {
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Claim.claimType)
|
||||
return static_cast< ::legacy_pb::Claim_ClaimType >(claimtype_);
|
||||
}
|
||||
inline void Claim::set_claimtype(::pb::Claim_ClaimType value) {
|
||||
assert(::pb::Claim_ClaimType_IsValid(value));
|
||||
set_has_claimtype();
|
||||
inline void Claim::set_claimtype(::legacy_pb::Claim_ClaimType value) {
|
||||
assert(::legacy_pb::Claim_ClaimType_IsValid(value));
|
||||
_has_bits_[0] |= 0x00000010u;
|
||||
claimtype_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Claim.claimType)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Claim.claimType)
|
||||
}
|
||||
|
||||
// optional .pb.Stream stream = 3;
|
||||
// optional .legacy_pb.Stream stream = 3;
|
||||
inline bool Claim::has_stream() const {
|
||||
return (_has_bits_[0] & 0x00000001u) != 0;
|
||||
}
|
||||
inline void Claim::set_has_stream() {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
inline const ::legacy_pb::Stream& Claim::stream() const {
|
||||
const ::legacy_pb::Stream* p = stream_;
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Claim.stream)
|
||||
return p != nullptr ? *p : *reinterpret_cast<const ::legacy_pb::Stream*>(
|
||||
&::legacy_pb::_Stream_default_instance_);
|
||||
}
|
||||
inline void Claim::clear_has_stream() {
|
||||
inline ::legacy_pb::Stream* Claim::release_stream() {
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Claim.stream)
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline const ::pb::Stream& Claim::_internal_stream() const {
|
||||
return *stream_;
|
||||
}
|
||||
inline const ::pb::Stream& Claim::stream() const {
|
||||
const ::pb::Stream* p = stream_;
|
||||
// @@protoc_insertion_point(field_get:pb.Claim.stream)
|
||||
return p != NULL ? *p : *reinterpret_cast<const ::pb::Stream*>(
|
||||
&::pb::_Stream_default_instance_);
|
||||
}
|
||||
inline ::pb::Stream* Claim::release_stream() {
|
||||
// @@protoc_insertion_point(field_release:pb.Claim.stream)
|
||||
clear_has_stream();
|
||||
::pb::Stream* temp = stream_;
|
||||
stream_ = NULL;
|
||||
::legacy_pb::Stream* temp = stream_;
|
||||
stream_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::pb::Stream* Claim::mutable_stream() {
|
||||
set_has_stream();
|
||||
if (stream_ == NULL) {
|
||||
auto* p = CreateMaybeMessage<::pb::Stream>(GetArenaNoVirtual());
|
||||
inline ::legacy_pb::Stream* Claim::mutable_stream() {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
if (stream_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::legacy_pb::Stream>(GetArenaNoVirtual());
|
||||
stream_ = p;
|
||||
}
|
||||
// @@protoc_insertion_point(field_mutable:pb.Claim.stream)
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Claim.stream)
|
||||
return stream_;
|
||||
}
|
||||
inline void Claim::set_allocated_stream(::pb::Stream* stream) {
|
||||
inline void Claim::set_allocated_stream(::legacy_pb::Stream* stream) {
|
||||
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
|
||||
if (message_arena == NULL) {
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::google::protobuf::MessageLite*>(stream_);
|
||||
}
|
||||
if (stream) {
|
||||
::google::protobuf::Arena* submessage_arena = NULL;
|
||||
::google::protobuf::Arena* submessage_arena = nullptr;
|
||||
if (message_arena != submessage_arena) {
|
||||
stream = ::google::protobuf::internal::GetOwnedMessage(
|
||||
message_arena, stream, submessage_arena);
|
||||
}
|
||||
set_has_stream();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
clear_has_stream();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
stream_ = stream;
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Claim.stream)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Claim.stream)
|
||||
}
|
||||
|
||||
// optional .pb.Certificate certificate = 4;
|
||||
// optional .legacy_pb.Certificate certificate = 4;
|
||||
inline bool Claim::has_certificate() const {
|
||||
return (_has_bits_[0] & 0x00000002u) != 0;
|
||||
}
|
||||
inline void Claim::set_has_certificate() {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
inline const ::legacy_pb::Certificate& Claim::certificate() const {
|
||||
const ::legacy_pb::Certificate* p = certificate_;
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Claim.certificate)
|
||||
return p != nullptr ? *p : *reinterpret_cast<const ::legacy_pb::Certificate*>(
|
||||
&::legacy_pb::_Certificate_default_instance_);
|
||||
}
|
||||
inline void Claim::clear_has_certificate() {
|
||||
inline ::legacy_pb::Certificate* Claim::release_certificate() {
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Claim.certificate)
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline const ::pb::Certificate& Claim::_internal_certificate() const {
|
||||
return *certificate_;
|
||||
}
|
||||
inline const ::pb::Certificate& Claim::certificate() const {
|
||||
const ::pb::Certificate* p = certificate_;
|
||||
// @@protoc_insertion_point(field_get:pb.Claim.certificate)
|
||||
return p != NULL ? *p : *reinterpret_cast<const ::pb::Certificate*>(
|
||||
&::pb::_Certificate_default_instance_);
|
||||
}
|
||||
inline ::pb::Certificate* Claim::release_certificate() {
|
||||
// @@protoc_insertion_point(field_release:pb.Claim.certificate)
|
||||
clear_has_certificate();
|
||||
::pb::Certificate* temp = certificate_;
|
||||
certificate_ = NULL;
|
||||
::legacy_pb::Certificate* temp = certificate_;
|
||||
certificate_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::pb::Certificate* Claim::mutable_certificate() {
|
||||
set_has_certificate();
|
||||
if (certificate_ == NULL) {
|
||||
auto* p = CreateMaybeMessage<::pb::Certificate>(GetArenaNoVirtual());
|
||||
inline ::legacy_pb::Certificate* Claim::mutable_certificate() {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
if (certificate_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::legacy_pb::Certificate>(GetArenaNoVirtual());
|
||||
certificate_ = p;
|
||||
}
|
||||
// @@protoc_insertion_point(field_mutable:pb.Claim.certificate)
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Claim.certificate)
|
||||
return certificate_;
|
||||
}
|
||||
inline void Claim::set_allocated_certificate(::pb::Certificate* certificate) {
|
||||
inline void Claim::set_allocated_certificate(::legacy_pb::Certificate* certificate) {
|
||||
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
|
||||
if (message_arena == NULL) {
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::google::protobuf::MessageLite*>(certificate_);
|
||||
}
|
||||
if (certificate) {
|
||||
::google::protobuf::Arena* submessage_arena = NULL;
|
||||
::google::protobuf::Arena* submessage_arena = nullptr;
|
||||
if (message_arena != submessage_arena) {
|
||||
certificate = ::google::protobuf::internal::GetOwnedMessage(
|
||||
message_arena, certificate, submessage_arena);
|
||||
}
|
||||
set_has_certificate();
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
} else {
|
||||
clear_has_certificate();
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
certificate_ = certificate;
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Claim.certificate)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Claim.certificate)
|
||||
}
|
||||
|
||||
// optional .pb.Signature publisherSignature = 5;
|
||||
// optional .legacy_pb.Signature publisherSignature = 5;
|
||||
inline bool Claim::has_publishersignature() const {
|
||||
return (_has_bits_[0] & 0x00000004u) != 0;
|
||||
}
|
||||
inline void Claim::set_has_publishersignature() {
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
inline const ::legacy_pb::Signature& Claim::publishersignature() const {
|
||||
const ::legacy_pb::Signature* p = publishersignature_;
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Claim.publisherSignature)
|
||||
return p != nullptr ? *p : *reinterpret_cast<const ::legacy_pb::Signature*>(
|
||||
&::legacy_pb::_Signature_default_instance_);
|
||||
}
|
||||
inline void Claim::clear_has_publishersignature() {
|
||||
inline ::legacy_pb::Signature* Claim::release_publishersignature() {
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Claim.publisherSignature)
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline const ::pb::Signature& Claim::_internal_publishersignature() const {
|
||||
return *publishersignature_;
|
||||
}
|
||||
inline const ::pb::Signature& Claim::publishersignature() const {
|
||||
const ::pb::Signature* p = publishersignature_;
|
||||
// @@protoc_insertion_point(field_get:pb.Claim.publisherSignature)
|
||||
return p != NULL ? *p : *reinterpret_cast<const ::pb::Signature*>(
|
||||
&::pb::_Signature_default_instance_);
|
||||
}
|
||||
inline ::pb::Signature* Claim::release_publishersignature() {
|
||||
// @@protoc_insertion_point(field_release:pb.Claim.publisherSignature)
|
||||
clear_has_publishersignature();
|
||||
::pb::Signature* temp = publishersignature_;
|
||||
publishersignature_ = NULL;
|
||||
::legacy_pb::Signature* temp = publishersignature_;
|
||||
publishersignature_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::pb::Signature* Claim::mutable_publishersignature() {
|
||||
set_has_publishersignature();
|
||||
if (publishersignature_ == NULL) {
|
||||
auto* p = CreateMaybeMessage<::pb::Signature>(GetArenaNoVirtual());
|
||||
inline ::legacy_pb::Signature* Claim::mutable_publishersignature() {
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
if (publishersignature_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::legacy_pb::Signature>(GetArenaNoVirtual());
|
||||
publishersignature_ = p;
|
||||
}
|
||||
// @@protoc_insertion_point(field_mutable:pb.Claim.publisherSignature)
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Claim.publisherSignature)
|
||||
return publishersignature_;
|
||||
}
|
||||
inline void Claim::set_allocated_publishersignature(::pb::Signature* publishersignature) {
|
||||
inline void Claim::set_allocated_publishersignature(::legacy_pb::Signature* publishersignature) {
|
||||
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
|
||||
if (message_arena == NULL) {
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::google::protobuf::MessageLite*>(publishersignature_);
|
||||
}
|
||||
if (publishersignature) {
|
||||
::google::protobuf::Arena* submessage_arena = NULL;
|
||||
::google::protobuf::Arena* submessage_arena = nullptr;
|
||||
if (message_arena != submessage_arena) {
|
||||
publishersignature = ::google::protobuf::internal::GetOwnedMessage(
|
||||
message_arena, publishersignature, submessage_arena);
|
||||
}
|
||||
set_has_publishersignature();
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
} else {
|
||||
clear_has_publishersignature();
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
publishersignature_ = publishersignature;
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Claim.publisherSignature)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Claim.publisherSignature)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
@ -555,20 +509,20 @@ inline void Claim::set_allocated_publishersignature(::pb::Signature* publishersi
|
|||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
|
||||
template <> struct is_proto_enum< ::pb::Claim_Version> : ::std::true_type {};
|
||||
template <> struct is_proto_enum< ::legacy_pb::Claim_Version> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::pb::Claim_Version>() {
|
||||
return ::pb::Claim_Version_descriptor();
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::Claim_Version>() {
|
||||
return ::legacy_pb::Claim_Version_descriptor();
|
||||
}
|
||||
template <> struct is_proto_enum< ::pb::Claim_ClaimType> : ::std::true_type {};
|
||||
template <> struct is_proto_enum< ::legacy_pb::Claim_ClaimType> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::pb::Claim_ClaimType>() {
|
||||
return ::pb::Claim_ClaimType_descriptor();
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::Claim_ClaimType>() {
|
||||
return ::legacy_pb::Claim_ClaimType_descriptor();
|
||||
}
|
||||
|
||||
} // namespace protobuf
|
||||
|
@ -576,4 +530,5 @@ inline const EnumDescriptor* GetEnumDescriptor< ::pb::Claim_ClaimType>() {
|
|||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#endif // PROTOBUF_INCLUDED_claim_2eproto
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#endif // PROTOBUF_INCLUDED_legacy_5fclaim_2eproto
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -6,121 +6,101 @@
|
|||
#include <algorithm>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
#include <google/protobuf/stubs/port.h>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/extension_set.h>
|
||||
#include <google/protobuf/wire_format_lite_inl.h>
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/reflection_ops.h>
|
||||
#include <google/protobuf/wire_format.h>
|
||||
// This is a temporary google only hack
|
||||
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
||||
#include "third_party/protobuf/version.h"
|
||||
#endif
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
class SignatureDefaultTypeInternal {
|
||||
public:
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Signature>
|
||||
_instance;
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Signature> _instance;
|
||||
} _Signature_default_instance_;
|
||||
} // namespace pb
|
||||
namespace protobuf_signature_2eproto {
|
||||
static void InitDefaultsSignature() {
|
||||
} // namespace legacy_pb
|
||||
static void InitDefaultsSignature_signature_2eproto() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
{
|
||||
void* ptr = &::pb::_Signature_default_instance_;
|
||||
new (ptr) ::pb::Signature();
|
||||
void* ptr = &::legacy_pb::_Signature_default_instance_;
|
||||
new (ptr) ::legacy_pb::Signature();
|
||||
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
||||
}
|
||||
::pb::Signature::InitAsDefaultInstance();
|
||||
::legacy_pb::Signature::InitAsDefaultInstance();
|
||||
}
|
||||
|
||||
::google::protobuf::internal::SCCInfo<0> scc_info_Signature =
|
||||
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSignature}, {}};
|
||||
::google::protobuf::internal::SCCInfo<0> scc_info_Signature_signature_2eproto =
|
||||
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSignature_signature_2eproto}, {}};
|
||||
|
||||
void InitDefaults() {
|
||||
::google::protobuf::internal::InitSCC(&scc_info_Signature.base);
|
||||
void InitDefaults_signature_2eproto() {
|
||||
::google::protobuf::internal::InitSCC(&scc_info_Signature_signature_2eproto.base);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata file_level_metadata[1];
|
||||
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
|
||||
::google::protobuf::Metadata file_level_metadata_signature_2eproto[1];
|
||||
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_signature_2eproto[1];
|
||||
constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_signature_2eproto = nullptr;
|
||||
|
||||
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Signature, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Signature, _internal_metadata_),
|
||||
const ::google::protobuf::uint32 TableStruct_signature_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Signature, _has_bits_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Signature, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Signature, version_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Signature, signaturetype_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Signature, signature_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Signature, certificateid_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Signature, version_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Signature, signaturetype_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Signature, signature_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Signature, certificateid_),
|
||||
2,
|
||||
3,
|
||||
0,
|
||||
1,
|
||||
};
|
||||
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 9, sizeof(::pb::Signature)},
|
||||
static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 9, sizeof(::legacy_pb::Signature)},
|
||||
};
|
||||
|
||||
static ::google::protobuf::Message const * const file_default_instances[] = {
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Signature_default_instance_),
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::legacy_pb::_Signature_default_instance_),
|
||||
};
|
||||
|
||||
void protobuf_AssignDescriptors() {
|
||||
AddDescriptors();
|
||||
AssignDescriptors(
|
||||
"signature.proto", schemas, file_default_instances, TableStruct::offsets,
|
||||
file_level_metadata, file_level_enum_descriptors, NULL);
|
||||
}
|
||||
::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_signature_2eproto = {
|
||||
{}, AddDescriptors_signature_2eproto, "signature.proto", schemas,
|
||||
file_default_instances, TableStruct_signature_2eproto::offsets,
|
||||
file_level_metadata_signature_2eproto, 1, file_level_enum_descriptors_signature_2eproto, file_level_service_descriptors_signature_2eproto,
|
||||
};
|
||||
|
||||
void protobuf_AssignDescriptorsOnce() {
|
||||
static ::google::protobuf::internal::once_flag once;
|
||||
::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
|
||||
}
|
||||
const char descriptor_table_protodef_signature_2eproto[] =
|
||||
"\n\017signature.proto\022\tlegacy_pb\032\021certificat"
|
||||
"e.proto\"\273\001\n\tSignature\022-\n\007version\030\001 \002(\0162\034"
|
||||
".legacy_pb.Signature.Version\022)\n\rsignatur"
|
||||
"eType\030\002 \002(\0162\022.legacy_pb.KeyType\022\021\n\tsigna"
|
||||
"ture\030\003 \002(\014\022\025\n\rcertificateId\030\004 \002(\014\"*\n\007Ver"
|
||||
"sion\022\023\n\017UNKNOWN_VERSION\020\000\022\n\n\006_0_0_1\020\001"
|
||||
;
|
||||
::google::protobuf::internal::DescriptorTable descriptor_table_signature_2eproto = {
|
||||
false, InitDefaults_signature_2eproto,
|
||||
descriptor_table_protodef_signature_2eproto,
|
||||
"signature.proto", &assign_descriptors_table_signature_2eproto, 237,
|
||||
};
|
||||
|
||||
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
||||
void protobuf_RegisterTypes(const ::std::string&) {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
|
||||
}
|
||||
|
||||
void AddDescriptorsImpl() {
|
||||
InitDefaults();
|
||||
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
"\n\017signature.proto\022\002pb\032\021certificate.proto"
|
||||
"\"\255\001\n\tSignature\022&\n\007version\030\001 \002(\0162\025.pb.Sig"
|
||||
"nature.Version\022\"\n\rsignatureType\030\002 \002(\0162\013."
|
||||
"pb.KeyType\022\021\n\tsignature\030\003 \002(\014\022\025\n\rcertifi"
|
||||
"cateId\030\004 \002(\014\"*\n\007Version\022\023\n\017UNKNOWN_VERSI"
|
||||
"ON\020\000\022\n\n\006_0_0_1\020\001"
|
||||
void AddDescriptors_signature_2eproto() {
|
||||
static constexpr ::google::protobuf::internal::InitFunc deps[1] =
|
||||
{
|
||||
::AddDescriptors_certificate_2eproto,
|
||||
};
|
||||
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
||||
descriptor, 216);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"signature.proto", &protobuf_RegisterTypes);
|
||||
::protobuf_certificate_2eproto::AddDescriptors();
|
||||
::google::protobuf::internal::AddDescriptors(&descriptor_table_signature_2eproto, deps, 1);
|
||||
}
|
||||
|
||||
void AddDescriptors() {
|
||||
static ::google::protobuf::internal::once_flag once;
|
||||
::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
|
||||
}
|
||||
// Force AddDescriptors() to be called at dynamic initialization time.
|
||||
struct StaticDescriptorInitializer {
|
||||
StaticDescriptorInitializer() {
|
||||
AddDescriptors();
|
||||
}
|
||||
} static_descriptor_initializer;
|
||||
} // namespace protobuf_signature_2eproto
|
||||
namespace pb {
|
||||
// Force running AddDescriptors() at dynamic initialization time.
|
||||
static bool dynamic_init_dummy_signature_2eproto = []() { AddDescriptors_signature_2eproto(); return true; }();
|
||||
namespace legacy_pb {
|
||||
const ::google::protobuf::EnumDescriptor* Signature_Version_descriptor() {
|
||||
protobuf_signature_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_signature_2eproto::file_level_enum_descriptors[0];
|
||||
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_signature_2eproto);
|
||||
return file_level_enum_descriptors_signature_2eproto[0];
|
||||
}
|
||||
bool Signature_Version_IsValid(int value) {
|
||||
switch (value) {
|
||||
|
@ -144,6 +124,22 @@ const int Signature::Version_ARRAYSIZE;
|
|||
|
||||
void Signature::InitAsDefaultInstance() {
|
||||
}
|
||||
class Signature::HasBitSetters {
|
||||
public:
|
||||
static void set_has_version(Signature* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000004u;
|
||||
}
|
||||
static void set_has_signaturetype(Signature* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000008u;
|
||||
}
|
||||
static void set_has_signature(Signature* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000001u;
|
||||
}
|
||||
static void set_has_certificateid(Signature* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000002u;
|
||||
}
|
||||
};
|
||||
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const int Signature::kVersionFieldNumber;
|
||||
const int Signature::kSignatureTypeFieldNumber;
|
||||
|
@ -152,15 +148,13 @@ const int Signature::kCertificateIdFieldNumber;
|
|||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
||||
Signature::Signature()
|
||||
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
||||
::google::protobuf::internal::InitSCC(
|
||||
&protobuf_signature_2eproto::scc_info_Signature.base);
|
||||
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:pb.Signature)
|
||||
// @@protoc_insertion_point(constructor:legacy_pb.Signature)
|
||||
}
|
||||
Signature::Signature(const Signature& from)
|
||||
: ::google::protobuf::Message(),
|
||||
_internal_metadata_(NULL),
|
||||
_internal_metadata_(nullptr),
|
||||
_has_bits_(from._has_bits_) {
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
|
@ -174,10 +168,12 @@ Signature::Signature(const Signature& from)
|
|||
::memcpy(&version_, &from.version_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&signaturetype_) -
|
||||
reinterpret_cast<char*>(&version_)) + sizeof(signaturetype_));
|
||||
// @@protoc_insertion_point(copy_constructor:pb.Signature)
|
||||
// @@protoc_insertion_point(copy_constructor:legacy_pb.Signature)
|
||||
}
|
||||
|
||||
void Signature::SharedCtor() {
|
||||
::google::protobuf::internal::InitSCC(
|
||||
&scc_info_Signature_signature_2eproto.base);
|
||||
signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
certificateid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
::memset(&version_, 0, static_cast<size_t>(
|
||||
|
@ -186,7 +182,7 @@ void Signature::SharedCtor() {
|
|||
}
|
||||
|
||||
Signature::~Signature() {
|
||||
// @@protoc_insertion_point(destructor:pb.Signature)
|
||||
// @@protoc_insertion_point(destructor:legacy_pb.Signature)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
|
@ -198,25 +194,20 @@ void Signature::SharedDtor() {
|
|||
void Signature::SetCachedSize(int size) const {
|
||||
_cached_size_.Set(size);
|
||||
}
|
||||
const ::google::protobuf::Descriptor* Signature::descriptor() {
|
||||
::protobuf_signature_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return ::protobuf_signature_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
||||
}
|
||||
|
||||
const Signature& Signature::default_instance() {
|
||||
::google::protobuf::internal::InitSCC(&protobuf_signature_2eproto::scc_info_Signature.base);
|
||||
::google::protobuf::internal::InitSCC(&::scc_info_Signature_signature_2eproto.base);
|
||||
return *internal_default_instance();
|
||||
}
|
||||
|
||||
|
||||
void Signature::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:pb.Signature)
|
||||
// @@protoc_insertion_point(message_clear_start:legacy_pb.Signature)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
if (cached_has_bits & 3u) {
|
||||
if (cached_has_bits & 0x00000003u) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
signature_.ClearNonDefaultToEmptyNoArena();
|
||||
}
|
||||
|
@ -224,7 +215,7 @@ void Signature::Clear() {
|
|||
certificateid_.ClearNonDefaultToEmptyNoArena();
|
||||
}
|
||||
}
|
||||
if (cached_has_bits & 12u) {
|
||||
if (cached_has_bits & 0x0000000cu) {
|
||||
::memset(&version_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&signaturetype_) -
|
||||
reinterpret_cast<char*>(&version_)) + sizeof(signaturetype_));
|
||||
|
@ -233,29 +224,119 @@ void Signature::Clear() {
|
|||
_internal_metadata_.Clear();
|
||||
}
|
||||
|
||||
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
const char* Signature::_InternalParse(const char* begin, const char* end, void* object,
|
||||
::google::protobuf::internal::ParseContext* ctx) {
|
||||
auto msg = static_cast<Signature*>(object);
|
||||
::google::protobuf::int32 size; (void)size;
|
||||
int depth; (void)depth;
|
||||
::google::protobuf::uint32 tag;
|
||||
::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
|
||||
auto ptr = begin;
|
||||
while (ptr < end) {
|
||||
ptr = ::google::protobuf::io::Parse32(ptr, &tag);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
switch (tag >> 3) {
|
||||
// required .legacy_pb.Signature.Version version = 1;
|
||||
case 1: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
|
||||
::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
|
||||
if (!::legacy_pb::Signature_Version_IsValid(val)) {
|
||||
::google::protobuf::internal::WriteVarint(1, val, msg->mutable_unknown_fields());
|
||||
break;
|
||||
}
|
||||
msg->set_version(static_cast<::legacy_pb::Signature_Version>(val));
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
break;
|
||||
}
|
||||
// required .legacy_pb.KeyType signatureType = 2;
|
||||
case 2: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
|
||||
::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
|
||||
if (!::legacy_pb::KeyType_IsValid(val)) {
|
||||
::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields());
|
||||
break;
|
||||
}
|
||||
msg->set_signaturetype(static_cast<::legacy_pb::KeyType>(val));
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
break;
|
||||
}
|
||||
// required bytes signature = 3;
|
||||
case 3: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
|
||||
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
object = msg->mutable_signature();
|
||||
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
|
||||
parser_till_end = ::google::protobuf::internal::GreedyStringParser;
|
||||
goto string_till_end;
|
||||
}
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx));
|
||||
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
|
||||
ptr += size;
|
||||
break;
|
||||
}
|
||||
// required bytes certificateId = 4;
|
||||
case 4: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
|
||||
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
object = msg->mutable_certificateid();
|
||||
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
|
||||
parser_till_end = ::google::protobuf::internal::GreedyStringParser;
|
||||
goto string_till_end;
|
||||
}
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx));
|
||||
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
|
||||
ptr += size;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
handle_unusual:
|
||||
if ((tag & 7) == 4 || tag == 0) {
|
||||
ctx->EndGroup(tag);
|
||||
return ptr;
|
||||
}
|
||||
auto res = UnknownFieldParse(tag, {_InternalParse, msg},
|
||||
ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
|
||||
ptr = res.first;
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
|
||||
if (res.second) return ptr;
|
||||
}
|
||||
} // switch
|
||||
} // while
|
||||
return ptr;
|
||||
string_till_end:
|
||||
static_cast<::std::string*>(object)->clear();
|
||||
static_cast<::std::string*>(object)->reserve(size);
|
||||
goto len_delim_till_end;
|
||||
len_delim_till_end:
|
||||
return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
|
||||
{parser_till_end, object}, size);
|
||||
}
|
||||
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
bool Signature::MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) {
|
||||
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
::google::protobuf::uint32 tag;
|
||||
// @@protoc_insertion_point(parse_start:pb.Signature)
|
||||
// @@protoc_insertion_point(parse_start:legacy_pb.Signature)
|
||||
for (;;) {
|
||||
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
||||
tag = p.first;
|
||||
if (!p.second) goto handle_unusual;
|
||||
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
||||
// required .pb.Signature.Version version = 1;
|
||||
// required .legacy_pb.Signature.Version version = 1;
|
||||
case 1: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
||||
int value;
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
|
||||
int value = 0;
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
||||
input, &value)));
|
||||
if (::pb::Signature_Version_IsValid(value)) {
|
||||
set_version(static_cast< ::pb::Signature_Version >(value));
|
||||
if (::legacy_pb::Signature_Version_IsValid(value)) {
|
||||
set_version(static_cast< ::legacy_pb::Signature_Version >(value));
|
||||
} else {
|
||||
mutable_unknown_fields()->AddVarint(
|
||||
1, static_cast< ::google::protobuf::uint64>(value));
|
||||
1, static_cast<::google::protobuf::uint64>(value));
|
||||
}
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
|
@ -263,19 +344,18 @@ bool Signature::MergePartialFromCodedStream(
|
|||
break;
|
||||
}
|
||||
|
||||
// required .pb.KeyType signatureType = 2;
|
||||
// required .legacy_pb.KeyType signatureType = 2;
|
||||
case 2: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
||||
int value;
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
|
||||
int value = 0;
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
||||
input, &value)));
|
||||
if (::pb::KeyType_IsValid(value)) {
|
||||
set_signaturetype(static_cast< ::pb::KeyType >(value));
|
||||
if (::legacy_pb::KeyType_IsValid(value)) {
|
||||
set_signaturetype(static_cast< ::legacy_pb::KeyType >(value));
|
||||
} else {
|
||||
mutable_unknown_fields()->AddVarint(
|
||||
2, static_cast< ::google::protobuf::uint64>(value));
|
||||
2, static_cast<::google::protobuf::uint64>(value));
|
||||
}
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
|
@ -285,8 +365,7 @@ bool Signature::MergePartialFromCodedStream(
|
|||
|
||||
// required bytes signature = 3;
|
||||
case 3: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
||||
input, this->mutable_signature()));
|
||||
} else {
|
||||
|
@ -297,8 +376,7 @@ bool Signature::MergePartialFromCodedStream(
|
|||
|
||||
// required bytes certificateId = 4;
|
||||
case 4: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
||||
input, this->mutable_certificateid()));
|
||||
} else {
|
||||
|
@ -319,28 +397,29 @@ bool Signature::MergePartialFromCodedStream(
|
|||
}
|
||||
}
|
||||
success:
|
||||
// @@protoc_insertion_point(parse_success:pb.Signature)
|
||||
// @@protoc_insertion_point(parse_success:legacy_pb.Signature)
|
||||
return true;
|
||||
failure:
|
||||
// @@protoc_insertion_point(parse_failure:pb.Signature)
|
||||
// @@protoc_insertion_point(parse_failure:legacy_pb.Signature)
|
||||
return false;
|
||||
#undef DO_
|
||||
}
|
||||
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
|
||||
void Signature::SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const {
|
||||
// @@protoc_insertion_point(serialize_start:pb.Signature)
|
||||
// @@protoc_insertion_point(serialize_start:legacy_pb.Signature)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .pb.Signature.Version version = 1;
|
||||
// required .legacy_pb.Signature.Version version = 1;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
1, this->version(), output);
|
||||
}
|
||||
|
||||
// required .pb.KeyType signatureType = 2;
|
||||
// required .legacy_pb.KeyType signatureType = 2;
|
||||
if (cached_has_bits & 0x00000008u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
2, this->signaturetype(), output);
|
||||
|
@ -362,24 +441,23 @@ void Signature::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
||||
_internal_metadata_.unknown_fields(), output);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_end:pb.Signature)
|
||||
// @@protoc_insertion_point(serialize_end:legacy_pb.Signature)
|
||||
}
|
||||
|
||||
::google::protobuf::uint8* Signature::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:pb.Signature)
|
||||
::google::protobuf::uint8* target) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:legacy_pb.Signature)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .pb.Signature.Version version = 1;
|
||||
// required .legacy_pb.Signature.Version version = 1;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
||||
1, this->version(), target);
|
||||
}
|
||||
|
||||
// required .pb.KeyType signatureType = 2;
|
||||
// required .legacy_pb.KeyType signatureType = 2;
|
||||
if (cached_has_bits & 0x00000008u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
||||
2, this->signaturetype(), target);
|
||||
|
@ -403,12 +481,12 @@ void Signature::SerializeWithCachedSizes(
|
|||
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields(), target);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:pb.Signature)
|
||||
// @@protoc_insertion_point(serialize_to_array_end:legacy_pb.Signature)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t Signature::RequiredFieldsByteSizeFallback() const {
|
||||
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:pb.Signature)
|
||||
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:legacy_pb.Signature)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (has_signature()) {
|
||||
|
@ -426,13 +504,13 @@ size_t Signature::RequiredFieldsByteSizeFallback() const {
|
|||
}
|
||||
|
||||
if (has_version()) {
|
||||
// required .pb.Signature.Version version = 1;
|
||||
// required .legacy_pb.Signature.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
}
|
||||
|
||||
if (has_signaturetype()) {
|
||||
// required .pb.KeyType signatureType = 2;
|
||||
// required .legacy_pb.KeyType signatureType = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->signaturetype());
|
||||
}
|
||||
|
@ -440,7 +518,7 @@ size_t Signature::RequiredFieldsByteSizeFallback() const {
|
|||
return total_size;
|
||||
}
|
||||
size_t Signature::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:pb.Signature)
|
||||
// @@protoc_insertion_point(message_byte_size_start:legacy_pb.Signature)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
|
@ -459,52 +537,56 @@ size_t Signature::ByteSizeLong() const {
|
|||
::google::protobuf::internal::WireFormatLite::BytesSize(
|
||||
this->certificateid());
|
||||
|
||||
// required .pb.Signature.Version version = 1;
|
||||
// required .legacy_pb.Signature.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
|
||||
// required .pb.KeyType signatureType = 2;
|
||||
// required .legacy_pb.KeyType signatureType = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->signaturetype());
|
||||
|
||||
} else {
|
||||
total_size += RequiredFieldsByteSizeFallback();
|
||||
}
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
||||
SetCachedSize(cached_size);
|
||||
return total_size;
|
||||
}
|
||||
|
||||
void Signature::MergeFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:pb.Signature)
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:legacy_pb.Signature)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
const Signature* source =
|
||||
::google::protobuf::internal::DynamicCastToGenerated<const Signature>(
|
||||
::google::protobuf::DynamicCastToGenerated<Signature>(
|
||||
&from);
|
||||
if (source == NULL) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Signature)
|
||||
if (source == nullptr) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:legacy_pb.Signature)
|
||||
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
||||
} else {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Signature)
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:legacy_pb.Signature)
|
||||
MergeFrom(*source);
|
||||
}
|
||||
}
|
||||
|
||||
void Signature::MergeFrom(const Signature& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Signature)
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:legacy_pb.Signature)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = from._has_bits_[0];
|
||||
if (cached_has_bits & 15u) {
|
||||
if (cached_has_bits & 0x0000000fu) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
set_has_signature();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_);
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
set_has_certificateid();
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
certificateid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.certificateid_);
|
||||
}
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
|
@ -518,14 +600,14 @@ void Signature::MergeFrom(const Signature& from) {
|
|||
}
|
||||
|
||||
void Signature::CopyFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:pb.Signature)
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:legacy_pb.Signature)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
void Signature::CopyFrom(const Signature& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Signature)
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:legacy_pb.Signature)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
|
@ -542,30 +624,31 @@ void Signature::Swap(Signature* other) {
|
|||
}
|
||||
void Signature::InternalSwap(Signature* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
swap(_has_bits_[0], other->_has_bits_[0]);
|
||||
signature_.Swap(&other->signature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
GetArenaNoVirtual());
|
||||
certificateid_.Swap(&other->certificateid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
GetArenaNoVirtual());
|
||||
swap(version_, other->version_);
|
||||
swap(signaturetype_, other->signaturetype_);
|
||||
swap(_has_bits_[0], other->_has_bits_[0]);
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata Signature::GetMetadata() const {
|
||||
protobuf_signature_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return ::protobuf_signature_2eproto::file_level_metadata[kIndexInFileMessages];
|
||||
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_signature_2eproto);
|
||||
return ::file_level_metadata_signature_2eproto[kIndexInFileMessages];
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pb::Signature* Arena::CreateMaybeMessage< ::pb::Signature >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::pb::Signature >(arena);
|
||||
template<> PROTOBUF_NOINLINE ::legacy_pb::Signature* Arena::CreateMaybeMessage< ::legacy_pb::Signature >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::legacy_pb::Signature >(arena);
|
||||
}
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
|
|
|
@ -4,21 +4,22 @@
|
|||
#ifndef PROTOBUF_INCLUDED_signature_2eproto
|
||||
#define PROTOBUF_INCLUDED_signature_2eproto
|
||||
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006000
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#if PROTOBUF_VERSION < 3007000
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3007000 < 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 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>
|
||||
|
@ -33,31 +34,33 @@
|
|||
#include <google/protobuf/unknown_field_set.h>
|
||||
#include "certificate.pb.h"
|
||||
// @@protoc_insertion_point(includes)
|
||||
#define PROTOBUF_INTERNAL_EXPORT_protobuf_signature_2eproto
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_signature_2eproto
|
||||
|
||||
namespace protobuf_signature_2eproto {
|
||||
// Internal implementation detail -- do not use these members.
|
||||
struct TableStruct {
|
||||
static const ::google::protobuf::internal::ParseTableField entries[];
|
||||
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
|
||||
static const ::google::protobuf::internal::ParseTable schema[1];
|
||||
struct TableStruct_signature_2eproto {
|
||||
static const ::google::protobuf::internal::ParseTableField entries[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::ParseTable schema[1]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
|
||||
static const ::google::protobuf::internal::SerializationTable serialization_table[];
|
||||
static const ::google::protobuf::uint32 offsets[];
|
||||
};
|
||||
void AddDescriptors();
|
||||
} // namespace protobuf_signature_2eproto
|
||||
namespace pb {
|
||||
void AddDescriptors_signature_2eproto();
|
||||
namespace legacy_pb {
|
||||
class Signature;
|
||||
class SignatureDefaultTypeInternal;
|
||||
extern SignatureDefaultTypeInternal _Signature_default_instance_;
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> ::pb::Signature* Arena::CreateMaybeMessage<::pb::Signature>(Arena*);
|
||||
template<> ::legacy_pb::Signature* Arena::CreateMaybeMessage<::legacy_pb::Signature>(Arena*);
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
|
||||
enum Signature_Version {
|
||||
Signature_Version_UNKNOWN_VERSION = 0,
|
||||
|
@ -80,7 +83,8 @@ inline bool Signature_Version_Parse(
|
|||
}
|
||||
// ===================================================================
|
||||
|
||||
class Signature : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Signature) */ {
|
||||
class Signature final :
|
||||
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Signature) */ {
|
||||
public:
|
||||
Signature();
|
||||
virtual ~Signature();
|
||||
|
@ -113,7 +117,9 @@ class Signature : public ::google::protobuf::Message /* @@protoc_insertion_point
|
|||
return _internal_metadata_.mutable_unknown_fields();
|
||||
}
|
||||
|
||||
static const ::google::protobuf::Descriptor* descriptor();
|
||||
static const ::google::protobuf::Descriptor* descriptor() {
|
||||
return default_instance().GetDescriptor();
|
||||
}
|
||||
static const Signature& default_instance();
|
||||
|
||||
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
||||
|
@ -132,7 +138,7 @@ class Signature : public ::google::protobuf::Message /* @@protoc_insertion_point
|
|||
// implements Message ----------------------------------------------
|
||||
|
||||
inline Signature* New() const final {
|
||||
return CreateMaybeMessage<Signature>(NULL);
|
||||
return CreateMaybeMessage<Signature>(nullptr);
|
||||
}
|
||||
|
||||
Signature* New(::google::protobuf::Arena* arena) const final {
|
||||
|
@ -142,16 +148,21 @@ class Signature : public ::google::protobuf::Message /* @@protoc_insertion_point
|
|||
void MergeFrom(const ::google::protobuf::Message& from) final;
|
||||
void CopyFrom(const Signature& from);
|
||||
void MergeFrom(const Signature& from);
|
||||
void Clear() final;
|
||||
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
||||
bool IsInitialized() const final;
|
||||
|
||||
size_t ByteSizeLong() const final;
|
||||
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
|
||||
::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
|
||||
#else
|
||||
bool MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) final;
|
||||
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
void SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const final;
|
||||
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const final;
|
||||
::google::protobuf::uint8* target) const final;
|
||||
int GetCachedSize() const final { return _cached_size_.Get(); }
|
||||
|
||||
private:
|
||||
|
@ -161,10 +172,10 @@ class Signature : public ::google::protobuf::Message /* @@protoc_insertion_point
|
|||
void InternalSwap(Signature* other);
|
||||
private:
|
||||
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
inline void* MaybeArenaPtr() const {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
public:
|
||||
|
||||
|
@ -230,30 +241,23 @@ class Signature : public ::google::protobuf::Message /* @@protoc_insertion_point
|
|||
::std::string* release_certificateid();
|
||||
void set_allocated_certificateid(::std::string* certificateid);
|
||||
|
||||
// required .pb.Signature.Version version = 1;
|
||||
// required .legacy_pb.Signature.Version version = 1;
|
||||
bool has_version() const;
|
||||
void clear_version();
|
||||
static const int kVersionFieldNumber = 1;
|
||||
::pb::Signature_Version version() const;
|
||||
void set_version(::pb::Signature_Version value);
|
||||
::legacy_pb::Signature_Version version() const;
|
||||
void set_version(::legacy_pb::Signature_Version value);
|
||||
|
||||
// required .pb.KeyType signatureType = 2;
|
||||
// required .legacy_pb.KeyType signatureType = 2;
|
||||
bool has_signaturetype() const;
|
||||
void clear_signaturetype();
|
||||
static const int kSignatureTypeFieldNumber = 2;
|
||||
::pb::KeyType signaturetype() const;
|
||||
void set_signaturetype(::pb::KeyType value);
|
||||
::legacy_pb::KeyType signaturetype() const;
|
||||
void set_signaturetype(::legacy_pb::KeyType value);
|
||||
|
||||
// @@protoc_insertion_point(class_scope:pb.Signature)
|
||||
// @@protoc_insertion_point(class_scope:legacy_pb.Signature)
|
||||
private:
|
||||
void set_has_version();
|
||||
void clear_has_version();
|
||||
void set_has_signaturetype();
|
||||
void clear_has_signaturetype();
|
||||
void set_has_signature();
|
||||
void clear_has_signature();
|
||||
void set_has_certificateid();
|
||||
void clear_has_certificateid();
|
||||
class HasBitSetters;
|
||||
|
||||
// helper for ByteSizeLong()
|
||||
size_t RequiredFieldsByteSizeFallback() const;
|
||||
|
@ -265,7 +269,7 @@ class Signature : public ::google::protobuf::Message /* @@protoc_insertion_point
|
|||
::google::protobuf::internal::ArenaStringPtr certificateid_;
|
||||
int version_;
|
||||
int signaturetype_;
|
||||
friend struct ::protobuf_signature_2eproto::TableStruct;
|
||||
friend struct ::TableStruct_signature_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
@ -278,186 +282,162 @@ class Signature : public ::google::protobuf::Message /* @@protoc_insertion_point
|
|||
#endif // __GNUC__
|
||||
// Signature
|
||||
|
||||
// required .pb.Signature.Version version = 1;
|
||||
// required .legacy_pb.Signature.Version version = 1;
|
||||
inline bool Signature::has_version() const {
|
||||
return (_has_bits_[0] & 0x00000004u) != 0;
|
||||
}
|
||||
inline void Signature::set_has_version() {
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
}
|
||||
inline void Signature::clear_has_version() {
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline void Signature::clear_version() {
|
||||
version_ = 0;
|
||||
clear_has_version();
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline ::pb::Signature_Version Signature::version() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Signature.version)
|
||||
return static_cast< ::pb::Signature_Version >(version_);
|
||||
inline ::legacy_pb::Signature_Version Signature::version() const {
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Signature.version)
|
||||
return static_cast< ::legacy_pb::Signature_Version >(version_);
|
||||
}
|
||||
inline void Signature::set_version(::pb::Signature_Version value) {
|
||||
assert(::pb::Signature_Version_IsValid(value));
|
||||
set_has_version();
|
||||
inline void Signature::set_version(::legacy_pb::Signature_Version value) {
|
||||
assert(::legacy_pb::Signature_Version_IsValid(value));
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
version_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Signature.version)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Signature.version)
|
||||
}
|
||||
|
||||
// required .pb.KeyType signatureType = 2;
|
||||
// required .legacy_pb.KeyType signatureType = 2;
|
||||
inline bool Signature::has_signaturetype() const {
|
||||
return (_has_bits_[0] & 0x00000008u) != 0;
|
||||
}
|
||||
inline void Signature::set_has_signaturetype() {
|
||||
_has_bits_[0] |= 0x00000008u;
|
||||
}
|
||||
inline void Signature::clear_has_signaturetype() {
|
||||
_has_bits_[0] &= ~0x00000008u;
|
||||
}
|
||||
inline void Signature::clear_signaturetype() {
|
||||
signaturetype_ = 0;
|
||||
clear_has_signaturetype();
|
||||
_has_bits_[0] &= ~0x00000008u;
|
||||
}
|
||||
inline ::pb::KeyType Signature::signaturetype() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Signature.signatureType)
|
||||
return static_cast< ::pb::KeyType >(signaturetype_);
|
||||
inline ::legacy_pb::KeyType Signature::signaturetype() const {
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Signature.signatureType)
|
||||
return static_cast< ::legacy_pb::KeyType >(signaturetype_);
|
||||
}
|
||||
inline void Signature::set_signaturetype(::pb::KeyType value) {
|
||||
assert(::pb::KeyType_IsValid(value));
|
||||
set_has_signaturetype();
|
||||
inline void Signature::set_signaturetype(::legacy_pb::KeyType value) {
|
||||
assert(::legacy_pb::KeyType_IsValid(value));
|
||||
_has_bits_[0] |= 0x00000008u;
|
||||
signaturetype_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Signature.signatureType)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Signature.signatureType)
|
||||
}
|
||||
|
||||
// required bytes signature = 3;
|
||||
inline bool Signature::has_signature() const {
|
||||
return (_has_bits_[0] & 0x00000001u) != 0;
|
||||
}
|
||||
inline void Signature::set_has_signature() {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
}
|
||||
inline void Signature::clear_has_signature() {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline void Signature::clear_signature() {
|
||||
signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
clear_has_signature();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline const ::std::string& Signature::signature() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Signature.signature)
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Signature.signature)
|
||||
return signature_.GetNoArena();
|
||||
}
|
||||
inline void Signature::set_signature(const ::std::string& value) {
|
||||
set_has_signature();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
||||
// @@protoc_insertion_point(field_set:pb.Signature.signature)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Signature.signature)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Signature::set_signature(::std::string&& value) {
|
||||
set_has_signature();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
signature_.SetNoArena(
|
||||
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
||||
// @@protoc_insertion_point(field_set_rvalue:pb.Signature.signature)
|
||||
// @@protoc_insertion_point(field_set_rvalue:legacy_pb.Signature.signature)
|
||||
}
|
||||
#endif
|
||||
inline void Signature::set_signature(const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
set_has_signature();
|
||||
GOOGLE_DCHECK(value != nullptr);
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
||||
// @@protoc_insertion_point(field_set_char:pb.Signature.signature)
|
||||
// @@protoc_insertion_point(field_set_char:legacy_pb.Signature.signature)
|
||||
}
|
||||
inline void Signature::set_signature(const void* value, size_t size) {
|
||||
set_has_signature();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
::std::string(reinterpret_cast<const char*>(value), size));
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Signature.signature)
|
||||
// @@protoc_insertion_point(field_set_pointer:legacy_pb.Signature.signature)
|
||||
}
|
||||
inline ::std::string* Signature::mutable_signature() {
|
||||
set_has_signature();
|
||||
// @@protoc_insertion_point(field_mutable:pb.Signature.signature)
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Signature.signature)
|
||||
return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline ::std::string* Signature::release_signature() {
|
||||
// @@protoc_insertion_point(field_release:pb.Signature.signature)
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Signature.signature)
|
||||
if (!has_signature()) {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
clear_has_signature();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
return signature_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline void Signature::set_allocated_signature(::std::string* signature) {
|
||||
if (signature != NULL) {
|
||||
set_has_signature();
|
||||
if (signature != nullptr) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
clear_has_signature();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature);
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Signature.signature)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Signature.signature)
|
||||
}
|
||||
|
||||
// required bytes certificateId = 4;
|
||||
inline bool Signature::has_certificateid() const {
|
||||
return (_has_bits_[0] & 0x00000002u) != 0;
|
||||
}
|
||||
inline void Signature::set_has_certificateid() {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
}
|
||||
inline void Signature::clear_has_certificateid() {
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline void Signature::clear_certificateid() {
|
||||
certificateid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
clear_has_certificateid();
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline const ::std::string& Signature::certificateid() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Signature.certificateId)
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Signature.certificateId)
|
||||
return certificateid_.GetNoArena();
|
||||
}
|
||||
inline void Signature::set_certificateid(const ::std::string& value) {
|
||||
set_has_certificateid();
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
certificateid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
||||
// @@protoc_insertion_point(field_set:pb.Signature.certificateId)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Signature.certificateId)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Signature::set_certificateid(::std::string&& value) {
|
||||
set_has_certificateid();
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
certificateid_.SetNoArena(
|
||||
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
||||
// @@protoc_insertion_point(field_set_rvalue:pb.Signature.certificateId)
|
||||
// @@protoc_insertion_point(field_set_rvalue:legacy_pb.Signature.certificateId)
|
||||
}
|
||||
#endif
|
||||
inline void Signature::set_certificateid(const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
set_has_certificateid();
|
||||
GOOGLE_DCHECK(value != nullptr);
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
certificateid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
||||
// @@protoc_insertion_point(field_set_char:pb.Signature.certificateId)
|
||||
// @@protoc_insertion_point(field_set_char:legacy_pb.Signature.certificateId)
|
||||
}
|
||||
inline void Signature::set_certificateid(const void* value, size_t size) {
|
||||
set_has_certificateid();
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
certificateid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
::std::string(reinterpret_cast<const char*>(value), size));
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Signature.certificateId)
|
||||
// @@protoc_insertion_point(field_set_pointer:legacy_pb.Signature.certificateId)
|
||||
}
|
||||
inline ::std::string* Signature::mutable_certificateid() {
|
||||
set_has_certificateid();
|
||||
// @@protoc_insertion_point(field_mutable:pb.Signature.certificateId)
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Signature.certificateId)
|
||||
return certificateid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline ::std::string* Signature::release_certificateid() {
|
||||
// @@protoc_insertion_point(field_release:pb.Signature.certificateId)
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Signature.certificateId)
|
||||
if (!has_certificateid()) {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
clear_has_certificateid();
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
return certificateid_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline void Signature::set_allocated_certificateid(::std::string* certificateid) {
|
||||
if (certificateid != NULL) {
|
||||
set_has_certificateid();
|
||||
if (certificateid != nullptr) {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
} else {
|
||||
clear_has_certificateid();
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
certificateid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), certificateid);
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Signature.certificateId)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Signature.certificateId)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
@ -466,15 +446,15 @@ inline void Signature::set_allocated_certificateid(::std::string* certificateid)
|
|||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
|
||||
template <> struct is_proto_enum< ::pb::Signature_Version> : ::std::true_type {};
|
||||
template <> struct is_proto_enum< ::legacy_pb::Signature_Version> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::pb::Signature_Version>() {
|
||||
return ::pb::Signature_Version_descriptor();
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::Signature_Version>() {
|
||||
return ::legacy_pb::Signature_Version_descriptor();
|
||||
}
|
||||
|
||||
} // namespace protobuf
|
||||
|
@ -482,4 +462,5 @@ inline const EnumDescriptor* GetEnumDescriptor< ::pb::Signature_Version>() {
|
|||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#endif // PROTOBUF_INCLUDED_signature_2eproto
|
||||
|
|
|
@ -6,121 +6,101 @@
|
|||
#include <algorithm>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
#include <google/protobuf/stubs/port.h>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/extension_set.h>
|
||||
#include <google/protobuf/wire_format_lite_inl.h>
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/reflection_ops.h>
|
||||
#include <google/protobuf/wire_format.h>
|
||||
// This is a temporary google only hack
|
||||
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
||||
#include "third_party/protobuf/version.h"
|
||||
#endif
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
class SourceDefaultTypeInternal {
|
||||
public:
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Source>
|
||||
_instance;
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Source> _instance;
|
||||
} _Source_default_instance_;
|
||||
} // namespace pb
|
||||
namespace protobuf_source_2eproto {
|
||||
static void InitDefaultsSource() {
|
||||
} // namespace legacy_pb
|
||||
static void InitDefaultsSource_source_2eproto() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
{
|
||||
void* ptr = &::pb::_Source_default_instance_;
|
||||
new (ptr) ::pb::Source();
|
||||
void* ptr = &::legacy_pb::_Source_default_instance_;
|
||||
new (ptr) ::legacy_pb::Source();
|
||||
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
||||
}
|
||||
::pb::Source::InitAsDefaultInstance();
|
||||
::legacy_pb::Source::InitAsDefaultInstance();
|
||||
}
|
||||
|
||||
::google::protobuf::internal::SCCInfo<0> scc_info_Source =
|
||||
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSource}, {}};
|
||||
::google::protobuf::internal::SCCInfo<0> scc_info_Source_source_2eproto =
|
||||
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSource_source_2eproto}, {}};
|
||||
|
||||
void InitDefaults() {
|
||||
::google::protobuf::internal::InitSCC(&scc_info_Source.base);
|
||||
void InitDefaults_source_2eproto() {
|
||||
::google::protobuf::internal::InitSCC(&scc_info_Source_source_2eproto.base);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata file_level_metadata[1];
|
||||
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2];
|
||||
::google::protobuf::Metadata file_level_metadata_source_2eproto[1];
|
||||
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_source_2eproto[2];
|
||||
constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_source_2eproto = nullptr;
|
||||
|
||||
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Source, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Source, _internal_metadata_),
|
||||
const ::google::protobuf::uint32 TableStruct_source_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Source, _has_bits_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Source, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Source, version_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Source, sourcetype_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Source, source_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Source, contenttype_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Source, version_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Source, sourcetype_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Source, source_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Source, contenttype_),
|
||||
2,
|
||||
3,
|
||||
0,
|
||||
1,
|
||||
};
|
||||
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 9, sizeof(::pb::Source)},
|
||||
static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 9, sizeof(::legacy_pb::Source)},
|
||||
};
|
||||
|
||||
static ::google::protobuf::Message const * const file_default_instances[] = {
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Source_default_instance_),
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::legacy_pb::_Source_default_instance_),
|
||||
};
|
||||
|
||||
void protobuf_AssignDescriptors() {
|
||||
AddDescriptors();
|
||||
AssignDescriptors(
|
||||
"source.proto", schemas, file_default_instances, TableStruct::offsets,
|
||||
file_level_metadata, file_level_enum_descriptors, NULL);
|
||||
}
|
||||
::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_source_2eproto = {
|
||||
{}, AddDescriptors_source_2eproto, "source.proto", schemas,
|
||||
file_default_instances, TableStruct_source_2eproto::offsets,
|
||||
file_level_metadata_source_2eproto, 1, file_level_enum_descriptors_source_2eproto, file_level_service_descriptors_source_2eproto,
|
||||
};
|
||||
|
||||
void protobuf_AssignDescriptorsOnce() {
|
||||
static ::google::protobuf::internal::once_flag once;
|
||||
::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
|
||||
}
|
||||
const char descriptor_table_protodef_source_2eproto[] =
|
||||
"\n\014source.proto\022\tlegacy_pb\"\362\001\n\006Source\022*\n\007"
|
||||
"version\030\001 \002(\0162\031.legacy_pb.Source.Version"
|
||||
"\0221\n\nsourceType\030\002 \002(\0162\035.legacy_pb.Source."
|
||||
"SourceTypes\022\016\n\006source\030\003 \002(\014\022\023\n\013contentTy"
|
||||
"pe\030\004 \002(\t\"*\n\007Version\022\023\n\017UNKNOWN_VERSION\020\000"
|
||||
"\022\n\n\006_0_0_1\020\001\"8\n\013SourceTypes\022\027\n\023UNKNOWN_S"
|
||||
"OURCE_TYPE\020\000\022\020\n\014lbry_sd_hash\020\001"
|
||||
;
|
||||
::google::protobuf::internal::DescriptorTable descriptor_table_source_2eproto = {
|
||||
false, InitDefaults_source_2eproto,
|
||||
descriptor_table_protodef_source_2eproto,
|
||||
"source.proto", &assign_descriptors_table_source_2eproto, 270,
|
||||
};
|
||||
|
||||
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
||||
void protobuf_RegisterTypes(const ::std::string&) {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
|
||||
}
|
||||
|
||||
void AddDescriptorsImpl() {
|
||||
InitDefaults();
|
||||
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
"\n\014source.proto\022\002pb\"\344\001\n\006Source\022#\n\007version"
|
||||
"\030\001 \002(\0162\022.pb.Source.Version\022*\n\nsourceType"
|
||||
"\030\002 \002(\0162\026.pb.Source.SourceTypes\022\016\n\006source"
|
||||
"\030\003 \002(\014\022\023\n\013contentType\030\004 \002(\t\"*\n\007Version\022\023"
|
||||
"\n\017UNKNOWN_VERSION\020\000\022\n\n\006_0_0_1\020\001\"8\n\013Sourc"
|
||||
"eTypes\022\027\n\023UNKNOWN_SOURCE_TYPE\020\000\022\020\n\014lbry_"
|
||||
"sd_hash\020\001"
|
||||
void AddDescriptors_source_2eproto() {
|
||||
static constexpr ::google::protobuf::internal::InitFunc deps[1] =
|
||||
{
|
||||
};
|
||||
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
||||
descriptor, 249);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"source.proto", &protobuf_RegisterTypes);
|
||||
::google::protobuf::internal::AddDescriptors(&descriptor_table_source_2eproto, deps, 0);
|
||||
}
|
||||
|
||||
void AddDescriptors() {
|
||||
static ::google::protobuf::internal::once_flag once;
|
||||
::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
|
||||
}
|
||||
// Force AddDescriptors() to be called at dynamic initialization time.
|
||||
struct StaticDescriptorInitializer {
|
||||
StaticDescriptorInitializer() {
|
||||
AddDescriptors();
|
||||
}
|
||||
} static_descriptor_initializer;
|
||||
} // namespace protobuf_source_2eproto
|
||||
namespace pb {
|
||||
// Force running AddDescriptors() at dynamic initialization time.
|
||||
static bool dynamic_init_dummy_source_2eproto = []() { AddDescriptors_source_2eproto(); return true; }();
|
||||
namespace legacy_pb {
|
||||
const ::google::protobuf::EnumDescriptor* Source_Version_descriptor() {
|
||||
protobuf_source_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_source_2eproto::file_level_enum_descriptors[0];
|
||||
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_source_2eproto);
|
||||
return file_level_enum_descriptors_source_2eproto[0];
|
||||
}
|
||||
bool Source_Version_IsValid(int value) {
|
||||
switch (value) {
|
||||
|
@ -140,8 +120,8 @@ const Source_Version Source::Version_MAX;
|
|||
const int Source::Version_ARRAYSIZE;
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const ::google::protobuf::EnumDescriptor* Source_SourceTypes_descriptor() {
|
||||
protobuf_source_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_source_2eproto::file_level_enum_descriptors[1];
|
||||
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_source_2eproto);
|
||||
return file_level_enum_descriptors_source_2eproto[1];
|
||||
}
|
||||
bool Source_SourceTypes_IsValid(int value) {
|
||||
switch (value) {
|
||||
|
@ -165,6 +145,22 @@ const int Source::SourceTypes_ARRAYSIZE;
|
|||
|
||||
void Source::InitAsDefaultInstance() {
|
||||
}
|
||||
class Source::HasBitSetters {
|
||||
public:
|
||||
static void set_has_version(Source* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000004u;
|
||||
}
|
||||
static void set_has_sourcetype(Source* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000008u;
|
||||
}
|
||||
static void set_has_source(Source* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000001u;
|
||||
}
|
||||
static void set_has_contenttype(Source* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000002u;
|
||||
}
|
||||
};
|
||||
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const int Source::kVersionFieldNumber;
|
||||
const int Source::kSourceTypeFieldNumber;
|
||||
|
@ -173,15 +169,13 @@ const int Source::kContentTypeFieldNumber;
|
|||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
||||
Source::Source()
|
||||
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
||||
::google::protobuf::internal::InitSCC(
|
||||
&protobuf_source_2eproto::scc_info_Source.base);
|
||||
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:pb.Source)
|
||||
// @@protoc_insertion_point(constructor:legacy_pb.Source)
|
||||
}
|
||||
Source::Source(const Source& from)
|
||||
: ::google::protobuf::Message(),
|
||||
_internal_metadata_(NULL),
|
||||
_internal_metadata_(nullptr),
|
||||
_has_bits_(from._has_bits_) {
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
|
@ -195,10 +189,12 @@ Source::Source(const Source& from)
|
|||
::memcpy(&version_, &from.version_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&sourcetype_) -
|
||||
reinterpret_cast<char*>(&version_)) + sizeof(sourcetype_));
|
||||
// @@protoc_insertion_point(copy_constructor:pb.Source)
|
||||
// @@protoc_insertion_point(copy_constructor:legacy_pb.Source)
|
||||
}
|
||||
|
||||
void Source::SharedCtor() {
|
||||
::google::protobuf::internal::InitSCC(
|
||||
&scc_info_Source_source_2eproto.base);
|
||||
source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
contenttype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
::memset(&version_, 0, static_cast<size_t>(
|
||||
|
@ -207,7 +203,7 @@ void Source::SharedCtor() {
|
|||
}
|
||||
|
||||
Source::~Source() {
|
||||
// @@protoc_insertion_point(destructor:pb.Source)
|
||||
// @@protoc_insertion_point(destructor:legacy_pb.Source)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
|
@ -219,25 +215,20 @@ void Source::SharedDtor() {
|
|||
void Source::SetCachedSize(int size) const {
|
||||
_cached_size_.Set(size);
|
||||
}
|
||||
const ::google::protobuf::Descriptor* Source::descriptor() {
|
||||
::protobuf_source_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return ::protobuf_source_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
||||
}
|
||||
|
||||
const Source& Source::default_instance() {
|
||||
::google::protobuf::internal::InitSCC(&protobuf_source_2eproto::scc_info_Source.base);
|
||||
::google::protobuf::internal::InitSCC(&::scc_info_Source_source_2eproto.base);
|
||||
return *internal_default_instance();
|
||||
}
|
||||
|
||||
|
||||
void Source::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:pb.Source)
|
||||
// @@protoc_insertion_point(message_clear_start:legacy_pb.Source)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
if (cached_has_bits & 3u) {
|
||||
if (cached_has_bits & 0x00000003u) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
source_.ClearNonDefaultToEmptyNoArena();
|
||||
}
|
||||
|
@ -245,7 +236,7 @@ void Source::Clear() {
|
|||
contenttype_.ClearNonDefaultToEmptyNoArena();
|
||||
}
|
||||
}
|
||||
if (cached_has_bits & 12u) {
|
||||
if (cached_has_bits & 0x0000000cu) {
|
||||
::memset(&version_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&sourcetype_) -
|
||||
reinterpret_cast<char*>(&version_)) + sizeof(sourcetype_));
|
||||
|
@ -254,29 +245,120 @@ void Source::Clear() {
|
|||
_internal_metadata_.Clear();
|
||||
}
|
||||
|
||||
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
const char* Source::_InternalParse(const char* begin, const char* end, void* object,
|
||||
::google::protobuf::internal::ParseContext* ctx) {
|
||||
auto msg = static_cast<Source*>(object);
|
||||
::google::protobuf::int32 size; (void)size;
|
||||
int depth; (void)depth;
|
||||
::google::protobuf::uint32 tag;
|
||||
::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
|
||||
auto ptr = begin;
|
||||
while (ptr < end) {
|
||||
ptr = ::google::protobuf::io::Parse32(ptr, &tag);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
switch (tag >> 3) {
|
||||
// required .legacy_pb.Source.Version version = 1;
|
||||
case 1: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
|
||||
::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
|
||||
if (!::legacy_pb::Source_Version_IsValid(val)) {
|
||||
::google::protobuf::internal::WriteVarint(1, val, msg->mutable_unknown_fields());
|
||||
break;
|
||||
}
|
||||
msg->set_version(static_cast<::legacy_pb::Source_Version>(val));
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
break;
|
||||
}
|
||||
// required .legacy_pb.Source.SourceTypes sourceType = 2;
|
||||
case 2: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
|
||||
::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
|
||||
if (!::legacy_pb::Source_SourceTypes_IsValid(val)) {
|
||||
::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields());
|
||||
break;
|
||||
}
|
||||
msg->set_sourcetype(static_cast<::legacy_pb::Source_SourceTypes>(val));
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
break;
|
||||
}
|
||||
// required bytes source = 3;
|
||||
case 3: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
|
||||
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
object = msg->mutable_source();
|
||||
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
|
||||
parser_till_end = ::google::protobuf::internal::GreedyStringParser;
|
||||
goto string_till_end;
|
||||
}
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx));
|
||||
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
|
||||
ptr += size;
|
||||
break;
|
||||
}
|
||||
// required string contentType = 4;
|
||||
case 4: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
|
||||
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
ctx->extra_parse_data().SetFieldName("legacy_pb.Source.contentType");
|
||||
object = msg->mutable_contenttype();
|
||||
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
|
||||
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8Verify;
|
||||
goto string_till_end;
|
||||
}
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8Verify(ptr, size, ctx));
|
||||
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
|
||||
ptr += size;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
handle_unusual:
|
||||
if ((tag & 7) == 4 || tag == 0) {
|
||||
ctx->EndGroup(tag);
|
||||
return ptr;
|
||||
}
|
||||
auto res = UnknownFieldParse(tag, {_InternalParse, msg},
|
||||
ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
|
||||
ptr = res.first;
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
|
||||
if (res.second) return ptr;
|
||||
}
|
||||
} // switch
|
||||
} // while
|
||||
return ptr;
|
||||
string_till_end:
|
||||
static_cast<::std::string*>(object)->clear();
|
||||
static_cast<::std::string*>(object)->reserve(size);
|
||||
goto len_delim_till_end;
|
||||
len_delim_till_end:
|
||||
return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
|
||||
{parser_till_end, object}, size);
|
||||
}
|
||||
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
bool Source::MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) {
|
||||
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
::google::protobuf::uint32 tag;
|
||||
// @@protoc_insertion_point(parse_start:pb.Source)
|
||||
// @@protoc_insertion_point(parse_start:legacy_pb.Source)
|
||||
for (;;) {
|
||||
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
||||
tag = p.first;
|
||||
if (!p.second) goto handle_unusual;
|
||||
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
||||
// required .pb.Source.Version version = 1;
|
||||
// required .legacy_pb.Source.Version version = 1;
|
||||
case 1: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
||||
int value;
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
|
||||
int value = 0;
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
||||
input, &value)));
|
||||
if (::pb::Source_Version_IsValid(value)) {
|
||||
set_version(static_cast< ::pb::Source_Version >(value));
|
||||
if (::legacy_pb::Source_Version_IsValid(value)) {
|
||||
set_version(static_cast< ::legacy_pb::Source_Version >(value));
|
||||
} else {
|
||||
mutable_unknown_fields()->AddVarint(
|
||||
1, static_cast< ::google::protobuf::uint64>(value));
|
||||
1, static_cast<::google::protobuf::uint64>(value));
|
||||
}
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
|
@ -284,19 +366,18 @@ bool Source::MergePartialFromCodedStream(
|
|||
break;
|
||||
}
|
||||
|
||||
// required .pb.Source.SourceTypes sourceType = 2;
|
||||
// required .legacy_pb.Source.SourceTypes sourceType = 2;
|
||||
case 2: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
||||
int value;
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
|
||||
int value = 0;
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
||||
input, &value)));
|
||||
if (::pb::Source_SourceTypes_IsValid(value)) {
|
||||
set_sourcetype(static_cast< ::pb::Source_SourceTypes >(value));
|
||||
if (::legacy_pb::Source_SourceTypes_IsValid(value)) {
|
||||
set_sourcetype(static_cast< ::legacy_pb::Source_SourceTypes >(value));
|
||||
} else {
|
||||
mutable_unknown_fields()->AddVarint(
|
||||
2, static_cast< ::google::protobuf::uint64>(value));
|
||||
2, static_cast<::google::protobuf::uint64>(value));
|
||||
}
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
|
@ -306,8 +387,7 @@ bool Source::MergePartialFromCodedStream(
|
|||
|
||||
// required bytes source = 3;
|
||||
case 3: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
||||
input, this->mutable_source()));
|
||||
} else {
|
||||
|
@ -318,14 +398,13 @@ bool Source::MergePartialFromCodedStream(
|
|||
|
||||
// required string contentType = 4;
|
||||
case 4: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
||||
input, this->mutable_contenttype()));
|
||||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->contenttype().data(), static_cast<int>(this->contenttype().length()),
|
||||
::google::protobuf::internal::WireFormat::PARSE,
|
||||
"pb.Source.contentType");
|
||||
"legacy_pb.Source.contentType");
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
|
@ -344,28 +423,29 @@ bool Source::MergePartialFromCodedStream(
|
|||
}
|
||||
}
|
||||
success:
|
||||
// @@protoc_insertion_point(parse_success:pb.Source)
|
||||
// @@protoc_insertion_point(parse_success:legacy_pb.Source)
|
||||
return true;
|
||||
failure:
|
||||
// @@protoc_insertion_point(parse_failure:pb.Source)
|
||||
// @@protoc_insertion_point(parse_failure:legacy_pb.Source)
|
||||
return false;
|
||||
#undef DO_
|
||||
}
|
||||
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
|
||||
void Source::SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const {
|
||||
// @@protoc_insertion_point(serialize_start:pb.Source)
|
||||
// @@protoc_insertion_point(serialize_start:legacy_pb.Source)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .pb.Source.Version version = 1;
|
||||
// required .legacy_pb.Source.Version version = 1;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
1, this->version(), output);
|
||||
}
|
||||
|
||||
// required .pb.Source.SourceTypes sourceType = 2;
|
||||
// required .legacy_pb.Source.SourceTypes sourceType = 2;
|
||||
if (cached_has_bits & 0x00000008u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
2, this->sourcetype(), output);
|
||||
|
@ -382,7 +462,7 @@ void Source::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->contenttype().data(), static_cast<int>(this->contenttype().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Source.contentType");
|
||||
"legacy_pb.Source.contentType");
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
||||
4, this->contenttype(), output);
|
||||
}
|
||||
|
@ -391,24 +471,23 @@ void Source::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
||||
_internal_metadata_.unknown_fields(), output);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_end:pb.Source)
|
||||
// @@protoc_insertion_point(serialize_end:legacy_pb.Source)
|
||||
}
|
||||
|
||||
::google::protobuf::uint8* Source::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:pb.Source)
|
||||
::google::protobuf::uint8* target) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:legacy_pb.Source)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .pb.Source.Version version = 1;
|
||||
// required .legacy_pb.Source.Version version = 1;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
||||
1, this->version(), target);
|
||||
}
|
||||
|
||||
// required .pb.Source.SourceTypes sourceType = 2;
|
||||
// required .legacy_pb.Source.SourceTypes sourceType = 2;
|
||||
if (cached_has_bits & 0x00000008u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
||||
2, this->sourcetype(), target);
|
||||
|
@ -426,7 +505,7 @@ void Source::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->contenttype().data(), static_cast<int>(this->contenttype().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Source.contentType");
|
||||
"legacy_pb.Source.contentType");
|
||||
target =
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
||||
4, this->contenttype(), target);
|
||||
|
@ -436,12 +515,12 @@ void Source::SerializeWithCachedSizes(
|
|||
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields(), target);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:pb.Source)
|
||||
// @@protoc_insertion_point(serialize_to_array_end:legacy_pb.Source)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t Source::RequiredFieldsByteSizeFallback() const {
|
||||
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:pb.Source)
|
||||
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:legacy_pb.Source)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (has_source()) {
|
||||
|
@ -459,13 +538,13 @@ size_t Source::RequiredFieldsByteSizeFallback() const {
|
|||
}
|
||||
|
||||
if (has_version()) {
|
||||
// required .pb.Source.Version version = 1;
|
||||
// required .legacy_pb.Source.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
}
|
||||
|
||||
if (has_sourcetype()) {
|
||||
// required .pb.Source.SourceTypes sourceType = 2;
|
||||
// required .legacy_pb.Source.SourceTypes sourceType = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->sourcetype());
|
||||
}
|
||||
|
@ -473,7 +552,7 @@ size_t Source::RequiredFieldsByteSizeFallback() const {
|
|||
return total_size;
|
||||
}
|
||||
size_t Source::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:pb.Source)
|
||||
// @@protoc_insertion_point(message_byte_size_start:legacy_pb.Source)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
|
@ -492,52 +571,56 @@ size_t Source::ByteSizeLong() const {
|
|||
::google::protobuf::internal::WireFormatLite::StringSize(
|
||||
this->contenttype());
|
||||
|
||||
// required .pb.Source.Version version = 1;
|
||||
// required .legacy_pb.Source.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
|
||||
// required .pb.Source.SourceTypes sourceType = 2;
|
||||
// required .legacy_pb.Source.SourceTypes sourceType = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->sourcetype());
|
||||
|
||||
} else {
|
||||
total_size += RequiredFieldsByteSizeFallback();
|
||||
}
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
||||
SetCachedSize(cached_size);
|
||||
return total_size;
|
||||
}
|
||||
|
||||
void Source::MergeFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:pb.Source)
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:legacy_pb.Source)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
const Source* source =
|
||||
::google::protobuf::internal::DynamicCastToGenerated<const Source>(
|
||||
::google::protobuf::DynamicCastToGenerated<Source>(
|
||||
&from);
|
||||
if (source == NULL) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Source)
|
||||
if (source == nullptr) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:legacy_pb.Source)
|
||||
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
||||
} else {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Source)
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:legacy_pb.Source)
|
||||
MergeFrom(*source);
|
||||
}
|
||||
}
|
||||
|
||||
void Source::MergeFrom(const Source& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Source)
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:legacy_pb.Source)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = from._has_bits_[0];
|
||||
if (cached_has_bits & 15u) {
|
||||
if (cached_has_bits & 0x0000000fu) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
set_has_source();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_);
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
set_has_contenttype();
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
contenttype_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.contenttype_);
|
||||
}
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
|
@ -551,14 +634,14 @@ void Source::MergeFrom(const Source& from) {
|
|||
}
|
||||
|
||||
void Source::CopyFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:pb.Source)
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:legacy_pb.Source)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
void Source::CopyFrom(const Source& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Source)
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:legacy_pb.Source)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
|
@ -575,30 +658,31 @@ void Source::Swap(Source* other) {
|
|||
}
|
||||
void Source::InternalSwap(Source* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
swap(_has_bits_[0], other->_has_bits_[0]);
|
||||
source_.Swap(&other->source_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
GetArenaNoVirtual());
|
||||
contenttype_.Swap(&other->contenttype_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
GetArenaNoVirtual());
|
||||
swap(version_, other->version_);
|
||||
swap(sourcetype_, other->sourcetype_);
|
||||
swap(_has_bits_[0], other->_has_bits_[0]);
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata Source::GetMetadata() const {
|
||||
protobuf_source_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return ::protobuf_source_2eproto::file_level_metadata[kIndexInFileMessages];
|
||||
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_source_2eproto);
|
||||
return ::file_level_metadata_source_2eproto[kIndexInFileMessages];
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pb::Source* Arena::CreateMaybeMessage< ::pb::Source >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::pb::Source >(arena);
|
||||
template<> PROTOBUF_NOINLINE ::legacy_pb::Source* Arena::CreateMaybeMessage< ::legacy_pb::Source >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::legacy_pb::Source >(arena);
|
||||
}
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
|
|
|
@ -4,21 +4,22 @@
|
|||
#ifndef PROTOBUF_INCLUDED_source_2eproto
|
||||
#define PROTOBUF_INCLUDED_source_2eproto
|
||||
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006000
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#if PROTOBUF_VERSION < 3007000
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3007000 < 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 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>
|
||||
|
@ -32,31 +33,33 @@
|
|||
#include <google/protobuf/generated_enum_reflection.h>
|
||||
#include <google/protobuf/unknown_field_set.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
#define PROTOBUF_INTERNAL_EXPORT_protobuf_source_2eproto
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_source_2eproto
|
||||
|
||||
namespace protobuf_source_2eproto {
|
||||
// Internal implementation detail -- do not use these members.
|
||||
struct TableStruct {
|
||||
static const ::google::protobuf::internal::ParseTableField entries[];
|
||||
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
|
||||
static const ::google::protobuf::internal::ParseTable schema[1];
|
||||
struct TableStruct_source_2eproto {
|
||||
static const ::google::protobuf::internal::ParseTableField entries[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::ParseTable schema[1]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
|
||||
static const ::google::protobuf::internal::SerializationTable serialization_table[];
|
||||
static const ::google::protobuf::uint32 offsets[];
|
||||
};
|
||||
void AddDescriptors();
|
||||
} // namespace protobuf_source_2eproto
|
||||
namespace pb {
|
||||
void AddDescriptors_source_2eproto();
|
||||
namespace legacy_pb {
|
||||
class Source;
|
||||
class SourceDefaultTypeInternal;
|
||||
extern SourceDefaultTypeInternal _Source_default_instance_;
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> ::pb::Source* Arena::CreateMaybeMessage<::pb::Source>(Arena*);
|
||||
template<> ::legacy_pb::Source* Arena::CreateMaybeMessage<::legacy_pb::Source>(Arena*);
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
|
||||
enum Source_Version {
|
||||
Source_Version_UNKNOWN_VERSION = 0,
|
||||
|
@ -98,7 +101,8 @@ inline bool Source_SourceTypes_Parse(
|
|||
}
|
||||
// ===================================================================
|
||||
|
||||
class Source : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Source) */ {
|
||||
class Source final :
|
||||
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Source) */ {
|
||||
public:
|
||||
Source();
|
||||
virtual ~Source();
|
||||
|
@ -131,7 +135,9 @@ class Source : public ::google::protobuf::Message /* @@protoc_insertion_point(cl
|
|||
return _internal_metadata_.mutable_unknown_fields();
|
||||
}
|
||||
|
||||
static const ::google::protobuf::Descriptor* descriptor();
|
||||
static const ::google::protobuf::Descriptor* descriptor() {
|
||||
return default_instance().GetDescriptor();
|
||||
}
|
||||
static const Source& default_instance();
|
||||
|
||||
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
||||
|
@ -150,7 +156,7 @@ class Source : public ::google::protobuf::Message /* @@protoc_insertion_point(cl
|
|||
// implements Message ----------------------------------------------
|
||||
|
||||
inline Source* New() const final {
|
||||
return CreateMaybeMessage<Source>(NULL);
|
||||
return CreateMaybeMessage<Source>(nullptr);
|
||||
}
|
||||
|
||||
Source* New(::google::protobuf::Arena* arena) const final {
|
||||
|
@ -160,16 +166,21 @@ class Source : public ::google::protobuf::Message /* @@protoc_insertion_point(cl
|
|||
void MergeFrom(const ::google::protobuf::Message& from) final;
|
||||
void CopyFrom(const Source& from);
|
||||
void MergeFrom(const Source& from);
|
||||
void Clear() final;
|
||||
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
||||
bool IsInitialized() const final;
|
||||
|
||||
size_t ByteSizeLong() const final;
|
||||
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
|
||||
::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
|
||||
#else
|
||||
bool MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) final;
|
||||
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
void SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const final;
|
||||
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const final;
|
||||
::google::protobuf::uint8* target) const final;
|
||||
int GetCachedSize() const final { return _cached_size_.Get(); }
|
||||
|
||||
private:
|
||||
|
@ -179,10 +190,10 @@ class Source : public ::google::protobuf::Message /* @@protoc_insertion_point(cl
|
|||
void InternalSwap(Source* other);
|
||||
private:
|
||||
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
inline void* MaybeArenaPtr() const {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
public:
|
||||
|
||||
|
@ -274,30 +285,23 @@ class Source : public ::google::protobuf::Message /* @@protoc_insertion_point(cl
|
|||
::std::string* release_contenttype();
|
||||
void set_allocated_contenttype(::std::string* contenttype);
|
||||
|
||||
// required .pb.Source.Version version = 1;
|
||||
// required .legacy_pb.Source.Version version = 1;
|
||||
bool has_version() const;
|
||||
void clear_version();
|
||||
static const int kVersionFieldNumber = 1;
|
||||
::pb::Source_Version version() const;
|
||||
void set_version(::pb::Source_Version value);
|
||||
::legacy_pb::Source_Version version() const;
|
||||
void set_version(::legacy_pb::Source_Version value);
|
||||
|
||||
// required .pb.Source.SourceTypes sourceType = 2;
|
||||
// required .legacy_pb.Source.SourceTypes sourceType = 2;
|
||||
bool has_sourcetype() const;
|
||||
void clear_sourcetype();
|
||||
static const int kSourceTypeFieldNumber = 2;
|
||||
::pb::Source_SourceTypes sourcetype() const;
|
||||
void set_sourcetype(::pb::Source_SourceTypes value);
|
||||
::legacy_pb::Source_SourceTypes sourcetype() const;
|
||||
void set_sourcetype(::legacy_pb::Source_SourceTypes value);
|
||||
|
||||
// @@protoc_insertion_point(class_scope:pb.Source)
|
||||
// @@protoc_insertion_point(class_scope:legacy_pb.Source)
|
||||
private:
|
||||
void set_has_version();
|
||||
void clear_has_version();
|
||||
void set_has_sourcetype();
|
||||
void clear_has_sourcetype();
|
||||
void set_has_source();
|
||||
void clear_has_source();
|
||||
void set_has_contenttype();
|
||||
void clear_has_contenttype();
|
||||
class HasBitSetters;
|
||||
|
||||
// helper for ByteSizeLong()
|
||||
size_t RequiredFieldsByteSizeFallback() const;
|
||||
|
@ -309,7 +313,7 @@ class Source : public ::google::protobuf::Message /* @@protoc_insertion_point(cl
|
|||
::google::protobuf::internal::ArenaStringPtr contenttype_;
|
||||
int version_;
|
||||
int sourcetype_;
|
||||
friend struct ::protobuf_source_2eproto::TableStruct;
|
||||
friend struct ::TableStruct_source_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
@ -322,186 +326,162 @@ class Source : public ::google::protobuf::Message /* @@protoc_insertion_point(cl
|
|||
#endif // __GNUC__
|
||||
// Source
|
||||
|
||||
// required .pb.Source.Version version = 1;
|
||||
// required .legacy_pb.Source.Version version = 1;
|
||||
inline bool Source::has_version() const {
|
||||
return (_has_bits_[0] & 0x00000004u) != 0;
|
||||
}
|
||||
inline void Source::set_has_version() {
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
}
|
||||
inline void Source::clear_has_version() {
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline void Source::clear_version() {
|
||||
version_ = 0;
|
||||
clear_has_version();
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline ::pb::Source_Version Source::version() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Source.version)
|
||||
return static_cast< ::pb::Source_Version >(version_);
|
||||
inline ::legacy_pb::Source_Version Source::version() const {
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Source.version)
|
||||
return static_cast< ::legacy_pb::Source_Version >(version_);
|
||||
}
|
||||
inline void Source::set_version(::pb::Source_Version value) {
|
||||
assert(::pb::Source_Version_IsValid(value));
|
||||
set_has_version();
|
||||
inline void Source::set_version(::legacy_pb::Source_Version value) {
|
||||
assert(::legacy_pb::Source_Version_IsValid(value));
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
version_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Source.version)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Source.version)
|
||||
}
|
||||
|
||||
// required .pb.Source.SourceTypes sourceType = 2;
|
||||
// required .legacy_pb.Source.SourceTypes sourceType = 2;
|
||||
inline bool Source::has_sourcetype() const {
|
||||
return (_has_bits_[0] & 0x00000008u) != 0;
|
||||
}
|
||||
inline void Source::set_has_sourcetype() {
|
||||
_has_bits_[0] |= 0x00000008u;
|
||||
}
|
||||
inline void Source::clear_has_sourcetype() {
|
||||
_has_bits_[0] &= ~0x00000008u;
|
||||
}
|
||||
inline void Source::clear_sourcetype() {
|
||||
sourcetype_ = 0;
|
||||
clear_has_sourcetype();
|
||||
_has_bits_[0] &= ~0x00000008u;
|
||||
}
|
||||
inline ::pb::Source_SourceTypes Source::sourcetype() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Source.sourceType)
|
||||
return static_cast< ::pb::Source_SourceTypes >(sourcetype_);
|
||||
inline ::legacy_pb::Source_SourceTypes Source::sourcetype() const {
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Source.sourceType)
|
||||
return static_cast< ::legacy_pb::Source_SourceTypes >(sourcetype_);
|
||||
}
|
||||
inline void Source::set_sourcetype(::pb::Source_SourceTypes value) {
|
||||
assert(::pb::Source_SourceTypes_IsValid(value));
|
||||
set_has_sourcetype();
|
||||
inline void Source::set_sourcetype(::legacy_pb::Source_SourceTypes value) {
|
||||
assert(::legacy_pb::Source_SourceTypes_IsValid(value));
|
||||
_has_bits_[0] |= 0x00000008u;
|
||||
sourcetype_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Source.sourceType)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Source.sourceType)
|
||||
}
|
||||
|
||||
// required bytes source = 3;
|
||||
inline bool Source::has_source() const {
|
||||
return (_has_bits_[0] & 0x00000001u) != 0;
|
||||
}
|
||||
inline void Source::set_has_source() {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
}
|
||||
inline void Source::clear_has_source() {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline void Source::clear_source() {
|
||||
source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
clear_has_source();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline const ::std::string& Source::source() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Source.source)
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Source.source)
|
||||
return source_.GetNoArena();
|
||||
}
|
||||
inline void Source::set_source(const ::std::string& value) {
|
||||
set_has_source();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
||||
// @@protoc_insertion_point(field_set:pb.Source.source)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Source.source)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Source::set_source(::std::string&& value) {
|
||||
set_has_source();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
source_.SetNoArena(
|
||||
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
||||
// @@protoc_insertion_point(field_set_rvalue:pb.Source.source)
|
||||
// @@protoc_insertion_point(field_set_rvalue:legacy_pb.Source.source)
|
||||
}
|
||||
#endif
|
||||
inline void Source::set_source(const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
set_has_source();
|
||||
GOOGLE_DCHECK(value != nullptr);
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
||||
// @@protoc_insertion_point(field_set_char:pb.Source.source)
|
||||
// @@protoc_insertion_point(field_set_char:legacy_pb.Source.source)
|
||||
}
|
||||
inline void Source::set_source(const void* value, size_t size) {
|
||||
set_has_source();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
::std::string(reinterpret_cast<const char*>(value), size));
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Source.source)
|
||||
// @@protoc_insertion_point(field_set_pointer:legacy_pb.Source.source)
|
||||
}
|
||||
inline ::std::string* Source::mutable_source() {
|
||||
set_has_source();
|
||||
// @@protoc_insertion_point(field_mutable:pb.Source.source)
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Source.source)
|
||||
return source_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline ::std::string* Source::release_source() {
|
||||
// @@protoc_insertion_point(field_release:pb.Source.source)
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Source.source)
|
||||
if (!has_source()) {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
clear_has_source();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
return source_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline void Source::set_allocated_source(::std::string* source) {
|
||||
if (source != NULL) {
|
||||
set_has_source();
|
||||
if (source != nullptr) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
clear_has_source();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
source_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source);
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Source.source)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Source.source)
|
||||
}
|
||||
|
||||
// required string contentType = 4;
|
||||
inline bool Source::has_contenttype() const {
|
||||
return (_has_bits_[0] & 0x00000002u) != 0;
|
||||
}
|
||||
inline void Source::set_has_contenttype() {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
}
|
||||
inline void Source::clear_has_contenttype() {
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline void Source::clear_contenttype() {
|
||||
contenttype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
clear_has_contenttype();
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline const ::std::string& Source::contenttype() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Source.contentType)
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Source.contentType)
|
||||
return contenttype_.GetNoArena();
|
||||
}
|
||||
inline void Source::set_contenttype(const ::std::string& value) {
|
||||
set_has_contenttype();
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
contenttype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
||||
// @@protoc_insertion_point(field_set:pb.Source.contentType)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Source.contentType)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Source::set_contenttype(::std::string&& value) {
|
||||
set_has_contenttype();
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
contenttype_.SetNoArena(
|
||||
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
||||
// @@protoc_insertion_point(field_set_rvalue:pb.Source.contentType)
|
||||
// @@protoc_insertion_point(field_set_rvalue:legacy_pb.Source.contentType)
|
||||
}
|
||||
#endif
|
||||
inline void Source::set_contenttype(const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
set_has_contenttype();
|
||||
GOOGLE_DCHECK(value != nullptr);
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
contenttype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
||||
// @@protoc_insertion_point(field_set_char:pb.Source.contentType)
|
||||
// @@protoc_insertion_point(field_set_char:legacy_pb.Source.contentType)
|
||||
}
|
||||
inline void Source::set_contenttype(const char* value, size_t size) {
|
||||
set_has_contenttype();
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
contenttype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
::std::string(reinterpret_cast<const char*>(value), size));
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Source.contentType)
|
||||
// @@protoc_insertion_point(field_set_pointer:legacy_pb.Source.contentType)
|
||||
}
|
||||
inline ::std::string* Source::mutable_contenttype() {
|
||||
set_has_contenttype();
|
||||
// @@protoc_insertion_point(field_mutable:pb.Source.contentType)
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Source.contentType)
|
||||
return contenttype_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline ::std::string* Source::release_contenttype() {
|
||||
// @@protoc_insertion_point(field_release:pb.Source.contentType)
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Source.contentType)
|
||||
if (!has_contenttype()) {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
clear_has_contenttype();
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
return contenttype_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline void Source::set_allocated_contenttype(::std::string* contenttype) {
|
||||
if (contenttype != NULL) {
|
||||
set_has_contenttype();
|
||||
if (contenttype != nullptr) {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
} else {
|
||||
clear_has_contenttype();
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
contenttype_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), contenttype);
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Source.contentType)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Source.contentType)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
@ -510,20 +490,20 @@ inline void Source::set_allocated_contenttype(::std::string* contenttype) {
|
|||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
|
||||
template <> struct is_proto_enum< ::pb::Source_Version> : ::std::true_type {};
|
||||
template <> struct is_proto_enum< ::legacy_pb::Source_Version> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::pb::Source_Version>() {
|
||||
return ::pb::Source_Version_descriptor();
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::Source_Version>() {
|
||||
return ::legacy_pb::Source_Version_descriptor();
|
||||
}
|
||||
template <> struct is_proto_enum< ::pb::Source_SourceTypes> : ::std::true_type {};
|
||||
template <> struct is_proto_enum< ::legacy_pb::Source_SourceTypes> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::pb::Source_SourceTypes>() {
|
||||
return ::pb::Source_SourceTypes_descriptor();
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::Source_SourceTypes>() {
|
||||
return ::legacy_pb::Source_SourceTypes_descriptor();
|
||||
}
|
||||
|
||||
} // namespace protobuf
|
||||
|
@ -531,4 +511,5 @@ inline const EnumDescriptor* GetEnumDescriptor< ::pb::Source_SourceTypes>() {
|
|||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#endif // PROTOBUF_INCLUDED_source_2eproto
|
||||
|
|
|
@ -6,127 +6,104 @@
|
|||
#include <algorithm>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
#include <google/protobuf/stubs/port.h>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/extension_set.h>
|
||||
#include <google/protobuf/wire_format_lite_inl.h>
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/reflection_ops.h>
|
||||
#include <google/protobuf/wire_format.h>
|
||||
// This is a temporary google only hack
|
||||
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
||||
#include "third_party/protobuf/version.h"
|
||||
#endif
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
|
||||
namespace protobuf_metadata_2eproto {
|
||||
extern PROTOBUF_INTERNAL_EXPORT_protobuf_metadata_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Metadata;
|
||||
} // namespace protobuf_metadata_2eproto
|
||||
namespace protobuf_source_2eproto {
|
||||
extern PROTOBUF_INTERNAL_EXPORT_protobuf_source_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Source;
|
||||
} // namespace protobuf_source_2eproto
|
||||
namespace pb {
|
||||
extern PROTOBUF_INTERNAL_EXPORT_metadata_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Metadata_metadata_2eproto;
|
||||
extern PROTOBUF_INTERNAL_EXPORT_source_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Source_source_2eproto;
|
||||
namespace legacy_pb {
|
||||
class StreamDefaultTypeInternal {
|
||||
public:
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Stream>
|
||||
_instance;
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Stream> _instance;
|
||||
} _Stream_default_instance_;
|
||||
} // namespace pb
|
||||
namespace protobuf_stream_2eproto {
|
||||
static void InitDefaultsStream() {
|
||||
} // namespace legacy_pb
|
||||
static void InitDefaultsStream_stream_2eproto() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
{
|
||||
void* ptr = &::pb::_Stream_default_instance_;
|
||||
new (ptr) ::pb::Stream();
|
||||
void* ptr = &::legacy_pb::_Stream_default_instance_;
|
||||
new (ptr) ::legacy_pb::Stream();
|
||||
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
||||
}
|
||||
::pb::Stream::InitAsDefaultInstance();
|
||||
::legacy_pb::Stream::InitAsDefaultInstance();
|
||||
}
|
||||
|
||||
::google::protobuf::internal::SCCInfo<2> scc_info_Stream =
|
||||
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsStream}, {
|
||||
&protobuf_metadata_2eproto::scc_info_Metadata.base,
|
||||
&protobuf_source_2eproto::scc_info_Source.base,}};
|
||||
::google::protobuf::internal::SCCInfo<2> scc_info_Stream_stream_2eproto =
|
||||
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsStream_stream_2eproto}, {
|
||||
&scc_info_Metadata_metadata_2eproto.base,
|
||||
&scc_info_Source_source_2eproto.base,}};
|
||||
|
||||
void InitDefaults() {
|
||||
::google::protobuf::internal::InitSCC(&scc_info_Stream.base);
|
||||
void InitDefaults_stream_2eproto() {
|
||||
::google::protobuf::internal::InitSCC(&scc_info_Stream_stream_2eproto.base);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata file_level_metadata[1];
|
||||
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
|
||||
::google::protobuf::Metadata file_level_metadata_stream_2eproto[1];
|
||||
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_stream_2eproto[1];
|
||||
constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_stream_2eproto = nullptr;
|
||||
|
||||
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Stream, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Stream, _internal_metadata_),
|
||||
const ::google::protobuf::uint32 TableStruct_stream_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Stream, _has_bits_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Stream, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Stream, version_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Stream, metadata_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Stream, source_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Stream, version_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Stream, metadata_),
|
||||
PROTOBUF_FIELD_OFFSET(::legacy_pb::Stream, source_),
|
||||
2,
|
||||
0,
|
||||
1,
|
||||
};
|
||||
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 8, sizeof(::pb::Stream)},
|
||||
static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 8, sizeof(::legacy_pb::Stream)},
|
||||
};
|
||||
|
||||
static ::google::protobuf::Message const * const file_default_instances[] = {
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Stream_default_instance_),
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::legacy_pb::_Stream_default_instance_),
|
||||
};
|
||||
|
||||
void protobuf_AssignDescriptors() {
|
||||
AddDescriptors();
|
||||
AssignDescriptors(
|
||||
"stream.proto", schemas, file_default_instances, TableStruct::offsets,
|
||||
file_level_metadata, file_level_enum_descriptors, NULL);
|
||||
}
|
||||
::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_stream_2eproto = {
|
||||
{}, AddDescriptors_stream_2eproto, "stream.proto", schemas,
|
||||
file_default_instances, TableStruct_stream_2eproto::offsets,
|
||||
file_level_metadata_stream_2eproto, 1, file_level_enum_descriptors_stream_2eproto, file_level_service_descriptors_stream_2eproto,
|
||||
};
|
||||
|
||||
void protobuf_AssignDescriptorsOnce() {
|
||||
static ::google::protobuf::internal::once_flag once;
|
||||
::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
|
||||
}
|
||||
const char descriptor_table_protodef_stream_2eproto[] =
|
||||
"\n\014stream.proto\022\tlegacy_pb\032\016metadata.prot"
|
||||
"o\032\014source.proto\"\252\001\n\006Stream\022*\n\007version\030\001 "
|
||||
"\002(\0162\031.legacy_pb.Stream.Version\022%\n\010metada"
|
||||
"ta\030\002 \002(\0132\023.legacy_pb.Metadata\022!\n\006source\030"
|
||||
"\003 \002(\0132\021.legacy_pb.Source\"*\n\007Version\022\023\n\017U"
|
||||
"NKNOWN_VERSION\020\000\022\n\n\006_0_0_1\020\001"
|
||||
;
|
||||
::google::protobuf::internal::DescriptorTable descriptor_table_stream_2eproto = {
|
||||
false, InitDefaults_stream_2eproto,
|
||||
descriptor_table_protodef_stream_2eproto,
|
||||
"stream.proto", &assign_descriptors_table_stream_2eproto, 228,
|
||||
};
|
||||
|
||||
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
||||
void protobuf_RegisterTypes(const ::std::string&) {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
|
||||
}
|
||||
|
||||
void AddDescriptorsImpl() {
|
||||
InitDefaults();
|
||||
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
"\n\014stream.proto\022\002pb\032\016metadata.proto\032\014sour"
|
||||
"ce.proto\"\225\001\n\006Stream\022#\n\007version\030\001 \002(\0162\022.p"
|
||||
"b.Stream.Version\022\036\n\010metadata\030\002 \002(\0132\014.pb."
|
||||
"Metadata\022\032\n\006source\030\003 \002(\0132\n.pb.Source\"*\n\007"
|
||||
"Version\022\023\n\017UNKNOWN_VERSION\020\000\022\n\n\006_0_0_1\020\001"
|
||||
void AddDescriptors_stream_2eproto() {
|
||||
static constexpr ::google::protobuf::internal::InitFunc deps[2] =
|
||||
{
|
||||
::AddDescriptors_metadata_2eproto,
|
||||
::AddDescriptors_source_2eproto,
|
||||
};
|
||||
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
||||
descriptor, 200);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"stream.proto", &protobuf_RegisterTypes);
|
||||
::protobuf_metadata_2eproto::AddDescriptors();
|
||||
::protobuf_source_2eproto::AddDescriptors();
|
||||
::google::protobuf::internal::AddDescriptors(&descriptor_table_stream_2eproto, deps, 2);
|
||||
}
|
||||
|
||||
void AddDescriptors() {
|
||||
static ::google::protobuf::internal::once_flag once;
|
||||
::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
|
||||
}
|
||||
// Force AddDescriptors() to be called at dynamic initialization time.
|
||||
struct StaticDescriptorInitializer {
|
||||
StaticDescriptorInitializer() {
|
||||
AddDescriptors();
|
||||
}
|
||||
} static_descriptor_initializer;
|
||||
} // namespace protobuf_stream_2eproto
|
||||
namespace pb {
|
||||
// Force running AddDescriptors() at dynamic initialization time.
|
||||
static bool dynamic_init_dummy_stream_2eproto = []() { AddDescriptors_stream_2eproto(); return true; }();
|
||||
namespace legacy_pb {
|
||||
const ::google::protobuf::EnumDescriptor* Stream_Version_descriptor() {
|
||||
protobuf_stream_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_stream_2eproto::file_level_enum_descriptors[0];
|
||||
::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_stream_2eproto);
|
||||
return file_level_enum_descriptors_stream_2eproto[0];
|
||||
}
|
||||
bool Stream_Version_IsValid(int value) {
|
||||
switch (value) {
|
||||
|
@ -149,18 +126,41 @@ const int Stream::Version_ARRAYSIZE;
|
|||
// ===================================================================
|
||||
|
||||
void Stream::InitAsDefaultInstance() {
|
||||
::pb::_Stream_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::pb::Metadata*>(
|
||||
::pb::Metadata::internal_default_instance());
|
||||
::pb::_Stream_default_instance_._instance.get_mutable()->source_ = const_cast< ::pb::Source*>(
|
||||
::pb::Source::internal_default_instance());
|
||||
::legacy_pb::_Stream_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::legacy_pb::Metadata*>(
|
||||
::legacy_pb::Metadata::internal_default_instance());
|
||||
::legacy_pb::_Stream_default_instance_._instance.get_mutable()->source_ = const_cast< ::legacy_pb::Source*>(
|
||||
::legacy_pb::Source::internal_default_instance());
|
||||
}
|
||||
class Stream::HasBitSetters {
|
||||
public:
|
||||
static void set_has_version(Stream* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000004u;
|
||||
}
|
||||
static const ::legacy_pb::Metadata& metadata(const Stream* msg);
|
||||
static void set_has_metadata(Stream* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000001u;
|
||||
}
|
||||
static const ::legacy_pb::Source& source(const Stream* msg);
|
||||
static void set_has_source(Stream* msg) {
|
||||
msg->_has_bits_[0] |= 0x00000002u;
|
||||
}
|
||||
};
|
||||
|
||||
const ::legacy_pb::Metadata&
|
||||
Stream::HasBitSetters::metadata(const Stream* msg) {
|
||||
return *msg->metadata_;
|
||||
}
|
||||
const ::legacy_pb::Source&
|
||||
Stream::HasBitSetters::source(const Stream* msg) {
|
||||
return *msg->source_;
|
||||
}
|
||||
void Stream::clear_metadata() {
|
||||
if (metadata_ != NULL) metadata_->Clear();
|
||||
clear_has_metadata();
|
||||
if (metadata_ != nullptr) metadata_->Clear();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
void Stream::clear_source() {
|
||||
if (source_ != NULL) source_->Clear();
|
||||
clear_has_source();
|
||||
if (source_ != nullptr) source_->Clear();
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const int Stream::kVersionFieldNumber;
|
||||
|
@ -169,39 +169,39 @@ const int Stream::kSourceFieldNumber;
|
|||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
||||
Stream::Stream()
|
||||
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
||||
::google::protobuf::internal::InitSCC(
|
||||
&protobuf_stream_2eproto::scc_info_Stream.base);
|
||||
: ::google::protobuf::Message(), _internal_metadata_(nullptr) {
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:pb.Stream)
|
||||
// @@protoc_insertion_point(constructor:legacy_pb.Stream)
|
||||
}
|
||||
Stream::Stream(const Stream& from)
|
||||
: ::google::protobuf::Message(),
|
||||
_internal_metadata_(NULL),
|
||||
_internal_metadata_(nullptr),
|
||||
_has_bits_(from._has_bits_) {
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
if (from.has_metadata()) {
|
||||
metadata_ = new ::pb::Metadata(*from.metadata_);
|
||||
metadata_ = new ::legacy_pb::Metadata(*from.metadata_);
|
||||
} else {
|
||||
metadata_ = NULL;
|
||||
metadata_ = nullptr;
|
||||
}
|
||||
if (from.has_source()) {
|
||||
source_ = new ::pb::Source(*from.source_);
|
||||
source_ = new ::legacy_pb::Source(*from.source_);
|
||||
} else {
|
||||
source_ = NULL;
|
||||
source_ = nullptr;
|
||||
}
|
||||
version_ = from.version_;
|
||||
// @@protoc_insertion_point(copy_constructor:pb.Stream)
|
||||
// @@protoc_insertion_point(copy_constructor:legacy_pb.Stream)
|
||||
}
|
||||
|
||||
void Stream::SharedCtor() {
|
||||
::google::protobuf::internal::InitSCC(
|
||||
&scc_info_Stream_stream_2eproto.base);
|
||||
::memset(&metadata_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&version_) -
|
||||
reinterpret_cast<char*>(&metadata_)) + sizeof(version_));
|
||||
}
|
||||
|
||||
Stream::~Stream() {
|
||||
// @@protoc_insertion_point(destructor:pb.Stream)
|
||||
// @@protoc_insertion_point(destructor:legacy_pb.Stream)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
|
@ -213,31 +213,26 @@ void Stream::SharedDtor() {
|
|||
void Stream::SetCachedSize(int size) const {
|
||||
_cached_size_.Set(size);
|
||||
}
|
||||
const ::google::protobuf::Descriptor* Stream::descriptor() {
|
||||
::protobuf_stream_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return ::protobuf_stream_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
||||
}
|
||||
|
||||
const Stream& Stream::default_instance() {
|
||||
::google::protobuf::internal::InitSCC(&protobuf_stream_2eproto::scc_info_Stream.base);
|
||||
::google::protobuf::internal::InitSCC(&::scc_info_Stream_stream_2eproto.base);
|
||||
return *internal_default_instance();
|
||||
}
|
||||
|
||||
|
||||
void Stream::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:pb.Stream)
|
||||
// @@protoc_insertion_point(message_clear_start:legacy_pb.Stream)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
if (cached_has_bits & 3u) {
|
||||
if (cached_has_bits & 0x00000003u) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
GOOGLE_DCHECK(metadata_ != NULL);
|
||||
GOOGLE_DCHECK(metadata_ != nullptr);
|
||||
metadata_->Clear();
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
GOOGLE_DCHECK(source_ != NULL);
|
||||
GOOGLE_DCHECK(source_ != nullptr);
|
||||
source_->Clear();
|
||||
}
|
||||
}
|
||||
|
@ -246,29 +241,99 @@ void Stream::Clear() {
|
|||
_internal_metadata_.Clear();
|
||||
}
|
||||
|
||||
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
const char* Stream::_InternalParse(const char* begin, const char* end, void* object,
|
||||
::google::protobuf::internal::ParseContext* ctx) {
|
||||
auto msg = static_cast<Stream*>(object);
|
||||
::google::protobuf::int32 size; (void)size;
|
||||
int depth; (void)depth;
|
||||
::google::protobuf::uint32 tag;
|
||||
::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
|
||||
auto ptr = begin;
|
||||
while (ptr < end) {
|
||||
ptr = ::google::protobuf::io::Parse32(ptr, &tag);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
switch (tag >> 3) {
|
||||
// required .legacy_pb.Stream.Version version = 1;
|
||||
case 1: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
|
||||
::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
|
||||
if (!::legacy_pb::Stream_Version_IsValid(val)) {
|
||||
::google::protobuf::internal::WriteVarint(1, val, msg->mutable_unknown_fields());
|
||||
break;
|
||||
}
|
||||
msg->set_version(static_cast<::legacy_pb::Stream_Version>(val));
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
break;
|
||||
}
|
||||
// required .legacy_pb.Metadata metadata = 2;
|
||||
case 2: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
|
||||
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
parser_till_end = ::legacy_pb::Metadata::_InternalParse;
|
||||
object = msg->mutable_metadata();
|
||||
if (size > end - ptr) goto len_delim_till_end;
|
||||
ptr += size;
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
|
||||
{parser_till_end, object}, ptr - size, ptr));
|
||||
break;
|
||||
}
|
||||
// required .legacy_pb.Source source = 3;
|
||||
case 3: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
|
||||
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
parser_till_end = ::legacy_pb::Source::_InternalParse;
|
||||
object = msg->mutable_source();
|
||||
if (size > end - ptr) goto len_delim_till_end;
|
||||
ptr += size;
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
|
||||
{parser_till_end, object}, ptr - size, ptr));
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
handle_unusual:
|
||||
if ((tag & 7) == 4 || tag == 0) {
|
||||
ctx->EndGroup(tag);
|
||||
return ptr;
|
||||
}
|
||||
auto res = UnknownFieldParse(tag, {_InternalParse, msg},
|
||||
ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
|
||||
ptr = res.first;
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
|
||||
if (res.second) return ptr;
|
||||
}
|
||||
} // switch
|
||||
} // while
|
||||
return ptr;
|
||||
len_delim_till_end:
|
||||
return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
|
||||
{parser_till_end, object}, size);
|
||||
}
|
||||
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
bool Stream::MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) {
|
||||
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
::google::protobuf::uint32 tag;
|
||||
// @@protoc_insertion_point(parse_start:pb.Stream)
|
||||
// @@protoc_insertion_point(parse_start:legacy_pb.Stream)
|
||||
for (;;) {
|
||||
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
||||
tag = p.first;
|
||||
if (!p.second) goto handle_unusual;
|
||||
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
||||
// required .pb.Stream.Version version = 1;
|
||||
// required .legacy_pb.Stream.Version version = 1;
|
||||
case 1: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
||||
int value;
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
|
||||
int value = 0;
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
||||
input, &value)));
|
||||
if (::pb::Stream_Version_IsValid(value)) {
|
||||
set_version(static_cast< ::pb::Stream_Version >(value));
|
||||
if (::legacy_pb::Stream_Version_IsValid(value)) {
|
||||
set_version(static_cast< ::legacy_pb::Stream_Version >(value));
|
||||
} else {
|
||||
mutable_unknown_fields()->AddVarint(
|
||||
1, static_cast< ::google::protobuf::uint64>(value));
|
||||
1, static_cast<::google::protobuf::uint64>(value));
|
||||
}
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
|
@ -276,10 +341,9 @@ bool Stream::MergePartialFromCodedStream(
|
|||
break;
|
||||
}
|
||||
|
||||
// required .pb.Metadata metadata = 2;
|
||||
// required .legacy_pb.Metadata metadata = 2;
|
||||
case 2: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
||||
input, mutable_metadata()));
|
||||
} else {
|
||||
|
@ -288,10 +352,9 @@ bool Stream::MergePartialFromCodedStream(
|
|||
break;
|
||||
}
|
||||
|
||||
// required .pb.Source source = 3;
|
||||
// required .legacy_pb.Source source = 3;
|
||||
case 3: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
||||
input, mutable_source()));
|
||||
} else {
|
||||
|
@ -312,102 +375,102 @@ bool Stream::MergePartialFromCodedStream(
|
|||
}
|
||||
}
|
||||
success:
|
||||
// @@protoc_insertion_point(parse_success:pb.Stream)
|
||||
// @@protoc_insertion_point(parse_success:legacy_pb.Stream)
|
||||
return true;
|
||||
failure:
|
||||
// @@protoc_insertion_point(parse_failure:pb.Stream)
|
||||
// @@protoc_insertion_point(parse_failure:legacy_pb.Stream)
|
||||
return false;
|
||||
#undef DO_
|
||||
}
|
||||
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
|
||||
void Stream::SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const {
|
||||
// @@protoc_insertion_point(serialize_start:pb.Stream)
|
||||
// @@protoc_insertion_point(serialize_start:legacy_pb.Stream)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .pb.Stream.Version version = 1;
|
||||
// required .legacy_pb.Stream.Version version = 1;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
1, this->version(), output);
|
||||
}
|
||||
|
||||
// required .pb.Metadata metadata = 2;
|
||||
// required .legacy_pb.Metadata metadata = 2;
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
||||
2, this->_internal_metadata(), output);
|
||||
2, HasBitSetters::metadata(this), output);
|
||||
}
|
||||
|
||||
// required .pb.Source source = 3;
|
||||
// required .legacy_pb.Source source = 3;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
||||
3, this->_internal_source(), output);
|
||||
3, HasBitSetters::source(this), output);
|
||||
}
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
||||
_internal_metadata_.unknown_fields(), output);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_end:pb.Stream)
|
||||
// @@protoc_insertion_point(serialize_end:legacy_pb.Stream)
|
||||
}
|
||||
|
||||
::google::protobuf::uint8* Stream::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:pb.Stream)
|
||||
::google::protobuf::uint8* target) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:legacy_pb.Stream)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .pb.Stream.Version version = 1;
|
||||
// required .legacy_pb.Stream.Version version = 1;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
||||
1, this->version(), target);
|
||||
}
|
||||
|
||||
// required .pb.Metadata metadata = 2;
|
||||
// required .legacy_pb.Metadata metadata = 2;
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::
|
||||
InternalWriteMessageToArray(
|
||||
2, this->_internal_metadata(), deterministic, target);
|
||||
2, HasBitSetters::metadata(this), target);
|
||||
}
|
||||
|
||||
// required .pb.Source source = 3;
|
||||
// required .legacy_pb.Source source = 3;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::
|
||||
InternalWriteMessageToArray(
|
||||
3, this->_internal_source(), deterministic, target);
|
||||
3, HasBitSetters::source(this), target);
|
||||
}
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields(), target);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:pb.Stream)
|
||||
// @@protoc_insertion_point(serialize_to_array_end:legacy_pb.Stream)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t Stream::RequiredFieldsByteSizeFallback() const {
|
||||
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:pb.Stream)
|
||||
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:legacy_pb.Stream)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (has_metadata()) {
|
||||
// required .pb.Metadata metadata = 2;
|
||||
// required .legacy_pb.Metadata metadata = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||||
*metadata_);
|
||||
}
|
||||
|
||||
if (has_source()) {
|
||||
// required .pb.Source source = 3;
|
||||
// required .legacy_pb.Source source = 3;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||||
*source_);
|
||||
}
|
||||
|
||||
if (has_version()) {
|
||||
// required .pb.Stream.Version version = 1;
|
||||
// required .legacy_pb.Stream.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
}
|
||||
|
@ -415,7 +478,7 @@ size_t Stream::RequiredFieldsByteSizeFallback() const {
|
|||
return total_size;
|
||||
}
|
||||
size_t Stream::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:pb.Stream)
|
||||
// @@protoc_insertion_point(message_byte_size_start:legacy_pb.Stream)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
|
@ -424,57 +487,61 @@ size_t Stream::ByteSizeLong() const {
|
|||
_internal_metadata_.unknown_fields());
|
||||
}
|
||||
if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
|
||||
// required .pb.Metadata metadata = 2;
|
||||
// required .legacy_pb.Metadata metadata = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||||
*metadata_);
|
||||
|
||||
// required .pb.Source source = 3;
|
||||
// required .legacy_pb.Source source = 3;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||||
*source_);
|
||||
|
||||
// required .pb.Stream.Version version = 1;
|
||||
// required .legacy_pb.Stream.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
|
||||
} else {
|
||||
total_size += RequiredFieldsByteSizeFallback();
|
||||
}
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
||||
SetCachedSize(cached_size);
|
||||
return total_size;
|
||||
}
|
||||
|
||||
void Stream::MergeFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:pb.Stream)
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:legacy_pb.Stream)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
const Stream* source =
|
||||
::google::protobuf::internal::DynamicCastToGenerated<const Stream>(
|
||||
::google::protobuf::DynamicCastToGenerated<Stream>(
|
||||
&from);
|
||||
if (source == NULL) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Stream)
|
||||
if (source == nullptr) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:legacy_pb.Stream)
|
||||
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
||||
} else {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Stream)
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:legacy_pb.Stream)
|
||||
MergeFrom(*source);
|
||||
}
|
||||
}
|
||||
|
||||
void Stream::MergeFrom(const Stream& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Stream)
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:legacy_pb.Stream)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = from._has_bits_[0];
|
||||
if (cached_has_bits & 7u) {
|
||||
if (cached_has_bits & 0x00000007u) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
mutable_metadata()->::pb::Metadata::MergeFrom(from.metadata());
|
||||
mutable_metadata()->::legacy_pb::Metadata::MergeFrom(from.metadata());
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
mutable_source()->::pb::Source::MergeFrom(from.source());
|
||||
mutable_source()->::legacy_pb::Source::MergeFrom(from.source());
|
||||
}
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
version_ = from.version_;
|
||||
|
@ -484,14 +551,14 @@ void Stream::MergeFrom(const Stream& from) {
|
|||
}
|
||||
|
||||
void Stream::CopyFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:pb.Stream)
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:legacy_pb.Stream)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
void Stream::CopyFrom(const Stream& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Stream)
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:legacy_pb.Stream)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
|
@ -514,27 +581,28 @@ void Stream::Swap(Stream* other) {
|
|||
}
|
||||
void Stream::InternalSwap(Stream* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
swap(_has_bits_[0], other->_has_bits_[0]);
|
||||
swap(metadata_, other->metadata_);
|
||||
swap(source_, other->source_);
|
||||
swap(version_, other->version_);
|
||||
swap(_has_bits_[0], other->_has_bits_[0]);
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata Stream::GetMetadata() const {
|
||||
protobuf_stream_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return ::protobuf_stream_2eproto::file_level_metadata[kIndexInFileMessages];
|
||||
::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_stream_2eproto);
|
||||
return ::file_level_metadata_stream_2eproto[kIndexInFileMessages];
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pb::Stream* Arena::CreateMaybeMessage< ::pb::Stream >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::pb::Stream >(arena);
|
||||
template<> PROTOBUF_NOINLINE ::legacy_pb::Stream* Arena::CreateMaybeMessage< ::legacy_pb::Stream >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::legacy_pb::Stream >(arena);
|
||||
}
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
|
|
|
@ -4,21 +4,22 @@
|
|||
#ifndef PROTOBUF_INCLUDED_stream_2eproto
|
||||
#define PROTOBUF_INCLUDED_stream_2eproto
|
||||
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006000
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#if PROTOBUF_VERSION < 3007000
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3007000 < 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 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>
|
||||
|
@ -34,31 +35,33 @@
|
|||
#include "metadata.pb.h"
|
||||
#include "source.pb.h"
|
||||
// @@protoc_insertion_point(includes)
|
||||
#define PROTOBUF_INTERNAL_EXPORT_protobuf_stream_2eproto
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_stream_2eproto
|
||||
|
||||
namespace protobuf_stream_2eproto {
|
||||
// Internal implementation detail -- do not use these members.
|
||||
struct TableStruct {
|
||||
static const ::google::protobuf::internal::ParseTableField entries[];
|
||||
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
|
||||
static const ::google::protobuf::internal::ParseTable schema[1];
|
||||
struct TableStruct_stream_2eproto {
|
||||
static const ::google::protobuf::internal::ParseTableField entries[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::ParseTable schema[1]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
|
||||
static const ::google::protobuf::internal::SerializationTable serialization_table[];
|
||||
static const ::google::protobuf::uint32 offsets[];
|
||||
};
|
||||
void AddDescriptors();
|
||||
} // namespace protobuf_stream_2eproto
|
||||
namespace pb {
|
||||
void AddDescriptors_stream_2eproto();
|
||||
namespace legacy_pb {
|
||||
class Stream;
|
||||
class StreamDefaultTypeInternal;
|
||||
extern StreamDefaultTypeInternal _Stream_default_instance_;
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> ::pb::Stream* Arena::CreateMaybeMessage<::pb::Stream>(Arena*);
|
||||
template<> ::legacy_pb::Stream* Arena::CreateMaybeMessage<::legacy_pb::Stream>(Arena*);
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
|
||||
enum Stream_Version {
|
||||
Stream_Version_UNKNOWN_VERSION = 0,
|
||||
|
@ -81,7 +84,8 @@ inline bool Stream_Version_Parse(
|
|||
}
|
||||
// ===================================================================
|
||||
|
||||
class Stream : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Stream) */ {
|
||||
class Stream final :
|
||||
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Stream) */ {
|
||||
public:
|
||||
Stream();
|
||||
virtual ~Stream();
|
||||
|
@ -114,7 +118,9 @@ class Stream : public ::google::protobuf::Message /* @@protoc_insertion_point(cl
|
|||
return _internal_metadata_.mutable_unknown_fields();
|
||||
}
|
||||
|
||||
static const ::google::protobuf::Descriptor* descriptor();
|
||||
static const ::google::protobuf::Descriptor* descriptor() {
|
||||
return default_instance().GetDescriptor();
|
||||
}
|
||||
static const Stream& default_instance();
|
||||
|
||||
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
||||
|
@ -133,7 +139,7 @@ class Stream : public ::google::protobuf::Message /* @@protoc_insertion_point(cl
|
|||
// implements Message ----------------------------------------------
|
||||
|
||||
inline Stream* New() const final {
|
||||
return CreateMaybeMessage<Stream>(NULL);
|
||||
return CreateMaybeMessage<Stream>(nullptr);
|
||||
}
|
||||
|
||||
Stream* New(::google::protobuf::Arena* arena) const final {
|
||||
|
@ -143,16 +149,21 @@ class Stream : public ::google::protobuf::Message /* @@protoc_insertion_point(cl
|
|||
void MergeFrom(const ::google::protobuf::Message& from) final;
|
||||
void CopyFrom(const Stream& from);
|
||||
void MergeFrom(const Stream& from);
|
||||
void Clear() final;
|
||||
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
||||
bool IsInitialized() const final;
|
||||
|
||||
size_t ByteSizeLong() const final;
|
||||
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
|
||||
::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
|
||||
#else
|
||||
bool MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) final;
|
||||
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
||||
void SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const final;
|
||||
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const final;
|
||||
::google::protobuf::uint8* target) const final;
|
||||
int GetCachedSize() const final { return _cached_size_.Get(); }
|
||||
|
||||
private:
|
||||
|
@ -162,10 +173,10 @@ class Stream : public ::google::protobuf::Message /* @@protoc_insertion_point(cl
|
|||
void InternalSwap(Stream* other);
|
||||
private:
|
||||
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
inline void* MaybeArenaPtr() const {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
public:
|
||||
|
||||
|
@ -201,45 +212,34 @@ class Stream : public ::google::protobuf::Message /* @@protoc_insertion_point(cl
|
|||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
// required .pb.Metadata metadata = 2;
|
||||
// required .legacy_pb.Metadata metadata = 2;
|
||||
bool has_metadata() const;
|
||||
void clear_metadata();
|
||||
static const int kMetadataFieldNumber = 2;
|
||||
private:
|
||||
const ::pb::Metadata& _internal_metadata() const;
|
||||
public:
|
||||
const ::pb::Metadata& metadata() const;
|
||||
::pb::Metadata* release_metadata();
|
||||
::pb::Metadata* mutable_metadata();
|
||||
void set_allocated_metadata(::pb::Metadata* metadata);
|
||||
const ::legacy_pb::Metadata& metadata() const;
|
||||
::legacy_pb::Metadata* release_metadata();
|
||||
::legacy_pb::Metadata* mutable_metadata();
|
||||
void set_allocated_metadata(::legacy_pb::Metadata* metadata);
|
||||
|
||||
// required .pb.Source source = 3;
|
||||
// required .legacy_pb.Source source = 3;
|
||||
bool has_source() const;
|
||||
void clear_source();
|
||||
static const int kSourceFieldNumber = 3;
|
||||
private:
|
||||
const ::pb::Source& _internal_source() const;
|
||||
public:
|
||||
const ::pb::Source& source() const;
|
||||
::pb::Source* release_source();
|
||||
::pb::Source* mutable_source();
|
||||
void set_allocated_source(::pb::Source* source);
|
||||
const ::legacy_pb::Source& source() const;
|
||||
::legacy_pb::Source* release_source();
|
||||
::legacy_pb::Source* mutable_source();
|
||||
void set_allocated_source(::legacy_pb::Source* source);
|
||||
|
||||
// required .pb.Stream.Version version = 1;
|
||||
// required .legacy_pb.Stream.Version version = 1;
|
||||
bool has_version() const;
|
||||
void clear_version();
|
||||
static const int kVersionFieldNumber = 1;
|
||||
::pb::Stream_Version version() const;
|
||||
void set_version(::pb::Stream_Version value);
|
||||
::legacy_pb::Stream_Version version() const;
|
||||
void set_version(::legacy_pb::Stream_Version value);
|
||||
|
||||
// @@protoc_insertion_point(class_scope:pb.Stream)
|
||||
// @@protoc_insertion_point(class_scope:legacy_pb.Stream)
|
||||
private:
|
||||
void set_has_version();
|
||||
void clear_has_version();
|
||||
void set_has_metadata();
|
||||
void clear_has_metadata();
|
||||
void set_has_source();
|
||||
void clear_has_source();
|
||||
class HasBitSetters;
|
||||
|
||||
// helper for ByteSizeLong()
|
||||
size_t RequiredFieldsByteSizeFallback() const;
|
||||
|
@ -247,10 +247,10 @@ class Stream : public ::google::protobuf::Message /* @@protoc_insertion_point(cl
|
|||
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
|
||||
::google::protobuf::internal::HasBits<1> _has_bits_;
|
||||
mutable ::google::protobuf::internal::CachedSize _cached_size_;
|
||||
::pb::Metadata* metadata_;
|
||||
::pb::Source* source_;
|
||||
::legacy_pb::Metadata* metadata_;
|
||||
::legacy_pb::Source* source_;
|
||||
int version_;
|
||||
friend struct ::protobuf_stream_2eproto::TableStruct;
|
||||
friend struct ::TableStruct_stream_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
@ -263,137 +263,113 @@ class Stream : public ::google::protobuf::Message /* @@protoc_insertion_point(cl
|
|||
#endif // __GNUC__
|
||||
// Stream
|
||||
|
||||
// required .pb.Stream.Version version = 1;
|
||||
// required .legacy_pb.Stream.Version version = 1;
|
||||
inline bool Stream::has_version() const {
|
||||
return (_has_bits_[0] & 0x00000004u) != 0;
|
||||
}
|
||||
inline void Stream::set_has_version() {
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
}
|
||||
inline void Stream::clear_has_version() {
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline void Stream::clear_version() {
|
||||
version_ = 0;
|
||||
clear_has_version();
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline ::pb::Stream_Version Stream::version() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Stream.version)
|
||||
return static_cast< ::pb::Stream_Version >(version_);
|
||||
inline ::legacy_pb::Stream_Version Stream::version() const {
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Stream.version)
|
||||
return static_cast< ::legacy_pb::Stream_Version >(version_);
|
||||
}
|
||||
inline void Stream::set_version(::pb::Stream_Version value) {
|
||||
assert(::pb::Stream_Version_IsValid(value));
|
||||
set_has_version();
|
||||
inline void Stream::set_version(::legacy_pb::Stream_Version value) {
|
||||
assert(::legacy_pb::Stream_Version_IsValid(value));
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
version_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Stream.version)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Stream.version)
|
||||
}
|
||||
|
||||
// required .pb.Metadata metadata = 2;
|
||||
// required .legacy_pb.Metadata metadata = 2;
|
||||
inline bool Stream::has_metadata() const {
|
||||
return (_has_bits_[0] & 0x00000001u) != 0;
|
||||
}
|
||||
inline void Stream::set_has_metadata() {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
inline const ::legacy_pb::Metadata& Stream::metadata() const {
|
||||
const ::legacy_pb::Metadata* p = metadata_;
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Stream.metadata)
|
||||
return p != nullptr ? *p : *reinterpret_cast<const ::legacy_pb::Metadata*>(
|
||||
&::legacy_pb::_Metadata_default_instance_);
|
||||
}
|
||||
inline void Stream::clear_has_metadata() {
|
||||
inline ::legacy_pb::Metadata* Stream::release_metadata() {
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Stream.metadata)
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline const ::pb::Metadata& Stream::_internal_metadata() const {
|
||||
return *metadata_;
|
||||
}
|
||||
inline const ::pb::Metadata& Stream::metadata() const {
|
||||
const ::pb::Metadata* p = metadata_;
|
||||
// @@protoc_insertion_point(field_get:pb.Stream.metadata)
|
||||
return p != NULL ? *p : *reinterpret_cast<const ::pb::Metadata*>(
|
||||
&::pb::_Metadata_default_instance_);
|
||||
}
|
||||
inline ::pb::Metadata* Stream::release_metadata() {
|
||||
// @@protoc_insertion_point(field_release:pb.Stream.metadata)
|
||||
clear_has_metadata();
|
||||
::pb::Metadata* temp = metadata_;
|
||||
metadata_ = NULL;
|
||||
::legacy_pb::Metadata* temp = metadata_;
|
||||
metadata_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::pb::Metadata* Stream::mutable_metadata() {
|
||||
set_has_metadata();
|
||||
if (metadata_ == NULL) {
|
||||
auto* p = CreateMaybeMessage<::pb::Metadata>(GetArenaNoVirtual());
|
||||
inline ::legacy_pb::Metadata* Stream::mutable_metadata() {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
if (metadata_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::legacy_pb::Metadata>(GetArenaNoVirtual());
|
||||
metadata_ = p;
|
||||
}
|
||||
// @@protoc_insertion_point(field_mutable:pb.Stream.metadata)
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Stream.metadata)
|
||||
return metadata_;
|
||||
}
|
||||
inline void Stream::set_allocated_metadata(::pb::Metadata* metadata) {
|
||||
inline void Stream::set_allocated_metadata(::legacy_pb::Metadata* metadata) {
|
||||
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
|
||||
if (message_arena == NULL) {
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::google::protobuf::MessageLite*>(metadata_);
|
||||
}
|
||||
if (metadata) {
|
||||
::google::protobuf::Arena* submessage_arena = NULL;
|
||||
::google::protobuf::Arena* submessage_arena = nullptr;
|
||||
if (message_arena != submessage_arena) {
|
||||
metadata = ::google::protobuf::internal::GetOwnedMessage(
|
||||
message_arena, metadata, submessage_arena);
|
||||
}
|
||||
set_has_metadata();
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
clear_has_metadata();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
metadata_ = metadata;
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Stream.metadata)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Stream.metadata)
|
||||
}
|
||||
|
||||
// required .pb.Source source = 3;
|
||||
// required .legacy_pb.Source source = 3;
|
||||
inline bool Stream::has_source() const {
|
||||
return (_has_bits_[0] & 0x00000002u) != 0;
|
||||
}
|
||||
inline void Stream::set_has_source() {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
inline const ::legacy_pb::Source& Stream::source() const {
|
||||
const ::legacy_pb::Source* p = source_;
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Stream.source)
|
||||
return p != nullptr ? *p : *reinterpret_cast<const ::legacy_pb::Source*>(
|
||||
&::legacy_pb::_Source_default_instance_);
|
||||
}
|
||||
inline void Stream::clear_has_source() {
|
||||
inline ::legacy_pb::Source* Stream::release_source() {
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Stream.source)
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline const ::pb::Source& Stream::_internal_source() const {
|
||||
return *source_;
|
||||
}
|
||||
inline const ::pb::Source& Stream::source() const {
|
||||
const ::pb::Source* p = source_;
|
||||
// @@protoc_insertion_point(field_get:pb.Stream.source)
|
||||
return p != NULL ? *p : *reinterpret_cast<const ::pb::Source*>(
|
||||
&::pb::_Source_default_instance_);
|
||||
}
|
||||
inline ::pb::Source* Stream::release_source() {
|
||||
// @@protoc_insertion_point(field_release:pb.Stream.source)
|
||||
clear_has_source();
|
||||
::pb::Source* temp = source_;
|
||||
source_ = NULL;
|
||||
::legacy_pb::Source* temp = source_;
|
||||
source_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::pb::Source* Stream::mutable_source() {
|
||||
set_has_source();
|
||||
if (source_ == NULL) {
|
||||
auto* p = CreateMaybeMessage<::pb::Source>(GetArenaNoVirtual());
|
||||
inline ::legacy_pb::Source* Stream::mutable_source() {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
if (source_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::legacy_pb::Source>(GetArenaNoVirtual());
|
||||
source_ = p;
|
||||
}
|
||||
// @@protoc_insertion_point(field_mutable:pb.Stream.source)
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Stream.source)
|
||||
return source_;
|
||||
}
|
||||
inline void Stream::set_allocated_source(::pb::Source* source) {
|
||||
inline void Stream::set_allocated_source(::legacy_pb::Source* source) {
|
||||
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
|
||||
if (message_arena == NULL) {
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::google::protobuf::MessageLite*>(source_);
|
||||
}
|
||||
if (source) {
|
||||
::google::protobuf::Arena* submessage_arena = NULL;
|
||||
::google::protobuf::Arena* submessage_arena = nullptr;
|
||||
if (message_arena != submessage_arena) {
|
||||
source = ::google::protobuf::internal::GetOwnedMessage(
|
||||
message_arena, source, submessage_arena);
|
||||
}
|
||||
set_has_source();
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
} else {
|
||||
clear_has_source();
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
source_ = source;
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Stream.source)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Stream.source)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
@ -402,15 +378,15 @@ inline void Stream::set_allocated_source(::pb::Source* source) {
|
|||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
|
||||
template <> struct is_proto_enum< ::pb::Stream_Version> : ::std::true_type {};
|
||||
template <> struct is_proto_enum< ::legacy_pb::Stream_Version> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::pb::Stream_Version>() {
|
||||
return ::pb::Stream_Version_descriptor();
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::Stream_Version>() {
|
||||
return ::legacy_pb::Stream_Version_descriptor();
|
||||
}
|
||||
|
||||
} // namespace protobuf
|
||||
|
@ -418,4 +394,5 @@ inline const EnumDescriptor* GetEnumDescriptor< ::pb::Stream_Version>() {
|
|||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#endif // PROTOBUF_INCLUDED_stream_2eproto
|
||||
|
|
|
@ -1,32 +1,13 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: certificate.proto
|
||||
|
||||
/*
|
||||
Package pb is a generated protocol buffer package.
|
||||
package legacy_pb
|
||||
|
||||
It is generated from these files:
|
||||
certificate.proto
|
||||
claim.proto
|
||||
fee.proto
|
||||
metadata.proto
|
||||
signature.proto
|
||||
source.proto
|
||||
stream.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Certificate
|
||||
Claim
|
||||
Fee
|
||||
Metadata
|
||||
Signature
|
||||
Source
|
||||
Stream
|
||||
*/
|
||||
package pb
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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
|
||||
|
@ -37,7 +18,7 @@ var _ = math.Inf
|
|||
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
type KeyType int32
|
||||
|
||||
|
@ -54,6 +35,7 @@ var KeyType_name = map[int32]string{
|
|||
2: "NIST384p",
|
||||
3: "SECP256k1",
|
||||
}
|
||||
|
||||
var KeyType_value = map[string]int32{
|
||||
"UNKNOWN_PUBLIC_KEY_TYPE": 0,
|
||||
"NIST256p": 1,
|
||||
|
@ -66,9 +48,11 @@ func (x KeyType) Enum() *KeyType {
|
|||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x KeyType) String() string {
|
||||
return proto.EnumName(KeyType_name, int32(x))
|
||||
}
|
||||
|
||||
func (x *KeyType) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(KeyType_value, data, "KeyType")
|
||||
if err != nil {
|
||||
|
@ -77,7 +61,10 @@ func (x *KeyType) UnmarshalJSON(data []byte) error {
|
|||
*x = KeyType(value)
|
||||
return nil
|
||||
}
|
||||
func (KeyType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
|
||||
func (KeyType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_c0d34c34dd33be4b, []int{0}
|
||||
}
|
||||
|
||||
type Certificate_Version int32
|
||||
|
||||
|
@ -90,6 +77,7 @@ var Certificate_Version_name = map[int32]string{
|
|||
0: "UNKNOWN_VERSION",
|
||||
1: "_0_0_1",
|
||||
}
|
||||
|
||||
var Certificate_Version_value = map[string]int32{
|
||||
"UNKNOWN_VERSION": 0,
|
||||
"_0_0_1": 1,
|
||||
|
@ -100,9 +88,11 @@ func (x Certificate_Version) Enum() *Certificate_Version {
|
|||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x Certificate_Version) String() string {
|
||||
return proto.EnumName(Certificate_Version_name, int32(x))
|
||||
}
|
||||
|
||||
func (x *Certificate_Version) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Certificate_Version_value, data, "Certificate_Version")
|
||||
if err != nil {
|
||||
|
@ -111,19 +101,44 @@ func (x *Certificate_Version) UnmarshalJSON(data []byte) error {
|
|||
*x = Certificate_Version(value)
|
||||
return nil
|
||||
}
|
||||
func (Certificate_Version) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
|
||||
|
||||
type Certificate struct {
|
||||
Version *Certificate_Version `protobuf:"varint,1,req,name=version,enum=pb.Certificate_Version" json:"version,omitempty"`
|
||||
KeyType *KeyType `protobuf:"varint,2,req,name=keyType,enum=pb.KeyType" json:"keyType,omitempty"`
|
||||
PublicKey []byte `protobuf:"bytes,4,req,name=publicKey" json:"publicKey,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
func (Certificate_Version) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_c0d34c34dd33be4b, []int{0, 0}
|
||||
}
|
||||
|
||||
func (m *Certificate) Reset() { *m = Certificate{} }
|
||||
func (m *Certificate) String() string { return proto.CompactTextString(m) }
|
||||
func (*Certificate) ProtoMessage() {}
|
||||
func (*Certificate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
type Certificate struct {
|
||||
Version *Certificate_Version `protobuf:"varint,1,req,name=version,enum=legacy_pb.Certificate_Version" json:"version,omitempty"`
|
||||
KeyType *KeyType `protobuf:"varint,2,req,name=keyType,enum=legacy_pb.KeyType" json:"keyType,omitempty"`
|
||||
PublicKey []byte `protobuf:"bytes,4,req,name=publicKey" json:"publicKey,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Certificate) Reset() { *m = Certificate{} }
|
||||
func (m *Certificate) String() string { return proto.CompactTextString(m) }
|
||||
func (*Certificate) ProtoMessage() {}
|
||||
func (*Certificate) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_c0d34c34dd33be4b, []int{0}
|
||||
}
|
||||
|
||||
func (m *Certificate) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Certificate.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Certificate.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Certificate) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Certificate.Merge(m, src)
|
||||
}
|
||||
func (m *Certificate) XXX_Size() int {
|
||||
return xxx_messageInfo_Certificate.Size(m)
|
||||
}
|
||||
func (m *Certificate) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Certificate.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Certificate proto.InternalMessageInfo
|
||||
|
||||
func (m *Certificate) GetVersion() Certificate_Version {
|
||||
if m != nil && m.Version != nil {
|
||||
|
@ -147,28 +162,29 @@ func (m *Certificate) GetPublicKey() []byte {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Certificate)(nil), "pb.Certificate")
|
||||
proto.RegisterEnum("pb.KeyType", KeyType_name, KeyType_value)
|
||||
proto.RegisterEnum("pb.Certificate_Version", Certificate_Version_name, Certificate_Version_value)
|
||||
proto.RegisterEnum("legacy_pb.KeyType", KeyType_name, KeyType_value)
|
||||
proto.RegisterEnum("legacy_pb.Certificate_Version", Certificate_Version_name, Certificate_Version_value)
|
||||
proto.RegisterType((*Certificate)(nil), "legacy_pb.Certificate")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("certificate.proto", fileDescriptor0) }
|
||||
func init() { proto.RegisterFile("certificate.proto", fileDescriptor_c0d34c34dd33be4b) }
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
// 238 bytes of a gzipped FileDescriptorProto
|
||||
var fileDescriptor_c0d34c34dd33be4b = []byte{
|
||||
// 245 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4c, 0x4e, 0x2d, 0x2a,
|
||||
0xc9, 0x4c, 0xcb, 0x4c, 0x4e, 0x2c, 0x49, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a,
|
||||
0x48, 0x52, 0xda, 0xc8, 0xc8, 0xc5, 0xed, 0x8c, 0x90, 0x11, 0x32, 0xe4, 0x62, 0x2f, 0x4b, 0x2d,
|
||||
0x2a, 0xce, 0xcc, 0xcf, 0x93, 0x60, 0x54, 0x60, 0xd2, 0xe0, 0x33, 0x12, 0xd7, 0x2b, 0x48, 0xd2,
|
||||
0x43, 0x52, 0xa1, 0x17, 0x06, 0x91, 0x0e, 0x82, 0xa9, 0x13, 0x52, 0xe5, 0x62, 0xcf, 0x4e, 0xad,
|
||||
0x0c, 0xa9, 0x2c, 0x48, 0x95, 0x60, 0x02, 0x6b, 0xe1, 0x06, 0x69, 0xf1, 0x86, 0x08, 0x05, 0xc1,
|
||||
0xe4, 0x84, 0x64, 0xb8, 0x38, 0x0b, 0x4a, 0x93, 0x72, 0x32, 0x93, 0xbd, 0x53, 0x2b, 0x25, 0x58,
|
||||
0x14, 0x98, 0x34, 0x78, 0x82, 0x10, 0x02, 0x4a, 0x5a, 0x5c, 0xec, 0x50, 0x83, 0x85, 0x84, 0xb9,
|
||||
0xf8, 0x43, 0xfd, 0xbc, 0xfd, 0xfc, 0xc3, 0xfd, 0xe2, 0xc3, 0x5c, 0x83, 0x82, 0x3d, 0xfd, 0xfd,
|
||||
0x04, 0x18, 0x84, 0xb8, 0xb8, 0xd8, 0xe2, 0x0d, 0xe2, 0x0d, 0xe2, 0x0d, 0x05, 0x18, 0xb5, 0x02,
|
||||
0xb9, 0xd8, 0xa1, 0xa6, 0x0b, 0x49, 0x73, 0x89, 0xc3, 0xd4, 0x06, 0x84, 0x3a, 0xf9, 0x78, 0x3a,
|
||||
0xc7, 0x7b, 0xbb, 0x46, 0xc6, 0x87, 0x44, 0x06, 0xb8, 0x0a, 0x30, 0x08, 0xf1, 0x70, 0x71, 0xf8,
|
||||
0x79, 0x06, 0x87, 0x18, 0x99, 0x9a, 0x15, 0x08, 0x30, 0xc2, 0x78, 0xc6, 0x16, 0x26, 0x05, 0x02,
|
||||
0x4c, 0x42, 0xbc, 0x5c, 0x9c, 0xc1, 0xae, 0xce, 0x01, 0x46, 0xa6, 0x66, 0xd9, 0x86, 0x02, 0xcc,
|
||||
0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbf, 0xd0, 0xba, 0x16, 0x1e, 0x01, 0x00, 0x00,
|
||||
0xc9, 0x4c, 0xcb, 0x4c, 0x4e, 0x2c, 0x49, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0xcc,
|
||||
0x49, 0x4d, 0x4f, 0x4c, 0xae, 0x8c, 0x2f, 0x48, 0x52, 0xda, 0xcf, 0xc8, 0xc5, 0xed, 0x8c, 0x50,
|
||||
0x20, 0x64, 0xc1, 0xc5, 0x5e, 0x96, 0x5a, 0x54, 0x9c, 0x99, 0x9f, 0x27, 0xc1, 0xa8, 0xc0, 0xa4,
|
||||
0xc1, 0x67, 0x24, 0xa7, 0x07, 0x57, 0xac, 0x87, 0xa4, 0x50, 0x2f, 0x0c, 0xa2, 0x2a, 0x08, 0xa6,
|
||||
0x5c, 0x48, 0x87, 0x8b, 0x3d, 0x3b, 0xb5, 0x32, 0xa4, 0xb2, 0x20, 0x55, 0x82, 0x09, 0xac, 0x53,
|
||||
0x08, 0x49, 0xa7, 0x37, 0x44, 0x26, 0x08, 0xa6, 0x44, 0x48, 0x86, 0x8b, 0xb3, 0xa0, 0x34, 0x29,
|
||||
0x27, 0x33, 0xd9, 0x3b, 0xb5, 0x52, 0x82, 0x45, 0x81, 0x49, 0x83, 0x27, 0x08, 0x21, 0xa0, 0xa4,
|
||||
0xc5, 0xc5, 0x0e, 0x35, 0x5f, 0x48, 0x98, 0x8b, 0x3f, 0xd4, 0xcf, 0xdb, 0xcf, 0x3f, 0xdc, 0x2f,
|
||||
0x3e, 0xcc, 0x35, 0x28, 0xd8, 0xd3, 0xdf, 0x4f, 0x80, 0x41, 0x88, 0x8b, 0x8b, 0x2d, 0xde, 0x20,
|
||||
0xde, 0x20, 0xde, 0x50, 0x80, 0x51, 0x2b, 0x90, 0x8b, 0x1d, 0x6a, 0xba, 0x90, 0x34, 0x97, 0x38,
|
||||
0x4c, 0x6d, 0x40, 0xa8, 0x93, 0x8f, 0xa7, 0x73, 0xbc, 0xb7, 0x6b, 0x64, 0x7c, 0x48, 0x64, 0x80,
|
||||
0xab, 0x00, 0x83, 0x10, 0x0f, 0x17, 0x87, 0x9f, 0x67, 0x70, 0x88, 0x91, 0xa9, 0x59, 0x81, 0x00,
|
||||
0x23, 0x8c, 0x67, 0x6c, 0x61, 0x52, 0x20, 0xc0, 0x24, 0xc4, 0xcb, 0xc5, 0x19, 0xec, 0xea, 0x1c,
|
||||
0x60, 0x64, 0x6a, 0x96, 0x6d, 0x28, 0xc0, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x5a, 0x95, 0x46,
|
||||
0xe4, 0x33, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
|
|
@ -1,163 +0,0 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: claim.proto
|
||||
|
||||
package pb
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
type Claim_Version int32
|
||||
|
||||
const (
|
||||
Claim_UNKNOWN_VERSION Claim_Version = 0
|
||||
Claim__0_0_1 Claim_Version = 1
|
||||
)
|
||||
|
||||
var Claim_Version_name = map[int32]string{
|
||||
0: "UNKNOWN_VERSION",
|
||||
1: "_0_0_1",
|
||||
}
|
||||
var Claim_Version_value = map[string]int32{
|
||||
"UNKNOWN_VERSION": 0,
|
||||
"_0_0_1": 1,
|
||||
}
|
||||
|
||||
func (x Claim_Version) Enum() *Claim_Version {
|
||||
p := new(Claim_Version)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
func (x Claim_Version) String() string {
|
||||
return proto.EnumName(Claim_Version_name, int32(x))
|
||||
}
|
||||
func (x *Claim_Version) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Claim_Version_value, data, "Claim_Version")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = Claim_Version(value)
|
||||
return nil
|
||||
}
|
||||
func (Claim_Version) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }
|
||||
|
||||
type Claim_ClaimType int32
|
||||
|
||||
const (
|
||||
Claim_UNKNOWN_CLAIM_TYPE Claim_ClaimType = 0
|
||||
Claim_streamType Claim_ClaimType = 1
|
||||
Claim_certificateType Claim_ClaimType = 2
|
||||
)
|
||||
|
||||
var Claim_ClaimType_name = map[int32]string{
|
||||
0: "UNKNOWN_CLAIM_TYPE",
|
||||
1: "streamType",
|
||||
2: "certificateType",
|
||||
}
|
||||
var Claim_ClaimType_value = map[string]int32{
|
||||
"UNKNOWN_CLAIM_TYPE": 0,
|
||||
"streamType": 1,
|
||||
"certificateType": 2,
|
||||
}
|
||||
|
||||
func (x Claim_ClaimType) Enum() *Claim_ClaimType {
|
||||
p := new(Claim_ClaimType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
func (x Claim_ClaimType) String() string {
|
||||
return proto.EnumName(Claim_ClaimType_name, int32(x))
|
||||
}
|
||||
func (x *Claim_ClaimType) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Claim_ClaimType_value, data, "Claim_ClaimType")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = Claim_ClaimType(value)
|
||||
return nil
|
||||
}
|
||||
func (Claim_ClaimType) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 1} }
|
||||
|
||||
type Claim struct {
|
||||
Version *Claim_Version `protobuf:"varint,1,req,name=version,enum=pb.Claim_Version" json:"version,omitempty"`
|
||||
ClaimType *Claim_ClaimType `protobuf:"varint,2,req,name=claimType,enum=pb.Claim_ClaimType" json:"claimType,omitempty"`
|
||||
Stream *Stream `protobuf:"bytes,3,opt,name=stream" json:"stream,omitempty"`
|
||||
Certificate *Certificate `protobuf:"bytes,4,opt,name=certificate" json:"certificate,omitempty"`
|
||||
PublisherSignature *Signature `protobuf:"bytes,5,opt,name=publisherSignature" json:"publisherSignature,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Claim) Reset() { *m = Claim{} }
|
||||
func (m *Claim) String() string { return proto.CompactTextString(m) }
|
||||
func (*Claim) ProtoMessage() {}
|
||||
func (*Claim) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
||||
|
||||
func (m *Claim) GetVersion() Claim_Version {
|
||||
if m != nil && m.Version != nil {
|
||||
return *m.Version
|
||||
}
|
||||
return Claim_UNKNOWN_VERSION
|
||||
}
|
||||
|
||||
func (m *Claim) GetClaimType() Claim_ClaimType {
|
||||
if m != nil && m.ClaimType != nil {
|
||||
return *m.ClaimType
|
||||
}
|
||||
return Claim_UNKNOWN_CLAIM_TYPE
|
||||
}
|
||||
|
||||
func (m *Claim) GetStream() *Stream {
|
||||
if m != nil {
|
||||
return m.Stream
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Claim) GetCertificate() *Certificate {
|
||||
if m != nil {
|
||||
return m.Certificate
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Claim) GetPublisherSignature() *Signature {
|
||||
if m != nil {
|
||||
return m.PublisherSignature
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Claim)(nil), "pb.Claim")
|
||||
proto.RegisterEnum("pb.Claim_Version", Claim_Version_name, Claim_Version_value)
|
||||
proto.RegisterEnum("pb.Claim_ClaimType", Claim_ClaimType_name, Claim_ClaimType_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("claim.proto", fileDescriptor1) }
|
||||
|
||||
var fileDescriptor1 = []byte{
|
||||
// 283 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8f, 0xc1, 0x4a, 0xf3, 0x40,
|
||||
0x14, 0x85, 0x9b, 0xfc, 0x7f, 0x5b, 0x7a, 0xa3, 0x4d, 0x7a, 0x0b, 0x12, 0xba, 0x2a, 0x59, 0x15,
|
||||
0x85, 0xd0, 0x74, 0xef, 0x42, 0x42, 0xc1, 0xa2, 0xa6, 0x32, 0xa9, 0x15, 0x57, 0x21, 0x09, 0xa3,
|
||||
0x0e, 0xd4, 0x26, 0x4c, 0xa6, 0x82, 0xcf, 0xed, 0x0b, 0x48, 0x26, 0x33, 0x26, 0x0b, 0xb7, 0xdf,
|
||||
0xf9, 0xe6, 0xce, 0x39, 0x60, 0xe5, 0x87, 0x94, 0x7d, 0xf8, 0x25, 0x2f, 0x44, 0x81, 0x66, 0x99,
|
||||
0xcd, 0xce, 0x2a, 0xc1, 0x69, 0xaa, 0xc8, 0x6c, 0x92, 0x53, 0x2e, 0xd8, 0x2b, 0xcb, 0x53, 0x41,
|
||||
0x15, 0xb2, 0x2b, 0xf6, 0x76, 0x4c, 0xc5, 0x89, 0x2b, 0xe0, 0x7d, 0x9b, 0xd0, 0x0f, 0xeb, 0x2b,
|
||||
0x78, 0x05, 0xc3, 0x4f, 0xca, 0x2b, 0x56, 0x1c, 0x5d, 0x63, 0x6e, 0x2e, 0xc6, 0xab, 0x89, 0x5f,
|
||||
0x66, 0xbe, 0xcc, 0xfc, 0x7d, 0x13, 0x10, 0x6d, 0x60, 0x00, 0x23, 0xf9, 0xf7, 0xee, 0xab, 0xa4,
|
||||
0xae, 0x29, 0xf5, 0x69, 0xab, 0x87, 0x3a, 0x22, 0xad, 0x85, 0x1e, 0x0c, 0x9a, 0x76, 0xee, 0xbf,
|
||||
0xb9, 0xb1, 0xb0, 0x56, 0x50, 0xfb, 0xb1, 0x24, 0x44, 0x25, 0x18, 0x80, 0xd5, 0xe9, 0xec, 0xfe,
|
||||
0x97, 0xa2, 0x2d, 0x0f, 0xb7, 0x98, 0x74, 0x1d, 0xbc, 0x06, 0x2c, 0x4f, 0xd9, 0x81, 0x55, 0xef,
|
||||
0x94, 0xc7, 0x7a, 0x9c, 0xdb, 0x97, 0x2f, 0xcf, 0xe5, 0x17, 0x1a, 0x92, 0x3f, 0x44, 0xef, 0x12,
|
||||
0x86, 0x6a, 0x1c, 0x4e, 0xc1, 0x7e, 0x8a, 0xee, 0xa2, 0xed, 0x73, 0x94, 0xec, 0xd7, 0x24, 0xde,
|
||||
0x6c, 0x23, 0xa7, 0x87, 0x00, 0x83, 0x64, 0x99, 0x2c, 0x93, 0xc0, 0x31, 0xbc, 0x5b, 0x18, 0xfd,
|
||||
0x2e, 0xc3, 0x0b, 0x40, 0x6d, 0x87, 0xf7, 0x37, 0x9b, 0x87, 0x64, 0xf7, 0xf2, 0xb8, 0x76, 0x7a,
|
||||
0x38, 0x06, 0x68, 0xc6, 0xd4, 0x96, 0x63, 0xd4, 0x57, 0x3b, 0x75, 0x25, 0x34, 0x7f, 0x02, 0x00,
|
||||
0x00, 0xff, 0xff, 0x06, 0xd3, 0xca, 0xd4, 0xb9, 0x01, 0x00, 0x00,
|
||||
}
|
115
v1/go/fee.pb.go
115
v1/go/fee.pb.go
|
@ -1,17 +1,25 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: fee.proto
|
||||
|
||||
package pb
|
||||
package legacy_pb
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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 Fee_Version int32
|
||||
|
||||
const (
|
||||
|
@ -23,6 +31,7 @@ var Fee_Version_name = map[int32]string{
|
|||
0: "UNKNOWN_VERSION",
|
||||
1: "_0_0_1",
|
||||
}
|
||||
|
||||
var Fee_Version_value = map[string]int32{
|
||||
"UNKNOWN_VERSION": 0,
|
||||
"_0_0_1": 1,
|
||||
|
@ -33,9 +42,11 @@ func (x Fee_Version) Enum() *Fee_Version {
|
|||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x Fee_Version) String() string {
|
||||
return proto.EnumName(Fee_Version_name, int32(x))
|
||||
}
|
||||
|
||||
func (x *Fee_Version) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Fee_Version_value, data, "Fee_Version")
|
||||
if err != nil {
|
||||
|
@ -44,7 +55,10 @@ func (x *Fee_Version) UnmarshalJSON(data []byte) error {
|
|||
*x = Fee_Version(value)
|
||||
return nil
|
||||
}
|
||||
func (Fee_Version) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
|
||||
|
||||
func (Fee_Version) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_fa8e5264b1207167, []int{0, 0}
|
||||
}
|
||||
|
||||
type Fee_Currency int32
|
||||
|
||||
|
@ -61,6 +75,7 @@ var Fee_Currency_name = map[int32]string{
|
|||
2: "BTC",
|
||||
3: "USD",
|
||||
}
|
||||
|
||||
var Fee_Currency_value = map[string]int32{
|
||||
"UNKNOWN_CURRENCY": 0,
|
||||
"LBC": 1,
|
||||
|
@ -73,9 +88,11 @@ func (x Fee_Currency) Enum() *Fee_Currency {
|
|||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x Fee_Currency) String() string {
|
||||
return proto.EnumName(Fee_Currency_name, int32(x))
|
||||
}
|
||||
|
||||
func (x *Fee_Currency) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Fee_Currency_value, data, "Fee_Currency")
|
||||
if err != nil {
|
||||
|
@ -84,20 +101,45 @@ func (x *Fee_Currency) UnmarshalJSON(data []byte) error {
|
|||
*x = Fee_Currency(value)
|
||||
return nil
|
||||
}
|
||||
func (Fee_Currency) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 1} }
|
||||
|
||||
type Fee struct {
|
||||
Version *Fee_Version `protobuf:"varint,1,req,name=version,enum=pb.Fee_Version" json:"version,omitempty"`
|
||||
Currency *Fee_Currency `protobuf:"varint,2,req,name=currency,enum=pb.Fee_Currency" json:"currency,omitempty"`
|
||||
Address []byte `protobuf:"bytes,3,req,name=address" json:"address,omitempty"`
|
||||
Amount *float32 `protobuf:"fixed32,4,req,name=amount" json:"amount,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
func (Fee_Currency) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_fa8e5264b1207167, []int{0, 1}
|
||||
}
|
||||
|
||||
func (m *Fee) Reset() { *m = Fee{} }
|
||||
func (m *Fee) String() string { return proto.CompactTextString(m) }
|
||||
func (*Fee) ProtoMessage() {}
|
||||
func (*Fee) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
||||
type Fee struct {
|
||||
Version *Fee_Version `protobuf:"varint,1,req,name=version,enum=legacy_pb.Fee_Version" json:"version,omitempty"`
|
||||
Currency *Fee_Currency `protobuf:"varint,2,req,name=currency,enum=legacy_pb.Fee_Currency" json:"currency,omitempty"`
|
||||
Address []byte `protobuf:"bytes,3,req,name=address" json:"address,omitempty"`
|
||||
Amount *float32 `protobuf:"fixed32,4,req,name=amount" json:"amount,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Fee) Reset() { *m = Fee{} }
|
||||
func (m *Fee) String() string { return proto.CompactTextString(m) }
|
||||
func (*Fee) ProtoMessage() {}
|
||||
func (*Fee) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_fa8e5264b1207167, []int{0}
|
||||
}
|
||||
|
||||
func (m *Fee) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Fee.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Fee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Fee.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Fee) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Fee.Merge(m, src)
|
||||
}
|
||||
func (m *Fee) XXX_Size() int {
|
||||
return xxx_messageInfo_Fee.Size(m)
|
||||
}
|
||||
func (m *Fee) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Fee.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Fee proto.InternalMessageInfo
|
||||
|
||||
func (m *Fee) GetVersion() Fee_Version {
|
||||
if m != nil && m.Version != nil {
|
||||
|
@ -128,27 +170,28 @@ func (m *Fee) GetAmount() float32 {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Fee)(nil), "pb.Fee")
|
||||
proto.RegisterEnum("pb.Fee_Version", Fee_Version_name, Fee_Version_value)
|
||||
proto.RegisterEnum("pb.Fee_Currency", Fee_Currency_name, Fee_Currency_value)
|
||||
proto.RegisterEnum("legacy_pb.Fee_Version", Fee_Version_name, Fee_Version_value)
|
||||
proto.RegisterEnum("legacy_pb.Fee_Currency", Fee_Currency_name, Fee_Currency_value)
|
||||
proto.RegisterType((*Fee)(nil), "legacy_pb.Fee")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("fee.proto", fileDescriptor2) }
|
||||
func init() { proto.RegisterFile("fee.proto", fileDescriptor_fa8e5264b1207167) }
|
||||
|
||||
var fileDescriptor2 = []byte{
|
||||
// 224 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x8d, 0xcf, 0x4b, 0xc3, 0x30,
|
||||
0x14, 0xc7, 0xd7, 0x54, 0xd6, 0xf9, 0x10, 0xf7, 0x78, 0x8a, 0xe4, 0x58, 0x7a, 0xaa, 0x22, 0x61,
|
||||
0x7a, 0xf5, 0xb6, 0xb8, 0x81, 0x28, 0x19, 0x64, 0x76, 0xe2, 0x29, 0xec, 0xc7, 0x13, 0x3c, 0xd8,
|
||||
0x94, 0x74, 0x13, 0xfc, 0xd3, 0xbd, 0x49, 0xb5, 0xf1, 0xf6, 0xfd, 0xf1, 0x81, 0x0f, 0x1c, 0xbf,
|
||||
0x31, 0xab, 0x26, 0xf8, 0xbd, 0x27, 0xd1, 0x6c, 0x8a, 0xef, 0x04, 0xd2, 0x39, 0x33, 0x5d, 0x42,
|
||||
0xf6, 0xc9, 0xa1, 0x7d, 0xf7, 0xb5, 0x4c, 0x72, 0x51, 0x9e, 0xde, 0x8e, 0x55, 0xb3, 0x51, 0x73,
|
||||
0x66, 0xb5, 0xfa, 0x9b, 0x6d, 0xfc, 0xe9, 0x1a, 0x46, 0xdb, 0x43, 0x08, 0x5c, 0x6f, 0xbf, 0xa4,
|
||||
0xf8, 0x65, 0x31, 0xb2, 0xba, 0xdf, 0xed, 0x3f, 0x41, 0x12, 0xb2, 0xf5, 0x6e, 0x17, 0xb8, 0x6d,
|
||||
0x65, 0x9a, 0x8b, 0xf2, 0xc4, 0xc6, 0x4a, 0x17, 0x30, 0x5c, 0x7f, 0xf8, 0x43, 0xbd, 0x97, 0x47,
|
||||
0xb9, 0x28, 0x85, 0xed, 0x5b, 0x71, 0x05, 0x59, 0xef, 0xa4, 0x33, 0x18, 0x57, 0xe6, 0xd1, 0x2c,
|
||||
0x5e, 0x8c, 0x5b, 0xcd, 0xec, 0xf2, 0x61, 0x61, 0x70, 0x40, 0x00, 0x43, 0x37, 0x71, 0x13, 0x77,
|
||||
0x83, 0x49, 0x71, 0x07, 0xa3, 0xe8, 0xa4, 0x73, 0xc0, 0x08, 0xeb, 0xca, 0xda, 0x99, 0xd1, 0xaf,
|
||||
0x38, 0xa0, 0x0c, 0xd2, 0xa7, 0xa9, 0xc6, 0xa4, 0x0b, 0xd3, 0x67, 0x8d, 0xa2, 0x0b, 0xd5, 0xf2,
|
||||
0x1e, 0xd3, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x36, 0x82, 0x6b, 0xf7, 0x0b, 0x01, 0x00, 0x00,
|
||||
var fileDescriptor_fa8e5264b1207167 = []byte{
|
||||
// 234 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8d, 0xc1, 0x4b, 0xc3, 0x30,
|
||||
0x18, 0xc5, 0xd7, 0x54, 0xd6, 0xed, 0x43, 0x34, 0x7c, 0xca, 0xcc, 0xb1, 0xf4, 0x54, 0x3c, 0x84,
|
||||
0xaa, 0x47, 0x6f, 0x8b, 0x1b, 0x88, 0x92, 0x41, 0x66, 0x27, 0x9e, 0x42, 0xed, 0x3e, 0x45, 0xd0,
|
||||
0x66, 0xa4, 0x9b, 0xb0, 0xbf, 0xc0, 0x7f, 0x5b, 0xa6, 0xcd, 0x0e, 0xbb, 0xbd, 0xc7, 0xfb, 0x3d,
|
||||
0x7e, 0x30, 0x7c, 0x23, 0x92, 0x2b, 0xef, 0xd6, 0x0e, 0x87, 0x9f, 0xf4, 0x5e, 0xd5, 0x5b, 0xbb,
|
||||
0x7a, 0xcd, 0x7e, 0x18, 0xc4, 0x53, 0x22, 0x2c, 0x20, 0xf9, 0x26, 0xdf, 0x7e, 0xb8, 0x46, 0x44,
|
||||
0x29, 0xcb, 0x4f, 0xae, 0x47, 0x72, 0x0f, 0xc9, 0x29, 0x91, 0x5c, 0xfc, 0xaf, 0x26, 0x60, 0x78,
|
||||
0x03, 0x83, 0x7a, 0xe3, 0x3d, 0x35, 0xf5, 0x56, 0xb0, 0xbf, 0xcb, 0xc5, 0xc1, 0x45, 0x75, 0xb3,
|
||||
0xd9, 0x83, 0x28, 0x20, 0xa9, 0x96, 0x4b, 0x4f, 0x6d, 0x2b, 0xe2, 0x94, 0xe5, 0xc7, 0x26, 0x54,
|
||||
0x1c, 0x41, 0xbf, 0xfa, 0x72, 0x9b, 0x66, 0x2d, 0x8e, 0x52, 0x96, 0x33, 0xd3, 0xb5, 0xec, 0x12,
|
||||
0x92, 0x4e, 0x8d, 0x67, 0x70, 0x5a, 0xea, 0x07, 0x3d, 0x7b, 0xd6, 0x76, 0x31, 0x31, 0xf3, 0xfb,
|
||||
0x99, 0xe6, 0x3d, 0x04, 0xe8, 0xdb, 0xc2, 0x16, 0xf6, 0x8a, 0x47, 0xd9, 0x2d, 0x0c, 0x82, 0x13,
|
||||
0xcf, 0x81, 0x07, 0x58, 0x95, 0xc6, 0x4c, 0xb4, 0x7a, 0xe1, 0x3d, 0x4c, 0x20, 0x7e, 0x1c, 0x2b,
|
||||
0x1e, 0xed, 0xc2, 0xf8, 0x49, 0x71, 0xb6, 0x0b, 0xe5, 0xfc, 0x8e, 0xc7, 0xbf, 0x01, 0x00, 0x00,
|
||||
0xff, 0xff, 0x4c, 0x11, 0x4f, 0xc8, 0x20, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
|
206
v1/go/legacy_claim.pb.go
Normal file
206
v1/go/legacy_claim.pb.go
Normal file
|
@ -0,0 +1,206 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: legacy_claim.proto
|
||||
|
||||
package legacy_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 Claim_Version int32
|
||||
|
||||
const (
|
||||
Claim_UNKNOWN_VERSION Claim_Version = 0
|
||||
Claim__0_0_1 Claim_Version = 1
|
||||
)
|
||||
|
||||
var Claim_Version_name = map[int32]string{
|
||||
0: "UNKNOWN_VERSION",
|
||||
1: "_0_0_1",
|
||||
}
|
||||
|
||||
var Claim_Version_value = map[string]int32{
|
||||
"UNKNOWN_VERSION": 0,
|
||||
"_0_0_1": 1,
|
||||
}
|
||||
|
||||
func (x Claim_Version) Enum() *Claim_Version {
|
||||
p := new(Claim_Version)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x Claim_Version) String() string {
|
||||
return proto.EnumName(Claim_Version_name, int32(x))
|
||||
}
|
||||
|
||||
func (x *Claim_Version) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Claim_Version_value, data, "Claim_Version")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = Claim_Version(value)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (Claim_Version) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3b52e2f635402822, []int{0, 0}
|
||||
}
|
||||
|
||||
type Claim_ClaimType int32
|
||||
|
||||
const (
|
||||
Claim_UNKNOWN_CLAIM_TYPE Claim_ClaimType = 0
|
||||
Claim_streamType Claim_ClaimType = 1
|
||||
Claim_certificateType Claim_ClaimType = 2
|
||||
)
|
||||
|
||||
var Claim_ClaimType_name = map[int32]string{
|
||||
0: "UNKNOWN_CLAIM_TYPE",
|
||||
1: "streamType",
|
||||
2: "certificateType",
|
||||
}
|
||||
|
||||
var Claim_ClaimType_value = map[string]int32{
|
||||
"UNKNOWN_CLAIM_TYPE": 0,
|
||||
"streamType": 1,
|
||||
"certificateType": 2,
|
||||
}
|
||||
|
||||
func (x Claim_ClaimType) Enum() *Claim_ClaimType {
|
||||
p := new(Claim_ClaimType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x Claim_ClaimType) String() string {
|
||||
return proto.EnumName(Claim_ClaimType_name, int32(x))
|
||||
}
|
||||
|
||||
func (x *Claim_ClaimType) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Claim_ClaimType_value, data, "Claim_ClaimType")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = Claim_ClaimType(value)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (Claim_ClaimType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3b52e2f635402822, []int{0, 1}
|
||||
}
|
||||
|
||||
type Claim struct {
|
||||
Version *Claim_Version `protobuf:"varint,1,req,name=version,enum=legacy_pb.Claim_Version" json:"version,omitempty"`
|
||||
ClaimType *Claim_ClaimType `protobuf:"varint,2,req,name=claimType,enum=legacy_pb.Claim_ClaimType" json:"claimType,omitempty"`
|
||||
Stream *Stream `protobuf:"bytes,3,opt,name=stream" json:"stream,omitempty"`
|
||||
Certificate *Certificate `protobuf:"bytes,4,opt,name=certificate" json:"certificate,omitempty"`
|
||||
PublisherSignature *Signature `protobuf:"bytes,5,opt,name=publisherSignature" json:"publisherSignature,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Claim) Reset() { *m = Claim{} }
|
||||
func (m *Claim) String() string { return proto.CompactTextString(m) }
|
||||
func (*Claim) ProtoMessage() {}
|
||||
func (*Claim) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_3b52e2f635402822, []int{0}
|
||||
}
|
||||
|
||||
func (m *Claim) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Claim.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Claim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Claim.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Claim) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Claim.Merge(m, src)
|
||||
}
|
||||
func (m *Claim) XXX_Size() int {
|
||||
return xxx_messageInfo_Claim.Size(m)
|
||||
}
|
||||
func (m *Claim) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Claim.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Claim proto.InternalMessageInfo
|
||||
|
||||
func (m *Claim) GetVersion() Claim_Version {
|
||||
if m != nil && m.Version != nil {
|
||||
return *m.Version
|
||||
}
|
||||
return Claim_UNKNOWN_VERSION
|
||||
}
|
||||
|
||||
func (m *Claim) GetClaimType() Claim_ClaimType {
|
||||
if m != nil && m.ClaimType != nil {
|
||||
return *m.ClaimType
|
||||
}
|
||||
return Claim_UNKNOWN_CLAIM_TYPE
|
||||
}
|
||||
|
||||
func (m *Claim) GetStream() *Stream {
|
||||
if m != nil {
|
||||
return m.Stream
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Claim) GetCertificate() *Certificate {
|
||||
if m != nil {
|
||||
return m.Certificate
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Claim) GetPublisherSignature() *Signature {
|
||||
if m != nil {
|
||||
return m.PublisherSignature
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("legacy_pb.Claim_Version", Claim_Version_name, Claim_Version_value)
|
||||
proto.RegisterEnum("legacy_pb.Claim_ClaimType", Claim_ClaimType_name, Claim_ClaimType_value)
|
||||
proto.RegisterType((*Claim)(nil), "legacy_pb.Claim")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("legacy_claim.proto", fileDescriptor_3b52e2f635402822) }
|
||||
|
||||
var fileDescriptor_3b52e2f635402822 = []byte{
|
||||
// 293 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8f, 0x41, 0x4f, 0xfa, 0x40,
|
||||
0x14, 0xc4, 0x29, 0xfc, 0x81, 0xf0, 0xf8, 0x07, 0xca, 0xd3, 0x90, 0x0d, 0x27, 0xc2, 0x09, 0x3d,
|
||||
0x34, 0xd8, 0x13, 0x57, 0x53, 0x49, 0x24, 0x6a, 0x31, 0x5b, 0xc4, 0x78, 0xda, 0x94, 0x66, 0xc5,
|
||||
0x4d, 0x2a, 0x6d, 0xb6, 0xc5, 0x84, 0x2f, 0xe2, 0xe7, 0x35, 0xdd, 0x6e, 0x61, 0x13, 0xbd, 0xce,
|
||||
0xfc, 0xde, 0xbc, 0x19, 0xc0, 0x98, 0xef, 0xc2, 0xe8, 0xc8, 0xa2, 0x38, 0x14, 0x9f, 0x4e, 0x2a,
|
||||
0x93, 0x3c, 0xc1, 0x8e, 0xd6, 0xd2, 0xed, 0xe8, 0x7f, 0x96, 0x4b, 0x1e, 0x6a, 0x63, 0x34, 0x88,
|
||||
0xb8, 0xcc, 0xc5, 0xbb, 0x88, 0xc2, 0x9c, 0x6b, 0xa9, 0x9f, 0x89, 0xdd, 0x3e, 0xcc, 0x0f, 0x52,
|
||||
0x0b, 0x93, 0xef, 0x06, 0x34, 0xbd, 0x22, 0x0c, 0x5d, 0x68, 0x7f, 0x71, 0x99, 0x89, 0x64, 0x4f,
|
||||
0xac, 0x71, 0x7d, 0xda, 0x73, 0x89, 0x73, 0x0a, 0x76, 0x14, 0xe2, 0x6c, 0x4a, 0x9f, 0x56, 0x20,
|
||||
0xce, 0xa1, 0xa3, 0x9a, 0xac, 0x8f, 0x29, 0x27, 0x75, 0x75, 0x35, 0xfa, 0x75, 0xe5, 0x55, 0x04,
|
||||
0x3d, 0xc3, 0x78, 0x05, 0xad, 0xb2, 0x2b, 0x69, 0x8c, 0xad, 0x69, 0xd7, 0x1d, 0x18, 0x67, 0x81,
|
||||
0x32, 0xa8, 0x06, 0x70, 0x0e, 0x5d, 0x63, 0x08, 0xf9, 0xa7, 0xf8, 0xa1, 0xf9, 0xe6, 0xec, 0x52,
|
||||
0x13, 0xc5, 0x3b, 0xc0, 0xf4, 0xb0, 0x8d, 0x45, 0xf6, 0xc1, 0x65, 0x50, 0x0d, 0x27, 0x4d, 0x15,
|
||||
0x70, 0x69, 0x3e, 0xac, 0x3c, 0xfa, 0x07, 0x3f, 0xb9, 0x86, 0xb6, 0x1e, 0x8e, 0x17, 0xd0, 0x7f,
|
||||
0xf1, 0x1f, 0xfc, 0xd5, 0xab, 0xcf, 0x36, 0x0b, 0x1a, 0x2c, 0x57, 0xbe, 0x5d, 0x43, 0x80, 0x16,
|
||||
0x9b, 0xb1, 0x19, 0xbb, 0xb1, 0xad, 0xc9, 0x3d, 0x74, 0x4e, 0x73, 0x71, 0x08, 0x58, 0xd1, 0xde,
|
||||
0xe3, 0xed, 0xf2, 0x89, 0xad, 0xdf, 0x9e, 0x17, 0x76, 0x0d, 0x7b, 0x00, 0xe5, 0xb4, 0x82, 0xb2,
|
||||
0xad, 0x22, 0xd5, 0x68, 0xad, 0xc4, 0xfa, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6e, 0xb6, 0x8d,
|
||||
0x7b, 0xea, 0x01, 0x00, 0x00,
|
||||
}
|
|
@ -1,17 +1,25 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: metadata.proto
|
||||
|
||||
package pb
|
||||
package legacy_pb
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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 Metadata_Version int32
|
||||
|
||||
const (
|
||||
|
@ -29,6 +37,7 @@ var Metadata_Version_name = map[int32]string{
|
|||
3: "_0_0_3",
|
||||
4: "_0_1_0",
|
||||
}
|
||||
|
||||
var Metadata_Version_value = map[string]int32{
|
||||
"UNKNOWN_VERSION": 0,
|
||||
"_0_0_1": 1,
|
||||
|
@ -42,9 +51,11 @@ func (x Metadata_Version) Enum() *Metadata_Version {
|
|||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x Metadata_Version) String() string {
|
||||
return proto.EnumName(Metadata_Version_name, int32(x))
|
||||
}
|
||||
|
||||
func (x *Metadata_Version) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Metadata_Version_value, data, "Metadata_Version")
|
||||
if err != nil {
|
||||
|
@ -53,7 +64,10 @@ func (x *Metadata_Version) UnmarshalJSON(data []byte) error {
|
|||
*x = Metadata_Version(value)
|
||||
return nil
|
||||
}
|
||||
func (Metadata_Version) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
|
||||
|
||||
func (Metadata_Version) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_56d9f74966f40d04, []int{0, 0}
|
||||
}
|
||||
|
||||
type Metadata_Language int32
|
||||
|
||||
|
@ -432,6 +446,7 @@ var Metadata_Language_name = map[int32]string{
|
|||
183: "zh",
|
||||
184: "zu",
|
||||
}
|
||||
|
||||
var Metadata_Language_value = map[string]int32{
|
||||
"UNKNOWN_LANGUAGE": 0,
|
||||
"en": 1,
|
||||
|
@ -625,9 +640,11 @@ func (x Metadata_Language) Enum() *Metadata_Language {
|
|||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x Metadata_Language) String() string {
|
||||
return proto.EnumName(Metadata_Language_name, int32(x))
|
||||
}
|
||||
|
||||
func (x *Metadata_Language) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Metadata_Language_value, data, "Metadata_Language")
|
||||
if err != nil {
|
||||
|
@ -636,27 +653,52 @@ func (x *Metadata_Language) UnmarshalJSON(data []byte) error {
|
|||
*x = Metadata_Language(value)
|
||||
return nil
|
||||
}
|
||||
func (Metadata_Language) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 1} }
|
||||
|
||||
type Metadata struct {
|
||||
Version *Metadata_Version `protobuf:"varint,1,req,name=version,enum=pb.Metadata_Version" json:"version,omitempty"`
|
||||
Language *Metadata_Language `protobuf:"varint,2,req,name=language,enum=pb.Metadata_Language" json:"language,omitempty"`
|
||||
Title *string `protobuf:"bytes,3,req,name=title" json:"title,omitempty"`
|
||||
Description *string `protobuf:"bytes,4,req,name=description" json:"description,omitempty"`
|
||||
Author *string `protobuf:"bytes,5,req,name=author" json:"author,omitempty"`
|
||||
License *string `protobuf:"bytes,6,req,name=license" json:"license,omitempty"`
|
||||
Nsfw *bool `protobuf:"varint,7,req,name=nsfw" json:"nsfw,omitempty"`
|
||||
Fee *Fee `protobuf:"bytes,8,opt,name=fee" json:"fee,omitempty"`
|
||||
Thumbnail *string `protobuf:"bytes,9,opt,name=thumbnail" json:"thumbnail,omitempty"`
|
||||
Preview *string `protobuf:"bytes,10,opt,name=preview" json:"preview,omitempty"`
|
||||
LicenseUrl *string `protobuf:"bytes,11,opt,name=licenseUrl" json:"licenseUrl,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
func (Metadata_Language) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_56d9f74966f40d04, []int{0, 1}
|
||||
}
|
||||
|
||||
func (m *Metadata) Reset() { *m = Metadata{} }
|
||||
func (m *Metadata) String() string { return proto.CompactTextString(m) }
|
||||
func (*Metadata) ProtoMessage() {}
|
||||
func (*Metadata) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
|
||||
type Metadata struct {
|
||||
Version *Metadata_Version `protobuf:"varint,1,req,name=version,enum=legacy_pb.Metadata_Version" json:"version,omitempty"`
|
||||
Language *Metadata_Language `protobuf:"varint,2,req,name=language,enum=legacy_pb.Metadata_Language" json:"language,omitempty"`
|
||||
Title *string `protobuf:"bytes,3,req,name=title" json:"title,omitempty"`
|
||||
Description *string `protobuf:"bytes,4,req,name=description" json:"description,omitempty"`
|
||||
Author *string `protobuf:"bytes,5,req,name=author" json:"author,omitempty"`
|
||||
License *string `protobuf:"bytes,6,req,name=license" json:"license,omitempty"`
|
||||
Nsfw *bool `protobuf:"varint,7,req,name=nsfw" json:"nsfw,omitempty"`
|
||||
Fee *Fee `protobuf:"bytes,8,opt,name=fee" json:"fee,omitempty"`
|
||||
Thumbnail *string `protobuf:"bytes,9,opt,name=thumbnail" json:"thumbnail,omitempty"`
|
||||
Preview *string `protobuf:"bytes,10,opt,name=preview" json:"preview,omitempty"`
|
||||
LicenseUrl *string `protobuf:"bytes,11,opt,name=licenseUrl" json:"licenseUrl,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Metadata) Reset() { *m = Metadata{} }
|
||||
func (m *Metadata) String() string { return proto.CompactTextString(m) }
|
||||
func (*Metadata) ProtoMessage() {}
|
||||
func (*Metadata) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_56d9f74966f40d04, []int{0}
|
||||
}
|
||||
|
||||
func (m *Metadata) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Metadata.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Metadata.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Metadata) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Metadata.Merge(m, src)
|
||||
}
|
||||
func (m *Metadata) XXX_Size() int {
|
||||
return xxx_messageInfo_Metadata.Size(m)
|
||||
}
|
||||
func (m *Metadata) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Metadata.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Metadata proto.InternalMessageInfo
|
||||
|
||||
func (m *Metadata) GetVersion() Metadata_Version {
|
||||
if m != nil && m.Version != nil {
|
||||
|
@ -736,74 +778,74 @@ func (m *Metadata) GetLicenseUrl() string {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Metadata)(nil), "pb.Metadata")
|
||||
proto.RegisterEnum("pb.Metadata_Version", Metadata_Version_name, Metadata_Version_value)
|
||||
proto.RegisterEnum("pb.Metadata_Language", Metadata_Language_name, Metadata_Language_value)
|
||||
proto.RegisterEnum("legacy_pb.Metadata_Version", Metadata_Version_name, Metadata_Version_value)
|
||||
proto.RegisterEnum("legacy_pb.Metadata_Language", Metadata_Language_name, Metadata_Language_value)
|
||||
proto.RegisterType((*Metadata)(nil), "legacy_pb.Metadata")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("metadata.proto", fileDescriptor3) }
|
||||
func init() { proto.RegisterFile("metadata.proto", fileDescriptor_56d9f74966f40d04) }
|
||||
|
||||
var fileDescriptor3 = []byte{
|
||||
// 966 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0xd0, 0xe7, 0x7a, 0x1a, 0x47,
|
||||
0x1b, 0xc6, 0x71, 0x83, 0x64, 0x01, 0x2b, 0xbf, 0xf6, 0xfd, 0xae, 0x4b, 0xd6, 0x8e, 0xe3, 0x10,
|
||||
0xa5, 0x91, 0x46, 0x24, 0x39, 0xbd, 0x3b, 0x89, 0xac, 0x38, 0x96, 0x51, 0x82, 0x23, 0x39, 0x9d,
|
||||
0x0c, 0x30, 0x2c, 0x2b, 0x96, 0x5d, 0xb4, 0x0d, 0x43, 0x7a, 0xef, 0xbd, 0x3a, 0xbd, 0xf7, 0xde,
|
||||
0x8f, 0x21, 0x47, 0x95, 0x6b, 0xef, 0x07, 0xc9, 0xce, 0xa7, 0xdf, 0x7f, 0xe6, 0x99, 0x65, 0xb8,
|
||||
0xc6, 0xd8, 0xdc, 0xd5, 0x91, 0x6a, 0xaa, 0x48, 0x95, 0x7b, 0x81, 0x1f, 0xf9, 0x66, 0xb6, 0x57,
|
||||
0xdf, 0x55, 0x68, 0x69, 0x2d, 0xcb, 0xa9, 0x7f, 0xb6, 0x18, 0xf9, 0x43, 0xa3, 0x13, 0x66, 0xd9,
|
||||
0xc8, 0x25, 0x3a, 0x08, 0x1d, 0xdf, 0xb3, 0x32, 0xc5, 0x6c, 0x69, 0xf3, 0xec, 0xb6, 0x72, 0xaf,
|
||||
0x5e, 0x5e, 0x1b, 0x97, 0x97, 0x65, 0x56, 0x5d, 0x3b, 0x64, 0xce, 0x18, 0x79, 0x57, 0x79, 0x76,
|
||||
0xac, 0x6c, 0x6d, 0x65, 0xf9, 0xc1, 0xf6, 0xff, 0x7c, 0xb0, 0x30, 0x1a, 0x56, 0xd7, 0x8f, 0x99,
|
||||
0xdb, 0x8c, 0x8d, 0x91, 0x13, 0xb9, 0xda, 0x1a, 0x2b, 0x66, 0x4b, 0x85, 0xaa, 0x2c, 0xcc, 0xa2,
|
||||
0x31, 0xd9, 0xd4, 0x61, 0x23, 0x70, 0x7a, 0x51, 0x7a, 0xf9, 0x38, 0x67, 0x27, 0x6e, 0x99, 0x3b,
|
||||
0x8c, 0x09, 0x15, 0x47, 0x6d, 0x3f, 0xb0, 0x36, 0x72, 0x38, 0x5a, 0x99, 0x96, 0x91, 0x73, 0x9d,
|
||||
0x86, 0xf6, 0x42, 0x6d, 0x4d, 0x70, 0xb0, 0xb6, 0x34, 0x4d, 0x63, 0xdc, 0x0b, 0x5b, 0x7d, 0x2b,
|
||||
0x57, 0xcc, 0x96, 0xf2, 0x55, 0xb6, 0xb9, 0xd3, 0x18, 0x6b, 0x69, 0x6d, 0xe5, 0x8b, 0x99, 0xd2,
|
||||
0xe4, 0x6c, 0x2e, 0xfd, 0xaf, 0xfb, 0xb5, 0xae, 0xa6, 0x7b, 0xe6, 0x6e, 0xa3, 0x10, 0xb5, 0xe3,
|
||||
0x6e, 0xdd, 0x53, 0x8e, 0x6b, 0x15, 0x8a, 0x99, 0x52, 0xa1, 0x7a, 0x7c, 0x23, 0xbd, 0xa6, 0x17,
|
||||
0xe8, 0xc4, 0xd1, 0x7d, 0xcb, 0xe0, 0x6c, 0x6d, 0x69, 0xee, 0x31, 0x8c, 0xd1, 0x8d, 0x4b, 0x81,
|
||||
0x6b, 0x4d, 0x72, 0x78, 0xc2, 0xce, 0x54, 0xc5, 0xc8, 0x8d, 0xde, 0xcd, 0xdc, 0x6a, 0x6c, 0x59,
|
||||
0xaa, 0x1c, 0xac, 0x2c, 0x1e, 0xa9, 0xd4, 0x96, 0xe7, 0xaa, 0x87, 0x0f, 0x2c, 0x56, 0xb0, 0xc1,
|
||||
0x34, 0x8c, 0x89, 0xda, 0x74, 0x6d, 0xba, 0x36, 0x83, 0xcc, 0x7a, 0xcf, 0x22, 0xbb, 0xde, 0x7b,
|
||||
0x31, 0x36, 0xea, 0x99, 0xda, 0x34, 0xc6, 0xa7, 0x8e, 0x6d, 0x32, 0xf2, 0x0b, 0xc7, 0x5f, 0x13,
|
||||
0x6b, 0xbf, 0xb8, 0xb0, 0xaf, 0x32, 0xbf, 0xb4, 0x6f, 0x7e, 0x0e, 0x1b, 0xcc, 0x09, 0x23, 0xab,
|
||||
0x3d, 0x64, 0x52, 0x95, 0x42, 0x96, 0xd6, 0x31, 0x46, 0x35, 0xc6, 0x69, 0x0b, 0x1b, 0x69, 0x07,
|
||||
0x13, 0xb4, 0x8b, 0x1c, 0xf5, 0x90, 0xa7, 0x01, 0x0a, 0x34, 0x84, 0x41, 0x13, 0x4c, 0xd2, 0x01,
|
||||
0x36, 0xd1, 0x21, 0xfe, 0x97, 0x5a, 0x57, 0xd8, 0x4c, 0x35, 0xb6, 0x50, 0x1b, 0xa0, 0x6d, 0xfc,
|
||||
0x9f, 0x3a, 0x30, 0x69, 0x17, 0x5b, 0xa9, 0x87, 0x6d, 0xd4, 0xc7, 0x76, 0x1a, 0x60, 0x07, 0x0d,
|
||||
0x71, 0x52, 0x6a, 0x43, 0xc1, 0xa2, 0x1a, 0x3b, 0x69, 0x1b, 0xbb, 0xa8, 0x8f, 0x93, 0x69, 0x80,
|
||||
0xdd, 0x34, 0xc4, 0x29, 0x34, 0xc6, 0x1e, 0x9a, 0xe0, 0x54, 0x3a, 0x40, 0x31, 0xb5, 0xa9, 0x70,
|
||||
0x1a, 0xd5, 0x98, 0xa2, 0x09, 0x4e, 0xa7, 0x43, 0x9c, 0xc1, 0xf7, 0xd1, 0x38, 0x93, 0xba, 0x38,
|
||||
0x8b, 0xfa, 0x38, 0x9b, 0x86, 0x28, 0xd1, 0x08, 0xe7, 0xd0, 0x18, 0xe7, 0xa6, 0xb6, 0x14, 0xce,
|
||||
0xa3, 0x2d, 0x9c, 0x4f, 0x1d, 0x5c, 0x40, 0x57, 0x50, 0xa6, 0x3e, 0x2e, 0xa4, 0x01, 0xa6, 0xe9,
|
||||
0x00, 0x33, 0xa9, 0xb6, 0xc2, 0x2c, 0x6d, 0x62, 0x2f, 0x75, 0x71, 0x11, 0xf5, 0x70, 0x31, 0x8d,
|
||||
0x71, 0x09, 0x4d, 0x70, 0x69, 0x6a, 0x5b, 0xe1, 0x32, 0xaa, 0x71, 0x39, 0x75, 0x70, 0x05, 0xf5,
|
||||
0x71, 0x25, 0x0d, 0x70, 0x15, 0x8d, 0x70, 0x35, 0x8d, 0x71, 0x0d, 0x1d, 0xe0, 0x5a, 0x3a, 0xc4,
|
||||
0x75, 0xa9, 0x8e, 0xc2, 0x3e, 0xda, 0xc4, 0xf5, 0x54, 0xe3, 0x06, 0x6a, 0xe3, 0x46, 0xea, 0x60,
|
||||
0x8e, 0x76, 0xb0, 0x9f, 0xfa, 0x98, 0xa7, 0x21, 0x6e, 0xa2, 0x11, 0x0e, 0xd0, 0x18, 0x37, 0xa7,
|
||||
0xae, 0x28, 0x1c, 0xa4, 0x09, 0x16, 0x52, 0x3b, 0x0a, 0x87, 0xa8, 0x8d, 0x0a, 0x75, 0xb0, 0x48,
|
||||
0x57, 0x70, 0x0b, 0xed, 0xe0, 0x56, 0xea, 0xa2, 0x4a, 0xbb, 0x38, 0x4c, 0x3d, 0xdc, 0x46, 0x7d,
|
||||
0x2c, 0xd1, 0x00, 0xcb, 0x34, 0xc4, 0x11, 0x1a, 0xe3, 0x76, 0x9a, 0xe0, 0x0e, 0xda, 0xc7, 0x9d,
|
||||
0x74, 0x80, 0xbb, 0x52, 0x5d, 0x85, 0xbb, 0x69, 0x1d, 0xf7, 0x50, 0x1b, 0xf7, 0x52, 0x07, 0x35,
|
||||
0xea, 0xe1, 0x3e, 0xea, 0x43, 0xd1, 0x08, 0x75, 0x1a, 0xa3, 0x41, 0x13, 0x34, 0x53, 0xbb, 0x36,
|
||||
0x34, 0x6d, 0xa3, 0x45, 0x1d, 0xd8, 0xb4, 0x83, 0x36, 0x75, 0xe1, 0x50, 0x0f, 0x2b, 0x34, 0x40,
|
||||
0x87, 0x86, 0x70, 0x69, 0x84, 0x2e, 0x1d, 0xc0, 0x4b, 0xf5, 0x14, 0x7c, 0x5a, 0x47, 0x8f, 0x36,
|
||||
0xb1, 0x4a, 0x35, 0x02, 0x6a, 0x23, 0xa4, 0x2e, 0x22, 0xea, 0x21, 0xa6, 0x3e, 0x12, 0x1a, 0xa0,
|
||||
0x4f, 0x13, 0x1c, 0xa5, 0x03, 0x0c, 0x52, 0xfd, 0x06, 0x86, 0x74, 0x05, 0xf7, 0xd3, 0x2e, 0x1e,
|
||||
0xa0, 0x01, 0x1e, 0xa4, 0x21, 0x1e, 0x4a, 0xed, 0x29, 0x3c, 0x6c, 0xe6, 0x8c, 0x6c, 0xcf, 0xc1,
|
||||
0x23, 0x19, 0x86, 0x8b, 0x47, 0x25, 0x42, 0x3c, 0x26, 0x11, 0xe1, 0x71, 0xc6, 0x6a, 0x8c, 0x27,
|
||||
0x18, 0x41, 0x17, 0x4f, 0x4a, 0x78, 0x78, 0x4a, 0xc2, 0xc7, 0xd3, 0x12, 0x31, 0x9e, 0x91, 0xe8,
|
||||
0xe3, 0x59, 0x46, 0xa8, 0xf0, 0x9c, 0x44, 0x03, 0xcf, 0x4b, 0x34, 0xf1, 0x82, 0x84, 0xc6, 0x8b,
|
||||
0x12, 0x36, 0x5e, 0x92, 0x70, 0xf0, 0xb2, 0x44, 0x07, 0xaf, 0x48, 0xb8, 0x78, 0x55, 0xa2, 0x8b,
|
||||
0xd7, 0x24, 0x3c, 0xbc, 0x2e, 0xe1, 0xe3, 0x0d, 0x89, 0x55, 0xbc, 0x29, 0x11, 0xe0, 0x2d, 0x89,
|
||||
0x10, 0x6f, 0x4b, 0x44, 0x78, 0x47, 0x22, 0xc6, 0x31, 0x89, 0x04, 0xef, 0x4a, 0xf4, 0xf1, 0x1e,
|
||||
0x23, 0x52, 0x78, 0x5f, 0x42, 0xe3, 0x03, 0x09, 0x1b, 0x1f, 0x4a, 0xb4, 0xf1, 0x91, 0x84, 0x83,
|
||||
0x8f, 0x25, 0x3a, 0xf8, 0x44, 0xc2, 0xc5, 0xa7, 0x12, 0x1e, 0x3e, 0x93, 0xf0, 0xf1, 0xb9, 0x44,
|
||||
0x80, 0x2f, 0x24, 0x42, 0x7c, 0x29, 0x11, 0xe1, 0x2b, 0x89, 0x3e, 0xbe, 0x96, 0x18, 0xe0, 0x1b,
|
||||
0x46, 0x6c, 0xe3, 0x5b, 0x89, 0x0e, 0xbe, 0x93, 0x08, 0xf0, 0xbd, 0xc4, 0x10, 0x3f, 0x30, 0x12,
|
||||
0x8d, 0x1f, 0x25, 0x1c, 0xfc, 0x24, 0xe1, 0xe3, 0x67, 0x46, 0x5f, 0xe1, 0x17, 0x09, 0x1f, 0xbf,
|
||||
0x32, 0x8e, 0xb6, 0xf1, 0x1b, 0x63, 0xe0, 0xe0, 0x77, 0x09, 0x1f, 0x7f, 0x30, 0x86, 0x0a, 0x7f,
|
||||
0x4a, 0xb4, 0xf1, 0x97, 0x44, 0x8c, 0xbf, 0x33, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xf4, 0x66,
|
||||
0xd9, 0x2b, 0xec, 0x07, 0x00, 0x00,
|
||||
var fileDescriptor_56d9f74966f40d04 = []byte{
|
||||
// 975 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0xd0, 0x67, 0x7b, 0xdb, 0x54,
|
||||
0x18, 0xc6, 0xf1, 0xda, 0x49, 0x63, 0x5b, 0x29, 0xe9, 0x8d, 0x5a, 0x8a, 0x68, 0x4b, 0x31, 0x61,
|
||||
0x99, 0x15, 0xd2, 0x94, 0x42, 0xd9, 0x14, 0x48, 0x43, 0x69, 0xea, 0x80, 0x4b, 0x52, 0xb6, 0x39,
|
||||
0xb6, 0x8f, 0x65, 0xc5, 0xb2, 0xe4, 0x68, 0xb9, 0x36, 0x7b, 0xef, 0x3d, 0xcb, 0xde, 0x7b, 0xef,
|
||||
0x6f, 0xc3, 0x57, 0xe1, 0xd2, 0xfd, 0x38, 0x69, 0x5e, 0xf0, 0xea, 0xf7, 0x3f, 0xe7, 0x79, 0x64,
|
||||
0xeb, 0x92, 0x31, 0xd1, 0xd1, 0x91, 0x6a, 0xa8, 0x48, 0x4d, 0x75, 0x03, 0x3f, 0xf2, 0xcd, 0x82,
|
||||
0xab, 0x6d, 0x55, 0xef, 0x57, 0xbb, 0xb5, 0xed, 0x85, 0xa6, 0xd6, 0x72, 0x3b, 0xf9, 0xef, 0x66,
|
||||
0x23, 0x7f, 0x78, 0xb8, 0x68, 0xee, 0x35, 0x72, 0x89, 0x0e, 0x42, 0xc7, 0xf7, 0xac, 0x4c, 0x31,
|
||||
0x5b, 0x9a, 0x98, 0xd9, 0x31, 0xb5, 0xf6, 0xd0, 0xd4, 0xea, 0xd6, 0xd4, 0x92, 0xac, 0x54, 0x56,
|
||||
0x77, 0xcd, 0x7d, 0x46, 0xde, 0x55, 0x9e, 0x1d, 0x2b, 0x5b, 0x5b, 0x59, 0x3e, 0xb7, 0xf3, 0xff,
|
||||
0x9e, 0x9b, 0x1f, 0xee, 0x54, 0xd6, 0xb6, 0xcd, 0xad, 0xc6, 0xc6, 0xc8, 0x89, 0x5c, 0x6d, 0x8d,
|
||||
0x14, 0xb3, 0xa5, 0x42, 0x45, 0x0e, 0x66, 0xd1, 0x18, 0x6f, 0xe8, 0xb0, 0x1e, 0x38, 0xdd, 0x28,
|
||||
0x7d, 0x95, 0x51, 0xce, 0xd6, 0x5f, 0x99, 0xdb, 0x8c, 0x31, 0x15, 0x47, 0x2d, 0x3f, 0xb0, 0x36,
|
||||
0x72, 0x38, 0x3c, 0x99, 0x96, 0x91, 0x73, 0x9d, 0xba, 0xf6, 0x42, 0x6d, 0x8d, 0x71, 0xb0, 0x7a,
|
||||
0x34, 0x4d, 0x63, 0xd4, 0x0b, 0x9b, 0x3d, 0x2b, 0x57, 0xcc, 0x96, 0xf2, 0x15, 0xb6, 0x59, 0x34,
|
||||
0x46, 0x9a, 0x5a, 0x5b, 0xf9, 0x62, 0xa6, 0x34, 0x3e, 0x33, 0xb1, 0xee, 0x95, 0x0f, 0x68, 0x5d,
|
||||
0x49, 0x47, 0xe6, 0x4e, 0xa3, 0x10, 0xb5, 0xe2, 0x4e, 0xcd, 0x53, 0x8e, 0x6b, 0x15, 0x8a, 0x99,
|
||||
0x52, 0xa1, 0x72, 0xe2, 0x22, 0xfd, 0xb7, 0x6e, 0xa0, 0x13, 0x47, 0xf7, 0x2c, 0x83, 0xb3, 0xd5,
|
||||
0xa3, 0xb9, 0xcb, 0x30, 0x86, 0x7f, 0xbc, 0x18, 0xb8, 0xd6, 0x38, 0x87, 0xeb, 0x6e, 0x26, 0xcb,
|
||||
0x46, 0x6e, 0xf8, 0x15, 0xcd, 0x2d, 0xc6, 0xe6, 0xc5, 0xf2, 0xa1, 0xf2, 0xc2, 0xd1, 0x72, 0x75,
|
||||
0x69, 0xb6, 0x72, 0xe4, 0xe0, 0x42, 0x19, 0x1b, 0x4c, 0xc3, 0x18, 0xab, 0x4e, 0x57, 0xa7, 0xab,
|
||||
0xbb, 0x91, 0x59, 0xeb, 0x19, 0x64, 0xd7, 0x7a, 0x0f, 0x46, 0x86, 0xbd, 0xbb, 0x3a, 0x8d, 0xd1,
|
||||
0xc9, 0xe3, 0x9b, 0x8c, 0xfc, 0xfc, 0x89, 0x8f, 0x8a, 0xd5, 0x5f, 0x9c, 0xdf, 0x5f, 0x9e, 0x5b,
|
||||
0xdc, 0x3f, 0x37, 0x8b, 0x0d, 0xe6, 0x98, 0x91, 0xd5, 0x1e, 0x32, 0xa9, 0x4a, 0x21, 0x4b, 0x6b,
|
||||
0x18, 0xa1, 0x1a, 0xa3, 0xb4, 0x89, 0x8d, 0xb4, 0x8d, 0x31, 0xda, 0x41, 0x8e, 0x7a, 0xc8, 0xd3,
|
||||
0x00, 0x05, 0x1a, 0xc2, 0xa0, 0x09, 0xc6, 0x69, 0x1f, 0x9b, 0xe8, 0x00, 0x27, 0xa5, 0xd6, 0x14,
|
||||
0x26, 0xa8, 0xc6, 0x66, 0x6a, 0x03, 0xb4, 0x85, 0x93, 0xa9, 0x03, 0x93, 0x76, 0xb0, 0x85, 0x7a,
|
||||
0xd8, 0x4a, 0x7d, 0x9c, 0x42, 0x03, 0x6c, 0xa3, 0x21, 0x4e, 0x4d, 0xad, 0x2b, 0x58, 0x54, 0xe3,
|
||||
0x34, 0xda, 0xc2, 0x76, 0xea, 0x63, 0x07, 0x0d, 0xb0, 0x93, 0x86, 0x38, 0x9d, 0xc6, 0xd8, 0x45,
|
||||
0x13, 0x9c, 0x41, 0xfb, 0x28, 0xa6, 0x36, 0x14, 0xce, 0xa4, 0x1a, 0x93, 0x34, 0xc1, 0x59, 0x74,
|
||||
0x80, 0xb3, 0xf9, 0x7d, 0x34, 0xce, 0xa1, 0x2e, 0xce, 0xa5, 0x3e, 0xce, 0xa3, 0x21, 0x4a, 0x34,
|
||||
0xc2, 0xf9, 0x34, 0xc6, 0x05, 0xa9, 0x4d, 0x85, 0x0b, 0x69, 0x13, 0x17, 0x51, 0x07, 0x17, 0xd3,
|
||||
0x65, 0x4c, 0x51, 0x1f, 0x97, 0xd0, 0x00, 0xd3, 0xb4, 0x8f, 0xdd, 0xa9, 0xb6, 0xc2, 0x0c, 0x6d,
|
||||
0x60, 0x0f, 0x75, 0x71, 0x29, 0xf5, 0xb0, 0x97, 0xc6, 0xb8, 0x8c, 0x26, 0xb8, 0x3c, 0xb5, 0xa5,
|
||||
0xb0, 0x8f, 0x6a, 0x5c, 0x41, 0x1d, 0x5c, 0x49, 0x7d, 0x5c, 0x45, 0x03, 0x5c, 0x4d, 0x23, 0x5c,
|
||||
0x43, 0x63, 0x5c, 0x4b, 0xfb, 0xb8, 0x8e, 0x0e, 0x70, 0x7d, 0xaa, 0xa3, 0xb0, 0x9f, 0x36, 0x70,
|
||||
0x03, 0xd5, 0xb8, 0x91, 0xda, 0xb8, 0x89, 0x3a, 0x98, 0xa5, 0x6d, 0x1c, 0xa0, 0x3e, 0xe6, 0x68,
|
||||
0x88, 0x9b, 0x69, 0x84, 0x83, 0x34, 0xc6, 0x2d, 0xa9, 0xcb, 0x0a, 0x87, 0x68, 0x82, 0xf9, 0xd4,
|
||||
0xb6, 0xc2, 0x61, 0x6a, 0xa3, 0x4c, 0x1d, 0x2c, 0xd0, 0x65, 0xdc, 0x4a, 0xdb, 0xb8, 0x8d, 0xba,
|
||||
0xa8, 0xd0, 0x0e, 0x8e, 0x50, 0x0f, 0xb7, 0x53, 0x1f, 0x8b, 0x34, 0xc0, 0x12, 0x0d, 0x71, 0x94,
|
||||
0xc6, 0xb8, 0x83, 0x26, 0xb8, 0x93, 0xf6, 0x70, 0x17, 0xed, 0xe3, 0xee, 0x54, 0x57, 0xe1, 0x1e,
|
||||
0x5a, 0xc3, 0xbd, 0xd4, 0xc6, 0x7d, 0xd4, 0x41, 0x95, 0x7a, 0xb8, 0x9f, 0xfa, 0x50, 0x34, 0x42,
|
||||
0x8d, 0xc6, 0xa8, 0xd3, 0x04, 0x8d, 0xd4, 0x8e, 0x0d, 0x4d, 0x5b, 0x68, 0x52, 0x07, 0x36, 0x6d,
|
||||
0xa3, 0x45, 0x5d, 0x38, 0xd4, 0xc3, 0x32, 0x0d, 0xd0, 0xa6, 0x21, 0x5c, 0x1a, 0xa1, 0x43, 0xfb,
|
||||
0xf0, 0x52, 0x3d, 0x05, 0x9f, 0xd6, 0xd0, 0xa5, 0x0d, 0xac, 0x50, 0x8d, 0x80, 0xda, 0x08, 0xa9,
|
||||
0x8b, 0x88, 0x7a, 0x88, 0xa9, 0x8f, 0x84, 0x06, 0xe8, 0xd1, 0x04, 0xc7, 0x68, 0x1f, 0xfd, 0x54,
|
||||
0xbf, 0x8e, 0x01, 0x5d, 0xc6, 0x03, 0xb4, 0x83, 0x07, 0x69, 0x80, 0x87, 0x68, 0x88, 0x87, 0x53,
|
||||
0xbb, 0x0a, 0x8f, 0x98, 0x39, 0x23, 0xdb, 0x75, 0xf0, 0x68, 0x86, 0xe1, 0xe2, 0x31, 0x89, 0x10,
|
||||
0x8f, 0x4b, 0x44, 0x78, 0x82, 0xb1, 0x12, 0xe3, 0x49, 0x46, 0xd0, 0xc1, 0x53, 0x12, 0x1e, 0x9e,
|
||||
0x96, 0xf0, 0xf1, 0x8c, 0x44, 0x8c, 0x67, 0x25, 0x7a, 0x78, 0x8e, 0x11, 0x2a, 0x3c, 0x2f, 0x51,
|
||||
0xc7, 0x0b, 0x12, 0x0d, 0xbc, 0x28, 0xa1, 0xf1, 0x92, 0x84, 0x8d, 0x97, 0x25, 0x1c, 0xbc, 0x22,
|
||||
0xd1, 0xc6, 0xab, 0x12, 0x2e, 0x5e, 0x93, 0xe8, 0xe0, 0x75, 0x09, 0x0f, 0x6f, 0x48, 0xf8, 0x78,
|
||||
0x53, 0x62, 0x05, 0x6f, 0x49, 0x04, 0x78, 0x5b, 0x22, 0xc4, 0x3b, 0x12, 0x11, 0xde, 0x95, 0x88,
|
||||
0x71, 0x5c, 0x22, 0xc1, 0x7b, 0x12, 0x3d, 0xbc, 0xcf, 0x88, 0x14, 0x3e, 0x90, 0xd0, 0xf8, 0x50,
|
||||
0xc2, 0xc6, 0x47, 0x12, 0x2d, 0x7c, 0x2c, 0xe1, 0xe0, 0x13, 0x89, 0x36, 0x3e, 0x95, 0x70, 0xf1,
|
||||
0x99, 0x84, 0x87, 0xcf, 0x25, 0x7c, 0x7c, 0x21, 0x11, 0xe0, 0x4b, 0x89, 0x10, 0x5f, 0x49, 0x44,
|
||||
0xf8, 0x5a, 0xa2, 0x87, 0x6f, 0x24, 0xfa, 0xf8, 0x96, 0x11, 0xdb, 0xf8, 0x4e, 0xa2, 0x8d, 0xef,
|
||||
0x25, 0x02, 0xfc, 0x20, 0x31, 0xc0, 0x8f, 0x8c, 0x44, 0xe3, 0x27, 0x09, 0x07, 0x3f, 0x4b, 0xf8,
|
||||
0xf8, 0x85, 0xd1, 0x53, 0xf8, 0x55, 0xc2, 0xc7, 0x6f, 0x8c, 0x63, 0x2d, 0xfc, 0xce, 0xe8, 0x3b,
|
||||
0xf8, 0x43, 0xc2, 0xc7, 0x9f, 0x8c, 0x81, 0xc2, 0x5f, 0x12, 0x2d, 0xfc, 0x2d, 0x11, 0xe3, 0x9f,
|
||||
0xcc, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x8d, 0x15, 0x76, 0x2c, 0x08, 0x08, 0x00, 0x00,
|
||||
}
|
||||
|
|
|
@ -1,17 +1,25 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: signature.proto
|
||||
|
||||
package pb
|
||||
package legacy_pb
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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 Signature_Version int32
|
||||
|
||||
const (
|
||||
|
@ -23,6 +31,7 @@ var Signature_Version_name = map[int32]string{
|
|||
0: "UNKNOWN_VERSION",
|
||||
1: "_0_0_1",
|
||||
}
|
||||
|
||||
var Signature_Version_value = map[string]int32{
|
||||
"UNKNOWN_VERSION": 0,
|
||||
"_0_0_1": 1,
|
||||
|
@ -33,9 +42,11 @@ func (x Signature_Version) Enum() *Signature_Version {
|
|||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x Signature_Version) String() string {
|
||||
return proto.EnumName(Signature_Version_name, int32(x))
|
||||
}
|
||||
|
||||
func (x *Signature_Version) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Signature_Version_value, data, "Signature_Version")
|
||||
if err != nil {
|
||||
|
@ -44,20 +55,45 @@ func (x *Signature_Version) UnmarshalJSON(data []byte) error {
|
|||
*x = Signature_Version(value)
|
||||
return nil
|
||||
}
|
||||
func (Signature_Version) EnumDescriptor() ([]byte, []int) { return fileDescriptor4, []int{0, 0} }
|
||||
|
||||
type Signature struct {
|
||||
Version *Signature_Version `protobuf:"varint,1,req,name=version,enum=pb.Signature_Version" json:"version,omitempty"`
|
||||
SignatureType *KeyType `protobuf:"varint,2,req,name=signatureType,enum=pb.KeyType" json:"signatureType,omitempty"`
|
||||
Signature []byte `protobuf:"bytes,3,req,name=signature" json:"signature,omitempty"`
|
||||
CertificateId []byte `protobuf:"bytes,4,req,name=certificateId" json:"certificateId,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
func (Signature_Version) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_76962cacebaec211, []int{0, 0}
|
||||
}
|
||||
|
||||
func (m *Signature) Reset() { *m = Signature{} }
|
||||
func (m *Signature) String() string { return proto.CompactTextString(m) }
|
||||
func (*Signature) ProtoMessage() {}
|
||||
func (*Signature) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
|
||||
type Signature struct {
|
||||
Version *Signature_Version `protobuf:"varint,1,req,name=version,enum=legacy_pb.Signature_Version" json:"version,omitempty"`
|
||||
SignatureType *KeyType `protobuf:"varint,2,req,name=signatureType,enum=legacy_pb.KeyType" json:"signatureType,omitempty"`
|
||||
Signature []byte `protobuf:"bytes,3,req,name=signature" json:"signature,omitempty"`
|
||||
CertificateId []byte `protobuf:"bytes,4,req,name=certificateId" json:"certificateId,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Signature) Reset() { *m = Signature{} }
|
||||
func (m *Signature) String() string { return proto.CompactTextString(m) }
|
||||
func (*Signature) ProtoMessage() {}
|
||||
func (*Signature) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_76962cacebaec211, []int{0}
|
||||
}
|
||||
|
||||
func (m *Signature) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Signature.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Signature.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Signature) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Signature.Merge(m, src)
|
||||
}
|
||||
func (m *Signature) XXX_Size() int {
|
||||
return xxx_messageInfo_Signature.Size(m)
|
||||
}
|
||||
func (m *Signature) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Signature.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Signature proto.InternalMessageInfo
|
||||
|
||||
func (m *Signature) GetVersion() Signature_Version {
|
||||
if m != nil && m.Version != nil {
|
||||
|
@ -88,24 +124,25 @@ func (m *Signature) GetCertificateId() []byte {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Signature)(nil), "pb.Signature")
|
||||
proto.RegisterEnum("pb.Signature_Version", Signature_Version_name, Signature_Version_value)
|
||||
proto.RegisterEnum("legacy_pb.Signature_Version", Signature_Version_name, Signature_Version_value)
|
||||
proto.RegisterType((*Signature)(nil), "legacy_pb.Signature")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("signature.proto", fileDescriptor4) }
|
||||
func init() { proto.RegisterFile("signature.proto", fileDescriptor_76962cacebaec211) }
|
||||
|
||||
var fileDescriptor4 = []byte{
|
||||
// 192 bytes of a gzipped FileDescriptorProto
|
||||
var fileDescriptor_76962cacebaec211 = []byte{
|
||||
// 200 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2f, 0xce, 0x4c, 0xcf,
|
||||
0x4b, 0x2c, 0x29, 0x2d, 0x4a, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48, 0x92,
|
||||
0x12, 0x4c, 0x4e, 0x2d, 0x2a, 0xc9, 0x4c, 0xcb, 0x4c, 0x4e, 0x2c, 0x81, 0x0a, 0x2b, 0xdd, 0x67,
|
||||
0xe4, 0xe2, 0x0c, 0x86, 0x29, 0x15, 0xd2, 0xe7, 0x62, 0x2f, 0x4b, 0x2d, 0x2a, 0xce, 0xcc, 0xcf,
|
||||
0x93, 0x60, 0x54, 0x60, 0xd2, 0xe0, 0x33, 0x12, 0xd5, 0x2b, 0x48, 0xd2, 0x83, 0xcb, 0xeb, 0x85,
|
||||
0x41, 0x24, 0x83, 0x60, 0xaa, 0x84, 0x0c, 0xb9, 0x78, 0xe1, 0x16, 0x85, 0x54, 0x16, 0xa4, 0x4a,
|
||||
0x30, 0x81, 0xb5, 0x71, 0x83, 0xb4, 0x79, 0xa7, 0x56, 0x82, 0x84, 0x82, 0x50, 0x55, 0x08, 0xc9,
|
||||
0x70, 0x71, 0xc2, 0x05, 0x24, 0x98, 0x15, 0x98, 0x34, 0x78, 0x82, 0x10, 0x02, 0x42, 0x2a, 0x5c,
|
||||
0xbc, 0x48, 0x8e, 0xf4, 0x4c, 0x91, 0x60, 0x01, 0xab, 0x40, 0x15, 0x54, 0xd2, 0xe2, 0x62, 0x87,
|
||||
0x3a, 0x45, 0x48, 0x98, 0x8b, 0x3f, 0xd4, 0xcf, 0xdb, 0xcf, 0x3f, 0xdc, 0x2f, 0x3e, 0xcc, 0x35,
|
||||
0x28, 0xd8, 0xd3, 0xdf, 0x4f, 0x80, 0x41, 0x88, 0x8b, 0x8b, 0x2d, 0xde, 0x20, 0xde, 0x20, 0xde,
|
||||
0x50, 0x80, 0x11, 0x10, 0x00, 0x00, 0xff, 0xff, 0x50, 0x35, 0x0d, 0x49, 0x0a, 0x01, 0x00, 0x00,
|
||||
0x4b, 0x2c, 0x29, 0x2d, 0x4a, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0xcc, 0x49, 0x4d,
|
||||
0x4f, 0x4c, 0xae, 0x8c, 0x2f, 0x48, 0x92, 0x12, 0x4c, 0x4e, 0x2d, 0x2a, 0xc9, 0x4c, 0xcb, 0x4c,
|
||||
0x4e, 0x2c, 0x81, 0xca, 0x2a, 0xbd, 0x65, 0xe4, 0xe2, 0x0c, 0x86, 0xe9, 0x10, 0x32, 0xe3, 0x62,
|
||||
0x2f, 0x4b, 0x2d, 0x2a, 0xce, 0xcc, 0xcf, 0x93, 0x60, 0x54, 0x60, 0xd2, 0xe0, 0x33, 0x92, 0xd1,
|
||||
0x83, 0xeb, 0xd6, 0x83, 0x2b, 0xd3, 0x0b, 0x83, 0xa8, 0x09, 0x82, 0x29, 0x16, 0xb2, 0xe0, 0xe2,
|
||||
0x85, 0x5b, 0x1b, 0x52, 0x59, 0x90, 0x2a, 0xc1, 0x04, 0xd6, 0x2d, 0x84, 0xa4, 0xdb, 0x3b, 0xb5,
|
||||
0x12, 0x24, 0x13, 0x84, 0xaa, 0x50, 0x48, 0x86, 0x8b, 0x13, 0x2e, 0x20, 0xc1, 0xac, 0xc0, 0xa4,
|
||||
0xc1, 0x13, 0x84, 0x10, 0x10, 0x52, 0xe1, 0xe2, 0x45, 0x72, 0xb2, 0x67, 0x8a, 0x04, 0x0b, 0x58,
|
||||
0x05, 0xaa, 0xa0, 0x92, 0x16, 0x17, 0x3b, 0xd4, 0x45, 0x42, 0xc2, 0x5c, 0xfc, 0xa1, 0x7e, 0xde,
|
||||
0x7e, 0xfe, 0xe1, 0x7e, 0xf1, 0x61, 0xae, 0x41, 0xc1, 0x9e, 0xfe, 0x7e, 0x02, 0x0c, 0x42, 0x5c,
|
||||
0x5c, 0x6c, 0xf1, 0x06, 0xf1, 0x06, 0xf1, 0x86, 0x02, 0x8c, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff,
|
||||
0x48, 0xf0, 0x60, 0xdb, 0x1f, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
|
|
@ -1,17 +1,25 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: source.proto
|
||||
|
||||
package pb
|
||||
package legacy_pb
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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 Source_Version int32
|
||||
|
||||
const (
|
||||
|
@ -23,6 +31,7 @@ var Source_Version_name = map[int32]string{
|
|||
0: "UNKNOWN_VERSION",
|
||||
1: "_0_0_1",
|
||||
}
|
||||
|
||||
var Source_Version_value = map[string]int32{
|
||||
"UNKNOWN_VERSION": 0,
|
||||
"_0_0_1": 1,
|
||||
|
@ -33,9 +42,11 @@ func (x Source_Version) Enum() *Source_Version {
|
|||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x Source_Version) String() string {
|
||||
return proto.EnumName(Source_Version_name, int32(x))
|
||||
}
|
||||
|
||||
func (x *Source_Version) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Source_Version_value, data, "Source_Version")
|
||||
if err != nil {
|
||||
|
@ -44,7 +55,10 @@ func (x *Source_Version) UnmarshalJSON(data []byte) error {
|
|||
*x = Source_Version(value)
|
||||
return nil
|
||||
}
|
||||
func (Source_Version) EnumDescriptor() ([]byte, []int) { return fileDescriptor5, []int{0, 0} }
|
||||
|
||||
func (Source_Version) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_9229c9b6eb8e6b85, []int{0, 0}
|
||||
}
|
||||
|
||||
type Source_SourceTypes int32
|
||||
|
||||
|
@ -57,6 +71,7 @@ var Source_SourceTypes_name = map[int32]string{
|
|||
0: "UNKNOWN_SOURCE_TYPE",
|
||||
1: "lbry_sd_hash",
|
||||
}
|
||||
|
||||
var Source_SourceTypes_value = map[string]int32{
|
||||
"UNKNOWN_SOURCE_TYPE": 0,
|
||||
"lbry_sd_hash": 1,
|
||||
|
@ -67,9 +82,11 @@ func (x Source_SourceTypes) Enum() *Source_SourceTypes {
|
|||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x Source_SourceTypes) String() string {
|
||||
return proto.EnumName(Source_SourceTypes_name, int32(x))
|
||||
}
|
||||
|
||||
func (x *Source_SourceTypes) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Source_SourceTypes_value, data, "Source_SourceTypes")
|
||||
if err != nil {
|
||||
|
@ -78,20 +95,45 @@ func (x *Source_SourceTypes) UnmarshalJSON(data []byte) error {
|
|||
*x = Source_SourceTypes(value)
|
||||
return nil
|
||||
}
|
||||
func (Source_SourceTypes) EnumDescriptor() ([]byte, []int) { return fileDescriptor5, []int{0, 1} }
|
||||
|
||||
type Source struct {
|
||||
Version *Source_Version `protobuf:"varint,1,req,name=version,enum=pb.Source_Version" json:"version,omitempty"`
|
||||
SourceType *Source_SourceTypes `protobuf:"varint,2,req,name=sourceType,enum=pb.Source_SourceTypes" json:"sourceType,omitempty"`
|
||||
Source []byte `protobuf:"bytes,3,req,name=source" json:"source,omitempty"`
|
||||
ContentType *string `protobuf:"bytes,4,req,name=contentType" json:"contentType,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
func (Source_SourceTypes) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_9229c9b6eb8e6b85, []int{0, 1}
|
||||
}
|
||||
|
||||
func (m *Source) Reset() { *m = Source{} }
|
||||
func (m *Source) String() string { return proto.CompactTextString(m) }
|
||||
func (*Source) ProtoMessage() {}
|
||||
func (*Source) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{0} }
|
||||
type Source struct {
|
||||
Version *Source_Version `protobuf:"varint,1,req,name=version,enum=legacy_pb.Source_Version" json:"version,omitempty"`
|
||||
SourceType *Source_SourceTypes `protobuf:"varint,2,req,name=sourceType,enum=legacy_pb.Source_SourceTypes" json:"sourceType,omitempty"`
|
||||
Source []byte `protobuf:"bytes,3,req,name=source" json:"source,omitempty"`
|
||||
ContentType *string `protobuf:"bytes,4,req,name=contentType" json:"contentType,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Source) Reset() { *m = Source{} }
|
||||
func (m *Source) String() string { return proto.CompactTextString(m) }
|
||||
func (*Source) ProtoMessage() {}
|
||||
func (*Source) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_9229c9b6eb8e6b85, []int{0}
|
||||
}
|
||||
|
||||
func (m *Source) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Source.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Source.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Source) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Source.Merge(m, src)
|
||||
}
|
||||
func (m *Source) XXX_Size() int {
|
||||
return xxx_messageInfo_Source.Size(m)
|
||||
}
|
||||
func (m *Source) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Source.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Source proto.InternalMessageInfo
|
||||
|
||||
func (m *Source) GetVersion() Source_Version {
|
||||
if m != nil && m.Version != nil {
|
||||
|
@ -122,27 +164,28 @@ func (m *Source) GetContentType() string {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Source)(nil), "pb.Source")
|
||||
proto.RegisterEnum("pb.Source_Version", Source_Version_name, Source_Version_value)
|
||||
proto.RegisterEnum("pb.Source_SourceTypes", Source_SourceTypes_name, Source_SourceTypes_value)
|
||||
proto.RegisterEnum("legacy_pb.Source_Version", Source_Version_name, Source_Version_value)
|
||||
proto.RegisterEnum("legacy_pb.Source_SourceTypes", Source_SourceTypes_name, Source_SourceTypes_value)
|
||||
proto.RegisterType((*Source)(nil), "legacy_pb.Source")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("source.proto", fileDescriptor5) }
|
||||
func init() { proto.RegisterFile("source.proto", fileDescriptor_9229c9b6eb8e6b85) }
|
||||
|
||||
var fileDescriptor5 = []byte{
|
||||
// 224 bytes of a gzipped FileDescriptorProto
|
||||
var fileDescriptor_9229c9b6eb8e6b85 = []byte{
|
||||
// 232 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0xce, 0x2f, 0x2d,
|
||||
0x4a, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48, 0x52, 0xea, 0x63, 0xe2,
|
||||
0x62, 0x0b, 0x06, 0x0b, 0x0a, 0xe9, 0x70, 0xb1, 0x97, 0xa5, 0x16, 0x15, 0x67, 0xe6, 0xe7, 0x49,
|
||||
0x30, 0x2a, 0x30, 0x69, 0xf0, 0x19, 0x09, 0xe9, 0x15, 0x24, 0xe9, 0x41, 0x24, 0xf5, 0xc2, 0x20,
|
||||
0x32, 0x41, 0x30, 0x25, 0x42, 0x66, 0x5c, 0x5c, 0x10, 0xc3, 0x42, 0x2a, 0x0b, 0x52, 0x25, 0x98,
|
||||
0xc0, 0x1a, 0xc4, 0x90, 0x34, 0x04, 0xc3, 0x25, 0x8b, 0x83, 0x90, 0x54, 0x0a, 0x89, 0x71, 0xb1,
|
||||
0x41, 0x78, 0x12, 0xcc, 0x0a, 0x4c, 0x1a, 0x3c, 0x41, 0x50, 0x9e, 0x90, 0x02, 0x17, 0x77, 0x72,
|
||||
0x7e, 0x5e, 0x49, 0x6a, 0x5e, 0x09, 0xd8, 0x40, 0x16, 0x05, 0x26, 0x0d, 0xce, 0x20, 0x64, 0x21,
|
||||
0x25, 0x2d, 0x2e, 0x76, 0xa8, 0x2b, 0x84, 0x84, 0xb9, 0xf8, 0x43, 0xfd, 0xbc, 0xfd, 0xfc, 0xc3,
|
||||
0xfd, 0xe2, 0xc3, 0x5c, 0x83, 0x82, 0x3d, 0xfd, 0xfd, 0x04, 0x18, 0x84, 0xb8, 0xb8, 0xd8, 0xe2,
|
||||
0x0d, 0xe2, 0x0d, 0xe2, 0x0d, 0x05, 0x18, 0x95, 0x2c, 0xb8, 0xb8, 0x91, 0x1c, 0x20, 0x24, 0xce,
|
||||
0x25, 0x0c, 0x53, 0x1f, 0xec, 0x1f, 0x1a, 0xe4, 0xec, 0x1a, 0x1f, 0x12, 0x19, 0xe0, 0x2a, 0xc0,
|
||||
0x20, 0x24, 0xc0, 0xc5, 0x93, 0x93, 0x54, 0x54, 0x19, 0x5f, 0x9c, 0x12, 0x9f, 0x91, 0x58, 0x9c,
|
||||
0x21, 0xc0, 0x08, 0x08, 0x00, 0x00, 0xff, 0xff, 0xcb, 0x07, 0x54, 0x9d, 0x23, 0x01, 0x00, 0x00,
|
||||
0x4a, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0xcc, 0x49, 0x4d, 0x4f, 0x4c, 0xae,
|
||||
0x8c, 0x2f, 0x48, 0x52, 0x9a, 0xc3, 0xc4, 0xc5, 0x16, 0x0c, 0x96, 0x13, 0x32, 0xe6, 0x62, 0x2f,
|
||||
0x4b, 0x2d, 0x2a, 0xce, 0xcc, 0xcf, 0x93, 0x60, 0x54, 0x60, 0xd2, 0xe0, 0x33, 0x92, 0xd4, 0x83,
|
||||
0xab, 0xd3, 0x83, 0xa8, 0xd1, 0x0b, 0x83, 0x28, 0x08, 0x82, 0xa9, 0x14, 0xb2, 0xe5, 0xe2, 0x82,
|
||||
0x18, 0x1d, 0x52, 0x59, 0x90, 0x2a, 0xc1, 0x04, 0xd6, 0x27, 0x8b, 0xa9, 0x2f, 0x18, 0xae, 0xa6,
|
||||
0x38, 0x08, 0x49, 0x83, 0x90, 0x18, 0x17, 0x1b, 0x84, 0x27, 0xc1, 0xac, 0xc0, 0xa4, 0xc1, 0x13,
|
||||
0x04, 0xe5, 0x09, 0x29, 0x70, 0x71, 0x27, 0xe7, 0xe7, 0x95, 0xa4, 0xe6, 0x95, 0x80, 0xcd, 0x65,
|
||||
0x51, 0x60, 0xd2, 0xe0, 0x0c, 0x42, 0x16, 0x52, 0xd2, 0xe2, 0x62, 0x87, 0x3a, 0x46, 0x48, 0x98,
|
||||
0x8b, 0x3f, 0xd4, 0xcf, 0xdb, 0xcf, 0x3f, 0xdc, 0x2f, 0x3e, 0xcc, 0x35, 0x28, 0xd8, 0xd3, 0xdf,
|
||||
0x4f, 0x80, 0x41, 0x88, 0x8b, 0x8b, 0x2d, 0xde, 0x20, 0xde, 0x20, 0xde, 0x50, 0x80, 0x51, 0xc9,
|
||||
0x82, 0x8b, 0x1b, 0xc9, 0x01, 0x42, 0xe2, 0x5c, 0xc2, 0x30, 0xf5, 0xc1, 0xfe, 0xa1, 0x41, 0xce,
|
||||
0xae, 0xf1, 0x21, 0x91, 0x01, 0xae, 0x02, 0x0c, 0x42, 0x02, 0x5c, 0x3c, 0x39, 0x49, 0x45, 0x95,
|
||||
0xf1, 0xc5, 0x29, 0xf1, 0x19, 0x89, 0xc5, 0x19, 0x02, 0x8c, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff,
|
||||
0xf2, 0x96, 0xa2, 0x14, 0x38, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
|
|
@ -1,17 +1,25 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: stream.proto
|
||||
|
||||
package pb
|
||||
package legacy_pb
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
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 Stream_Version int32
|
||||
|
||||
const (
|
||||
|
@ -23,6 +31,7 @@ var Stream_Version_name = map[int32]string{
|
|||
0: "UNKNOWN_VERSION",
|
||||
1: "_0_0_1",
|
||||
}
|
||||
|
||||
var Stream_Version_value = map[string]int32{
|
||||
"UNKNOWN_VERSION": 0,
|
||||
"_0_0_1": 1,
|
||||
|
@ -33,9 +42,11 @@ func (x Stream_Version) Enum() *Stream_Version {
|
|||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x Stream_Version) String() string {
|
||||
return proto.EnumName(Stream_Version_name, int32(x))
|
||||
}
|
||||
|
||||
func (x *Stream_Version) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Stream_Version_value, data, "Stream_Version")
|
||||
if err != nil {
|
||||
|
@ -44,19 +55,44 @@ func (x *Stream_Version) UnmarshalJSON(data []byte) error {
|
|||
*x = Stream_Version(value)
|
||||
return nil
|
||||
}
|
||||
func (Stream_Version) EnumDescriptor() ([]byte, []int) { return fileDescriptor6, []int{0, 0} }
|
||||
|
||||
type Stream struct {
|
||||
Version *Stream_Version `protobuf:"varint,1,req,name=version,enum=pb.Stream_Version" json:"version,omitempty"`
|
||||
Metadata *Metadata `protobuf:"bytes,2,req,name=metadata" json:"metadata,omitempty"`
|
||||
Source *Source `protobuf:"bytes,3,req,name=source" json:"source,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
func (Stream_Version) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_bb17ef3f514bfe54, []int{0, 0}
|
||||
}
|
||||
|
||||
func (m *Stream) Reset() { *m = Stream{} }
|
||||
func (m *Stream) String() string { return proto.CompactTextString(m) }
|
||||
func (*Stream) ProtoMessage() {}
|
||||
func (*Stream) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{0} }
|
||||
type Stream struct {
|
||||
Version *Stream_Version `protobuf:"varint,1,req,name=version,enum=legacy_pb.Stream_Version" json:"version,omitempty"`
|
||||
Metadata *Metadata `protobuf:"bytes,2,req,name=metadata" json:"metadata,omitempty"`
|
||||
Source *Source `protobuf:"bytes,3,req,name=source" json:"source,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Stream) Reset() { *m = Stream{} }
|
||||
func (m *Stream) String() string { return proto.CompactTextString(m) }
|
||||
func (*Stream) ProtoMessage() {}
|
||||
func (*Stream) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_bb17ef3f514bfe54, []int{0}
|
||||
}
|
||||
|
||||
func (m *Stream) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Stream.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Stream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Stream.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Stream) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Stream.Merge(m, src)
|
||||
}
|
||||
func (m *Stream) XXX_Size() int {
|
||||
return xxx_messageInfo_Stream.Size(m)
|
||||
}
|
||||
func (m *Stream) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Stream.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Stream proto.InternalMessageInfo
|
||||
|
||||
func (m *Stream) GetVersion() Stream_Version {
|
||||
if m != nil && m.Version != nil {
|
||||
|
@ -80,24 +116,24 @@ func (m *Stream) GetSource() *Source {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Stream)(nil), "pb.Stream")
|
||||
proto.RegisterEnum("pb.Stream_Version", Stream_Version_name, Stream_Version_value)
|
||||
proto.RegisterEnum("legacy_pb.Stream_Version", Stream_Version_name, Stream_Version_value)
|
||||
proto.RegisterType((*Stream)(nil), "legacy_pb.Stream")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("stream.proto", fileDescriptor6) }
|
||||
func init() { proto.RegisterFile("stream.proto", fileDescriptor_bb17ef3f514bfe54) }
|
||||
|
||||
var fileDescriptor6 = []byte{
|
||||
// 183 bytes of a gzipped FileDescriptorProto
|
||||
var fileDescriptor_bb17ef3f514bfe54 = []byte{
|
||||
// 191 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0x2e, 0x29, 0x4a,
|
||||
0x4d, 0xcc, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48, 0x92, 0xe2, 0xcb, 0x4d,
|
||||
0x2d, 0x49, 0x4c, 0x49, 0x2c, 0x49, 0x84, 0x88, 0x49, 0xf1, 0x14, 0xe7, 0x97, 0x16, 0x25, 0xa7,
|
||||
0x42, 0x78, 0x4a, 0x1b, 0x18, 0xb9, 0xd8, 0x82, 0xc1, 0x5a, 0x84, 0x74, 0xb8, 0xd8, 0xcb, 0x52,
|
||||
0x8b, 0x8a, 0x33, 0xf3, 0xf3, 0x24, 0x18, 0x15, 0x98, 0x34, 0xf8, 0x8c, 0x84, 0xf4, 0x0a, 0x92,
|
||||
0xf4, 0x20, 0x92, 0x7a, 0x61, 0x10, 0x99, 0x20, 0x98, 0x12, 0x21, 0x0d, 0x2e, 0x0e, 0x98, 0xc1,
|
||||
0x12, 0x4c, 0x0a, 0x4c, 0x1a, 0xdc, 0x46, 0x3c, 0x20, 0xe5, 0xbe, 0x50, 0xb1, 0x20, 0xb8, 0xac,
|
||||
0x90, 0x12, 0x17, 0x1b, 0xc4, 0x4a, 0x09, 0x66, 0xb0, 0x3a, 0x2e, 0xb0, 0xb1, 0x60, 0x91, 0x20,
|
||||
0xa8, 0x8c, 0x92, 0x16, 0x17, 0x3b, 0xd4, 0x06, 0x21, 0x61, 0x2e, 0xfe, 0x50, 0x3f, 0x6f, 0x3f,
|
||||
0xff, 0x70, 0xbf, 0xf8, 0x30, 0xd7, 0xa0, 0x60, 0x4f, 0x7f, 0x3f, 0x01, 0x06, 0x21, 0x2e, 0x2e,
|
||||
0xb6, 0x78, 0x83, 0x78, 0x83, 0x78, 0x43, 0x01, 0x46, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd8,
|
||||
0x68, 0x9c, 0xe3, 0xe3, 0x00, 0x00, 0x00,
|
||||
0x4d, 0xcc, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0xcc, 0x49, 0x4d, 0x4f, 0x4c, 0xae,
|
||||
0x8c, 0x2f, 0x48, 0x92, 0xe2, 0xcb, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c, 0x49, 0x84, 0x48, 0x49,
|
||||
0xf1, 0x14, 0xe7, 0x97, 0x16, 0x25, 0xa7, 0x42, 0x78, 0x4a, 0x47, 0x19, 0xb9, 0xd8, 0x82, 0xc1,
|
||||
0x3a, 0x85, 0x8c, 0xb9, 0xd8, 0xcb, 0x52, 0x8b, 0x8a, 0x33, 0xf3, 0xf3, 0x24, 0x18, 0x15, 0x98,
|
||||
0x34, 0xf8, 0x8c, 0x24, 0xf5, 0xe0, 0xa6, 0xe8, 0x41, 0xd4, 0xe8, 0x85, 0x41, 0x14, 0x04, 0xc1,
|
||||
0x54, 0x0a, 0xe9, 0x73, 0x71, 0xc0, 0xcc, 0x97, 0x60, 0x52, 0x60, 0xd2, 0xe0, 0x36, 0x12, 0x46,
|
||||
0xd2, 0xe5, 0x0b, 0x95, 0x0a, 0x82, 0x2b, 0x12, 0xd2, 0xe4, 0x62, 0x83, 0x38, 0x40, 0x82, 0x19,
|
||||
0xac, 0x5c, 0x10, 0xd9, 0x12, 0xb0, 0x44, 0x10, 0x54, 0x81, 0x92, 0x16, 0x17, 0x3b, 0xd4, 0x3e,
|
||||
0x21, 0x61, 0x2e, 0xfe, 0x50, 0x3f, 0x6f, 0x3f, 0xff, 0x70, 0xbf, 0xf8, 0x30, 0xd7, 0xa0, 0x60,
|
||||
0x4f, 0x7f, 0x3f, 0x01, 0x06, 0x21, 0x2e, 0x2e, 0xb6, 0x78, 0x83, 0x78, 0x83, 0x78, 0x43, 0x01,
|
||||
0x46, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, 0xe9, 0x51, 0x8e, 0xff, 0x00, 0x00, 0x00,
|
||||
}
|
||||
|
|
|
@ -11,10 +11,9 @@ var jspb = require('google-protobuf');
|
|||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
goog.exportSymbol('proto.pb.Certificate', null, global);
|
||||
goog.exportSymbol('proto.pb.Certificate.Version', null, global);
|
||||
goog.exportSymbol('proto.pb.KeyType', null, global);
|
||||
|
||||
goog.exportSymbol('proto.legacy_pb.Certificate', null, global);
|
||||
goog.exportSymbol('proto.legacy_pb.Certificate.Version', null, global);
|
||||
goog.exportSymbol('proto.legacy_pb.KeyType', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
|
@ -25,15 +24,20 @@ goog.exportSymbol('proto.pb.KeyType', null, global);
|
|||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.pb.Certificate = function(opt_data) {
|
||||
proto.legacy_pb.Certificate = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.pb.Certificate, jspb.Message);
|
||||
goog.inherits(proto.legacy_pb.Certificate, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.pb.Certificate.displayName = 'proto.pb.Certificate';
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.legacy_pb.Certificate.displayName = 'proto.legacy_pb.Certificate';
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
|
@ -45,8 +49,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.pb.Certificate.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.pb.Certificate.toObject(opt_includeInstance, this);
|
||||
proto.legacy_pb.Certificate.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.legacy_pb.Certificate.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
|
@ -55,12 +59,12 @@ proto.pb.Certificate.prototype.toObject = function(opt_includeInstance) {
|
|||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.pb.Certificate} msg The msg instance to transform.
|
||||
* @param {!proto.legacy_pb.Certificate} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Certificate.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
proto.legacy_pb.Certificate.toObject = function(includeInstance, msg) {
|
||||
var obj = {
|
||||
version: jspb.Message.getField(msg, 1),
|
||||
keytype: jspb.Message.getField(msg, 2),
|
||||
publickey: msg.getPublickey_asB64()
|
||||
|
@ -77,23 +81,23 @@ proto.pb.Certificate.toObject = function(includeInstance, msg) {
|
|||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.pb.Certificate}
|
||||
* @return {!proto.legacy_pb.Certificate}
|
||||
*/
|
||||
proto.pb.Certificate.deserializeBinary = function(bytes) {
|
||||
proto.legacy_pb.Certificate.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.pb.Certificate;
|
||||
return proto.pb.Certificate.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.legacy_pb.Certificate;
|
||||
return proto.legacy_pb.Certificate.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.pb.Certificate} msg The message object to deserialize into.
|
||||
* @param {!proto.legacy_pb.Certificate} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.pb.Certificate}
|
||||
* @return {!proto.legacy_pb.Certificate}
|
||||
*/
|
||||
proto.pb.Certificate.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.legacy_pb.Certificate.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
|
@ -101,11 +105,11 @@ proto.pb.Certificate.deserializeBinaryFromReader = function(msg, reader) {
|
|||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {!proto.pb.Certificate.Version} */ (reader.readEnum());
|
||||
var value = /** @type {!proto.legacy_pb.Certificate.Version} */ (reader.readEnum());
|
||||
msg.setVersion(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!proto.pb.KeyType} */ (reader.readEnum());
|
||||
var value = /** @type {!proto.legacy_pb.KeyType} */ (reader.readEnum());
|
||||
msg.setKeytype(value);
|
||||
break;
|
||||
case 4:
|
||||
|
@ -125,9 +129,9 @@ proto.pb.Certificate.deserializeBinaryFromReader = function(msg, reader) {
|
|||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.pb.Certificate.prototype.serializeBinary = function() {
|
||||
proto.legacy_pb.Certificate.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.pb.Certificate.serializeBinaryToWriter(this, writer);
|
||||
proto.legacy_pb.Certificate.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
@ -135,20 +139,20 @@ proto.pb.Certificate.prototype.serializeBinary = function() {
|
|||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.pb.Certificate} message
|
||||
* @param {!proto.legacy_pb.Certificate} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Certificate.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.legacy_pb.Certificate.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = /** @type {!proto.pb.Certificate.Version} */ (jspb.Message.getField(message, 1));
|
||||
f = /** @type {!proto.legacy_pb.Certificate.Version} */ (jspb.Message.getField(message, 1));
|
||||
if (f != null) {
|
||||
writer.writeEnum(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = /** @type {!proto.pb.KeyType} */ (jspb.Message.getField(message, 2));
|
||||
f = /** @type {!proto.legacy_pb.KeyType} */ (jspb.Message.getField(message, 2));
|
||||
if (f != null) {
|
||||
writer.writeEnum(
|
||||
2,
|
||||
|
@ -168,65 +172,71 @@ proto.pb.Certificate.serializeBinaryToWriter = function(message, writer) {
|
|||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.pb.Certificate.Version = {
|
||||
proto.legacy_pb.Certificate.Version = {
|
||||
UNKNOWN_VERSION: 0,
|
||||
_0_0_1: 1
|
||||
};
|
||||
|
||||
/**
|
||||
* required Version version = 1;
|
||||
* @return {!proto.pb.Certificate.Version}
|
||||
* @return {!proto.legacy_pb.Certificate.Version}
|
||||
*/
|
||||
proto.pb.Certificate.prototype.getVersion = function() {
|
||||
return /** @type {!proto.pb.Certificate.Version} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
proto.legacy_pb.Certificate.prototype.getVersion = function() {
|
||||
return /** @type {!proto.legacy_pb.Certificate.Version} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.pb.Certificate.Version} value */
|
||||
proto.pb.Certificate.prototype.setVersion = function(value) {
|
||||
/** @param {!proto.legacy_pb.Certificate.Version} value */
|
||||
proto.legacy_pb.Certificate.prototype.setVersion = function(value) {
|
||||
jspb.Message.setField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Certificate.prototype.clearVersion = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Certificate.prototype.clearVersion = function() {
|
||||
jspb.Message.setField(this, 1, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Certificate.prototype.hasVersion = function() {
|
||||
proto.legacy_pb.Certificate.prototype.hasVersion = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* required KeyType keyType = 2;
|
||||
* @return {!proto.pb.KeyType}
|
||||
* @return {!proto.legacy_pb.KeyType}
|
||||
*/
|
||||
proto.pb.Certificate.prototype.getKeytype = function() {
|
||||
return /** @type {!proto.pb.KeyType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
proto.legacy_pb.Certificate.prototype.getKeytype = function() {
|
||||
return /** @type {!proto.legacy_pb.KeyType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.pb.KeyType} value */
|
||||
proto.pb.Certificate.prototype.setKeytype = function(value) {
|
||||
/** @param {!proto.legacy_pb.KeyType} value */
|
||||
proto.legacy_pb.Certificate.prototype.setKeytype = function(value) {
|
||||
jspb.Message.setField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Certificate.prototype.clearKeytype = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Certificate.prototype.clearKeytype = function() {
|
||||
jspb.Message.setField(this, 2, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Certificate.prototype.hasKeytype = function() {
|
||||
proto.legacy_pb.Certificate.prototype.hasKeytype = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
@ -235,7 +245,7 @@ proto.pb.Certificate.prototype.hasKeytype = function() {
|
|||
* required bytes publicKey = 4;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.pb.Certificate.prototype.getPublickey = function() {
|
||||
proto.legacy_pb.Certificate.prototype.getPublickey = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
||||
};
|
||||
|
||||
|
@ -245,7 +255,7 @@ proto.pb.Certificate.prototype.getPublickey = function() {
|
|||
* This is a type-conversion wrapper around `getPublickey()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.pb.Certificate.prototype.getPublickey_asB64 = function() {
|
||||
proto.legacy_pb.Certificate.prototype.getPublickey_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getPublickey()));
|
||||
};
|
||||
|
@ -258,28 +268,31 @@ proto.pb.Certificate.prototype.getPublickey_asB64 = function() {
|
|||
* This is a type-conversion wrapper around `getPublickey()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.pb.Certificate.prototype.getPublickey_asU8 = function() {
|
||||
proto.legacy_pb.Certificate.prototype.getPublickey_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getPublickey()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.pb.Certificate.prototype.setPublickey = function(value) {
|
||||
proto.legacy_pb.Certificate.prototype.setPublickey = function(value) {
|
||||
jspb.Message.setField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Certificate.prototype.clearPublickey = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Certificate.prototype.clearPublickey = function() {
|
||||
jspb.Message.setField(this, 4, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Certificate.prototype.hasPublickey = function() {
|
||||
proto.legacy_pb.Certificate.prototype.hasPublickey = function() {
|
||||
return jspb.Message.getField(this, 4) != null;
|
||||
};
|
||||
|
||||
|
@ -287,11 +300,11 @@ proto.pb.Certificate.prototype.hasPublickey = function() {
|
|||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.pb.KeyType = {
|
||||
proto.legacy_pb.KeyType = {
|
||||
UNKNOWN_PUBLIC_KEY_TYPE: 0,
|
||||
NIST256P: 1,
|
||||
NIST384P: 2,
|
||||
SECP256K1: 3
|
||||
};
|
||||
|
||||
goog.object.extend(exports, proto.pb);
|
||||
goog.object.extend(exports, proto.legacy_pb);
|
||||
|
|
132
v1/js/fee_pb.js
132
v1/js/fee_pb.js
|
@ -11,10 +11,9 @@ var jspb = require('google-protobuf');
|
|||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
goog.exportSymbol('proto.pb.Fee', null, global);
|
||||
goog.exportSymbol('proto.pb.Fee.Currency', null, global);
|
||||
goog.exportSymbol('proto.pb.Fee.Version', null, global);
|
||||
|
||||
goog.exportSymbol('proto.legacy_pb.Fee', null, global);
|
||||
goog.exportSymbol('proto.legacy_pb.Fee.Currency', null, global);
|
||||
goog.exportSymbol('proto.legacy_pb.Fee.Version', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
|
@ -25,15 +24,20 @@ goog.exportSymbol('proto.pb.Fee.Version', null, global);
|
|||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.pb.Fee = function(opt_data) {
|
||||
proto.legacy_pb.Fee = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.pb.Fee, jspb.Message);
|
||||
goog.inherits(proto.legacy_pb.Fee, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.pb.Fee.displayName = 'proto.pb.Fee';
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.legacy_pb.Fee.displayName = 'proto.legacy_pb.Fee';
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
|
@ -45,8 +49,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.pb.Fee.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.pb.Fee.toObject(opt_includeInstance, this);
|
||||
proto.legacy_pb.Fee.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.legacy_pb.Fee.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
|
@ -55,12 +59,12 @@ proto.pb.Fee.prototype.toObject = function(opt_includeInstance) {
|
|||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.pb.Fee} msg The msg instance to transform.
|
||||
* @param {!proto.legacy_pb.Fee} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Fee.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
proto.legacy_pb.Fee.toObject = function(includeInstance, msg) {
|
||||
var obj = {
|
||||
version: jspb.Message.getField(msg, 1),
|
||||
currency: jspb.Message.getField(msg, 2),
|
||||
address: msg.getAddress_asB64(),
|
||||
|
@ -78,23 +82,23 @@ proto.pb.Fee.toObject = function(includeInstance, msg) {
|
|||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.pb.Fee}
|
||||
* @return {!proto.legacy_pb.Fee}
|
||||
*/
|
||||
proto.pb.Fee.deserializeBinary = function(bytes) {
|
||||
proto.legacy_pb.Fee.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.pb.Fee;
|
||||
return proto.pb.Fee.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.legacy_pb.Fee;
|
||||
return proto.legacy_pb.Fee.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.pb.Fee} msg The message object to deserialize into.
|
||||
* @param {!proto.legacy_pb.Fee} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.pb.Fee}
|
||||
* @return {!proto.legacy_pb.Fee}
|
||||
*/
|
||||
proto.pb.Fee.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.legacy_pb.Fee.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
|
@ -102,11 +106,11 @@ proto.pb.Fee.deserializeBinaryFromReader = function(msg, reader) {
|
|||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {!proto.pb.Fee.Version} */ (reader.readEnum());
|
||||
var value = /** @type {!proto.legacy_pb.Fee.Version} */ (reader.readEnum());
|
||||
msg.setVersion(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!proto.pb.Fee.Currency} */ (reader.readEnum());
|
||||
var value = /** @type {!proto.legacy_pb.Fee.Currency} */ (reader.readEnum());
|
||||
msg.setCurrency(value);
|
||||
break;
|
||||
case 3:
|
||||
|
@ -130,9 +134,9 @@ proto.pb.Fee.deserializeBinaryFromReader = function(msg, reader) {
|
|||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.pb.Fee.prototype.serializeBinary = function() {
|
||||
proto.legacy_pb.Fee.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.pb.Fee.serializeBinaryToWriter(this, writer);
|
||||
proto.legacy_pb.Fee.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
@ -140,20 +144,20 @@ proto.pb.Fee.prototype.serializeBinary = function() {
|
|||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.pb.Fee} message
|
||||
* @param {!proto.legacy_pb.Fee} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Fee.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.legacy_pb.Fee.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = /** @type {!proto.pb.Fee.Version} */ (jspb.Message.getField(message, 1));
|
||||
f = /** @type {!proto.legacy_pb.Fee.Version} */ (jspb.Message.getField(message, 1));
|
||||
if (f != null) {
|
||||
writer.writeEnum(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = /** @type {!proto.pb.Fee.Currency} */ (jspb.Message.getField(message, 2));
|
||||
f = /** @type {!proto.legacy_pb.Fee.Currency} */ (jspb.Message.getField(message, 2));
|
||||
if (f != null) {
|
||||
writer.writeEnum(
|
||||
2,
|
||||
|
@ -180,7 +184,7 @@ proto.pb.Fee.serializeBinaryToWriter = function(message, writer) {
|
|||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.pb.Fee.Version = {
|
||||
proto.legacy_pb.Fee.Version = {
|
||||
UNKNOWN_VERSION: 0,
|
||||
_0_0_1: 1
|
||||
};
|
||||
|
@ -188,7 +192,7 @@ proto.pb.Fee.Version = {
|
|||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.pb.Fee.Currency = {
|
||||
proto.legacy_pb.Fee.Currency = {
|
||||
UNKNOWN_CURRENCY: 0,
|
||||
LBC: 1,
|
||||
BTC: 2,
|
||||
|
@ -197,58 +201,64 @@ proto.pb.Fee.Currency = {
|
|||
|
||||
/**
|
||||
* required Version version = 1;
|
||||
* @return {!proto.pb.Fee.Version}
|
||||
* @return {!proto.legacy_pb.Fee.Version}
|
||||
*/
|
||||
proto.pb.Fee.prototype.getVersion = function() {
|
||||
return /** @type {!proto.pb.Fee.Version} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
proto.legacy_pb.Fee.prototype.getVersion = function() {
|
||||
return /** @type {!proto.legacy_pb.Fee.Version} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.pb.Fee.Version} value */
|
||||
proto.pb.Fee.prototype.setVersion = function(value) {
|
||||
/** @param {!proto.legacy_pb.Fee.Version} value */
|
||||
proto.legacy_pb.Fee.prototype.setVersion = function(value) {
|
||||
jspb.Message.setField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Fee.prototype.clearVersion = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Fee.prototype.clearVersion = function() {
|
||||
jspb.Message.setField(this, 1, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Fee.prototype.hasVersion = function() {
|
||||
proto.legacy_pb.Fee.prototype.hasVersion = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* required Currency currency = 2;
|
||||
* @return {!proto.pb.Fee.Currency}
|
||||
* @return {!proto.legacy_pb.Fee.Currency}
|
||||
*/
|
||||
proto.pb.Fee.prototype.getCurrency = function() {
|
||||
return /** @type {!proto.pb.Fee.Currency} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
proto.legacy_pb.Fee.prototype.getCurrency = function() {
|
||||
return /** @type {!proto.legacy_pb.Fee.Currency} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.pb.Fee.Currency} value */
|
||||
proto.pb.Fee.prototype.setCurrency = function(value) {
|
||||
/** @param {!proto.legacy_pb.Fee.Currency} value */
|
||||
proto.legacy_pb.Fee.prototype.setCurrency = function(value) {
|
||||
jspb.Message.setField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Fee.prototype.clearCurrency = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Fee.prototype.clearCurrency = function() {
|
||||
jspb.Message.setField(this, 2, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Fee.prototype.hasCurrency = function() {
|
||||
proto.legacy_pb.Fee.prototype.hasCurrency = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
@ -257,7 +267,7 @@ proto.pb.Fee.prototype.hasCurrency = function() {
|
|||
* required bytes address = 3;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.pb.Fee.prototype.getAddress = function() {
|
||||
proto.legacy_pb.Fee.prototype.getAddress = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||
};
|
||||
|
||||
|
@ -267,7 +277,7 @@ proto.pb.Fee.prototype.getAddress = function() {
|
|||
* This is a type-conversion wrapper around `getAddress()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.pb.Fee.prototype.getAddress_asB64 = function() {
|
||||
proto.legacy_pb.Fee.prototype.getAddress_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getAddress()));
|
||||
};
|
||||
|
@ -280,28 +290,31 @@ proto.pb.Fee.prototype.getAddress_asB64 = function() {
|
|||
* This is a type-conversion wrapper around `getAddress()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.pb.Fee.prototype.getAddress_asU8 = function() {
|
||||
proto.legacy_pb.Fee.prototype.getAddress_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getAddress()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.pb.Fee.prototype.setAddress = function(value) {
|
||||
proto.legacy_pb.Fee.prototype.setAddress = function(value) {
|
||||
jspb.Message.setField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Fee.prototype.clearAddress = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Fee.prototype.clearAddress = function() {
|
||||
jspb.Message.setField(this, 3, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Fee.prototype.hasAddress = function() {
|
||||
proto.legacy_pb.Fee.prototype.hasAddress = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
|
@ -310,29 +323,32 @@ proto.pb.Fee.prototype.hasAddress = function() {
|
|||
* required float amount = 4;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.pb.Fee.prototype.getAmount = function() {
|
||||
proto.legacy_pb.Fee.prototype.getAmount = function() {
|
||||
return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 4, 0.0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {number} value */
|
||||
proto.pb.Fee.prototype.setAmount = function(value) {
|
||||
proto.legacy_pb.Fee.prototype.setAmount = function(value) {
|
||||
jspb.Message.setField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Fee.prototype.clearAmount = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Fee.prototype.clearAmount = function() {
|
||||
jspb.Message.setField(this, 4, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Fee.prototype.hasAmount = function() {
|
||||
proto.legacy_pb.Fee.prototype.hasAmount = function() {
|
||||
return jspb.Message.getField(this, 4) != null;
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.pb);
|
||||
goog.object.extend(exports, proto.legacy_pb);
|
||||
|
|
|
@ -12,12 +12,14 @@ var goog = jspb;
|
|||
var global = Function('return this')();
|
||||
|
||||
var stream_pb = require('./stream_pb.js');
|
||||
goog.object.extend(proto, stream_pb);
|
||||
var certificate_pb = require('./certificate_pb.js');
|
||||
goog.object.extend(proto, certificate_pb);
|
||||
var signature_pb = require('./signature_pb.js');
|
||||
goog.exportSymbol('proto.pb.Claim', null, global);
|
||||
goog.exportSymbol('proto.pb.Claim.ClaimType', null, global);
|
||||
goog.exportSymbol('proto.pb.Claim.Version', null, global);
|
||||
|
||||
goog.object.extend(proto, signature_pb);
|
||||
goog.exportSymbol('proto.legacy_pb.Claim', null, global);
|
||||
goog.exportSymbol('proto.legacy_pb.Claim.ClaimType', null, global);
|
||||
goog.exportSymbol('proto.legacy_pb.Claim.Version', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
|
@ -28,15 +30,20 @@ goog.exportSymbol('proto.pb.Claim.Version', null, global);
|
|||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.pb.Claim = function(opt_data) {
|
||||
proto.legacy_pb.Claim = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.pb.Claim, jspb.Message);
|
||||
goog.inherits(proto.legacy_pb.Claim, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.pb.Claim.displayName = 'proto.pb.Claim';
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.legacy_pb.Claim.displayName = 'proto.legacy_pb.Claim';
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
|
@ -48,8 +55,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.pb.Claim.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.pb.Claim.toObject(opt_includeInstance, this);
|
||||
proto.legacy_pb.Claim.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.legacy_pb.Claim.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
|
@ -58,12 +65,12 @@ proto.pb.Claim.prototype.toObject = function(opt_includeInstance) {
|
|||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.pb.Claim} msg The msg instance to transform.
|
||||
* @param {!proto.legacy_pb.Claim} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Claim.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
proto.legacy_pb.Claim.toObject = function(includeInstance, msg) {
|
||||
var obj = {
|
||||
version: jspb.Message.getField(msg, 1),
|
||||
claimtype: jspb.Message.getField(msg, 2),
|
||||
stream: (f = msg.getStream()) && stream_pb.Stream.toObject(includeInstance, f),
|
||||
|
@ -82,23 +89,23 @@ proto.pb.Claim.toObject = function(includeInstance, msg) {
|
|||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.pb.Claim}
|
||||
* @return {!proto.legacy_pb.Claim}
|
||||
*/
|
||||
proto.pb.Claim.deserializeBinary = function(bytes) {
|
||||
proto.legacy_pb.Claim.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.pb.Claim;
|
||||
return proto.pb.Claim.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.legacy_pb.Claim;
|
||||
return proto.legacy_pb.Claim.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.pb.Claim} msg The message object to deserialize into.
|
||||
* @param {!proto.legacy_pb.Claim} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.pb.Claim}
|
||||
* @return {!proto.legacy_pb.Claim}
|
||||
*/
|
||||
proto.pb.Claim.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.legacy_pb.Claim.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
|
@ -106,11 +113,11 @@ proto.pb.Claim.deserializeBinaryFromReader = function(msg, reader) {
|
|||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {!proto.pb.Claim.Version} */ (reader.readEnum());
|
||||
var value = /** @type {!proto.legacy_pb.Claim.Version} */ (reader.readEnum());
|
||||
msg.setVersion(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!proto.pb.Claim.ClaimType} */ (reader.readEnum());
|
||||
var value = /** @type {!proto.legacy_pb.Claim.ClaimType} */ (reader.readEnum());
|
||||
msg.setClaimtype(value);
|
||||
break;
|
||||
case 3:
|
||||
|
@ -141,9 +148,9 @@ proto.pb.Claim.deserializeBinaryFromReader = function(msg, reader) {
|
|||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.pb.Claim.prototype.serializeBinary = function() {
|
||||
proto.legacy_pb.Claim.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.pb.Claim.serializeBinaryToWriter(this, writer);
|
||||
proto.legacy_pb.Claim.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
@ -151,20 +158,20 @@ proto.pb.Claim.prototype.serializeBinary = function() {
|
|||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.pb.Claim} message
|
||||
* @param {!proto.legacy_pb.Claim} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Claim.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.legacy_pb.Claim.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = /** @type {!proto.pb.Claim.Version} */ (jspb.Message.getField(message, 1));
|
||||
f = /** @type {!proto.legacy_pb.Claim.Version} */ (jspb.Message.getField(message, 1));
|
||||
if (f != null) {
|
||||
writer.writeEnum(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = /** @type {!proto.pb.Claim.ClaimType} */ (jspb.Message.getField(message, 2));
|
||||
f = /** @type {!proto.legacy_pb.Claim.ClaimType} */ (jspb.Message.getField(message, 2));
|
||||
if (f != null) {
|
||||
writer.writeEnum(
|
||||
2,
|
||||
|
@ -201,7 +208,7 @@ proto.pb.Claim.serializeBinaryToWriter = function(message, writer) {
|
|||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.pb.Claim.Version = {
|
||||
proto.legacy_pb.Claim.Version = {
|
||||
UNKNOWN_VERSION: 0,
|
||||
_0_0_1: 1
|
||||
};
|
||||
|
@ -209,7 +216,7 @@ proto.pb.Claim.Version = {
|
|||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.pb.Claim.ClaimType = {
|
||||
proto.legacy_pb.Claim.ClaimType = {
|
||||
UNKNOWN_CLAIM_TYPE: 0,
|
||||
STREAMTYPE: 1,
|
||||
CERTIFICATETYPE: 2
|
||||
|
@ -217,150 +224,165 @@ proto.pb.Claim.ClaimType = {
|
|||
|
||||
/**
|
||||
* required Version version = 1;
|
||||
* @return {!proto.pb.Claim.Version}
|
||||
* @return {!proto.legacy_pb.Claim.Version}
|
||||
*/
|
||||
proto.pb.Claim.prototype.getVersion = function() {
|
||||
return /** @type {!proto.pb.Claim.Version} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
proto.legacy_pb.Claim.prototype.getVersion = function() {
|
||||
return /** @type {!proto.legacy_pb.Claim.Version} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.pb.Claim.Version} value */
|
||||
proto.pb.Claim.prototype.setVersion = function(value) {
|
||||
/** @param {!proto.legacy_pb.Claim.Version} value */
|
||||
proto.legacy_pb.Claim.prototype.setVersion = function(value) {
|
||||
jspb.Message.setField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Claim.prototype.clearVersion = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Claim.prototype.clearVersion = function() {
|
||||
jspb.Message.setField(this, 1, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Claim.prototype.hasVersion = function() {
|
||||
proto.legacy_pb.Claim.prototype.hasVersion = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* required ClaimType claimType = 2;
|
||||
* @return {!proto.pb.Claim.ClaimType}
|
||||
* @return {!proto.legacy_pb.Claim.ClaimType}
|
||||
*/
|
||||
proto.pb.Claim.prototype.getClaimtype = function() {
|
||||
return /** @type {!proto.pb.Claim.ClaimType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
proto.legacy_pb.Claim.prototype.getClaimtype = function() {
|
||||
return /** @type {!proto.legacy_pb.Claim.ClaimType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.pb.Claim.ClaimType} value */
|
||||
proto.pb.Claim.prototype.setClaimtype = function(value) {
|
||||
/** @param {!proto.legacy_pb.Claim.ClaimType} value */
|
||||
proto.legacy_pb.Claim.prototype.setClaimtype = function(value) {
|
||||
jspb.Message.setField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Claim.prototype.clearClaimtype = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Claim.prototype.clearClaimtype = function() {
|
||||
jspb.Message.setField(this, 2, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Claim.prototype.hasClaimtype = function() {
|
||||
proto.legacy_pb.Claim.prototype.hasClaimtype = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional Stream stream = 3;
|
||||
* @return {?proto.pb.Stream}
|
||||
* @return {?proto.legacy_pb.Stream}
|
||||
*/
|
||||
proto.pb.Claim.prototype.getStream = function() {
|
||||
return /** @type{?proto.pb.Stream} */ (
|
||||
proto.legacy_pb.Claim.prototype.getStream = function() {
|
||||
return /** @type{?proto.legacy_pb.Stream} */ (
|
||||
jspb.Message.getWrapperField(this, stream_pb.Stream, 3));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.pb.Stream|undefined} value */
|
||||
proto.pb.Claim.prototype.setStream = function(value) {
|
||||
/** @param {?proto.legacy_pb.Stream|undefined} value */
|
||||
proto.legacy_pb.Claim.prototype.setStream = function(value) {
|
||||
jspb.Message.setWrapperField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Claim.prototype.clearStream = function() {
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Claim.prototype.clearStream = function() {
|
||||
this.setStream(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Claim.prototype.hasStream = function() {
|
||||
proto.legacy_pb.Claim.prototype.hasStream = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional Certificate certificate = 4;
|
||||
* @return {?proto.pb.Certificate}
|
||||
* @return {?proto.legacy_pb.Certificate}
|
||||
*/
|
||||
proto.pb.Claim.prototype.getCertificate = function() {
|
||||
return /** @type{?proto.pb.Certificate} */ (
|
||||
proto.legacy_pb.Claim.prototype.getCertificate = function() {
|
||||
return /** @type{?proto.legacy_pb.Certificate} */ (
|
||||
jspb.Message.getWrapperField(this, certificate_pb.Certificate, 4));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.pb.Certificate|undefined} value */
|
||||
proto.pb.Claim.prototype.setCertificate = function(value) {
|
||||
/** @param {?proto.legacy_pb.Certificate|undefined} value */
|
||||
proto.legacy_pb.Claim.prototype.setCertificate = function(value) {
|
||||
jspb.Message.setWrapperField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Claim.prototype.clearCertificate = function() {
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Claim.prototype.clearCertificate = function() {
|
||||
this.setCertificate(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Claim.prototype.hasCertificate = function() {
|
||||
proto.legacy_pb.Claim.prototype.hasCertificate = function() {
|
||||
return jspb.Message.getField(this, 4) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional Signature publisherSignature = 5;
|
||||
* @return {?proto.pb.Signature}
|
||||
* @return {?proto.legacy_pb.Signature}
|
||||
*/
|
||||
proto.pb.Claim.prototype.getPublishersignature = function() {
|
||||
return /** @type{?proto.pb.Signature} */ (
|
||||
proto.legacy_pb.Claim.prototype.getPublishersignature = function() {
|
||||
return /** @type{?proto.legacy_pb.Signature} */ (
|
||||
jspb.Message.getWrapperField(this, signature_pb.Signature, 5));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.pb.Signature|undefined} value */
|
||||
proto.pb.Claim.prototype.setPublishersignature = function(value) {
|
||||
/** @param {?proto.legacy_pb.Signature|undefined} value */
|
||||
proto.legacy_pb.Claim.prototype.setPublishersignature = function(value) {
|
||||
jspb.Message.setWrapperField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Claim.prototype.clearPublishersignature = function() {
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Claim.prototype.clearPublishersignature = function() {
|
||||
this.setPublishersignature(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Claim.prototype.hasPublishersignature = function() {
|
||||
proto.legacy_pb.Claim.prototype.hasPublishersignature = function() {
|
||||
return jspb.Message.getField(this, 5) != null;
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.pb);
|
||||
goog.object.extend(exports, proto.legacy_pb);
|
|
@ -12,10 +12,10 @@ var goog = jspb;
|
|||
var global = Function('return this')();
|
||||
|
||||
var fee_pb = require('./fee_pb.js');
|
||||
goog.exportSymbol('proto.pb.Metadata', null, global);
|
||||
goog.exportSymbol('proto.pb.Metadata.Language', null, global);
|
||||
goog.exportSymbol('proto.pb.Metadata.Version', null, global);
|
||||
|
||||
goog.object.extend(proto, fee_pb);
|
||||
goog.exportSymbol('proto.legacy_pb.Metadata', null, global);
|
||||
goog.exportSymbol('proto.legacy_pb.Metadata.Language', null, global);
|
||||
goog.exportSymbol('proto.legacy_pb.Metadata.Version', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
|
@ -26,15 +26,20 @@ goog.exportSymbol('proto.pb.Metadata.Version', null, global);
|
|||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.pb.Metadata = function(opt_data) {
|
||||
proto.legacy_pb.Metadata = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.pb.Metadata, jspb.Message);
|
||||
goog.inherits(proto.legacy_pb.Metadata, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.pb.Metadata.displayName = 'proto.pb.Metadata';
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.legacy_pb.Metadata.displayName = 'proto.legacy_pb.Metadata';
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
|
@ -46,8 +51,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.pb.Metadata.toObject(opt_includeInstance, this);
|
||||
proto.legacy_pb.Metadata.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.legacy_pb.Metadata.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
|
@ -56,12 +61,12 @@ proto.pb.Metadata.prototype.toObject = function(opt_includeInstance) {
|
|||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.pb.Metadata} msg The msg instance to transform.
|
||||
* @param {!proto.legacy_pb.Metadata} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Metadata.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
proto.legacy_pb.Metadata.toObject = function(includeInstance, msg) {
|
||||
var obj = {
|
||||
version: jspb.Message.getField(msg, 1),
|
||||
language: jspb.Message.getField(msg, 2),
|
||||
title: jspb.Message.getField(msg, 3),
|
||||
|
@ -86,23 +91,23 @@ proto.pb.Metadata.toObject = function(includeInstance, msg) {
|
|||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.pb.Metadata}
|
||||
* @return {!proto.legacy_pb.Metadata}
|
||||
*/
|
||||
proto.pb.Metadata.deserializeBinary = function(bytes) {
|
||||
proto.legacy_pb.Metadata.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.pb.Metadata;
|
||||
return proto.pb.Metadata.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.legacy_pb.Metadata;
|
||||
return proto.legacy_pb.Metadata.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.pb.Metadata} msg The message object to deserialize into.
|
||||
* @param {!proto.legacy_pb.Metadata} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.pb.Metadata}
|
||||
* @return {!proto.legacy_pb.Metadata}
|
||||
*/
|
||||
proto.pb.Metadata.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.legacy_pb.Metadata.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
|
@ -110,11 +115,11 @@ proto.pb.Metadata.deserializeBinaryFromReader = function(msg, reader) {
|
|||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {!proto.pb.Metadata.Version} */ (reader.readEnum());
|
||||
var value = /** @type {!proto.legacy_pb.Metadata.Version} */ (reader.readEnum());
|
||||
msg.setVersion(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!proto.pb.Metadata.Language} */ (reader.readEnum());
|
||||
var value = /** @type {!proto.legacy_pb.Metadata.Language} */ (reader.readEnum());
|
||||
msg.setLanguage(value);
|
||||
break;
|
||||
case 3:
|
||||
|
@ -167,9 +172,9 @@ proto.pb.Metadata.deserializeBinaryFromReader = function(msg, reader) {
|
|||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.serializeBinary = function() {
|
||||
proto.legacy_pb.Metadata.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.pb.Metadata.serializeBinaryToWriter(this, writer);
|
||||
proto.legacy_pb.Metadata.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
@ -177,20 +182,20 @@ proto.pb.Metadata.prototype.serializeBinary = function() {
|
|||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.pb.Metadata} message
|
||||
* @param {!proto.legacy_pb.Metadata} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Metadata.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.legacy_pb.Metadata.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = /** @type {!proto.pb.Metadata.Version} */ (jspb.Message.getField(message, 1));
|
||||
f = /** @type {!proto.legacy_pb.Metadata.Version} */ (jspb.Message.getField(message, 1));
|
||||
if (f != null) {
|
||||
writer.writeEnum(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = /** @type {!proto.pb.Metadata.Language} */ (jspb.Message.getField(message, 2));
|
||||
f = /** @type {!proto.legacy_pb.Metadata.Language} */ (jspb.Message.getField(message, 2));
|
||||
if (f != null) {
|
||||
writer.writeEnum(
|
||||
2,
|
||||
|
@ -267,7 +272,7 @@ proto.pb.Metadata.serializeBinaryToWriter = function(message, writer) {
|
|||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.pb.Metadata.Version = {
|
||||
proto.legacy_pb.Metadata.Version = {
|
||||
UNKNOWN_VERSION: 0,
|
||||
_0_0_1: 1,
|
||||
_0_0_2: 2,
|
||||
|
@ -278,7 +283,7 @@ proto.pb.Metadata.Version = {
|
|||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.pb.Metadata.Language = {
|
||||
proto.legacy_pb.Metadata.Language = {
|
||||
UNKNOWN_LANGUAGE: 0,
|
||||
EN: 1,
|
||||
AA: 2,
|
||||
|
@ -468,58 +473,64 @@ proto.pb.Metadata.Language = {
|
|||
|
||||
/**
|
||||
* required Version version = 1;
|
||||
* @return {!proto.pb.Metadata.Version}
|
||||
* @return {!proto.legacy_pb.Metadata.Version}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.getVersion = function() {
|
||||
return /** @type {!proto.pb.Metadata.Version} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
proto.legacy_pb.Metadata.prototype.getVersion = function() {
|
||||
return /** @type {!proto.legacy_pb.Metadata.Version} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.pb.Metadata.Version} value */
|
||||
proto.pb.Metadata.prototype.setVersion = function(value) {
|
||||
/** @param {!proto.legacy_pb.Metadata.Version} value */
|
||||
proto.legacy_pb.Metadata.prototype.setVersion = function(value) {
|
||||
jspb.Message.setField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Metadata.prototype.clearVersion = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Metadata.prototype.clearVersion = function() {
|
||||
jspb.Message.setField(this, 1, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasVersion = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasVersion = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* required Language language = 2;
|
||||
* @return {!proto.pb.Metadata.Language}
|
||||
* @return {!proto.legacy_pb.Metadata.Language}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.getLanguage = function() {
|
||||
return /** @type {!proto.pb.Metadata.Language} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
proto.legacy_pb.Metadata.prototype.getLanguage = function() {
|
||||
return /** @type {!proto.legacy_pb.Metadata.Language} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.pb.Metadata.Language} value */
|
||||
proto.pb.Metadata.prototype.setLanguage = function(value) {
|
||||
/** @param {!proto.legacy_pb.Metadata.Language} value */
|
||||
proto.legacy_pb.Metadata.prototype.setLanguage = function(value) {
|
||||
jspb.Message.setField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Metadata.prototype.clearLanguage = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Metadata.prototype.clearLanguage = function() {
|
||||
jspb.Message.setField(this, 2, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasLanguage = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasLanguage = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
@ -528,27 +539,30 @@ proto.pb.Metadata.prototype.hasLanguage = function() {
|
|||
* required string title = 3;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.getTitle = function() {
|
||||
proto.legacy_pb.Metadata.prototype.getTitle = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.pb.Metadata.prototype.setTitle = function(value) {
|
||||
proto.legacy_pb.Metadata.prototype.setTitle = function(value) {
|
||||
jspb.Message.setField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Metadata.prototype.clearTitle = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Metadata.prototype.clearTitle = function() {
|
||||
jspb.Message.setField(this, 3, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasTitle = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasTitle = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
|
@ -557,27 +571,30 @@ proto.pb.Metadata.prototype.hasTitle = function() {
|
|||
* required string description = 4;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.getDescription = function() {
|
||||
proto.legacy_pb.Metadata.prototype.getDescription = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.pb.Metadata.prototype.setDescription = function(value) {
|
||||
proto.legacy_pb.Metadata.prototype.setDescription = function(value) {
|
||||
jspb.Message.setField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Metadata.prototype.clearDescription = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Metadata.prototype.clearDescription = function() {
|
||||
jspb.Message.setField(this, 4, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasDescription = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasDescription = function() {
|
||||
return jspb.Message.getField(this, 4) != null;
|
||||
};
|
||||
|
||||
|
@ -586,27 +603,30 @@ proto.pb.Metadata.prototype.hasDescription = function() {
|
|||
* required string author = 5;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.getAuthor = function() {
|
||||
proto.legacy_pb.Metadata.prototype.getAuthor = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.pb.Metadata.prototype.setAuthor = function(value) {
|
||||
proto.legacy_pb.Metadata.prototype.setAuthor = function(value) {
|
||||
jspb.Message.setField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Metadata.prototype.clearAuthor = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Metadata.prototype.clearAuthor = function() {
|
||||
jspb.Message.setField(this, 5, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasAuthor = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasAuthor = function() {
|
||||
return jspb.Message.getField(this, 5) != null;
|
||||
};
|
||||
|
||||
|
@ -615,27 +635,30 @@ proto.pb.Metadata.prototype.hasAuthor = function() {
|
|||
* required string license = 6;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.getLicense = function() {
|
||||
proto.legacy_pb.Metadata.prototype.getLicense = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.pb.Metadata.prototype.setLicense = function(value) {
|
||||
proto.legacy_pb.Metadata.prototype.setLicense = function(value) {
|
||||
jspb.Message.setField(this, 6, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Metadata.prototype.clearLicense = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Metadata.prototype.clearLicense = function() {
|
||||
jspb.Message.setField(this, 6, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasLicense = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasLicense = function() {
|
||||
return jspb.Message.getField(this, 6) != null;
|
||||
};
|
||||
|
||||
|
@ -646,57 +669,63 @@ proto.pb.Metadata.prototype.hasLicense = function() {
|
|||
* You should avoid comparisons like {@code val === true/false} in those cases.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.getNsfw = function() {
|
||||
proto.legacy_pb.Metadata.prototype.getNsfw = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 7, false));
|
||||
};
|
||||
|
||||
|
||||
/** @param {boolean} value */
|
||||
proto.pb.Metadata.prototype.setNsfw = function(value) {
|
||||
proto.legacy_pb.Metadata.prototype.setNsfw = function(value) {
|
||||
jspb.Message.setField(this, 7, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Metadata.prototype.clearNsfw = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Metadata.prototype.clearNsfw = function() {
|
||||
jspb.Message.setField(this, 7, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasNsfw = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasNsfw = function() {
|
||||
return jspb.Message.getField(this, 7) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional Fee fee = 8;
|
||||
* @return {?proto.pb.Fee}
|
||||
* @return {?proto.legacy_pb.Fee}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.getFee = function() {
|
||||
return /** @type{?proto.pb.Fee} */ (
|
||||
proto.legacy_pb.Metadata.prototype.getFee = function() {
|
||||
return /** @type{?proto.legacy_pb.Fee} */ (
|
||||
jspb.Message.getWrapperField(this, fee_pb.Fee, 8));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.pb.Fee|undefined} value */
|
||||
proto.pb.Metadata.prototype.setFee = function(value) {
|
||||
/** @param {?proto.legacy_pb.Fee|undefined} value */
|
||||
proto.legacy_pb.Metadata.prototype.setFee = function(value) {
|
||||
jspb.Message.setWrapperField(this, 8, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Metadata.prototype.clearFee = function() {
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Metadata.prototype.clearFee = function() {
|
||||
this.setFee(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasFee = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasFee = function() {
|
||||
return jspb.Message.getField(this, 8) != null;
|
||||
};
|
||||
|
||||
|
@ -705,27 +734,30 @@ proto.pb.Metadata.prototype.hasFee = function() {
|
|||
* optional string thumbnail = 9;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.getThumbnail = function() {
|
||||
proto.legacy_pb.Metadata.prototype.getThumbnail = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.pb.Metadata.prototype.setThumbnail = function(value) {
|
||||
proto.legacy_pb.Metadata.prototype.setThumbnail = function(value) {
|
||||
jspb.Message.setField(this, 9, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Metadata.prototype.clearThumbnail = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Metadata.prototype.clearThumbnail = function() {
|
||||
jspb.Message.setField(this, 9, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasThumbnail = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasThumbnail = function() {
|
||||
return jspb.Message.getField(this, 9) != null;
|
||||
};
|
||||
|
||||
|
@ -734,27 +766,30 @@ proto.pb.Metadata.prototype.hasThumbnail = function() {
|
|||
* optional string preview = 10;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.getPreview = function() {
|
||||
proto.legacy_pb.Metadata.prototype.getPreview = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.pb.Metadata.prototype.setPreview = function(value) {
|
||||
proto.legacy_pb.Metadata.prototype.setPreview = function(value) {
|
||||
jspb.Message.setField(this, 10, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Metadata.prototype.clearPreview = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Metadata.prototype.clearPreview = function() {
|
||||
jspb.Message.setField(this, 10, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasPreview = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasPreview = function() {
|
||||
return jspb.Message.getField(this, 10) != null;
|
||||
};
|
||||
|
||||
|
@ -763,29 +798,32 @@ proto.pb.Metadata.prototype.hasPreview = function() {
|
|||
* optional string licenseUrl = 11;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.getLicenseurl = function() {
|
||||
proto.legacy_pb.Metadata.prototype.getLicenseurl = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.pb.Metadata.prototype.setLicenseurl = function(value) {
|
||||
proto.legacy_pb.Metadata.prototype.setLicenseurl = function(value) {
|
||||
jspb.Message.setField(this, 11, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Metadata.prototype.clearLicenseurl = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Metadata.prototype.clearLicenseurl = function() {
|
||||
jspb.Message.setField(this, 11, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasLicenseurl = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasLicenseurl = function() {
|
||||
return jspb.Message.getField(this, 11) != null;
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.pb);
|
||||
goog.object.extend(exports, proto.legacy_pb);
|
||||
|
|
|
@ -12,9 +12,9 @@ var goog = jspb;
|
|||
var global = Function('return this')();
|
||||
|
||||
var certificate_pb = require('./certificate_pb.js');
|
||||
goog.exportSymbol('proto.pb.Signature', null, global);
|
||||
goog.exportSymbol('proto.pb.Signature.Version', null, global);
|
||||
|
||||
goog.object.extend(proto, certificate_pb);
|
||||
goog.exportSymbol('proto.legacy_pb.Signature', null, global);
|
||||
goog.exportSymbol('proto.legacy_pb.Signature.Version', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
|
@ -25,15 +25,20 @@ goog.exportSymbol('proto.pb.Signature.Version', null, global);
|
|||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.pb.Signature = function(opt_data) {
|
||||
proto.legacy_pb.Signature = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.pb.Signature, jspb.Message);
|
||||
goog.inherits(proto.legacy_pb.Signature, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.pb.Signature.displayName = 'proto.pb.Signature';
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.legacy_pb.Signature.displayName = 'proto.legacy_pb.Signature';
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
|
@ -45,8 +50,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.pb.Signature.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.pb.Signature.toObject(opt_includeInstance, this);
|
||||
proto.legacy_pb.Signature.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.legacy_pb.Signature.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
|
@ -55,12 +60,12 @@ proto.pb.Signature.prototype.toObject = function(opt_includeInstance) {
|
|||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.pb.Signature} msg The msg instance to transform.
|
||||
* @param {!proto.legacy_pb.Signature} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Signature.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
proto.legacy_pb.Signature.toObject = function(includeInstance, msg) {
|
||||
var obj = {
|
||||
version: jspb.Message.getField(msg, 1),
|
||||
signaturetype: jspb.Message.getField(msg, 2),
|
||||
signature: msg.getSignature_asB64(),
|
||||
|
@ -78,23 +83,23 @@ proto.pb.Signature.toObject = function(includeInstance, msg) {
|
|||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.pb.Signature}
|
||||
* @return {!proto.legacy_pb.Signature}
|
||||
*/
|
||||
proto.pb.Signature.deserializeBinary = function(bytes) {
|
||||
proto.legacy_pb.Signature.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.pb.Signature;
|
||||
return proto.pb.Signature.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.legacy_pb.Signature;
|
||||
return proto.legacy_pb.Signature.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.pb.Signature} msg The message object to deserialize into.
|
||||
* @param {!proto.legacy_pb.Signature} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.pb.Signature}
|
||||
* @return {!proto.legacy_pb.Signature}
|
||||
*/
|
||||
proto.pb.Signature.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.legacy_pb.Signature.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
|
@ -102,11 +107,11 @@ proto.pb.Signature.deserializeBinaryFromReader = function(msg, reader) {
|
|||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {!proto.pb.Signature.Version} */ (reader.readEnum());
|
||||
var value = /** @type {!proto.legacy_pb.Signature.Version} */ (reader.readEnum());
|
||||
msg.setVersion(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!proto.pb.KeyType} */ (reader.readEnum());
|
||||
var value = /** @type {!proto.legacy_pb.KeyType} */ (reader.readEnum());
|
||||
msg.setSignaturetype(value);
|
||||
break;
|
||||
case 3:
|
||||
|
@ -130,9 +135,9 @@ proto.pb.Signature.deserializeBinaryFromReader = function(msg, reader) {
|
|||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.pb.Signature.prototype.serializeBinary = function() {
|
||||
proto.legacy_pb.Signature.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.pb.Signature.serializeBinaryToWriter(this, writer);
|
||||
proto.legacy_pb.Signature.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
@ -140,20 +145,20 @@ proto.pb.Signature.prototype.serializeBinary = function() {
|
|||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.pb.Signature} message
|
||||
* @param {!proto.legacy_pb.Signature} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Signature.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.legacy_pb.Signature.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = /** @type {!proto.pb.Signature.Version} */ (jspb.Message.getField(message, 1));
|
||||
f = /** @type {!proto.legacy_pb.Signature.Version} */ (jspb.Message.getField(message, 1));
|
||||
if (f != null) {
|
||||
writer.writeEnum(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = /** @type {!proto.pb.KeyType} */ (jspb.Message.getField(message, 2));
|
||||
f = /** @type {!proto.legacy_pb.KeyType} */ (jspb.Message.getField(message, 2));
|
||||
if (f != null) {
|
||||
writer.writeEnum(
|
||||
2,
|
||||
|
@ -180,65 +185,71 @@ proto.pb.Signature.serializeBinaryToWriter = function(message, writer) {
|
|||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.pb.Signature.Version = {
|
||||
proto.legacy_pb.Signature.Version = {
|
||||
UNKNOWN_VERSION: 0,
|
||||
_0_0_1: 1
|
||||
};
|
||||
|
||||
/**
|
||||
* required Version version = 1;
|
||||
* @return {!proto.pb.Signature.Version}
|
||||
* @return {!proto.legacy_pb.Signature.Version}
|
||||
*/
|
||||
proto.pb.Signature.prototype.getVersion = function() {
|
||||
return /** @type {!proto.pb.Signature.Version} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
proto.legacy_pb.Signature.prototype.getVersion = function() {
|
||||
return /** @type {!proto.legacy_pb.Signature.Version} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.pb.Signature.Version} value */
|
||||
proto.pb.Signature.prototype.setVersion = function(value) {
|
||||
/** @param {!proto.legacy_pb.Signature.Version} value */
|
||||
proto.legacy_pb.Signature.prototype.setVersion = function(value) {
|
||||
jspb.Message.setField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Signature.prototype.clearVersion = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Signature.prototype.clearVersion = function() {
|
||||
jspb.Message.setField(this, 1, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Signature.prototype.hasVersion = function() {
|
||||
proto.legacy_pb.Signature.prototype.hasVersion = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* required KeyType signatureType = 2;
|
||||
* @return {!proto.pb.KeyType}
|
||||
* @return {!proto.legacy_pb.KeyType}
|
||||
*/
|
||||
proto.pb.Signature.prototype.getSignaturetype = function() {
|
||||
return /** @type {!proto.pb.KeyType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
proto.legacy_pb.Signature.prototype.getSignaturetype = function() {
|
||||
return /** @type {!proto.legacy_pb.KeyType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.pb.KeyType} value */
|
||||
proto.pb.Signature.prototype.setSignaturetype = function(value) {
|
||||
/** @param {!proto.legacy_pb.KeyType} value */
|
||||
proto.legacy_pb.Signature.prototype.setSignaturetype = function(value) {
|
||||
jspb.Message.setField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Signature.prototype.clearSignaturetype = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Signature.prototype.clearSignaturetype = function() {
|
||||
jspb.Message.setField(this, 2, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Signature.prototype.hasSignaturetype = function() {
|
||||
proto.legacy_pb.Signature.prototype.hasSignaturetype = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
@ -247,7 +258,7 @@ proto.pb.Signature.prototype.hasSignaturetype = function() {
|
|||
* required bytes signature = 3;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.pb.Signature.prototype.getSignature = function() {
|
||||
proto.legacy_pb.Signature.prototype.getSignature = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||
};
|
||||
|
||||
|
@ -257,7 +268,7 @@ proto.pb.Signature.prototype.getSignature = function() {
|
|||
* This is a type-conversion wrapper around `getSignature()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.pb.Signature.prototype.getSignature_asB64 = function() {
|
||||
proto.legacy_pb.Signature.prototype.getSignature_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getSignature()));
|
||||
};
|
||||
|
@ -270,28 +281,31 @@ proto.pb.Signature.prototype.getSignature_asB64 = function() {
|
|||
* This is a type-conversion wrapper around `getSignature()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.pb.Signature.prototype.getSignature_asU8 = function() {
|
||||
proto.legacy_pb.Signature.prototype.getSignature_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getSignature()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.pb.Signature.prototype.setSignature = function(value) {
|
||||
proto.legacy_pb.Signature.prototype.setSignature = function(value) {
|
||||
jspb.Message.setField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Signature.prototype.clearSignature = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Signature.prototype.clearSignature = function() {
|
||||
jspb.Message.setField(this, 3, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Signature.prototype.hasSignature = function() {
|
||||
proto.legacy_pb.Signature.prototype.hasSignature = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
|
@ -300,7 +314,7 @@ proto.pb.Signature.prototype.hasSignature = function() {
|
|||
* required bytes certificateId = 4;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.pb.Signature.prototype.getCertificateid = function() {
|
||||
proto.legacy_pb.Signature.prototype.getCertificateid = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
||||
};
|
||||
|
||||
|
@ -310,7 +324,7 @@ proto.pb.Signature.prototype.getCertificateid = function() {
|
|||
* This is a type-conversion wrapper around `getCertificateid()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.pb.Signature.prototype.getCertificateid_asB64 = function() {
|
||||
proto.legacy_pb.Signature.prototype.getCertificateid_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getCertificateid()));
|
||||
};
|
||||
|
@ -323,30 +337,33 @@ proto.pb.Signature.prototype.getCertificateid_asB64 = function() {
|
|||
* This is a type-conversion wrapper around `getCertificateid()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.pb.Signature.prototype.getCertificateid_asU8 = function() {
|
||||
proto.legacy_pb.Signature.prototype.getCertificateid_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getCertificateid()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.pb.Signature.prototype.setCertificateid = function(value) {
|
||||
proto.legacy_pb.Signature.prototype.setCertificateid = function(value) {
|
||||
jspb.Message.setField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Signature.prototype.clearCertificateid = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Signature.prototype.clearCertificateid = function() {
|
||||
jspb.Message.setField(this, 4, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Signature.prototype.hasCertificateid = function() {
|
||||
proto.legacy_pb.Signature.prototype.hasCertificateid = function() {
|
||||
return jspb.Message.getField(this, 4) != null;
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.pb);
|
||||
goog.object.extend(exports, proto.legacy_pb);
|
||||
|
|
|
@ -11,10 +11,9 @@ var jspb = require('google-protobuf');
|
|||
var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
goog.exportSymbol('proto.pb.Source', null, global);
|
||||
goog.exportSymbol('proto.pb.Source.SourceTypes', null, global);
|
||||
goog.exportSymbol('proto.pb.Source.Version', null, global);
|
||||
|
||||
goog.exportSymbol('proto.legacy_pb.Source', null, global);
|
||||
goog.exportSymbol('proto.legacy_pb.Source.SourceTypes', null, global);
|
||||
goog.exportSymbol('proto.legacy_pb.Source.Version', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
|
@ -25,15 +24,20 @@ goog.exportSymbol('proto.pb.Source.Version', null, global);
|
|||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.pb.Source = function(opt_data) {
|
||||
proto.legacy_pb.Source = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.pb.Source, jspb.Message);
|
||||
goog.inherits(proto.legacy_pb.Source, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.pb.Source.displayName = 'proto.pb.Source';
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.legacy_pb.Source.displayName = 'proto.legacy_pb.Source';
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
|
@ -45,8 +49,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.pb.Source.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.pb.Source.toObject(opt_includeInstance, this);
|
||||
proto.legacy_pb.Source.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.legacy_pb.Source.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
|
@ -55,12 +59,12 @@ proto.pb.Source.prototype.toObject = function(opt_includeInstance) {
|
|||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.pb.Source} msg The msg instance to transform.
|
||||
* @param {!proto.legacy_pb.Source} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Source.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
proto.legacy_pb.Source.toObject = function(includeInstance, msg) {
|
||||
var obj = {
|
||||
version: jspb.Message.getField(msg, 1),
|
||||
sourcetype: jspb.Message.getField(msg, 2),
|
||||
source: msg.getSource_asB64(),
|
||||
|
@ -78,23 +82,23 @@ proto.pb.Source.toObject = function(includeInstance, msg) {
|
|||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.pb.Source}
|
||||
* @return {!proto.legacy_pb.Source}
|
||||
*/
|
||||
proto.pb.Source.deserializeBinary = function(bytes) {
|
||||
proto.legacy_pb.Source.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.pb.Source;
|
||||
return proto.pb.Source.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.legacy_pb.Source;
|
||||
return proto.legacy_pb.Source.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.pb.Source} msg The message object to deserialize into.
|
||||
* @param {!proto.legacy_pb.Source} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.pb.Source}
|
||||
* @return {!proto.legacy_pb.Source}
|
||||
*/
|
||||
proto.pb.Source.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.legacy_pb.Source.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
|
@ -102,11 +106,11 @@ proto.pb.Source.deserializeBinaryFromReader = function(msg, reader) {
|
|||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {!proto.pb.Source.Version} */ (reader.readEnum());
|
||||
var value = /** @type {!proto.legacy_pb.Source.Version} */ (reader.readEnum());
|
||||
msg.setVersion(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {!proto.pb.Source.SourceTypes} */ (reader.readEnum());
|
||||
var value = /** @type {!proto.legacy_pb.Source.SourceTypes} */ (reader.readEnum());
|
||||
msg.setSourcetype(value);
|
||||
break;
|
||||
case 3:
|
||||
|
@ -130,9 +134,9 @@ proto.pb.Source.deserializeBinaryFromReader = function(msg, reader) {
|
|||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.pb.Source.prototype.serializeBinary = function() {
|
||||
proto.legacy_pb.Source.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.pb.Source.serializeBinaryToWriter(this, writer);
|
||||
proto.legacy_pb.Source.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
@ -140,20 +144,20 @@ proto.pb.Source.prototype.serializeBinary = function() {
|
|||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.pb.Source} message
|
||||
* @param {!proto.legacy_pb.Source} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Source.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.legacy_pb.Source.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = /** @type {!proto.pb.Source.Version} */ (jspb.Message.getField(message, 1));
|
||||
f = /** @type {!proto.legacy_pb.Source.Version} */ (jspb.Message.getField(message, 1));
|
||||
if (f != null) {
|
||||
writer.writeEnum(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = /** @type {!proto.pb.Source.SourceTypes} */ (jspb.Message.getField(message, 2));
|
||||
f = /** @type {!proto.legacy_pb.Source.SourceTypes} */ (jspb.Message.getField(message, 2));
|
||||
if (f != null) {
|
||||
writer.writeEnum(
|
||||
2,
|
||||
|
@ -180,7 +184,7 @@ proto.pb.Source.serializeBinaryToWriter = function(message, writer) {
|
|||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.pb.Source.Version = {
|
||||
proto.legacy_pb.Source.Version = {
|
||||
UNKNOWN_VERSION: 0,
|
||||
_0_0_1: 1
|
||||
};
|
||||
|
@ -188,65 +192,71 @@ proto.pb.Source.Version = {
|
|||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.pb.Source.SourceTypes = {
|
||||
proto.legacy_pb.Source.SourceTypes = {
|
||||
UNKNOWN_SOURCE_TYPE: 0,
|
||||
LBRY_SD_HASH: 1
|
||||
};
|
||||
|
||||
/**
|
||||
* required Version version = 1;
|
||||
* @return {!proto.pb.Source.Version}
|
||||
* @return {!proto.legacy_pb.Source.Version}
|
||||
*/
|
||||
proto.pb.Source.prototype.getVersion = function() {
|
||||
return /** @type {!proto.pb.Source.Version} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
proto.legacy_pb.Source.prototype.getVersion = function() {
|
||||
return /** @type {!proto.legacy_pb.Source.Version} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.pb.Source.Version} value */
|
||||
proto.pb.Source.prototype.setVersion = function(value) {
|
||||
/** @param {!proto.legacy_pb.Source.Version} value */
|
||||
proto.legacy_pb.Source.prototype.setVersion = function(value) {
|
||||
jspb.Message.setField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Source.prototype.clearVersion = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Source.prototype.clearVersion = function() {
|
||||
jspb.Message.setField(this, 1, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Source.prototype.hasVersion = function() {
|
||||
proto.legacy_pb.Source.prototype.hasVersion = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* required SourceTypes sourceType = 2;
|
||||
* @return {!proto.pb.Source.SourceTypes}
|
||||
* @return {!proto.legacy_pb.Source.SourceTypes}
|
||||
*/
|
||||
proto.pb.Source.prototype.getSourcetype = function() {
|
||||
return /** @type {!proto.pb.Source.SourceTypes} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
proto.legacy_pb.Source.prototype.getSourcetype = function() {
|
||||
return /** @type {!proto.legacy_pb.Source.SourceTypes} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.pb.Source.SourceTypes} value */
|
||||
proto.pb.Source.prototype.setSourcetype = function(value) {
|
||||
/** @param {!proto.legacy_pb.Source.SourceTypes} value */
|
||||
proto.legacy_pb.Source.prototype.setSourcetype = function(value) {
|
||||
jspb.Message.setField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Source.prototype.clearSourcetype = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Source.prototype.clearSourcetype = function() {
|
||||
jspb.Message.setField(this, 2, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Source.prototype.hasSourcetype = function() {
|
||||
proto.legacy_pb.Source.prototype.hasSourcetype = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
@ -255,7 +265,7 @@ proto.pb.Source.prototype.hasSourcetype = function() {
|
|||
* required bytes source = 3;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.pb.Source.prototype.getSource = function() {
|
||||
proto.legacy_pb.Source.prototype.getSource = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||
};
|
||||
|
||||
|
@ -265,7 +275,7 @@ proto.pb.Source.prototype.getSource = function() {
|
|||
* This is a type-conversion wrapper around `getSource()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.pb.Source.prototype.getSource_asB64 = function() {
|
||||
proto.legacy_pb.Source.prototype.getSource_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getSource()));
|
||||
};
|
||||
|
@ -278,28 +288,31 @@ proto.pb.Source.prototype.getSource_asB64 = function() {
|
|||
* This is a type-conversion wrapper around `getSource()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.pb.Source.prototype.getSource_asU8 = function() {
|
||||
proto.legacy_pb.Source.prototype.getSource_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getSource()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.pb.Source.prototype.setSource = function(value) {
|
||||
proto.legacy_pb.Source.prototype.setSource = function(value) {
|
||||
jspb.Message.setField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Source.prototype.clearSource = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Source.prototype.clearSource = function() {
|
||||
jspb.Message.setField(this, 3, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Source.prototype.hasSource = function() {
|
||||
proto.legacy_pb.Source.prototype.hasSource = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
|
@ -308,29 +321,32 @@ proto.pb.Source.prototype.hasSource = function() {
|
|||
* required string contentType = 4;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.pb.Source.prototype.getContenttype = function() {
|
||||
proto.legacy_pb.Source.prototype.getContenttype = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.pb.Source.prototype.setContenttype = function(value) {
|
||||
proto.legacy_pb.Source.prototype.setContenttype = function(value) {
|
||||
jspb.Message.setField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Source.prototype.clearContenttype = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Source.prototype.clearContenttype = function() {
|
||||
jspb.Message.setField(this, 4, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Source.prototype.hasContenttype = function() {
|
||||
proto.legacy_pb.Source.prototype.hasContenttype = function() {
|
||||
return jspb.Message.getField(this, 4) != null;
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.pb);
|
||||
goog.object.extend(exports, proto.legacy_pb);
|
||||
|
|
|
@ -12,10 +12,11 @@ var goog = jspb;
|
|||
var global = Function('return this')();
|
||||
|
||||
var metadata_pb = require('./metadata_pb.js');
|
||||
goog.object.extend(proto, metadata_pb);
|
||||
var source_pb = require('./source_pb.js');
|
||||
goog.exportSymbol('proto.pb.Stream', null, global);
|
||||
goog.exportSymbol('proto.pb.Stream.Version', null, global);
|
||||
|
||||
goog.object.extend(proto, source_pb);
|
||||
goog.exportSymbol('proto.legacy_pb.Stream', null, global);
|
||||
goog.exportSymbol('proto.legacy_pb.Stream.Version', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
|
@ -26,15 +27,20 @@ goog.exportSymbol('proto.pb.Stream.Version', null, global);
|
|||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.pb.Stream = function(opt_data) {
|
||||
proto.legacy_pb.Stream = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.pb.Stream, jspb.Message);
|
||||
goog.inherits(proto.legacy_pb.Stream, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.pb.Stream.displayName = 'proto.pb.Stream';
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.legacy_pb.Stream.displayName = 'proto.legacy_pb.Stream';
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto suitable for use in Soy templates.
|
||||
|
@ -46,8 +52,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.pb.Stream.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.pb.Stream.toObject(opt_includeInstance, this);
|
||||
proto.legacy_pb.Stream.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.legacy_pb.Stream.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
|
@ -56,12 +62,12 @@ proto.pb.Stream.prototype.toObject = function(opt_includeInstance) {
|
|||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.pb.Stream} msg The msg instance to transform.
|
||||
* @param {!proto.legacy_pb.Stream} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Stream.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
proto.legacy_pb.Stream.toObject = function(includeInstance, msg) {
|
||||
var obj = {
|
||||
version: jspb.Message.getField(msg, 1),
|
||||
metadata: (f = msg.getMetadata()) && metadata_pb.Metadata.toObject(includeInstance, f),
|
||||
source: (f = msg.getSource()) && source_pb.Source.toObject(includeInstance, f)
|
||||
|
@ -78,23 +84,23 @@ proto.pb.Stream.toObject = function(includeInstance, msg) {
|
|||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.pb.Stream}
|
||||
* @return {!proto.legacy_pb.Stream}
|
||||
*/
|
||||
proto.pb.Stream.deserializeBinary = function(bytes) {
|
||||
proto.legacy_pb.Stream.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.pb.Stream;
|
||||
return proto.pb.Stream.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.legacy_pb.Stream;
|
||||
return proto.legacy_pb.Stream.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.pb.Stream} msg The message object to deserialize into.
|
||||
* @param {!proto.legacy_pb.Stream} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.pb.Stream}
|
||||
* @return {!proto.legacy_pb.Stream}
|
||||
*/
|
||||
proto.pb.Stream.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.legacy_pb.Stream.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
|
@ -102,7 +108,7 @@ proto.pb.Stream.deserializeBinaryFromReader = function(msg, reader) {
|
|||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {!proto.pb.Stream.Version} */ (reader.readEnum());
|
||||
var value = /** @type {!proto.legacy_pb.Stream.Version} */ (reader.readEnum());
|
||||
msg.setVersion(value);
|
||||
break;
|
||||
case 2:
|
||||
|
@ -128,9 +134,9 @@ proto.pb.Stream.deserializeBinaryFromReader = function(msg, reader) {
|
|||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.pb.Stream.prototype.serializeBinary = function() {
|
||||
proto.legacy_pb.Stream.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.pb.Stream.serializeBinaryToWriter(this, writer);
|
||||
proto.legacy_pb.Stream.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
@ -138,13 +144,13 @@ proto.pb.Stream.prototype.serializeBinary = function() {
|
|||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.pb.Stream} message
|
||||
* @param {!proto.legacy_pb.Stream} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.pb.Stream.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.legacy_pb.Stream.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = /** @type {!proto.pb.Stream.Version} */ (jspb.Message.getField(message, 1));
|
||||
f = /** @type {!proto.legacy_pb.Stream.Version} */ (jspb.Message.getField(message, 1));
|
||||
if (f != null) {
|
||||
writer.writeEnum(
|
||||
1,
|
||||
|
@ -173,98 +179,107 @@ proto.pb.Stream.serializeBinaryToWriter = function(message, writer) {
|
|||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.pb.Stream.Version = {
|
||||
proto.legacy_pb.Stream.Version = {
|
||||
UNKNOWN_VERSION: 0,
|
||||
_0_0_1: 1
|
||||
};
|
||||
|
||||
/**
|
||||
* required Version version = 1;
|
||||
* @return {!proto.pb.Stream.Version}
|
||||
* @return {!proto.legacy_pb.Stream.Version}
|
||||
*/
|
||||
proto.pb.Stream.prototype.getVersion = function() {
|
||||
return /** @type {!proto.pb.Stream.Version} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
proto.legacy_pb.Stream.prototype.getVersion = function() {
|
||||
return /** @type {!proto.legacy_pb.Stream.Version} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.pb.Stream.Version} value */
|
||||
proto.pb.Stream.prototype.setVersion = function(value) {
|
||||
/** @param {!proto.legacy_pb.Stream.Version} value */
|
||||
proto.legacy_pb.Stream.prototype.setVersion = function(value) {
|
||||
jspb.Message.setField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Stream.prototype.clearVersion = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Stream.prototype.clearVersion = function() {
|
||||
jspb.Message.setField(this, 1, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Stream.prototype.hasVersion = function() {
|
||||
proto.legacy_pb.Stream.prototype.hasVersion = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* required Metadata metadata = 2;
|
||||
* @return {!proto.pb.Metadata}
|
||||
* @return {!proto.legacy_pb.Metadata}
|
||||
*/
|
||||
proto.pb.Stream.prototype.getMetadata = function() {
|
||||
return /** @type{!proto.pb.Metadata} */ (
|
||||
proto.legacy_pb.Stream.prototype.getMetadata = function() {
|
||||
return /** @type{!proto.legacy_pb.Metadata} */ (
|
||||
jspb.Message.getWrapperField(this, metadata_pb.Metadata, 2, 1));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.pb.Metadata} value */
|
||||
proto.pb.Stream.prototype.setMetadata = function(value) {
|
||||
/** @param {!proto.legacy_pb.Metadata} value */
|
||||
proto.legacy_pb.Stream.prototype.setMetadata = function(value) {
|
||||
jspb.Message.setWrapperField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Stream.prototype.clearMetadata = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Stream.prototype.clearMetadata = function() {
|
||||
jspb.Message.setField(this, 2, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Stream.prototype.hasMetadata = function() {
|
||||
proto.legacy_pb.Stream.prototype.hasMetadata = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* required Source source = 3;
|
||||
* @return {!proto.pb.Source}
|
||||
* @return {!proto.legacy_pb.Source}
|
||||
*/
|
||||
proto.pb.Stream.prototype.getSource = function() {
|
||||
return /** @type{!proto.pb.Source} */ (
|
||||
proto.legacy_pb.Stream.prototype.getSource = function() {
|
||||
return /** @type{!proto.legacy_pb.Source} */ (
|
||||
jspb.Message.getWrapperField(this, source_pb.Source, 3, 1));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.pb.Source} value */
|
||||
proto.pb.Stream.prototype.setSource = function(value) {
|
||||
/** @param {!proto.legacy_pb.Source} value */
|
||||
proto.legacy_pb.Stream.prototype.setSource = function(value) {
|
||||
jspb.Message.setWrapperField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
proto.pb.Stream.prototype.clearSource = function() {
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
*/
|
||||
proto.legacy_pb.Stream.prototype.clearSource = function() {
|
||||
jspb.Message.setField(this, 3, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.pb.Stream.prototype.hasSource = function() {
|
||||
proto.legacy_pb.Stream.prototype.hasSource = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.pb);
|
||||
goog.object.extend(exports, proto.legacy_pb);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
syntax = "proto2";
|
||||
|
||||
package pb;
|
||||
package legacy_pb;
|
||||
|
||||
enum KeyType {
|
||||
UNKNOWN_PUBLIC_KEY_TYPE = 0;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
syntax = "proto2";
|
||||
|
||||
package pb;
|
||||
package legacy_pb;
|
||||
|
||||
message Fee {
|
||||
enum Version {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
syntax = "proto2";
|
||||
|
||||
package pb;
|
||||
package legacy_pb;
|
||||
|
||||
import "stream.proto";
|
||||
import "certificate.proto";
|
|
@ -1,6 +1,6 @@
|
|||
syntax = "proto2";
|
||||
|
||||
package pb;
|
||||
package legacy_pb;
|
||||
|
||||
import "fee.proto";
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
syntax = "proto2";
|
||||
|
||||
package pb;
|
||||
package legacy_pb;
|
||||
|
||||
import "certificate.proto";
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
syntax = "proto2";
|
||||
|
||||
package pb;
|
||||
package legacy_pb;
|
||||
|
||||
message Source {
|
||||
enum Version {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
syntax = "proto2";
|
||||
|
||||
package pb;
|
||||
package legacy_pb;
|
||||
|
||||
import "metadata.proto";
|
||||
import "source.proto";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: certificate.proto
|
||||
|
||||
|
@ -8,7 +9,6 @@ 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
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
@ -18,38 +18,39 @@ _sym_db = _symbol_database.Default()
|
|||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='certificate.proto',
|
||||
package='pb',
|
||||
package='legacy_pb',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x11\x63\x65rtificate.proto\x12\x02pb\"\x94\x01\n\x0b\x43\x65rtificate\x12(\n\x07version\x18\x01 \x02(\x0e\x32\x17.pb.Certificate.Version\x12\x1c\n\x07keyType\x18\x02 \x02(\x0e\x32\x0b.pb.KeyType\x12\x11\n\tpublicKey\x18\x04 \x02(\x0c\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01*Q\n\x07KeyType\x12\x1b\n\x17UNKNOWN_PUBLIC_KEY_TYPE\x10\x00\x12\x0c\n\x08NIST256p\x10\x01\x12\x0c\n\x08NIST384p\x10\x02\x12\r\n\tSECP256k1\x10\x03')
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\x11\x63\x65rtificate.proto\x12\tlegacy_pb\"\xa2\x01\n\x0b\x43\x65rtificate\x12/\n\x07version\x18\x01 \x02(\x0e\x32\x1e.legacy_pb.Certificate.Version\x12#\n\x07keyType\x18\x02 \x02(\x0e\x32\x12.legacy_pb.KeyType\x12\x11\n\tpublicKey\x18\x04 \x02(\x0c\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01*Q\n\x07KeyType\x12\x1b\n\x17UNKNOWN_PUBLIC_KEY_TYPE\x10\x00\x12\x0c\n\x08NIST256p\x10\x01\x12\x0c\n\x08NIST384p\x10\x02\x12\r\n\tSECP256k1\x10\x03')
|
||||
)
|
||||
|
||||
_KEYTYPE = _descriptor.EnumDescriptor(
|
||||
name='KeyType',
|
||||
full_name='pb.KeyType',
|
||||
full_name='legacy_pb.KeyType',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN_PUBLIC_KEY_TYPE', index=0, number=0,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='NIST256p', index=1, number=1,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='NIST384p', index=2, number=2,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SECP256k1', index=3, number=3,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=176,
|
||||
serialized_end=257,
|
||||
serialized_options=None,
|
||||
serialized_start=197,
|
||||
serialized_end=278,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_KEYTYPE)
|
||||
|
||||
|
@ -62,55 +63,55 @@ SECP256k1 = 3
|
|||
|
||||
_CERTIFICATE_VERSION = _descriptor.EnumDescriptor(
|
||||
name='Version',
|
||||
full_name='pb.Certificate.Version',
|
||||
full_name='legacy_pb.Certificate.Version',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN_VERSION', index=0, number=0,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='_0_0_1', index=1, number=1,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=132,
|
||||
serialized_end=174,
|
||||
serialized_options=None,
|
||||
serialized_start=153,
|
||||
serialized_end=195,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_CERTIFICATE_VERSION)
|
||||
|
||||
|
||||
_CERTIFICATE = _descriptor.Descriptor(
|
||||
name='Certificate',
|
||||
full_name='pb.Certificate',
|
||||
full_name='legacy_pb.Certificate',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='version', full_name='pb.Certificate.version', index=0,
|
||||
name='version', full_name='legacy_pb.Certificate.version', index=0,
|
||||
number=1, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='keyType', full_name='pb.Certificate.keyType', index=1,
|
||||
name='keyType', full_name='legacy_pb.Certificate.keyType', index=1,
|
||||
number=2, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='publicKey', full_name='pb.Certificate.publicKey', index=2,
|
||||
name='publicKey', full_name='legacy_pb.Certificate.publicKey', index=2,
|
||||
number=4, type=12, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
|
@ -118,14 +119,14 @@ _CERTIFICATE = _descriptor.Descriptor(
|
|||
enum_types=[
|
||||
_CERTIFICATE_VERSION,
|
||||
],
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=26,
|
||||
serialized_end=174,
|
||||
serialized_start=33,
|
||||
serialized_end=195,
|
||||
)
|
||||
|
||||
_CERTIFICATE.fields_by_name['version'].enum_type = _CERTIFICATE_VERSION
|
||||
|
@ -138,7 +139,7 @@ _sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|||
Certificate = _reflection.GeneratedProtocolMessageType('Certificate', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CERTIFICATE,
|
||||
__module__ = 'certificate_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Certificate)
|
||||
# @@protoc_insertion_point(class_scope:legacy_pb.Certificate)
|
||||
))
|
||||
_sym_db.RegisterMessage(Certificate)
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: fee.proto
|
||||
|
||||
|
@ -7,7 +8,6 @@ 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
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
@ -17,101 +17,102 @@ _sym_db = _symbol_database.Default()
|
|||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='fee.proto',
|
||||
package='pb',
|
||||
package='legacy_pb',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\tfee.proto\x12\x02pb\"\xd5\x01\n\x03\x46\x65\x65\x12 \n\x07version\x18\x01 \x02(\x0e\x32\x0f.pb.Fee.Version\x12\"\n\x08\x63urrency\x18\x02 \x02(\x0e\x32\x10.pb.Fee.Currency\x12\x0f\n\x07\x61\x64\x64ress\x18\x03 \x02(\x0c\x12\x0e\n\x06\x61mount\x18\x04 \x02(\x02\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01\";\n\x08\x43urrency\x12\x14\n\x10UNKNOWN_CURRENCY\x10\x00\x12\x07\n\x03LBC\x10\x01\x12\x07\n\x03\x42TC\x10\x02\x12\x07\n\x03USD\x10\x03')
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\tfee.proto\x12\tlegacy_pb\"\xe3\x01\n\x03\x46\x65\x65\x12\'\n\x07version\x18\x01 \x02(\x0e\x32\x16.legacy_pb.Fee.Version\x12)\n\x08\x63urrency\x18\x02 \x02(\x0e\x32\x17.legacy_pb.Fee.Currency\x12\x0f\n\x07\x61\x64\x64ress\x18\x03 \x02(\x0c\x12\x0e\n\x06\x61mount\x18\x04 \x02(\x02\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01\";\n\x08\x43urrency\x12\x14\n\x10UNKNOWN_CURRENCY\x10\x00\x12\x07\n\x03LBC\x10\x01\x12\x07\n\x03\x42TC\x10\x02\x12\x07\n\x03USD\x10\x03')
|
||||
)
|
||||
|
||||
|
||||
|
||||
_FEE_VERSION = _descriptor.EnumDescriptor(
|
||||
name='Version',
|
||||
full_name='pb.Fee.Version',
|
||||
full_name='legacy_pb.Fee.Version',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN_VERSION', index=0, number=0,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='_0_0_1', index=1, number=1,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=128,
|
||||
serialized_end=170,
|
||||
serialized_options=None,
|
||||
serialized_start=149,
|
||||
serialized_end=191,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_FEE_VERSION)
|
||||
|
||||
_FEE_CURRENCY = _descriptor.EnumDescriptor(
|
||||
name='Currency',
|
||||
full_name='pb.Fee.Currency',
|
||||
full_name='legacy_pb.Fee.Currency',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN_CURRENCY', index=0, number=0,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='LBC', index=1, number=1,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='BTC', index=2, number=2,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='USD', index=3, number=3,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=172,
|
||||
serialized_end=231,
|
||||
serialized_options=None,
|
||||
serialized_start=193,
|
||||
serialized_end=252,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_FEE_CURRENCY)
|
||||
|
||||
|
||||
_FEE = _descriptor.Descriptor(
|
||||
name='Fee',
|
||||
full_name='pb.Fee',
|
||||
full_name='legacy_pb.Fee',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='version', full_name='pb.Fee.version', index=0,
|
||||
name='version', full_name='legacy_pb.Fee.version', index=0,
|
||||
number=1, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='currency', full_name='pb.Fee.currency', index=1,
|
||||
name='currency', full_name='legacy_pb.Fee.currency', index=1,
|
||||
number=2, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='address', full_name='pb.Fee.address', index=2,
|
||||
name='address', full_name='legacy_pb.Fee.address', index=2,
|
||||
number=3, type=12, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='amount', full_name='pb.Fee.amount', index=3,
|
||||
name='amount', full_name='legacy_pb.Fee.amount', index=3,
|
||||
number=4, type=2, cpp_type=6, label=2,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
|
@ -120,14 +121,14 @@ _FEE = _descriptor.Descriptor(
|
|||
_FEE_VERSION,
|
||||
_FEE_CURRENCY,
|
||||
],
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=18,
|
||||
serialized_end=231,
|
||||
serialized_start=25,
|
||||
serialized_end=252,
|
||||
)
|
||||
|
||||
_FEE.fields_by_name['version'].enum_type = _FEE_VERSION
|
||||
|
@ -140,7 +141,7 @@ _sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|||
Fee = _reflection.GeneratedProtocolMessageType('Fee', (_message.Message,), dict(
|
||||
DESCRIPTOR = _FEE,
|
||||
__module__ = 'fee_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Fee)
|
||||
# @@protoc_insertion_point(class_scope:legacy_pb.Fee)
|
||||
))
|
||||
_sym_db.RegisterMessage(Fee)
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: claim.proto
|
||||
# source: legacy_claim.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
|
@ -7,7 +8,6 @@ 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
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
@ -19,10 +19,11 @@ import signature_pb2 as signature__pb2
|
|||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='claim.proto',
|
||||
package='pb',
|
||||
name='legacy_claim.proto',
|
||||
package='legacy_pb',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x0b\x63laim.proto\x12\x02pb\x1a\x0cstream.proto\x1a\x11\x63\x65rtificate.proto\x1a\x0fsignature.proto\"\xb6\x02\n\x05\x43laim\x12\"\n\x07version\x18\x01 \x02(\x0e\x32\x11.pb.Claim.Version\x12&\n\tclaimType\x18\x02 \x02(\x0e\x32\x13.pb.Claim.ClaimType\x12\x1a\n\x06stream\x18\x03 \x01(\x0b\x32\n.pb.Stream\x12$\n\x0b\x63\x65rtificate\x18\x04 \x01(\x0b\x32\x0f.pb.Certificate\x12)\n\x12publisherSignature\x18\x05 \x01(\x0b\x32\r.pb.Signature\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01\"H\n\tClaimType\x12\x16\n\x12UNKNOWN_CLAIM_TYPE\x10\x00\x12\x0e\n\nstreamType\x10\x01\x12\x13\n\x0f\x63\x65rtificateType\x10\x02')
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\x12legacy_claim.proto\x12\tlegacy_pb\x1a\x0cstream.proto\x1a\x11\x63\x65rtificate.proto\x1a\x0fsignature.proto\"\xd9\x02\n\x05\x43laim\x12)\n\x07version\x18\x01 \x02(\x0e\x32\x18.legacy_pb.Claim.Version\x12-\n\tclaimType\x18\x02 \x02(\x0e\x32\x1a.legacy_pb.Claim.ClaimType\x12!\n\x06stream\x18\x03 \x01(\x0b\x32\x11.legacy_pb.Stream\x12+\n\x0b\x63\x65rtificate\x18\x04 \x01(\x0b\x32\x16.legacy_pb.Certificate\x12\x30\n\x12publisherSignature\x18\x05 \x01(\x0b\x32\x14.legacy_pb.Signature\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01\"H\n\tClaimType\x12\x16\n\x12UNKNOWN_CLAIM_TYPE\x10\x00\x12\x0e\n\nstreamType\x10\x01\x12\x13\n\x0f\x63\x65rtificateType\x10\x02')
|
||||
,
|
||||
dependencies=[stream__pb2.DESCRIPTOR,certificate__pb2.DESCRIPTOR,signature__pb2.DESCRIPTOR,])
|
||||
|
||||
|
@ -30,95 +31,95 @@ DESCRIPTOR = _descriptor.FileDescriptor(
|
|||
|
||||
_CLAIM_VERSION = _descriptor.EnumDescriptor(
|
||||
name='Version',
|
||||
full_name='pb.Claim.Version',
|
||||
full_name='legacy_pb.Claim.Version',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN_VERSION', index=0, number=0,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='_0_0_1', index=1, number=1,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=264,
|
||||
serialized_end=306,
|
||||
serialized_options=None,
|
||||
serialized_start=313,
|
||||
serialized_end=355,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_CLAIM_VERSION)
|
||||
|
||||
_CLAIM_CLAIMTYPE = _descriptor.EnumDescriptor(
|
||||
name='ClaimType',
|
||||
full_name='pb.Claim.ClaimType',
|
||||
full_name='legacy_pb.Claim.ClaimType',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN_CLAIM_TYPE', index=0, number=0,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='streamType', index=1, number=1,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='certificateType', index=2, number=2,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=308,
|
||||
serialized_end=380,
|
||||
serialized_options=None,
|
||||
serialized_start=357,
|
||||
serialized_end=429,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_CLAIM_CLAIMTYPE)
|
||||
|
||||
|
||||
_CLAIM = _descriptor.Descriptor(
|
||||
name='Claim',
|
||||
full_name='pb.Claim',
|
||||
full_name='legacy_pb.Claim',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='version', full_name='pb.Claim.version', index=0,
|
||||
name='version', full_name='legacy_pb.Claim.version', index=0,
|
||||
number=1, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='claimType', full_name='pb.Claim.claimType', index=1,
|
||||
name='claimType', full_name='legacy_pb.Claim.claimType', index=1,
|
||||
number=2, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='stream', full_name='pb.Claim.stream', index=2,
|
||||
name='stream', full_name='legacy_pb.Claim.stream', 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,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='certificate', full_name='pb.Claim.certificate', index=3,
|
||||
name='certificate', full_name='legacy_pb.Claim.certificate', index=3,
|
||||
number=4, 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,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='publisherSignature', full_name='pb.Claim.publisherSignature', index=4,
|
||||
name='publisherSignature', full_name='legacy_pb.Claim.publisherSignature', index=4,
|
||||
number=5, 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,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
|
@ -127,14 +128,14 @@ _CLAIM = _descriptor.Descriptor(
|
|||
_CLAIM_VERSION,
|
||||
_CLAIM_CLAIMTYPE,
|
||||
],
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=70,
|
||||
serialized_end=380,
|
||||
serialized_start=84,
|
||||
serialized_end=429,
|
||||
)
|
||||
|
||||
_CLAIM.fields_by_name['version'].enum_type = _CLAIM_VERSION
|
||||
|
@ -149,8 +150,8 @@ _sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|||
|
||||
Claim = _reflection.GeneratedProtocolMessageType('Claim', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CLAIM,
|
||||
__module__ = 'claim_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Claim)
|
||||
__module__ = 'legacy_claim_pb2'
|
||||
# @@protoc_insertion_point(class_scope:legacy_pb.Claim)
|
||||
))
|
||||
_sym_db.RegisterMessage(Claim)
|
||||
|
File diff suppressed because one or more lines are too long
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: signature.proto
|
||||
|
||||
|
@ -7,7 +8,6 @@ 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
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
@ -18,9 +18,10 @@ import certificate_pb2 as certificate__pb2
|
|||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='signature.proto',
|
||||
package='pb',
|
||||
package='legacy_pb',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x0fsignature.proto\x12\x02pb\x1a\x11\x63\x65rtificate.proto\"\xad\x01\n\tSignature\x12&\n\x07version\x18\x01 \x02(\x0e\x32\x15.pb.Signature.Version\x12\"\n\rsignatureType\x18\x02 \x02(\x0e\x32\x0b.pb.KeyType\x12\x11\n\tsignature\x18\x03 \x02(\x0c\x12\x15\n\rcertificateId\x18\x04 \x02(\x0c\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01')
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\x0fsignature.proto\x12\tlegacy_pb\x1a\x11\x63\x65rtificate.proto\"\xbb\x01\n\tSignature\x12-\n\x07version\x18\x01 \x02(\x0e\x32\x1c.legacy_pb.Signature.Version\x12)\n\rsignatureType\x18\x02 \x02(\x0e\x32\x12.legacy_pb.KeyType\x12\x11\n\tsignature\x18\x03 \x02(\x0c\x12\x15\n\rcertificateId\x18\x04 \x02(\x0c\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01')
|
||||
,
|
||||
dependencies=[certificate__pb2.DESCRIPTOR,])
|
||||
|
||||
|
@ -28,62 +29,62 @@ DESCRIPTOR = _descriptor.FileDescriptor(
|
|||
|
||||
_SIGNATURE_VERSION = _descriptor.EnumDescriptor(
|
||||
name='Version',
|
||||
full_name='pb.Signature.Version',
|
||||
full_name='legacy_pb.Signature.Version',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN_VERSION', index=0, number=0,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='_0_0_1', index=1, number=1,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=174,
|
||||
serialized_end=216,
|
||||
serialized_options=None,
|
||||
serialized_start=195,
|
||||
serialized_end=237,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_SIGNATURE_VERSION)
|
||||
|
||||
|
||||
_SIGNATURE = _descriptor.Descriptor(
|
||||
name='Signature',
|
||||
full_name='pb.Signature',
|
||||
full_name='legacy_pb.Signature',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='version', full_name='pb.Signature.version', index=0,
|
||||
name='version', full_name='legacy_pb.Signature.version', index=0,
|
||||
number=1, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='signatureType', full_name='pb.Signature.signatureType', index=1,
|
||||
name='signatureType', full_name='legacy_pb.Signature.signatureType', index=1,
|
||||
number=2, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='signature', full_name='pb.Signature.signature', index=2,
|
||||
name='signature', full_name='legacy_pb.Signature.signature', index=2,
|
||||
number=3, type=12, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='certificateId', full_name='pb.Signature.certificateId', index=3,
|
||||
name='certificateId', full_name='legacy_pb.Signature.certificateId', index=3,
|
||||
number=4, type=12, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
|
@ -91,14 +92,14 @@ _SIGNATURE = _descriptor.Descriptor(
|
|||
enum_types=[
|
||||
_SIGNATURE_VERSION,
|
||||
],
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=43,
|
||||
serialized_end=216,
|
||||
serialized_start=50,
|
||||
serialized_end=237,
|
||||
)
|
||||
|
||||
_SIGNATURE.fields_by_name['version'].enum_type = _SIGNATURE_VERSION
|
||||
|
@ -110,7 +111,7 @@ _sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|||
Signature = _reflection.GeneratedProtocolMessageType('Signature', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SIGNATURE,
|
||||
__module__ = 'signature_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Signature)
|
||||
# @@protoc_insertion_point(class_scope:legacy_pb.Signature)
|
||||
))
|
||||
_sym_db.RegisterMessage(Signature)
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: source.proto
|
||||
|
||||
|
@ -7,7 +8,6 @@ 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
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
@ -17,93 +17,94 @@ _sym_db = _symbol_database.Default()
|
|||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='source.proto',
|
||||
package='pb',
|
||||
package='legacy_pb',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x0csource.proto\x12\x02pb\"\xe4\x01\n\x06Source\x12#\n\x07version\x18\x01 \x02(\x0e\x32\x12.pb.Source.Version\x12*\n\nsourceType\x18\x02 \x02(\x0e\x32\x16.pb.Source.SourceTypes\x12\x0e\n\x06source\x18\x03 \x02(\x0c\x12\x13\n\x0b\x63ontentType\x18\x04 \x02(\t\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01\"8\n\x0bSourceTypes\x12\x17\n\x13UNKNOWN_SOURCE_TYPE\x10\x00\x12\x10\n\x0clbry_sd_hash\x10\x01')
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\x0csource.proto\x12\tlegacy_pb\"\xf2\x01\n\x06Source\x12*\n\x07version\x18\x01 \x02(\x0e\x32\x19.legacy_pb.Source.Version\x12\x31\n\nsourceType\x18\x02 \x02(\x0e\x32\x1d.legacy_pb.Source.SourceTypes\x12\x0e\n\x06source\x18\x03 \x02(\x0c\x12\x13\n\x0b\x63ontentType\x18\x04 \x02(\t\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01\"8\n\x0bSourceTypes\x12\x17\n\x13UNKNOWN_SOURCE_TYPE\x10\x00\x12\x10\n\x0clbry_sd_hash\x10\x01')
|
||||
)
|
||||
|
||||
|
||||
|
||||
_SOURCE_VERSION = _descriptor.EnumDescriptor(
|
||||
name='Version',
|
||||
full_name='pb.Source.Version',
|
||||
full_name='legacy_pb.Source.Version',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN_VERSION', index=0, number=0,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='_0_0_1', index=1, number=1,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=149,
|
||||
serialized_end=191,
|
||||
serialized_options=None,
|
||||
serialized_start=170,
|
||||
serialized_end=212,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_SOURCE_VERSION)
|
||||
|
||||
_SOURCE_SOURCETYPES = _descriptor.EnumDescriptor(
|
||||
name='SourceTypes',
|
||||
full_name='pb.Source.SourceTypes',
|
||||
full_name='legacy_pb.Source.SourceTypes',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN_SOURCE_TYPE', index=0, number=0,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='lbry_sd_hash', index=1, number=1,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=193,
|
||||
serialized_end=249,
|
||||
serialized_options=None,
|
||||
serialized_start=214,
|
||||
serialized_end=270,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_SOURCE_SOURCETYPES)
|
||||
|
||||
|
||||
_SOURCE = _descriptor.Descriptor(
|
||||
name='Source',
|
||||
full_name='pb.Source',
|
||||
full_name='legacy_pb.Source',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='version', full_name='pb.Source.version', index=0,
|
||||
name='version', full_name='legacy_pb.Source.version', index=0,
|
||||
number=1, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='sourceType', full_name='pb.Source.sourceType', index=1,
|
||||
name='sourceType', full_name='legacy_pb.Source.sourceType', index=1,
|
||||
number=2, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='source', full_name='pb.Source.source', index=2,
|
||||
name='source', full_name='legacy_pb.Source.source', index=2,
|
||||
number=3, type=12, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='contentType', full_name='pb.Source.contentType', index=3,
|
||||
name='contentType', full_name='legacy_pb.Source.contentType', index=3,
|
||||
number=4, type=9, cpp_type=9, label=2,
|
||||
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,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
|
@ -112,14 +113,14 @@ _SOURCE = _descriptor.Descriptor(
|
|||
_SOURCE_VERSION,
|
||||
_SOURCE_SOURCETYPES,
|
||||
],
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=21,
|
||||
serialized_end=249,
|
||||
serialized_start=28,
|
||||
serialized_end=270,
|
||||
)
|
||||
|
||||
_SOURCE.fields_by_name['version'].enum_type = _SOURCE_VERSION
|
||||
|
@ -132,7 +133,7 @@ _sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|||
Source = _reflection.GeneratedProtocolMessageType('Source', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SOURCE,
|
||||
__module__ = 'source_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Source)
|
||||
# @@protoc_insertion_point(class_scope:legacy_pb.Source)
|
||||
))
|
||||
_sym_db.RegisterMessage(Source)
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: stream.proto
|
||||
|
||||
|
@ -7,7 +8,6 @@ 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
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
@ -19,9 +19,10 @@ import source_pb2 as source__pb2
|
|||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='stream.proto',
|
||||
package='pb',
|
||||
package='legacy_pb',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x0cstream.proto\x12\x02pb\x1a\x0emetadata.proto\x1a\x0csource.proto\"\x95\x01\n\x06Stream\x12#\n\x07version\x18\x01 \x02(\x0e\x32\x12.pb.Stream.Version\x12\x1e\n\x08metadata\x18\x02 \x02(\x0b\x32\x0c.pb.Metadata\x12\x1a\n\x06source\x18\x03 \x02(\x0b\x32\n.pb.Source\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01')
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\x0cstream.proto\x12\tlegacy_pb\x1a\x0emetadata.proto\x1a\x0csource.proto\"\xaa\x01\n\x06Stream\x12*\n\x07version\x18\x01 \x02(\x0e\x32\x19.legacy_pb.Stream.Version\x12%\n\x08metadata\x18\x02 \x02(\x0b\x32\x13.legacy_pb.Metadata\x12!\n\x06source\x18\x03 \x02(\x0b\x32\x11.legacy_pb.Source\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01')
|
||||
,
|
||||
dependencies=[metadata__pb2.DESCRIPTOR,source__pb2.DESCRIPTOR,])
|
||||
|
||||
|
@ -29,55 +30,55 @@ DESCRIPTOR = _descriptor.FileDescriptor(
|
|||
|
||||
_STREAM_VERSION = _descriptor.EnumDescriptor(
|
||||
name='Version',
|
||||
full_name='pb.Stream.Version',
|
||||
full_name='legacy_pb.Stream.Version',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN_VERSION', index=0, number=0,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='_0_0_1', index=1, number=1,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=158,
|
||||
serialized_end=200,
|
||||
serialized_options=None,
|
||||
serialized_start=186,
|
||||
serialized_end=228,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_STREAM_VERSION)
|
||||
|
||||
|
||||
_STREAM = _descriptor.Descriptor(
|
||||
name='Stream',
|
||||
full_name='pb.Stream',
|
||||
full_name='legacy_pb.Stream',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='version', full_name='pb.Stream.version', index=0,
|
||||
name='version', full_name='legacy_pb.Stream.version', index=0,
|
||||
number=1, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='metadata', full_name='pb.Stream.metadata', index=1,
|
||||
name='metadata', full_name='legacy_pb.Stream.metadata', index=1,
|
||||
number=2, type=11, cpp_type=10, label=2,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='source', full_name='pb.Stream.source', index=2,
|
||||
name='source', full_name='legacy_pb.Stream.source', index=2,
|
||||
number=3, type=11, cpp_type=10, label=2,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None, file=DESCRIPTOR),
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
|
@ -85,14 +86,14 @@ _STREAM = _descriptor.Descriptor(
|
|||
enum_types=[
|
||||
_STREAM_VERSION,
|
||||
],
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=51,
|
||||
serialized_end=200,
|
||||
serialized_start=58,
|
||||
serialized_end=228,
|
||||
)
|
||||
|
||||
_STREAM.fields_by_name['version'].enum_type = _STREAM_VERSION
|
||||
|
@ -105,7 +106,7 @@ _sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|||
Stream = _reflection.GeneratedProtocolMessageType('Stream', (_message.Message,), dict(
|
||||
DESCRIPTOR = _STREAM,
|
||||
__module__ = 'stream_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Stream)
|
||||
# @@protoc_insertion_point(class_scope:legacy_pb.Stream)
|
||||
))
|
||||
_sym_db.RegisterMessage(Stream)
|
||||
|
||||
|
|
|
@ -168,6 +168,7 @@ const ::google::protobuf::uint32 TableStruct_claim_2eproto::offsets[] PROTOBUF_S
|
|||
PROTOBUF_FIELD_OFFSET(::pb::Channel, description_),
|
||||
PROTOBUF_FIELD_OFFSET(::pb::Channel, contact_email_),
|
||||
PROTOBUF_FIELD_OFFSET(::pb::Channel, homepage_url_),
|
||||
PROTOBUF_FIELD_OFFSET(::pb::Channel, tags_),
|
||||
PROTOBUF_FIELD_OFFSET(::pb::Channel, thumbnail_url_),
|
||||
PROTOBUF_FIELD_OFFSET(::pb::Channel, cover_url_),
|
||||
~0u, // no _has_bits_
|
||||
|
@ -216,10 +217,10 @@ const ::google::protobuf::uint32 TableStruct_claim_2eproto::offsets[] PROTOBUF_S
|
|||
static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, -1, sizeof(::pb::Claim)},
|
||||
{ 8, -1, sizeof(::pb::Channel)},
|
||||
{ 20, -1, sizeof(::pb::Stream)},
|
||||
{ 40, -1, sizeof(::pb::Fee)},
|
||||
{ 48, -1, sizeof(::pb::File)},
|
||||
{ 55, -1, sizeof(::pb::Video)},
|
||||
{ 21, -1, sizeof(::pb::Stream)},
|
||||
{ 41, -1, sizeof(::pb::Fee)},
|
||||
{ 49, -1, sizeof(::pb::File)},
|
||||
{ 56, -1, sizeof(::pb::Video)},
|
||||
};
|
||||
|
||||
static ::google::protobuf::Message const * const file_default_instances[] = {
|
||||
|
@ -241,28 +242,29 @@ const char descriptor_table_protodef_claim_2eproto[] =
|
|||
"\n\013claim.proto\022\002pb\"\200\001\n\005Claim\022\034\n\004type\030\001 \001("
|
||||
"\0162\016.pb.Claim.Type\022\032\n\006stream\030\002 \001(\0132\n.pb.S"
|
||||
"tream\022\034\n\007channel\030\003 \001(\0132\013.pb.Channel\"\037\n\004T"
|
||||
"ype\022\n\n\006STREAM\020\000\022\013\n\007CHANNEL\020\001\"\230\001\n\007Channel"
|
||||
"ype\022\n\n\006STREAM\020\000\022\013\n\007CHANNEL\020\001\"\246\001\n\007Channel"
|
||||
"\022\022\n\npublic_key\030\001 \001(\014\022\r\n\005title\030\002 \001(\t\022\023\n\013d"
|
||||
"escription\030\003 \001(\t\022\025\n\rcontact_email\030\004 \001(\t\022"
|
||||
"\024\n\014homepage_url\030\005 \001(\t\022\025\n\rthumbnail_url\030\020"
|
||||
" \001(\t\022\021\n\tcover_url\030\021 \001(\t\"\253\002\n\006Stream\022\014\n\004ha"
|
||||
"sh\030\001 \001(\014\022\020\n\010language\030\002 \001(\t\022\r\n\005title\030\003 \001("
|
||||
"\t\022\016\n\006author\030\004 \001(\t\022\023\n\013description\030\005 \001(\t\022\022"
|
||||
"\n\nmedia_type\030\006 \001(\t\022\017\n\007license\030\007 \001(\t\022\026\n\004f"
|
||||
"ile\030\010 \001(\0132\010.pb.File\022\024\n\003fee\030\020 \001(\0132\007.pb.Fe"
|
||||
"e\022\023\n\013license_url\030\021 \001(\t\022\025\n\rthumbnail_url\030"
|
||||
"\022 \001(\t\022\020\n\010duration\030\023 \001(\r\022\014\n\004tags\030\024 \003(\t\022\024\n"
|
||||
"\014release_time\030\025 \001(\003\022\030\n\005video\030\026 \001(\0132\t.pb."
|
||||
"Video\"h\n\003Fee\022\"\n\010currency\030\001 \001(\0162\020.pb.Fee."
|
||||
"Currency\022\017\n\007address\030\002 \001(\014\022\016\n\006amount\030\003 \001("
|
||||
"\004\"\034\n\010Currency\022\007\n\003LBC\020\000\022\007\n\003USD\020\001\"\"\n\004File\022"
|
||||
"\014\n\004name\030\001 \001(\t\022\014\n\004size\030\002 \001(\004\"&\n\005Video\022\r\n\005"
|
||||
"width\030\001 \001(\r\022\016\n\006height\030\002 \001(\rb\006proto3"
|
||||
"\024\n\014homepage_url\030\005 \001(\t\022\014\n\004tags\030\006 \003(\t\022\025\n\rt"
|
||||
"humbnail_url\030\020 \001(\t\022\021\n\tcover_url\030\021 \001(\t\"\253\002"
|
||||
"\n\006Stream\022\014\n\004hash\030\001 \001(\014\022\020\n\010language\030\002 \001(\t"
|
||||
"\022\r\n\005title\030\003 \001(\t\022\016\n\006author\030\004 \001(\t\022\023\n\013descr"
|
||||
"iption\030\005 \001(\t\022\022\n\nmedia_type\030\006 \001(\t\022\017\n\007lice"
|
||||
"nse\030\007 \001(\t\022\026\n\004file\030\010 \001(\0132\010.pb.File\022\024\n\003fee"
|
||||
"\030\020 \001(\0132\007.pb.Fee\022\023\n\013license_url\030\021 \001(\t\022\025\n\r"
|
||||
"thumbnail_url\030\022 \001(\t\022\020\n\010duration\030\023 \001(\r\022\014\n"
|
||||
"\004tags\030\024 \003(\t\022\024\n\014release_time\030\025 \001(\003\022\030\n\005vid"
|
||||
"eo\030\026 \001(\0132\t.pb.Video\"h\n\003Fee\022\"\n\010currency\030\001"
|
||||
" \001(\0162\020.pb.Fee.Currency\022\017\n\007address\030\002 \001(\014\022"
|
||||
"\016\n\006amount\030\003 \001(\004\"\034\n\010Currency\022\007\n\003LBC\020\000\022\007\n\003"
|
||||
"USD\020\001\"\"\n\004File\022\014\n\004name\030\001 \001(\t\022\014\n\004size\030\002 \001("
|
||||
"\004\"&\n\005Video\022\r\n\005width\030\001 \001(\r\022\016\n\006height\030\002 \001("
|
||||
"\rb\006proto3"
|
||||
;
|
||||
::google::protobuf::internal::DescriptorTable descriptor_table_claim_2eproto = {
|
||||
false, InitDefaults_claim_2eproto,
|
||||
descriptor_table_protodef_claim_2eproto,
|
||||
"claim.proto", &assign_descriptors_table_claim_2eproto, 795,
|
||||
"claim.proto", &assign_descriptors_table_claim_2eproto, 809,
|
||||
};
|
||||
|
||||
void AddDescriptors_claim_2eproto() {
|
||||
|
@ -734,6 +736,7 @@ const int Channel::kTitleFieldNumber;
|
|||
const int Channel::kDescriptionFieldNumber;
|
||||
const int Channel::kContactEmailFieldNumber;
|
||||
const int Channel::kHomepageUrlFieldNumber;
|
||||
const int Channel::kTagsFieldNumber;
|
||||
const int Channel::kThumbnailUrlFieldNumber;
|
||||
const int Channel::kCoverUrlFieldNumber;
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
@ -745,7 +748,8 @@ Channel::Channel()
|
|||
}
|
||||
Channel::Channel(const Channel& from)
|
||||
: ::google::protobuf::Message(),
|
||||
_internal_metadata_(nullptr) {
|
||||
_internal_metadata_(nullptr),
|
||||
tags_(from.tags_) {
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
if (from.public_key().size() > 0) {
|
||||
|
@ -820,6 +824,7 @@ void Channel::Clear() {
|
|||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
tags_.Clear();
|
||||
public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
title_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
|
@ -922,6 +927,25 @@ const char* Channel::_InternalParse(const char* begin, const char* end, void* ob
|
|||
ptr += size;
|
||||
break;
|
||||
}
|
||||
// repeated string tags = 6;
|
||||
case 6: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual;
|
||||
do {
|
||||
ptr = ::google::protobuf::io::ReadSize(ptr, &size);
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
|
||||
ctx->extra_parse_data().SetFieldName("pb.Channel.tags");
|
||||
object = msg->add_tags();
|
||||
if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
|
||||
parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
|
||||
goto string_till_end;
|
||||
}
|
||||
GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
|
||||
::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
|
||||
ptr += size;
|
||||
if (ptr >= end) break;
|
||||
} while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1));
|
||||
break;
|
||||
}
|
||||
// string thumbnail_url = 16;
|
||||
case 16: {
|
||||
if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual;
|
||||
|
@ -1059,6 +1083,22 @@ bool Channel::MergePartialFromCodedStream(
|
|||
break;
|
||||
}
|
||||
|
||||
// repeated string tags = 6;
|
||||
case 6: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) {
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
||||
input, this->add_tags()));
|
||||
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
||||
this->tags(this->tags_size() - 1).data(),
|
||||
static_cast<int>(this->tags(this->tags_size() - 1).length()),
|
||||
::google::protobuf::internal::WireFormatLite::PARSE,
|
||||
"pb.Channel.tags"));
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// string thumbnail_url = 16;
|
||||
case 16: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) {
|
||||
|
@ -1162,6 +1202,16 @@ void Channel::SerializeWithCachedSizes(
|
|||
5, this->homepage_url(), output);
|
||||
}
|
||||
|
||||
// repeated string tags = 6;
|
||||
for (int i = 0, n = this->tags_size(); i < n; i++) {
|
||||
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
||||
this->tags(i).data(), static_cast<int>(this->tags(i).length()),
|
||||
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
||||
"pb.Channel.tags");
|
||||
::google::protobuf::internal::WireFormatLite::WriteString(
|
||||
6, this->tags(i), output);
|
||||
}
|
||||
|
||||
// string thumbnail_url = 16;
|
||||
if (this->thumbnail_url().size() > 0) {
|
||||
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
||||
|
@ -1246,6 +1296,16 @@ void Channel::SerializeWithCachedSizes(
|
|||
5, this->homepage_url(), target);
|
||||
}
|
||||
|
||||
// repeated string tags = 6;
|
||||
for (int i = 0, n = this->tags_size(); i < n; i++) {
|
||||
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
||||
this->tags(i).data(), static_cast<int>(this->tags(i).length()),
|
||||
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
||||
"pb.Channel.tags");
|
||||
target = ::google::protobuf::internal::WireFormatLite::
|
||||
WriteStringToArray(6, this->tags(i), target);
|
||||
}
|
||||
|
||||
// string thumbnail_url = 16;
|
||||
if (this->thumbnail_url().size() > 0) {
|
||||
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
||||
|
@ -1289,6 +1349,14 @@ size_t Channel::ByteSizeLong() const {
|
|||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// repeated string tags = 6;
|
||||
total_size += 1 *
|
||||
::google::protobuf::internal::FromIntSize(this->tags_size());
|
||||
for (int i = 0, n = this->tags_size(); i < n; i++) {
|
||||
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
||||
this->tags(i));
|
||||
}
|
||||
|
||||
// bytes public_key = 1;
|
||||
if (this->public_key().size() > 0) {
|
||||
total_size += 1 +
|
||||
|
@ -1365,6 +1433,7 @@ void Channel::MergeFrom(const Channel& from) {
|
|||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
tags_.MergeFrom(from.tags_);
|
||||
if (from.public_key().size() > 0) {
|
||||
|
||||
public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_);
|
||||
|
@ -1420,6 +1489,7 @@ void Channel::Swap(Channel* other) {
|
|||
void Channel::InternalSwap(Channel* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
tags_.InternalSwap(CastToBase(&other->tags_));
|
||||
public_key_.Swap(&other->public_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
GetArenaNoVirtual());
|
||||
title_.Swap(&other->title_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
|
|
|
@ -378,6 +378,28 @@ class Channel final :
|
|||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
// repeated string tags = 6;
|
||||
int tags_size() const;
|
||||
void clear_tags();
|
||||
static const int kTagsFieldNumber = 6;
|
||||
const ::std::string& tags(int index) const;
|
||||
::std::string* mutable_tags(int index);
|
||||
void set_tags(int index, const ::std::string& value);
|
||||
#if LANG_CXX11
|
||||
void set_tags(int index, ::std::string&& value);
|
||||
#endif
|
||||
void set_tags(int index, const char* value);
|
||||
void set_tags(int index, const char* value, size_t size);
|
||||
::std::string* add_tags();
|
||||
void add_tags(const ::std::string& value);
|
||||
#if LANG_CXX11
|
||||
void add_tags(::std::string&& value);
|
||||
#endif
|
||||
void add_tags(const char* value);
|
||||
void add_tags(const char* value, size_t size);
|
||||
const ::google::protobuf::RepeatedPtrField<::std::string>& tags() const;
|
||||
::google::protobuf::RepeatedPtrField<::std::string>* mutable_tags();
|
||||
|
||||
// bytes public_key = 1;
|
||||
void clear_public_key();
|
||||
static const int kPublicKeyFieldNumber = 1;
|
||||
|
@ -481,6 +503,7 @@ class Channel final :
|
|||
class HasBitSetters;
|
||||
|
||||
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
|
||||
::google::protobuf::RepeatedPtrField<::std::string> tags_;
|
||||
::google::protobuf::internal::ArenaStringPtr public_key_;
|
||||
::google::protobuf::internal::ArenaStringPtr title_;
|
||||
::google::protobuf::internal::ArenaStringPtr description_;
|
||||
|
@ -1600,6 +1623,75 @@ inline void Channel::set_allocated_homepage_url(::std::string* homepage_url) {
|
|||
// @@protoc_insertion_point(field_set_allocated:pb.Channel.homepage_url)
|
||||
}
|
||||
|
||||
// repeated string tags = 6;
|
||||
inline int Channel::tags_size() const {
|
||||
return tags_.size();
|
||||
}
|
||||
inline void Channel::clear_tags() {
|
||||
tags_.Clear();
|
||||
}
|
||||
inline const ::std::string& Channel::tags(int index) const {
|
||||
// @@protoc_insertion_point(field_get:pb.Channel.tags)
|
||||
return tags_.Get(index);
|
||||
}
|
||||
inline ::std::string* Channel::mutable_tags(int index) {
|
||||
// @@protoc_insertion_point(field_mutable:pb.Channel.tags)
|
||||
return tags_.Mutable(index);
|
||||
}
|
||||
inline void Channel::set_tags(int index, const ::std::string& value) {
|
||||
// @@protoc_insertion_point(field_set:pb.Channel.tags)
|
||||
tags_.Mutable(index)->assign(value);
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Channel::set_tags(int index, ::std::string&& value) {
|
||||
// @@protoc_insertion_point(field_set:pb.Channel.tags)
|
||||
tags_.Mutable(index)->assign(std::move(value));
|
||||
}
|
||||
#endif
|
||||
inline void Channel::set_tags(int index, const char* value) {
|
||||
GOOGLE_DCHECK(value != nullptr);
|
||||
tags_.Mutable(index)->assign(value);
|
||||
// @@protoc_insertion_point(field_set_char:pb.Channel.tags)
|
||||
}
|
||||
inline void Channel::set_tags(int index, const char* value, size_t size) {
|
||||
tags_.Mutable(index)->assign(
|
||||
reinterpret_cast<const char*>(value), size);
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Channel.tags)
|
||||
}
|
||||
inline ::std::string* Channel::add_tags() {
|
||||
// @@protoc_insertion_point(field_add_mutable:pb.Channel.tags)
|
||||
return tags_.Add();
|
||||
}
|
||||
inline void Channel::add_tags(const ::std::string& value) {
|
||||
tags_.Add()->assign(value);
|
||||
// @@protoc_insertion_point(field_add:pb.Channel.tags)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Channel::add_tags(::std::string&& value) {
|
||||
tags_.Add(std::move(value));
|
||||
// @@protoc_insertion_point(field_add:pb.Channel.tags)
|
||||
}
|
||||
#endif
|
||||
inline void Channel::add_tags(const char* value) {
|
||||
GOOGLE_DCHECK(value != nullptr);
|
||||
tags_.Add()->assign(value);
|
||||
// @@protoc_insertion_point(field_add_char:pb.Channel.tags)
|
||||
}
|
||||
inline void Channel::add_tags(const char* value, size_t size) {
|
||||
tags_.Add()->assign(reinterpret_cast<const char*>(value), size);
|
||||
// @@protoc_insertion_point(field_add_pointer:pb.Channel.tags)
|
||||
}
|
||||
inline const ::google::protobuf::RepeatedPtrField<::std::string>&
|
||||
Channel::tags() const {
|
||||
// @@protoc_insertion_point(field_list:pb.Channel.tags)
|
||||
return tags_;
|
||||
}
|
||||
inline ::google::protobuf::RepeatedPtrField<::std::string>*
|
||||
Channel::mutable_tags() {
|
||||
// @@protoc_insertion_point(field_mutable_list:pb.Channel.tags)
|
||||
return &tags_;
|
||||
}
|
||||
|
||||
// string thumbnail_url = 16;
|
||||
inline void Channel::clear_thumbnail_url() {
|
||||
thumbnail_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
|
|
|
@ -131,6 +131,7 @@ type Channel struct {
|
|||
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
||||
ContactEmail string `protobuf:"bytes,4,opt,name=contact_email,json=contactEmail,proto3" json:"contact_email,omitempty"`
|
||||
HomepageUrl string `protobuf:"bytes,5,opt,name=homepage_url,json=homepageUrl,proto3" json:"homepage_url,omitempty"`
|
||||
Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"`
|
||||
ThumbnailUrl string `protobuf:"bytes,16,opt,name=thumbnail_url,json=thumbnailUrl,proto3" json:"thumbnail_url,omitempty"`
|
||||
CoverUrl string `protobuf:"bytes,17,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
|
@ -198,6 +199,13 @@ func (m *Channel) GetHomepageUrl() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (m *Channel) GetTags() []string {
|
||||
if m != nil {
|
||||
return m.Tags
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Channel) GetThumbnailUrl() string {
|
||||
if m != nil {
|
||||
return m.ThumbnailUrl
|
||||
|
@ -526,44 +534,44 @@ func init() {
|
|||
func init() { proto.RegisterFile("claim.proto", fileDescriptor_bae86789b513b1db) }
|
||||
|
||||
var fileDescriptor_bae86789b513b1db = []byte{
|
||||
// 614 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x94, 0xcf, 0x6e, 0xd3, 0x40,
|
||||
0x10, 0xc6, 0xeb, 0xda, 0x49, 0xec, 0x71, 0x52, 0x85, 0xa5, 0x54, 0xa6, 0xb4, 0x6a, 0x30, 0x42,
|
||||
0xca, 0x01, 0xe5, 0x50, 0xc4, 0x03, 0x94, 0xd0, 0x0a, 0x89, 0xd2, 0xc3, 0xb6, 0xe5, 0x1a, 0x6d,
|
||||
0xec, 0x69, 0xbc, 0x62, 0xfd, 0x47, 0xf6, 0xba, 0x28, 0x5c, 0x79, 0x08, 0x5e, 0x84, 0xa7, 0xe2,
|
||||
0x29, 0xd0, 0x8e, 0x37, 0xa1, 0x82, 0xde, 0x66, 0x7e, 0x33, 0x19, 0xcd, 0xf7, 0xcd, 0x3a, 0x10,
|
||||
0x26, 0x4a, 0xc8, 0x7c, 0x56, 0xd5, 0xa5, 0x2e, 0xd9, 0x6e, 0xb5, 0x8c, 0x7f, 0x3a, 0xd0, 0x9b,
|
||||
0x1b, 0xc6, 0x62, 0xf0, 0xf4, 0xba, 0xc2, 0xc8, 0x99, 0x38, 0xd3, 0xbd, 0xd3, 0xbd, 0x59, 0xb5,
|
||||
0x9c, 0x51, 0x61, 0x76, 0xb3, 0xae, 0x90, 0x53, 0x8d, 0xc5, 0xd0, 0x6f, 0x74, 0x8d, 0x22, 0x8f,
|
||||
0x76, 0x27, 0xce, 0x34, 0x3c, 0x05, 0xd3, 0x75, 0x4d, 0x84, 0xdb, 0x0a, 0x7b, 0x0d, 0x83, 0x24,
|
||||
0x13, 0x45, 0x81, 0x2a, 0x72, 0xa9, 0x29, 0xa4, 0x51, 0x1d, 0xe2, 0x9b, 0x5a, 0x7c, 0x02, 0x9e,
|
||||
0x19, 0xcc, 0x00, 0xfa, 0xd7, 0x37, 0xfc, 0xfc, 0xec, 0xf3, 0x78, 0x87, 0x85, 0x30, 0x98, 0x7f,
|
||||
0x3c, 0xbb, 0xba, 0x3a, 0xbf, 0x1c, 0x3b, 0xf1, 0x6f, 0x07, 0x06, 0xf6, 0x57, 0xec, 0x18, 0xa0,
|
||||
0x6a, 0x97, 0x4a, 0x26, 0x8b, 0xaf, 0xb8, 0xa6, 0x0d, 0x87, 0x3c, 0xe8, 0xc8, 0x27, 0x5c, 0xb3,
|
||||
0x7d, 0xe8, 0x69, 0xa9, 0x15, 0xd2, 0x56, 0x01, 0xef, 0x12, 0x36, 0x81, 0x30, 0xc5, 0x26, 0xa9,
|
||||
0x65, 0xa5, 0x65, 0x59, 0xd0, 0x32, 0x01, 0x7f, 0x88, 0xd8, 0x2b, 0x18, 0x25, 0x65, 0xa1, 0x45,
|
||||
0xa2, 0x17, 0x98, 0x0b, 0xa9, 0x22, 0x8f, 0x7a, 0x86, 0x16, 0x9e, 0x1b, 0xc6, 0x5e, 0xc2, 0x30,
|
||||
0x2b, 0x73, 0xac, 0xc4, 0x0a, 0x17, 0x6d, 0xad, 0xa2, 0x5e, 0x37, 0x67, 0xc3, 0x6e, 0x6b, 0x65,
|
||||
0xe6, 0xe8, 0xac, 0xcd, 0x97, 0x85, 0x90, 0x8a, 0x7a, 0xc6, 0xdd, 0x9c, 0x2d, 0x34, 0x4d, 0x2f,
|
||||
0x20, 0x48, 0xca, 0x7b, 0xac, 0xa9, 0xe1, 0x09, 0x35, 0xf8, 0x04, 0x6e, 0x6b, 0x15, 0xff, 0x72,
|
||||
0xa1, 0xdf, 0xf9, 0xc8, 0x18, 0x78, 0x99, 0x68, 0x32, 0xab, 0x92, 0x62, 0x76, 0x08, 0xbe, 0x12,
|
||||
0xc5, 0xaa, 0x15, 0xab, 0x8d, 0xc6, 0x6d, 0xfe, 0x57, 0xbc, 0xfb, 0x50, 0xfc, 0x01, 0xf4, 0x45,
|
||||
0xab, 0xb3, 0xb2, 0xb6, 0x9a, 0x6c, 0xf6, 0xaf, 0x29, 0xbd, 0xff, 0x4d, 0x39, 0x06, 0xc8, 0x31,
|
||||
0x95, 0x62, 0x41, 0xaf, 0xa1, 0x4f, 0x0d, 0x01, 0x11, 0xba, 0x57, 0x04, 0x03, 0x25, 0x13, 0x2c,
|
||||
0x1a, 0x8c, 0x06, 0x54, 0xdb, 0xa4, 0xec, 0x08, 0xbc, 0x3b, 0xa9, 0x30, 0xf2, 0xe9, 0xea, 0xbe,
|
||||
0xb9, 0xfa, 0x85, 0x54, 0xc8, 0x89, 0xb2, 0xe7, 0xe0, 0xde, 0x21, 0x92, 0x33, 0xe1, 0xe9, 0x80,
|
||||
0x8a, 0x88, 0xdc, 0x30, 0x76, 0x02, 0xa1, 0x9d, 0xf1, 0xc0, 0x1b, 0xb0, 0xe8, 0x51, 0x7f, 0xd9,
|
||||
0x23, 0xfe, 0x1e, 0x82, 0x9f, 0xb6, 0xb5, 0x20, 0x59, 0x4f, 0x27, 0xce, 0x74, 0xc4, 0xb7, 0xb9,
|
||||
0xf1, 0x54, 0x8b, 0x55, 0x13, 0xed, 0x4f, 0xdc, 0x69, 0xc0, 0x29, 0x36, 0x77, 0xad, 0x51, 0xa1,
|
||||
0x68, 0x70, 0xa1, 0x65, 0x8e, 0xd1, 0xb3, 0x89, 0x33, 0x75, 0x79, 0x68, 0xd9, 0x8d, 0xcc, 0xcd,
|
||||
0x62, 0xbd, 0x7b, 0x99, 0x62, 0x19, 0x1d, 0xd0, 0xd6, 0x81, 0xd9, 0xfa, 0x8b, 0x01, 0xbc, 0xe3,
|
||||
0xf1, 0x0f, 0x07, 0xdc, 0x0b, 0x44, 0xf6, 0x06, 0xfc, 0xa4, 0xad, 0x6b, 0x2c, 0x92, 0xb5, 0xfd,
|
||||
0x7e, 0xc6, 0x56, 0xe1, 0x6c, 0x6e, 0x39, 0xdf, 0x76, 0x18, 0x0b, 0x45, 0x9a, 0xd6, 0xd8, 0x34,
|
||||
0x74, 0xcc, 0x21, 0xdf, 0xa4, 0x74, 0xb5, 0xbc, 0x6c, 0x0b, 0x4d, 0xc7, 0xf4, 0xb8, 0xcd, 0xe2,
|
||||
0x23, 0xf0, 0x37, 0x73, 0xd8, 0x00, 0xdc, 0xcb, 0xf7, 0xf3, 0xf1, 0x8e, 0x09, 0x6e, 0xaf, 0x3f,
|
||||
0x8c, 0x9d, 0x78, 0x06, 0x9e, 0x31, 0xda, 0xa8, 0x2c, 0x44, 0xde, 0x7d, 0xc1, 0x01, 0xa7, 0xd8,
|
||||
0xb0, 0x46, 0x7e, 0xef, 0x5e, 0x8d, 0xc7, 0x29, 0x8e, 0xdf, 0x41, 0x8f, 0x54, 0x98, 0xa7, 0xf3,
|
||||
0x4d, 0xa6, 0xba, 0x7b, 0x6b, 0x23, 0xde, 0x25, 0x66, 0x89, 0x0c, 0xe5, 0x2a, 0xd3, 0xf4, 0xa3,
|
||||
0x11, 0xb7, 0xd9, 0xb2, 0x4f, 0xff, 0x1a, 0x6f, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0xe5, 0xbb,
|
||||
0x5b, 0xad, 0x44, 0x04, 0x00, 0x00,
|
||||
// 624 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x94, 0xcd, 0x6e, 0xdb, 0x48,
|
||||
0x0c, 0xc7, 0xa3, 0x48, 0xb6, 0x25, 0xca, 0x0e, 0xbc, 0xb3, 0xd9, 0x40, 0x9b, 0x4d, 0x10, 0x47,
|
||||
0x8b, 0x02, 0x3e, 0x14, 0x3e, 0xa4, 0xe8, 0x03, 0xa4, 0x6e, 0x82, 0x02, 0x4d, 0x73, 0x98, 0x24,
|
||||
0xbd, 0x1a, 0x63, 0x89, 0xb1, 0x06, 0x1d, 0x7d, 0x40, 0x1a, 0xa5, 0x70, 0xaf, 0x7d, 0x88, 0xbe,
|
||||
0x48, 0x9f, 0xaf, 0x28, 0x86, 0x1a, 0xbb, 0x46, 0xd3, 0x1b, 0xf9, 0x23, 0x87, 0x26, 0xff, 0xa4,
|
||||
0x0c, 0x61, 0xa2, 0x84, 0xcc, 0x67, 0x55, 0x5d, 0xea, 0x92, 0xed, 0x57, 0xcb, 0xf8, 0x9b, 0x03,
|
||||
0xbd, 0xb9, 0x61, 0x2c, 0x06, 0x4f, 0xaf, 0x2b, 0x8c, 0x9c, 0x89, 0x33, 0x3d, 0xb8, 0x38, 0x98,
|
||||
0x55, 0xcb, 0x19, 0x05, 0x66, 0xf7, 0xeb, 0x0a, 0x39, 0xc5, 0x58, 0x0c, 0xfd, 0x46, 0xd7, 0x28,
|
||||
0xf2, 0x68, 0x7f, 0xe2, 0x4c, 0xc3, 0x0b, 0x30, 0x59, 0x77, 0x44, 0xb8, 0x8d, 0xb0, 0x17, 0x30,
|
||||
0x48, 0x32, 0x51, 0x14, 0xa8, 0x22, 0x97, 0x92, 0x42, 0x2a, 0xd5, 0x21, 0xbe, 0x89, 0xc5, 0x67,
|
||||
0xe0, 0x99, 0xc2, 0x0c, 0xa0, 0x7f, 0x77, 0xcf, 0xaf, 0x2e, 0x3f, 0x8c, 0xf7, 0x58, 0x08, 0x83,
|
||||
0xf9, 0xbb, 0xcb, 0xdb, 0xdb, 0xab, 0x9b, 0xb1, 0x13, 0xff, 0x70, 0x60, 0x60, 0x5f, 0xb1, 0x53,
|
||||
0x80, 0xaa, 0x5d, 0x2a, 0x99, 0x2c, 0x3e, 0xe1, 0x9a, 0x3a, 0x1c, 0xf2, 0xa0, 0x23, 0xef, 0x71,
|
||||
0xcd, 0x0e, 0xa1, 0xa7, 0xa5, 0x56, 0x48, 0x5d, 0x05, 0xbc, 0x73, 0xd8, 0x04, 0xc2, 0x14, 0x9b,
|
||||
0xa4, 0x96, 0x95, 0x96, 0x65, 0x41, 0xcd, 0x04, 0x7c, 0x17, 0xb1, 0xff, 0x61, 0x94, 0x94, 0x85,
|
||||
0x16, 0x89, 0x5e, 0x60, 0x2e, 0xa4, 0x8a, 0x3c, 0xca, 0x19, 0x5a, 0x78, 0x65, 0x18, 0x3b, 0x87,
|
||||
0x61, 0x56, 0xe6, 0x58, 0x89, 0x15, 0x2e, 0xda, 0x5a, 0x45, 0xbd, 0xae, 0xce, 0x86, 0x3d, 0xd4,
|
||||
0x8a, 0x31, 0xf0, 0xb4, 0x58, 0x35, 0x51, 0x7f, 0xe2, 0x4e, 0x03, 0x4e, 0xb6, 0xa9, 0xad, 0xb3,
|
||||
0x36, 0x5f, 0x16, 0x42, 0x2a, 0x7a, 0x37, 0xee, 0x6a, 0x6f, 0xa1, 0x79, 0xf8, 0x1f, 0x04, 0x49,
|
||||
0xf9, 0x84, 0x35, 0x25, 0xfc, 0x45, 0x09, 0x3e, 0x81, 0x87, 0x5a, 0xc5, 0xdf, 0x5d, 0xe8, 0x77,
|
||||
0xda, 0x9a, 0x1f, 0xc8, 0x44, 0x93, 0xd9, 0xc9, 0xc9, 0x66, 0xc7, 0xe0, 0x2b, 0x51, 0xac, 0x5a,
|
||||
0xb1, 0xda, 0xcc, 0xbd, 0xf5, 0x7f, 0x09, 0xe2, 0xee, 0x0a, 0x72, 0x04, 0x7d, 0xd1, 0xea, 0xac,
|
||||
0xac, 0xed, 0x9c, 0xd6, 0xfb, 0x5d, 0xa8, 0xde, 0x73, 0xa1, 0x4e, 0x01, 0x72, 0x4c, 0xa5, 0x58,
|
||||
0xd0, 0x85, 0xf4, 0x29, 0x21, 0x20, 0x42, 0x3b, 0x8c, 0x60, 0xa0, 0x64, 0x82, 0x45, 0x83, 0xd1,
|
||||
0x80, 0x62, 0x1b, 0x97, 0x9d, 0x80, 0xf7, 0x28, 0x15, 0x46, 0x3e, 0x5d, 0x82, 0x6f, 0x2e, 0xe1,
|
||||
0x5a, 0x2a, 0xe4, 0x44, 0xd9, 0xbf, 0xe0, 0x3e, 0x22, 0x92, 0x32, 0xe1, 0xc5, 0x80, 0x82, 0x88,
|
||||
0xdc, 0x30, 0x76, 0x06, 0xa1, 0xad, 0xb1, 0xa3, 0x0d, 0x58, 0x64, 0xa4, 0x7b, 0xa6, 0x2f, 0xfb,
|
||||
0x83, 0xbe, 0xc7, 0xe0, 0xa7, 0x6d, 0x2d, 0x68, 0xac, 0xbf, 0x27, 0xce, 0x74, 0xc4, 0xb7, 0xfe,
|
||||
0x76, 0x69, 0x87, 0x3b, 0x4b, 0x3b, 0x87, 0x61, 0x8d, 0x0a, 0x45, 0x83, 0x0b, 0x2d, 0x73, 0x8c,
|
||||
0xfe, 0x99, 0x38, 0x53, 0x97, 0x87, 0x96, 0xdd, 0xcb, 0xdc, 0x34, 0xd6, 0x7b, 0x92, 0x29, 0x96,
|
||||
0xd1, 0x11, 0x75, 0x1d, 0x98, 0xae, 0x3f, 0x1a, 0xc0, 0x3b, 0x1e, 0x7f, 0x75, 0xc0, 0xbd, 0x46,
|
||||
0x64, 0x2f, 0xc1, 0x4f, 0xda, 0xba, 0xc6, 0x22, 0x59, 0xdb, 0x6f, 0x6a, 0x6c, 0x27, 0x9c, 0xcd,
|
||||
0x2d, 0xe7, 0xdb, 0x0c, 0x23, 0xa1, 0x48, 0xd3, 0x1a, 0x9b, 0x86, 0x96, 0x39, 0xe4, 0x1b, 0x97,
|
||||
0xb6, 0x96, 0x97, 0x6d, 0xa1, 0x69, 0x99, 0x1e, 0xb7, 0x5e, 0x7c, 0x02, 0xfe, 0xa6, 0x0e, 0x1b,
|
||||
0x80, 0x7b, 0xf3, 0x66, 0x3e, 0xde, 0x33, 0xc6, 0xc3, 0xdd, 0xdb, 0xb1, 0x13, 0xcf, 0xc0, 0x33,
|
||||
0x42, 0x9b, 0x29, 0x0b, 0x91, 0x77, 0x5f, 0x75, 0xc0, 0xc9, 0x36, 0xac, 0x91, 0x5f, 0xba, 0xab,
|
||||
0xf1, 0x38, 0xd9, 0xf1, 0x6b, 0xe8, 0xd1, 0x14, 0xe6, 0x74, 0x3e, 0xcb, 0x54, 0x77, 0xb7, 0x36,
|
||||
0xe2, 0x9d, 0x63, 0x9a, 0xc8, 0x50, 0xae, 0x32, 0x4d, 0x8f, 0x46, 0xdc, 0x7a, 0xcb, 0x3e, 0xfd,
|
||||
0x93, 0xbc, 0xfa, 0x19, 0x00, 0x00, 0xff, 0xff, 0xcb, 0xd7, 0xcb, 0x38, 0x58, 0x04, 0x00, 0x00,
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ if (goog.DEBUG && !COMPILED) {
|
|||
* @constructor
|
||||
*/
|
||||
proto.pb.Channel = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.pb.Channel.repeatedFields_, null);
|
||||
};
|
||||
goog.inherits(proto.pb.Channel, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
|
@ -373,6 +373,13 @@ proto.pb.Claim.prototype.hasChannel = function() {
|
|||
|
||||
|
||||
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
* @private {!Array<number>}
|
||||
* @const
|
||||
*/
|
||||
proto.pb.Channel.repeatedFields_ = [6];
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
|
@ -407,6 +414,7 @@ proto.pb.Channel.toObject = function(includeInstance, msg) {
|
|||
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||
contactEmail: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||
homepageUrl: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
||||
tagsList: jspb.Message.getRepeatedField(msg, 6),
|
||||
thumbnailUrl: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
||||
coverUrl: jspb.Message.getFieldWithDefault(msg, 17, "")
|
||||
};
|
||||
|
@ -465,6 +473,10 @@ proto.pb.Channel.deserializeBinaryFromReader = function(msg, reader) {
|
|||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setHomepageUrl(value);
|
||||
break;
|
||||
case 6:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.addTags(value);
|
||||
break;
|
||||
case 16:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setThumbnailUrl(value);
|
||||
|
@ -537,6 +549,13 @@ proto.pb.Channel.serializeBinaryToWriter = function(message, writer) {
|
|||
f
|
||||
);
|
||||
}
|
||||
f = message.getTagsList();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedString(
|
||||
6,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getThumbnailUrl();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
|
@ -653,6 +672,38 @@ proto.pb.Channel.prototype.setHomepageUrl = function(value) {
|
|||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated string tags = 6;
|
||||
* @return {!Array<string>}
|
||||
*/
|
||||
proto.pb.Channel.prototype.getTagsList = function() {
|
||||
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!Array<string>} value */
|
||||
proto.pb.Channel.prototype.setTagsList = function(value) {
|
||||
jspb.Message.setField(this, 6, value || []);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @param {number=} opt_index
|
||||
*/
|
||||
proto.pb.Channel.prototype.addTags = function(value, opt_index) {
|
||||
jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
*/
|
||||
proto.pb.Channel.prototype.clearTagsList = function() {
|
||||
this.setTagsList([]);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string thumbnail_url = 16;
|
||||
* @return {string}
|
||||
|
|
|
@ -63,4 +63,4 @@ message File {
|
|||
message Video {
|
||||
uint32 width = 1;
|
||||
uint32 height = 2;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
|
|||
package='pb',
|
||||
syntax='proto3',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\x0b\x63laim.proto\x12\x02pb\"\x80\x01\n\x05\x43laim\x12\x1c\n\x04type\x18\x01 \x01(\x0e\x32\x0e.pb.Claim.Type\x12\x1a\n\x06stream\x18\x02 \x01(\x0b\x32\n.pb.Stream\x12\x1c\n\x07\x63hannel\x18\x03 \x01(\x0b\x32\x0b.pb.Channel\"\x1f\n\x04Type\x12\n\n\x06STREAM\x10\x00\x12\x0b\n\x07\x43HANNEL\x10\x01\"\x98\x01\n\x07\x43hannel\x12\x12\n\npublic_key\x18\x01 \x01(\x0c\x12\r\n\x05title\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x15\n\rcontact_email\x18\x04 \x01(\t\x12\x14\n\x0chomepage_url\x18\x05 \x01(\t\x12\x15\n\rthumbnail_url\x18\x10 \x01(\t\x12\x11\n\tcover_url\x18\x11 \x01(\t\"\xab\x02\n\x06Stream\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\x10\n\x08language\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12\x0e\n\x06\x61uthor\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x12\n\nmedia_type\x18\x06 \x01(\t\x12\x0f\n\x07license\x18\x07 \x01(\t\x12\x16\n\x04\x66ile\x18\x08 \x01(\x0b\x32\x08.pb.File\x12\x14\n\x03\x66\x65\x65\x18\x10 \x01(\x0b\x32\x07.pb.Fee\x12\x13\n\x0blicense_url\x18\x11 \x01(\t\x12\x15\n\rthumbnail_url\x18\x12 \x01(\t\x12\x10\n\x08\x64uration\x18\x13 \x01(\r\x12\x0c\n\x04tags\x18\x14 \x03(\t\x12\x14\n\x0crelease_time\x18\x15 \x01(\x03\x12\x18\n\x05video\x18\x16 \x01(\x0b\x32\t.pb.Video\"h\n\x03\x46\x65\x65\x12\"\n\x08\x63urrency\x18\x01 \x01(\x0e\x32\x10.pb.Fee.Currency\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0c\x12\x0e\n\x06\x61mount\x18\x03 \x01(\x04\"\x1c\n\x08\x43urrency\x12\x07\n\x03LBC\x10\x00\x12\x07\n\x03USD\x10\x01\"\"\n\x04\x46ile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04size\x18\x02 \x01(\x04\"&\n\x05Video\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\rb\x06proto3')
|
||||
serialized_pb=_b('\n\x0b\x63laim.proto\x12\x02pb\"\x80\x01\n\x05\x43laim\x12\x1c\n\x04type\x18\x01 \x01(\x0e\x32\x0e.pb.Claim.Type\x12\x1a\n\x06stream\x18\x02 \x01(\x0b\x32\n.pb.Stream\x12\x1c\n\x07\x63hannel\x18\x03 \x01(\x0b\x32\x0b.pb.Channel\"\x1f\n\x04Type\x12\n\n\x06STREAM\x10\x00\x12\x0b\n\x07\x43HANNEL\x10\x01\"\xa6\x01\n\x07\x43hannel\x12\x12\n\npublic_key\x18\x01 \x01(\x0c\x12\r\n\x05title\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x15\n\rcontact_email\x18\x04 \x01(\t\x12\x14\n\x0chomepage_url\x18\x05 \x01(\t\x12\x0c\n\x04tags\x18\x06 \x03(\t\x12\x15\n\rthumbnail_url\x18\x10 \x01(\t\x12\x11\n\tcover_url\x18\x11 \x01(\t\"\xab\x02\n\x06Stream\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\x10\n\x08language\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12\x0e\n\x06\x61uthor\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x12\n\nmedia_type\x18\x06 \x01(\t\x12\x0f\n\x07license\x18\x07 \x01(\t\x12\x16\n\x04\x66ile\x18\x08 \x01(\x0b\x32\x08.pb.File\x12\x14\n\x03\x66\x65\x65\x18\x10 \x01(\x0b\x32\x07.pb.Fee\x12\x13\n\x0blicense_url\x18\x11 \x01(\t\x12\x15\n\rthumbnail_url\x18\x12 \x01(\t\x12\x10\n\x08\x64uration\x18\x13 \x01(\r\x12\x0c\n\x04tags\x18\x14 \x03(\t\x12\x14\n\x0crelease_time\x18\x15 \x01(\x03\x12\x18\n\x05video\x18\x16 \x01(\x0b\x32\t.pb.Video\"h\n\x03\x46\x65\x65\x12\"\n\x08\x63urrency\x18\x01 \x01(\x0e\x32\x10.pb.Fee.Currency\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0c\x12\x0e\n\x06\x61mount\x18\x03 \x01(\x04\"\x1c\n\x08\x43urrency\x12\x07\n\x03LBC\x10\x00\x12\x07\n\x03USD\x10\x01\"\"\n\x04\x46ile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04size\x18\x02 \x01(\x04\"&\n\x05Video\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\rb\x06proto3')
|
||||
)
|
||||
|
||||
|
||||
|
@ -64,8 +64,8 @@ _FEE_CURRENCY = _descriptor.EnumDescriptor(
|
|||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=683,
|
||||
serialized_end=711,
|
||||
serialized_start=697,
|
||||
serialized_end=725,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_FEE_CURRENCY)
|
||||
|
||||
|
@ -159,14 +159,21 @@ _CHANNEL = _descriptor.Descriptor(
|
|||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='thumbnail_url', full_name='pb.Channel.thumbnail_url', index=5,
|
||||
name='tags', full_name='pb.Channel.tags', index=5,
|
||||
number=6, type=9, cpp_type=9, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='thumbnail_url', full_name='pb.Channel.thumbnail_url', index=6,
|
||||
number=16, 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),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='cover_url', full_name='pb.Channel.cover_url', index=6,
|
||||
name='cover_url', full_name='pb.Channel.cover_url', index=7,
|
||||
number=17, 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,
|
||||
|
@ -185,7 +192,7 @@ _CHANNEL = _descriptor.Descriptor(
|
|||
oneofs=[
|
||||
],
|
||||
serialized_start=151,
|
||||
serialized_end=303,
|
||||
serialized_end=317,
|
||||
)
|
||||
|
||||
|
||||
|
@ -313,8 +320,8 @@ _STREAM = _descriptor.Descriptor(
|
|||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=306,
|
||||
serialized_end=605,
|
||||
serialized_start=320,
|
||||
serialized_end=619,
|
||||
)
|
||||
|
||||
|
||||
|
@ -359,8 +366,8 @@ _FEE = _descriptor.Descriptor(
|
|||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=607,
|
||||
serialized_end=711,
|
||||
serialized_start=621,
|
||||
serialized_end=725,
|
||||
)
|
||||
|
||||
|
||||
|
@ -397,8 +404,8 @@ _FILE = _descriptor.Descriptor(
|
|||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=713,
|
||||
serialized_end=747,
|
||||
serialized_start=727,
|
||||
serialized_end=761,
|
||||
)
|
||||
|
||||
|
||||
|
@ -435,8 +442,8 @@ _VIDEO = _descriptor.Descriptor(
|
|||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=749,
|
||||
serialized_end=787,
|
||||
serialized_start=763,
|
||||
serialized_end=801,
|
||||
)
|
||||
|
||||
_CLAIM.fields_by_name['type'].enum_type = _CLAIM_TYPE
|
||||
|
|
Loading…
Reference in a new issue