From 3bafa2ad22ac202c783c848c874df2208b309237 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 26 Feb 2019 18:21:15 -0300 Subject: [PATCH] regenerate protos --- lbrynet/schema/proto2/certificate.proto | 18 -- lbrynet/schema/proto2/certificate_pb2.py | 36 ++-- lbrynet/schema/proto2/claim.proto | 22 --- lbrynet/schema/proto2/claim_pb2.py | 54 +++--- lbrynet/schema/proto2/fee.proto | 18 -- lbrynet/schema/proto2/fee_pb2.py | 38 ++-- lbrynet/schema/proto2/metadata.proto | 212 ---------------------- lbrynet/schema/proto2/metadata_pb2.py | 58 +++--- lbrynet/schema/proto2/signature.proto | 14 -- lbrynet/schema/proto2/signature_pb2.py | 38 ++-- lbrynet/schema/proto2/source.proto | 16 -- lbrynet/schema/proto2/source_pb2.py | 38 ++-- lbrynet/schema/proto2/stream.proto | 15 -- lbrynet/schema/proto2/stream_pb2.py | 40 ++--- lbrynet/schema/proto3/__init__.py | 0 lbrynet/schema/proto3/channel_pb2.py | 69 +++++++ lbrynet/schema/proto3/claim_pb2.py | 117 ++++++++++++ lbrynet/schema/proto3/fee_pb2.py | 116 ++++++++++++ lbrynet/schema/proto3/file_pb2.py | 76 ++++++++ lbrynet/schema/proto3/stream_pb2.py | 219 +++++++++++++++++++++++ 20 files changed, 748 insertions(+), 466 deletions(-) delete mode 100644 lbrynet/schema/proto2/certificate.proto delete mode 100644 lbrynet/schema/proto2/claim.proto delete mode 100644 lbrynet/schema/proto2/fee.proto delete mode 100644 lbrynet/schema/proto2/metadata.proto delete mode 100644 lbrynet/schema/proto2/signature.proto delete mode 100644 lbrynet/schema/proto2/source.proto delete mode 100644 lbrynet/schema/proto2/stream.proto create mode 100644 lbrynet/schema/proto3/__init__.py create mode 100644 lbrynet/schema/proto3/channel_pb2.py create mode 100644 lbrynet/schema/proto3/claim_pb2.py create mode 100644 lbrynet/schema/proto3/fee_pb2.py create mode 100644 lbrynet/schema/proto3/file_pb2.py create mode 100644 lbrynet/schema/proto3/stream_pb2.py diff --git a/lbrynet/schema/proto2/certificate.proto b/lbrynet/schema/proto2/certificate.proto deleted file mode 100644 index dc5f66ea8..000000000 --- a/lbrynet/schema/proto2/certificate.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto2"; - -enum KeyType { - UNKNOWN_PUBLIC_KEY_TYPE = 0; - NIST256p = 1; - NIST384p = 2; - SECP256k1 = 3; -} - -message Certificate { - enum Version { - UNKNOWN_VERSION = 0; - _0_0_1 = 1; - } - required Version version = 1; - required KeyType keyType = 2; - required bytes publicKey = 4; -} diff --git a/lbrynet/schema/proto2/certificate_pb2.py b/lbrynet/schema/proto2/certificate_pb2.py index 5412ff632..176b25f08 100644 --- a/lbrynet/schema/proto2/certificate_pb2.py +++ b/lbrynet/schema/proto2/certificate_pb2.py @@ -1,5 +1,5 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: lbrynet/schema/proto/certificate.proto +# source: certificate.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -16,16 +16,16 @@ _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor.FileDescriptor( - name='lbrynet/schema/proto/certificate.proto', - package='', + name='certificate.proto', + package='pb', syntax='proto2', serialized_options=None, - serialized_pb=_b('\n&lbrynet/schema/proto/certificate.proto\"\x8e\x01\n\x0b\x43\x65rtificate\x12%\n\x07version\x18\x01 \x02(\x0e\x32\x14.Certificate.Version\x12\x19\n\x07keyType\x18\x02 \x02(\x0e\x32\x08.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_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') ) _KEYTYPE = _descriptor.EnumDescriptor( name='KeyType', - full_name='KeyType', + full_name='pb.KeyType', filename=None, file=DESCRIPTOR, values=[ @@ -48,8 +48,8 @@ _KEYTYPE = _descriptor.EnumDescriptor( ], containing_type=None, serialized_options=None, - serialized_start=187, - serialized_end=268, + serialized_start=176, + serialized_end=257, ) _sym_db.RegisterEnumDescriptor(_KEYTYPE) @@ -62,7 +62,7 @@ SECP256k1 = 3 _CERTIFICATE_VERSION = _descriptor.EnumDescriptor( name='Version', - full_name='Certificate.Version', + full_name='pb.Certificate.Version', filename=None, file=DESCRIPTOR, values=[ @@ -77,35 +77,35 @@ _CERTIFICATE_VERSION = _descriptor.EnumDescriptor( ], containing_type=None, serialized_options=None, - serialized_start=143, - serialized_end=185, + serialized_start=132, + serialized_end=174, ) _sym_db.RegisterEnumDescriptor(_CERTIFICATE_VERSION) _CERTIFICATE = _descriptor.Descriptor( name='Certificate', - full_name='Certificate', + full_name='pb.Certificate', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='version', full_name='Certificate.version', index=0, + name='version', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='keyType', full_name='Certificate.keyType', index=1, + name='keyType', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='publicKey', full_name='Certificate.publicKey', index=2, + name='publicKey', full_name='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, @@ -124,8 +124,8 @@ _CERTIFICATE = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=43, - serialized_end=185, + serialized_start=26, + serialized_end=174, ) _CERTIFICATE.fields_by_name['version'].enum_type = _CERTIFICATE_VERSION @@ -137,8 +137,8 @@ _sym_db.RegisterFileDescriptor(DESCRIPTOR) Certificate = _reflection.GeneratedProtocolMessageType('Certificate', (_message.Message,), dict( DESCRIPTOR = _CERTIFICATE, - __module__ = 'lbrynet.schema.proto.certificate_pb2' - # @@protoc_insertion_point(class_scope:Certificate) + __module__ = 'certificate_pb2' + # @@protoc_insertion_point(class_scope:pb.Certificate) )) _sym_db.RegisterMessage(Certificate) diff --git a/lbrynet/schema/proto2/claim.proto b/lbrynet/schema/proto2/claim.proto deleted file mode 100644 index f26098752..000000000 --- a/lbrynet/schema/proto2/claim.proto +++ /dev/null @@ -1,22 +0,0 @@ -syntax = "proto2"; - -import "lbrynet/schema/proto/stream.proto"; -import "lbrynet/schema/proto/certificate.proto"; -import "lbrynet/schema/proto/signature.proto"; - -message Claim { - enum Version { - UNKNOWN_VERSION = 0; - _0_0_1 = 1; - } - required Version version = 1; - enum ClaimType { - UNKNOWN_CLAIM_TYPE = 0; - streamType = 1; - certificateType = 2; - } - required ClaimType claimType = 2; - optional Stream stream = 3; - optional Certificate certificate = 4; - optional Signature publisherSignature = 5; -} diff --git a/lbrynet/schema/proto2/claim_pb2.py b/lbrynet/schema/proto2/claim_pb2.py index 813270358..a46107801 100644 --- a/lbrynet/schema/proto2/claim_pb2.py +++ b/lbrynet/schema/proto2/claim_pb2.py @@ -1,5 +1,5 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: lbrynet/schema/proto/claim.proto +# source: claim.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -12,25 +12,25 @@ from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() -from lbrynet.schema.proto import stream_pb2 as lbrynet_dot_schema_dot_proto_dot_stream__pb2 -from lbrynet.schema.proto import certificate_pb2 as lbrynet_dot_schema_dot_proto_dot_certificate__pb2 -from lbrynet.schema.proto import signature_pb2 as lbrynet_dot_schema_dot_proto_dot_signature__pb2 +from . import stream_pb2 as stream__pb2 +from . import certificate_pb2 as certificate__pb2 +from . import signature_pb2 as signature__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='lbrynet/schema/proto/claim.proto', - package='', + name='claim.proto', + package='pb', syntax='proto2', serialized_options=None, - serialized_pb=_b('\n lbrynet/schema/proto/claim.proto\x1a!lbrynet/schema/proto/stream.proto\x1a&lbrynet/schema/proto/certificate.proto\x1a$lbrynet/schema/proto/signature.proto\"\xa7\x02\n\x05\x43laim\x12\x1f\n\x07version\x18\x01 \x02(\x0e\x32\x0e.Claim.Version\x12#\n\tclaimType\x18\x02 \x02(\x0e\x32\x10.Claim.ClaimType\x12\x17\n\x06stream\x18\x03 \x01(\x0b\x32\x07.Stream\x12!\n\x0b\x63\x65rtificate\x18\x04 \x01(\x0b\x32\x0c.Certificate\x12&\n\x12publisherSignature\x18\x05 \x01(\x0b\x32\n.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_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') , - dependencies=[lbrynet_dot_schema_dot_proto_dot_stream__pb2.DESCRIPTOR,lbrynet_dot_schema_dot_proto_dot_certificate__pb2.DESCRIPTOR,lbrynet_dot_schema_dot_proto_dot_signature__pb2.DESCRIPTOR,]) + dependencies=[stream__pb2.DESCRIPTOR,certificate__pb2.DESCRIPTOR,signature__pb2.DESCRIPTOR,]) _CLAIM_VERSION = _descriptor.EnumDescriptor( name='Version', - full_name='Claim.Version', + full_name='pb.Claim.Version', filename=None, file=DESCRIPTOR, values=[ @@ -45,14 +45,14 @@ _CLAIM_VERSION = _descriptor.EnumDescriptor( ], containing_type=None, serialized_options=None, - serialized_start=329, - serialized_end=371, + serialized_start=264, + serialized_end=306, ) _sym_db.RegisterEnumDescriptor(_CLAIM_VERSION) _CLAIM_CLAIMTYPE = _descriptor.EnumDescriptor( name='ClaimType', - full_name='Claim.ClaimType', + full_name='pb.Claim.ClaimType', filename=None, file=DESCRIPTOR, values=[ @@ -71,49 +71,49 @@ _CLAIM_CLAIMTYPE = _descriptor.EnumDescriptor( ], containing_type=None, serialized_options=None, - serialized_start=373, - serialized_end=445, + serialized_start=308, + serialized_end=380, ) _sym_db.RegisterEnumDescriptor(_CLAIM_CLAIMTYPE) _CLAIM = _descriptor.Descriptor( name='Claim', - full_name='Claim', + full_name='pb.Claim', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='version', full_name='Claim.version', index=0, + name='version', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='claimType', full_name='Claim.claimType', index=1, + name='claimType', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='stream', full_name='Claim.stream', index=2, + name='stream', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='certificate', full_name='Claim.certificate', index=3, + name='certificate', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='publisherSignature', full_name='Claim.publisherSignature', index=4, + name='publisherSignature', full_name='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, @@ -133,15 +133,15 @@ _CLAIM = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=150, - serialized_end=445, + serialized_start=70, + serialized_end=380, ) _CLAIM.fields_by_name['version'].enum_type = _CLAIM_VERSION _CLAIM.fields_by_name['claimType'].enum_type = _CLAIM_CLAIMTYPE -_CLAIM.fields_by_name['stream'].message_type = lbrynet_dot_schema_dot_proto_dot_stream__pb2._STREAM -_CLAIM.fields_by_name['certificate'].message_type = lbrynet_dot_schema_dot_proto_dot_certificate__pb2._CERTIFICATE -_CLAIM.fields_by_name['publisherSignature'].message_type = lbrynet_dot_schema_dot_proto_dot_signature__pb2._SIGNATURE +_CLAIM.fields_by_name['stream'].message_type = stream__pb2._STREAM +_CLAIM.fields_by_name['certificate'].message_type = certificate__pb2._CERTIFICATE +_CLAIM.fields_by_name['publisherSignature'].message_type = signature__pb2._SIGNATURE _CLAIM_VERSION.containing_type = _CLAIM _CLAIM_CLAIMTYPE.containing_type = _CLAIM DESCRIPTOR.message_types_by_name['Claim'] = _CLAIM @@ -149,8 +149,8 @@ _sym_db.RegisterFileDescriptor(DESCRIPTOR) Claim = _reflection.GeneratedProtocolMessageType('Claim', (_message.Message,), dict( DESCRIPTOR = _CLAIM, - __module__ = 'lbrynet.schema.proto.claim_pb2' - # @@protoc_insertion_point(class_scope:Claim) + __module__ = 'claim_pb2' + # @@protoc_insertion_point(class_scope:pb.Claim) )) _sym_db.RegisterMessage(Claim) diff --git a/lbrynet/schema/proto2/fee.proto b/lbrynet/schema/proto2/fee.proto deleted file mode 100644 index c666eaa6c..000000000 --- a/lbrynet/schema/proto2/fee.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto2"; - -message Fee { - enum Version { - UNKNOWN_VERSION = 0; - _0_0_1 = 1; - } - enum Currency { - UNKNOWN_CURRENCY = 0; - LBC = 1; - BTC = 2; - USD = 3; - } - required Version version = 1; - required Currency currency = 2; - required bytes address = 3; - required float amount = 4; -} diff --git a/lbrynet/schema/proto2/fee_pb2.py b/lbrynet/schema/proto2/fee_pb2.py index 2f96f1cc3..a0044517c 100644 --- a/lbrynet/schema/proto2/fee_pb2.py +++ b/lbrynet/schema/proto2/fee_pb2.py @@ -1,5 +1,5 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: lbrynet/schema/proto/fee.proto +# source: fee.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='lbrynet/schema/proto/fee.proto', - package='', + name='fee.proto', + package='pb', syntax='proto2', serialized_options=None, - serialized_pb=_b('\n\x1elbrynet/schema/proto/fee.proto\"\xcf\x01\n\x03\x46\x65\x65\x12\x1d\n\x07version\x18\x01 \x02(\x0e\x32\x0c.Fee.Version\x12\x1f\n\x08\x63urrency\x18\x02 \x02(\x0e\x32\r.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_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') ) _FEE_VERSION = _descriptor.EnumDescriptor( name='Version', - full_name='Fee.Version', + full_name='pb.Fee.Version', filename=None, file=DESCRIPTOR, values=[ @@ -41,14 +41,14 @@ _FEE_VERSION = _descriptor.EnumDescriptor( ], containing_type=None, serialized_options=None, - serialized_start=139, - serialized_end=181, + serialized_start=128, + serialized_end=170, ) _sym_db.RegisterEnumDescriptor(_FEE_VERSION) _FEE_CURRENCY = _descriptor.EnumDescriptor( name='Currency', - full_name='Fee.Currency', + full_name='pb.Fee.Currency', filename=None, file=DESCRIPTOR, values=[ @@ -71,42 +71,42 @@ _FEE_CURRENCY = _descriptor.EnumDescriptor( ], containing_type=None, serialized_options=None, - serialized_start=183, - serialized_end=242, + serialized_start=172, + serialized_end=231, ) _sym_db.RegisterEnumDescriptor(_FEE_CURRENCY) _FEE = _descriptor.Descriptor( name='Fee', - full_name='Fee', + full_name='pb.Fee', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='version', full_name='Fee.version', index=0, + name='version', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='currency', full_name='Fee.currency', index=1, + name='currency', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='address', full_name='Fee.address', index=2, + name='address', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='amount', full_name='Fee.amount', index=3, + name='amount', full_name='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, @@ -126,8 +126,8 @@ _FEE = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=35, - serialized_end=242, + serialized_start=18, + serialized_end=231, ) _FEE.fields_by_name['version'].enum_type = _FEE_VERSION @@ -139,8 +139,8 @@ _sym_db.RegisterFileDescriptor(DESCRIPTOR) Fee = _reflection.GeneratedProtocolMessageType('Fee', (_message.Message,), dict( DESCRIPTOR = _FEE, - __module__ = 'lbrynet.schema.proto.fee_pb2' - # @@protoc_insertion_point(class_scope:Fee) + __module__ = 'fee_pb2' + # @@protoc_insertion_point(class_scope:pb.Fee) )) _sym_db.RegisterMessage(Fee) diff --git a/lbrynet/schema/proto2/metadata.proto b/lbrynet/schema/proto2/metadata.proto deleted file mode 100644 index bb4f52964..000000000 --- a/lbrynet/schema/proto2/metadata.proto +++ /dev/null @@ -1,212 +0,0 @@ -syntax = "proto2"; - -import "lbrynet/schema/proto/fee.proto"; - -message Metadata { - enum Version { - UNKNOWN_VERSION = 0; - _0_0_1 = 1; - _0_0_2 = 2; - _0_0_3 = 3; - _0_1_0 = 4; - } - enum Language { - UNKNOWN_LANGUAGE = 0; - en = 1; - aa = 2; - ab = 3; - ae = 4; - af = 5; - ak = 6; - am = 7; - an = 8; - ar = 9; - as = 10; - av = 11; - ay = 12; - az = 13; - ba = 14; - be = 15; - bg = 16; - bh = 17; - bi = 18; - bm = 19; - bn = 20; - bo = 21; - br = 22; - bs = 23; - ca = 24; - ce = 25; - ch = 26; - co = 27; - cr = 28; - cs = 29; - cu = 30; - cv = 31; - cy = 32; - da = 33; - de = 34; - dv = 35; - dz = 36; - ee = 37; - el = 38; - eo = 39; - es = 40; - et = 41; - eu = 42; - fa = 43; - ff = 44; - fi = 45; - fj = 46; - fo = 47; - fr = 48; - fy = 49; - ga = 50; - gd = 51; - gl = 52; - gn = 53; - gu = 54; - gv = 55; - ha = 56; - he = 57; - hi = 58; - ho = 59; - hr = 60; - ht = 61; - hu = 62; - hy = 63; - hz = 64; - ia = 65; - id = 66; - ie = 67; - ig = 68; - ii = 69; - ik = 70; - io = 71; - is = 72; - it = 73; - iu = 74; - ja = 75; - jv = 76; - ka = 77; - kg = 78; - ki = 79; - kj = 80; - kk = 81; - kl = 82; - km = 83; - kn = 84; - ko = 85; - kr = 86; - ks = 87; - ku = 88; - kv = 89; - kw = 90; - ky = 91; - la = 92; - lb = 93; - lg = 94; - li = 95; - ln = 96; - lo = 97; - lt = 98; - lu = 99; - lv = 100; - mg = 101; - mh = 102; - mi = 103; - mk = 104; - ml = 105; - mn = 106; - mr = 107; - ms = 108; - mt = 109; - my = 110; - na = 111; - nb = 112; - nd = 113; - ne = 114; - ng = 115; - nl = 116; - nn = 117; - no = 118; - nr = 119; - nv = 120; - ny = 121; - oc = 122; - oj = 123; - om = 124; - or = 125; - os = 126; - pa = 127; - pi = 128; - pl = 129; - ps = 130; - pt = 131; - qu = 132; - rm = 133; - rn = 134; - ro = 135; - ru = 136; - rw = 137; - sa = 138; - sc = 139; - sd = 140; - se = 141; - sg = 142; - si = 143; - sk = 144; - sl = 145; - sm = 146; - sn = 147; - so = 148; - sq = 149; - sr = 150; - ss = 151; - st = 152; - su = 153; - sv = 154; - sw = 155; - ta = 156; - te = 157; - tg = 158; - th = 159; - ti = 160; - tk = 161; - tl = 162; - tn = 163; - to = 164; - tr = 165; - ts = 166; - tt = 167; - tw = 168; - ty = 169; - ug = 170; - uk = 171; - ur = 172; - uz = 173; - ve = 174; - vi = 175; - vo = 176; - wa = 177; - wo = 178; - xh = 179; - yi = 180; - yo = 181; - za = 182; - zh = 183; - zu = 184; - } - required Version version = 1; - required Language language = 2; - required string title = 3; - required string description = 4; - required string author = 5; - required string license = 6; - required bool nsfw = 7; - - optional Fee fee = 8; - optional string thumbnail = 9; - optional string preview = 10; - optional string licenseUrl = 11; -} diff --git a/lbrynet/schema/proto2/metadata_pb2.py b/lbrynet/schema/proto2/metadata_pb2.py index 617193ff4..3af1c0892 100644 --- a/lbrynet/schema/proto2/metadata_pb2.py +++ b/lbrynet/schema/proto2/metadata_pb2.py @@ -1,5 +1,5 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: lbrynet/schema/proto/metadata.proto +# source: metadata.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -12,23 +12,23 @@ from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() -from lbrynet.schema.proto import fee_pb2 as lbrynet_dot_schema_dot_proto_dot_fee__pb2 +from . import fee_pb2 as fee__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='lbrynet/schema/proto/metadata.proto', - package='', + name='metadata.proto', + package='pb', syntax='proto2', serialized_options=None, - serialized_pb=_b('\n#lbrynet/schema/proto/metadata.proto\x1a\x1elbrynet/schema/proto/fee.proto\"\xde\x0e\n\x08Metadata\x12\"\n\x07version\x18\x01 \x02(\x0e\x32\x11.Metadata.Version\x12$\n\x08language\x18\x02 \x02(\x0e\x32\x12.Metadata.Language\x12\r\n\x05title\x18\x03 \x02(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x02(\t\x12\x0e\n\x06\x61uthor\x18\x05 \x02(\t\x12\x0f\n\x07license\x18\x06 \x02(\t\x12\x0c\n\x04nsfw\x18\x07 \x02(\x08\x12\x11\n\x03\x66\x65\x65\x18\x08 \x01(\x0b\x32\x04.Fee\x12\x11\n\tthumbnail\x18\t \x01(\t\x12\x0f\n\x07preview\x18\n \x01(\t\x12\x12\n\nlicenseUrl\x18\x0b \x01(\t\"N\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01\x12\n\n\x06_0_0_2\x10\x02\x12\n\n\x06_0_0_3\x10\x03\x12\n\n\x06_0_1_0\x10\x04\"\x99\x0c\n\x08Language\x12\x14\n\x10UNKNOWN_LANGUAGE\x10\x00\x12\x06\n\x02\x65n\x10\x01\x12\x06\n\x02\x61\x61\x10\x02\x12\x06\n\x02\x61\x62\x10\x03\x12\x06\n\x02\x61\x65\x10\x04\x12\x06\n\x02\x61\x66\x10\x05\x12\x06\n\x02\x61k\x10\x06\x12\x06\n\x02\x61m\x10\x07\x12\x06\n\x02\x61n\x10\x08\x12\x06\n\x02\x61r\x10\t\x12\x06\n\x02\x61s\x10\n\x12\x06\n\x02\x61v\x10\x0b\x12\x06\n\x02\x61y\x10\x0c\x12\x06\n\x02\x61z\x10\r\x12\x06\n\x02\x62\x61\x10\x0e\x12\x06\n\x02\x62\x65\x10\x0f\x12\x06\n\x02\x62g\x10\x10\x12\x06\n\x02\x62h\x10\x11\x12\x06\n\x02\x62i\x10\x12\x12\x06\n\x02\x62m\x10\x13\x12\x06\n\x02\x62n\x10\x14\x12\x06\n\x02\x62o\x10\x15\x12\x06\n\x02\x62r\x10\x16\x12\x06\n\x02\x62s\x10\x17\x12\x06\n\x02\x63\x61\x10\x18\x12\x06\n\x02\x63\x65\x10\x19\x12\x06\n\x02\x63h\x10\x1a\x12\x06\n\x02\x63o\x10\x1b\x12\x06\n\x02\x63r\x10\x1c\x12\x06\n\x02\x63s\x10\x1d\x12\x06\n\x02\x63u\x10\x1e\x12\x06\n\x02\x63v\x10\x1f\x12\x06\n\x02\x63y\x10 \x12\x06\n\x02\x64\x61\x10!\x12\x06\n\x02\x64\x65\x10\"\x12\x06\n\x02\x64v\x10#\x12\x06\n\x02\x64z\x10$\x12\x06\n\x02\x65\x65\x10%\x12\x06\n\x02\x65l\x10&\x12\x06\n\x02\x65o\x10\'\x12\x06\n\x02\x65s\x10(\x12\x06\n\x02\x65t\x10)\x12\x06\n\x02\x65u\x10*\x12\x06\n\x02\x66\x61\x10+\x12\x06\n\x02\x66\x66\x10,\x12\x06\n\x02\x66i\x10-\x12\x06\n\x02\x66j\x10.\x12\x06\n\x02\x66o\x10/\x12\x06\n\x02\x66r\x10\x30\x12\x06\n\x02\x66y\x10\x31\x12\x06\n\x02ga\x10\x32\x12\x06\n\x02gd\x10\x33\x12\x06\n\x02gl\x10\x34\x12\x06\n\x02gn\x10\x35\x12\x06\n\x02gu\x10\x36\x12\x06\n\x02gv\x10\x37\x12\x06\n\x02ha\x10\x38\x12\x06\n\x02he\x10\x39\x12\x06\n\x02hi\x10:\x12\x06\n\x02ho\x10;\x12\x06\n\x02hr\x10<\x12\x06\n\x02ht\x10=\x12\x06\n\x02hu\x10>\x12\x06\n\x02hy\x10?\x12\x06\n\x02hz\x10@\x12\x06\n\x02ia\x10\x41\x12\x06\n\x02id\x10\x42\x12\x06\n\x02ie\x10\x43\x12\x06\n\x02ig\x10\x44\x12\x06\n\x02ii\x10\x45\x12\x06\n\x02ik\x10\x46\x12\x06\n\x02io\x10G\x12\x06\n\x02is\x10H\x12\x06\n\x02it\x10I\x12\x06\n\x02iu\x10J\x12\x06\n\x02ja\x10K\x12\x06\n\x02jv\x10L\x12\x06\n\x02ka\x10M\x12\x06\n\x02kg\x10N\x12\x06\n\x02ki\x10O\x12\x06\n\x02kj\x10P\x12\x06\n\x02kk\x10Q\x12\x06\n\x02kl\x10R\x12\x06\n\x02km\x10S\x12\x06\n\x02kn\x10T\x12\x06\n\x02ko\x10U\x12\x06\n\x02kr\x10V\x12\x06\n\x02ks\x10W\x12\x06\n\x02ku\x10X\x12\x06\n\x02kv\x10Y\x12\x06\n\x02kw\x10Z\x12\x06\n\x02ky\x10[\x12\x06\n\x02la\x10\\\x12\x06\n\x02lb\x10]\x12\x06\n\x02lg\x10^\x12\x06\n\x02li\x10_\x12\x06\n\x02ln\x10`\x12\x06\n\x02lo\x10\x61\x12\x06\n\x02lt\x10\x62\x12\x06\n\x02lu\x10\x63\x12\x06\n\x02lv\x10\x64\x12\x06\n\x02mg\x10\x65\x12\x06\n\x02mh\x10\x66\x12\x06\n\x02mi\x10g\x12\x06\n\x02mk\x10h\x12\x06\n\x02ml\x10i\x12\x06\n\x02mn\x10j\x12\x06\n\x02mr\x10k\x12\x06\n\x02ms\x10l\x12\x06\n\x02mt\x10m\x12\x06\n\x02my\x10n\x12\x06\n\x02na\x10o\x12\x06\n\x02nb\x10p\x12\x06\n\x02nd\x10q\x12\x06\n\x02ne\x10r\x12\x06\n\x02ng\x10s\x12\x06\n\x02nl\x10t\x12\x06\n\x02nn\x10u\x12\x06\n\x02no\x10v\x12\x06\n\x02nr\x10w\x12\x06\n\x02nv\x10x\x12\x06\n\x02ny\x10y\x12\x06\n\x02oc\x10z\x12\x06\n\x02oj\x10{\x12\x06\n\x02om\x10|\x12\x06\n\x02or\x10}\x12\x06\n\x02os\x10~\x12\x06\n\x02pa\x10\x7f\x12\x07\n\x02pi\x10\x80\x01\x12\x07\n\x02pl\x10\x81\x01\x12\x07\n\x02ps\x10\x82\x01\x12\x07\n\x02pt\x10\x83\x01\x12\x07\n\x02qu\x10\x84\x01\x12\x07\n\x02rm\x10\x85\x01\x12\x07\n\x02rn\x10\x86\x01\x12\x07\n\x02ro\x10\x87\x01\x12\x07\n\x02ru\x10\x88\x01\x12\x07\n\x02rw\x10\x89\x01\x12\x07\n\x02sa\x10\x8a\x01\x12\x07\n\x02sc\x10\x8b\x01\x12\x07\n\x02sd\x10\x8c\x01\x12\x07\n\x02se\x10\x8d\x01\x12\x07\n\x02sg\x10\x8e\x01\x12\x07\n\x02si\x10\x8f\x01\x12\x07\n\x02sk\x10\x90\x01\x12\x07\n\x02sl\x10\x91\x01\x12\x07\n\x02sm\x10\x92\x01\x12\x07\n\x02sn\x10\x93\x01\x12\x07\n\x02so\x10\x94\x01\x12\x07\n\x02sq\x10\x95\x01\x12\x07\n\x02sr\x10\x96\x01\x12\x07\n\x02ss\x10\x97\x01\x12\x07\n\x02st\x10\x98\x01\x12\x07\n\x02su\x10\x99\x01\x12\x07\n\x02sv\x10\x9a\x01\x12\x07\n\x02sw\x10\x9b\x01\x12\x07\n\x02ta\x10\x9c\x01\x12\x07\n\x02te\x10\x9d\x01\x12\x07\n\x02tg\x10\x9e\x01\x12\x07\n\x02th\x10\x9f\x01\x12\x07\n\x02ti\x10\xa0\x01\x12\x07\n\x02tk\x10\xa1\x01\x12\x07\n\x02tl\x10\xa2\x01\x12\x07\n\x02tn\x10\xa3\x01\x12\x07\n\x02to\x10\xa4\x01\x12\x07\n\x02tr\x10\xa5\x01\x12\x07\n\x02ts\x10\xa6\x01\x12\x07\n\x02tt\x10\xa7\x01\x12\x07\n\x02tw\x10\xa8\x01\x12\x07\n\x02ty\x10\xa9\x01\x12\x07\n\x02ug\x10\xaa\x01\x12\x07\n\x02uk\x10\xab\x01\x12\x07\n\x02ur\x10\xac\x01\x12\x07\n\x02uz\x10\xad\x01\x12\x07\n\x02ve\x10\xae\x01\x12\x07\n\x02vi\x10\xaf\x01\x12\x07\n\x02vo\x10\xb0\x01\x12\x07\n\x02wa\x10\xb1\x01\x12\x07\n\x02wo\x10\xb2\x01\x12\x07\n\x02xh\x10\xb3\x01\x12\x07\n\x02yi\x10\xb4\x01\x12\x07\n\x02yo\x10\xb5\x01\x12\x07\n\x02za\x10\xb6\x01\x12\x07\n\x02zh\x10\xb7\x01\x12\x07\n\x02zu\x10\xb8\x01') + serialized_pb=_b('\n\x0emetadata.proto\x12\x02pb\x1a\tfee.proto\"\xe7\x0e\n\x08Metadata\x12%\n\x07version\x18\x01 \x02(\x0e\x32\x14.pb.Metadata.Version\x12\'\n\x08language\x18\x02 \x02(\x0e\x32\x15.pb.Metadata.Language\x12\r\n\x05title\x18\x03 \x02(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x02(\t\x12\x0e\n\x06\x61uthor\x18\x05 \x02(\t\x12\x0f\n\x07license\x18\x06 \x02(\t\x12\x0c\n\x04nsfw\x18\x07 \x02(\x08\x12\x14\n\x03\x66\x65\x65\x18\x08 \x01(\x0b\x32\x07.pb.Fee\x12\x11\n\tthumbnail\x18\t \x01(\t\x12\x0f\n\x07preview\x18\n \x01(\t\x12\x12\n\nlicenseUrl\x18\x0b \x01(\t\"N\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01\x12\n\n\x06_0_0_2\x10\x02\x12\n\n\x06_0_0_3\x10\x03\x12\n\n\x06_0_1_0\x10\x04\"\x99\x0c\n\x08Language\x12\x14\n\x10UNKNOWN_LANGUAGE\x10\x00\x12\x06\n\x02\x65n\x10\x01\x12\x06\n\x02\x61\x61\x10\x02\x12\x06\n\x02\x61\x62\x10\x03\x12\x06\n\x02\x61\x65\x10\x04\x12\x06\n\x02\x61\x66\x10\x05\x12\x06\n\x02\x61k\x10\x06\x12\x06\n\x02\x61m\x10\x07\x12\x06\n\x02\x61n\x10\x08\x12\x06\n\x02\x61r\x10\t\x12\x06\n\x02\x61s\x10\n\x12\x06\n\x02\x61v\x10\x0b\x12\x06\n\x02\x61y\x10\x0c\x12\x06\n\x02\x61z\x10\r\x12\x06\n\x02\x62\x61\x10\x0e\x12\x06\n\x02\x62\x65\x10\x0f\x12\x06\n\x02\x62g\x10\x10\x12\x06\n\x02\x62h\x10\x11\x12\x06\n\x02\x62i\x10\x12\x12\x06\n\x02\x62m\x10\x13\x12\x06\n\x02\x62n\x10\x14\x12\x06\n\x02\x62o\x10\x15\x12\x06\n\x02\x62r\x10\x16\x12\x06\n\x02\x62s\x10\x17\x12\x06\n\x02\x63\x61\x10\x18\x12\x06\n\x02\x63\x65\x10\x19\x12\x06\n\x02\x63h\x10\x1a\x12\x06\n\x02\x63o\x10\x1b\x12\x06\n\x02\x63r\x10\x1c\x12\x06\n\x02\x63s\x10\x1d\x12\x06\n\x02\x63u\x10\x1e\x12\x06\n\x02\x63v\x10\x1f\x12\x06\n\x02\x63y\x10 \x12\x06\n\x02\x64\x61\x10!\x12\x06\n\x02\x64\x65\x10\"\x12\x06\n\x02\x64v\x10#\x12\x06\n\x02\x64z\x10$\x12\x06\n\x02\x65\x65\x10%\x12\x06\n\x02\x65l\x10&\x12\x06\n\x02\x65o\x10\'\x12\x06\n\x02\x65s\x10(\x12\x06\n\x02\x65t\x10)\x12\x06\n\x02\x65u\x10*\x12\x06\n\x02\x66\x61\x10+\x12\x06\n\x02\x66\x66\x10,\x12\x06\n\x02\x66i\x10-\x12\x06\n\x02\x66j\x10.\x12\x06\n\x02\x66o\x10/\x12\x06\n\x02\x66r\x10\x30\x12\x06\n\x02\x66y\x10\x31\x12\x06\n\x02ga\x10\x32\x12\x06\n\x02gd\x10\x33\x12\x06\n\x02gl\x10\x34\x12\x06\n\x02gn\x10\x35\x12\x06\n\x02gu\x10\x36\x12\x06\n\x02gv\x10\x37\x12\x06\n\x02ha\x10\x38\x12\x06\n\x02he\x10\x39\x12\x06\n\x02hi\x10:\x12\x06\n\x02ho\x10;\x12\x06\n\x02hr\x10<\x12\x06\n\x02ht\x10=\x12\x06\n\x02hu\x10>\x12\x06\n\x02hy\x10?\x12\x06\n\x02hz\x10@\x12\x06\n\x02ia\x10\x41\x12\x06\n\x02id\x10\x42\x12\x06\n\x02ie\x10\x43\x12\x06\n\x02ig\x10\x44\x12\x06\n\x02ii\x10\x45\x12\x06\n\x02ik\x10\x46\x12\x06\n\x02io\x10G\x12\x06\n\x02is\x10H\x12\x06\n\x02it\x10I\x12\x06\n\x02iu\x10J\x12\x06\n\x02ja\x10K\x12\x06\n\x02jv\x10L\x12\x06\n\x02ka\x10M\x12\x06\n\x02kg\x10N\x12\x06\n\x02ki\x10O\x12\x06\n\x02kj\x10P\x12\x06\n\x02kk\x10Q\x12\x06\n\x02kl\x10R\x12\x06\n\x02km\x10S\x12\x06\n\x02kn\x10T\x12\x06\n\x02ko\x10U\x12\x06\n\x02kr\x10V\x12\x06\n\x02ks\x10W\x12\x06\n\x02ku\x10X\x12\x06\n\x02kv\x10Y\x12\x06\n\x02kw\x10Z\x12\x06\n\x02ky\x10[\x12\x06\n\x02la\x10\\\x12\x06\n\x02lb\x10]\x12\x06\n\x02lg\x10^\x12\x06\n\x02li\x10_\x12\x06\n\x02ln\x10`\x12\x06\n\x02lo\x10\x61\x12\x06\n\x02lt\x10\x62\x12\x06\n\x02lu\x10\x63\x12\x06\n\x02lv\x10\x64\x12\x06\n\x02mg\x10\x65\x12\x06\n\x02mh\x10\x66\x12\x06\n\x02mi\x10g\x12\x06\n\x02mk\x10h\x12\x06\n\x02ml\x10i\x12\x06\n\x02mn\x10j\x12\x06\n\x02mr\x10k\x12\x06\n\x02ms\x10l\x12\x06\n\x02mt\x10m\x12\x06\n\x02my\x10n\x12\x06\n\x02na\x10o\x12\x06\n\x02nb\x10p\x12\x06\n\x02nd\x10q\x12\x06\n\x02ne\x10r\x12\x06\n\x02ng\x10s\x12\x06\n\x02nl\x10t\x12\x06\n\x02nn\x10u\x12\x06\n\x02no\x10v\x12\x06\n\x02nr\x10w\x12\x06\n\x02nv\x10x\x12\x06\n\x02ny\x10y\x12\x06\n\x02oc\x10z\x12\x06\n\x02oj\x10{\x12\x06\n\x02om\x10|\x12\x06\n\x02or\x10}\x12\x06\n\x02os\x10~\x12\x06\n\x02pa\x10\x7f\x12\x07\n\x02pi\x10\x80\x01\x12\x07\n\x02pl\x10\x81\x01\x12\x07\n\x02ps\x10\x82\x01\x12\x07\n\x02pt\x10\x83\x01\x12\x07\n\x02qu\x10\x84\x01\x12\x07\n\x02rm\x10\x85\x01\x12\x07\n\x02rn\x10\x86\x01\x12\x07\n\x02ro\x10\x87\x01\x12\x07\n\x02ru\x10\x88\x01\x12\x07\n\x02rw\x10\x89\x01\x12\x07\n\x02sa\x10\x8a\x01\x12\x07\n\x02sc\x10\x8b\x01\x12\x07\n\x02sd\x10\x8c\x01\x12\x07\n\x02se\x10\x8d\x01\x12\x07\n\x02sg\x10\x8e\x01\x12\x07\n\x02si\x10\x8f\x01\x12\x07\n\x02sk\x10\x90\x01\x12\x07\n\x02sl\x10\x91\x01\x12\x07\n\x02sm\x10\x92\x01\x12\x07\n\x02sn\x10\x93\x01\x12\x07\n\x02so\x10\x94\x01\x12\x07\n\x02sq\x10\x95\x01\x12\x07\n\x02sr\x10\x96\x01\x12\x07\n\x02ss\x10\x97\x01\x12\x07\n\x02st\x10\x98\x01\x12\x07\n\x02su\x10\x99\x01\x12\x07\n\x02sv\x10\x9a\x01\x12\x07\n\x02sw\x10\x9b\x01\x12\x07\n\x02ta\x10\x9c\x01\x12\x07\n\x02te\x10\x9d\x01\x12\x07\n\x02tg\x10\x9e\x01\x12\x07\n\x02th\x10\x9f\x01\x12\x07\n\x02ti\x10\xa0\x01\x12\x07\n\x02tk\x10\xa1\x01\x12\x07\n\x02tl\x10\xa2\x01\x12\x07\n\x02tn\x10\xa3\x01\x12\x07\n\x02to\x10\xa4\x01\x12\x07\n\x02tr\x10\xa5\x01\x12\x07\n\x02ts\x10\xa6\x01\x12\x07\n\x02tt\x10\xa7\x01\x12\x07\n\x02tw\x10\xa8\x01\x12\x07\n\x02ty\x10\xa9\x01\x12\x07\n\x02ug\x10\xaa\x01\x12\x07\n\x02uk\x10\xab\x01\x12\x07\n\x02ur\x10\xac\x01\x12\x07\n\x02uz\x10\xad\x01\x12\x07\n\x02ve\x10\xae\x01\x12\x07\n\x02vi\x10\xaf\x01\x12\x07\n\x02vo\x10\xb0\x01\x12\x07\n\x02wa\x10\xb1\x01\x12\x07\n\x02wo\x10\xb2\x01\x12\x07\n\x02xh\x10\xb3\x01\x12\x07\n\x02yi\x10\xb4\x01\x12\x07\n\x02yo\x10\xb5\x01\x12\x07\n\x02za\x10\xb6\x01\x12\x07\n\x02zh\x10\xb7\x01\x12\x07\n\x02zu\x10\xb8\x01') , - dependencies=[lbrynet_dot_schema_dot_proto_dot_fee__pb2.DESCRIPTOR,]) + dependencies=[fee__pb2.DESCRIPTOR,]) _METADATA_VERSION = _descriptor.EnumDescriptor( name='Version', - full_name='Metadata.Version', + full_name='pb.Metadata.Version', filename=None, file=DESCRIPTOR, values=[ @@ -55,14 +55,14 @@ _METADATA_VERSION = _descriptor.EnumDescriptor( ], containing_type=None, serialized_options=None, - serialized_start=316, - serialized_end=394, + serialized_start=287, + serialized_end=365, ) _sym_db.RegisterEnumDescriptor(_METADATA_VERSION) _METADATA_LANGUAGE = _descriptor.EnumDescriptor( name='Language', - full_name='Metadata.Language', + full_name='pb.Metadata.Language', filename=None, file=DESCRIPTOR, values=[ @@ -809,91 +809,91 @@ _METADATA_LANGUAGE = _descriptor.EnumDescriptor( ], containing_type=None, serialized_options=None, - serialized_start=397, - serialized_end=1958, + serialized_start=368, + serialized_end=1929, ) _sym_db.RegisterEnumDescriptor(_METADATA_LANGUAGE) _METADATA = _descriptor.Descriptor( name='Metadata', - full_name='Metadata', + full_name='pb.Metadata', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='version', full_name='Metadata.version', index=0, + name='version', full_name='pb.Metadata.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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='language', full_name='Metadata.language', index=1, + name='language', full_name='pb.Metadata.language', 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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='title', full_name='Metadata.title', index=2, + name='title', full_name='pb.Metadata.title', index=2, number=3, 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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='description', full_name='Metadata.description', index=3, + name='description', full_name='pb.Metadata.description', 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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='author', full_name='Metadata.author', index=4, + name='author', full_name='pb.Metadata.author', index=4, number=5, 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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='license', full_name='Metadata.license', index=5, + name='license', full_name='pb.Metadata.license', index=5, number=6, 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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='nsfw', full_name='Metadata.nsfw', index=6, + name='nsfw', full_name='pb.Metadata.nsfw', index=6, number=7, type=8, cpp_type=7, label=2, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='fee', full_name='Metadata.fee', index=7, + name='fee', full_name='pb.Metadata.fee', 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='thumbnail', full_name='Metadata.thumbnail', index=8, + name='thumbnail', full_name='pb.Metadata.thumbnail', index=8, number=9, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='preview', full_name='Metadata.preview', index=9, + name='preview', full_name='pb.Metadata.preview', index=9, number=10, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='licenseUrl', full_name='Metadata.licenseUrl', index=10, + name='licenseUrl', full_name='pb.Metadata.licenseUrl', index=10, number=11, 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, @@ -913,13 +913,13 @@ _METADATA = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=72, - serialized_end=1958, + serialized_start=34, + serialized_end=1929, ) _METADATA.fields_by_name['version'].enum_type = _METADATA_VERSION _METADATA.fields_by_name['language'].enum_type = _METADATA_LANGUAGE -_METADATA.fields_by_name['fee'].message_type = lbrynet_dot_schema_dot_proto_dot_fee__pb2._FEE +_METADATA.fields_by_name['fee'].message_type = fee__pb2._FEE _METADATA_VERSION.containing_type = _METADATA _METADATA_LANGUAGE.containing_type = _METADATA DESCRIPTOR.message_types_by_name['Metadata'] = _METADATA @@ -927,8 +927,8 @@ _sym_db.RegisterFileDescriptor(DESCRIPTOR) Metadata = _reflection.GeneratedProtocolMessageType('Metadata', (_message.Message,), dict( DESCRIPTOR = _METADATA, - __module__ = 'lbrynet.schema.proto.metadata_pb2' - # @@protoc_insertion_point(class_scope:Metadata) + __module__ = 'metadata_pb2' + # @@protoc_insertion_point(class_scope:pb.Metadata) )) _sym_db.RegisterMessage(Metadata) diff --git a/lbrynet/schema/proto2/signature.proto b/lbrynet/schema/proto2/signature.proto deleted file mode 100644 index 19d227ab8..000000000 --- a/lbrynet/schema/proto2/signature.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto2"; - -import "lbrynet/schema/proto/certificate.proto"; - -message Signature { - enum Version { - UNKNOWN_VERSION = 0; - _0_0_1 = 1; - } - required Version version = 1; - required KeyType signatureType = 2; - required bytes signature = 3; - required bytes certificateId = 4; -} diff --git a/lbrynet/schema/proto2/signature_pb2.py b/lbrynet/schema/proto2/signature_pb2.py index d8dfbdc67..6f8aa1a38 100644 --- a/lbrynet/schema/proto2/signature_pb2.py +++ b/lbrynet/schema/proto2/signature_pb2.py @@ -1,5 +1,5 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: lbrynet/schema/proto/signature.proto +# source: signature.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -12,23 +12,23 @@ from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() -from lbrynet.schema.proto import certificate_pb2 as lbrynet_dot_schema_dot_proto_dot_certificate__pb2 +from . import certificate_pb2 as certificate__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='lbrynet/schema/proto/signature.proto', - package='', + name='signature.proto', + package='pb', syntax='proto2', serialized_options=None, - serialized_pb=_b('\n$lbrynet/schema/proto/signature.proto\x1a&lbrynet/schema/proto/certificate.proto\"\xa7\x01\n\tSignature\x12#\n\x07version\x18\x01 \x02(\x0e\x32\x12.Signature.Version\x12\x1f\n\rsignatureType\x18\x02 \x02(\x0e\x32\x08.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_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') , - dependencies=[lbrynet_dot_schema_dot_proto_dot_certificate__pb2.DESCRIPTOR,]) + dependencies=[certificate__pb2.DESCRIPTOR,]) _SIGNATURE_VERSION = _descriptor.EnumDescriptor( name='Version', - full_name='Signature.Version', + full_name='pb.Signature.Version', filename=None, file=DESCRIPTOR, values=[ @@ -43,42 +43,42 @@ _SIGNATURE_VERSION = _descriptor.EnumDescriptor( ], containing_type=None, serialized_options=None, - serialized_start=206, - serialized_end=248, + serialized_start=174, + serialized_end=216, ) _sym_db.RegisterEnumDescriptor(_SIGNATURE_VERSION) _SIGNATURE = _descriptor.Descriptor( name='Signature', - full_name='Signature', + full_name='pb.Signature', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='version', full_name='Signature.version', index=0, + name='version', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='signatureType', full_name='Signature.signatureType', index=1, + name='signatureType', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='signature', full_name='Signature.signature', index=2, + name='signature', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='certificateId', full_name='Signature.certificateId', index=3, + name='certificateId', full_name='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, @@ -97,20 +97,20 @@ _SIGNATURE = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=81, - serialized_end=248, + serialized_start=43, + serialized_end=216, ) _SIGNATURE.fields_by_name['version'].enum_type = _SIGNATURE_VERSION -_SIGNATURE.fields_by_name['signatureType'].enum_type = lbrynet_dot_schema_dot_proto_dot_certificate__pb2._KEYTYPE +_SIGNATURE.fields_by_name['signatureType'].enum_type = certificate__pb2._KEYTYPE _SIGNATURE_VERSION.containing_type = _SIGNATURE DESCRIPTOR.message_types_by_name['Signature'] = _SIGNATURE _sym_db.RegisterFileDescriptor(DESCRIPTOR) Signature = _reflection.GeneratedProtocolMessageType('Signature', (_message.Message,), dict( DESCRIPTOR = _SIGNATURE, - __module__ = 'lbrynet.schema.proto.signature_pb2' - # @@protoc_insertion_point(class_scope:Signature) + __module__ = 'signature_pb2' + # @@protoc_insertion_point(class_scope:pb.Signature) )) _sym_db.RegisterMessage(Signature) diff --git a/lbrynet/schema/proto2/source.proto b/lbrynet/schema/proto2/source.proto deleted file mode 100644 index 1e13afa4f..000000000 --- a/lbrynet/schema/proto2/source.proto +++ /dev/null @@ -1,16 +0,0 @@ -syntax = "proto2"; - -message Source { - enum Version { - UNKNOWN_VERSION = 0; - _0_0_1 = 1; - } - required Version version = 1; - enum SourceTypes { - UNKNOWN_SOURCE_TYPE = 0; - lbry_sd_hash = 1; - } - required SourceTypes sourceType = 2; - required bytes source = 3; - required string contentType = 4; -} \ No newline at end of file diff --git a/lbrynet/schema/proto2/source_pb2.py b/lbrynet/schema/proto2/source_pb2.py index d50d09be9..76d76f9ab 100644 --- a/lbrynet/schema/proto2/source_pb2.py +++ b/lbrynet/schema/proto2/source_pb2.py @@ -1,5 +1,5 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: lbrynet/schema/proto/source.proto +# source: source.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='lbrynet/schema/proto/source.proto', - package='', + name='source.proto', + package='pb', syntax='proto2', serialized_options=None, - serialized_pb=_b('\n!lbrynet/schema/proto/source.proto\"\xde\x01\n\x06Source\x12 \n\x07version\x18\x01 \x02(\x0e\x32\x0f.Source.Version\x12\'\n\nsourceType\x18\x02 \x02(\x0e\x32\x13.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_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') ) _SOURCE_VERSION = _descriptor.EnumDescriptor( name='Version', - full_name='Source.Version', + full_name='pb.Source.Version', filename=None, file=DESCRIPTOR, values=[ @@ -41,14 +41,14 @@ _SOURCE_VERSION = _descriptor.EnumDescriptor( ], containing_type=None, serialized_options=None, - serialized_start=160, - serialized_end=202, + serialized_start=149, + serialized_end=191, ) _sym_db.RegisterEnumDescriptor(_SOURCE_VERSION) _SOURCE_SOURCETYPES = _descriptor.EnumDescriptor( name='SourceTypes', - full_name='Source.SourceTypes', + full_name='pb.Source.SourceTypes', filename=None, file=DESCRIPTOR, values=[ @@ -63,42 +63,42 @@ _SOURCE_SOURCETYPES = _descriptor.EnumDescriptor( ], containing_type=None, serialized_options=None, - serialized_start=204, - serialized_end=260, + serialized_start=193, + serialized_end=249, ) _sym_db.RegisterEnumDescriptor(_SOURCE_SOURCETYPES) _SOURCE = _descriptor.Descriptor( name='Source', - full_name='Source', + full_name='pb.Source', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='version', full_name='Source.version', index=0, + name='version', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='sourceType', full_name='Source.sourceType', index=1, + name='sourceType', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='source', full_name='Source.source', index=2, + name='source', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='contentType', full_name='Source.contentType', index=3, + name='contentType', full_name='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, @@ -118,8 +118,8 @@ _SOURCE = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=38, - serialized_end=260, + serialized_start=21, + serialized_end=249, ) _SOURCE.fields_by_name['version'].enum_type = _SOURCE_VERSION @@ -131,8 +131,8 @@ _sym_db.RegisterFileDescriptor(DESCRIPTOR) Source = _reflection.GeneratedProtocolMessageType('Source', (_message.Message,), dict( DESCRIPTOR = _SOURCE, - __module__ = 'lbrynet.schema.proto.source_pb2' - # @@protoc_insertion_point(class_scope:Source) + __module__ = 'source_pb2' + # @@protoc_insertion_point(class_scope:pb.Source) )) _sym_db.RegisterMessage(Source) diff --git a/lbrynet/schema/proto2/stream.proto b/lbrynet/schema/proto2/stream.proto deleted file mode 100644 index 51890475d..000000000 --- a/lbrynet/schema/proto2/stream.proto +++ /dev/null @@ -1,15 +0,0 @@ -syntax = "proto2"; - -import "lbrynet/schema/proto/metadata.proto"; -import "lbrynet/schema/proto/source.proto"; - - -message Stream { - enum Version { - UNKNOWN_VERSION = 0; - _0_0_1 = 1; - } - required Version version = 1; - required Metadata metadata = 2; - required Source source = 3; -} diff --git a/lbrynet/schema/proto2/stream_pb2.py b/lbrynet/schema/proto2/stream_pb2.py index b18a5b773..751671ae4 100644 --- a/lbrynet/schema/proto2/stream_pb2.py +++ b/lbrynet/schema/proto2/stream_pb2.py @@ -1,5 +1,5 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: lbrynet/schema/proto/stream.proto +# source: stream.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -12,24 +12,24 @@ from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() -from lbrynet.schema.proto import metadata_pb2 as lbrynet_dot_schema_dot_proto_dot_metadata__pb2 -from lbrynet.schema.proto import source_pb2 as lbrynet_dot_schema_dot_proto_dot_source__pb2 +from . import metadata_pb2 as metadata__pb2 +from . import source_pb2 as source__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='lbrynet/schema/proto/stream.proto', - package='', + name='stream.proto', + package='pb', syntax='proto2', serialized_options=None, - serialized_pb=_b('\n!lbrynet/schema/proto/stream.proto\x1a#lbrynet/schema/proto/metadata.proto\x1a!lbrynet/schema/proto/source.proto\"\x8c\x01\n\x06Stream\x12 \n\x07version\x18\x01 \x02(\x0e\x32\x0f.Stream.Version\x12\x1b\n\x08metadata\x18\x02 \x02(\x0b\x32\t.Metadata\x12\x17\n\x06source\x18\x03 \x02(\x0b\x32\x07.Source\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01') + 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') , - dependencies=[lbrynet_dot_schema_dot_proto_dot_metadata__pb2.DESCRIPTOR,lbrynet_dot_schema_dot_proto_dot_source__pb2.DESCRIPTOR,]) + dependencies=[metadata__pb2.DESCRIPTOR,source__pb2.DESCRIPTOR,]) _STREAM_VERSION = _descriptor.EnumDescriptor( name='Version', - full_name='Stream.Version', + full_name='pb.Stream.Version', filename=None, file=DESCRIPTOR, values=[ @@ -44,35 +44,35 @@ _STREAM_VERSION = _descriptor.EnumDescriptor( ], containing_type=None, serialized_options=None, - serialized_start=208, - serialized_end=250, + serialized_start=158, + serialized_end=200, ) _sym_db.RegisterEnumDescriptor(_STREAM_VERSION) _STREAM = _descriptor.Descriptor( name='Stream', - full_name='Stream', + full_name='pb.Stream', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='version', full_name='Stream.version', index=0, + name='version', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='metadata', full_name='Stream.metadata', index=1, + name='metadata', full_name='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, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='source', full_name='Stream.source', index=2, + name='source', full_name='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, @@ -91,21 +91,21 @@ _STREAM = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=110, - serialized_end=250, + serialized_start=51, + serialized_end=200, ) _STREAM.fields_by_name['version'].enum_type = _STREAM_VERSION -_STREAM.fields_by_name['metadata'].message_type = lbrynet_dot_schema_dot_proto_dot_metadata__pb2._METADATA -_STREAM.fields_by_name['source'].message_type = lbrynet_dot_schema_dot_proto_dot_source__pb2._SOURCE +_STREAM.fields_by_name['metadata'].message_type = metadata__pb2._METADATA +_STREAM.fields_by_name['source'].message_type = source__pb2._SOURCE _STREAM_VERSION.containing_type = _STREAM DESCRIPTOR.message_types_by_name['Stream'] = _STREAM _sym_db.RegisterFileDescriptor(DESCRIPTOR) Stream = _reflection.GeneratedProtocolMessageType('Stream', (_message.Message,), dict( DESCRIPTOR = _STREAM, - __module__ = 'lbrynet.schema.proto.stream_pb2' - # @@protoc_insertion_point(class_scope:Stream) + __module__ = 'stream_pb2' + # @@protoc_insertion_point(class_scope:pb.Stream) )) _sym_db.RegisterMessage(Stream) diff --git a/lbrynet/schema/proto3/__init__.py b/lbrynet/schema/proto3/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/lbrynet/schema/proto3/channel_pb2.py b/lbrynet/schema/proto3/channel_pb2.py new file mode 100644 index 000000000..8bbff1b01 --- /dev/null +++ b/lbrynet/schema/proto3/channel_pb2.py @@ -0,0 +1,69 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: channel.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='channel.proto', + package='pb', + syntax='proto3', + serialized_options=None, + serialized_pb=_b('\n\rchannel.proto\x12\x02pb\"\x1d\n\x07\x43hannel\x12\x12\n\npublic_key\x18\x01 \x01(\x0c\x62\x06proto3') +) + + + + +_CHANNEL = _descriptor.Descriptor( + name='Channel', + full_name='pb.Channel', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=21, + serialized_end=50, +) + +DESCRIPTOR.message_types_by_name['Channel'] = _CHANNEL +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Channel = _reflection.GeneratedProtocolMessageType('Channel', (_message.Message,), dict( + DESCRIPTOR = _CHANNEL, + __module__ = 'channel_pb2' + # @@protoc_insertion_point(class_scope:pb.Channel) + )) +_sym_db.RegisterMessage(Channel) + + +# @@protoc_insertion_point(module_scope) diff --git a/lbrynet/schema/proto3/claim_pb2.py b/lbrynet/schema/proto3/claim_pb2.py new file mode 100644 index 000000000..76a1001eb --- /dev/null +++ b/lbrynet/schema/proto3/claim_pb2.py @@ -0,0 +1,117 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: claim.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from . import stream_pb2 as stream__pb2 +from . import channel_pb2 as channel__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='claim.proto', + package='pb', + syntax='proto3', + serialized_options=None, + serialized_pb=_b('\n\x0b\x63laim.proto\x12\x02pb\x1a\x0cstream.proto\x1a\rchannel.proto\"\x8d\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\",\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06STREAM\x10\x01\x12\x0b\n\x07\x43HANNEL\x10\x02\x62\x06proto3') + , + dependencies=[stream__pb2.DESCRIPTOR,channel__pb2.DESCRIPTOR,]) + + + +_CLAIM_TYPE = _descriptor.EnumDescriptor( + name='Type', + full_name='pb.Claim.Type', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STREAM', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CHANNEL', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=146, + serialized_end=190, +) +_sym_db.RegisterEnumDescriptor(_CLAIM_TYPE) + + +_CLAIM = _descriptor.Descriptor( + name='Claim', + full_name='pb.Claim', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + 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='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='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, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CLAIM_TYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=49, + serialized_end=190, +) + +_CLAIM.fields_by_name['type'].enum_type = _CLAIM_TYPE +_CLAIM.fields_by_name['stream'].message_type = stream__pb2._STREAM +_CLAIM.fields_by_name['channel'].message_type = channel__pb2._CHANNEL +_CLAIM_TYPE.containing_type = _CLAIM +DESCRIPTOR.message_types_by_name['Claim'] = _CLAIM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Claim = _reflection.GeneratedProtocolMessageType('Claim', (_message.Message,), dict( + DESCRIPTOR = _CLAIM, + __module__ = 'claim_pb2' + # @@protoc_insertion_point(class_scope:pb.Claim) + )) +_sym_db.RegisterMessage(Claim) + + +# @@protoc_insertion_point(module_scope) diff --git a/lbrynet/schema/proto3/fee_pb2.py b/lbrynet/schema/proto3/fee_pb2.py new file mode 100644 index 000000000..f6156e53c --- /dev/null +++ b/lbrynet/schema/proto3/fee_pb2.py @@ -0,0 +1,116 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: fee.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='fee.proto', + package='pb', + syntax='proto3', + serialized_options=None, + serialized_pb=_b('\n\tfee.proto\x12\x02pb\"~\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(\x02\"2\n\x08\x43urrency\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03LBC\x10\x01\x12\x07\n\x03\x42TC\x10\x02\x12\x07\n\x03USD\x10\x03\x62\x06proto3') +) + + + +_FEE_CURRENCY = _descriptor.EnumDescriptor( + name='Currency', + full_name='pb.Fee.Currency', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LBC', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BTC', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='USD', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=93, + serialized_end=143, +) +_sym_db.RegisterEnumDescriptor(_FEE_CURRENCY) + + +_FEE = _descriptor.Descriptor( + name='Fee', + full_name='pb.Fee', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + 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='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='pb.Fee.amount', index=2, + number=3, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEE_CURRENCY, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=17, + serialized_end=143, +) + +_FEE.fields_by_name['currency'].enum_type = _FEE_CURRENCY +_FEE_CURRENCY.containing_type = _FEE +DESCRIPTOR.message_types_by_name['Fee'] = _FEE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Fee = _reflection.GeneratedProtocolMessageType('Fee', (_message.Message,), dict( + DESCRIPTOR = _FEE, + __module__ = 'fee_pb2' + # @@protoc_insertion_point(class_scope:pb.Fee) + )) +_sym_db.RegisterMessage(Fee) + + +# @@protoc_insertion_point(module_scope) diff --git a/lbrynet/schema/proto3/file_pb2.py b/lbrynet/schema/proto3/file_pb2.py new file mode 100644 index 000000000..04b0599d4 --- /dev/null +++ b/lbrynet/schema/proto3/file_pb2.py @@ -0,0 +1,76 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: file.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='file.proto', + package='pb', + syntax='proto3', + serialized_options=None, + serialized_pb=_b('\n\nfile.proto\x12\x02pb\"\"\n\x04\x46ile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04size\x18\x02 \x01(\x04\x62\x06proto3') +) + + + + +_FILE = _descriptor.Descriptor( + name='File', + full_name='pb.File', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + 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='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, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=18, + serialized_end=52, +) + +DESCRIPTOR.message_types_by_name['File'] = _FILE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +File = _reflection.GeneratedProtocolMessageType('File', (_message.Message,), dict( + DESCRIPTOR = _FILE, + __module__ = 'file_pb2' + # @@protoc_insertion_point(class_scope:pb.File) + )) +_sym_db.RegisterMessage(File) + + +# @@protoc_insertion_point(module_scope) diff --git a/lbrynet/schema/proto3/stream_pb2.py b/lbrynet/schema/proto3/stream_pb2.py new file mode 100644 index 000000000..16a33669a --- /dev/null +++ b/lbrynet/schema/proto3/stream_pb2.py @@ -0,0 +1,219 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: stream.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from . import fee_pb2 as fee__pb2 +from . import file_pb2 as file__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='stream.proto', + package='pb', + syntax='proto3', + serialized_options=None, + serialized_pb=_b('\n\x0cstream.proto\x12\x02pb\x1a\tfee.proto\x1a\nfile.proto\"\xad\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\x11\n\tthumbnail\x18\x12 \x01(\t\x12\x0f\n\x07preview\x18\x13 \x01(\t\x12\x0c\n\x04nsfw\x18\x14 \x01(\x08\x12\x10\n\x08\x64uration\x18\x15 \x01(\r\x12#\n\x0crelease_time\x18\x16 \x01(\x0b\x32\r.pb.Timestamp\"3\n\tTimestamp\x12\x15\n\repoch_seconds\x18\x01 \x01(\x12\x12\x0f\n\x07\x62\x63_year\x18\x02 \x01(\x11\x62\x06proto3') + , + dependencies=[fee__pb2.DESCRIPTOR,file__pb2.DESCRIPTOR,]) + + + + +_STREAM = _descriptor.Descriptor( + name='Stream', + full_name='pb.Stream', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + 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='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='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='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='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='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='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='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='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='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', full_name='pb.Stream.thumbnail', 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='preview', full_name='pb.Stream.preview', index=11, + number=19, 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='nsfw', full_name='pb.Stream.nsfw', index=12, + number=20, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='duration', full_name='pb.Stream.duration', index=13, + number=21, 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='release_time', full_name='pb.Stream.release_time', 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, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=44, + serialized_end=345, +) + + +_TIMESTAMP = _descriptor.Descriptor( + name='Timestamp', + full_name='pb.Timestamp', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='epoch_seconds', full_name='pb.Timestamp.epoch_seconds', index=0, + number=1, type=18, 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='bc_year', full_name='pb.Timestamp.bc_year', index=1, + number=2, type=17, cpp_type=1, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=347, + serialized_end=398, +) + +_STREAM.fields_by_name['file'].message_type = file__pb2._FILE +_STREAM.fields_by_name['fee'].message_type = fee__pb2._FEE +_STREAM.fields_by_name['release_time'].message_type = _TIMESTAMP +DESCRIPTOR.message_types_by_name['Stream'] = _STREAM +DESCRIPTOR.message_types_by_name['Timestamp'] = _TIMESTAMP +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Stream = _reflection.GeneratedProtocolMessageType('Stream', (_message.Message,), dict( + DESCRIPTOR = _STREAM, + __module__ = 'stream_pb2' + # @@protoc_insertion_point(class_scope:pb.Stream) + )) +_sym_db.RegisterMessage(Stream) + +Timestamp = _reflection.GeneratedProtocolMessageType('Timestamp', (_message.Message,), dict( + DESCRIPTOR = _TIMESTAMP, + __module__ = 'stream_pb2' + # @@protoc_insertion_point(class_scope:pb.Timestamp) + )) +_sym_db.RegisterMessage(Timestamp) + + +# @@protoc_insertion_point(module_scope)