github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/bddtests/common/ledger_pb2.py (about) 1 # Generated by the protocol buffer compiler. DO NOT EDIT! 2 # source: common/ledger.proto 3 4 import sys 5 _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) 6 from google.protobuf import descriptor as _descriptor 7 from google.protobuf import message as _message 8 from google.protobuf import reflection as _reflection 9 from google.protobuf import symbol_database as _symbol_database 10 from google.protobuf import descriptor_pb2 11 # @@protoc_insertion_point(imports) 12 13 _sym_db = _symbol_database.Default() 14 15 16 17 18 DESCRIPTOR = _descriptor.FileDescriptor( 19 name='common/ledger.proto', 20 package='common', 21 syntax='proto3', 22 serialized_pb=_b('\n\x13\x63ommon/ledger.proto\x12\x06\x63ommon\"U\n\x0e\x42lockchainInfo\x12\x0e\n\x06height\x18\x01 \x01(\x04\x12\x18\n\x10\x63urrentBlockHash\x18\x02 \x01(\x0c\x12\x19\n\x11previousBlockHash\x18\x03 \x01(\x0c\x42S\n$org.hyperledger.fabric.protos.commonZ+github.com/hyperledger/fabric/protos/commonb\x06proto3') 23 ) 24 _sym_db.RegisterFileDescriptor(DESCRIPTOR) 25 26 27 28 29 _BLOCKCHAININFO = _descriptor.Descriptor( 30 name='BlockchainInfo', 31 full_name='common.BlockchainInfo', 32 filename=None, 33 file=DESCRIPTOR, 34 containing_type=None, 35 fields=[ 36 _descriptor.FieldDescriptor( 37 name='height', full_name='common.BlockchainInfo.height', index=0, 38 number=1, type=4, cpp_type=4, label=1, 39 has_default_value=False, default_value=0, 40 message_type=None, enum_type=None, containing_type=None, 41 is_extension=False, extension_scope=None, 42 options=None), 43 _descriptor.FieldDescriptor( 44 name='currentBlockHash', full_name='common.BlockchainInfo.currentBlockHash', index=1, 45 number=2, type=12, cpp_type=9, label=1, 46 has_default_value=False, default_value=_b(""), 47 message_type=None, enum_type=None, containing_type=None, 48 is_extension=False, extension_scope=None, 49 options=None), 50 _descriptor.FieldDescriptor( 51 name='previousBlockHash', full_name='common.BlockchainInfo.previousBlockHash', index=2, 52 number=3, type=12, cpp_type=9, label=1, 53 has_default_value=False, default_value=_b(""), 54 message_type=None, enum_type=None, containing_type=None, 55 is_extension=False, extension_scope=None, 56 options=None), 57 ], 58 extensions=[ 59 ], 60 nested_types=[], 61 enum_types=[ 62 ], 63 options=None, 64 is_extendable=False, 65 syntax='proto3', 66 extension_ranges=[], 67 oneofs=[ 68 ], 69 serialized_start=31, 70 serialized_end=116, 71 ) 72 73 DESCRIPTOR.message_types_by_name['BlockchainInfo'] = _BLOCKCHAININFO 74 75 BlockchainInfo = _reflection.GeneratedProtocolMessageType('BlockchainInfo', (_message.Message,), dict( 76 DESCRIPTOR = _BLOCKCHAININFO, 77 __module__ = 'common.ledger_pb2' 78 # @@protoc_insertion_point(class_scope:common.BlockchainInfo) 79 )) 80 _sym_db.RegisterMessage(BlockchainInfo) 81 82 83 DESCRIPTOR.has_options = True 84 DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n$org.hyperledger.fabric.protos.commonZ+github.com/hyperledger/fabric/protos/common')) 85 try: 86 # THESE ELEMENTS WILL BE DEPRECATED. 87 # Please use the generated *_pb2_grpc.py files instead. 88 import grpc 89 from grpc.framework.common import cardinality 90 from grpc.framework.interfaces.face import utilities as face_utilities 91 from grpc.beta import implementations as beta_implementations 92 from grpc.beta import interfaces as beta_interfaces 93 except ImportError: 94 pass 95 # @@protoc_insertion_point(module_scope)