rename v1 instead
This commit is contained in:
parent
50f8d6a2cb
commit
fd823b69f3
49 changed files with 3544 additions and 3351 deletions
|
@ -19,23 +19,23 @@
|
|||
#endif
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
class CertificateDefaultTypeInternal {
|
||||
public:
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Certificate>
|
||||
_instance;
|
||||
} _Certificate_default_instance_;
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace protobuf_certificate_2eproto {
|
||||
static void InitDefaultsCertificate() {
|
||||
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 =
|
||||
|
@ -49,24 +49,24 @@ void InitDefaults() {
|
|||
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::Certificate, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Certificate, _internal_metadata_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Certificate, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_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_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Certificate, version_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Certificate, keytype_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_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)},
|
||||
{ 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() {
|
||||
|
@ -90,16 +90,16 @@ void protobuf_RegisterTypes(const ::std::string&) {
|
|||
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"
|
||||
"\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::DescriptorPool::InternalAddGeneratedFile(
|
||||
descriptor, 257);
|
||||
descriptor, 278);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"certificate.proto", &protobuf_RegisterTypes);
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ struct StaticDescriptorInitializer {
|
|||
}
|
||||
} static_descriptor_initializer;
|
||||
} // namespace protobuf_certificate_2eproto
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
const ::google::protobuf::EnumDescriptor* Certificate_Version_descriptor() {
|
||||
protobuf_certificate_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_certificate_2eproto::file_level_enum_descriptors[0];
|
||||
|
@ -169,7 +169,7 @@ Certificate::Certificate()
|
|||
::google::protobuf::internal::InitSCC(
|
||||
&protobuf_certificate_2eproto::scc_info_Certificate.base);
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:pb.Certificate)
|
||||
// @@protoc_insertion_point(constructor:legacy_pb.Certificate)
|
||||
}
|
||||
Certificate::Certificate(const Certificate& from)
|
||||
: ::google::protobuf::Message(),
|
||||
|
@ -183,7 +183,7 @@ 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() {
|
||||
|
@ -194,7 +194,7 @@ void Certificate::SharedCtor() {
|
|||
}
|
||||
|
||||
Certificate::~Certificate() {
|
||||
// @@protoc_insertion_point(destructor:pb.Certificate)
|
||||
// @@protoc_insertion_point(destructor:legacy_pb.Certificate)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
|
@ -217,7 +217,7 @@ const Certificate& Certificate::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;
|
||||
|
@ -239,13 +239,13 @@ bool Certificate::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.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 */)) {
|
||||
|
@ -253,8 +253,8 @@ bool Certificate::MergePartialFromCodedStream(
|
|||
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));
|
||||
|
@ -265,7 +265,7 @@ 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 */)) {
|
||||
|
@ -273,8 +273,8 @@ bool Certificate::MergePartialFromCodedStream(
|
|||
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));
|
||||
|
@ -309,28 +309,28 @@ 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_
|
||||
}
|
||||
|
||||
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 +346,24 @@ 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)
|
||||
// @@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 +380,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 +396,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 +410,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,11 +424,11 @@ 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());
|
||||
|
||||
|
@ -441,22 +441,22 @@ size_t Certificate::ByteSizeLong() const {
|
|||
}
|
||||
|
||||
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>(
|
||||
&from);
|
||||
if (source == NULL) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Certificate)
|
||||
// @@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;
|
||||
|
@ -479,14 +479,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);
|
||||
|
@ -518,11 +518,11 @@ void Certificate::InternalSwap(Certificate* other) {
|
|||
|
||||
|
||||
// @@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<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::legacy_pb::Certificate* Arena::CreateMaybeMessage< ::legacy_pb::Certificate >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::legacy_pb::Certificate >(arena);
|
||||
}
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006000
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006001
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
@ -46,17 +46,17 @@ struct TableStruct {
|
|||
};
|
||||
void AddDescriptors();
|
||||
} // namespace protobuf_certificate_2eproto
|
||||
namespace pb {
|
||||
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 +100,7 @@ inline bool KeyType_Parse(
|
|||
}
|
||||
// ===================================================================
|
||||
|
||||
class Certificate : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Certificate) */ {
|
||||
class Certificate : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Certificate) */ {
|
||||
public:
|
||||
Certificate();
|
||||
virtual ~Certificate();
|
||||
|
@ -235,21 +235,21 @@ 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();
|
||||
|
@ -280,7 +280,7 @@ 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;
|
||||
}
|
||||
|
@ -294,18 +294,18 @@ inline void Certificate::clear_version() {
|
|||
version_ = 0;
|
||||
clear_has_version();
|
||||
}
|
||||
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));
|
||||
inline void Certificate::set_version(::legacy_pb::Certificate_Version value) {
|
||||
assert(::legacy_pb::Certificate_Version_IsValid(value));
|
||||
set_has_version();
|
||||
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;
|
||||
}
|
||||
|
@ -319,15 +319,15 @@ inline void Certificate::clear_keytype() {
|
|||
keytype_ = 0;
|
||||
clear_has_keytype();
|
||||
}
|
||||
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));
|
||||
inline void Certificate::set_keytype(::legacy_pb::KeyType value) {
|
||||
assert(::legacy_pb::KeyType_IsValid(value));
|
||||
set_has_keytype();
|
||||
keytype_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Certificate.keyType)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Certificate.keyType)
|
||||
}
|
||||
|
||||
// required bytes publicKey = 4;
|
||||
|
@ -345,41 +345,41 @@ inline void Certificate::clear_publickey() {
|
|||
clear_has_publickey();
|
||||
}
|
||||
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();
|
||||
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();
|
||||
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();
|
||||
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();
|
||||
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)
|
||||
// @@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;
|
||||
}
|
||||
|
@ -393,7 +393,7 @@ inline void Certificate::set_allocated_publickey(::std::string* publickey) {
|
|||
clear_has_publickey();
|
||||
}
|
||||
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 +402,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
|
||||
|
|
115
v1/cpp/fee.pb.cc
115
v1/cpp/fee.pb.cc
|
@ -19,23 +19,23 @@
|
|||
#endif
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
class FeeDefaultTypeInternal {
|
||||
public:
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Fee>
|
||||
_instance;
|
||||
} _Fee_default_instance_;
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace protobuf_fee_2eproto {
|
||||
static void InitDefaultsFee() {
|
||||
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 =
|
||||
|
@ -49,26 +49,26 @@ void InitDefaults() {
|
|||
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::Fee, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Fee, _internal_metadata_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Fee, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_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_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Fee, version_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Fee, currency_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Fee, address_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_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)},
|
||||
{ 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() {
|
||||
|
@ -92,15 +92,16 @@ void protobuf_RegisterTypes(const ::std::string&) {
|
|||
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"
|
||||
"\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::DescriptorPool::InternalAddGeneratedFile(
|
||||
descriptor, 231);
|
||||
descriptor, 252);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"fee.proto", &protobuf_RegisterTypes);
|
||||
}
|
||||
|
@ -116,7 +117,7 @@ struct StaticDescriptorInitializer {
|
|||
}
|
||||
} static_descriptor_initializer;
|
||||
} // namespace protobuf_fee_2eproto
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
const ::google::protobuf::EnumDescriptor* Fee_Version_descriptor() {
|
||||
protobuf_fee_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_fee_2eproto::file_level_enum_descriptors[0];
|
||||
|
@ -180,7 +181,7 @@ Fee::Fee()
|
|||
::google::protobuf::internal::InitSCC(
|
||||
&protobuf_fee_2eproto::scc_info_Fee.base);
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:pb.Fee)
|
||||
// @@protoc_insertion_point(constructor:legacy_pb.Fee)
|
||||
}
|
||||
Fee::Fee(const Fee& from)
|
||||
: ::google::protobuf::Message(),
|
||||
|
@ -194,7 +195,7 @@ 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() {
|
||||
|
@ -205,7 +206,7 @@ void Fee::SharedCtor() {
|
|||
}
|
||||
|
||||
Fee::~Fee() {
|
||||
// @@protoc_insertion_point(destructor:pb.Fee)
|
||||
// @@protoc_insertion_point(destructor:legacy_pb.Fee)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
|
@ -228,7 +229,7 @@ const Fee& Fee::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;
|
||||
|
@ -250,13 +251,13 @@ bool Fee::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.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 */)) {
|
||||
|
@ -264,8 +265,8 @@ bool Fee::MergePartialFromCodedStream(
|
|||
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));
|
||||
|
@ -276,7 +277,7 @@ 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 */)) {
|
||||
|
@ -284,8 +285,8 @@ bool Fee::MergePartialFromCodedStream(
|
|||
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));
|
||||
|
@ -334,28 +335,28 @@ 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_
|
||||
}
|
||||
|
||||
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 +377,24 @@ 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)
|
||||
// @@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 +416,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 +432,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 +451,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 +465,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());
|
||||
|
||||
|
@ -484,22 +485,22 @@ size_t Fee::ByteSizeLong() const {
|
|||
}
|
||||
|
||||
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>(
|
||||
&from);
|
||||
if (source == NULL) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Fee)
|
||||
// @@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;
|
||||
|
@ -525,14 +526,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);
|
||||
|
@ -565,11 +566,11 @@ void Fee::InternalSwap(Fee* other) {
|
|||
|
||||
|
||||
// @@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<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::legacy_pb::Fee* Arena::CreateMaybeMessage< ::legacy_pb::Fee >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::legacy_pb::Fee >(arena);
|
||||
}
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006000
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006001
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
@ -46,17 +46,17 @@ struct TableStruct {
|
|||
};
|
||||
void AddDescriptors();
|
||||
} // namespace protobuf_fee_2eproto
|
||||
namespace pb {
|
||||
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 +100,7 @@ inline bool Fee_Currency_Parse(
|
|||
}
|
||||
// ===================================================================
|
||||
|
||||
class Fee : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Fee) */ {
|
||||
class Fee : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Fee) */ {
|
||||
public:
|
||||
Fee();
|
||||
virtual ~Fee();
|
||||
|
@ -265,19 +265,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,7 +286,7 @@ 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();
|
||||
|
@ -320,7 +320,7 @@ 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;
|
||||
}
|
||||
|
@ -334,18 +334,18 @@ inline void Fee::clear_version() {
|
|||
version_ = 0;
|
||||
clear_has_version();
|
||||
}
|
||||
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));
|
||||
inline void Fee::set_version(::legacy_pb::Fee_Version value) {
|
||||
assert(::legacy_pb::Fee_Version_IsValid(value));
|
||||
set_has_version();
|
||||
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;
|
||||
}
|
||||
|
@ -359,15 +359,15 @@ inline void Fee::clear_currency() {
|
|||
currency_ = 0;
|
||||
clear_has_currency();
|
||||
}
|
||||
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));
|
||||
inline void Fee::set_currency(::legacy_pb::Fee_Currency value) {
|
||||
assert(::legacy_pb::Fee_Currency_IsValid(value));
|
||||
set_has_currency();
|
||||
currency_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Fee.currency)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Fee.currency)
|
||||
}
|
||||
|
||||
// required bytes address = 3;
|
||||
|
@ -385,41 +385,41 @@ inline void Fee::clear_address() {
|
|||
clear_has_address();
|
||||
}
|
||||
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();
|
||||
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();
|
||||
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();
|
||||
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();
|
||||
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)
|
||||
// @@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;
|
||||
}
|
||||
|
@ -433,7 +433,7 @@ inline void Fee::set_allocated_address(::std::string* address) {
|
|||
clear_has_address();
|
||||
}
|
||||
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;
|
||||
|
@ -451,13 +451,13 @@ inline void Fee::clear_amount() {
|
|||
clear_has_amount();
|
||||
}
|
||||
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();
|
||||
amount_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Fee.amount)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Fee.amount)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
@ -466,20 +466,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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: claim.proto
|
||||
// source: legacy_claim.proto
|
||||
|
||||
#include "claim.pb.h"
|
||||
#include "legacy_claim.pb.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
|
@ -28,23 +28,23 @@ extern PROTOBUF_INTERNAL_EXPORT_protobuf_signature_2eproto ::google::protobuf::i
|
|||
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 {
|
||||
namespace legacy_pb {
|
||||
class ClaimDefaultTypeInternal {
|
||||
public:
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Claim>
|
||||
_instance;
|
||||
} _Claim_default_instance_;
|
||||
} // namespace pb
|
||||
namespace protobuf_claim_2eproto {
|
||||
} // namespace legacy_pb
|
||||
namespace protobuf_legacy_5fclaim_2eproto {
|
||||
static void InitDefaultsClaim() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
{
|
||||
void* ptr = &::pb::_Claim_default_instance_;
|
||||
new (ptr) ::pb::Claim();
|
||||
void* ptr = &::legacy_pb::_Claim_default_instance_;
|
||||
new (ptr) ::legacy_pb::Claim();
|
||||
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
||||
}
|
||||
::pb::Claim::InitAsDefaultInstance();
|
||||
::legacy_pb::Claim::InitAsDefaultInstance();
|
||||
}
|
||||
|
||||
::google::protobuf::internal::SCCInfo<3> scc_info_Claim =
|
||||
|
@ -61,16 +61,16 @@ void InitDefaults() {
|
|||
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_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Claim, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_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_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Claim, version_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Claim, claimtype_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Claim, stream_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Claim, certificate_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Claim, publishersignature_),
|
||||
3,
|
||||
4,
|
||||
0,
|
||||
|
@ -78,17 +78,17 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|||
2,
|
||||
};
|
||||
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 10, sizeof(::pb::Claim)},
|
||||
{ 0, 10, sizeof(::legacy_pb::Claim)},
|
||||
};
|
||||
|
||||
static ::google::protobuf::Message const * const file_default_instances[] = {
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Claim_default_instance_),
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::legacy_pb::_Claim_default_instance_),
|
||||
};
|
||||
|
||||
void protobuf_AssignDescriptors() {
|
||||
AddDescriptors();
|
||||
AssignDescriptors(
|
||||
"claim.proto", schemas, file_default_instances, TableStruct::offsets,
|
||||
"legacy_claim.proto", schemas, file_default_instances, TableStruct::offsets,
|
||||
file_level_metadata, file_level_enum_descriptors, NULL);
|
||||
}
|
||||
|
||||
|
@ -106,21 +106,22 @@ void protobuf_RegisterTypes(const ::std::string&) {
|
|||
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"
|
||||
"\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::DescriptorPool::InternalAddGeneratedFile(
|
||||
descriptor, 380);
|
||||
descriptor, 429);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"claim.proto", &protobuf_RegisterTypes);
|
||||
"legacy_claim.proto", &protobuf_RegisterTypes);
|
||||
::protobuf_stream_2eproto::AddDescriptors();
|
||||
::protobuf_certificate_2eproto::AddDescriptors();
|
||||
::protobuf_signature_2eproto::AddDescriptors();
|
||||
|
@ -136,11 +137,11 @@ struct StaticDescriptorInitializer {
|
|||
AddDescriptors();
|
||||
}
|
||||
} static_descriptor_initializer;
|
||||
} // namespace protobuf_claim_2eproto
|
||||
namespace pb {
|
||||
} // namespace protobuf_legacy_5fclaim_2eproto
|
||||
namespace legacy_pb {
|
||||
const ::google::protobuf::EnumDescriptor* Claim_Version_descriptor() {
|
||||
protobuf_claim_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_claim_2eproto::file_level_enum_descriptors[0];
|
||||
protobuf_legacy_5fclaim_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_legacy_5fclaim_2eproto::file_level_enum_descriptors[0];
|
||||
}
|
||||
bool Claim_Version_IsValid(int value) {
|
||||
switch (value) {
|
||||
|
@ -160,8 +161,8 @@ 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];
|
||||
protobuf_legacy_5fclaim_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_legacy_5fclaim_2eproto::file_level_enum_descriptors[1];
|
||||
}
|
||||
bool Claim_ClaimType_IsValid(int value) {
|
||||
switch (value) {
|
||||
|
@ -186,12 +187,12 @@ const int Claim::ClaimType_ARRAYSIZE;
|
|||
// ===================================================================
|
||||
|
||||
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());
|
||||
::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());
|
||||
}
|
||||
void Claim::clear_stream() {
|
||||
if (stream_ != NULL) stream_->Clear();
|
||||
|
@ -216,9 +217,9 @@ const int Claim::kPublisherSignatureFieldNumber;
|
|||
Claim::Claim()
|
||||
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
||||
::google::protobuf::internal::InitSCC(
|
||||
&protobuf_claim_2eproto::scc_info_Claim.base);
|
||||
&protobuf_legacy_5fclaim_2eproto::scc_info_Claim.base);
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:pb.Claim)
|
||||
// @@protoc_insertion_point(constructor:legacy_pb.Claim)
|
||||
}
|
||||
Claim::Claim(const Claim& from)
|
||||
: ::google::protobuf::Message(),
|
||||
|
@ -226,24 +227,24 @@ Claim::Claim(const Claim& from)
|
|||
_has_bits_(from._has_bits_) {
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
if (from.has_stream()) {
|
||||
stream_ = new ::pb::Stream(*from.stream_);
|
||||
stream_ = new ::legacy_pb::Stream(*from.stream_);
|
||||
} else {
|
||||
stream_ = NULL;
|
||||
}
|
||||
if (from.has_certificate()) {
|
||||
certificate_ = new ::pb::Certificate(*from.certificate_);
|
||||
certificate_ = new ::legacy_pb::Certificate(*from.certificate_);
|
||||
} else {
|
||||
certificate_ = NULL;
|
||||
}
|
||||
if (from.has_publishersignature()) {
|
||||
publishersignature_ = new ::pb::Signature(*from.publishersignature_);
|
||||
publishersignature_ = new ::legacy_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)
|
||||
// @@protoc_insertion_point(copy_constructor:legacy_pb.Claim)
|
||||
}
|
||||
|
||||
void Claim::SharedCtor() {
|
||||
|
@ -253,7 +254,7 @@ void Claim::SharedCtor() {
|
|||
}
|
||||
|
||||
Claim::~Claim() {
|
||||
// @@protoc_insertion_point(destructor:pb.Claim)
|
||||
// @@protoc_insertion_point(destructor:legacy_pb.Claim)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
|
@ -267,18 +268,18 @@ 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;
|
||||
::protobuf_legacy_5fclaim_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return ::protobuf_legacy_5fclaim_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
||||
}
|
||||
|
||||
const Claim& Claim::default_instance() {
|
||||
::google::protobuf::internal::InitSCC(&protobuf_claim_2eproto::scc_info_Claim.base);
|
||||
::google::protobuf::internal::InitSCC(&protobuf_legacy_5fclaim_2eproto::scc_info_Claim.base);
|
||||
return *internal_default_instance();
|
||||
}
|
||||
|
||||
|
||||
void Claim::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:pb.Claim)
|
||||
// @@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;
|
||||
|
@ -311,13 +312,13 @@ 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)
|
||||
// @@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 .pb.Claim.Version version = 1;
|
||||
// required .legacy_pb.Claim.Version version = 1;
|
||||
case 1: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
||||
|
@ -325,8 +326,8 @@ bool Claim::MergePartialFromCodedStream(
|
|||
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));
|
||||
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));
|
||||
|
@ -337,7 +338,7 @@ bool Claim::MergePartialFromCodedStream(
|
|||
break;
|
||||
}
|
||||
|
||||
// required .pb.Claim.ClaimType claimType = 2;
|
||||
// required .legacy_pb.Claim.ClaimType claimType = 2;
|
||||
case 2: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
||||
|
@ -345,8 +346,8 @@ bool Claim::MergePartialFromCodedStream(
|
|||
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));
|
||||
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));
|
||||
|
@ -357,7 +358,7 @@ bool Claim::MergePartialFromCodedStream(
|
|||
break;
|
||||
}
|
||||
|
||||
// optional .pb.Stream stream = 3;
|
||||
// optional .legacy_pb.Stream stream = 3;
|
||||
case 3: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
|
||||
|
@ -369,7 +370,7 @@ bool Claim::MergePartialFromCodedStream(
|
|||
break;
|
||||
}
|
||||
|
||||
// optional .pb.Certificate certificate = 4;
|
||||
// optional .legacy_pb.Certificate certificate = 4;
|
||||
case 4: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
||||
|
@ -381,7 +382,7 @@ bool Claim::MergePartialFromCodedStream(
|
|||
break;
|
||||
}
|
||||
|
||||
// optional .pb.Signature publisherSignature = 5;
|
||||
// optional .legacy_pb.Signature publisherSignature = 5;
|
||||
case 5: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
|
||||
|
@ -405,46 +406,46 @@ bool Claim::MergePartialFromCodedStream(
|
|||
}
|
||||
}
|
||||
success:
|
||||
// @@protoc_insertion_point(parse_success:pb.Claim)
|
||||
// @@protoc_insertion_point(parse_success:legacy_pb.Claim)
|
||||
return true;
|
||||
failure:
|
||||
// @@protoc_insertion_point(parse_failure:pb.Claim)
|
||||
// @@protoc_insertion_point(parse_failure:legacy_pb.Claim)
|
||||
return false;
|
||||
#undef DO_
|
||||
}
|
||||
|
||||
void Claim::SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const {
|
||||
// @@protoc_insertion_point(serialize_start:pb.Claim)
|
||||
// @@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 .pb.Claim.Version version = 1;
|
||||
// required .legacy_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;
|
||||
// required .legacy_pb.Claim.ClaimType claimType = 2;
|
||||
if (cached_has_bits & 0x00000010u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
2, this->claimtype(), output);
|
||||
}
|
||||
|
||||
// optional .pb.Stream stream = 3;
|
||||
// optional .legacy_pb.Stream stream = 3;
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
||||
3, this->_internal_stream(), output);
|
||||
}
|
||||
|
||||
// optional .pb.Certificate certificate = 4;
|
||||
// optional .legacy_pb.Certificate certificate = 4;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
||||
4, this->_internal_certificate(), output);
|
||||
}
|
||||
|
||||
// optional .pb.Signature publisherSignature = 5;
|
||||
// optional .legacy_pb.Signature publisherSignature = 5;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
||||
5, this->_internal_publishersignature(), output);
|
||||
|
@ -454,44 +455,44 @@ void Claim::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
||||
_internal_metadata_.unknown_fields(), output);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_end:pb.Claim)
|
||||
// @@protoc_insertion_point(serialize_end:legacy_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)
|
||||
// @@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 .pb.Claim.Version version = 1;
|
||||
// required .legacy_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;
|
||||
// required .legacy_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;
|
||||
// optional .legacy_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;
|
||||
// optional .legacy_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;
|
||||
// optional .legacy_pb.Signature publisherSignature = 5;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::
|
||||
InternalWriteMessageToArray(
|
||||
|
@ -502,22 +503,22 @@ void Claim::SerializeWithCachedSizes(
|
|||
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields(), target);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:pb.Claim)
|
||||
// @@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:pb.Claim)
|
||||
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:legacy_pb.Claim)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (has_version()) {
|
||||
// required .pb.Claim.Version version = 1;
|
||||
// required .legacy_pb.Claim.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
}
|
||||
|
||||
if (has_claimtype()) {
|
||||
// required .pb.Claim.ClaimType claimType = 2;
|
||||
// required .legacy_pb.Claim.ClaimType claimType = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->claimtype());
|
||||
}
|
||||
|
@ -525,7 +526,7 @@ size_t Claim::RequiredFieldsByteSizeFallback() const {
|
|||
return total_size;
|
||||
}
|
||||
size_t Claim::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:pb.Claim)
|
||||
// @@protoc_insertion_point(message_byte_size_start:legacy_pb.Claim)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
|
@ -534,11 +535,11 @@ size_t Claim::ByteSizeLong() const {
|
|||
_internal_metadata_.unknown_fields());
|
||||
}
|
||||
if (((_has_bits_[0] & 0x00000018) ^ 0x00000018) == 0) { // All required fields are present.
|
||||
// required .pb.Claim.Version version = 1;
|
||||
// required .legacy_pb.Claim.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
|
||||
// required .pb.Claim.ClaimType claimType = 2;
|
||||
// required .legacy_pb.Claim.ClaimType claimType = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->claimtype());
|
||||
|
||||
|
@ -546,21 +547,21 @@ size_t Claim::ByteSizeLong() const {
|
|||
total_size += RequiredFieldsByteSizeFallback();
|
||||
}
|
||||
if (_has_bits_[0 / 32] & 7u) {
|
||||
// optional .pb.Stream stream = 3;
|
||||
// optional .legacy_pb.Stream stream = 3;
|
||||
if (has_stream()) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||||
*stream_);
|
||||
}
|
||||
|
||||
// optional .pb.Certificate certificate = 4;
|
||||
// optional .legacy_pb.Certificate certificate = 4;
|
||||
if (has_certificate()) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||||
*certificate_);
|
||||
}
|
||||
|
||||
// optional .pb.Signature publisherSignature = 5;
|
||||
// optional .legacy_pb.Signature publisherSignature = 5;
|
||||
if (has_publishersignature()) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||||
|
@ -574,22 +575,22 @@ size_t Claim::ByteSizeLong() const {
|
|||
}
|
||||
|
||||
void Claim::MergeFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:pb.Claim)
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:legacy_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)
|
||||
// @@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:pb.Claim)
|
||||
// @@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:pb.Claim)
|
||||
// @@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;
|
||||
|
@ -598,13 +599,13 @@ void Claim::MergeFrom(const Claim& from) {
|
|||
cached_has_bits = from._has_bits_[0];
|
||||
if (cached_has_bits & 31u) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
mutable_stream()->::pb::Stream::MergeFrom(from.stream());
|
||||
mutable_stream()->::legacy_pb::Stream::MergeFrom(from.stream());
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
mutable_certificate()->::pb::Certificate::MergeFrom(from.certificate());
|
||||
mutable_certificate()->::legacy_pb::Certificate::MergeFrom(from.certificate());
|
||||
}
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
mutable_publishersignature()->::pb::Signature::MergeFrom(from.publishersignature());
|
||||
mutable_publishersignature()->::legacy_pb::Signature::MergeFrom(from.publishersignature());
|
||||
}
|
||||
if (cached_has_bits & 0x00000008u) {
|
||||
version_ = from.version_;
|
||||
|
@ -617,14 +618,14 @@ void Claim::MergeFrom(const Claim& from) {
|
|||
}
|
||||
|
||||
void Claim::CopyFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:pb.Claim)
|
||||
// @@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:pb.Claim)
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:legacy_pb.Claim)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
|
@ -660,17 +661,17 @@ void Claim::InternalSwap(Claim* other) {
|
|||
}
|
||||
|
||||
::google::protobuf::Metadata Claim::GetMetadata() const {
|
||||
protobuf_claim_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return ::protobuf_claim_2eproto::file_level_metadata[kIndexInFileMessages];
|
||||
protobuf_legacy_5fclaim_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return ::protobuf_legacy_5fclaim_2eproto::file_level_metadata[kIndexInFileMessages];
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pb::Claim* Arena::CreateMaybeMessage< ::pb::Claim >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::pb::Claim >(arena);
|
||||
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::legacy_pb::Claim* Arena::CreateMaybeMessage< ::legacy_pb::Claim >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::legacy_pb::Claim >(arena);
|
||||
}
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
|
@ -1,19 +1,19 @@
|
|||
// 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 <string>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006000
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006001
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
@ -35,9 +35,9 @@
|
|||
#include "certificate.pb.h"
|
||||
#include "signature.pb.h"
|
||||
// @@protoc_insertion_point(includes)
|
||||
#define PROTOBUF_INTERNAL_EXPORT_protobuf_claim_2eproto
|
||||
#define PROTOBUF_INTERNAL_EXPORT_protobuf_legacy_5fclaim_2eproto
|
||||
|
||||
namespace protobuf_claim_2eproto {
|
||||
namespace protobuf_legacy_5fclaim_2eproto {
|
||||
// Internal implementation detail -- do not use these members.
|
||||
struct TableStruct {
|
||||
static const ::google::protobuf::internal::ParseTableField entries[];
|
||||
|
@ -48,18 +48,18 @@ struct TableStruct {
|
|||
static const ::google::protobuf::uint32 offsets[];
|
||||
};
|
||||
void AddDescriptors();
|
||||
} // namespace protobuf_claim_2eproto
|
||||
namespace pb {
|
||||
} // namespace protobuf_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 +102,7 @@ inline bool Claim_ClaimType_Parse(
|
|||
}
|
||||
// ===================================================================
|
||||
|
||||
class Claim : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Claim) */ {
|
||||
class Claim : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Claim) */ {
|
||||
public:
|
||||
Claim();
|
||||
virtual ~Claim();
|
||||
|
@ -250,57 +250,57 @@ 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;
|
||||
const ::legacy_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;
|
||||
const ::legacy_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;
|
||||
const ::legacy_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();
|
||||
|
@ -319,12 +319,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 ::protobuf_legacy_5fclaim_2eproto::TableStruct;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
@ -337,7 +337,7 @@ 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;
|
||||
}
|
||||
|
@ -351,18 +351,18 @@ inline void Claim::clear_version() {
|
|||
version_ = 0;
|
||||
clear_has_version();
|
||||
}
|
||||
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));
|
||||
inline void Claim::set_version(::legacy_pb::Claim_Version value) {
|
||||
assert(::legacy_pb::Claim_Version_IsValid(value));
|
||||
set_has_version();
|
||||
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;
|
||||
}
|
||||
|
@ -376,18 +376,18 @@ inline void Claim::clear_claimtype() {
|
|||
claimtype_ = 0;
|
||||
clear_has_claimtype();
|
||||
}
|
||||
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));
|
||||
inline void Claim::set_claimtype(::legacy_pb::Claim_ClaimType value) {
|
||||
assert(::legacy_pb::Claim_ClaimType_IsValid(value));
|
||||
set_has_claimtype();
|
||||
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;
|
||||
}
|
||||
|
@ -397,32 +397,32 @@ inline void Claim::set_has_stream() {
|
|||
inline void Claim::clear_has_stream() {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline const ::pb::Stream& Claim::_internal_stream() const {
|
||||
inline const ::legacy_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 const ::legacy_pb::Stream& Claim::stream() const {
|
||||
const ::legacy_pb::Stream* p = stream_;
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Claim.stream)
|
||||
return p != NULL ? *p : *reinterpret_cast<const ::legacy_pb::Stream*>(
|
||||
&::legacy_pb::_Stream_default_instance_);
|
||||
}
|
||||
inline ::pb::Stream* Claim::release_stream() {
|
||||
// @@protoc_insertion_point(field_release:pb.Claim.stream)
|
||||
inline ::legacy_pb::Stream* Claim::release_stream() {
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Claim.stream)
|
||||
clear_has_stream();
|
||||
::pb::Stream* temp = stream_;
|
||||
::legacy_pb::Stream* temp = stream_;
|
||||
stream_ = NULL;
|
||||
return temp;
|
||||
}
|
||||
inline ::pb::Stream* Claim::mutable_stream() {
|
||||
inline ::legacy_pb::Stream* Claim::mutable_stream() {
|
||||
set_has_stream();
|
||||
if (stream_ == NULL) {
|
||||
auto* p = CreateMaybeMessage<::pb::Stream>(GetArenaNoVirtual());
|
||||
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) {
|
||||
delete reinterpret_cast< ::google::protobuf::MessageLite*>(stream_);
|
||||
|
@ -438,10 +438,10 @@ inline void Claim::set_allocated_stream(::pb::Stream* stream) {
|
|||
clear_has_stream();
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
@ -451,32 +451,32 @@ inline void Claim::set_has_certificate() {
|
|||
inline void Claim::clear_has_certificate() {
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline const ::pb::Certificate& Claim::_internal_certificate() const {
|
||||
inline const ::legacy_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 const ::legacy_pb::Certificate& Claim::certificate() const {
|
||||
const ::legacy_pb::Certificate* p = certificate_;
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Claim.certificate)
|
||||
return p != NULL ? *p : *reinterpret_cast<const ::legacy_pb::Certificate*>(
|
||||
&::legacy_pb::_Certificate_default_instance_);
|
||||
}
|
||||
inline ::pb::Certificate* Claim::release_certificate() {
|
||||
// @@protoc_insertion_point(field_release:pb.Claim.certificate)
|
||||
inline ::legacy_pb::Certificate* Claim::release_certificate() {
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Claim.certificate)
|
||||
clear_has_certificate();
|
||||
::pb::Certificate* temp = certificate_;
|
||||
::legacy_pb::Certificate* temp = certificate_;
|
||||
certificate_ = NULL;
|
||||
return temp;
|
||||
}
|
||||
inline ::pb::Certificate* Claim::mutable_certificate() {
|
||||
inline ::legacy_pb::Certificate* Claim::mutable_certificate() {
|
||||
set_has_certificate();
|
||||
if (certificate_ == NULL) {
|
||||
auto* p = CreateMaybeMessage<::pb::Certificate>(GetArenaNoVirtual());
|
||||
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) {
|
||||
delete reinterpret_cast< ::google::protobuf::MessageLite*>(certificate_);
|
||||
|
@ -492,10 +492,10 @@ inline void Claim::set_allocated_certificate(::pb::Certificate* certificate) {
|
|||
clear_has_certificate();
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
@ -505,32 +505,32 @@ inline void Claim::set_has_publishersignature() {
|
|||
inline void Claim::clear_has_publishersignature() {
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline const ::pb::Signature& Claim::_internal_publishersignature() const {
|
||||
inline const ::legacy_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 const ::legacy_pb::Signature& Claim::publishersignature() const {
|
||||
const ::legacy_pb::Signature* p = publishersignature_;
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Claim.publisherSignature)
|
||||
return p != NULL ? *p : *reinterpret_cast<const ::legacy_pb::Signature*>(
|
||||
&::legacy_pb::_Signature_default_instance_);
|
||||
}
|
||||
inline ::pb::Signature* Claim::release_publishersignature() {
|
||||
// @@protoc_insertion_point(field_release:pb.Claim.publisherSignature)
|
||||
inline ::legacy_pb::Signature* Claim::release_publishersignature() {
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Claim.publisherSignature)
|
||||
clear_has_publishersignature();
|
||||
::pb::Signature* temp = publishersignature_;
|
||||
::legacy_pb::Signature* temp = publishersignature_;
|
||||
publishersignature_ = NULL;
|
||||
return temp;
|
||||
}
|
||||
inline ::pb::Signature* Claim::mutable_publishersignature() {
|
||||
inline ::legacy_pb::Signature* Claim::mutable_publishersignature() {
|
||||
set_has_publishersignature();
|
||||
if (publishersignature_ == NULL) {
|
||||
auto* p = CreateMaybeMessage<::pb::Signature>(GetArenaNoVirtual());
|
||||
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) {
|
||||
delete reinterpret_cast< ::google::protobuf::MessageLite*>(publishersignature_);
|
||||
|
@ -546,7 +546,7 @@ inline void Claim::set_allocated_publishersignature(::pb::Signature* publishersi
|
|||
clear_has_publishersignature();
|
||||
}
|
||||
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 +555,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 +576,4 @@ inline const EnumDescriptor* GetEnumDescriptor< ::pb::Claim_ClaimType>() {
|
|||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#endif // PROTOBUF_INCLUDED_claim_2eproto
|
||||
#endif // PROTOBUF_INCLUDED_legacy_5fclaim_2eproto
|
|
@ -22,23 +22,23 @@
|
|||
namespace protobuf_fee_2eproto {
|
||||
extern PROTOBUF_INTERNAL_EXPORT_protobuf_fee_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Fee;
|
||||
} // namespace protobuf_fee_2eproto
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
class MetadataDefaultTypeInternal {
|
||||
public:
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Metadata>
|
||||
_instance;
|
||||
} _Metadata_default_instance_;
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace protobuf_metadata_2eproto {
|
||||
static void InitDefaultsMetadata() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
{
|
||||
void* ptr = &::pb::_Metadata_default_instance_;
|
||||
new (ptr) ::pb::Metadata();
|
||||
void* ptr = &::legacy_pb::_Metadata_default_instance_;
|
||||
new (ptr) ::legacy_pb::Metadata();
|
||||
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
||||
}
|
||||
::pb::Metadata::InitAsDefaultInstance();
|
||||
::legacy_pb::Metadata::InitAsDefaultInstance();
|
||||
}
|
||||
|
||||
::google::protobuf::internal::SCCInfo<1> scc_info_Metadata =
|
||||
|
@ -53,22 +53,22 @@ void InitDefaults() {
|
|||
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::Metadata, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Metadata, _internal_metadata_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Metadata, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Metadata, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Metadata, version_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Metadata, language_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Metadata, title_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Metadata, description_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Metadata, author_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Metadata, license_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Metadata, nsfw_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Metadata, fee_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Metadata, thumbnail_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Metadata, preview_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Metadata, licenseurl_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Metadata, version_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Metadata, language_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Metadata, title_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Metadata, description_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Metadata, author_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Metadata, license_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Metadata, nsfw_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Metadata, fee_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Metadata, thumbnail_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Metadata, preview_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Metadata, licenseurl_),
|
||||
8,
|
||||
9,
|
||||
0,
|
||||
|
@ -82,11 +82,11 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|||
6,
|
||||
};
|
||||
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 16, sizeof(::pb::Metadata)},
|
||||
{ 0, 16, sizeof(::legacy_pb::Metadata)},
|
||||
};
|
||||
|
||||
static ::google::protobuf::Message const * const file_default_instances[] = {
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::pb::_Metadata_default_instance_),
|
||||
reinterpret_cast<const ::google::protobuf::Message*>(&::legacy_pb::_Metadata_default_instance_),
|
||||
};
|
||||
|
||||
void protobuf_AssignDescriptors() {
|
||||
|
@ -110,58 +110,58 @@ void protobuf_RegisterTypes(const ::std::string&) {
|
|||
void AddDescriptorsImpl() {
|
||||
InitDefaults();
|
||||
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
||||
"\n\016metadata.proto\022\002pb\032\tfee.proto\"\347\016\n\010Meta"
|
||||
"data\022%\n\007version\030\001 \002(\0162\024.pb.Metadata.Vers"
|
||||
"ion\022\'\n\010language\030\002 \002(\0162\025.pb.Metadata.Lang"
|
||||
"uage\022\r\n\005title\030\003 \002(\t\022\023\n\013description\030\004 \002(\t"
|
||||
"\022\016\n\006author\030\005 \002(\t\022\017\n\007license\030\006 \002(\t\022\014\n\004nsf"
|
||||
"w\030\007 \002(\010\022\024\n\003fee\030\010 \001(\0132\007.pb.Fee\022\021\n\tthumbna"
|
||||
"il\030\t \001(\t\022\017\n\007preview\030\n \001(\t\022\022\n\nlicenseUrl\030"
|
||||
"\013 \001(\t\"N\n\007Version\022\023\n\017UNKNOWN_VERSION\020\000\022\n\n"
|
||||
"\006_0_0_1\020\001\022\n\n\006_0_0_2\020\002\022\n\n\006_0_0_3\020\003\022\n\n\006_0_"
|
||||
"1_0\020\004\"\231\014\n\010Language\022\024\n\020UNKNOWN_LANGUAGE\020\000"
|
||||
"\022\006\n\002en\020\001\022\006\n\002aa\020\002\022\006\n\002ab\020\003\022\006\n\002ae\020\004\022\006\n\002af\020\005"
|
||||
"\022\006\n\002ak\020\006\022\006\n\002am\020\007\022\006\n\002an\020\010\022\006\n\002ar\020\t\022\006\n\002as\020\n"
|
||||
"\022\006\n\002av\020\013\022\006\n\002ay\020\014\022\006\n\002az\020\r\022\006\n\002ba\020\016\022\006\n\002be\020\017"
|
||||
"\022\006\n\002bg\020\020\022\006\n\002bh\020\021\022\006\n\002bi\020\022\022\006\n\002bm\020\023\022\006\n\002bn\020\024"
|
||||
"\022\006\n\002bo\020\025\022\006\n\002br\020\026\022\006\n\002bs\020\027\022\006\n\002ca\020\030\022\006\n\002ce\020\031"
|
||||
"\022\006\n\002ch\020\032\022\006\n\002co\020\033\022\006\n\002cr\020\034\022\006\n\002cs\020\035\022\006\n\002cu\020\036"
|
||||
"\022\006\n\002cv\020\037\022\006\n\002cy\020 \022\006\n\002da\020!\022\006\n\002de\020\"\022\006\n\002dv\020#"
|
||||
"\022\006\n\002dz\020$\022\006\n\002ee\020%\022\006\n\002el\020&\022\006\n\002eo\020\'\022\006\n\002es\020("
|
||||
"\022\006\n\002et\020)\022\006\n\002eu\020*\022\006\n\002fa\020+\022\006\n\002ff\020,\022\006\n\002fi\020-"
|
||||
"\022\006\n\002fj\020.\022\006\n\002fo\020/\022\006\n\002fr\0200\022\006\n\002fy\0201\022\006\n\002ga\0202"
|
||||
"\022\006\n\002gd\0203\022\006\n\002gl\0204\022\006\n\002gn\0205\022\006\n\002gu\0206\022\006\n\002gv\0207"
|
||||
"\022\006\n\002ha\0208\022\006\n\002he\0209\022\006\n\002hi\020:\022\006\n\002ho\020;\022\006\n\002hr\020<"
|
||||
"\022\006\n\002ht\020=\022\006\n\002hu\020>\022\006\n\002hy\020\?\022\006\n\002hz\020@\022\006\n\002ia\020A"
|
||||
"\022\006\n\002id\020B\022\006\n\002ie\020C\022\006\n\002ig\020D\022\006\n\002ii\020E\022\006\n\002ik\020F"
|
||||
"\022\006\n\002io\020G\022\006\n\002is\020H\022\006\n\002it\020I\022\006\n\002iu\020J\022\006\n\002ja\020K"
|
||||
"\022\006\n\002jv\020L\022\006\n\002ka\020M\022\006\n\002kg\020N\022\006\n\002ki\020O\022\006\n\002kj\020P"
|
||||
"\022\006\n\002kk\020Q\022\006\n\002kl\020R\022\006\n\002km\020S\022\006\n\002kn\020T\022\006\n\002ko\020U"
|
||||
"\022\006\n\002kr\020V\022\006\n\002ks\020W\022\006\n\002ku\020X\022\006\n\002kv\020Y\022\006\n\002kw\020Z"
|
||||
"\022\006\n\002ky\020[\022\006\n\002la\020\\\022\006\n\002lb\020]\022\006\n\002lg\020^\022\006\n\002li\020_"
|
||||
"\022\006\n\002ln\020`\022\006\n\002lo\020a\022\006\n\002lt\020b\022\006\n\002lu\020c\022\006\n\002lv\020d"
|
||||
"\022\006\n\002mg\020e\022\006\n\002mh\020f\022\006\n\002mi\020g\022\006\n\002mk\020h\022\006\n\002ml\020i"
|
||||
"\022\006\n\002mn\020j\022\006\n\002mr\020k\022\006\n\002ms\020l\022\006\n\002mt\020m\022\006\n\002my\020n"
|
||||
"\022\006\n\002na\020o\022\006\n\002nb\020p\022\006\n\002nd\020q\022\006\n\002ne\020r\022\006\n\002ng\020s"
|
||||
"\022\006\n\002nl\020t\022\006\n\002nn\020u\022\006\n\002no\020v\022\006\n\002nr\020w\022\006\n\002nv\020x"
|
||||
"\022\006\n\002ny\020y\022\006\n\002oc\020z\022\006\n\002oj\020{\022\006\n\002om\020|\022\006\n\002or\020}"
|
||||
"\022\006\n\002os\020~\022\006\n\002pa\020\177\022\007\n\002pi\020\200\001\022\007\n\002pl\020\201\001\022\007\n\002ps"
|
||||
"\020\202\001\022\007\n\002pt\020\203\001\022\007\n\002qu\020\204\001\022\007\n\002rm\020\205\001\022\007\n\002rn\020\206\001\022"
|
||||
"\007\n\002ro\020\207\001\022\007\n\002ru\020\210\001\022\007\n\002rw\020\211\001\022\007\n\002sa\020\212\001\022\007\n\002s"
|
||||
"c\020\213\001\022\007\n\002sd\020\214\001\022\007\n\002se\020\215\001\022\007\n\002sg\020\216\001\022\007\n\002si\020\217\001"
|
||||
"\022\007\n\002sk\020\220\001\022\007\n\002sl\020\221\001\022\007\n\002sm\020\222\001\022\007\n\002sn\020\223\001\022\007\n\002"
|
||||
"so\020\224\001\022\007\n\002sq\020\225\001\022\007\n\002sr\020\226\001\022\007\n\002ss\020\227\001\022\007\n\002st\020\230"
|
||||
"\001\022\007\n\002su\020\231\001\022\007\n\002sv\020\232\001\022\007\n\002sw\020\233\001\022\007\n\002ta\020\234\001\022\007\n"
|
||||
"\002te\020\235\001\022\007\n\002tg\020\236\001\022\007\n\002th\020\237\001\022\007\n\002ti\020\240\001\022\007\n\002tk\020"
|
||||
"\241\001\022\007\n\002tl\020\242\001\022\007\n\002tn\020\243\001\022\007\n\002to\020\244\001\022\007\n\002tr\020\245\001\022\007"
|
||||
"\n\002ts\020\246\001\022\007\n\002tt\020\247\001\022\007\n\002tw\020\250\001\022\007\n\002ty\020\251\001\022\007\n\002ug"
|
||||
"\020\252\001\022\007\n\002uk\020\253\001\022\007\n\002ur\020\254\001\022\007\n\002uz\020\255\001\022\007\n\002ve\020\256\001\022"
|
||||
"\007\n\002vi\020\257\001\022\007\n\002vo\020\260\001\022\007\n\002wa\020\261\001\022\007\n\002wo\020\262\001\022\007\n\002x"
|
||||
"h\020\263\001\022\007\n\002yi\020\264\001\022\007\n\002yo\020\265\001\022\007\n\002za\020\266\001\022\007\n\002zh\020\267\001"
|
||||
"\022\007\n\002zu\020\270\001"
|
||||
"\n\016metadata.proto\022\tlegacy_pb\032\tfee.proto\"\374"
|
||||
"\016\n\010Metadata\022,\n\007version\030\001 \002(\0162\033.legacy_pb"
|
||||
".Metadata.Version\022.\n\010language\030\002 \002(\0162\034.le"
|
||||
"gacy_pb.Metadata.Language\022\r\n\005title\030\003 \002(\t"
|
||||
"\022\023\n\013description\030\004 \002(\t\022\016\n\006author\030\005 \002(\t\022\017\n"
|
||||
"\007license\030\006 \002(\t\022\014\n\004nsfw\030\007 \002(\010\022\033\n\003fee\030\010 \001("
|
||||
"\0132\016.legacy_pb.Fee\022\021\n\tthumbnail\030\t \001(\t\022\017\n\007"
|
||||
"preview\030\n \001(\t\022\022\n\nlicenseUrl\030\013 \001(\t\"N\n\007Ver"
|
||||
"sion\022\023\n\017UNKNOWN_VERSION\020\000\022\n\n\006_0_0_1\020\001\022\n\n"
|
||||
"\006_0_0_2\020\002\022\n\n\006_0_0_3\020\003\022\n\n\006_0_1_0\020\004\"\231\014\n\010La"
|
||||
"nguage\022\024\n\020UNKNOWN_LANGUAGE\020\000\022\006\n\002en\020\001\022\006\n\002"
|
||||
"aa\020\002\022\006\n\002ab\020\003\022\006\n\002ae\020\004\022\006\n\002af\020\005\022\006\n\002ak\020\006\022\006\n\002"
|
||||
"am\020\007\022\006\n\002an\020\010\022\006\n\002ar\020\t\022\006\n\002as\020\n\022\006\n\002av\020\013\022\006\n\002"
|
||||
"ay\020\014\022\006\n\002az\020\r\022\006\n\002ba\020\016\022\006\n\002be\020\017\022\006\n\002bg\020\020\022\006\n\002"
|
||||
"bh\020\021\022\006\n\002bi\020\022\022\006\n\002bm\020\023\022\006\n\002bn\020\024\022\006\n\002bo\020\025\022\006\n\002"
|
||||
"br\020\026\022\006\n\002bs\020\027\022\006\n\002ca\020\030\022\006\n\002ce\020\031\022\006\n\002ch\020\032\022\006\n\002"
|
||||
"co\020\033\022\006\n\002cr\020\034\022\006\n\002cs\020\035\022\006\n\002cu\020\036\022\006\n\002cv\020\037\022\006\n\002"
|
||||
"cy\020 \022\006\n\002da\020!\022\006\n\002de\020\"\022\006\n\002dv\020#\022\006\n\002dz\020$\022\006\n\002"
|
||||
"ee\020%\022\006\n\002el\020&\022\006\n\002eo\020\'\022\006\n\002es\020(\022\006\n\002et\020)\022\006\n\002"
|
||||
"eu\020*\022\006\n\002fa\020+\022\006\n\002ff\020,\022\006\n\002fi\020-\022\006\n\002fj\020.\022\006\n\002"
|
||||
"fo\020/\022\006\n\002fr\0200\022\006\n\002fy\0201\022\006\n\002ga\0202\022\006\n\002gd\0203\022\006\n\002"
|
||||
"gl\0204\022\006\n\002gn\0205\022\006\n\002gu\0206\022\006\n\002gv\0207\022\006\n\002ha\0208\022\006\n\002"
|
||||
"he\0209\022\006\n\002hi\020:\022\006\n\002ho\020;\022\006\n\002hr\020<\022\006\n\002ht\020=\022\006\n\002"
|
||||
"hu\020>\022\006\n\002hy\020\?\022\006\n\002hz\020@\022\006\n\002ia\020A\022\006\n\002id\020B\022\006\n\002"
|
||||
"ie\020C\022\006\n\002ig\020D\022\006\n\002ii\020E\022\006\n\002ik\020F\022\006\n\002io\020G\022\006\n\002"
|
||||
"is\020H\022\006\n\002it\020I\022\006\n\002iu\020J\022\006\n\002ja\020K\022\006\n\002jv\020L\022\006\n\002"
|
||||
"ka\020M\022\006\n\002kg\020N\022\006\n\002ki\020O\022\006\n\002kj\020P\022\006\n\002kk\020Q\022\006\n\002"
|
||||
"kl\020R\022\006\n\002km\020S\022\006\n\002kn\020T\022\006\n\002ko\020U\022\006\n\002kr\020V\022\006\n\002"
|
||||
"ks\020W\022\006\n\002ku\020X\022\006\n\002kv\020Y\022\006\n\002kw\020Z\022\006\n\002ky\020[\022\006\n\002"
|
||||
"la\020\\\022\006\n\002lb\020]\022\006\n\002lg\020^\022\006\n\002li\020_\022\006\n\002ln\020`\022\006\n\002"
|
||||
"lo\020a\022\006\n\002lt\020b\022\006\n\002lu\020c\022\006\n\002lv\020d\022\006\n\002mg\020e\022\006\n\002"
|
||||
"mh\020f\022\006\n\002mi\020g\022\006\n\002mk\020h\022\006\n\002ml\020i\022\006\n\002mn\020j\022\006\n\002"
|
||||
"mr\020k\022\006\n\002ms\020l\022\006\n\002mt\020m\022\006\n\002my\020n\022\006\n\002na\020o\022\006\n\002"
|
||||
"nb\020p\022\006\n\002nd\020q\022\006\n\002ne\020r\022\006\n\002ng\020s\022\006\n\002nl\020t\022\006\n\002"
|
||||
"nn\020u\022\006\n\002no\020v\022\006\n\002nr\020w\022\006\n\002nv\020x\022\006\n\002ny\020y\022\006\n\002"
|
||||
"oc\020z\022\006\n\002oj\020{\022\006\n\002om\020|\022\006\n\002or\020}\022\006\n\002os\020~\022\006\n\002"
|
||||
"pa\020\177\022\007\n\002pi\020\200\001\022\007\n\002pl\020\201\001\022\007\n\002ps\020\202\001\022\007\n\002pt\020\203\001"
|
||||
"\022\007\n\002qu\020\204\001\022\007\n\002rm\020\205\001\022\007\n\002rn\020\206\001\022\007\n\002ro\020\207\001\022\007\n\002"
|
||||
"ru\020\210\001\022\007\n\002rw\020\211\001\022\007\n\002sa\020\212\001\022\007\n\002sc\020\213\001\022\007\n\002sd\020\214"
|
||||
"\001\022\007\n\002se\020\215\001\022\007\n\002sg\020\216\001\022\007\n\002si\020\217\001\022\007\n\002sk\020\220\001\022\007\n"
|
||||
"\002sl\020\221\001\022\007\n\002sm\020\222\001\022\007\n\002sn\020\223\001\022\007\n\002so\020\224\001\022\007\n\002sq\020"
|
||||
"\225\001\022\007\n\002sr\020\226\001\022\007\n\002ss\020\227\001\022\007\n\002st\020\230\001\022\007\n\002su\020\231\001\022\007"
|
||||
"\n\002sv\020\232\001\022\007\n\002sw\020\233\001\022\007\n\002ta\020\234\001\022\007\n\002te\020\235\001\022\007\n\002tg"
|
||||
"\020\236\001\022\007\n\002th\020\237\001\022\007\n\002ti\020\240\001\022\007\n\002tk\020\241\001\022\007\n\002tl\020\242\001\022"
|
||||
"\007\n\002tn\020\243\001\022\007\n\002to\020\244\001\022\007\n\002tr\020\245\001\022\007\n\002ts\020\246\001\022\007\n\002t"
|
||||
"t\020\247\001\022\007\n\002tw\020\250\001\022\007\n\002ty\020\251\001\022\007\n\002ug\020\252\001\022\007\n\002uk\020\253\001"
|
||||
"\022\007\n\002ur\020\254\001\022\007\n\002uz\020\255\001\022\007\n\002ve\020\256\001\022\007\n\002vi\020\257\001\022\007\n\002"
|
||||
"vo\020\260\001\022\007\n\002wa\020\261\001\022\007\n\002wo\020\262\001\022\007\n\002xh\020\263\001\022\007\n\002yi\020\264"
|
||||
"\001\022\007\n\002yo\020\265\001\022\007\n\002za\020\266\001\022\007\n\002zh\020\267\001\022\007\n\002zu\020\270\001"
|
||||
};
|
||||
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
||||
descriptor, 1929);
|
||||
descriptor, 1957);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"metadata.proto", &protobuf_RegisterTypes);
|
||||
::protobuf_fee_2eproto::AddDescriptors();
|
||||
|
@ -178,7 +178,7 @@ struct StaticDescriptorInitializer {
|
|||
}
|
||||
} static_descriptor_initializer;
|
||||
} // namespace protobuf_metadata_2eproto
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
const ::google::protobuf::EnumDescriptor* Metadata_Version_descriptor() {
|
||||
protobuf_metadata_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_metadata_2eproto::file_level_enum_descriptors[0];
|
||||
|
@ -597,8 +597,8 @@ const int Metadata::Language_ARRAYSIZE;
|
|||
// ===================================================================
|
||||
|
||||
void Metadata::InitAsDefaultInstance() {
|
||||
::pb::_Metadata_default_instance_._instance.get_mutable()->fee_ = const_cast< ::pb::Fee*>(
|
||||
::pb::Fee::internal_default_instance());
|
||||
::legacy_pb::_Metadata_default_instance_._instance.get_mutable()->fee_ = const_cast< ::legacy_pb::Fee*>(
|
||||
::legacy_pb::Fee::internal_default_instance());
|
||||
}
|
||||
void Metadata::clear_fee() {
|
||||
if (fee_ != NULL) fee_->Clear();
|
||||
|
@ -623,7 +623,7 @@ Metadata::Metadata()
|
|||
::google::protobuf::internal::InitSCC(
|
||||
&protobuf_metadata_2eproto::scc_info_Metadata.base);
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:pb.Metadata)
|
||||
// @@protoc_insertion_point(constructor:legacy_pb.Metadata)
|
||||
}
|
||||
Metadata::Metadata(const Metadata& from)
|
||||
: ::google::protobuf::Message(),
|
||||
|
@ -659,14 +659,14 @@ Metadata::Metadata(const Metadata& from)
|
|||
licenseurl_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.licenseurl_);
|
||||
}
|
||||
if (from.has_fee()) {
|
||||
fee_ = new ::pb::Fee(*from.fee_);
|
||||
fee_ = new ::legacy_pb::Fee(*from.fee_);
|
||||
} else {
|
||||
fee_ = NULL;
|
||||
}
|
||||
::memcpy(&version_, &from.version_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&nsfw_) -
|
||||
reinterpret_cast<char*>(&version_)) + sizeof(nsfw_));
|
||||
// @@protoc_insertion_point(copy_constructor:pb.Metadata)
|
||||
// @@protoc_insertion_point(copy_constructor:legacy_pb.Metadata)
|
||||
}
|
||||
|
||||
void Metadata::SharedCtor() {
|
||||
|
@ -683,7 +683,7 @@ void Metadata::SharedCtor() {
|
|||
}
|
||||
|
||||
Metadata::~Metadata() {
|
||||
// @@protoc_insertion_point(destructor:pb.Metadata)
|
||||
// @@protoc_insertion_point(destructor:legacy_pb.Metadata)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
|
@ -713,7 +713,7 @@ const Metadata& Metadata::default_instance() {
|
|||
|
||||
|
||||
void Metadata::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:pb.Metadata)
|
||||
// @@protoc_insertion_point(message_clear_start:legacy_pb.Metadata)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
@ -759,13 +759,13 @@ bool Metadata::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.Metadata)
|
||||
// @@protoc_insertion_point(parse_start:legacy_pb.Metadata)
|
||||
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.Metadata.Version version = 1;
|
||||
// required .legacy_pb.Metadata.Version version = 1;
|
||||
case 1: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
||||
|
@ -773,8 +773,8 @@ bool Metadata::MergePartialFromCodedStream(
|
|||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
||||
input, &value)));
|
||||
if (::pb::Metadata_Version_IsValid(value)) {
|
||||
set_version(static_cast< ::pb::Metadata_Version >(value));
|
||||
if (::legacy_pb::Metadata_Version_IsValid(value)) {
|
||||
set_version(static_cast< ::legacy_pb::Metadata_Version >(value));
|
||||
} else {
|
||||
mutable_unknown_fields()->AddVarint(
|
||||
1, static_cast< ::google::protobuf::uint64>(value));
|
||||
|
@ -785,7 +785,7 @@ bool Metadata::MergePartialFromCodedStream(
|
|||
break;
|
||||
}
|
||||
|
||||
// required .pb.Metadata.Language language = 2;
|
||||
// required .legacy_pb.Metadata.Language language = 2;
|
||||
case 2: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
||||
|
@ -793,8 +793,8 @@ bool Metadata::MergePartialFromCodedStream(
|
|||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
||||
input, &value)));
|
||||
if (::pb::Metadata_Language_IsValid(value)) {
|
||||
set_language(static_cast< ::pb::Metadata_Language >(value));
|
||||
if (::legacy_pb::Metadata_Language_IsValid(value)) {
|
||||
set_language(static_cast< ::legacy_pb::Metadata_Language >(value));
|
||||
} else {
|
||||
mutable_unknown_fields()->AddVarint(
|
||||
2, static_cast< ::google::protobuf::uint64>(value));
|
||||
|
@ -814,7 +814,7 @@ bool Metadata::MergePartialFromCodedStream(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->title().data(), static_cast<int>(this->title().length()),
|
||||
::google::protobuf::internal::WireFormat::PARSE,
|
||||
"pb.Metadata.title");
|
||||
"legacy_pb.Metadata.title");
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
|
@ -830,7 +830,7 @@ bool Metadata::MergePartialFromCodedStream(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->description().data(), static_cast<int>(this->description().length()),
|
||||
::google::protobuf::internal::WireFormat::PARSE,
|
||||
"pb.Metadata.description");
|
||||
"legacy_pb.Metadata.description");
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
|
@ -846,7 +846,7 @@ bool Metadata::MergePartialFromCodedStream(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->author().data(), static_cast<int>(this->author().length()),
|
||||
::google::protobuf::internal::WireFormat::PARSE,
|
||||
"pb.Metadata.author");
|
||||
"legacy_pb.Metadata.author");
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
|
@ -862,7 +862,7 @@ bool Metadata::MergePartialFromCodedStream(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->license().data(), static_cast<int>(this->license().length()),
|
||||
::google::protobuf::internal::WireFormat::PARSE,
|
||||
"pb.Metadata.license");
|
||||
"legacy_pb.Metadata.license");
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
|
@ -883,7 +883,7 @@ bool Metadata::MergePartialFromCodedStream(
|
|||
break;
|
||||
}
|
||||
|
||||
// optional .pb.Fee fee = 8;
|
||||
// optional .legacy_pb.Fee fee = 8;
|
||||
case 8: {
|
||||
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
||||
static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
|
||||
|
@ -904,7 +904,7 @@ bool Metadata::MergePartialFromCodedStream(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->thumbnail().data(), static_cast<int>(this->thumbnail().length()),
|
||||
::google::protobuf::internal::WireFormat::PARSE,
|
||||
"pb.Metadata.thumbnail");
|
||||
"legacy_pb.Metadata.thumbnail");
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
|
@ -920,7 +920,7 @@ bool Metadata::MergePartialFromCodedStream(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->preview().data(), static_cast<int>(this->preview().length()),
|
||||
::google::protobuf::internal::WireFormat::PARSE,
|
||||
"pb.Metadata.preview");
|
||||
"legacy_pb.Metadata.preview");
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
|
@ -936,7 +936,7 @@ bool Metadata::MergePartialFromCodedStream(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->licenseurl().data(), static_cast<int>(this->licenseurl().length()),
|
||||
::google::protobuf::internal::WireFormat::PARSE,
|
||||
"pb.Metadata.licenseUrl");
|
||||
"legacy_pb.Metadata.licenseUrl");
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
|
@ -955,28 +955,28 @@ bool Metadata::MergePartialFromCodedStream(
|
|||
}
|
||||
}
|
||||
success:
|
||||
// @@protoc_insertion_point(parse_success:pb.Metadata)
|
||||
// @@protoc_insertion_point(parse_success:legacy_pb.Metadata)
|
||||
return true;
|
||||
failure:
|
||||
// @@protoc_insertion_point(parse_failure:pb.Metadata)
|
||||
// @@protoc_insertion_point(parse_failure:legacy_pb.Metadata)
|
||||
return false;
|
||||
#undef DO_
|
||||
}
|
||||
|
||||
void Metadata::SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const {
|
||||
// @@protoc_insertion_point(serialize_start:pb.Metadata)
|
||||
// @@protoc_insertion_point(serialize_start:legacy_pb.Metadata)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .pb.Metadata.Version version = 1;
|
||||
// required .legacy_pb.Metadata.Version version = 1;
|
||||
if (cached_has_bits & 0x00000100u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
1, this->version(), output);
|
||||
}
|
||||
|
||||
// required .pb.Metadata.Language language = 2;
|
||||
// required .legacy_pb.Metadata.Language language = 2;
|
||||
if (cached_has_bits & 0x00000200u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
||||
2, this->language(), output);
|
||||
|
@ -987,7 +987,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->title().data(), static_cast<int>(this->title().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Metadata.title");
|
||||
"legacy_pb.Metadata.title");
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
||||
3, this->title(), output);
|
||||
}
|
||||
|
@ -997,7 +997,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->description().data(), static_cast<int>(this->description().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Metadata.description");
|
||||
"legacy_pb.Metadata.description");
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
||||
4, this->description(), output);
|
||||
}
|
||||
|
@ -1007,7 +1007,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->author().data(), static_cast<int>(this->author().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Metadata.author");
|
||||
"legacy_pb.Metadata.author");
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
||||
5, this->author(), output);
|
||||
}
|
||||
|
@ -1017,7 +1017,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->license().data(), static_cast<int>(this->license().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Metadata.license");
|
||||
"legacy_pb.Metadata.license");
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
||||
6, this->license(), output);
|
||||
}
|
||||
|
@ -1027,7 +1027,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormatLite::WriteBool(7, this->nsfw(), output);
|
||||
}
|
||||
|
||||
// optional .pb.Fee fee = 8;
|
||||
// optional .legacy_pb.Fee fee = 8;
|
||||
if (cached_has_bits & 0x00000080u) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
||||
8, this->_internal_fee(), output);
|
||||
|
@ -1038,7 +1038,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->thumbnail().data(), static_cast<int>(this->thumbnail().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Metadata.thumbnail");
|
||||
"legacy_pb.Metadata.thumbnail");
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
||||
9, this->thumbnail(), output);
|
||||
}
|
||||
|
@ -1048,7 +1048,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->preview().data(), static_cast<int>(this->preview().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Metadata.preview");
|
||||
"legacy_pb.Metadata.preview");
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
||||
10, this->preview(), output);
|
||||
}
|
||||
|
@ -1058,7 +1058,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->licenseurl().data(), static_cast<int>(this->licenseurl().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Metadata.licenseUrl");
|
||||
"legacy_pb.Metadata.licenseUrl");
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
||||
11, this->licenseurl(), output);
|
||||
}
|
||||
|
@ -1067,24 +1067,24 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
||||
_internal_metadata_.unknown_fields(), output);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_end:pb.Metadata)
|
||||
// @@protoc_insertion_point(serialize_end:legacy_pb.Metadata)
|
||||
}
|
||||
|
||||
::google::protobuf::uint8* Metadata::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:pb.Metadata)
|
||||
// @@protoc_insertion_point(serialize_to_array_start:legacy_pb.Metadata)
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// required .pb.Metadata.Version version = 1;
|
||||
// required .legacy_pb.Metadata.Version version = 1;
|
||||
if (cached_has_bits & 0x00000100u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
||||
1, this->version(), target);
|
||||
}
|
||||
|
||||
// required .pb.Metadata.Language language = 2;
|
||||
// required .legacy_pb.Metadata.Language language = 2;
|
||||
if (cached_has_bits & 0x00000200u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
||||
2, this->language(), target);
|
||||
|
@ -1095,7 +1095,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->title().data(), static_cast<int>(this->title().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Metadata.title");
|
||||
"legacy_pb.Metadata.title");
|
||||
target =
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
||||
3, this->title(), target);
|
||||
|
@ -1106,7 +1106,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->description().data(), static_cast<int>(this->description().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Metadata.description");
|
||||
"legacy_pb.Metadata.description");
|
||||
target =
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
||||
4, this->description(), target);
|
||||
|
@ -1117,7 +1117,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->author().data(), static_cast<int>(this->author().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Metadata.author");
|
||||
"legacy_pb.Metadata.author");
|
||||
target =
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
||||
5, this->author(), target);
|
||||
|
@ -1128,7 +1128,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->license().data(), static_cast<int>(this->license().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Metadata.license");
|
||||
"legacy_pb.Metadata.license");
|
||||
target =
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
||||
6, this->license(), target);
|
||||
|
@ -1139,7 +1139,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->nsfw(), target);
|
||||
}
|
||||
|
||||
// optional .pb.Fee fee = 8;
|
||||
// optional .legacy_pb.Fee fee = 8;
|
||||
if (cached_has_bits & 0x00000080u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::
|
||||
InternalWriteMessageToArray(
|
||||
|
@ -1151,7 +1151,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->thumbnail().data(), static_cast<int>(this->thumbnail().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Metadata.thumbnail");
|
||||
"legacy_pb.Metadata.thumbnail");
|
||||
target =
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
||||
9, this->thumbnail(), target);
|
||||
|
@ -1162,7 +1162,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->preview().data(), static_cast<int>(this->preview().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Metadata.preview");
|
||||
"legacy_pb.Metadata.preview");
|
||||
target =
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
||||
10, this->preview(), target);
|
||||
|
@ -1173,7 +1173,7 @@ void Metadata::SerializeWithCachedSizes(
|
|||
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
||||
this->licenseurl().data(), static_cast<int>(this->licenseurl().length()),
|
||||
::google::protobuf::internal::WireFormat::SERIALIZE,
|
||||
"pb.Metadata.licenseUrl");
|
||||
"legacy_pb.Metadata.licenseUrl");
|
||||
target =
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
||||
11, this->licenseurl(), target);
|
||||
|
@ -1183,12 +1183,12 @@ void Metadata::SerializeWithCachedSizes(
|
|||
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields(), target);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:pb.Metadata)
|
||||
// @@protoc_insertion_point(serialize_to_array_end:legacy_pb.Metadata)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t Metadata::RequiredFieldsByteSizeFallback() const {
|
||||
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:pb.Metadata)
|
||||
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:legacy_pb.Metadata)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (has_title()) {
|
||||
|
@ -1220,13 +1220,13 @@ size_t Metadata::RequiredFieldsByteSizeFallback() const {
|
|||
}
|
||||
|
||||
if (has_version()) {
|
||||
// required .pb.Metadata.Version version = 1;
|
||||
// required .legacy_pb.Metadata.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
}
|
||||
|
||||
if (has_language()) {
|
||||
// required .pb.Metadata.Language language = 2;
|
||||
// required .legacy_pb.Metadata.Language language = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->language());
|
||||
}
|
||||
|
@ -1239,7 +1239,7 @@ size_t Metadata::RequiredFieldsByteSizeFallback() const {
|
|||
return total_size;
|
||||
}
|
||||
size_t Metadata::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:pb.Metadata)
|
||||
// @@protoc_insertion_point(message_byte_size_start:legacy_pb.Metadata)
|
||||
size_t total_size = 0;
|
||||
|
||||
if (_internal_metadata_.have_unknown_fields()) {
|
||||
|
@ -1268,11 +1268,11 @@ size_t Metadata::ByteSizeLong() const {
|
|||
::google::protobuf::internal::WireFormatLite::StringSize(
|
||||
this->license());
|
||||
|
||||
// required .pb.Metadata.Version version = 1;
|
||||
// required .legacy_pb.Metadata.Version version = 1;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
|
||||
|
||||
// required .pb.Metadata.Language language = 2;
|
||||
// required .legacy_pb.Metadata.Language language = 2;
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::EnumSize(this->language());
|
||||
|
||||
|
@ -1304,7 +1304,7 @@ size_t Metadata::ByteSizeLong() const {
|
|||
this->licenseurl());
|
||||
}
|
||||
|
||||
// optional .pb.Fee fee = 8;
|
||||
// optional .legacy_pb.Fee fee = 8;
|
||||
if (has_fee()) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||||
|
@ -1318,22 +1318,22 @@ size_t Metadata::ByteSizeLong() const {
|
|||
}
|
||||
|
||||
void Metadata::MergeFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:pb.Metadata)
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:legacy_pb.Metadata)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
const Metadata* source =
|
||||
::google::protobuf::internal::DynamicCastToGenerated<const Metadata>(
|
||||
&from);
|
||||
if (source == NULL) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Metadata)
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:legacy_pb.Metadata)
|
||||
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
||||
} else {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:pb.Metadata)
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:legacy_pb.Metadata)
|
||||
MergeFrom(*source);
|
||||
}
|
||||
}
|
||||
|
||||
void Metadata::MergeFrom(const Metadata& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:pb.Metadata)
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:legacy_pb.Metadata)
|
||||
GOOGLE_DCHECK_NE(&from, this);
|
||||
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
||||
::google::protobuf::uint32 cached_has_bits = 0;
|
||||
|
@ -1370,7 +1370,7 @@ void Metadata::MergeFrom(const Metadata& from) {
|
|||
licenseurl_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.licenseurl_);
|
||||
}
|
||||
if (cached_has_bits & 0x00000080u) {
|
||||
mutable_fee()->::pb::Fee::MergeFrom(from.fee());
|
||||
mutable_fee()->::legacy_pb::Fee::MergeFrom(from.fee());
|
||||
}
|
||||
}
|
||||
if (cached_has_bits & 1792u) {
|
||||
|
@ -1388,14 +1388,14 @@ void Metadata::MergeFrom(const Metadata& from) {
|
|||
}
|
||||
|
||||
void Metadata::CopyFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:pb.Metadata)
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:legacy_pb.Metadata)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
void Metadata::CopyFrom(const Metadata& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:pb.Metadata)
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:legacy_pb.Metadata)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
|
@ -1444,11 +1444,11 @@ void Metadata::InternalSwap(Metadata* other) {
|
|||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pb::Metadata* Arena::CreateMaybeMessage< ::pb::Metadata >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::pb::Metadata >(arena);
|
||||
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::legacy_pb::Metadata* Arena::CreateMaybeMessage< ::legacy_pb::Metadata >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::legacy_pb::Metadata >(arena);
|
||||
}
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006000
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006001
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
@ -47,17 +47,17 @@ struct TableStruct {
|
|||
};
|
||||
void AddDescriptors();
|
||||
} // namespace protobuf_metadata_2eproto
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
class Metadata;
|
||||
class MetadataDefaultTypeInternal;
|
||||
extern MetadataDefaultTypeInternal _Metadata_default_instance_;
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
template<> ::pb::Metadata* Arena::CreateMaybeMessage<::pb::Metadata>(Arena*);
|
||||
template<> ::legacy_pb::Metadata* Arena::CreateMaybeMessage<::legacy_pb::Metadata>(Arena*);
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
|
||||
enum Metadata_Version {
|
||||
Metadata_Version_UNKNOWN_VERSION = 0,
|
||||
|
@ -285,7 +285,7 @@ inline bool Metadata_Language_Parse(
|
|||
}
|
||||
// ===================================================================
|
||||
|
||||
class Metadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Metadata) */ {
|
||||
class Metadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Metadata) */ {
|
||||
public:
|
||||
Metadata();
|
||||
virtual ~Metadata();
|
||||
|
@ -908,31 +908,31 @@ class Metadata : public ::google::protobuf::Message /* @@protoc_insertion_point(
|
|||
::std::string* release_licenseurl();
|
||||
void set_allocated_licenseurl(::std::string* licenseurl);
|
||||
|
||||
// optional .pb.Fee fee = 8;
|
||||
// optional .legacy_pb.Fee fee = 8;
|
||||
bool has_fee() const;
|
||||
void clear_fee();
|
||||
static const int kFeeFieldNumber = 8;
|
||||
private:
|
||||
const ::pb::Fee& _internal_fee() const;
|
||||
const ::legacy_pb::Fee& _internal_fee() const;
|
||||
public:
|
||||
const ::pb::Fee& fee() const;
|
||||
::pb::Fee* release_fee();
|
||||
::pb::Fee* mutable_fee();
|
||||
void set_allocated_fee(::pb::Fee* fee);
|
||||
const ::legacy_pb::Fee& fee() const;
|
||||
::legacy_pb::Fee* release_fee();
|
||||
::legacy_pb::Fee* mutable_fee();
|
||||
void set_allocated_fee(::legacy_pb::Fee* fee);
|
||||
|
||||
// required .pb.Metadata.Version version = 1;
|
||||
// required .legacy_pb.Metadata.Version version = 1;
|
||||
bool has_version() const;
|
||||
void clear_version();
|
||||
static const int kVersionFieldNumber = 1;
|
||||
::pb::Metadata_Version version() const;
|
||||
void set_version(::pb::Metadata_Version value);
|
||||
::legacy_pb::Metadata_Version version() const;
|
||||
void set_version(::legacy_pb::Metadata_Version value);
|
||||
|
||||
// required .pb.Metadata.Language language = 2;
|
||||
// required .legacy_pb.Metadata.Language language = 2;
|
||||
bool has_language() const;
|
||||
void clear_language();
|
||||
static const int kLanguageFieldNumber = 2;
|
||||
::pb::Metadata_Language language() const;
|
||||
void set_language(::pb::Metadata_Language value);
|
||||
::legacy_pb::Metadata_Language language() const;
|
||||
void set_language(::legacy_pb::Metadata_Language value);
|
||||
|
||||
// required bool nsfw = 7;
|
||||
bool has_nsfw() const;
|
||||
|
@ -941,7 +941,7 @@ class Metadata : public ::google::protobuf::Message /* @@protoc_insertion_point(
|
|||
bool nsfw() const;
|
||||
void set_nsfw(bool value);
|
||||
|
||||
// @@protoc_insertion_point(class_scope:pb.Metadata)
|
||||
// @@protoc_insertion_point(class_scope:legacy_pb.Metadata)
|
||||
private:
|
||||
void set_has_version();
|
||||
void clear_has_version();
|
||||
|
@ -979,7 +979,7 @@ class Metadata : public ::google::protobuf::Message /* @@protoc_insertion_point(
|
|||
::google::protobuf::internal::ArenaStringPtr thumbnail_;
|
||||
::google::protobuf::internal::ArenaStringPtr preview_;
|
||||
::google::protobuf::internal::ArenaStringPtr licenseurl_;
|
||||
::pb::Fee* fee_;
|
||||
::legacy_pb::Fee* fee_;
|
||||
int version_;
|
||||
int language_;
|
||||
bool nsfw_;
|
||||
|
@ -996,7 +996,7 @@ class Metadata : public ::google::protobuf::Message /* @@protoc_insertion_point(
|
|||
#endif // __GNUC__
|
||||
// Metadata
|
||||
|
||||
// required .pb.Metadata.Version version = 1;
|
||||
// required .legacy_pb.Metadata.Version version = 1;
|
||||
inline bool Metadata::has_version() const {
|
||||
return (_has_bits_[0] & 0x00000100u) != 0;
|
||||
}
|
||||
|
@ -1010,18 +1010,18 @@ inline void Metadata::clear_version() {
|
|||
version_ = 0;
|
||||
clear_has_version();
|
||||
}
|
||||
inline ::pb::Metadata_Version Metadata::version() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Metadata.version)
|
||||
return static_cast< ::pb::Metadata_Version >(version_);
|
||||
inline ::legacy_pb::Metadata_Version Metadata::version() const {
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Metadata.version)
|
||||
return static_cast< ::legacy_pb::Metadata_Version >(version_);
|
||||
}
|
||||
inline void Metadata::set_version(::pb::Metadata_Version value) {
|
||||
assert(::pb::Metadata_Version_IsValid(value));
|
||||
inline void Metadata::set_version(::legacy_pb::Metadata_Version value) {
|
||||
assert(::legacy_pb::Metadata_Version_IsValid(value));
|
||||
set_has_version();
|
||||
version_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Metadata.version)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Metadata.version)
|
||||
}
|
||||
|
||||
// required .pb.Metadata.Language language = 2;
|
||||
// required .legacy_pb.Metadata.Language language = 2;
|
||||
inline bool Metadata::has_language() const {
|
||||
return (_has_bits_[0] & 0x00000200u) != 0;
|
||||
}
|
||||
|
@ -1035,15 +1035,15 @@ inline void Metadata::clear_language() {
|
|||
language_ = 0;
|
||||
clear_has_language();
|
||||
}
|
||||
inline ::pb::Metadata_Language Metadata::language() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Metadata.language)
|
||||
return static_cast< ::pb::Metadata_Language >(language_);
|
||||
inline ::legacy_pb::Metadata_Language Metadata::language() const {
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Metadata.language)
|
||||
return static_cast< ::legacy_pb::Metadata_Language >(language_);
|
||||
}
|
||||
inline void Metadata::set_language(::pb::Metadata_Language value) {
|
||||
assert(::pb::Metadata_Language_IsValid(value));
|
||||
inline void Metadata::set_language(::legacy_pb::Metadata_Language value) {
|
||||
assert(::legacy_pb::Metadata_Language_IsValid(value));
|
||||
set_has_language();
|
||||
language_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Metadata.language)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Metadata.language)
|
||||
}
|
||||
|
||||
// required string title = 3;
|
||||
|
@ -1061,41 +1061,41 @@ inline void Metadata::clear_title() {
|
|||
clear_has_title();
|
||||
}
|
||||
inline const ::std::string& Metadata::title() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Metadata.title)
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Metadata.title)
|
||||
return title_.GetNoArena();
|
||||
}
|
||||
inline void Metadata::set_title(const ::std::string& value) {
|
||||
set_has_title();
|
||||
title_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
||||
// @@protoc_insertion_point(field_set:pb.Metadata.title)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Metadata.title)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Metadata::set_title(::std::string&& value) {
|
||||
set_has_title();
|
||||
title_.SetNoArena(
|
||||
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
||||
// @@protoc_insertion_point(field_set_rvalue:pb.Metadata.title)
|
||||
// @@protoc_insertion_point(field_set_rvalue:legacy_pb.Metadata.title)
|
||||
}
|
||||
#endif
|
||||
inline void Metadata::set_title(const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
set_has_title();
|
||||
title_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
||||
// @@protoc_insertion_point(field_set_char:pb.Metadata.title)
|
||||
// @@protoc_insertion_point(field_set_char:legacy_pb.Metadata.title)
|
||||
}
|
||||
inline void Metadata::set_title(const char* value, size_t size) {
|
||||
set_has_title();
|
||||
title_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
::std::string(reinterpret_cast<const char*>(value), size));
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Metadata.title)
|
||||
// @@protoc_insertion_point(field_set_pointer:legacy_pb.Metadata.title)
|
||||
}
|
||||
inline ::std::string* Metadata::mutable_title() {
|
||||
set_has_title();
|
||||
// @@protoc_insertion_point(field_mutable:pb.Metadata.title)
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Metadata.title)
|
||||
return title_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline ::std::string* Metadata::release_title() {
|
||||
// @@protoc_insertion_point(field_release:pb.Metadata.title)
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Metadata.title)
|
||||
if (!has_title()) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1109,7 +1109,7 @@ inline void Metadata::set_allocated_title(::std::string* title) {
|
|||
clear_has_title();
|
||||
}
|
||||
title_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), title);
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Metadata.title)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Metadata.title)
|
||||
}
|
||||
|
||||
// required string description = 4;
|
||||
|
@ -1127,41 +1127,41 @@ inline void Metadata::clear_description() {
|
|||
clear_has_description();
|
||||
}
|
||||
inline const ::std::string& Metadata::description() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Metadata.description)
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Metadata.description)
|
||||
return description_.GetNoArena();
|
||||
}
|
||||
inline void Metadata::set_description(const ::std::string& value) {
|
||||
set_has_description();
|
||||
description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
||||
// @@protoc_insertion_point(field_set:pb.Metadata.description)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Metadata.description)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Metadata::set_description(::std::string&& value) {
|
||||
set_has_description();
|
||||
description_.SetNoArena(
|
||||
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
||||
// @@protoc_insertion_point(field_set_rvalue:pb.Metadata.description)
|
||||
// @@protoc_insertion_point(field_set_rvalue:legacy_pb.Metadata.description)
|
||||
}
|
||||
#endif
|
||||
inline void Metadata::set_description(const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
set_has_description();
|
||||
description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
||||
// @@protoc_insertion_point(field_set_char:pb.Metadata.description)
|
||||
// @@protoc_insertion_point(field_set_char:legacy_pb.Metadata.description)
|
||||
}
|
||||
inline void Metadata::set_description(const char* value, size_t size) {
|
||||
set_has_description();
|
||||
description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
::std::string(reinterpret_cast<const char*>(value), size));
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Metadata.description)
|
||||
// @@protoc_insertion_point(field_set_pointer:legacy_pb.Metadata.description)
|
||||
}
|
||||
inline ::std::string* Metadata::mutable_description() {
|
||||
set_has_description();
|
||||
// @@protoc_insertion_point(field_mutable:pb.Metadata.description)
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Metadata.description)
|
||||
return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline ::std::string* Metadata::release_description() {
|
||||
// @@protoc_insertion_point(field_release:pb.Metadata.description)
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Metadata.description)
|
||||
if (!has_description()) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1175,7 +1175,7 @@ inline void Metadata::set_allocated_description(::std::string* description) {
|
|||
clear_has_description();
|
||||
}
|
||||
description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description);
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Metadata.description)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Metadata.description)
|
||||
}
|
||||
|
||||
// required string author = 5;
|
||||
|
@ -1193,41 +1193,41 @@ inline void Metadata::clear_author() {
|
|||
clear_has_author();
|
||||
}
|
||||
inline const ::std::string& Metadata::author() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Metadata.author)
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Metadata.author)
|
||||
return author_.GetNoArena();
|
||||
}
|
||||
inline void Metadata::set_author(const ::std::string& value) {
|
||||
set_has_author();
|
||||
author_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
||||
// @@protoc_insertion_point(field_set:pb.Metadata.author)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Metadata.author)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Metadata::set_author(::std::string&& value) {
|
||||
set_has_author();
|
||||
author_.SetNoArena(
|
||||
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
||||
// @@protoc_insertion_point(field_set_rvalue:pb.Metadata.author)
|
||||
// @@protoc_insertion_point(field_set_rvalue:legacy_pb.Metadata.author)
|
||||
}
|
||||
#endif
|
||||
inline void Metadata::set_author(const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
set_has_author();
|
||||
author_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
||||
// @@protoc_insertion_point(field_set_char:pb.Metadata.author)
|
||||
// @@protoc_insertion_point(field_set_char:legacy_pb.Metadata.author)
|
||||
}
|
||||
inline void Metadata::set_author(const char* value, size_t size) {
|
||||
set_has_author();
|
||||
author_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
::std::string(reinterpret_cast<const char*>(value), size));
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Metadata.author)
|
||||
// @@protoc_insertion_point(field_set_pointer:legacy_pb.Metadata.author)
|
||||
}
|
||||
inline ::std::string* Metadata::mutable_author() {
|
||||
set_has_author();
|
||||
// @@protoc_insertion_point(field_mutable:pb.Metadata.author)
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Metadata.author)
|
||||
return author_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline ::std::string* Metadata::release_author() {
|
||||
// @@protoc_insertion_point(field_release:pb.Metadata.author)
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Metadata.author)
|
||||
if (!has_author()) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1241,7 +1241,7 @@ inline void Metadata::set_allocated_author(::std::string* author) {
|
|||
clear_has_author();
|
||||
}
|
||||
author_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), author);
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Metadata.author)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Metadata.author)
|
||||
}
|
||||
|
||||
// required string license = 6;
|
||||
|
@ -1259,41 +1259,41 @@ inline void Metadata::clear_license() {
|
|||
clear_has_license();
|
||||
}
|
||||
inline const ::std::string& Metadata::license() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Metadata.license)
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Metadata.license)
|
||||
return license_.GetNoArena();
|
||||
}
|
||||
inline void Metadata::set_license(const ::std::string& value) {
|
||||
set_has_license();
|
||||
license_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
||||
// @@protoc_insertion_point(field_set:pb.Metadata.license)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Metadata.license)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Metadata::set_license(::std::string&& value) {
|
||||
set_has_license();
|
||||
license_.SetNoArena(
|
||||
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
||||
// @@protoc_insertion_point(field_set_rvalue:pb.Metadata.license)
|
||||
// @@protoc_insertion_point(field_set_rvalue:legacy_pb.Metadata.license)
|
||||
}
|
||||
#endif
|
||||
inline void Metadata::set_license(const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
set_has_license();
|
||||
license_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
||||
// @@protoc_insertion_point(field_set_char:pb.Metadata.license)
|
||||
// @@protoc_insertion_point(field_set_char:legacy_pb.Metadata.license)
|
||||
}
|
||||
inline void Metadata::set_license(const char* value, size_t size) {
|
||||
set_has_license();
|
||||
license_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
::std::string(reinterpret_cast<const char*>(value), size));
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Metadata.license)
|
||||
// @@protoc_insertion_point(field_set_pointer:legacy_pb.Metadata.license)
|
||||
}
|
||||
inline ::std::string* Metadata::mutable_license() {
|
||||
set_has_license();
|
||||
// @@protoc_insertion_point(field_mutable:pb.Metadata.license)
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Metadata.license)
|
||||
return license_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline ::std::string* Metadata::release_license() {
|
||||
// @@protoc_insertion_point(field_release:pb.Metadata.license)
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Metadata.license)
|
||||
if (!has_license()) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1307,7 +1307,7 @@ inline void Metadata::set_allocated_license(::std::string* license) {
|
|||
clear_has_license();
|
||||
}
|
||||
license_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), license);
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Metadata.license)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Metadata.license)
|
||||
}
|
||||
|
||||
// required bool nsfw = 7;
|
||||
|
@ -1325,16 +1325,16 @@ inline void Metadata::clear_nsfw() {
|
|||
clear_has_nsfw();
|
||||
}
|
||||
inline bool Metadata::nsfw() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Metadata.nsfw)
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Metadata.nsfw)
|
||||
return nsfw_;
|
||||
}
|
||||
inline void Metadata::set_nsfw(bool value) {
|
||||
set_has_nsfw();
|
||||
nsfw_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Metadata.nsfw)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Metadata.nsfw)
|
||||
}
|
||||
|
||||
// optional .pb.Fee fee = 8;
|
||||
// optional .legacy_pb.Fee fee = 8;
|
||||
inline bool Metadata::has_fee() const {
|
||||
return (_has_bits_[0] & 0x00000080u) != 0;
|
||||
}
|
||||
|
@ -1344,32 +1344,32 @@ inline void Metadata::set_has_fee() {
|
|||
inline void Metadata::clear_has_fee() {
|
||||
_has_bits_[0] &= ~0x00000080u;
|
||||
}
|
||||
inline const ::pb::Fee& Metadata::_internal_fee() const {
|
||||
inline const ::legacy_pb::Fee& Metadata::_internal_fee() const {
|
||||
return *fee_;
|
||||
}
|
||||
inline const ::pb::Fee& Metadata::fee() const {
|
||||
const ::pb::Fee* p = fee_;
|
||||
// @@protoc_insertion_point(field_get:pb.Metadata.fee)
|
||||
return p != NULL ? *p : *reinterpret_cast<const ::pb::Fee*>(
|
||||
&::pb::_Fee_default_instance_);
|
||||
inline const ::legacy_pb::Fee& Metadata::fee() const {
|
||||
const ::legacy_pb::Fee* p = fee_;
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Metadata.fee)
|
||||
return p != NULL ? *p : *reinterpret_cast<const ::legacy_pb::Fee*>(
|
||||
&::legacy_pb::_Fee_default_instance_);
|
||||
}
|
||||
inline ::pb::Fee* Metadata::release_fee() {
|
||||
// @@protoc_insertion_point(field_release:pb.Metadata.fee)
|
||||
inline ::legacy_pb::Fee* Metadata::release_fee() {
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Metadata.fee)
|
||||
clear_has_fee();
|
||||
::pb::Fee* temp = fee_;
|
||||
::legacy_pb::Fee* temp = fee_;
|
||||
fee_ = NULL;
|
||||
return temp;
|
||||
}
|
||||
inline ::pb::Fee* Metadata::mutable_fee() {
|
||||
inline ::legacy_pb::Fee* Metadata::mutable_fee() {
|
||||
set_has_fee();
|
||||
if (fee_ == NULL) {
|
||||
auto* p = CreateMaybeMessage<::pb::Fee>(GetArenaNoVirtual());
|
||||
auto* p = CreateMaybeMessage<::legacy_pb::Fee>(GetArenaNoVirtual());
|
||||
fee_ = p;
|
||||
}
|
||||
// @@protoc_insertion_point(field_mutable:pb.Metadata.fee)
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Metadata.fee)
|
||||
return fee_;
|
||||
}
|
||||
inline void Metadata::set_allocated_fee(::pb::Fee* fee) {
|
||||
inline void Metadata::set_allocated_fee(::legacy_pb::Fee* fee) {
|
||||
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
|
||||
if (message_arena == NULL) {
|
||||
delete reinterpret_cast< ::google::protobuf::MessageLite*>(fee_);
|
||||
|
@ -1385,7 +1385,7 @@ inline void Metadata::set_allocated_fee(::pb::Fee* fee) {
|
|||
clear_has_fee();
|
||||
}
|
||||
fee_ = fee;
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Metadata.fee)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Metadata.fee)
|
||||
}
|
||||
|
||||
// optional string thumbnail = 9;
|
||||
|
@ -1403,41 +1403,41 @@ inline void Metadata::clear_thumbnail() {
|
|||
clear_has_thumbnail();
|
||||
}
|
||||
inline const ::std::string& Metadata::thumbnail() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Metadata.thumbnail)
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Metadata.thumbnail)
|
||||
return thumbnail_.GetNoArena();
|
||||
}
|
||||
inline void Metadata::set_thumbnail(const ::std::string& value) {
|
||||
set_has_thumbnail();
|
||||
thumbnail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
||||
// @@protoc_insertion_point(field_set:pb.Metadata.thumbnail)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Metadata.thumbnail)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Metadata::set_thumbnail(::std::string&& value) {
|
||||
set_has_thumbnail();
|
||||
thumbnail_.SetNoArena(
|
||||
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
||||
// @@protoc_insertion_point(field_set_rvalue:pb.Metadata.thumbnail)
|
||||
// @@protoc_insertion_point(field_set_rvalue:legacy_pb.Metadata.thumbnail)
|
||||
}
|
||||
#endif
|
||||
inline void Metadata::set_thumbnail(const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
set_has_thumbnail();
|
||||
thumbnail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
||||
// @@protoc_insertion_point(field_set_char:pb.Metadata.thumbnail)
|
||||
// @@protoc_insertion_point(field_set_char:legacy_pb.Metadata.thumbnail)
|
||||
}
|
||||
inline void Metadata::set_thumbnail(const char* value, size_t size) {
|
||||
set_has_thumbnail();
|
||||
thumbnail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
::std::string(reinterpret_cast<const char*>(value), size));
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Metadata.thumbnail)
|
||||
// @@protoc_insertion_point(field_set_pointer:legacy_pb.Metadata.thumbnail)
|
||||
}
|
||||
inline ::std::string* Metadata::mutable_thumbnail() {
|
||||
set_has_thumbnail();
|
||||
// @@protoc_insertion_point(field_mutable:pb.Metadata.thumbnail)
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Metadata.thumbnail)
|
||||
return thumbnail_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline ::std::string* Metadata::release_thumbnail() {
|
||||
// @@protoc_insertion_point(field_release:pb.Metadata.thumbnail)
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Metadata.thumbnail)
|
||||
if (!has_thumbnail()) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1451,7 +1451,7 @@ inline void Metadata::set_allocated_thumbnail(::std::string* thumbnail) {
|
|||
clear_has_thumbnail();
|
||||
}
|
||||
thumbnail_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), thumbnail);
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Metadata.thumbnail)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Metadata.thumbnail)
|
||||
}
|
||||
|
||||
// optional string preview = 10;
|
||||
|
@ -1469,41 +1469,41 @@ inline void Metadata::clear_preview() {
|
|||
clear_has_preview();
|
||||
}
|
||||
inline const ::std::string& Metadata::preview() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Metadata.preview)
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Metadata.preview)
|
||||
return preview_.GetNoArena();
|
||||
}
|
||||
inline void Metadata::set_preview(const ::std::string& value) {
|
||||
set_has_preview();
|
||||
preview_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
||||
// @@protoc_insertion_point(field_set:pb.Metadata.preview)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Metadata.preview)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Metadata::set_preview(::std::string&& value) {
|
||||
set_has_preview();
|
||||
preview_.SetNoArena(
|
||||
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
||||
// @@protoc_insertion_point(field_set_rvalue:pb.Metadata.preview)
|
||||
// @@protoc_insertion_point(field_set_rvalue:legacy_pb.Metadata.preview)
|
||||
}
|
||||
#endif
|
||||
inline void Metadata::set_preview(const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
set_has_preview();
|
||||
preview_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
||||
// @@protoc_insertion_point(field_set_char:pb.Metadata.preview)
|
||||
// @@protoc_insertion_point(field_set_char:legacy_pb.Metadata.preview)
|
||||
}
|
||||
inline void Metadata::set_preview(const char* value, size_t size) {
|
||||
set_has_preview();
|
||||
preview_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
::std::string(reinterpret_cast<const char*>(value), size));
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Metadata.preview)
|
||||
// @@protoc_insertion_point(field_set_pointer:legacy_pb.Metadata.preview)
|
||||
}
|
||||
inline ::std::string* Metadata::mutable_preview() {
|
||||
set_has_preview();
|
||||
// @@protoc_insertion_point(field_mutable:pb.Metadata.preview)
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Metadata.preview)
|
||||
return preview_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline ::std::string* Metadata::release_preview() {
|
||||
// @@protoc_insertion_point(field_release:pb.Metadata.preview)
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Metadata.preview)
|
||||
if (!has_preview()) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1517,7 +1517,7 @@ inline void Metadata::set_allocated_preview(::std::string* preview) {
|
|||
clear_has_preview();
|
||||
}
|
||||
preview_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), preview);
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Metadata.preview)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Metadata.preview)
|
||||
}
|
||||
|
||||
// optional string licenseUrl = 11;
|
||||
|
@ -1535,41 +1535,41 @@ inline void Metadata::clear_licenseurl() {
|
|||
clear_has_licenseurl();
|
||||
}
|
||||
inline const ::std::string& Metadata::licenseurl() const {
|
||||
// @@protoc_insertion_point(field_get:pb.Metadata.licenseUrl)
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Metadata.licenseUrl)
|
||||
return licenseurl_.GetNoArena();
|
||||
}
|
||||
inline void Metadata::set_licenseurl(const ::std::string& value) {
|
||||
set_has_licenseurl();
|
||||
licenseurl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
||||
// @@protoc_insertion_point(field_set:pb.Metadata.licenseUrl)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Metadata.licenseUrl)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void Metadata::set_licenseurl(::std::string&& value) {
|
||||
set_has_licenseurl();
|
||||
licenseurl_.SetNoArena(
|
||||
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
||||
// @@protoc_insertion_point(field_set_rvalue:pb.Metadata.licenseUrl)
|
||||
// @@protoc_insertion_point(field_set_rvalue:legacy_pb.Metadata.licenseUrl)
|
||||
}
|
||||
#endif
|
||||
inline void Metadata::set_licenseurl(const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
set_has_licenseurl();
|
||||
licenseurl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
||||
// @@protoc_insertion_point(field_set_char:pb.Metadata.licenseUrl)
|
||||
// @@protoc_insertion_point(field_set_char:legacy_pb.Metadata.licenseUrl)
|
||||
}
|
||||
inline void Metadata::set_licenseurl(const char* value, size_t size) {
|
||||
set_has_licenseurl();
|
||||
licenseurl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
::std::string(reinterpret_cast<const char*>(value), size));
|
||||
// @@protoc_insertion_point(field_set_pointer:pb.Metadata.licenseUrl)
|
||||
// @@protoc_insertion_point(field_set_pointer:legacy_pb.Metadata.licenseUrl)
|
||||
}
|
||||
inline ::std::string* Metadata::mutable_licenseurl() {
|
||||
set_has_licenseurl();
|
||||
// @@protoc_insertion_point(field_mutable:pb.Metadata.licenseUrl)
|
||||
// @@protoc_insertion_point(field_mutable:legacy_pb.Metadata.licenseUrl)
|
||||
return licenseurl_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline ::std::string* Metadata::release_licenseurl() {
|
||||
// @@protoc_insertion_point(field_release:pb.Metadata.licenseUrl)
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Metadata.licenseUrl)
|
||||
if (!has_licenseurl()) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1583,7 +1583,7 @@ inline void Metadata::set_allocated_licenseurl(::std::string* licenseurl) {
|
|||
clear_has_licenseurl();
|
||||
}
|
||||
licenseurl_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), licenseurl);
|
||||
// @@protoc_insertion_point(field_set_allocated:pb.Metadata.licenseUrl)
|
||||
// @@protoc_insertion_point(field_set_allocated:legacy_pb.Metadata.licenseUrl)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
@ -1592,20 +1592,20 @@ inline void Metadata::set_allocated_licenseurl(::std::string* licenseurl) {
|
|||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
|
||||
template <> struct is_proto_enum< ::pb::Metadata_Version> : ::std::true_type {};
|
||||
template <> struct is_proto_enum< ::legacy_pb::Metadata_Version> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::pb::Metadata_Version>() {
|
||||
return ::pb::Metadata_Version_descriptor();
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::Metadata_Version>() {
|
||||
return ::legacy_pb::Metadata_Version_descriptor();
|
||||
}
|
||||
template <> struct is_proto_enum< ::pb::Metadata_Language> : ::std::true_type {};
|
||||
template <> struct is_proto_enum< ::legacy_pb::Metadata_Language> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::pb::Metadata_Language>() {
|
||||
return ::pb::Metadata_Language_descriptor();
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::legacy_pb::Metadata_Language>() {
|
||||
return ::legacy_pb::Metadata_Language_descriptor();
|
||||
}
|
||||
|
||||
} // namespace protobuf
|
||||
|
|
|
@ -19,23 +19,23 @@
|
|||
#endif
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
class SignatureDefaultTypeInternal {
|
||||
public:
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Signature>
|
||||
_instance;
|
||||
} _Signature_default_instance_;
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace protobuf_signature_2eproto {
|
||||
static void InitDefaultsSignature() {
|
||||
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 =
|
||||
|
@ -49,26 +49,26 @@ void InitDefaults() {
|
|||
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
|
||||
|
||||
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_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Signature, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_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_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Signature, version_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Signature, signaturetype_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Signature, signature_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_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)},
|
||||
{ 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() {
|
||||
|
@ -92,15 +92,15 @@ void protobuf_RegisterTypes(const ::std::string&) {
|
|||
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"
|
||||
"\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::DescriptorPool::InternalAddGeneratedFile(
|
||||
descriptor, 216);
|
||||
descriptor, 237);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"signature.proto", &protobuf_RegisterTypes);
|
||||
::protobuf_certificate_2eproto::AddDescriptors();
|
||||
|
@ -117,7 +117,7 @@ struct StaticDescriptorInitializer {
|
|||
}
|
||||
} static_descriptor_initializer;
|
||||
} // namespace protobuf_signature_2eproto
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
const ::google::protobuf::EnumDescriptor* Signature_Version_descriptor() {
|
||||
protobuf_signature_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_signature_2eproto::file_level_enum_descriptors[0];
|
||||
|
@ -156,7 +156,7 @@ Signature::Signature()
|
|||
::google::protobuf::internal::InitSCC(
|
||||
&protobuf_signature_2eproto::scc_info_Signature.base);
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:pb.Signature)
|
||||
// @@protoc_insertion_point(constructor:legacy_pb.Signature)
|
||||
}
|
||||
Signature::Signature(const Signature& from)
|
||||
: ::google::protobuf::Message(),
|
||||
|
@ -174,7 +174,7 @@ 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() {
|
||||
|
@ -186,7 +186,7 @@ void Signature::SharedCtor() {
|
|||
}
|
||||
|
||||
Signature::~Signature() {
|
||||
// @@protoc_insertion_point(destructor:pb.Signature)
|
||||
// @@protoc_insertion_point(destructor:legacy_pb.Signature)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
|
@ -210,7 +210,7 @@ const Signature& Signature::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;
|
||||
|
@ -237,13 +237,13 @@ bool Signature::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.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 */)) {
|
||||
|
@ -251,8 +251,8 @@ bool Signature::MergePartialFromCodedStream(
|
|||
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));
|
||||
|
@ -263,7 +263,7 @@ 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 */)) {
|
||||
|
@ -271,8 +271,8 @@ bool Signature::MergePartialFromCodedStream(
|
|||
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));
|
||||
|
@ -319,28 +319,28 @@ 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_
|
||||
}
|
||||
|
||||
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 +362,24 @@ 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)
|
||||
// @@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 +403,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 +426,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 +440,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,11 +459,11 @@ 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());
|
||||
|
||||
|
@ -476,22 +476,22 @@ size_t Signature::ByteSizeLong() const {
|
|||
}
|
||||
|
||||
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>(
|
||||
&from);
|
||||
if (source == NULL) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Signature)
|
||||
// @@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;
|
||||
|
@ -518,14 +518,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);
|
||||
|
@ -559,11 +559,11 @@ void Signature::InternalSwap(Signature* other) {
|
|||
|
||||
|
||||
// @@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<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::legacy_pb::Signature* Arena::CreateMaybeMessage< ::legacy_pb::Signature >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::legacy_pb::Signature >(arena);
|
||||
}
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006000
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006001
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
@ -47,17 +47,17 @@ struct TableStruct {
|
|||
};
|
||||
void AddDescriptors();
|
||||
} // namespace protobuf_signature_2eproto
|
||||
namespace pb {
|
||||
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 +80,7 @@ inline bool Signature_Version_Parse(
|
|||
}
|
||||
// ===================================================================
|
||||
|
||||
class Signature : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Signature) */ {
|
||||
class Signature : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Signature) */ {
|
||||
public:
|
||||
Signature();
|
||||
virtual ~Signature();
|
||||
|
@ -230,21 +230,21 @@ 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();
|
||||
|
@ -278,7 +278,7 @@ 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;
|
||||
}
|
||||
|
@ -292,18 +292,18 @@ inline void Signature::clear_version() {
|
|||
version_ = 0;
|
||||
clear_has_version();
|
||||
}
|
||||
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));
|
||||
inline void Signature::set_version(::legacy_pb::Signature_Version value) {
|
||||
assert(::legacy_pb::Signature_Version_IsValid(value));
|
||||
set_has_version();
|
||||
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;
|
||||
}
|
||||
|
@ -317,15 +317,15 @@ inline void Signature::clear_signaturetype() {
|
|||
signaturetype_ = 0;
|
||||
clear_has_signaturetype();
|
||||
}
|
||||
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));
|
||||
inline void Signature::set_signaturetype(::legacy_pb::KeyType value) {
|
||||
assert(::legacy_pb::KeyType_IsValid(value));
|
||||
set_has_signaturetype();
|
||||
signaturetype_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Signature.signatureType)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Signature.signatureType)
|
||||
}
|
||||
|
||||
// required bytes signature = 3;
|
||||
|
@ -343,41 +343,41 @@ inline void Signature::clear_signature() {
|
|||
clear_has_signature();
|
||||
}
|
||||
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();
|
||||
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();
|
||||
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();
|
||||
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();
|
||||
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)
|
||||
// @@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;
|
||||
}
|
||||
|
@ -391,7 +391,7 @@ inline void Signature::set_allocated_signature(::std::string* signature) {
|
|||
clear_has_signature();
|
||||
}
|
||||
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;
|
||||
|
@ -409,41 +409,41 @@ inline void Signature::clear_certificateid() {
|
|||
clear_has_certificateid();
|
||||
}
|
||||
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();
|
||||
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();
|
||||
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();
|
||||
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();
|
||||
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)
|
||||
// @@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;
|
||||
}
|
||||
|
@ -457,7 +457,7 @@ inline void Signature::set_allocated_certificateid(::std::string* certificateid)
|
|||
clear_has_certificateid();
|
||||
}
|
||||
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 +466,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
|
||||
|
|
|
@ -19,23 +19,23 @@
|
|||
#endif
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
class SourceDefaultTypeInternal {
|
||||
public:
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Source>
|
||||
_instance;
|
||||
} _Source_default_instance_;
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace protobuf_source_2eproto {
|
||||
static void InitDefaultsSource() {
|
||||
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 =
|
||||
|
@ -49,26 +49,26 @@ void InitDefaults() {
|
|||
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::Source, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pb::Source, _internal_metadata_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Source, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_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_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Source, version_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Source, sourcetype_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Source, source_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_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)},
|
||||
{ 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() {
|
||||
|
@ -92,16 +92,16 @@ void protobuf_RegisterTypes(const ::std::string&) {
|
|||
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"
|
||||
"\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::DescriptorPool::InternalAddGeneratedFile(
|
||||
descriptor, 249);
|
||||
descriptor, 270);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"source.proto", &protobuf_RegisterTypes);
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ struct StaticDescriptorInitializer {
|
|||
}
|
||||
} static_descriptor_initializer;
|
||||
} // namespace protobuf_source_2eproto
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
const ::google::protobuf::EnumDescriptor* Source_Version_descriptor() {
|
||||
protobuf_source_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_source_2eproto::file_level_enum_descriptors[0];
|
||||
|
@ -177,7 +177,7 @@ Source::Source()
|
|||
::google::protobuf::internal::InitSCC(
|
||||
&protobuf_source_2eproto::scc_info_Source.base);
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:pb.Source)
|
||||
// @@protoc_insertion_point(constructor:legacy_pb.Source)
|
||||
}
|
||||
Source::Source(const Source& from)
|
||||
: ::google::protobuf::Message(),
|
||||
|
@ -195,7 +195,7 @@ 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() {
|
||||
|
@ -207,7 +207,7 @@ void Source::SharedCtor() {
|
|||
}
|
||||
|
||||
Source::~Source() {
|
||||
// @@protoc_insertion_point(destructor:pb.Source)
|
||||
// @@protoc_insertion_point(destructor:legacy_pb.Source)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
|
@ -231,7 +231,7 @@ const Source& Source::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;
|
||||
|
@ -258,13 +258,13 @@ bool Source::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.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 */)) {
|
||||
|
@ -272,8 +272,8 @@ bool Source::MergePartialFromCodedStream(
|
|||
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));
|
||||
|
@ -284,7 +284,7 @@ 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 */)) {
|
||||
|
@ -292,8 +292,8 @@ bool Source::MergePartialFromCodedStream(
|
|||
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));
|
||||
|
@ -325,7 +325,7 @@ bool Source::MergePartialFromCodedStream(
|
|||
::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 +344,28 @@ 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_
|
||||
}
|
||||
|
||||
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 +382,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 +391,24 @@ 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)
|
||||
// @@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 +426,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 +436,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 +459,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 +473,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,11 +492,11 @@ 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());
|
||||
|
||||
|
@ -509,22 +509,22 @@ size_t Source::ByteSizeLong() const {
|
|||
}
|
||||
|
||||
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>(
|
||||
&from);
|
||||
if (source == NULL) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Source)
|
||||
// @@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;
|
||||
|
@ -551,14 +551,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);
|
||||
|
@ -592,11 +592,11 @@ void Source::InternalSwap(Source* other) {
|
|||
|
||||
|
||||
// @@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<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::legacy_pb::Source* Arena::CreateMaybeMessage< ::legacy_pb::Source >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::legacy_pb::Source >(arena);
|
||||
}
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006000
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006001
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
@ -46,17 +46,17 @@ struct TableStruct {
|
|||
};
|
||||
void AddDescriptors();
|
||||
} // namespace protobuf_source_2eproto
|
||||
namespace pb {
|
||||
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 +98,7 @@ inline bool Source_SourceTypes_Parse(
|
|||
}
|
||||
// ===================================================================
|
||||
|
||||
class Source : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Source) */ {
|
||||
class Source : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Source) */ {
|
||||
public:
|
||||
Source();
|
||||
virtual ~Source();
|
||||
|
@ -274,21 +274,21 @@ 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();
|
||||
|
@ -322,7 +322,7 @@ 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;
|
||||
}
|
||||
|
@ -336,18 +336,18 @@ inline void Source::clear_version() {
|
|||
version_ = 0;
|
||||
clear_has_version();
|
||||
}
|
||||
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));
|
||||
inline void Source::set_version(::legacy_pb::Source_Version value) {
|
||||
assert(::legacy_pb::Source_Version_IsValid(value));
|
||||
set_has_version();
|
||||
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;
|
||||
}
|
||||
|
@ -361,15 +361,15 @@ inline void Source::clear_sourcetype() {
|
|||
sourcetype_ = 0;
|
||||
clear_has_sourcetype();
|
||||
}
|
||||
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));
|
||||
inline void Source::set_sourcetype(::legacy_pb::Source_SourceTypes value) {
|
||||
assert(::legacy_pb::Source_SourceTypes_IsValid(value));
|
||||
set_has_sourcetype();
|
||||
sourcetype_ = value;
|
||||
// @@protoc_insertion_point(field_set:pb.Source.sourceType)
|
||||
// @@protoc_insertion_point(field_set:legacy_pb.Source.sourceType)
|
||||
}
|
||||
|
||||
// required bytes source = 3;
|
||||
|
@ -387,41 +387,41 @@ inline void Source::clear_source() {
|
|||
clear_has_source();
|
||||
}
|
||||
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();
|
||||
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();
|
||||
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();
|
||||
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();
|
||||
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)
|
||||
// @@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;
|
||||
}
|
||||
|
@ -435,7 +435,7 @@ inline void Source::set_allocated_source(::std::string* source) {
|
|||
clear_has_source();
|
||||
}
|
||||
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;
|
||||
|
@ -453,41 +453,41 @@ inline void Source::clear_contenttype() {
|
|||
clear_has_contenttype();
|
||||
}
|
||||
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();
|
||||
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();
|
||||
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();
|
||||
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();
|
||||
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)
|
||||
// @@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;
|
||||
}
|
||||
|
@ -501,7 +501,7 @@ inline void Source::set_allocated_contenttype(::std::string* contenttype) {
|
|||
clear_has_contenttype();
|
||||
}
|
||||
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 +510,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
|
||||
|
|
|
@ -25,23 +25,23 @@ extern PROTOBUF_INTERNAL_EXPORT_protobuf_metadata_2eproto ::google::protobuf::in
|
|||
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 {
|
||||
namespace legacy_pb {
|
||||
class StreamDefaultTypeInternal {
|
||||
public:
|
||||
::google::protobuf::internal::ExplicitlyConstructed<Stream>
|
||||
_instance;
|
||||
} _Stream_default_instance_;
|
||||
} // namespace pb
|
||||
} // namespace legacy_pb
|
||||
namespace protobuf_stream_2eproto {
|
||||
static void InitDefaultsStream() {
|
||||
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 =
|
||||
|
@ -57,24 +57,24 @@ void InitDefaults() {
|
|||
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
|
||||
|
||||
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_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Stream, _has_bits_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_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_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Stream, version_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::legacy_pb::Stream, metadata_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_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)},
|
||||
{ 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() {
|
||||
|
@ -98,14 +98,15 @@ void protobuf_RegisterTypes(const ::std::string&) {
|
|||
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"
|
||||
"\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::DescriptorPool::InternalAddGeneratedFile(
|
||||
descriptor, 200);
|
||||
descriptor, 228);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"stream.proto", &protobuf_RegisterTypes);
|
||||
::protobuf_metadata_2eproto::AddDescriptors();
|
||||
|
@ -123,7 +124,7 @@ struct StaticDescriptorInitializer {
|
|||
}
|
||||
} static_descriptor_initializer;
|
||||
} // namespace protobuf_stream_2eproto
|
||||
namespace pb {
|
||||
namespace legacy_pb {
|
||||
const ::google::protobuf::EnumDescriptor* Stream_Version_descriptor() {
|
||||
protobuf_stream_2eproto::protobuf_AssignDescriptorsOnce();
|
||||
return protobuf_stream_2eproto::file_level_enum_descriptors[0];
|
||||
|
@ -149,10 +150,10 @@ 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());
|
||||
}
|
||||
void Stream::clear_metadata() {
|
||||
if (metadata_ != NULL) metadata_->Clear();
|
||||
|
@ -173,7 +174,7 @@ Stream::Stream()
|
|||
::google::protobuf::internal::InitSCC(
|
||||
&protobuf_stream_2eproto::scc_info_Stream.base);
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:pb.Stream)
|
||||
// @@protoc_insertion_point(constructor:legacy_pb.Stream)
|
||||
}
|
||||
Stream::Stream(const Stream& from)
|
||||
: ::google::protobuf::Message(),
|
||||
|
@ -181,17 +182,17 @@ Stream::Stream(const Stream& from)
|
|||
_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;
|
||||
}
|
||||
if (from.has_source()) {
|
||||
source_ = new ::pb::Source(*from.source_);
|
||||
source_ = new ::legacy_pb::Source(*from.source_);
|
||||
} else {
|
||||
source_ = NULL;
|
||||
}
|
||||
version_ = from.version_;
|
||||
// @@protoc_insertion_point(copy_constructor:pb.Stream)
|
||||
// @@protoc_insertion_point(copy_constructor:legacy_pb.Stream)
|
||||
}
|
||||
|
||||
void Stream::SharedCtor() {
|
||||
|
@ -201,7 +202,7 @@ void Stream::SharedCtor() {
|
|||
}
|
||||
|
||||
Stream::~Stream() {
|
||||
// @@protoc_insertion_point(destructor:pb.Stream)
|
||||
// @@protoc_insertion_point(destructor:legacy_pb.Stream)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
|
@ -225,7 +226,7 @@ const Stream& Stream::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;
|
||||
|
@ -250,13 +251,13 @@ bool Stream::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.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 */)) {
|
||||
|
@ -264,8 +265,8 @@ bool Stream::MergePartialFromCodedStream(
|
|||
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));
|
||||
|
@ -276,7 +277,7 @@ 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 */)) {
|
||||
|
@ -288,7 +289,7 @@ 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 */)) {
|
||||
|
@ -312,34 +313,34 @@ 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_
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
// 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);
|
||||
|
@ -349,31 +350,31 @@ void Stream::SerializeWithCachedSizes(
|
|||
::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)
|
||||
// @@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);
|
||||
}
|
||||
|
||||
// required .pb.Source source = 3;
|
||||
// required .legacy_pb.Source source = 3;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::
|
||||
InternalWriteMessageToArray(
|
||||
|
@ -384,30 +385,30 @@ void Stream::SerializeWithCachedSizes(
|
|||
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 +416,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,17 +425,17 @@ 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());
|
||||
|
||||
|
@ -447,22 +448,22 @@ size_t Stream::ByteSizeLong() const {
|
|||
}
|
||||
|
||||
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>(
|
||||
&from);
|
||||
if (source == NULL) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:pb.Stream)
|
||||
// @@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;
|
||||
|
@ -471,10 +472,10 @@ void Stream::MergeFrom(const Stream& from) {
|
|||
cached_has_bits = from._has_bits_[0];
|
||||
if (cached_has_bits & 7u) {
|
||||
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 +485,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);
|
||||
|
@ -528,11 +529,11 @@ void Stream::InternalSwap(Stream* other) {
|
|||
|
||||
|
||||
// @@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<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::legacy_pb::Stream* Arena::CreateMaybeMessage< ::legacy_pb::Stream >(Arena* arena) {
|
||||
return Arena::CreateInternal< ::legacy_pb::Stream >(arena);
|
||||
}
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006000
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3006001
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
|
@ -48,17 +48,17 @@ struct TableStruct {
|
|||
};
|
||||
void AddDescriptors();
|
||||
} // namespace protobuf_stream_2eproto
|
||||
namespace pb {
|
||||
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 +81,7 @@ inline bool Stream_Version_Parse(
|
|||
}
|
||||
// ===================================================================
|
||||
|
||||
class Stream : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pb.Stream) */ {
|
||||
class Stream : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:legacy_pb.Stream) */ {
|
||||
public:
|
||||
Stream();
|
||||
virtual ~Stream();
|
||||
|
@ -201,38 +201,38 @@ 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;
|
||||
const ::legacy_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;
|
||||
const ::legacy_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();
|
||||
|
@ -247,8 +247,8 @@ 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;
|
||||
};
|
||||
|
@ -263,7 +263,7 @@ 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;
|
||||
}
|
||||
|
@ -277,18 +277,18 @@ inline void Stream::clear_version() {
|
|||
version_ = 0;
|
||||
clear_has_version();
|
||||
}
|
||||
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));
|
||||
inline void Stream::set_version(::legacy_pb::Stream_Version value) {
|
||||
assert(::legacy_pb::Stream_Version_IsValid(value));
|
||||
set_has_version();
|
||||
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;
|
||||
}
|
||||
|
@ -298,32 +298,32 @@ inline void Stream::set_has_metadata() {
|
|||
inline void Stream::clear_has_metadata() {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline const ::pb::Metadata& Stream::_internal_metadata() const {
|
||||
inline const ::legacy_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 const ::legacy_pb::Metadata& Stream::metadata() const {
|
||||
const ::legacy_pb::Metadata* p = metadata_;
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Stream.metadata)
|
||||
return p != NULL ? *p : *reinterpret_cast<const ::legacy_pb::Metadata*>(
|
||||
&::legacy_pb::_Metadata_default_instance_);
|
||||
}
|
||||
inline ::pb::Metadata* Stream::release_metadata() {
|
||||
// @@protoc_insertion_point(field_release:pb.Stream.metadata)
|
||||
inline ::legacy_pb::Metadata* Stream::release_metadata() {
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Stream.metadata)
|
||||
clear_has_metadata();
|
||||
::pb::Metadata* temp = metadata_;
|
||||
::legacy_pb::Metadata* temp = metadata_;
|
||||
metadata_ = NULL;
|
||||
return temp;
|
||||
}
|
||||
inline ::pb::Metadata* Stream::mutable_metadata() {
|
||||
inline ::legacy_pb::Metadata* Stream::mutable_metadata() {
|
||||
set_has_metadata();
|
||||
if (metadata_ == NULL) {
|
||||
auto* p = CreateMaybeMessage<::pb::Metadata>(GetArenaNoVirtual());
|
||||
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) {
|
||||
delete reinterpret_cast< ::google::protobuf::MessageLite*>(metadata_);
|
||||
|
@ -339,10 +339,10 @@ inline void Stream::set_allocated_metadata(::pb::Metadata* metadata) {
|
|||
clear_has_metadata();
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
@ -352,32 +352,32 @@ inline void Stream::set_has_source() {
|
|||
inline void Stream::clear_has_source() {
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline const ::pb::Source& Stream::_internal_source() const {
|
||||
inline const ::legacy_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 const ::legacy_pb::Source& Stream::source() const {
|
||||
const ::legacy_pb::Source* p = source_;
|
||||
// @@protoc_insertion_point(field_get:legacy_pb.Stream.source)
|
||||
return p != NULL ? *p : *reinterpret_cast<const ::legacy_pb::Source*>(
|
||||
&::legacy_pb::_Source_default_instance_);
|
||||
}
|
||||
inline ::pb::Source* Stream::release_source() {
|
||||
// @@protoc_insertion_point(field_release:pb.Stream.source)
|
||||
inline ::legacy_pb::Source* Stream::release_source() {
|
||||
// @@protoc_insertion_point(field_release:legacy_pb.Stream.source)
|
||||
clear_has_source();
|
||||
::pb::Source* temp = source_;
|
||||
::legacy_pb::Source* temp = source_;
|
||||
source_ = NULL;
|
||||
return temp;
|
||||
}
|
||||
inline ::pb::Source* Stream::mutable_source() {
|
||||
inline ::legacy_pb::Source* Stream::mutable_source() {
|
||||
set_has_source();
|
||||
if (source_ == NULL) {
|
||||
auto* p = CreateMaybeMessage<::pb::Source>(GetArenaNoVirtual());
|
||||
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) {
|
||||
delete reinterpret_cast< ::google::protobuf::MessageLite*>(source_);
|
||||
|
@ -393,7 +393,7 @@ inline void Stream::set_allocated_source(::pb::Source* source) {
|
|||
clear_has_source();
|
||||
}
|
||||
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 +402,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
|
||||
|
|
|
@ -1,28 +1,7 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: certificate.proto
|
||||
|
||||
/*
|
||||
Package pb is a generated protocol buffer package.
|
||||
|
||||
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
|
||||
package legacy_pb
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
|
@ -77,7 +56,9 @@ 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_certificate_47a4b47e210891c4, []int{0}
|
||||
}
|
||||
|
||||
type Certificate_Version int32
|
||||
|
||||
|
@ -111,19 +92,42 @@ 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_certificate_47a4b47e210891c4, []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_certificate_47a4b47e210891c4, []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 (dst *Certificate) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Certificate.Merge(dst, 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 +151,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.RegisterType((*Certificate)(nil), "legacy_pb.Certificate")
|
||||
proto.RegisterEnum("legacy_pb.KeyType", KeyType_name, KeyType_value)
|
||||
proto.RegisterEnum("legacy_pb.Certificate_Version", Certificate_Version_name, Certificate_Version_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("certificate.proto", fileDescriptor0) }
|
||||
func init() { proto.RegisterFile("certificate.proto", fileDescriptor_certificate_47a4b47e210891c4) }
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
// 238 bytes of a gzipped FileDescriptorProto
|
||||
var fileDescriptor_certificate_47a4b47e210891c4 = []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,
|
||||
}
|
100
v1/go/fee.pb.go
100
v1/go/fee.pb.go
|
@ -1,7 +1,7 @@
|
|||
// 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"
|
||||
|
@ -12,6 +12,12 @@ 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type Fee_Version int32
|
||||
|
||||
const (
|
||||
|
@ -44,7 +50,9 @@ 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_fee_a80c5fb0f0bc8783, []int{0, 0}
|
||||
}
|
||||
|
||||
type Fee_Currency int32
|
||||
|
||||
|
@ -84,20 +92,43 @@ 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_fee_a80c5fb0f0bc8783, []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_fee_a80c5fb0f0bc8783, []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 (dst *Fee) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Fee.Merge(dst, 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 +159,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.RegisterType((*Fee)(nil), "legacy_pb.Fee")
|
||||
proto.RegisterEnum("legacy_pb.Fee_Version", Fee_Version_name, Fee_Version_value)
|
||||
proto.RegisterEnum("legacy_pb.Fee_Currency", Fee_Currency_name, Fee_Currency_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("fee.proto", fileDescriptor2) }
|
||||
func init() { proto.RegisterFile("fee.proto", fileDescriptor_fee_a80c5fb0f0bc8783) }
|
||||
|
||||
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_fee_a80c5fb0f0bc8783 = []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,
|
||||
}
|
||||
|
|
195
v1/go/legacy_claim.pb.go
Normal file
195
v1/go/legacy_claim.pb.go
Normal file
|
@ -0,0 +1,195 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: legacy_claim.proto
|
||||
|
||||
package legacy_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
|
||||
|
||||
// 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.ProtoPackageIsVersion2 // 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_legacy_claim_ba06518775556f44, []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_legacy_claim_ba06518775556f44, []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_legacy_claim_ba06518775556f44, []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 (dst *Claim) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Claim.Merge(dst, 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.RegisterType((*Claim)(nil), "legacy_pb.Claim")
|
||||
proto.RegisterEnum("legacy_pb.Claim_Version", Claim_Version_name, Claim_Version_value)
|
||||
proto.RegisterEnum("legacy_pb.Claim_ClaimType", Claim_ClaimType_name, Claim_ClaimType_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("legacy_claim.proto", fileDescriptor_legacy_claim_ba06518775556f44) }
|
||||
|
||||
var fileDescriptor_legacy_claim_ba06518775556f44 = []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,7 +1,7 @@
|
|||
// 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"
|
||||
|
@ -12,6 +12,12 @@ 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type Metadata_Version int32
|
||||
|
||||
const (
|
||||
|
@ -53,7 +59,9 @@ 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_metadata_e82f9da818ea7d21, []int{0, 0}
|
||||
}
|
||||
|
||||
type Metadata_Language int32
|
||||
|
||||
|
@ -636,27 +644,50 @@ 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_metadata_e82f9da818ea7d21, []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_metadata_e82f9da818ea7d21, []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 (dst *Metadata) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Metadata.Merge(dst, 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 +767,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.RegisterType((*Metadata)(nil), "legacy_pb.Metadata")
|
||||
proto.RegisterEnum("legacy_pb.Metadata_Version", Metadata_Version_name, Metadata_Version_value)
|
||||
proto.RegisterEnum("legacy_pb.Metadata_Language", Metadata_Language_name, Metadata_Language_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("metadata.proto", fileDescriptor3) }
|
||||
func init() { proto.RegisterFile("metadata.proto", fileDescriptor_metadata_e82f9da818ea7d21) }
|
||||
|
||||
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_metadata_e82f9da818ea7d21 = []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,7 +1,7 @@
|
|||
// 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"
|
||||
|
@ -12,6 +12,12 @@ 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type Signature_Version int32
|
||||
|
||||
const (
|
||||
|
@ -44,20 +50,43 @@ 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_signature_db49c854424da426, []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_signature_db49c854424da426, []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 (dst *Signature) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Signature.Merge(dst, 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 +117,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.RegisterType((*Signature)(nil), "legacy_pb.Signature")
|
||||
proto.RegisterEnum("legacy_pb.Signature_Version", Signature_Version_name, Signature_Version_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("signature.proto", fileDescriptor4) }
|
||||
func init() { proto.RegisterFile("signature.proto", fileDescriptor_signature_db49c854424da426) }
|
||||
|
||||
var fileDescriptor4 = []byte{
|
||||
// 192 bytes of a gzipped FileDescriptorProto
|
||||
var fileDescriptor_signature_db49c854424da426 = []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,7 +1,7 @@
|
|||
// 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"
|
||||
|
@ -12,6 +12,12 @@ 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type Source_Version int32
|
||||
|
||||
const (
|
||||
|
@ -44,7 +50,9 @@ 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_source_ce8ba9f1af24d4de, []int{0, 0}
|
||||
}
|
||||
|
||||
type Source_SourceTypes int32
|
||||
|
||||
|
@ -78,20 +86,43 @@ 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_source_ce8ba9f1af24d4de, []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_source_ce8ba9f1af24d4de, []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 (dst *Source) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Source.Merge(dst, 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 +153,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.RegisterType((*Source)(nil), "legacy_pb.Source")
|
||||
proto.RegisterEnum("legacy_pb.Source_Version", Source_Version_name, Source_Version_value)
|
||||
proto.RegisterEnum("legacy_pb.Source_SourceTypes", Source_SourceTypes_name, Source_SourceTypes_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("source.proto", fileDescriptor5) }
|
||||
func init() { proto.RegisterFile("source.proto", fileDescriptor_source_ce8ba9f1af24d4de) }
|
||||
|
||||
var fileDescriptor5 = []byte{
|
||||
// 224 bytes of a gzipped FileDescriptorProto
|
||||
var fileDescriptor_source_ce8ba9f1af24d4de = []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,7 +1,7 @@
|
|||
// 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"
|
||||
|
@ -12,6 +12,12 @@ 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type Stream_Version int32
|
||||
|
||||
const (
|
||||
|
@ -44,19 +50,42 @@ 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_stream_f91d9f76e019d7b0, []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_stream_f91d9f76e019d7b0, []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 (dst *Stream) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Stream.Merge(dst, 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 +109,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.RegisterType((*Stream)(nil), "legacy_pb.Stream")
|
||||
proto.RegisterEnum("legacy_pb.Stream_Version", Stream_Version_name, Stream_Version_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("stream.proto", fileDescriptor6) }
|
||||
func init() { proto.RegisterFile("stream.proto", fileDescriptor_stream_f91d9f76e019d7b0) }
|
||||
|
||||
var fileDescriptor6 = []byte{
|
||||
// 183 bytes of a gzipped FileDescriptorProto
|
||||
var fileDescriptor_stream_f91d9f76e019d7b0 = []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,9 +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.
|
||||
|
@ -25,12 +25,12 @@ 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';
|
||||
proto.legacy_pb.Certificate.displayName = 'proto.legacy_pb.Certificate';
|
||||
}
|
||||
|
||||
|
||||
|
@ -45,8 +45,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,11 +55,11 @@ 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) {
|
||||
proto.legacy_pb.Certificate.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
version: jspb.Message.getField(msg, 1),
|
||||
keytype: jspb.Message.getField(msg, 2),
|
||||
|
@ -77,23 +77,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 +101,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 +125,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 +135,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,27 +168,27 @@ 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() {
|
||||
proto.legacy_pb.Certificate.prototype.clearVersion = function() {
|
||||
jspb.Message.setField(this, 1, undefined);
|
||||
};
|
||||
|
||||
|
@ -197,27 +197,27 @@ proto.pb.Certificate.prototype.clearVersion = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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() {
|
||||
proto.legacy_pb.Certificate.prototype.clearKeytype = function() {
|
||||
jspb.Message.setField(this, 2, undefined);
|
||||
};
|
||||
|
||||
|
@ -226,7 +226,7 @@ proto.pb.Certificate.prototype.clearKeytype = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Certificate.prototype.hasKeytype = function() {
|
||||
proto.legacy_pb.Certificate.prototype.hasKeytype = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
@ -235,7 +235,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 +245,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,19 +258,19 @@ 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() {
|
||||
proto.legacy_pb.Certificate.prototype.clearPublickey = function() {
|
||||
jspb.Message.setField(this, 4, undefined);
|
||||
};
|
||||
|
||||
|
@ -279,7 +279,7 @@ proto.pb.Certificate.prototype.clearPublickey = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Certificate.prototype.hasPublickey = function() {
|
||||
proto.legacy_pb.Certificate.prototype.hasPublickey = function() {
|
||||
return jspb.Message.getField(this, 4) != null;
|
||||
};
|
||||
|
||||
|
@ -287,11 +287,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);
|
||||
|
|
104
v1/js/fee_pb.js
104
v1/js/fee_pb.js
|
@ -11,9 +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.
|
||||
|
@ -25,12 +25,12 @@ 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';
|
||||
proto.legacy_pb.Fee.displayName = 'proto.legacy_pb.Fee';
|
||||
}
|
||||
|
||||
|
||||
|
@ -45,8 +45,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,11 +55,11 @@ 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) {
|
||||
proto.legacy_pb.Fee.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
version: jspb.Message.getField(msg, 1),
|
||||
currency: jspb.Message.getField(msg, 2),
|
||||
|
@ -78,23 +78,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 +102,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 +130,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 +140,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 +180,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 +188,7 @@ proto.pb.Fee.Version = {
|
|||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.pb.Fee.Currency = {
|
||||
proto.legacy_pb.Fee.Currency = {
|
||||
UNKNOWN_CURRENCY: 0,
|
||||
LBC: 1,
|
||||
BTC: 2,
|
||||
|
@ -197,20 +197,20 @@ 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() {
|
||||
proto.legacy_pb.Fee.prototype.clearVersion = function() {
|
||||
jspb.Message.setField(this, 1, undefined);
|
||||
};
|
||||
|
||||
|
@ -219,27 +219,27 @@ proto.pb.Fee.prototype.clearVersion = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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() {
|
||||
proto.legacy_pb.Fee.prototype.clearCurrency = function() {
|
||||
jspb.Message.setField(this, 2, undefined);
|
||||
};
|
||||
|
||||
|
@ -248,7 +248,7 @@ proto.pb.Fee.prototype.clearCurrency = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Fee.prototype.hasCurrency = function() {
|
||||
proto.legacy_pb.Fee.prototype.hasCurrency = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
@ -257,7 +257,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 +267,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,19 +280,19 @@ 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() {
|
||||
proto.legacy_pb.Fee.prototype.clearAddress = function() {
|
||||
jspb.Message.setField(this, 3, undefined);
|
||||
};
|
||||
|
||||
|
@ -301,7 +301,7 @@ proto.pb.Fee.prototype.clearAddress = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Fee.prototype.hasAddress = function() {
|
||||
proto.legacy_pb.Fee.prototype.hasAddress = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
|
@ -310,18 +310,18 @@ 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() {
|
||||
proto.legacy_pb.Fee.prototype.clearAmount = function() {
|
||||
jspb.Message.setField(this, 4, undefined);
|
||||
};
|
||||
|
||||
|
@ -330,9 +330,9 @@ proto.pb.Fee.prototype.clearAmount = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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);
|
||||
|
|
|
@ -14,9 +14,9 @@ var global = Function('return this')();
|
|||
var stream_pb = require('./stream_pb.js');
|
||||
var certificate_pb = require('./certificate_pb.js');
|
||||
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.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.
|
||||
|
@ -28,12 +28,12 @@ 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';
|
||||
proto.legacy_pb.Claim.displayName = 'proto.legacy_pb.Claim';
|
||||
}
|
||||
|
||||
|
||||
|
@ -48,8 +48,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,11 +58,11 @@ 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) {
|
||||
proto.legacy_pb.Claim.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
version: jspb.Message.getField(msg, 1),
|
||||
claimtype: jspb.Message.getField(msg, 2),
|
||||
|
@ -82,23 +82,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 +106,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 +141,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 +151,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 +201,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 +209,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,20 +217,20 @@ 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() {
|
||||
proto.legacy_pb.Claim.prototype.clearVersion = function() {
|
||||
jspb.Message.setField(this, 1, undefined);
|
||||
};
|
||||
|
||||
|
@ -239,27 +239,27 @@ proto.pb.Claim.prototype.clearVersion = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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() {
|
||||
proto.legacy_pb.Claim.prototype.clearClaimtype = function() {
|
||||
jspb.Message.setField(this, 2, undefined);
|
||||
};
|
||||
|
||||
|
@ -268,28 +268,28 @@ proto.pb.Claim.prototype.clearClaimtype = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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() {
|
||||
proto.legacy_pb.Claim.prototype.clearStream = function() {
|
||||
this.setStream(undefined);
|
||||
};
|
||||
|
||||
|
@ -298,28 +298,28 @@ proto.pb.Claim.prototype.clearStream = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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() {
|
||||
proto.legacy_pb.Claim.prototype.clearCertificate = function() {
|
||||
this.setCertificate(undefined);
|
||||
};
|
||||
|
||||
|
@ -328,28 +328,28 @@ proto.pb.Claim.prototype.clearCertificate = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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() {
|
||||
proto.legacy_pb.Claim.prototype.clearPublishersignature = function() {
|
||||
this.setPublishersignature(undefined);
|
||||
};
|
||||
|
||||
|
@ -358,9 +358,9 @@ proto.pb.Claim.prototype.clearPublishersignature = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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,9 +12,9 @@ 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.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.
|
||||
|
@ -26,12 +26,12 @@ 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';
|
||||
proto.legacy_pb.Metadata.displayName = 'proto.legacy_pb.Metadata';
|
||||
}
|
||||
|
||||
|
||||
|
@ -46,8 +46,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,11 +56,11 @@ 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) {
|
||||
proto.legacy_pb.Metadata.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
version: jspb.Message.getField(msg, 1),
|
||||
language: jspb.Message.getField(msg, 2),
|
||||
|
@ -86,23 +86,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 +110,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 +167,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 +177,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 +267,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 +278,7 @@ proto.pb.Metadata.Version = {
|
|||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.pb.Metadata.Language = {
|
||||
proto.legacy_pb.Metadata.Language = {
|
||||
UNKNOWN_LANGUAGE: 0,
|
||||
EN: 1,
|
||||
AA: 2,
|
||||
|
@ -468,20 +468,20 @@ 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() {
|
||||
proto.legacy_pb.Metadata.prototype.clearVersion = function() {
|
||||
jspb.Message.setField(this, 1, undefined);
|
||||
};
|
||||
|
||||
|
@ -490,27 +490,27 @@ proto.pb.Metadata.prototype.clearVersion = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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() {
|
||||
proto.legacy_pb.Metadata.prototype.clearLanguage = function() {
|
||||
jspb.Message.setField(this, 2, undefined);
|
||||
};
|
||||
|
||||
|
@ -519,7 +519,7 @@ proto.pb.Metadata.prototype.clearLanguage = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasLanguage = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasLanguage = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
@ -528,18 +528,18 @@ 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() {
|
||||
proto.legacy_pb.Metadata.prototype.clearTitle = function() {
|
||||
jspb.Message.setField(this, 3, undefined);
|
||||
};
|
||||
|
||||
|
@ -548,7 +548,7 @@ proto.pb.Metadata.prototype.clearTitle = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasTitle = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasTitle = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
|
@ -557,18 +557,18 @@ 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() {
|
||||
proto.legacy_pb.Metadata.prototype.clearDescription = function() {
|
||||
jspb.Message.setField(this, 4, undefined);
|
||||
};
|
||||
|
||||
|
@ -577,7 +577,7 @@ proto.pb.Metadata.prototype.clearDescription = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasDescription = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasDescription = function() {
|
||||
return jspb.Message.getField(this, 4) != null;
|
||||
};
|
||||
|
||||
|
@ -586,18 +586,18 @@ 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() {
|
||||
proto.legacy_pb.Metadata.prototype.clearAuthor = function() {
|
||||
jspb.Message.setField(this, 5, undefined);
|
||||
};
|
||||
|
||||
|
@ -606,7 +606,7 @@ proto.pb.Metadata.prototype.clearAuthor = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasAuthor = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasAuthor = function() {
|
||||
return jspb.Message.getField(this, 5) != null;
|
||||
};
|
||||
|
||||
|
@ -615,18 +615,18 @@ 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() {
|
||||
proto.legacy_pb.Metadata.prototype.clearLicense = function() {
|
||||
jspb.Message.setField(this, 6, undefined);
|
||||
};
|
||||
|
||||
|
@ -635,7 +635,7 @@ proto.pb.Metadata.prototype.clearLicense = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasLicense = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasLicense = function() {
|
||||
return jspb.Message.getField(this, 6) != null;
|
||||
};
|
||||
|
||||
|
@ -646,18 +646,18 @@ 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() {
|
||||
proto.legacy_pb.Metadata.prototype.clearNsfw = function() {
|
||||
jspb.Message.setField(this, 7, undefined);
|
||||
};
|
||||
|
||||
|
@ -666,28 +666,28 @@ proto.pb.Metadata.prototype.clearNsfw = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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() {
|
||||
proto.legacy_pb.Metadata.prototype.clearFee = function() {
|
||||
this.setFee(undefined);
|
||||
};
|
||||
|
||||
|
@ -696,7 +696,7 @@ proto.pb.Metadata.prototype.clearFee = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasFee = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasFee = function() {
|
||||
return jspb.Message.getField(this, 8) != null;
|
||||
};
|
||||
|
||||
|
@ -705,18 +705,18 @@ 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() {
|
||||
proto.legacy_pb.Metadata.prototype.clearThumbnail = function() {
|
||||
jspb.Message.setField(this, 9, undefined);
|
||||
};
|
||||
|
||||
|
@ -725,7 +725,7 @@ proto.pb.Metadata.prototype.clearThumbnail = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasThumbnail = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasThumbnail = function() {
|
||||
return jspb.Message.getField(this, 9) != null;
|
||||
};
|
||||
|
||||
|
@ -734,18 +734,18 @@ 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() {
|
||||
proto.legacy_pb.Metadata.prototype.clearPreview = function() {
|
||||
jspb.Message.setField(this, 10, undefined);
|
||||
};
|
||||
|
||||
|
@ -754,7 +754,7 @@ proto.pb.Metadata.prototype.clearPreview = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Metadata.prototype.hasPreview = function() {
|
||||
proto.legacy_pb.Metadata.prototype.hasPreview = function() {
|
||||
return jspb.Message.getField(this, 10) != null;
|
||||
};
|
||||
|
||||
|
@ -763,18 +763,18 @@ 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() {
|
||||
proto.legacy_pb.Metadata.prototype.clearLicenseurl = function() {
|
||||
jspb.Message.setField(this, 11, undefined);
|
||||
};
|
||||
|
||||
|
@ -783,9 +783,9 @@ proto.pb.Metadata.prototype.clearLicenseurl = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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,8 +12,8 @@ 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.exportSymbol('proto.legacy_pb.Signature', null, global);
|
||||
goog.exportSymbol('proto.legacy_pb.Signature.Version', null, global);
|
||||
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
|
@ -25,12 +25,12 @@ 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';
|
||||
proto.legacy_pb.Signature.displayName = 'proto.legacy_pb.Signature';
|
||||
}
|
||||
|
||||
|
||||
|
@ -45,8 +45,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,11 +55,11 @@ 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) {
|
||||
proto.legacy_pb.Signature.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
version: jspb.Message.getField(msg, 1),
|
||||
signaturetype: jspb.Message.getField(msg, 2),
|
||||
|
@ -78,23 +78,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 +102,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 +130,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 +140,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,27 +180,27 @@ 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() {
|
||||
proto.legacy_pb.Signature.prototype.clearVersion = function() {
|
||||
jspb.Message.setField(this, 1, undefined);
|
||||
};
|
||||
|
||||
|
@ -209,27 +209,27 @@ proto.pb.Signature.prototype.clearVersion = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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() {
|
||||
proto.legacy_pb.Signature.prototype.clearSignaturetype = function() {
|
||||
jspb.Message.setField(this, 2, undefined);
|
||||
};
|
||||
|
||||
|
@ -238,7 +238,7 @@ proto.pb.Signature.prototype.clearSignaturetype = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Signature.prototype.hasSignaturetype = function() {
|
||||
proto.legacy_pb.Signature.prototype.hasSignaturetype = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
@ -247,7 +247,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 +257,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,19 +270,19 @@ 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() {
|
||||
proto.legacy_pb.Signature.prototype.clearSignature = function() {
|
||||
jspb.Message.setField(this, 3, undefined);
|
||||
};
|
||||
|
||||
|
@ -291,7 +291,7 @@ proto.pb.Signature.prototype.clearSignature = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Signature.prototype.hasSignature = function() {
|
||||
proto.legacy_pb.Signature.prototype.hasSignature = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
|
@ -300,7 +300,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 +310,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,19 +323,19 @@ 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() {
|
||||
proto.legacy_pb.Signature.prototype.clearCertificateid = function() {
|
||||
jspb.Message.setField(this, 4, undefined);
|
||||
};
|
||||
|
||||
|
@ -344,9 +344,9 @@ proto.pb.Signature.prototype.clearCertificateid = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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,9 +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.
|
||||
|
@ -25,12 +25,12 @@ 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';
|
||||
proto.legacy_pb.Source.displayName = 'proto.legacy_pb.Source';
|
||||
}
|
||||
|
||||
|
||||
|
@ -45,8 +45,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,11 +55,11 @@ 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) {
|
||||
proto.legacy_pb.Source.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
version: jspb.Message.getField(msg, 1),
|
||||
sourcetype: jspb.Message.getField(msg, 2),
|
||||
|
@ -78,23 +78,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 +102,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 +130,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 +140,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 +180,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,27 +188,27 @@ 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() {
|
||||
proto.legacy_pb.Source.prototype.clearVersion = function() {
|
||||
jspb.Message.setField(this, 1, undefined);
|
||||
};
|
||||
|
||||
|
@ -217,27 +217,27 @@ proto.pb.Source.prototype.clearVersion = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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() {
|
||||
proto.legacy_pb.Source.prototype.clearSourcetype = function() {
|
||||
jspb.Message.setField(this, 2, undefined);
|
||||
};
|
||||
|
||||
|
@ -246,7 +246,7 @@ proto.pb.Source.prototype.clearSourcetype = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Source.prototype.hasSourcetype = function() {
|
||||
proto.legacy_pb.Source.prototype.hasSourcetype = function() {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
|
@ -255,7 +255,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 +265,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,19 +278,19 @@ 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() {
|
||||
proto.legacy_pb.Source.prototype.clearSource = function() {
|
||||
jspb.Message.setField(this, 3, undefined);
|
||||
};
|
||||
|
||||
|
@ -299,7 +299,7 @@ proto.pb.Source.prototype.clearSource = function() {
|
|||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
*/
|
||||
proto.pb.Source.prototype.hasSource = function() {
|
||||
proto.legacy_pb.Source.prototype.hasSource = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
|
@ -308,18 +308,18 @@ 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() {
|
||||
proto.legacy_pb.Source.prototype.clearContenttype = function() {
|
||||
jspb.Message.setField(this, 4, undefined);
|
||||
};
|
||||
|
||||
|
@ -328,9 +328,9 @@ proto.pb.Source.prototype.clearContenttype = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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);
|
||||
|
|
|
@ -13,8 +13,8 @@ var global = Function('return this')();
|
|||
|
||||
var metadata_pb = require('./metadata_pb.js');
|
||||
var source_pb = require('./source_pb.js');
|
||||
goog.exportSymbol('proto.pb.Stream', null, global);
|
||||
goog.exportSymbol('proto.pb.Stream.Version', null, global);
|
||||
goog.exportSymbol('proto.legacy_pb.Stream', null, global);
|
||||
goog.exportSymbol('proto.legacy_pb.Stream.Version', null, global);
|
||||
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
|
@ -26,12 +26,12 @@ 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';
|
||||
proto.legacy_pb.Stream.displayName = 'proto.legacy_pb.Stream';
|
||||
}
|
||||
|
||||
|
||||
|
@ -46,8 +46,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,11 +56,11 @@ 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) {
|
||||
proto.legacy_pb.Stream.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
version: jspb.Message.getField(msg, 1),
|
||||
metadata: (f = msg.getMetadata()) && metadata_pb.Metadata.toObject(includeInstance, f),
|
||||
|
@ -78,23 +78,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 +102,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 +128,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 +138,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,27 +173,27 @@ 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() {
|
||||
proto.legacy_pb.Stream.prototype.clearVersion = function() {
|
||||
jspb.Message.setField(this, 1, undefined);
|
||||
};
|
||||
|
||||
|
@ -202,28 +202,28 @@ proto.pb.Stream.prototype.clearVersion = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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() {
|
||||
proto.legacy_pb.Stream.prototype.clearMetadata = function() {
|
||||
jspb.Message.setField(this, 2, undefined);
|
||||
};
|
||||
|
||||
|
@ -232,28 +232,28 @@ proto.pb.Stream.prototype.clearMetadata = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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() {
|
||||
proto.legacy_pb.Stream.prototype.clearSource = function() {
|
||||
jspb.Message.setField(this, 3, undefined);
|
||||
};
|
||||
|
||||
|
@ -262,9 +262,9 @@ proto.pb.Stream.prototype.clearSource = function() {
|
|||
* Returns whether this field is set.
|
||||
* @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";
|
||||
|
|
|
@ -8,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,38 +17,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 +62,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 +118,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 +138,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)
|
||||
|
||||
|
|
|
@ -7,7 +7,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 +16,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 +120,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 +140,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,5 @@
|
|||
# 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 +7,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 +18,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 +30,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 +127,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 +149,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
|
@ -7,7 +7,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 +17,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 +28,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 +91,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 +110,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)
|
||||
|
||||
|
|
|
@ -7,7 +7,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 +16,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 +112,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 +132,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)
|
||||
|
||||
|
|
|
@ -7,7 +7,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 +18,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 +29,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 +85,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 +105,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)
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,7 +1,7 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: claim_schema.proto
|
||||
// source: claim.proto
|
||||
|
||||
package pb3
|
||||
package pb
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
|
@ -38,7 +38,7 @@ func (x Claim_Type) String() string {
|
|||
return proto.EnumName(Claim_Type_name, int32(x))
|
||||
}
|
||||
func (Claim_Type) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_claim_schema_6b5e08f519623944, []int{0, 0}
|
||||
return fileDescriptor_claim_a3202fb9f6ae6b3e, []int{0, 0}
|
||||
}
|
||||
|
||||
type Fee_Currency int32
|
||||
|
@ -61,11 +61,11 @@ func (x Fee_Currency) String() string {
|
|||
return proto.EnumName(Fee_Currency_name, int32(x))
|
||||
}
|
||||
func (Fee_Currency) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_claim_schema_6b5e08f519623944, []int{3, 0}
|
||||
return fileDescriptor_claim_a3202fb9f6ae6b3e, []int{3, 0}
|
||||
}
|
||||
|
||||
type Claim struct {
|
||||
Type Claim_Type `protobuf:"varint,1,opt,name=type,proto3,enum=pb3.Claim_Type" json:"type,omitempty"`
|
||||
Type Claim_Type `protobuf:"varint,1,opt,name=type,proto3,enum=pb.Claim_Type" json:"type,omitempty"`
|
||||
Stream *Stream `protobuf:"bytes,2,opt,name=stream,proto3" json:"stream,omitempty"`
|
||||
Channel *Channel `protobuf:"bytes,3,opt,name=channel,proto3" json:"channel,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
|
@ -77,7 +77,7 @@ 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_claim_schema_6b5e08f519623944, []int{0}
|
||||
return fileDescriptor_claim_a3202fb9f6ae6b3e, []int{0}
|
||||
}
|
||||
func (m *Claim) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Claim.Unmarshal(m, b)
|
||||
|
@ -136,7 +136,7 @@ func (m *Channel) Reset() { *m = Channel{} }
|
|||
func (m *Channel) String() string { return proto.CompactTextString(m) }
|
||||
func (*Channel) ProtoMessage() {}
|
||||
func (*Channel) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_claim_schema_6b5e08f519623944, []int{1}
|
||||
return fileDescriptor_claim_a3202fb9f6ae6b3e, []int{1}
|
||||
}
|
||||
func (m *Channel) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Channel.Unmarshal(m, b)
|
||||
|
@ -237,7 +237,7 @@ 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_claim_schema_6b5e08f519623944, []int{2}
|
||||
return fileDescriptor_claim_a3202fb9f6ae6b3e, []int{2}
|
||||
}
|
||||
func (m *Stream) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Stream.Unmarshal(m, b)
|
||||
|
@ -363,7 +363,7 @@ func (m *Stream) GetVideo() *Video {
|
|||
}
|
||||
|
||||
type Fee struct {
|
||||
Currency Fee_Currency `protobuf:"varint,1,opt,name=currency,proto3,enum=pb3.Fee_Currency" json:"currency,omitempty"`
|
||||
Currency Fee_Currency `protobuf:"varint,1,opt,name=currency,proto3,enum=pb.Fee_Currency" json:"currency,omitempty"`
|
||||
Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
||||
Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
|
@ -375,7 +375,7 @@ 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_claim_schema_6b5e08f519623944, []int{3}
|
||||
return fileDescriptor_claim_a3202fb9f6ae6b3e, []int{3}
|
||||
}
|
||||
func (m *Fee) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Fee.Unmarshal(m, b)
|
||||
|
@ -428,7 +428,7 @@ func (m *File) Reset() { *m = File{} }
|
|||
func (m *File) String() string { return proto.CompactTextString(m) }
|
||||
func (*File) ProtoMessage() {}
|
||||
func (*File) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_claim_schema_6b5e08f519623944, []int{4}
|
||||
return fileDescriptor_claim_a3202fb9f6ae6b3e, []int{4}
|
||||
}
|
||||
func (m *File) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_File.Unmarshal(m, b)
|
||||
|
@ -474,7 +474,7 @@ func (m *Video) Reset() { *m = Video{} }
|
|||
func (m *Video) String() string { return proto.CompactTextString(m) }
|
||||
func (*Video) ProtoMessage() {}
|
||||
func (*Video) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_claim_schema_6b5e08f519623944, []int{5}
|
||||
return fileDescriptor_claim_a3202fb9f6ae6b3e, []int{5}
|
||||
}
|
||||
func (m *Video) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Video.Unmarshal(m, b)
|
||||
|
@ -509,58 +509,57 @@ func (m *Video) GetHeight() uint32 {
|
|||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Claim)(nil), "pb3.Claim")
|
||||
proto.RegisterType((*Channel)(nil), "pb3.Channel")
|
||||
proto.RegisterType((*Stream)(nil), "pb3.Stream")
|
||||
proto.RegisterType((*Fee)(nil), "pb3.Fee")
|
||||
proto.RegisterType((*File)(nil), "pb3.File")
|
||||
proto.RegisterType((*Video)(nil), "pb3.Video")
|
||||
proto.RegisterEnum("pb3.Claim_Type", Claim_Type_name, Claim_Type_value)
|
||||
proto.RegisterEnum("pb3.Fee_Currency", Fee_Currency_name, Fee_Currency_value)
|
||||
proto.RegisterType((*Claim)(nil), "pb.Claim")
|
||||
proto.RegisterType((*Channel)(nil), "pb.Channel")
|
||||
proto.RegisterType((*Stream)(nil), "pb.Stream")
|
||||
proto.RegisterType((*Fee)(nil), "pb.Fee")
|
||||
proto.RegisterType((*File)(nil), "pb.File")
|
||||
proto.RegisterType((*Video)(nil), "pb.Video")
|
||||
proto.RegisterEnum("pb.Claim_Type", Claim_Type_name, Claim_Type_value)
|
||||
proto.RegisterEnum("pb.Fee_Currency", Fee_Currency_name, Fee_Currency_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("claim_schema.proto", fileDescriptor_claim_schema_6b5e08f519623944) }
|
||||
func init() { proto.RegisterFile("claim.proto", fileDescriptor_claim_a3202fb9f6ae6b3e) }
|
||||
|
||||
var fileDescriptor_claim_schema_6b5e08f519623944 = []byte{
|
||||
// 632 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x54, 0xdd, 0x4e, 0xdb, 0x4a,
|
||||
0x10, 0xc6, 0xc7, 0x8e, 0x63, 0x8f, 0x93, 0x73, 0xc2, 0x1e, 0x0e, 0xb2, 0x38, 0x45, 0x04, 0x23,
|
||||
0x55, 0xb9, 0x69, 0x2e, 0x40, 0x7d, 0x00, 0x9a, 0x82, 0x2a, 0x95, 0x72, 0xb1, 0x40, 0x6f, 0xa3,
|
||||
0x8d, 0x3d, 0xc4, 0xab, 0xae, 0x7f, 0x64, 0xaf, 0xa9, 0xd2, 0xeb, 0x3e, 0x45, 0x5f, 0xa4, 0x6f,
|
||||
0x57, 0x55, 0x3b, 0xb6, 0xd3, 0xa8, 0xf4, 0x6e, 0xbe, 0xef, 0x9b, 0x9d, 0xcc, 0x7c, 0x33, 0x0e,
|
||||
0xb0, 0x58, 0x09, 0x99, 0x2d, 0xeb, 0x38, 0xc5, 0x4c, 0xcc, 0xcb, 0xaa, 0xd0, 0x05, 0xb3, 0xcb,
|
||||
0xd5, 0x45, 0xf4, 0xcd, 0x82, 0xc1, 0xc2, 0x68, 0xec, 0x0c, 0x1c, 0xbd, 0x29, 0x31, 0xb4, 0xa6,
|
||||
0xd6, 0xec, 0xef, 0xf3, 0x7f, 0xe6, 0xe5, 0xea, 0x62, 0x4e, 0xca, 0xfc, 0x7e, 0x53, 0x22, 0x27,
|
||||
0x91, 0x9d, 0x81, 0x5b, 0xeb, 0x0a, 0x45, 0x16, 0xfe, 0x35, 0xb5, 0x66, 0xc1, 0x79, 0x40, 0x69,
|
||||
0x77, 0x44, 0xf1, 0x4e, 0x62, 0x2f, 0x61, 0x18, 0xa7, 0x22, 0xcf, 0x51, 0x85, 0x36, 0x65, 0x8d,
|
||||
0xda, 0x62, 0x2d, 0xc7, 0x7b, 0x31, 0x3a, 0x01, 0xc7, 0x94, 0x66, 0x00, 0xee, 0xdd, 0x3d, 0xbf,
|
||||
0xba, 0xfc, 0x30, 0xd9, 0x63, 0x01, 0x0c, 0x17, 0xef, 0x2e, 0x6f, 0x6f, 0xaf, 0x6e, 0x26, 0x56,
|
||||
0xf4, 0xc3, 0x82, 0x61, 0xf7, 0x8a, 0x1d, 0x03, 0x94, 0xcd, 0x4a, 0xc9, 0x78, 0xf9, 0x09, 0x37,
|
||||
0xd4, 0xe4, 0x88, 0xfb, 0x2d, 0xf3, 0x1e, 0x37, 0xec, 0x00, 0x06, 0x5a, 0x6a, 0x85, 0xd4, 0x97,
|
||||
0xcf, 0x5b, 0xc0, 0xa6, 0x10, 0x24, 0x58, 0xc7, 0x95, 0x2c, 0xb5, 0x2c, 0x72, 0xea, 0xc6, 0xe7,
|
||||
0xbb, 0x14, 0x3b, 0x83, 0x71, 0x5c, 0xe4, 0x5a, 0xc4, 0x7a, 0x89, 0x99, 0x90, 0x2a, 0x74, 0x28,
|
||||
0x67, 0xd4, 0x91, 0x57, 0x86, 0x63, 0xa7, 0x30, 0x4a, 0x8b, 0x0c, 0x4b, 0xb1, 0xc6, 0x65, 0x53,
|
||||
0xa9, 0x70, 0xd0, 0xd6, 0xe9, 0xb9, 0x87, 0x4a, 0x31, 0x06, 0x8e, 0x16, 0xeb, 0x3a, 0x74, 0xa7,
|
||||
0xf6, 0xcc, 0xe7, 0x14, 0x9b, 0xda, 0x3a, 0x6d, 0xb2, 0x55, 0x2e, 0xa4, 0xa2, 0x77, 0x93, 0xb6,
|
||||
0xf6, 0x96, 0x34, 0x0f, 0xff, 0x07, 0x3f, 0x2e, 0x9e, 0xb0, 0xa2, 0x84, 0x7d, 0x4a, 0xf0, 0x88,
|
||||
0x78, 0xa8, 0x54, 0xf4, 0xdd, 0x06, 0xb7, 0x35, 0xd7, 0xfc, 0x40, 0x2a, 0xea, 0xb4, 0x9b, 0x9c,
|
||||
0x62, 0x76, 0x04, 0x9e, 0x12, 0xf9, 0xba, 0x11, 0xeb, 0x7e, 0xee, 0x2d, 0xfe, 0x65, 0x88, 0xbd,
|
||||
0x6b, 0xc8, 0x21, 0xb8, 0xa2, 0xd1, 0x69, 0x51, 0x75, 0x73, 0x76, 0xe8, 0x77, 0xa3, 0x06, 0xcf,
|
||||
0x8d, 0x3a, 0x06, 0xc8, 0x30, 0x91, 0x62, 0x49, 0x47, 0xe2, 0x52, 0x82, 0x4f, 0x0c, 0xed, 0x30,
|
||||
0x84, 0xa1, 0x92, 0x31, 0xe6, 0x35, 0x86, 0x43, 0xd2, 0x7a, 0xc8, 0x8e, 0xc1, 0x79, 0x94, 0x0a,
|
||||
0x43, 0x8f, 0x4e, 0xc1, 0xa7, 0x53, 0xb8, 0x96, 0x0a, 0x39, 0xd1, 0xec, 0x08, 0xec, 0x47, 0x44,
|
||||
0xb2, 0x26, 0x38, 0xf7, 0x5a, 0x15, 0x91, 0x1b, 0x92, 0x9d, 0x40, 0xd0, 0x55, 0xd9, 0x71, 0x07,
|
||||
0x3a, 0xca, 0x98, 0xf7, 0xcc, 0x61, 0xf6, 0x07, 0x87, 0x8f, 0xc0, 0x4b, 0x9a, 0x4a, 0xd0, 0x60,
|
||||
0xff, 0x4e, 0xad, 0xd9, 0x98, 0x6f, 0xf1, 0x76, 0x6d, 0x07, 0x3b, 0x6b, 0x3b, 0x85, 0x51, 0x85,
|
||||
0x0a, 0x45, 0x8d, 0x4b, 0x2d, 0x33, 0x0c, 0xff, 0x9b, 0x5a, 0x33, 0x9b, 0x07, 0x1d, 0x77, 0x2f,
|
||||
0x33, 0x73, 0x57, 0x83, 0x27, 0x99, 0x60, 0x11, 0x1e, 0x52, 0xdb, 0x40, 0x6d, 0x7f, 0x34, 0x0c,
|
||||
0x6f, 0x85, 0xe8, 0xab, 0x05, 0xf6, 0x35, 0x22, 0x7b, 0x05, 0x5e, 0xdc, 0x54, 0x15, 0xe6, 0xf1,
|
||||
0xa6, 0xfb, 0xb2, 0xf6, 0xfb, 0x19, 0xe7, 0x8b, 0x4e, 0xe0, 0xdb, 0x14, 0x63, 0xa3, 0x48, 0x92,
|
||||
0x0a, 0xeb, 0x9a, 0x16, 0x3a, 0xe2, 0x3d, 0xa4, 0xcd, 0x65, 0x45, 0x93, 0x6b, 0x5a, 0xa8, 0xc3,
|
||||
0x3b, 0x14, 0xbd, 0x00, 0xaf, 0xaf, 0xc3, 0x86, 0x60, 0xdf, 0xbc, 0x59, 0x4c, 0xf6, 0x4c, 0xf0,
|
||||
0x70, 0xf7, 0x76, 0x62, 0x45, 0x73, 0x70, 0x8c, 0xd7, 0x66, 0xce, 0x5c, 0x64, 0xed, 0xc7, 0xed,
|
||||
0x73, 0x8a, 0x0d, 0x57, 0xcb, 0x2f, 0xed, 0xe5, 0x38, 0x9c, 0xe2, 0xe8, 0x35, 0x0c, 0x68, 0x0c,
|
||||
0x73, 0x3e, 0x9f, 0x65, 0xa2, 0xdb, 0x7b, 0x1b, 0xf3, 0x16, 0x98, 0x26, 0x52, 0x94, 0xeb, 0x54,
|
||||
0xd3, 0xa3, 0x31, 0xef, 0xd0, 0xca, 0xa5, 0x7f, 0x94, 0x8b, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff,
|
||||
0x81, 0x5b, 0x03, 0x64, 0x67, 0x04, 0x00, 0x00,
|
||||
var fileDescriptor_claim_a3202fb9f6ae6b3e = []byte{
|
||||
// 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,
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,6 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package pb3;
|
||||
package pb;
|
||||
|
||||
message Claim {
|
||||
enum Type {
|
|
@ -1,5 +1,5 @@
|
|||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: claim_schema.proto
|
||||
# source: claim.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
|
@ -15,18 +15,18 @@ _sym_db = _symbol_database.Default()
|
|||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='claim_schema.proto',
|
||||
package='pb3',
|
||||
name='claim.proto',
|
||||
package='pb',
|
||||
syntax='proto3',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n\x12\x63laim_schema.proto\x12\x03pb3\"\x83\x01\n\x05\x43laim\x12\x1d\n\x04type\x18\x01 \x01(\x0e\x32\x0f.pb3.Claim.Type\x12\x1b\n\x06stream\x18\x02 \x01(\x0b\x32\x0b.pb3.Stream\x12\x1d\n\x07\x63hannel\x18\x03 \x01(\x0b\x32\x0c.pb3.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\"\xae\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\x17\n\x04\x66ile\x18\x08 \x01(\x0b\x32\t.pb3.File\x12\x15\n\x03\x66\x65\x65\x18\x10 \x01(\x0b\x32\x08.pb3.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\x19\n\x05video\x18\x16 \x01(\x0b\x32\n.pb3.Video\"i\n\x03\x46\x65\x65\x12#\n\x08\x63urrency\x18\x01 \x01(\x0e\x32\x11.pb3.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')
|
||||
)
|
||||
|
||||
|
||||
|
||||
_CLAIM_TYPE = _descriptor.EnumDescriptor(
|
||||
name='Type',
|
||||
full_name='pb3.Claim.Type',
|
||||
full_name='pb.Claim.Type',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
|
@ -41,14 +41,14 @@ _CLAIM_TYPE = _descriptor.EnumDescriptor(
|
|||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=128,
|
||||
serialized_end=159,
|
||||
serialized_start=117,
|
||||
serialized_end=148,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_CLAIM_TYPE)
|
||||
|
||||
_FEE_CURRENCY = _descriptor.EnumDescriptor(
|
||||
name='Currency',
|
||||
full_name='pb3.Fee.Currency',
|
||||
full_name='pb.Fee.Currency',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
|
@ -63,35 +63,35 @@ _FEE_CURRENCY = _descriptor.EnumDescriptor(
|
|||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=712,
|
||||
serialized_end=740,
|
||||
serialized_start=697,
|
||||
serialized_end=725,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_FEE_CURRENCY)
|
||||
|
||||
|
||||
_CLAIM = _descriptor.Descriptor(
|
||||
name='Claim',
|
||||
full_name='pb3.Claim',
|
||||
full_name='pb.Claim',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='type', full_name='pb3.Claim.type', index=0,
|
||||
name='type', full_name='pb.Claim.type', index=0,
|
||||
number=1, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='stream', full_name='pb3.Claim.stream', index=1,
|
||||
name='stream', full_name='pb.Claim.stream', index=1,
|
||||
number=2, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='channel', full_name='pb3.Claim.channel', index=2,
|
||||
name='channel', full_name='pb.Claim.channel', 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,
|
||||
|
@ -110,69 +110,69 @@ _CLAIM = _descriptor.Descriptor(
|
|||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=28,
|
||||
serialized_end=159,
|
||||
serialized_start=20,
|
||||
serialized_end=148,
|
||||
)
|
||||
|
||||
|
||||
_CHANNEL = _descriptor.Descriptor(
|
||||
name='Channel',
|
||||
full_name='pb3.Channel',
|
||||
full_name='pb.Channel',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='public_key', full_name='pb3.Channel.public_key', index=0,
|
||||
name='public_key', full_name='pb.Channel.public_key', index=0,
|
||||
number=1, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='title', full_name='pb3.Channel.title', index=1,
|
||||
name='title', full_name='pb.Channel.title', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='description', full_name='pb3.Channel.description', index=2,
|
||||
name='description', full_name='pb.Channel.description', index=2,
|
||||
number=3, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='contact_email', full_name='pb3.Channel.contact_email', index=3,
|
||||
name='contact_email', full_name='pb.Channel.contact_email', index=3,
|
||||
number=4, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='homepage_url', full_name='pb3.Channel.homepage_url', index=4,
|
||||
name='homepage_url', full_name='pb.Channel.homepage_url', index=4,
|
||||
number=5, 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='tags', full_name='pb3.Channel.tags', 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='pb3.Channel.thumbnail_url', index=6,
|
||||
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='pb3.Channel.cover_url', index=7,
|
||||
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,
|
||||
|
@ -190,118 +190,118 @@ _CHANNEL = _descriptor.Descriptor(
|
|||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=162,
|
||||
serialized_end=328,
|
||||
serialized_start=151,
|
||||
serialized_end=317,
|
||||
)
|
||||
|
||||
|
||||
_STREAM = _descriptor.Descriptor(
|
||||
name='Stream',
|
||||
full_name='pb3.Stream',
|
||||
full_name='pb.Stream',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='hash', full_name='pb3.Stream.hash', index=0,
|
||||
name='hash', full_name='pb.Stream.hash', index=0,
|
||||
number=1, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='language', full_name='pb3.Stream.language', index=1,
|
||||
name='language', full_name='pb.Stream.language', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='title', full_name='pb3.Stream.title', index=2,
|
||||
name='title', full_name='pb.Stream.title', index=2,
|
||||
number=3, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='author', full_name='pb3.Stream.author', index=3,
|
||||
name='author', full_name='pb.Stream.author', index=3,
|
||||
number=4, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='description', full_name='pb3.Stream.description', index=4,
|
||||
name='description', full_name='pb.Stream.description', index=4,
|
||||
number=5, 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='media_type', full_name='pb3.Stream.media_type', index=5,
|
||||
name='media_type', full_name='pb.Stream.media_type', index=5,
|
||||
number=6, 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='license', full_name='pb3.Stream.license', index=6,
|
||||
name='license', full_name='pb.Stream.license', index=6,
|
||||
number=7, 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='file', full_name='pb3.Stream.file', index=7,
|
||||
name='file', full_name='pb.Stream.file', index=7,
|
||||
number=8, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='fee', full_name='pb3.Stream.fee', index=8,
|
||||
name='fee', full_name='pb.Stream.fee', index=8,
|
||||
number=16, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='license_url', full_name='pb3.Stream.license_url', index=9,
|
||||
name='license_url', full_name='pb.Stream.license_url', index=9,
|
||||
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,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='thumbnail_url', full_name='pb3.Stream.thumbnail_url', index=10,
|
||||
name='thumbnail_url', full_name='pb.Stream.thumbnail_url', index=10,
|
||||
number=18, 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='duration', full_name='pb3.Stream.duration', index=11,
|
||||
name='duration', full_name='pb.Stream.duration', index=11,
|
||||
number=19, type=13, cpp_type=3, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='tags', full_name='pb3.Stream.tags', index=12,
|
||||
name='tags', full_name='pb.Stream.tags', index=12,
|
||||
number=20, 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='release_time', full_name='pb3.Stream.release_time', index=13,
|
||||
name='release_time', full_name='pb.Stream.release_time', index=13,
|
||||
number=21, type=3, cpp_type=2, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='video', full_name='pb3.Stream.video', index=14,
|
||||
name='video', full_name='pb.Stream.video', index=14,
|
||||
number=22, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
|
@ -319,34 +319,34 @@ _STREAM = _descriptor.Descriptor(
|
|||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=331,
|
||||
serialized_end=633,
|
||||
serialized_start=320,
|
||||
serialized_end=619,
|
||||
)
|
||||
|
||||
|
||||
_FEE = _descriptor.Descriptor(
|
||||
name='Fee',
|
||||
full_name='pb3.Fee',
|
||||
full_name='pb.Fee',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='currency', full_name='pb3.Fee.currency', index=0,
|
||||
name='currency', full_name='pb.Fee.currency', index=0,
|
||||
number=1, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='address', full_name='pb3.Fee.address', index=1,
|
||||
name='address', full_name='pb.Fee.address', index=1,
|
||||
number=2, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='amount', full_name='pb3.Fee.amount', index=2,
|
||||
name='amount', full_name='pb.Fee.amount', index=2,
|
||||
number=3, type=4, cpp_type=4, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
|
@ -365,27 +365,27 @@ _FEE = _descriptor.Descriptor(
|
|||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=635,
|
||||
serialized_end=740,
|
||||
serialized_start=621,
|
||||
serialized_end=725,
|
||||
)
|
||||
|
||||
|
||||
_FILE = _descriptor.Descriptor(
|
||||
name='File',
|
||||
full_name='pb3.File',
|
||||
full_name='pb.File',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='name', full_name='pb3.File.name', index=0,
|
||||
name='name', full_name='pb.File.name', index=0,
|
||||
number=1, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='size', full_name='pb3.File.size', index=1,
|
||||
name='size', full_name='pb.File.size', index=1,
|
||||
number=2, type=4, cpp_type=4, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
|
@ -403,27 +403,27 @@ _FILE = _descriptor.Descriptor(
|
|||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=742,
|
||||
serialized_end=776,
|
||||
serialized_start=727,
|
||||
serialized_end=761,
|
||||
)
|
||||
|
||||
|
||||
_VIDEO = _descriptor.Descriptor(
|
||||
name='Video',
|
||||
full_name='pb3.Video',
|
||||
full_name='pb.Video',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='width', full_name='pb3.Video.width', index=0,
|
||||
name='width', full_name='pb.Video.width', index=0,
|
||||
number=1, type=13, cpp_type=3, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='height', full_name='pb3.Video.height', index=1,
|
||||
name='height', full_name='pb.Video.height', index=1,
|
||||
number=2, type=13, cpp_type=3, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
|
@ -441,8 +441,8 @@ _VIDEO = _descriptor.Descriptor(
|
|||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=778,
|
||||
serialized_end=816,
|
||||
serialized_start=763,
|
||||
serialized_end=801,
|
||||
)
|
||||
|
||||
_CLAIM.fields_by_name['type'].enum_type = _CLAIM_TYPE
|
||||
|
@ -464,43 +464,43 @@ _sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|||
|
||||
Claim = _reflection.GeneratedProtocolMessageType('Claim', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CLAIM,
|
||||
__module__ = 'claim_schema_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb3.Claim)
|
||||
__module__ = 'claim_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Claim)
|
||||
))
|
||||
_sym_db.RegisterMessage(Claim)
|
||||
|
||||
Channel = _reflection.GeneratedProtocolMessageType('Channel', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CHANNEL,
|
||||
__module__ = 'claim_schema_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb3.Channel)
|
||||
__module__ = 'claim_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Channel)
|
||||
))
|
||||
_sym_db.RegisterMessage(Channel)
|
||||
|
||||
Stream = _reflection.GeneratedProtocolMessageType('Stream', (_message.Message,), dict(
|
||||
DESCRIPTOR = _STREAM,
|
||||
__module__ = 'claim_schema_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb3.Stream)
|
||||
__module__ = 'claim_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Stream)
|
||||
))
|
||||
_sym_db.RegisterMessage(Stream)
|
||||
|
||||
Fee = _reflection.GeneratedProtocolMessageType('Fee', (_message.Message,), dict(
|
||||
DESCRIPTOR = _FEE,
|
||||
__module__ = 'claim_schema_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb3.Fee)
|
||||
__module__ = 'claim_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Fee)
|
||||
))
|
||||
_sym_db.RegisterMessage(Fee)
|
||||
|
||||
File = _reflection.GeneratedProtocolMessageType('File', (_message.Message,), dict(
|
||||
DESCRIPTOR = _FILE,
|
||||
__module__ = 'claim_schema_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb3.File)
|
||||
__module__ = 'claim_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.File)
|
||||
))
|
||||
_sym_db.RegisterMessage(File)
|
||||
|
||||
Video = _reflection.GeneratedProtocolMessageType('Video', (_message.Message,), dict(
|
||||
DESCRIPTOR = _VIDEO,
|
||||
__module__ = 'claim_schema_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb3.Video)
|
||||
__module__ = 'claim_pb2'
|
||||
# @@protoc_insertion_point(class_scope:pb.Video)
|
||||
))
|
||||
_sym_db.RegisterMessage(Video)
|
||||
|
Loading…
Reference in a new issue