diff --git a/iroha/block_pb2.py b/iroha/block_pb2.py index 5b41f199..d8555f29 100644 --- a/iroha/block_pb2.py +++ b/iroha/block_pb2.py @@ -1,12 +1,11 @@ +# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: block.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +"""Generated protocol buffer code.""" 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 descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -16,188 +15,19 @@ from . import transaction_pb2 as transaction__pb2 -DESCRIPTOR = _descriptor.FileDescriptor( - name='block.proto', - package='iroha.protocol', - syntax='proto3', - serialized_options=_b('Z\030iroha.generated/protocol'), - serialized_pb=_b('\n\x0b\x62lock.proto\x12\x0eiroha.protocol\x1a\x0fprimitive.proto\x1a\x11transaction.proto\"\xa3\x02\n\x08\x42lock_v1\x12\x31\n\x07payload\x18\x01 \x01(\x0b\x32 .iroha.protocol.Block_v1.Payload\x12-\n\nsignatures\x18\x02 \x03(\x0b\x32\x19.iroha.protocol.Signature\x1a\xb4\x01\n\x07Payload\x12\x31\n\x0ctransactions\x18\x01 \x03(\x0b\x32\x1b.iroha.protocol.Transaction\x12\x11\n\ttx_number\x18\x02 \x01(\r\x12\x0e\n\x06height\x18\x03 \x01(\x04\x12\x17\n\x0fprev_block_hash\x18\x04 \x01(\t\x12\x14\n\x0c\x63reated_time\x18\x05 \x01(\x04\x12$\n\x1crejected_transactions_hashes\x18\x06 \x03(\t\"F\n\x05\x42lock\x12,\n\x08\x62lock_v1\x18\x01 \x01(\x0b\x32\x18.iroha.protocol.Block_v1H\x00\x42\x0f\n\rblock_versionB\x1aZ\x18iroha.generated/protocolb\x06proto3') - , - dependencies=[primitive__pb2.DESCRIPTOR,transaction__pb2.DESCRIPTOR,]) - - - - -_BLOCK_V1_PAYLOAD = _descriptor.Descriptor( - name='Payload', - full_name='iroha.protocol.Block_v1.Payload', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='transactions', full_name='iroha.protocol.Block_v1.Payload.transactions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tx_number', full_name='iroha.protocol.Block_v1.Payload.tx_number', index=1, - number=2, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='height', full_name='iroha.protocol.Block_v1.Payload.height', 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, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='prev_block_hash', full_name='iroha.protocol.Block_v1.Payload.prev_block_hash', 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='created_time', full_name='iroha.protocol.Block_v1.Payload.created_time', index=4, - number=5, 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), - _descriptor.FieldDescriptor( - name='rejected_transactions_hashes', full_name='iroha.protocol.Block_v1.Payload.rejected_transactions_hashes', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=179, - serialized_end=359, -) - -_BLOCK_V1 = _descriptor.Descriptor( - name='Block_v1', - full_name='iroha.protocol.Block_v1', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='payload', full_name='iroha.protocol.Block_v1.payload', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='signatures', full_name='iroha.protocol.Block_v1.signatures', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_BLOCK_V1_PAYLOAD, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=68, - serialized_end=359, -) - - -_BLOCK = _descriptor.Descriptor( - name='Block', - full_name='iroha.protocol.Block', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='block_v1', full_name='iroha.protocol.Block.block_v1', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='block_version', full_name='iroha.protocol.Block.block_version', - index=0, containing_type=None, fields=[]), - ], - serialized_start=361, - serialized_end=431, -) - -_BLOCK_V1_PAYLOAD.fields_by_name['transactions'].message_type = transaction__pb2._TRANSACTION -_BLOCK_V1_PAYLOAD.containing_type = _BLOCK_V1 -_BLOCK_V1.fields_by_name['payload'].message_type = _BLOCK_V1_PAYLOAD -_BLOCK_V1.fields_by_name['signatures'].message_type = primitive__pb2._SIGNATURE -_BLOCK.fields_by_name['block_v1'].message_type = _BLOCK_V1 -_BLOCK.oneofs_by_name['block_version'].fields.append( - _BLOCK.fields_by_name['block_v1']) -_BLOCK.fields_by_name['block_v1'].containing_oneof = _BLOCK.oneofs_by_name['block_version'] -DESCRIPTOR.message_types_by_name['Block_v1'] = _BLOCK_V1 -DESCRIPTOR.message_types_by_name['Block'] = _BLOCK -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Block_v1 = _reflection.GeneratedProtocolMessageType('Block_v1', (_message.Message,), dict( - - Payload = _reflection.GeneratedProtocolMessageType('Payload', (_message.Message,), dict( - DESCRIPTOR = _BLOCK_V1_PAYLOAD, - __module__ = 'block_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Block_v1.Payload) - )) - , - DESCRIPTOR = _BLOCK_V1, - __module__ = 'block_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Block_v1) - )) -_sym_db.RegisterMessage(Block_v1) -_sym_db.RegisterMessage(Block_v1.Payload) - -Block = _reflection.GeneratedProtocolMessageType('Block', (_message.Message,), dict( - DESCRIPTOR = _BLOCK, - __module__ = 'block_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Block) - )) -_sym_db.RegisterMessage(Block) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0b\x62lock.proto\x12\x0eiroha.protocol\x1a\x0fprimitive.proto\x1a\x11transaction.proto\"\xa3\x02\n\x08\x42lock_v1\x12\x31\n\x07payload\x18\x01 \x01(\x0b\x32 .iroha.protocol.Block_v1.Payload\x12-\n\nsignatures\x18\x02 \x03(\x0b\x32\x19.iroha.protocol.Signature\x1a\xb4\x01\n\x07Payload\x12\x31\n\x0ctransactions\x18\x01 \x03(\x0b\x32\x1b.iroha.protocol.Transaction\x12\x11\n\ttx_number\x18\x02 \x01(\r\x12\x0e\n\x06height\x18\x03 \x01(\x04\x12\x17\n\x0fprev_block_hash\x18\x04 \x01(\t\x12\x14\n\x0c\x63reated_time\x18\x05 \x01(\x04\x12$\n\x1crejected_transactions_hashes\x18\x06 \x03(\t\"F\n\x05\x42lock\x12,\n\x08\x62lock_v1\x18\x01 \x01(\x0b\x32\x18.iroha.protocol.Block_v1H\x00\x42\x0f\n\rblock_versionB\x1aZ\x18iroha.generated/protocolb\x06proto3') +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'block_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: -DESCRIPTOR._options = None + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\030iroha.generated/protocol' + _globals['_BLOCK_V1']._serialized_start=68 + _globals['_BLOCK_V1']._serialized_end=359 + _globals['_BLOCK_V1_PAYLOAD']._serialized_start=179 + _globals['_BLOCK_V1_PAYLOAD']._serialized_end=359 + _globals['_BLOCK']._serialized_start=361 + _globals['_BLOCK']._serialized_end=431 # @@protoc_insertion_point(module_scope) diff --git a/iroha/commands_pb2.py b/iroha/commands_pb2.py index 01aeee55..1e000968 100644 --- a/iroha/commands_pb2.py +++ b/iroha/commands_pb2.py @@ -1,12 +1,11 @@ +# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: commands.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +"""Generated protocol buffer code.""" 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 descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,1294 +14,57 @@ from . import primitive_pb2 as primitive__pb2 -DESCRIPTOR = _descriptor.FileDescriptor( - name='commands.proto', - package='iroha.protocol', - syntax='proto3', - serialized_options=_b('Z\030iroha.generated/protocol'), - serialized_pb=_b('\n\x0e\x63ommands.proto\x12\x0eiroha.protocol\x1a\x0fprimitive.proto\"4\n\x10\x41\x64\x64\x41ssetQuantity\x12\x10\n\x08\x61sset_id\x18\x01 \x01(\t\x12\x0e\n\x06\x61mount\x18\x02 \x01(\t\"-\n\x07\x41\x64\x64Peer\x12\"\n\x04peer\x18\x01 \x01(\x0b\x32\x14.iroha.protocol.Peer\" \n\nRemovePeer\x12\x12\n\npublic_key\x18\x01 \x01(\t\"6\n\x0c\x41\x64\x64Signatory\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x12\n\npublic_key\x18\x02 \x01(\t\"G\n\x0b\x43reateAsset\x12\x12\n\nasset_name\x18\x01 \x01(\t\x12\x11\n\tdomain_id\x18\x02 \x01(\t\x12\x11\n\tprecision\x18\x03 \x01(\r\"L\n\rCreateAccount\x12\x14\n\x0c\x61\x63\x63ount_name\x18\x01 \x01(\t\x12\x11\n\tdomain_id\x18\x02 \x01(\t\x12\x12\n\npublic_key\x18\x03 \x01(\t\"B\n\x10SetAccountDetail\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\t\"7\n\x0c\x43reateDomain\x12\x11\n\tdomain_id\x18\x01 \x01(\t\x12\x14\n\x0c\x64\x65\x66\x61ult_role\x18\x02 \x01(\t\"9\n\x0fRemoveSignatory\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x12\n\npublic_key\x18\x02 \x01(\t\"6\n\x10SetAccountQuorum\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x0e\n\x06quorum\x18\x02 \x01(\r\"w\n\rTransferAsset\x12\x16\n\x0esrc_account_id\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65st_account_id\x18\x02 \x01(\t\x12\x10\n\x08\x61sset_id\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x0e\n\x06\x61mount\x18\x05 \x01(\t\"3\n\nAppendRole\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x11\n\trole_name\x18\x02 \x01(\t\"3\n\nDetachRole\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x11\n\trole_name\x18\x02 \x01(\t\"T\n\nCreateRole\x12\x11\n\trole_name\x18\x01 \x01(\t\x12\x33\n\x0bpermissions\x18\x02 \x03(\x0e\x32\x1e.iroha.protocol.RolePermission\"^\n\x0fGrantPermission\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x37\n\npermission\x18\x02 \x01(\x0e\x32#.iroha.protocol.GrantablePermission\"_\n\x10RevokePermission\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x37\n\npermission\x18\x02 \x01(\x0e\x32#.iroha.protocol.GrantablePermission\"9\n\x15SubtractAssetQuantity\x12\x10\n\x08\x61sset_id\x18\x01 \x01(\t\x12\x0e\n\x06\x61mount\x18\x02 \x01(\t\"\x87\x01\n\x1a\x43ompareAndSetAccountDetail\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\t\x12\x13\n\told_value\x18\x04 \x01(\tH\x00\x12\x13\n\x0b\x63heck_empty\x18\x05 \x01(\x08\x42\x0f\n\ropt_old_value\"-\n\x0fSetSettingValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"\x9d\x01\n\nCallEngine\x12\x33\n\x04type\x18\x01 \x01(\x0e\x32%.iroha.protocol.CallEngine.EngineType\x12\x0e\n\x06\x63\x61ller\x18\x02 \x01(\t\x12\x10\n\x06\x63\x61llee\x18\x03 \x01(\tH\x00\x12\r\n\x05input\x18\x04 \x01(\t\"\x1b\n\nEngineType\x12\r\n\tkSolidity\x10\x00\x42\x0c\n\nopt_callee\"\xac\t\n\x07\x43ommand\x12>\n\x12\x61\x64\x64_asset_quantity\x18\x01 \x01(\x0b\x32 .iroha.protocol.AddAssetQuantityH\x00\x12+\n\x08\x61\x64\x64_peer\x18\x02 \x01(\x0b\x32\x17.iroha.protocol.AddPeerH\x00\x12\x35\n\radd_signatory\x18\x03 \x01(\x0b\x32\x1c.iroha.protocol.AddSignatoryH\x00\x12\x31\n\x0b\x61ppend_role\x18\x04 \x01(\x0b\x32\x1a.iroha.protocol.AppendRoleH\x00\x12\x37\n\x0e\x63reate_account\x18\x05 \x01(\x0b\x32\x1d.iroha.protocol.CreateAccountH\x00\x12\x33\n\x0c\x63reate_asset\x18\x06 \x01(\x0b\x32\x1b.iroha.protocol.CreateAssetH\x00\x12\x35\n\rcreate_domain\x18\x07 \x01(\x0b\x32\x1c.iroha.protocol.CreateDomainH\x00\x12\x31\n\x0b\x63reate_role\x18\x08 \x01(\x0b\x32\x1a.iroha.protocol.CreateRoleH\x00\x12\x31\n\x0b\x64\x65tach_role\x18\t \x01(\x0b\x32\x1a.iroha.protocol.DetachRoleH\x00\x12;\n\x10grant_permission\x18\n \x01(\x0b\x32\x1f.iroha.protocol.GrantPermissionH\x00\x12;\n\x10remove_signatory\x18\x0b \x01(\x0b\x32\x1f.iroha.protocol.RemoveSignatoryH\x00\x12=\n\x11revoke_permission\x18\x0c \x01(\x0b\x32 .iroha.protocol.RevokePermissionH\x00\x12>\n\x12set_account_detail\x18\r \x01(\x0b\x32 .iroha.protocol.SetAccountDetailH\x00\x12>\n\x12set_account_quorum\x18\x0e \x01(\x0b\x32 .iroha.protocol.SetAccountQuorumH\x00\x12H\n\x17subtract_asset_quantity\x18\x0f \x01(\x0b\x32%.iroha.protocol.SubtractAssetQuantityH\x00\x12\x37\n\x0etransfer_asset\x18\x10 \x01(\x0b\x32\x1d.iroha.protocol.TransferAssetH\x00\x12\x31\n\x0bremove_peer\x18\x11 \x01(\x0b\x32\x1a.iroha.protocol.RemovePeerH\x00\x12T\n\x1e\x63ompare_and_set_account_detail\x18\x12 \x01(\x0b\x32*.iroha.protocol.CompareAndSetAccountDetailH\x00\x12<\n\x11set_setting_value\x18\x13 \x01(\x0b\x32\x1f.iroha.protocol.SetSettingValueH\x00\x12\x31\n\x0b\x63\x61ll_engine\x18\x14 \x01(\x0b\x32\x1a.iroha.protocol.CallEngineH\x00\x42\t\n\x07\x63ommandB\x1aZ\x18iroha.generated/protocolb\x06proto3') - , - dependencies=[primitive__pb2.DESCRIPTOR,]) - - - -_CALLENGINE_ENGINETYPE = _descriptor.EnumDescriptor( - name='EngineType', - full_name='iroha.protocol.CallEngine.EngineType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='kSolidity', index=0, number=0, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=1500, - serialized_end=1527, -) -_sym_db.RegisterEnumDescriptor(_CALLENGINE_ENGINETYPE) - - -_ADDASSETQUANTITY = _descriptor.Descriptor( - name='AddAssetQuantity', - full_name='iroha.protocol.AddAssetQuantity', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='asset_id', full_name='iroha.protocol.AddAssetQuantity.asset_id', 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='amount', full_name='iroha.protocol.AddAssetQuantity.amount', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=51, - serialized_end=103, -) - - -_ADDPEER = _descriptor.Descriptor( - name='AddPeer', - full_name='iroha.protocol.AddPeer', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='peer', full_name='iroha.protocol.AddPeer.peer', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=105, - serialized_end=150, -) - - -_REMOVEPEER = _descriptor.Descriptor( - name='RemovePeer', - full_name='iroha.protocol.RemovePeer', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='public_key', full_name='iroha.protocol.RemovePeer.public_key', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=152, - serialized_end=184, -) - - -_ADDSIGNATORY = _descriptor.Descriptor( - name='AddSignatory', - full_name='iroha.protocol.AddSignatory', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.AddSignatory.account_id', 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='public_key', full_name='iroha.protocol.AddSignatory.public_key', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=186, - serialized_end=240, -) - - -_CREATEASSET = _descriptor.Descriptor( - name='CreateAsset', - full_name='iroha.protocol.CreateAsset', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='asset_name', full_name='iroha.protocol.CreateAsset.asset_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='domain_id', full_name='iroha.protocol.CreateAsset.domain_id', 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='precision', full_name='iroha.protocol.CreateAsset.precision', index=2, - number=3, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=242, - serialized_end=313, -) - - -_CREATEACCOUNT = _descriptor.Descriptor( - name='CreateAccount', - full_name='iroha.protocol.CreateAccount', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_name', full_name='iroha.protocol.CreateAccount.account_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='domain_id', full_name='iroha.protocol.CreateAccount.domain_id', 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='public_key', full_name='iroha.protocol.CreateAccount.public_key', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=315, - serialized_end=391, -) - - -_SETACCOUNTDETAIL = _descriptor.Descriptor( - name='SetAccountDetail', - full_name='iroha.protocol.SetAccountDetail', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.SetAccountDetail.account_id', 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='key', full_name='iroha.protocol.SetAccountDetail.key', 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='value', full_name='iroha.protocol.SetAccountDetail.value', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=393, - serialized_end=459, -) - - -_CREATEDOMAIN = _descriptor.Descriptor( - name='CreateDomain', - full_name='iroha.protocol.CreateDomain', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='domain_id', full_name='iroha.protocol.CreateDomain.domain_id', 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='default_role', full_name='iroha.protocol.CreateDomain.default_role', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=461, - serialized_end=516, -) - - -_REMOVESIGNATORY = _descriptor.Descriptor( - name='RemoveSignatory', - full_name='iroha.protocol.RemoveSignatory', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.RemoveSignatory.account_id', 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='public_key', full_name='iroha.protocol.RemoveSignatory.public_key', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=518, - serialized_end=575, -) - - -_SETACCOUNTQUORUM = _descriptor.Descriptor( - name='SetAccountQuorum', - full_name='iroha.protocol.SetAccountQuorum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.SetAccountQuorum.account_id', 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='quorum', full_name='iroha.protocol.SetAccountQuorum.quorum', index=1, - number=2, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=577, - serialized_end=631, -) - - -_TRANSFERASSET = _descriptor.Descriptor( - name='TransferAsset', - full_name='iroha.protocol.TransferAsset', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='src_account_id', full_name='iroha.protocol.TransferAsset.src_account_id', 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='dest_account_id', full_name='iroha.protocol.TransferAsset.dest_account_id', 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='asset_id', full_name='iroha.protocol.TransferAsset.asset_id', 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='description', full_name='iroha.protocol.TransferAsset.description', 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='amount', full_name='iroha.protocol.TransferAsset.amount', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=633, - serialized_end=752, -) - - -_APPENDROLE = _descriptor.Descriptor( - name='AppendRole', - full_name='iroha.protocol.AppendRole', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.AppendRole.account_id', 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='role_name', full_name='iroha.protocol.AppendRole.role_name', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=754, - serialized_end=805, -) - - -_DETACHROLE = _descriptor.Descriptor( - name='DetachRole', - full_name='iroha.protocol.DetachRole', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.DetachRole.account_id', 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='role_name', full_name='iroha.protocol.DetachRole.role_name', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=807, - serialized_end=858, -) - - -_CREATEROLE = _descriptor.Descriptor( - name='CreateRole', - full_name='iroha.protocol.CreateRole', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='role_name', full_name='iroha.protocol.CreateRole.role_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='permissions', full_name='iroha.protocol.CreateRole.permissions', index=1, - number=2, type=14, cpp_type=8, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=860, - serialized_end=944, -) - - -_GRANTPERMISSION = _descriptor.Descriptor( - name='GrantPermission', - full_name='iroha.protocol.GrantPermission', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.GrantPermission.account_id', 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='permission', full_name='iroha.protocol.GrantPermission.permission', index=1, - number=2, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=946, - serialized_end=1040, -) - - -_REVOKEPERMISSION = _descriptor.Descriptor( - name='RevokePermission', - full_name='iroha.protocol.RevokePermission', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.RevokePermission.account_id', 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='permission', full_name='iroha.protocol.RevokePermission.permission', index=1, - number=2, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1042, - serialized_end=1137, -) - - -_SUBTRACTASSETQUANTITY = _descriptor.Descriptor( - name='SubtractAssetQuantity', - full_name='iroha.protocol.SubtractAssetQuantity', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='asset_id', full_name='iroha.protocol.SubtractAssetQuantity.asset_id', 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='amount', full_name='iroha.protocol.SubtractAssetQuantity.amount', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1139, - serialized_end=1196, -) - - -_COMPAREANDSETACCOUNTDETAIL = _descriptor.Descriptor( - name='CompareAndSetAccountDetail', - full_name='iroha.protocol.CompareAndSetAccountDetail', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.CompareAndSetAccountDetail.account_id', 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='key', full_name='iroha.protocol.CompareAndSetAccountDetail.key', 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='value', full_name='iroha.protocol.CompareAndSetAccountDetail.value', 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='old_value', full_name='iroha.protocol.CompareAndSetAccountDetail.old_value', 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='check_empty', full_name='iroha.protocol.CompareAndSetAccountDetail.check_empty', index=4, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='opt_old_value', full_name='iroha.protocol.CompareAndSetAccountDetail.opt_old_value', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1199, - serialized_end=1334, -) - - -_SETSETTINGVALUE = _descriptor.Descriptor( - name='SetSettingValue', - full_name='iroha.protocol.SetSettingValue', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='iroha.protocol.SetSettingValue.key', 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='value', full_name='iroha.protocol.SetSettingValue.value', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1336, - serialized_end=1381, -) - - -_CALLENGINE = _descriptor.Descriptor( - name='CallEngine', - full_name='iroha.protocol.CallEngine', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='iroha.protocol.CallEngine.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='caller', full_name='iroha.protocol.CallEngine.caller', 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='callee', full_name='iroha.protocol.CallEngine.callee', 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='input', full_name='iroha.protocol.CallEngine.input', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CALLENGINE_ENGINETYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='opt_callee', full_name='iroha.protocol.CallEngine.opt_callee', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1384, - serialized_end=1541, -) - - -_COMMAND = _descriptor.Descriptor( - name='Command', - full_name='iroha.protocol.Command', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='add_asset_quantity', full_name='iroha.protocol.Command.add_asset_quantity', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='add_peer', full_name='iroha.protocol.Command.add_peer', 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='add_signatory', full_name='iroha.protocol.Command.add_signatory', 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='append_role', full_name='iroha.protocol.Command.append_role', 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='create_account', full_name='iroha.protocol.Command.create_account', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_asset', full_name='iroha.protocol.Command.create_asset', index=5, - number=6, 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='create_domain', full_name='iroha.protocol.Command.create_domain', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create_role', full_name='iroha.protocol.Command.create_role', 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='detach_role', full_name='iroha.protocol.Command.detach_role', index=8, - number=9, 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='grant_permission', full_name='iroha.protocol.Command.grant_permission', index=9, - number=10, 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='remove_signatory', full_name='iroha.protocol.Command.remove_signatory', index=10, - number=11, 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='revoke_permission', full_name='iroha.protocol.Command.revoke_permission', index=11, - number=12, 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='set_account_detail', full_name='iroha.protocol.Command.set_account_detail', index=12, - number=13, 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='set_account_quorum', full_name='iroha.protocol.Command.set_account_quorum', index=13, - number=14, 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='subtract_asset_quantity', full_name='iroha.protocol.Command.subtract_asset_quantity', index=14, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transfer_asset', full_name='iroha.protocol.Command.transfer_asset', index=15, - 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='remove_peer', full_name='iroha.protocol.Command.remove_peer', index=16, - number=17, 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='compare_and_set_account_detail', full_name='iroha.protocol.Command.compare_and_set_account_detail', index=17, - number=18, 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='set_setting_value', full_name='iroha.protocol.Command.set_setting_value', index=18, - number=19, 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='call_engine', full_name='iroha.protocol.Command.call_engine', index=19, - number=20, 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=[ - _descriptor.OneofDescriptor( - name='command', full_name='iroha.protocol.Command.command', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1544, - serialized_end=2740, -) - -_ADDPEER.fields_by_name['peer'].message_type = primitive__pb2._PEER -_CREATEROLE.fields_by_name['permissions'].enum_type = primitive__pb2._ROLEPERMISSION -_GRANTPERMISSION.fields_by_name['permission'].enum_type = primitive__pb2._GRANTABLEPERMISSION -_REVOKEPERMISSION.fields_by_name['permission'].enum_type = primitive__pb2._GRANTABLEPERMISSION -_COMPAREANDSETACCOUNTDETAIL.oneofs_by_name['opt_old_value'].fields.append( - _COMPAREANDSETACCOUNTDETAIL.fields_by_name['old_value']) -_COMPAREANDSETACCOUNTDETAIL.fields_by_name['old_value'].containing_oneof = _COMPAREANDSETACCOUNTDETAIL.oneofs_by_name['opt_old_value'] -_CALLENGINE.fields_by_name['type'].enum_type = _CALLENGINE_ENGINETYPE -_CALLENGINE_ENGINETYPE.containing_type = _CALLENGINE -_CALLENGINE.oneofs_by_name['opt_callee'].fields.append( - _CALLENGINE.fields_by_name['callee']) -_CALLENGINE.fields_by_name['callee'].containing_oneof = _CALLENGINE.oneofs_by_name['opt_callee'] -_COMMAND.fields_by_name['add_asset_quantity'].message_type = _ADDASSETQUANTITY -_COMMAND.fields_by_name['add_peer'].message_type = _ADDPEER -_COMMAND.fields_by_name['add_signatory'].message_type = _ADDSIGNATORY -_COMMAND.fields_by_name['append_role'].message_type = _APPENDROLE -_COMMAND.fields_by_name['create_account'].message_type = _CREATEACCOUNT -_COMMAND.fields_by_name['create_asset'].message_type = _CREATEASSET -_COMMAND.fields_by_name['create_domain'].message_type = _CREATEDOMAIN -_COMMAND.fields_by_name['create_role'].message_type = _CREATEROLE -_COMMAND.fields_by_name['detach_role'].message_type = _DETACHROLE -_COMMAND.fields_by_name['grant_permission'].message_type = _GRANTPERMISSION -_COMMAND.fields_by_name['remove_signatory'].message_type = _REMOVESIGNATORY -_COMMAND.fields_by_name['revoke_permission'].message_type = _REVOKEPERMISSION -_COMMAND.fields_by_name['set_account_detail'].message_type = _SETACCOUNTDETAIL -_COMMAND.fields_by_name['set_account_quorum'].message_type = _SETACCOUNTQUORUM -_COMMAND.fields_by_name['subtract_asset_quantity'].message_type = _SUBTRACTASSETQUANTITY -_COMMAND.fields_by_name['transfer_asset'].message_type = _TRANSFERASSET -_COMMAND.fields_by_name['remove_peer'].message_type = _REMOVEPEER -_COMMAND.fields_by_name['compare_and_set_account_detail'].message_type = _COMPAREANDSETACCOUNTDETAIL -_COMMAND.fields_by_name['set_setting_value'].message_type = _SETSETTINGVALUE -_COMMAND.fields_by_name['call_engine'].message_type = _CALLENGINE -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['add_asset_quantity']) -_COMMAND.fields_by_name['add_asset_quantity'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['add_peer']) -_COMMAND.fields_by_name['add_peer'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['add_signatory']) -_COMMAND.fields_by_name['add_signatory'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['append_role']) -_COMMAND.fields_by_name['append_role'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['create_account']) -_COMMAND.fields_by_name['create_account'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['create_asset']) -_COMMAND.fields_by_name['create_asset'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['create_domain']) -_COMMAND.fields_by_name['create_domain'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['create_role']) -_COMMAND.fields_by_name['create_role'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['detach_role']) -_COMMAND.fields_by_name['detach_role'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['grant_permission']) -_COMMAND.fields_by_name['grant_permission'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['remove_signatory']) -_COMMAND.fields_by_name['remove_signatory'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['revoke_permission']) -_COMMAND.fields_by_name['revoke_permission'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['set_account_detail']) -_COMMAND.fields_by_name['set_account_detail'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['set_account_quorum']) -_COMMAND.fields_by_name['set_account_quorum'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['subtract_asset_quantity']) -_COMMAND.fields_by_name['subtract_asset_quantity'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['transfer_asset']) -_COMMAND.fields_by_name['transfer_asset'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['remove_peer']) -_COMMAND.fields_by_name['remove_peer'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['compare_and_set_account_detail']) -_COMMAND.fields_by_name['compare_and_set_account_detail'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['set_setting_value']) -_COMMAND.fields_by_name['set_setting_value'].containing_oneof = _COMMAND.oneofs_by_name['command'] -_COMMAND.oneofs_by_name['command'].fields.append( - _COMMAND.fields_by_name['call_engine']) -_COMMAND.fields_by_name['call_engine'].containing_oneof = _COMMAND.oneofs_by_name['command'] -DESCRIPTOR.message_types_by_name['AddAssetQuantity'] = _ADDASSETQUANTITY -DESCRIPTOR.message_types_by_name['AddPeer'] = _ADDPEER -DESCRIPTOR.message_types_by_name['RemovePeer'] = _REMOVEPEER -DESCRIPTOR.message_types_by_name['AddSignatory'] = _ADDSIGNATORY -DESCRIPTOR.message_types_by_name['CreateAsset'] = _CREATEASSET -DESCRIPTOR.message_types_by_name['CreateAccount'] = _CREATEACCOUNT -DESCRIPTOR.message_types_by_name['SetAccountDetail'] = _SETACCOUNTDETAIL -DESCRIPTOR.message_types_by_name['CreateDomain'] = _CREATEDOMAIN -DESCRIPTOR.message_types_by_name['RemoveSignatory'] = _REMOVESIGNATORY -DESCRIPTOR.message_types_by_name['SetAccountQuorum'] = _SETACCOUNTQUORUM -DESCRIPTOR.message_types_by_name['TransferAsset'] = _TRANSFERASSET -DESCRIPTOR.message_types_by_name['AppendRole'] = _APPENDROLE -DESCRIPTOR.message_types_by_name['DetachRole'] = _DETACHROLE -DESCRIPTOR.message_types_by_name['CreateRole'] = _CREATEROLE -DESCRIPTOR.message_types_by_name['GrantPermission'] = _GRANTPERMISSION -DESCRIPTOR.message_types_by_name['RevokePermission'] = _REVOKEPERMISSION -DESCRIPTOR.message_types_by_name['SubtractAssetQuantity'] = _SUBTRACTASSETQUANTITY -DESCRIPTOR.message_types_by_name['CompareAndSetAccountDetail'] = _COMPAREANDSETACCOUNTDETAIL -DESCRIPTOR.message_types_by_name['SetSettingValue'] = _SETSETTINGVALUE -DESCRIPTOR.message_types_by_name['CallEngine'] = _CALLENGINE -DESCRIPTOR.message_types_by_name['Command'] = _COMMAND -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AddAssetQuantity = _reflection.GeneratedProtocolMessageType('AddAssetQuantity', (_message.Message,), dict( - DESCRIPTOR = _ADDASSETQUANTITY, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.AddAssetQuantity) - )) -_sym_db.RegisterMessage(AddAssetQuantity) - -AddPeer = _reflection.GeneratedProtocolMessageType('AddPeer', (_message.Message,), dict( - DESCRIPTOR = _ADDPEER, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.AddPeer) - )) -_sym_db.RegisterMessage(AddPeer) - -RemovePeer = _reflection.GeneratedProtocolMessageType('RemovePeer', (_message.Message,), dict( - DESCRIPTOR = _REMOVEPEER, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.RemovePeer) - )) -_sym_db.RegisterMessage(RemovePeer) - -AddSignatory = _reflection.GeneratedProtocolMessageType('AddSignatory', (_message.Message,), dict( - DESCRIPTOR = _ADDSIGNATORY, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.AddSignatory) - )) -_sym_db.RegisterMessage(AddSignatory) - -CreateAsset = _reflection.GeneratedProtocolMessageType('CreateAsset', (_message.Message,), dict( - DESCRIPTOR = _CREATEASSET, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.CreateAsset) - )) -_sym_db.RegisterMessage(CreateAsset) - -CreateAccount = _reflection.GeneratedProtocolMessageType('CreateAccount', (_message.Message,), dict( - DESCRIPTOR = _CREATEACCOUNT, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.CreateAccount) - )) -_sym_db.RegisterMessage(CreateAccount) - -SetAccountDetail = _reflection.GeneratedProtocolMessageType('SetAccountDetail', (_message.Message,), dict( - DESCRIPTOR = _SETACCOUNTDETAIL, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.SetAccountDetail) - )) -_sym_db.RegisterMessage(SetAccountDetail) - -CreateDomain = _reflection.GeneratedProtocolMessageType('CreateDomain', (_message.Message,), dict( - DESCRIPTOR = _CREATEDOMAIN, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.CreateDomain) - )) -_sym_db.RegisterMessage(CreateDomain) - -RemoveSignatory = _reflection.GeneratedProtocolMessageType('RemoveSignatory', (_message.Message,), dict( - DESCRIPTOR = _REMOVESIGNATORY, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.RemoveSignatory) - )) -_sym_db.RegisterMessage(RemoveSignatory) - -SetAccountQuorum = _reflection.GeneratedProtocolMessageType('SetAccountQuorum', (_message.Message,), dict( - DESCRIPTOR = _SETACCOUNTQUORUM, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.SetAccountQuorum) - )) -_sym_db.RegisterMessage(SetAccountQuorum) - -TransferAsset = _reflection.GeneratedProtocolMessageType('TransferAsset', (_message.Message,), dict( - DESCRIPTOR = _TRANSFERASSET, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.TransferAsset) - )) -_sym_db.RegisterMessage(TransferAsset) - -AppendRole = _reflection.GeneratedProtocolMessageType('AppendRole', (_message.Message,), dict( - DESCRIPTOR = _APPENDROLE, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.AppendRole) - )) -_sym_db.RegisterMessage(AppendRole) - -DetachRole = _reflection.GeneratedProtocolMessageType('DetachRole', (_message.Message,), dict( - DESCRIPTOR = _DETACHROLE, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.DetachRole) - )) -_sym_db.RegisterMessage(DetachRole) - -CreateRole = _reflection.GeneratedProtocolMessageType('CreateRole', (_message.Message,), dict( - DESCRIPTOR = _CREATEROLE, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.CreateRole) - )) -_sym_db.RegisterMessage(CreateRole) - -GrantPermission = _reflection.GeneratedProtocolMessageType('GrantPermission', (_message.Message,), dict( - DESCRIPTOR = _GRANTPERMISSION, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.GrantPermission) - )) -_sym_db.RegisterMessage(GrantPermission) - -RevokePermission = _reflection.GeneratedProtocolMessageType('RevokePermission', (_message.Message,), dict( - DESCRIPTOR = _REVOKEPERMISSION, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.RevokePermission) - )) -_sym_db.RegisterMessage(RevokePermission) - -SubtractAssetQuantity = _reflection.GeneratedProtocolMessageType('SubtractAssetQuantity', (_message.Message,), dict( - DESCRIPTOR = _SUBTRACTASSETQUANTITY, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.SubtractAssetQuantity) - )) -_sym_db.RegisterMessage(SubtractAssetQuantity) - -CompareAndSetAccountDetail = _reflection.GeneratedProtocolMessageType('CompareAndSetAccountDetail', (_message.Message,), dict( - DESCRIPTOR = _COMPAREANDSETACCOUNTDETAIL, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.CompareAndSetAccountDetail) - )) -_sym_db.RegisterMessage(CompareAndSetAccountDetail) - -SetSettingValue = _reflection.GeneratedProtocolMessageType('SetSettingValue', (_message.Message,), dict( - DESCRIPTOR = _SETSETTINGVALUE, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.SetSettingValue) - )) -_sym_db.RegisterMessage(SetSettingValue) - -CallEngine = _reflection.GeneratedProtocolMessageType('CallEngine', (_message.Message,), dict( - DESCRIPTOR = _CALLENGINE, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.CallEngine) - )) -_sym_db.RegisterMessage(CallEngine) - -Command = _reflection.GeneratedProtocolMessageType('Command', (_message.Message,), dict( - DESCRIPTOR = _COMMAND, - __module__ = 'commands_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Command) - )) -_sym_db.RegisterMessage(Command) - - -DESCRIPTOR._options = None +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0e\x63ommands.proto\x12\x0eiroha.protocol\x1a\x0fprimitive.proto\"^\n\x10\x41\x64\x64\x41ssetQuantity\x12\x10\n\x08\x61sset_id\x18\x01 \x01(\t\x12\x0e\n\x06\x61mount\x18\x02 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_description\"-\n\x07\x41\x64\x64Peer\x12\"\n\x04peer\x18\x01 \x01(\x0b\x32\x14.iroha.protocol.Peer\" \n\nRemovePeer\x12\x12\n\npublic_key\x18\x01 \x01(\t\"6\n\x0c\x41\x64\x64Signatory\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x12\n\npublic_key\x18\x02 \x01(\t\"G\n\x0b\x43reateAsset\x12\x12\n\nasset_name\x18\x01 \x01(\t\x12\x11\n\tdomain_id\x18\x02 \x01(\t\x12\x11\n\tprecision\x18\x03 \x01(\r\"L\n\rCreateAccount\x12\x14\n\x0c\x61\x63\x63ount_name\x18\x01 \x01(\t\x12\x11\n\tdomain_id\x18\x02 \x01(\t\x12\x12\n\npublic_key\x18\x03 \x01(\t\"B\n\x10SetAccountDetail\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\t\"7\n\x0c\x43reateDomain\x12\x11\n\tdomain_id\x18\x01 \x01(\t\x12\x14\n\x0c\x64\x65\x66\x61ult_role\x18\x02 \x01(\t\"9\n\x0fRemoveSignatory\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x12\n\npublic_key\x18\x02 \x01(\t\"6\n\x10SetAccountQuorum\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x0e\n\x06quorum\x18\x02 \x01(\r\"w\n\rTransferAsset\x12\x16\n\x0esrc_account_id\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65st_account_id\x18\x02 \x01(\t\x12\x10\n\x08\x61sset_id\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x0e\n\x06\x61mount\x18\x05 \x01(\t\"3\n\nAppendRole\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x11\n\trole_name\x18\x02 \x01(\t\"3\n\nDetachRole\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x11\n\trole_name\x18\x02 \x01(\t\"T\n\nCreateRole\x12\x11\n\trole_name\x18\x01 \x01(\t\x12\x33\n\x0bpermissions\x18\x02 \x03(\x0e\x32\x1e.iroha.protocol.RolePermission\"^\n\x0fGrantPermission\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x37\n\npermission\x18\x02 \x01(\x0e\x32#.iroha.protocol.GrantablePermission\"_\n\x10RevokePermission\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x37\n\npermission\x18\x02 \x01(\x0e\x32#.iroha.protocol.GrantablePermission\"c\n\x15SubtractAssetQuantity\x12\x10\n\x08\x61sset_id\x18\x01 \x01(\t\x12\x0e\n\x06\x61mount\x18\x02 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\x87\x01\n\x1a\x43ompareAndSetAccountDetail\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\t\x12\x13\n\told_value\x18\x04 \x01(\tH\x00\x12\x13\n\x0b\x63heck_empty\x18\x05 \x01(\x08\x42\x0f\n\ropt_old_value\"-\n\x0fSetSettingValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"\x9d\x01\n\nCallEngine\x12\x33\n\x04type\x18\x01 \x01(\x0e\x32%.iroha.protocol.CallEngine.EngineType\x12\x0e\n\x06\x63\x61ller\x18\x02 \x01(\t\x12\x10\n\x06\x63\x61llee\x18\x03 \x01(\tH\x00\x12\r\n\x05input\x18\x04 \x01(\t\"\x1b\n\nEngineType\x12\r\n\tkSolidity\x10\x00\x42\x0c\n\nopt_callee\"\xac\t\n\x07\x43ommand\x12>\n\x12\x61\x64\x64_asset_quantity\x18\x01 \x01(\x0b\x32 .iroha.protocol.AddAssetQuantityH\x00\x12+\n\x08\x61\x64\x64_peer\x18\x02 \x01(\x0b\x32\x17.iroha.protocol.AddPeerH\x00\x12\x35\n\radd_signatory\x18\x03 \x01(\x0b\x32\x1c.iroha.protocol.AddSignatoryH\x00\x12\x31\n\x0b\x61ppend_role\x18\x04 \x01(\x0b\x32\x1a.iroha.protocol.AppendRoleH\x00\x12\x37\n\x0e\x63reate_account\x18\x05 \x01(\x0b\x32\x1d.iroha.protocol.CreateAccountH\x00\x12\x33\n\x0c\x63reate_asset\x18\x06 \x01(\x0b\x32\x1b.iroha.protocol.CreateAssetH\x00\x12\x35\n\rcreate_domain\x18\x07 \x01(\x0b\x32\x1c.iroha.protocol.CreateDomainH\x00\x12\x31\n\x0b\x63reate_role\x18\x08 \x01(\x0b\x32\x1a.iroha.protocol.CreateRoleH\x00\x12\x31\n\x0b\x64\x65tach_role\x18\t \x01(\x0b\x32\x1a.iroha.protocol.DetachRoleH\x00\x12;\n\x10grant_permission\x18\n \x01(\x0b\x32\x1f.iroha.protocol.GrantPermissionH\x00\x12;\n\x10remove_signatory\x18\x0b \x01(\x0b\x32\x1f.iroha.protocol.RemoveSignatoryH\x00\x12=\n\x11revoke_permission\x18\x0c \x01(\x0b\x32 .iroha.protocol.RevokePermissionH\x00\x12>\n\x12set_account_detail\x18\r \x01(\x0b\x32 .iroha.protocol.SetAccountDetailH\x00\x12>\n\x12set_account_quorum\x18\x0e \x01(\x0b\x32 .iroha.protocol.SetAccountQuorumH\x00\x12H\n\x17subtract_asset_quantity\x18\x0f \x01(\x0b\x32%.iroha.protocol.SubtractAssetQuantityH\x00\x12\x37\n\x0etransfer_asset\x18\x10 \x01(\x0b\x32\x1d.iroha.protocol.TransferAssetH\x00\x12\x31\n\x0bremove_peer\x18\x11 \x01(\x0b\x32\x1a.iroha.protocol.RemovePeerH\x00\x12T\n\x1e\x63ompare_and_set_account_detail\x18\x12 \x01(\x0b\x32*.iroha.protocol.CompareAndSetAccountDetailH\x00\x12<\n\x11set_setting_value\x18\x13 \x01(\x0b\x32\x1f.iroha.protocol.SetSettingValueH\x00\x12\x31\n\x0b\x63\x61ll_engine\x18\x14 \x01(\x0b\x32\x1a.iroha.protocol.CallEngineH\x00\x42\t\n\x07\x63ommandB\x1aZ\x18iroha.generated/protocolb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'commands_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\030iroha.generated/protocol' + _globals['_ADDASSETQUANTITY']._serialized_start=51 + _globals['_ADDASSETQUANTITY']._serialized_end=145 + _globals['_ADDPEER']._serialized_start=147 + _globals['_ADDPEER']._serialized_end=192 + _globals['_REMOVEPEER']._serialized_start=194 + _globals['_REMOVEPEER']._serialized_end=226 + _globals['_ADDSIGNATORY']._serialized_start=228 + _globals['_ADDSIGNATORY']._serialized_end=282 + _globals['_CREATEASSET']._serialized_start=284 + _globals['_CREATEASSET']._serialized_end=355 + _globals['_CREATEACCOUNT']._serialized_start=357 + _globals['_CREATEACCOUNT']._serialized_end=433 + _globals['_SETACCOUNTDETAIL']._serialized_start=435 + _globals['_SETACCOUNTDETAIL']._serialized_end=501 + _globals['_CREATEDOMAIN']._serialized_start=503 + _globals['_CREATEDOMAIN']._serialized_end=558 + _globals['_REMOVESIGNATORY']._serialized_start=560 + _globals['_REMOVESIGNATORY']._serialized_end=617 + _globals['_SETACCOUNTQUORUM']._serialized_start=619 + _globals['_SETACCOUNTQUORUM']._serialized_end=673 + _globals['_TRANSFERASSET']._serialized_start=675 + _globals['_TRANSFERASSET']._serialized_end=794 + _globals['_APPENDROLE']._serialized_start=796 + _globals['_APPENDROLE']._serialized_end=847 + _globals['_DETACHROLE']._serialized_start=849 + _globals['_DETACHROLE']._serialized_end=900 + _globals['_CREATEROLE']._serialized_start=902 + _globals['_CREATEROLE']._serialized_end=986 + _globals['_GRANTPERMISSION']._serialized_start=988 + _globals['_GRANTPERMISSION']._serialized_end=1082 + _globals['_REVOKEPERMISSION']._serialized_start=1084 + _globals['_REVOKEPERMISSION']._serialized_end=1179 + _globals['_SUBTRACTASSETQUANTITY']._serialized_start=1181 + _globals['_SUBTRACTASSETQUANTITY']._serialized_end=1280 + _globals['_COMPAREANDSETACCOUNTDETAIL']._serialized_start=1283 + _globals['_COMPAREANDSETACCOUNTDETAIL']._serialized_end=1418 + _globals['_SETSETTINGVALUE']._serialized_start=1420 + _globals['_SETSETTINGVALUE']._serialized_end=1465 + _globals['_CALLENGINE']._serialized_start=1468 + _globals['_CALLENGINE']._serialized_end=1625 + _globals['_CALLENGINE_ENGINETYPE']._serialized_start=1584 + _globals['_CALLENGINE_ENGINETYPE']._serialized_end=1611 + _globals['_COMMAND']._serialized_start=1628 + _globals['_COMMAND']._serialized_end=2824 # @@protoc_insertion_point(module_scope) diff --git a/iroha/primitive_pb2.py b/iroha/primitive_pb2.py index 7428365a..7cc0e76c 100644 --- a/iroha/primitive_pb2.py +++ b/iroha/primitive_pb2.py @@ -1,13 +1,11 @@ +# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: primitive.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf.internal import enum_type_wrapper +"""Generated protocol buffer code.""" 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 descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,680 +13,29 @@ -DESCRIPTOR = _descriptor.FileDescriptor( - name='primitive.proto', - package='iroha.protocol', - syntax='proto3', - serialized_options=_b('Z\030iroha.generated/protocol'), - serialized_pb=_b('\n\x0fprimitive.proto\x12\x0eiroha.protocol\"2\n\tSignature\x12\x12\n\npublic_key\x18\x01 \x01(\t\x12\x11\n\tsignature\x18\x02 \x01(\t\"i\n\x04Peer\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x10\n\x08peer_key\x18\x02 \x01(\t\x12\x19\n\x0ftls_certificate\x18\x03 \x01(\tH\x00\x12\x14\n\x0csyncing_peer\x18\x04 \x01(\x08\x42\r\n\x0b\x63\x65rtificate\"4\n\x15\x41\x63\x63ountDetailRecordId\x12\x0e\n\x06writer\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\":\n\tEngineLog\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\x12\x0e\n\x06topics\x18\x03 \x03(\t\"1\n\nCallResult\x12\x0e\n\x06\x63\x61llee\x18\x01 \x01(\t\x12\x13\n\x0bresult_data\x18\x02 \x01(\t\"\xcc\x01\n\rEngineReceipt\x12\x15\n\rcommand_index\x18\x01 \x01(\x05\x12\x0e\n\x06\x63\x61ller\x18\x02 \x01(\t\x12\x31\n\x0b\x63\x61ll_result\x18\x03 \x01(\x0b\x32\x1a.iroha.protocol.CallResultH\x00\x12\x1a\n\x10\x63ontract_address\x18\x04 \x01(\tH\x00\x12\'\n\x04logs\x18\x05 \x03(\x0b\x32\x19.iroha.protocol.EngineLogB\x1c\n\x1aresult_or_contract_address*\xff\n\n\x0eRolePermission\x12\x13\n\x0f\x63\x61n_append_role\x10\x00\x12\x13\n\x0f\x63\x61n_create_role\x10\x01\x12\x13\n\x0f\x63\x61n_detach_role\x10\x02\x12\x15\n\x11\x63\x61n_add_asset_qty\x10\x03\x12\x1a\n\x16\x63\x61n_subtract_asset_qty\x10\x04\x12\x10\n\x0c\x63\x61n_add_peer\x10\x05\x12\x13\n\x0f\x63\x61n_remove_peer\x10.\x12\x15\n\x11\x63\x61n_add_signatory\x10\x06\x12\x18\n\x14\x63\x61n_remove_signatory\x10\x07\x12\x12\n\x0e\x63\x61n_set_quorum\x10\x08\x12\x16\n\x12\x63\x61n_create_account\x10\t\x12\x12\n\x0e\x63\x61n_set_detail\x10\n\x12\x14\n\x10\x63\x61n_create_asset\x10\x0b\x12\x10\n\x0c\x63\x61n_transfer\x10\x0c\x12\x0f\n\x0b\x63\x61n_receive\x10\r\x12\x15\n\x11\x63\x61n_create_domain\x10\x0e\x12\x1c\n\x18\x63\x61n_add_domain_asset_qty\x10+\x12!\n\x1d\x63\x61n_subtract_domain_asset_qty\x10,\x12\x13\n\x0f\x63\x61n_call_engine\x10\x30\x12\x13\n\x0f\x63\x61n_read_assets\x10\x0f\x12\x11\n\rcan_get_roles\x10\x10\x12\x16\n\x12\x63\x61n_get_my_account\x10\x11\x12\x18\n\x14\x63\x61n_get_all_accounts\x10\x12\x12\x1b\n\x17\x63\x61n_get_domain_accounts\x10\x13\x12\x1a\n\x16\x63\x61n_get_my_signatories\x10\x14\x12\x1b\n\x17\x63\x61n_get_all_signatories\x10\x15\x12\x1e\n\x1a\x63\x61n_get_domain_signatories\x10\x16\x12\x16\n\x12\x63\x61n_get_my_acc_ast\x10\x17\x12\x17\n\x13\x63\x61n_get_all_acc_ast\x10\x18\x12\x1a\n\x16\x63\x61n_get_domain_acc_ast\x10\x19\x12\x19\n\x15\x63\x61n_get_my_acc_detail\x10\x1a\x12\x1a\n\x16\x63\x61n_get_all_acc_detail\x10\x1b\x12\x1d\n\x19\x63\x61n_get_domain_acc_detail\x10\x1c\x12\x16\n\x12\x63\x61n_get_my_acc_txs\x10\x1d\x12\x17\n\x13\x63\x61n_get_all_acc_txs\x10\x1e\x12\x1a\n\x16\x63\x61n_get_domain_acc_txs\x10\x1f\x12\x1a\n\x16\x63\x61n_get_my_acc_ast_txs\x10 \x12\x1b\n\x17\x63\x61n_get_all_acc_ast_txs\x10!\x12\x1e\n\x1a\x63\x61n_get_domain_acc_ast_txs\x10\"\x12\x12\n\x0e\x63\x61n_get_my_txs\x10#\x12\x13\n\x0f\x63\x61n_get_all_txs\x10$\x12\x12\n\x0e\x63\x61n_get_blocks\x10*\x12\x11\n\rcan_get_peers\x10-\x12\x1e\n\x1a\x63\x61n_get_my_engine_receipts\x10\x32\x12\"\n\x1e\x63\x61n_get_domain_engine_receipts\x10\x33\x12\x1f\n\x1b\x63\x61n_get_all_engine_receipts\x10\x34\x12\x1f\n\x1b\x63\x61n_grant_can_set_my_quorum\x10%\x12\"\n\x1e\x63\x61n_grant_can_add_my_signatory\x10&\x12%\n!can_grant_can_remove_my_signatory\x10\'\x12$\n can_grant_can_transfer_my_assets\x10(\x12\'\n#can_grant_can_set_my_account_detail\x10)\x12*\n&can_grant_can_call_engine_on_my_behalf\x10\x31\x12\x08\n\x04root\x10/*\xc0\x01\n\x13GrantablePermission\x12\x18\n\x14\x63\x61n_add_my_signatory\x10\x00\x12\x1b\n\x17\x63\x61n_remove_my_signatory\x10\x01\x12\x15\n\x11\x63\x61n_set_my_quorum\x10\x02\x12\x1d\n\x19\x63\x61n_set_my_account_detail\x10\x03\x12\x1a\n\x16\x63\x61n_transfer_my_assets\x10\x04\x12 \n\x1c\x63\x61n_call_engine_on_my_behalf\x10\x05\x42\x1aZ\x18iroha.generated/protocolb\x06proto3') -) - -_ROLEPERMISSION = _descriptor.EnumDescriptor( - name='RolePermission', - full_name='iroha.protocol.RolePermission', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='can_append_role', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_create_role', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_detach_role', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_add_asset_qty', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_subtract_asset_qty', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_add_peer', index=5, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_remove_peer', index=6, number=46, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_add_signatory', index=7, number=6, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_remove_signatory', index=8, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_set_quorum', index=9, number=8, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_create_account', index=10, number=9, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_set_detail', index=11, number=10, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_create_asset', index=12, number=11, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_transfer', index=13, number=12, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_receive', index=14, number=13, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_create_domain', index=15, number=14, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_add_domain_asset_qty', index=16, number=43, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_subtract_domain_asset_qty', index=17, number=44, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_call_engine', index=18, number=48, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_read_assets', index=19, number=15, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_roles', index=20, number=16, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_my_account', index=21, number=17, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_all_accounts', index=22, number=18, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_domain_accounts', index=23, number=19, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_my_signatories', index=24, number=20, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_all_signatories', index=25, number=21, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_domain_signatories', index=26, number=22, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_my_acc_ast', index=27, number=23, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_all_acc_ast', index=28, number=24, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_domain_acc_ast', index=29, number=25, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_my_acc_detail', index=30, number=26, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_all_acc_detail', index=31, number=27, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_domain_acc_detail', index=32, number=28, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_my_acc_txs', index=33, number=29, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_all_acc_txs', index=34, number=30, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_domain_acc_txs', index=35, number=31, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_my_acc_ast_txs', index=36, number=32, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_all_acc_ast_txs', index=37, number=33, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_domain_acc_ast_txs', index=38, number=34, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_my_txs', index=39, number=35, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_all_txs', index=40, number=36, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_blocks', index=41, number=42, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_peers', index=42, number=45, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_my_engine_receipts', index=43, number=50, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_domain_engine_receipts', index=44, number=51, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_get_all_engine_receipts', index=45, number=52, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_grant_can_set_my_quorum', index=46, number=37, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_grant_can_add_my_signatory', index=47, number=38, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_grant_can_remove_my_signatory', index=48, number=39, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_grant_can_transfer_my_assets', index=49, number=40, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_grant_can_set_my_account_detail', index=50, number=41, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_grant_can_call_engine_on_my_behalf', index=51, number=49, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='root', index=52, number=47, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=567, - serialized_end=1974, -) -_sym_db.RegisterEnumDescriptor(_ROLEPERMISSION) - -RolePermission = enum_type_wrapper.EnumTypeWrapper(_ROLEPERMISSION) -_GRANTABLEPERMISSION = _descriptor.EnumDescriptor( - name='GrantablePermission', - full_name='iroha.protocol.GrantablePermission', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='can_add_my_signatory', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_remove_my_signatory', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_set_my_quorum', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_set_my_account_detail', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_transfer_my_assets', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='can_call_engine_on_my_behalf', index=5, number=5, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=1977, - serialized_end=2169, -) -_sym_db.RegisterEnumDescriptor(_GRANTABLEPERMISSION) - -GrantablePermission = enum_type_wrapper.EnumTypeWrapper(_GRANTABLEPERMISSION) -can_append_role = 0 -can_create_role = 1 -can_detach_role = 2 -can_add_asset_qty = 3 -can_subtract_asset_qty = 4 -can_add_peer = 5 -can_remove_peer = 46 -can_add_signatory = 6 -can_remove_signatory = 7 -can_set_quorum = 8 -can_create_account = 9 -can_set_detail = 10 -can_create_asset = 11 -can_transfer = 12 -can_receive = 13 -can_create_domain = 14 -can_add_domain_asset_qty = 43 -can_subtract_domain_asset_qty = 44 -can_call_engine = 48 -can_read_assets = 15 -can_get_roles = 16 -can_get_my_account = 17 -can_get_all_accounts = 18 -can_get_domain_accounts = 19 -can_get_my_signatories = 20 -can_get_all_signatories = 21 -can_get_domain_signatories = 22 -can_get_my_acc_ast = 23 -can_get_all_acc_ast = 24 -can_get_domain_acc_ast = 25 -can_get_my_acc_detail = 26 -can_get_all_acc_detail = 27 -can_get_domain_acc_detail = 28 -can_get_my_acc_txs = 29 -can_get_all_acc_txs = 30 -can_get_domain_acc_txs = 31 -can_get_my_acc_ast_txs = 32 -can_get_all_acc_ast_txs = 33 -can_get_domain_acc_ast_txs = 34 -can_get_my_txs = 35 -can_get_all_txs = 36 -can_get_blocks = 42 -can_get_peers = 45 -can_get_my_engine_receipts = 50 -can_get_domain_engine_receipts = 51 -can_get_all_engine_receipts = 52 -can_grant_can_set_my_quorum = 37 -can_grant_can_add_my_signatory = 38 -can_grant_can_remove_my_signatory = 39 -can_grant_can_transfer_my_assets = 40 -can_grant_can_set_my_account_detail = 41 -can_grant_can_call_engine_on_my_behalf = 49 -root = 47 -can_add_my_signatory = 0 -can_remove_my_signatory = 1 -can_set_my_quorum = 2 -can_set_my_account_detail = 3 -can_transfer_my_assets = 4 -can_call_engine_on_my_behalf = 5 - - - -_SIGNATURE = _descriptor.Descriptor( - name='Signature', - full_name='iroha.protocol.Signature', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='public_key', full_name='iroha.protocol.Signature.public_key', 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='signature', full_name='iroha.protocol.Signature.signature', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=35, - serialized_end=85, -) - - -_PEER = _descriptor.Descriptor( - name='Peer', - full_name='iroha.protocol.Peer', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='address', full_name='iroha.protocol.Peer.address', 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='peer_key', full_name='iroha.protocol.Peer.peer_key', 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='tls_certificate', full_name='iroha.protocol.Peer.tls_certificate', 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='syncing_peer', full_name='iroha.protocol.Peer.syncing_peer', index=3, - number=4, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='certificate', full_name='iroha.protocol.Peer.certificate', - index=0, containing_type=None, fields=[]), - ], - serialized_start=87, - serialized_end=192, -) - - -_ACCOUNTDETAILRECORDID = _descriptor.Descriptor( - name='AccountDetailRecordId', - full_name='iroha.protocol.AccountDetailRecordId', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='writer', full_name='iroha.protocol.AccountDetailRecordId.writer', 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='key', full_name='iroha.protocol.AccountDetailRecordId.key', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=194, - serialized_end=246, -) - - -_ENGINELOG = _descriptor.Descriptor( - name='EngineLog', - full_name='iroha.protocol.EngineLog', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='address', full_name='iroha.protocol.EngineLog.address', 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='data', full_name='iroha.protocol.EngineLog.data', 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='topics', full_name='iroha.protocol.EngineLog.topics', index=2, - number=3, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=248, - serialized_end=306, -) - - -_CALLRESULT = _descriptor.Descriptor( - name='CallResult', - full_name='iroha.protocol.CallResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='callee', full_name='iroha.protocol.CallResult.callee', 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='result_data', full_name='iroha.protocol.CallResult.result_data', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=308, - serialized_end=357, -) - - -_ENGINERECEIPT = _descriptor.Descriptor( - name='EngineReceipt', - full_name='iroha.protocol.EngineReceipt', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='command_index', full_name='iroha.protocol.EngineReceipt.command_index', index=0, - number=1, type=5, 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), - _descriptor.FieldDescriptor( - name='caller', full_name='iroha.protocol.EngineReceipt.caller', 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='call_result', full_name='iroha.protocol.EngineReceipt.call_result', 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='contract_address', full_name='iroha.protocol.EngineReceipt.contract_address', 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='logs', full_name='iroha.protocol.EngineReceipt.logs', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='result_or_contract_address', full_name='iroha.protocol.EngineReceipt.result_or_contract_address', - index=0, containing_type=None, fields=[]), - ], - serialized_start=360, - serialized_end=564, -) - -_PEER.oneofs_by_name['certificate'].fields.append( - _PEER.fields_by_name['tls_certificate']) -_PEER.fields_by_name['tls_certificate'].containing_oneof = _PEER.oneofs_by_name['certificate'] -_ENGINERECEIPT.fields_by_name['call_result'].message_type = _CALLRESULT -_ENGINERECEIPT.fields_by_name['logs'].message_type = _ENGINELOG -_ENGINERECEIPT.oneofs_by_name['result_or_contract_address'].fields.append( - _ENGINERECEIPT.fields_by_name['call_result']) -_ENGINERECEIPT.fields_by_name['call_result'].containing_oneof = _ENGINERECEIPT.oneofs_by_name['result_or_contract_address'] -_ENGINERECEIPT.oneofs_by_name['result_or_contract_address'].fields.append( - _ENGINERECEIPT.fields_by_name['contract_address']) -_ENGINERECEIPT.fields_by_name['contract_address'].containing_oneof = _ENGINERECEIPT.oneofs_by_name['result_or_contract_address'] -DESCRIPTOR.message_types_by_name['Signature'] = _SIGNATURE -DESCRIPTOR.message_types_by_name['Peer'] = _PEER -DESCRIPTOR.message_types_by_name['AccountDetailRecordId'] = _ACCOUNTDETAILRECORDID -DESCRIPTOR.message_types_by_name['EngineLog'] = _ENGINELOG -DESCRIPTOR.message_types_by_name['CallResult'] = _CALLRESULT -DESCRIPTOR.message_types_by_name['EngineReceipt'] = _ENGINERECEIPT -DESCRIPTOR.enum_types_by_name['RolePermission'] = _ROLEPERMISSION -DESCRIPTOR.enum_types_by_name['GrantablePermission'] = _GRANTABLEPERMISSION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Signature = _reflection.GeneratedProtocolMessageType('Signature', (_message.Message,), dict( - DESCRIPTOR = _SIGNATURE, - __module__ = 'primitive_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Signature) - )) -_sym_db.RegisterMessage(Signature) - -Peer = _reflection.GeneratedProtocolMessageType('Peer', (_message.Message,), dict( - DESCRIPTOR = _PEER, - __module__ = 'primitive_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Peer) - )) -_sym_db.RegisterMessage(Peer) - -AccountDetailRecordId = _reflection.GeneratedProtocolMessageType('AccountDetailRecordId', (_message.Message,), dict( - DESCRIPTOR = _ACCOUNTDETAILRECORDID, - __module__ = 'primitive_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.AccountDetailRecordId) - )) -_sym_db.RegisterMessage(AccountDetailRecordId) - -EngineLog = _reflection.GeneratedProtocolMessageType('EngineLog', (_message.Message,), dict( - DESCRIPTOR = _ENGINELOG, - __module__ = 'primitive_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.EngineLog) - )) -_sym_db.RegisterMessage(EngineLog) - -CallResult = _reflection.GeneratedProtocolMessageType('CallResult', (_message.Message,), dict( - DESCRIPTOR = _CALLRESULT, - __module__ = 'primitive_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.CallResult) - )) -_sym_db.RegisterMessage(CallResult) - -EngineReceipt = _reflection.GeneratedProtocolMessageType('EngineReceipt', (_message.Message,), dict( - DESCRIPTOR = _ENGINERECEIPT, - __module__ = 'primitive_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.EngineReceipt) - )) -_sym_db.RegisterMessage(EngineReceipt) - - -DESCRIPTOR._options = None +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fprimitive.proto\x12\x0eiroha.protocol\"2\n\tSignature\x12\x12\n\npublic_key\x18\x01 \x01(\t\x12\x11\n\tsignature\x18\x02 \x01(\t\"i\n\x04Peer\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x10\n\x08peer_key\x18\x02 \x01(\t\x12\x19\n\x0ftls_certificate\x18\x03 \x01(\tH\x00\x12\x14\n\x0csyncing_peer\x18\x04 \x01(\x08\x42\r\n\x0b\x63\x65rtificate\"4\n\x15\x41\x63\x63ountDetailRecordId\x12\x0e\n\x06writer\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\":\n\tEngineLog\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\x12\x0e\n\x06topics\x18\x03 \x03(\t\"1\n\nCallResult\x12\x0e\n\x06\x63\x61llee\x18\x01 \x01(\t\x12\x13\n\x0bresult_data\x18\x02 \x01(\t\"\xcc\x01\n\rEngineReceipt\x12\x15\n\rcommand_index\x18\x01 \x01(\x05\x12\x0e\n\x06\x63\x61ller\x18\x02 \x01(\t\x12\x31\n\x0b\x63\x61ll_result\x18\x03 \x01(\x0b\x32\x1a.iroha.protocol.CallResultH\x00\x12\x1a\n\x10\x63ontract_address\x18\x04 \x01(\tH\x00\x12\'\n\x04logs\x18\x05 \x03(\x0b\x32\x19.iroha.protocol.EngineLogB\x1c\n\x1aresult_or_contract_address*\xff\n\n\x0eRolePermission\x12\x13\n\x0f\x63\x61n_append_role\x10\x00\x12\x13\n\x0f\x63\x61n_create_role\x10\x01\x12\x13\n\x0f\x63\x61n_detach_role\x10\x02\x12\x15\n\x11\x63\x61n_add_asset_qty\x10\x03\x12\x1a\n\x16\x63\x61n_subtract_asset_qty\x10\x04\x12\x10\n\x0c\x63\x61n_add_peer\x10\x05\x12\x13\n\x0f\x63\x61n_remove_peer\x10.\x12\x15\n\x11\x63\x61n_add_signatory\x10\x06\x12\x18\n\x14\x63\x61n_remove_signatory\x10\x07\x12\x12\n\x0e\x63\x61n_set_quorum\x10\x08\x12\x16\n\x12\x63\x61n_create_account\x10\t\x12\x12\n\x0e\x63\x61n_set_detail\x10\n\x12\x14\n\x10\x63\x61n_create_asset\x10\x0b\x12\x10\n\x0c\x63\x61n_transfer\x10\x0c\x12\x0f\n\x0b\x63\x61n_receive\x10\r\x12\x15\n\x11\x63\x61n_create_domain\x10\x0e\x12\x1c\n\x18\x63\x61n_add_domain_asset_qty\x10+\x12!\n\x1d\x63\x61n_subtract_domain_asset_qty\x10,\x12\x13\n\x0f\x63\x61n_call_engine\x10\x30\x12\x13\n\x0f\x63\x61n_read_assets\x10\x0f\x12\x11\n\rcan_get_roles\x10\x10\x12\x16\n\x12\x63\x61n_get_my_account\x10\x11\x12\x18\n\x14\x63\x61n_get_all_accounts\x10\x12\x12\x1b\n\x17\x63\x61n_get_domain_accounts\x10\x13\x12\x1a\n\x16\x63\x61n_get_my_signatories\x10\x14\x12\x1b\n\x17\x63\x61n_get_all_signatories\x10\x15\x12\x1e\n\x1a\x63\x61n_get_domain_signatories\x10\x16\x12\x16\n\x12\x63\x61n_get_my_acc_ast\x10\x17\x12\x17\n\x13\x63\x61n_get_all_acc_ast\x10\x18\x12\x1a\n\x16\x63\x61n_get_domain_acc_ast\x10\x19\x12\x19\n\x15\x63\x61n_get_my_acc_detail\x10\x1a\x12\x1a\n\x16\x63\x61n_get_all_acc_detail\x10\x1b\x12\x1d\n\x19\x63\x61n_get_domain_acc_detail\x10\x1c\x12\x16\n\x12\x63\x61n_get_my_acc_txs\x10\x1d\x12\x17\n\x13\x63\x61n_get_all_acc_txs\x10\x1e\x12\x1a\n\x16\x63\x61n_get_domain_acc_txs\x10\x1f\x12\x1a\n\x16\x63\x61n_get_my_acc_ast_txs\x10 \x12\x1b\n\x17\x63\x61n_get_all_acc_ast_txs\x10!\x12\x1e\n\x1a\x63\x61n_get_domain_acc_ast_txs\x10\"\x12\x12\n\x0e\x63\x61n_get_my_txs\x10#\x12\x13\n\x0f\x63\x61n_get_all_txs\x10$\x12\x12\n\x0e\x63\x61n_get_blocks\x10*\x12\x11\n\rcan_get_peers\x10-\x12\x1e\n\x1a\x63\x61n_get_my_engine_receipts\x10\x32\x12\"\n\x1e\x63\x61n_get_domain_engine_receipts\x10\x33\x12\x1f\n\x1b\x63\x61n_get_all_engine_receipts\x10\x34\x12\x1f\n\x1b\x63\x61n_grant_can_set_my_quorum\x10%\x12\"\n\x1e\x63\x61n_grant_can_add_my_signatory\x10&\x12%\n!can_grant_can_remove_my_signatory\x10\'\x12$\n can_grant_can_transfer_my_assets\x10(\x12\'\n#can_grant_can_set_my_account_detail\x10)\x12*\n&can_grant_can_call_engine_on_my_behalf\x10\x31\x12\x08\n\x04root\x10/*\xc0\x01\n\x13GrantablePermission\x12\x18\n\x14\x63\x61n_add_my_signatory\x10\x00\x12\x1b\n\x17\x63\x61n_remove_my_signatory\x10\x01\x12\x15\n\x11\x63\x61n_set_my_quorum\x10\x02\x12\x1d\n\x19\x63\x61n_set_my_account_detail\x10\x03\x12\x1a\n\x16\x63\x61n_transfer_my_assets\x10\x04\x12 \n\x1c\x63\x61n_call_engine_on_my_behalf\x10\x05\x42\x1aZ\x18iroha.generated/protocolb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'primitive_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\030iroha.generated/protocol' + _globals['_ROLEPERMISSION']._serialized_start=567 + _globals['_ROLEPERMISSION']._serialized_end=1974 + _globals['_GRANTABLEPERMISSION']._serialized_start=1977 + _globals['_GRANTABLEPERMISSION']._serialized_end=2169 + _globals['_SIGNATURE']._serialized_start=35 + _globals['_SIGNATURE']._serialized_end=85 + _globals['_PEER']._serialized_start=87 + _globals['_PEER']._serialized_end=192 + _globals['_ACCOUNTDETAILRECORDID']._serialized_start=194 + _globals['_ACCOUNTDETAILRECORDID']._serialized_end=246 + _globals['_ENGINELOG']._serialized_start=248 + _globals['_ENGINELOG']._serialized_end=306 + _globals['_CALLRESULT']._serialized_start=308 + _globals['_CALLRESULT']._serialized_end=357 + _globals['_ENGINERECEIPT']._serialized_start=360 + _globals['_ENGINERECEIPT']._serialized_end=564 # @@protoc_insertion_point(module_scope) diff --git a/iroha/proposal_pb2.py b/iroha/proposal_pb2.py index e3dcca36..da5e8e7a 100644 --- a/iroha/proposal_pb2.py +++ b/iroha/proposal_pb2.py @@ -1,12 +1,11 @@ +# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proposal.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +"""Generated protocol buffer code.""" 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 descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,73 +14,15 @@ from . import transaction_pb2 as transaction__pb2 -DESCRIPTOR = _descriptor.FileDescriptor( - name='proposal.proto', - package='iroha.protocol', - syntax='proto3', - serialized_options=_b('Z\030iroha.generated/protocol'), - serialized_pb=_b('\n\x0eproposal.proto\x12\x0eiroha.protocol\x1a\x11transaction.proto\"c\n\x08Proposal\x12\x0e\n\x06height\x18\x01 \x01(\x04\x12\x31\n\x0ctransactions\x18\x02 \x03(\x0b\x32\x1b.iroha.protocol.Transaction\x12\x14\n\x0c\x63reated_time\x18\x03 \x01(\x04\x42\x1aZ\x18iroha.generated/protocolb\x06proto3') - , - dependencies=[transaction__pb2.DESCRIPTOR,]) - - - - -_PROPOSAL = _descriptor.Descriptor( - name='Proposal', - full_name='iroha.protocol.Proposal', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='height', full_name='iroha.protocol.Proposal.height', index=0, - number=1, 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), - _descriptor.FieldDescriptor( - name='transactions', full_name='iroha.protocol.Proposal.transactions', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='created_time', full_name='iroha.protocol.Proposal.created_time', 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, - 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=53, - serialized_end=152, -) - -_PROPOSAL.fields_by_name['transactions'].message_type = transaction__pb2._TRANSACTION -DESCRIPTOR.message_types_by_name['Proposal'] = _PROPOSAL -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Proposal = _reflection.GeneratedProtocolMessageType('Proposal', (_message.Message,), dict( - DESCRIPTOR = _PROPOSAL, - __module__ = 'proposal_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Proposal) - )) -_sym_db.RegisterMessage(Proposal) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0eproposal.proto\x12\x0eiroha.protocol\x1a\x11transaction.proto\"c\n\x08Proposal\x12\x0e\n\x06height\x18\x01 \x01(\x04\x12\x31\n\x0ctransactions\x18\x02 \x03(\x0b\x32\x1b.iroha.protocol.Transaction\x12\x14\n\x0c\x63reated_time\x18\x03 \x01(\x04\x42\x1aZ\x18iroha.generated/protocolb\x06proto3') +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proposal_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: -DESCRIPTOR._options = None + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\030iroha.generated/protocol' + _globals['_PROPOSAL']._serialized_start=53 + _globals['_PROPOSAL']._serialized_end=152 # @@protoc_insertion_point(module_scope) diff --git a/iroha/qry_responses_pb2.py b/iroha/qry_responses_pb2.py index 0f0ba14f..a9eca245 100644 --- a/iroha/qry_responses_pb2.py +++ b/iroha/qry_responses_pb2.py @@ -1,12 +1,11 @@ +# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: qry_responses.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +"""Generated protocol buffer code.""" 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 descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,1366 +16,61 @@ from . import primitive_pb2 as primitive__pb2 -DESCRIPTOR = _descriptor.FileDescriptor( - name='qry_responses.proto', - package='iroha.protocol', - syntax='proto3', - serialized_options=_b('Z\030iroha.generated/protocol'), - serialized_pb=_b('\n\x13qry_responses.proto\x12\x0eiroha.protocol\x1a\x0b\x62lock.proto\x1a\x11transaction.proto\x1a\x0fprimitive.proto\"?\n\x05\x41sset\x12\x10\n\x08\x61sset_id\x18\x01 \x01(\t\x12\x11\n\tdomain_id\x18\x02 \x01(\t\x12\x11\n\tprecision\x18\x03 \x01(\r\"1\n\x06\x44omain\x12\x11\n\tdomain_id\x18\x01 \x01(\t\x12\x14\n\x0c\x64\x65\x66\x61ult_role\x18\x02 \x01(\t\"S\n\x07\x41\x63\x63ount\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x11\n\tdomain_id\x18\x02 \x01(\t\x12\x0e\n\x06quorum\x18\x03 \x01(\r\x12\x11\n\tjson_data\x18\x04 \x01(\t\"E\n\x0c\x41\x63\x63ountAsset\x12\x10\n\x08\x61sset_id\x18\x01 \x01(\t\x12\x12\n\naccount_id\x18\x02 \x01(\t\x12\x0f\n\x07\x62\x61lance\x18\x03 \x01(\t\"\x90\x01\n\x14\x41\x63\x63ountAssetResponse\x12\x34\n\x0e\x61\x63\x63ount_assets\x18\x01 \x03(\x0b\x32\x1c.iroha.protocol.AccountAsset\x12\x14\n\x0ctotal_number\x18\x02 \x01(\r\x12\x17\n\rnext_asset_id\x18\x03 \x01(\tH\x00\x42\x13\n\x11opt_next_asset_id\"|\n\x15\x41\x63\x63ountDetailResponse\x12\x0e\n\x06\x64\x65tail\x18\x01 \x01(\t\x12\x14\n\x0ctotal_number\x18\x02 \x01(\x04\x12=\n\x0enext_record_id\x18\x03 \x01(\x0b\x32%.iroha.protocol.AccountDetailRecordId\"R\n\x0f\x41\x63\x63ountResponse\x12(\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x17.iroha.protocol.Account\x12\x15\n\raccount_roles\x18\x02 \x03(\t\"5\n\rAssetResponse\x12$\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x15.iroha.protocol.Asset\"\x1e\n\rRolesResponse\x12\r\n\x05roles\x18\x01 \x03(\t\"N\n\x17RolePermissionsResponse\x12\x33\n\x0bpermissions\x18\x01 \x03(\x0e\x32\x1e.iroha.protocol.RolePermission\"\xa3\x02\n\rErrorResponse\x12\x34\n\x06reason\x18\x01 \x01(\x0e\x32$.iroha.protocol.ErrorResponse.Reason\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x12\n\nerror_code\x18\x03 \x01(\r\"\xb6\x01\n\x06Reason\x12\x15\n\x11STATELESS_INVALID\x10\x00\x12\x14\n\x10STATEFUL_INVALID\x10\x01\x12\x0e\n\nNO_ACCOUNT\x10\x02\x12\x15\n\x11NO_ACCOUNT_ASSETS\x10\x03\x12\x15\n\x11NO_ACCOUNT_DETAIL\x10\x04\x12\x12\n\x0eNO_SIGNATORIES\x10\x05\x12\x11\n\rNOT_SUPPORTED\x10\x06\x12\x0c\n\x08NO_ASSET\x10\x07\x12\x0c\n\x08NO_ROLES\x10\x08\"#\n\x13SignatoriesResponse\x12\x0c\n\x04keys\x18\x01 \x03(\t\"I\n\x14TransactionsResponse\x12\x31\n\x0ctransactions\x18\x01 \x03(\x0b\x32\x1b.iroha.protocol.Transaction\"\x95\x01\n\x18TransactionsPageResponse\x12\x31\n\x0ctransactions\x18\x01 \x03(\x0b\x32\x1b.iroha.protocol.Transaction\x12\x1d\n\x15\x61ll_transactions_size\x18\x02 \x01(\r\x12\x16\n\x0cnext_tx_hash\x18\x03 \x01(\tH\x00\x42\x0f\n\rnext_page_tag\"\xff\x01\n\x1fPendingTransactionsPageResponse\x12\x31\n\x0ctransactions\x18\x01 \x03(\x0b\x32\x1b.iroha.protocol.Transaction\x12\x1d\n\x15\x61ll_transactions_size\x18\x02 \x01(\r\x12R\n\x0fnext_batch_info\x18\x03 \x01(\x0b\x32\x39.iroha.protocol.PendingTransactionsPageResponse.BatchInfo\x1a\x36\n\tBatchInfo\x12\x15\n\rfirst_tx_hash\x18\x01 \x01(\t\x12\x12\n\nbatch_size\x18\x02 \x01(\r\"4\n\rPeersResponse\x12#\n\x05peers\x18\x01 \x03(\x0b\x32\x14.iroha.protocol.Peer\"P\n\x16\x45ngineReceiptsResponse\x12\x36\n\x0f\x65ngine_receipts\x18\x01 \x03(\x0b\x32\x1d.iroha.protocol.EngineReceipt\"\xf1\x07\n\rQueryResponse\x12G\n\x17\x61\x63\x63ount_assets_response\x18\x01 \x01(\x0b\x32$.iroha.protocol.AccountAssetResponseH\x00\x12H\n\x17\x61\x63\x63ount_detail_response\x18\x02 \x01(\x0b\x32%.iroha.protocol.AccountDetailResponseH\x00\x12;\n\x10\x61\x63\x63ount_response\x18\x03 \x01(\x0b\x32\x1f.iroha.protocol.AccountResponseH\x00\x12\x37\n\x0e\x65rror_response\x18\x04 \x01(\x0b\x32\x1d.iroha.protocol.ErrorResponseH\x00\x12\x43\n\x14signatories_response\x18\x05 \x01(\x0b\x32#.iroha.protocol.SignatoriesResponseH\x00\x12\x45\n\x15transactions_response\x18\x06 \x01(\x0b\x32$.iroha.protocol.TransactionsResponseH\x00\x12\x37\n\x0e\x61sset_response\x18\x07 \x01(\x0b\x32\x1d.iroha.protocol.AssetResponseH\x00\x12\x37\n\x0eroles_response\x18\x08 \x01(\x0b\x32\x1d.iroha.protocol.RolesResponseH\x00\x12L\n\x19role_permissions_response\x18\t \x01(\x0b\x32\'.iroha.protocol.RolePermissionsResponseH\x00\x12N\n\x1atransactions_page_response\x18\x0b \x01(\x0b\x32(.iroha.protocol.TransactionsPageResponseH\x00\x12]\n\"pending_transactions_page_response\x18\r \x01(\x0b\x32/.iroha.protocol.PendingTransactionsPageResponseH\x00\x12\x37\n\x0e\x62lock_response\x18\x0c \x01(\x0b\x32\x1d.iroha.protocol.BlockResponseH\x00\x12\x37\n\x0epeers_response\x18\x0e \x01(\x0b\x32\x1d.iroha.protocol.PeersResponseH\x00\x12J\n\x18\x65ngine_receipts_response\x18\x0f \x01(\x0b\x32&.iroha.protocol.EngineReceiptsResponseH\x00\x12\x12\n\nquery_hash\x18\n \x01(\tB\n\n\x08response\"5\n\rBlockResponse\x12$\n\x05\x62lock\x18\x01 \x01(\x0b\x32\x15.iroha.protocol.Block\"%\n\x12\x42lockErrorResponse\x12\x0f\n\x07message\x18\x01 \x01(\t\"\x9d\x01\n\x12\x42lockQueryResponse\x12\x37\n\x0e\x62lock_response\x18\x01 \x01(\x0b\x32\x1d.iroha.protocol.BlockResponseH\x00\x12\x42\n\x14\x62lock_error_response\x18\x02 \x01(\x0b\x32\".iroha.protocol.BlockErrorResponseH\x00\x42\n\n\x08response\"\x85\x02\n\x0fHealthcheckData\x12\x1c\n\x12memory_consumption\x18\x01 \x01(\x04H\x00\x12\x14\n\nis_healthy\x18\x02 \x01(\x08H\x01\x12\x14\n\nis_syncing\x18\x03 \x01(\x08H\x02\x12\x1b\n\x11last_block_height\x18\x04 \x01(\x04H\x03\x12\x1b\n\x11last_block_reject\x18\x05 \x01(\x04H\x04\x42\x18\n\x16opt_memory_consumptionB\x10\n\x0eopt_is_healthyB\x10\n\x0eopt_is_syncingB\x17\n\x15opt_last_block_heightB\x17\n\x15opt_last_block_rejectB\x1aZ\x18iroha.generated/protocolb\x06proto3') - , - dependencies=[block__pb2.DESCRIPTOR,transaction__pb2.DESCRIPTOR,primitive__pb2.DESCRIPTOR,]) - - - -_ERRORRESPONSE_REASON = _descriptor.EnumDescriptor( - name='Reason', - full_name='iroha.protocol.ErrorResponse.Reason', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STATELESS_INVALID', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STATEFUL_INVALID', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NO_ACCOUNT', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NO_ACCOUNT_ASSETS', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NO_ACCOUNT_DETAIL', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NO_SIGNATORIES', index=5, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOT_SUPPORTED', index=6, number=6, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NO_ASSET', index=7, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NO_ROLES', index=8, number=8, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=994, - serialized_end=1176, -) -_sym_db.RegisterEnumDescriptor(_ERRORRESPONSE_REASON) - - -_ASSET = _descriptor.Descriptor( - name='Asset', - full_name='iroha.protocol.Asset', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='asset_id', full_name='iroha.protocol.Asset.asset_id', 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='domain_id', full_name='iroha.protocol.Asset.domain_id', 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='precision', full_name='iroha.protocol.Asset.precision', index=2, - number=3, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=88, - serialized_end=151, -) - - -_DOMAIN = _descriptor.Descriptor( - name='Domain', - full_name='iroha.protocol.Domain', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='domain_id', full_name='iroha.protocol.Domain.domain_id', 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='default_role', full_name='iroha.protocol.Domain.default_role', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=153, - serialized_end=202, -) - - -_ACCOUNT = _descriptor.Descriptor( - name='Account', - full_name='iroha.protocol.Account', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.Account.account_id', 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='domain_id', full_name='iroha.protocol.Account.domain_id', 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='quorum', full_name='iroha.protocol.Account.quorum', index=2, - number=3, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='json_data', full_name='iroha.protocol.Account.json_data', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=204, - serialized_end=287, -) - - -_ACCOUNTASSET = _descriptor.Descriptor( - name='AccountAsset', - full_name='iroha.protocol.AccountAsset', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='asset_id', full_name='iroha.protocol.AccountAsset.asset_id', 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='account_id', full_name='iroha.protocol.AccountAsset.account_id', 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='balance', full_name='iroha.protocol.AccountAsset.balance', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=289, - serialized_end=358, -) - - -_ACCOUNTASSETRESPONSE = _descriptor.Descriptor( - name='AccountAssetResponse', - full_name='iroha.protocol.AccountAssetResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_assets', full_name='iroha.protocol.AccountAssetResponse.account_assets', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='total_number', full_name='iroha.protocol.AccountAssetResponse.total_number', index=1, - number=2, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_asset_id', full_name='iroha.protocol.AccountAssetResponse.next_asset_id', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='opt_next_asset_id', full_name='iroha.protocol.AccountAssetResponse.opt_next_asset_id', - index=0, containing_type=None, fields=[]), - ], - serialized_start=361, - serialized_end=505, -) - - -_ACCOUNTDETAILRESPONSE = _descriptor.Descriptor( - name='AccountDetailResponse', - full_name='iroha.protocol.AccountDetailResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='detail', full_name='iroha.protocol.AccountDetailResponse.detail', 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='total_number', full_name='iroha.protocol.AccountDetailResponse.total_number', 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), - _descriptor.FieldDescriptor( - name='next_record_id', full_name='iroha.protocol.AccountDetailResponse.next_record_id', 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=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=507, - serialized_end=631, -) - - -_ACCOUNTRESPONSE = _descriptor.Descriptor( - name='AccountResponse', - full_name='iroha.protocol.AccountResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account', full_name='iroha.protocol.AccountResponse.account', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='account_roles', full_name='iroha.protocol.AccountResponse.account_roles', index=1, - number=2, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=633, - serialized_end=715, -) - - -_ASSETRESPONSE = _descriptor.Descriptor( - name='AssetResponse', - full_name='iroha.protocol.AssetResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='asset', full_name='iroha.protocol.AssetResponse.asset', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=717, - serialized_end=770, -) - - -_ROLESRESPONSE = _descriptor.Descriptor( - name='RolesResponse', - full_name='iroha.protocol.RolesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='roles', full_name='iroha.protocol.RolesResponse.roles', index=0, - number=1, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=772, - serialized_end=802, -) - - -_ROLEPERMISSIONSRESPONSE = _descriptor.Descriptor( - name='RolePermissionsResponse', - full_name='iroha.protocol.RolePermissionsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='permissions', full_name='iroha.protocol.RolePermissionsResponse.permissions', index=0, - number=1, type=14, cpp_type=8, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=804, - serialized_end=882, -) - - -_ERRORRESPONSE = _descriptor.Descriptor( - name='ErrorResponse', - full_name='iroha.protocol.ErrorResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='reason', full_name='iroha.protocol.ErrorResponse.reason', 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='message', full_name='iroha.protocol.ErrorResponse.message', 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='error_code', full_name='iroha.protocol.ErrorResponse.error_code', index=2, - number=3, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _ERRORRESPONSE_REASON, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=885, - serialized_end=1176, -) - - -_SIGNATORIESRESPONSE = _descriptor.Descriptor( - name='SignatoriesResponse', - full_name='iroha.protocol.SignatoriesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='keys', full_name='iroha.protocol.SignatoriesResponse.keys', index=0, - number=1, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1178, - serialized_end=1213, -) - - -_TRANSACTIONSRESPONSE = _descriptor.Descriptor( - name='TransactionsResponse', - full_name='iroha.protocol.TransactionsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='transactions', full_name='iroha.protocol.TransactionsResponse.transactions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1215, - serialized_end=1288, -) - - -_TRANSACTIONSPAGERESPONSE = _descriptor.Descriptor( - name='TransactionsPageResponse', - full_name='iroha.protocol.TransactionsPageResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='transactions', full_name='iroha.protocol.TransactionsPageResponse.transactions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='all_transactions_size', full_name='iroha.protocol.TransactionsPageResponse.all_transactions_size', index=1, - number=2, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_tx_hash', full_name='iroha.protocol.TransactionsPageResponse.next_tx_hash', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='next_page_tag', full_name='iroha.protocol.TransactionsPageResponse.next_page_tag', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1291, - serialized_end=1440, -) - - -_PENDINGTRANSACTIONSPAGERESPONSE_BATCHINFO = _descriptor.Descriptor( - name='BatchInfo', - full_name='iroha.protocol.PendingTransactionsPageResponse.BatchInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='first_tx_hash', full_name='iroha.protocol.PendingTransactionsPageResponse.BatchInfo.first_tx_hash', 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='batch_size', full_name='iroha.protocol.PendingTransactionsPageResponse.BatchInfo.batch_size', index=1, - number=2, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1644, - serialized_end=1698, -) - -_PENDINGTRANSACTIONSPAGERESPONSE = _descriptor.Descriptor( - name='PendingTransactionsPageResponse', - full_name='iroha.protocol.PendingTransactionsPageResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='transactions', full_name='iroha.protocol.PendingTransactionsPageResponse.transactions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='all_transactions_size', full_name='iroha.protocol.PendingTransactionsPageResponse.all_transactions_size', index=1, - number=2, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_batch_info', full_name='iroha.protocol.PendingTransactionsPageResponse.next_batch_info', 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=[_PENDINGTRANSACTIONSPAGERESPONSE_BATCHINFO, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1443, - serialized_end=1698, -) - - -_PEERSRESPONSE = _descriptor.Descriptor( - name='PeersResponse', - full_name='iroha.protocol.PeersResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='peers', full_name='iroha.protocol.PeersResponse.peers', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1700, - serialized_end=1752, -) - - -_ENGINERECEIPTSRESPONSE = _descriptor.Descriptor( - name='EngineReceiptsResponse', - full_name='iroha.protocol.EngineReceiptsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='engine_receipts', full_name='iroha.protocol.EngineReceiptsResponse.engine_receipts', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1754, - serialized_end=1834, -) - - -_QUERYRESPONSE = _descriptor.Descriptor( - name='QueryResponse', - full_name='iroha.protocol.QueryResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_assets_response', full_name='iroha.protocol.QueryResponse.account_assets_response', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='account_detail_response', full_name='iroha.protocol.QueryResponse.account_detail_response', 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='account_response', full_name='iroha.protocol.QueryResponse.account_response', 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='error_response', full_name='iroha.protocol.QueryResponse.error_response', 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='signatories_response', full_name='iroha.protocol.QueryResponse.signatories_response', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transactions_response', full_name='iroha.protocol.QueryResponse.transactions_response', index=5, - number=6, 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='asset_response', full_name='iroha.protocol.QueryResponse.asset_response', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='roles_response', full_name='iroha.protocol.QueryResponse.roles_response', 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='role_permissions_response', full_name='iroha.protocol.QueryResponse.role_permissions_response', index=8, - number=9, 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='transactions_page_response', full_name='iroha.protocol.QueryResponse.transactions_page_response', index=9, - number=11, 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='pending_transactions_page_response', full_name='iroha.protocol.QueryResponse.pending_transactions_page_response', index=10, - number=13, 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='block_response', full_name='iroha.protocol.QueryResponse.block_response', index=11, - number=12, 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='peers_response', full_name='iroha.protocol.QueryResponse.peers_response', index=12, - number=14, 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='engine_receipts_response', full_name='iroha.protocol.QueryResponse.engine_receipts_response', index=13, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='query_hash', full_name='iroha.protocol.QueryResponse.query_hash', index=14, - 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='response', full_name='iroha.protocol.QueryResponse.response', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1837, - serialized_end=2846, -) - - -_BLOCKRESPONSE = _descriptor.Descriptor( - name='BlockResponse', - full_name='iroha.protocol.BlockResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='block', full_name='iroha.protocol.BlockResponse.block', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2848, - serialized_end=2901, -) - - -_BLOCKERRORRESPONSE = _descriptor.Descriptor( - name='BlockErrorResponse', - full_name='iroha.protocol.BlockErrorResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='message', full_name='iroha.protocol.BlockErrorResponse.message', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2903, - serialized_end=2940, -) - - -_BLOCKQUERYRESPONSE = _descriptor.Descriptor( - name='BlockQueryResponse', - full_name='iroha.protocol.BlockQueryResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='block_response', full_name='iroha.protocol.BlockQueryResponse.block_response', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='block_error_response', full_name='iroha.protocol.BlockQueryResponse.block_error_response', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='response', full_name='iroha.protocol.BlockQueryResponse.response', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2943, - serialized_end=3100, -) - - -_HEALTHCHECKDATA = _descriptor.Descriptor( - name='HealthcheckData', - full_name='iroha.protocol.HealthcheckData', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='memory_consumption', full_name='iroha.protocol.HealthcheckData.memory_consumption', index=0, - number=1, 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), - _descriptor.FieldDescriptor( - name='is_healthy', full_name='iroha.protocol.HealthcheckData.is_healthy', index=1, - number=2, 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='is_syncing', full_name='iroha.protocol.HealthcheckData.is_syncing', index=2, - number=3, 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='last_block_height', full_name='iroha.protocol.HealthcheckData.last_block_height', index=3, - number=4, 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), - _descriptor.FieldDescriptor( - name='last_block_reject', full_name='iroha.protocol.HealthcheckData.last_block_reject', index=4, - number=5, 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=[ - _descriptor.OneofDescriptor( - name='opt_memory_consumption', full_name='iroha.protocol.HealthcheckData.opt_memory_consumption', - index=0, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='opt_is_healthy', full_name='iroha.protocol.HealthcheckData.opt_is_healthy', - index=1, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='opt_is_syncing', full_name='iroha.protocol.HealthcheckData.opt_is_syncing', - index=2, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='opt_last_block_height', full_name='iroha.protocol.HealthcheckData.opt_last_block_height', - index=3, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='opt_last_block_reject', full_name='iroha.protocol.HealthcheckData.opt_last_block_reject', - index=4, containing_type=None, fields=[]), - ], - serialized_start=3103, - serialized_end=3364, -) - -_ACCOUNTASSETRESPONSE.fields_by_name['account_assets'].message_type = _ACCOUNTASSET -_ACCOUNTASSETRESPONSE.oneofs_by_name['opt_next_asset_id'].fields.append( - _ACCOUNTASSETRESPONSE.fields_by_name['next_asset_id']) -_ACCOUNTASSETRESPONSE.fields_by_name['next_asset_id'].containing_oneof = _ACCOUNTASSETRESPONSE.oneofs_by_name['opt_next_asset_id'] -_ACCOUNTDETAILRESPONSE.fields_by_name['next_record_id'].message_type = primitive__pb2._ACCOUNTDETAILRECORDID -_ACCOUNTRESPONSE.fields_by_name['account'].message_type = _ACCOUNT -_ASSETRESPONSE.fields_by_name['asset'].message_type = _ASSET -_ROLEPERMISSIONSRESPONSE.fields_by_name['permissions'].enum_type = primitive__pb2._ROLEPERMISSION -_ERRORRESPONSE.fields_by_name['reason'].enum_type = _ERRORRESPONSE_REASON -_ERRORRESPONSE_REASON.containing_type = _ERRORRESPONSE -_TRANSACTIONSRESPONSE.fields_by_name['transactions'].message_type = transaction__pb2._TRANSACTION -_TRANSACTIONSPAGERESPONSE.fields_by_name['transactions'].message_type = transaction__pb2._TRANSACTION -_TRANSACTIONSPAGERESPONSE.oneofs_by_name['next_page_tag'].fields.append( - _TRANSACTIONSPAGERESPONSE.fields_by_name['next_tx_hash']) -_TRANSACTIONSPAGERESPONSE.fields_by_name['next_tx_hash'].containing_oneof = _TRANSACTIONSPAGERESPONSE.oneofs_by_name['next_page_tag'] -_PENDINGTRANSACTIONSPAGERESPONSE_BATCHINFO.containing_type = _PENDINGTRANSACTIONSPAGERESPONSE -_PENDINGTRANSACTIONSPAGERESPONSE.fields_by_name['transactions'].message_type = transaction__pb2._TRANSACTION -_PENDINGTRANSACTIONSPAGERESPONSE.fields_by_name['next_batch_info'].message_type = _PENDINGTRANSACTIONSPAGERESPONSE_BATCHINFO -_PEERSRESPONSE.fields_by_name['peers'].message_type = primitive__pb2._PEER -_ENGINERECEIPTSRESPONSE.fields_by_name['engine_receipts'].message_type = primitive__pb2._ENGINERECEIPT -_QUERYRESPONSE.fields_by_name['account_assets_response'].message_type = _ACCOUNTASSETRESPONSE -_QUERYRESPONSE.fields_by_name['account_detail_response'].message_type = _ACCOUNTDETAILRESPONSE -_QUERYRESPONSE.fields_by_name['account_response'].message_type = _ACCOUNTRESPONSE -_QUERYRESPONSE.fields_by_name['error_response'].message_type = _ERRORRESPONSE -_QUERYRESPONSE.fields_by_name['signatories_response'].message_type = _SIGNATORIESRESPONSE -_QUERYRESPONSE.fields_by_name['transactions_response'].message_type = _TRANSACTIONSRESPONSE -_QUERYRESPONSE.fields_by_name['asset_response'].message_type = _ASSETRESPONSE -_QUERYRESPONSE.fields_by_name['roles_response'].message_type = _ROLESRESPONSE -_QUERYRESPONSE.fields_by_name['role_permissions_response'].message_type = _ROLEPERMISSIONSRESPONSE -_QUERYRESPONSE.fields_by_name['transactions_page_response'].message_type = _TRANSACTIONSPAGERESPONSE -_QUERYRESPONSE.fields_by_name['pending_transactions_page_response'].message_type = _PENDINGTRANSACTIONSPAGERESPONSE -_QUERYRESPONSE.fields_by_name['block_response'].message_type = _BLOCKRESPONSE -_QUERYRESPONSE.fields_by_name['peers_response'].message_type = _PEERSRESPONSE -_QUERYRESPONSE.fields_by_name['engine_receipts_response'].message_type = _ENGINERECEIPTSRESPONSE -_QUERYRESPONSE.oneofs_by_name['response'].fields.append( - _QUERYRESPONSE.fields_by_name['account_assets_response']) -_QUERYRESPONSE.fields_by_name['account_assets_response'].containing_oneof = _QUERYRESPONSE.oneofs_by_name['response'] -_QUERYRESPONSE.oneofs_by_name['response'].fields.append( - _QUERYRESPONSE.fields_by_name['account_detail_response']) -_QUERYRESPONSE.fields_by_name['account_detail_response'].containing_oneof = _QUERYRESPONSE.oneofs_by_name['response'] -_QUERYRESPONSE.oneofs_by_name['response'].fields.append( - _QUERYRESPONSE.fields_by_name['account_response']) -_QUERYRESPONSE.fields_by_name['account_response'].containing_oneof = _QUERYRESPONSE.oneofs_by_name['response'] -_QUERYRESPONSE.oneofs_by_name['response'].fields.append( - _QUERYRESPONSE.fields_by_name['error_response']) -_QUERYRESPONSE.fields_by_name['error_response'].containing_oneof = _QUERYRESPONSE.oneofs_by_name['response'] -_QUERYRESPONSE.oneofs_by_name['response'].fields.append( - _QUERYRESPONSE.fields_by_name['signatories_response']) -_QUERYRESPONSE.fields_by_name['signatories_response'].containing_oneof = _QUERYRESPONSE.oneofs_by_name['response'] -_QUERYRESPONSE.oneofs_by_name['response'].fields.append( - _QUERYRESPONSE.fields_by_name['transactions_response']) -_QUERYRESPONSE.fields_by_name['transactions_response'].containing_oneof = _QUERYRESPONSE.oneofs_by_name['response'] -_QUERYRESPONSE.oneofs_by_name['response'].fields.append( - _QUERYRESPONSE.fields_by_name['asset_response']) -_QUERYRESPONSE.fields_by_name['asset_response'].containing_oneof = _QUERYRESPONSE.oneofs_by_name['response'] -_QUERYRESPONSE.oneofs_by_name['response'].fields.append( - _QUERYRESPONSE.fields_by_name['roles_response']) -_QUERYRESPONSE.fields_by_name['roles_response'].containing_oneof = _QUERYRESPONSE.oneofs_by_name['response'] -_QUERYRESPONSE.oneofs_by_name['response'].fields.append( - _QUERYRESPONSE.fields_by_name['role_permissions_response']) -_QUERYRESPONSE.fields_by_name['role_permissions_response'].containing_oneof = _QUERYRESPONSE.oneofs_by_name['response'] -_QUERYRESPONSE.oneofs_by_name['response'].fields.append( - _QUERYRESPONSE.fields_by_name['transactions_page_response']) -_QUERYRESPONSE.fields_by_name['transactions_page_response'].containing_oneof = _QUERYRESPONSE.oneofs_by_name['response'] -_QUERYRESPONSE.oneofs_by_name['response'].fields.append( - _QUERYRESPONSE.fields_by_name['pending_transactions_page_response']) -_QUERYRESPONSE.fields_by_name['pending_transactions_page_response'].containing_oneof = _QUERYRESPONSE.oneofs_by_name['response'] -_QUERYRESPONSE.oneofs_by_name['response'].fields.append( - _QUERYRESPONSE.fields_by_name['block_response']) -_QUERYRESPONSE.fields_by_name['block_response'].containing_oneof = _QUERYRESPONSE.oneofs_by_name['response'] -_QUERYRESPONSE.oneofs_by_name['response'].fields.append( - _QUERYRESPONSE.fields_by_name['peers_response']) -_QUERYRESPONSE.fields_by_name['peers_response'].containing_oneof = _QUERYRESPONSE.oneofs_by_name['response'] -_QUERYRESPONSE.oneofs_by_name['response'].fields.append( - _QUERYRESPONSE.fields_by_name['engine_receipts_response']) -_QUERYRESPONSE.fields_by_name['engine_receipts_response'].containing_oneof = _QUERYRESPONSE.oneofs_by_name['response'] -_BLOCKRESPONSE.fields_by_name['block'].message_type = block__pb2._BLOCK -_BLOCKQUERYRESPONSE.fields_by_name['block_response'].message_type = _BLOCKRESPONSE -_BLOCKQUERYRESPONSE.fields_by_name['block_error_response'].message_type = _BLOCKERRORRESPONSE -_BLOCKQUERYRESPONSE.oneofs_by_name['response'].fields.append( - _BLOCKQUERYRESPONSE.fields_by_name['block_response']) -_BLOCKQUERYRESPONSE.fields_by_name['block_response'].containing_oneof = _BLOCKQUERYRESPONSE.oneofs_by_name['response'] -_BLOCKQUERYRESPONSE.oneofs_by_name['response'].fields.append( - _BLOCKQUERYRESPONSE.fields_by_name['block_error_response']) -_BLOCKQUERYRESPONSE.fields_by_name['block_error_response'].containing_oneof = _BLOCKQUERYRESPONSE.oneofs_by_name['response'] -_HEALTHCHECKDATA.oneofs_by_name['opt_memory_consumption'].fields.append( - _HEALTHCHECKDATA.fields_by_name['memory_consumption']) -_HEALTHCHECKDATA.fields_by_name['memory_consumption'].containing_oneof = _HEALTHCHECKDATA.oneofs_by_name['opt_memory_consumption'] -_HEALTHCHECKDATA.oneofs_by_name['opt_is_healthy'].fields.append( - _HEALTHCHECKDATA.fields_by_name['is_healthy']) -_HEALTHCHECKDATA.fields_by_name['is_healthy'].containing_oneof = _HEALTHCHECKDATA.oneofs_by_name['opt_is_healthy'] -_HEALTHCHECKDATA.oneofs_by_name['opt_is_syncing'].fields.append( - _HEALTHCHECKDATA.fields_by_name['is_syncing']) -_HEALTHCHECKDATA.fields_by_name['is_syncing'].containing_oneof = _HEALTHCHECKDATA.oneofs_by_name['opt_is_syncing'] -_HEALTHCHECKDATA.oneofs_by_name['opt_last_block_height'].fields.append( - _HEALTHCHECKDATA.fields_by_name['last_block_height']) -_HEALTHCHECKDATA.fields_by_name['last_block_height'].containing_oneof = _HEALTHCHECKDATA.oneofs_by_name['opt_last_block_height'] -_HEALTHCHECKDATA.oneofs_by_name['opt_last_block_reject'].fields.append( - _HEALTHCHECKDATA.fields_by_name['last_block_reject']) -_HEALTHCHECKDATA.fields_by_name['last_block_reject'].containing_oneof = _HEALTHCHECKDATA.oneofs_by_name['opt_last_block_reject'] -DESCRIPTOR.message_types_by_name['Asset'] = _ASSET -DESCRIPTOR.message_types_by_name['Domain'] = _DOMAIN -DESCRIPTOR.message_types_by_name['Account'] = _ACCOUNT -DESCRIPTOR.message_types_by_name['AccountAsset'] = _ACCOUNTASSET -DESCRIPTOR.message_types_by_name['AccountAssetResponse'] = _ACCOUNTASSETRESPONSE -DESCRIPTOR.message_types_by_name['AccountDetailResponse'] = _ACCOUNTDETAILRESPONSE -DESCRIPTOR.message_types_by_name['AccountResponse'] = _ACCOUNTRESPONSE -DESCRIPTOR.message_types_by_name['AssetResponse'] = _ASSETRESPONSE -DESCRIPTOR.message_types_by_name['RolesResponse'] = _ROLESRESPONSE -DESCRIPTOR.message_types_by_name['RolePermissionsResponse'] = _ROLEPERMISSIONSRESPONSE -DESCRIPTOR.message_types_by_name['ErrorResponse'] = _ERRORRESPONSE -DESCRIPTOR.message_types_by_name['SignatoriesResponse'] = _SIGNATORIESRESPONSE -DESCRIPTOR.message_types_by_name['TransactionsResponse'] = _TRANSACTIONSRESPONSE -DESCRIPTOR.message_types_by_name['TransactionsPageResponse'] = _TRANSACTIONSPAGERESPONSE -DESCRIPTOR.message_types_by_name['PendingTransactionsPageResponse'] = _PENDINGTRANSACTIONSPAGERESPONSE -DESCRIPTOR.message_types_by_name['PeersResponse'] = _PEERSRESPONSE -DESCRIPTOR.message_types_by_name['EngineReceiptsResponse'] = _ENGINERECEIPTSRESPONSE -DESCRIPTOR.message_types_by_name['QueryResponse'] = _QUERYRESPONSE -DESCRIPTOR.message_types_by_name['BlockResponse'] = _BLOCKRESPONSE -DESCRIPTOR.message_types_by_name['BlockErrorResponse'] = _BLOCKERRORRESPONSE -DESCRIPTOR.message_types_by_name['BlockQueryResponse'] = _BLOCKQUERYRESPONSE -DESCRIPTOR.message_types_by_name['HealthcheckData'] = _HEALTHCHECKDATA -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Asset = _reflection.GeneratedProtocolMessageType('Asset', (_message.Message,), dict( - DESCRIPTOR = _ASSET, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Asset) - )) -_sym_db.RegisterMessage(Asset) - -Domain = _reflection.GeneratedProtocolMessageType('Domain', (_message.Message,), dict( - DESCRIPTOR = _DOMAIN, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Domain) - )) -_sym_db.RegisterMessage(Domain) - -Account = _reflection.GeneratedProtocolMessageType('Account', (_message.Message,), dict( - DESCRIPTOR = _ACCOUNT, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Account) - )) -_sym_db.RegisterMessage(Account) - -AccountAsset = _reflection.GeneratedProtocolMessageType('AccountAsset', (_message.Message,), dict( - DESCRIPTOR = _ACCOUNTASSET, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.AccountAsset) - )) -_sym_db.RegisterMessage(AccountAsset) - -AccountAssetResponse = _reflection.GeneratedProtocolMessageType('AccountAssetResponse', (_message.Message,), dict( - DESCRIPTOR = _ACCOUNTASSETRESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.AccountAssetResponse) - )) -_sym_db.RegisterMessage(AccountAssetResponse) - -AccountDetailResponse = _reflection.GeneratedProtocolMessageType('AccountDetailResponse', (_message.Message,), dict( - DESCRIPTOR = _ACCOUNTDETAILRESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.AccountDetailResponse) - )) -_sym_db.RegisterMessage(AccountDetailResponse) - -AccountResponse = _reflection.GeneratedProtocolMessageType('AccountResponse', (_message.Message,), dict( - DESCRIPTOR = _ACCOUNTRESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.AccountResponse) - )) -_sym_db.RegisterMessage(AccountResponse) - -AssetResponse = _reflection.GeneratedProtocolMessageType('AssetResponse', (_message.Message,), dict( - DESCRIPTOR = _ASSETRESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.AssetResponse) - )) -_sym_db.RegisterMessage(AssetResponse) - -RolesResponse = _reflection.GeneratedProtocolMessageType('RolesResponse', (_message.Message,), dict( - DESCRIPTOR = _ROLESRESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.RolesResponse) - )) -_sym_db.RegisterMessage(RolesResponse) - -RolePermissionsResponse = _reflection.GeneratedProtocolMessageType('RolePermissionsResponse', (_message.Message,), dict( - DESCRIPTOR = _ROLEPERMISSIONSRESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.RolePermissionsResponse) - )) -_sym_db.RegisterMessage(RolePermissionsResponse) - -ErrorResponse = _reflection.GeneratedProtocolMessageType('ErrorResponse', (_message.Message,), dict( - DESCRIPTOR = _ERRORRESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.ErrorResponse) - )) -_sym_db.RegisterMessage(ErrorResponse) - -SignatoriesResponse = _reflection.GeneratedProtocolMessageType('SignatoriesResponse', (_message.Message,), dict( - DESCRIPTOR = _SIGNATORIESRESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.SignatoriesResponse) - )) -_sym_db.RegisterMessage(SignatoriesResponse) - -TransactionsResponse = _reflection.GeneratedProtocolMessageType('TransactionsResponse', (_message.Message,), dict( - DESCRIPTOR = _TRANSACTIONSRESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.TransactionsResponse) - )) -_sym_db.RegisterMessage(TransactionsResponse) - -TransactionsPageResponse = _reflection.GeneratedProtocolMessageType('TransactionsPageResponse', (_message.Message,), dict( - DESCRIPTOR = _TRANSACTIONSPAGERESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.TransactionsPageResponse) - )) -_sym_db.RegisterMessage(TransactionsPageResponse) - -PendingTransactionsPageResponse = _reflection.GeneratedProtocolMessageType('PendingTransactionsPageResponse', (_message.Message,), dict( - - BatchInfo = _reflection.GeneratedProtocolMessageType('BatchInfo', (_message.Message,), dict( - DESCRIPTOR = _PENDINGTRANSACTIONSPAGERESPONSE_BATCHINFO, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.PendingTransactionsPageResponse.BatchInfo) - )) - , - DESCRIPTOR = _PENDINGTRANSACTIONSPAGERESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.PendingTransactionsPageResponse) - )) -_sym_db.RegisterMessage(PendingTransactionsPageResponse) -_sym_db.RegisterMessage(PendingTransactionsPageResponse.BatchInfo) - -PeersResponse = _reflection.GeneratedProtocolMessageType('PeersResponse', (_message.Message,), dict( - DESCRIPTOR = _PEERSRESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.PeersResponse) - )) -_sym_db.RegisterMessage(PeersResponse) - -EngineReceiptsResponse = _reflection.GeneratedProtocolMessageType('EngineReceiptsResponse', (_message.Message,), dict( - DESCRIPTOR = _ENGINERECEIPTSRESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.EngineReceiptsResponse) - )) -_sym_db.RegisterMessage(EngineReceiptsResponse) - -QueryResponse = _reflection.GeneratedProtocolMessageType('QueryResponse', (_message.Message,), dict( - DESCRIPTOR = _QUERYRESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.QueryResponse) - )) -_sym_db.RegisterMessage(QueryResponse) - -BlockResponse = _reflection.GeneratedProtocolMessageType('BlockResponse', (_message.Message,), dict( - DESCRIPTOR = _BLOCKRESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.BlockResponse) - )) -_sym_db.RegisterMessage(BlockResponse) - -BlockErrorResponse = _reflection.GeneratedProtocolMessageType('BlockErrorResponse', (_message.Message,), dict( - DESCRIPTOR = _BLOCKERRORRESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.BlockErrorResponse) - )) -_sym_db.RegisterMessage(BlockErrorResponse) - -BlockQueryResponse = _reflection.GeneratedProtocolMessageType('BlockQueryResponse', (_message.Message,), dict( - DESCRIPTOR = _BLOCKQUERYRESPONSE, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.BlockQueryResponse) - )) -_sym_db.RegisterMessage(BlockQueryResponse) - -HealthcheckData = _reflection.GeneratedProtocolMessageType('HealthcheckData', (_message.Message,), dict( - DESCRIPTOR = _HEALTHCHECKDATA, - __module__ = 'qry_responses_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.HealthcheckData) - )) -_sym_db.RegisterMessage(HealthcheckData) - - -DESCRIPTOR._options = None +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13qry_responses.proto\x12\x0eiroha.protocol\x1a\x0b\x62lock.proto\x1a\x11transaction.proto\x1a\x0fprimitive.proto\"?\n\x05\x41sset\x12\x10\n\x08\x61sset_id\x18\x01 \x01(\t\x12\x11\n\tdomain_id\x18\x02 \x01(\t\x12\x11\n\tprecision\x18\x03 \x01(\r\"1\n\x06\x44omain\x12\x11\n\tdomain_id\x18\x01 \x01(\t\x12\x14\n\x0c\x64\x65\x66\x61ult_role\x18\x02 \x01(\t\"S\n\x07\x41\x63\x63ount\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x11\n\tdomain_id\x18\x02 \x01(\t\x12\x0e\n\x06quorum\x18\x03 \x01(\r\x12\x11\n\tjson_data\x18\x04 \x01(\t\"E\n\x0c\x41\x63\x63ountAsset\x12\x10\n\x08\x61sset_id\x18\x01 \x01(\t\x12\x12\n\naccount_id\x18\x02 \x01(\t\x12\x0f\n\x07\x62\x61lance\x18\x03 \x01(\t\"\x90\x01\n\x14\x41\x63\x63ountAssetResponse\x12\x34\n\x0e\x61\x63\x63ount_assets\x18\x01 \x03(\x0b\x32\x1c.iroha.protocol.AccountAsset\x12\x14\n\x0ctotal_number\x18\x02 \x01(\r\x12\x17\n\rnext_asset_id\x18\x03 \x01(\tH\x00\x42\x13\n\x11opt_next_asset_id\"|\n\x15\x41\x63\x63ountDetailResponse\x12\x0e\n\x06\x64\x65tail\x18\x01 \x01(\t\x12\x14\n\x0ctotal_number\x18\x02 \x01(\x04\x12=\n\x0enext_record_id\x18\x03 \x01(\x0b\x32%.iroha.protocol.AccountDetailRecordId\"R\n\x0f\x41\x63\x63ountResponse\x12(\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x17.iroha.protocol.Account\x12\x15\n\raccount_roles\x18\x02 \x03(\t\"5\n\rAssetResponse\x12$\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x15.iroha.protocol.Asset\"\x1e\n\rRolesResponse\x12\r\n\x05roles\x18\x01 \x03(\t\"N\n\x17RolePermissionsResponse\x12\x33\n\x0bpermissions\x18\x01 \x03(\x0e\x32\x1e.iroha.protocol.RolePermission\"\xa3\x02\n\rErrorResponse\x12\x34\n\x06reason\x18\x01 \x01(\x0e\x32$.iroha.protocol.ErrorResponse.Reason\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x12\n\nerror_code\x18\x03 \x01(\r\"\xb6\x01\n\x06Reason\x12\x15\n\x11STATELESS_INVALID\x10\x00\x12\x14\n\x10STATEFUL_INVALID\x10\x01\x12\x0e\n\nNO_ACCOUNT\x10\x02\x12\x15\n\x11NO_ACCOUNT_ASSETS\x10\x03\x12\x15\n\x11NO_ACCOUNT_DETAIL\x10\x04\x12\x12\n\x0eNO_SIGNATORIES\x10\x05\x12\x11\n\rNOT_SUPPORTED\x10\x06\x12\x0c\n\x08NO_ASSET\x10\x07\x12\x0c\n\x08NO_ROLES\x10\x08\"#\n\x13SignatoriesResponse\x12\x0c\n\x04keys\x18\x01 \x03(\t\"I\n\x14TransactionsResponse\x12\x31\n\x0ctransactions\x18\x01 \x03(\x0b\x32\x1b.iroha.protocol.Transaction\"\x95\x01\n\x18TransactionsPageResponse\x12\x31\n\x0ctransactions\x18\x01 \x03(\x0b\x32\x1b.iroha.protocol.Transaction\x12\x1d\n\x15\x61ll_transactions_size\x18\x02 \x01(\r\x12\x16\n\x0cnext_tx_hash\x18\x03 \x01(\tH\x00\x42\x0f\n\rnext_page_tag\"\xff\x01\n\x1fPendingTransactionsPageResponse\x12\x31\n\x0ctransactions\x18\x01 \x03(\x0b\x32\x1b.iroha.protocol.Transaction\x12\x1d\n\x15\x61ll_transactions_size\x18\x02 \x01(\r\x12R\n\x0fnext_batch_info\x18\x03 \x01(\x0b\x32\x39.iroha.protocol.PendingTransactionsPageResponse.BatchInfo\x1a\x36\n\tBatchInfo\x12\x15\n\rfirst_tx_hash\x18\x01 \x01(\t\x12\x12\n\nbatch_size\x18\x02 \x01(\r\"4\n\rPeersResponse\x12#\n\x05peers\x18\x01 \x03(\x0b\x32\x14.iroha.protocol.Peer\"P\n\x16\x45ngineReceiptsResponse\x12\x36\n\x0f\x65ngine_receipts\x18\x01 \x03(\x0b\x32\x1d.iroha.protocol.EngineReceipt\"\xf1\x07\n\rQueryResponse\x12G\n\x17\x61\x63\x63ount_assets_response\x18\x01 \x01(\x0b\x32$.iroha.protocol.AccountAssetResponseH\x00\x12H\n\x17\x61\x63\x63ount_detail_response\x18\x02 \x01(\x0b\x32%.iroha.protocol.AccountDetailResponseH\x00\x12;\n\x10\x61\x63\x63ount_response\x18\x03 \x01(\x0b\x32\x1f.iroha.protocol.AccountResponseH\x00\x12\x37\n\x0e\x65rror_response\x18\x04 \x01(\x0b\x32\x1d.iroha.protocol.ErrorResponseH\x00\x12\x43\n\x14signatories_response\x18\x05 \x01(\x0b\x32#.iroha.protocol.SignatoriesResponseH\x00\x12\x45\n\x15transactions_response\x18\x06 \x01(\x0b\x32$.iroha.protocol.TransactionsResponseH\x00\x12\x37\n\x0e\x61sset_response\x18\x07 \x01(\x0b\x32\x1d.iroha.protocol.AssetResponseH\x00\x12\x37\n\x0eroles_response\x18\x08 \x01(\x0b\x32\x1d.iroha.protocol.RolesResponseH\x00\x12L\n\x19role_permissions_response\x18\t \x01(\x0b\x32\'.iroha.protocol.RolePermissionsResponseH\x00\x12N\n\x1atransactions_page_response\x18\x0b \x01(\x0b\x32(.iroha.protocol.TransactionsPageResponseH\x00\x12]\n\"pending_transactions_page_response\x18\r \x01(\x0b\x32/.iroha.protocol.PendingTransactionsPageResponseH\x00\x12\x37\n\x0e\x62lock_response\x18\x0c \x01(\x0b\x32\x1d.iroha.protocol.BlockResponseH\x00\x12\x37\n\x0epeers_response\x18\x0e \x01(\x0b\x32\x1d.iroha.protocol.PeersResponseH\x00\x12J\n\x18\x65ngine_receipts_response\x18\x0f \x01(\x0b\x32&.iroha.protocol.EngineReceiptsResponseH\x00\x12\x12\n\nquery_hash\x18\n \x01(\tB\n\n\x08response\"5\n\rBlockResponse\x12$\n\x05\x62lock\x18\x01 \x01(\x0b\x32\x15.iroha.protocol.Block\"%\n\x12\x42lockErrorResponse\x12\x0f\n\x07message\x18\x01 \x01(\t\"\x9d\x01\n\x12\x42lockQueryResponse\x12\x37\n\x0e\x62lock_response\x18\x01 \x01(\x0b\x32\x1d.iroha.protocol.BlockResponseH\x00\x12\x42\n\x14\x62lock_error_response\x18\x02 \x01(\x0b\x32\".iroha.protocol.BlockErrorResponseH\x00\x42\n\n\x08response\"\x85\x02\n\x0fHealthcheckData\x12\x1c\n\x12memory_consumption\x18\x01 \x01(\x04H\x00\x12\x14\n\nis_healthy\x18\x02 \x01(\x08H\x01\x12\x14\n\nis_syncing\x18\x03 \x01(\x08H\x02\x12\x1b\n\x11last_block_height\x18\x04 \x01(\x04H\x03\x12\x1b\n\x11last_block_reject\x18\x05 \x01(\x04H\x04\x42\x18\n\x16opt_memory_consumptionB\x10\n\x0eopt_is_healthyB\x10\n\x0eopt_is_syncingB\x17\n\x15opt_last_block_heightB\x17\n\x15opt_last_block_rejectB\x1aZ\x18iroha.generated/protocolb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'qry_responses_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\030iroha.generated/protocol' + _globals['_ASSET']._serialized_start=88 + _globals['_ASSET']._serialized_end=151 + _globals['_DOMAIN']._serialized_start=153 + _globals['_DOMAIN']._serialized_end=202 + _globals['_ACCOUNT']._serialized_start=204 + _globals['_ACCOUNT']._serialized_end=287 + _globals['_ACCOUNTASSET']._serialized_start=289 + _globals['_ACCOUNTASSET']._serialized_end=358 + _globals['_ACCOUNTASSETRESPONSE']._serialized_start=361 + _globals['_ACCOUNTASSETRESPONSE']._serialized_end=505 + _globals['_ACCOUNTDETAILRESPONSE']._serialized_start=507 + _globals['_ACCOUNTDETAILRESPONSE']._serialized_end=631 + _globals['_ACCOUNTRESPONSE']._serialized_start=633 + _globals['_ACCOUNTRESPONSE']._serialized_end=715 + _globals['_ASSETRESPONSE']._serialized_start=717 + _globals['_ASSETRESPONSE']._serialized_end=770 + _globals['_ROLESRESPONSE']._serialized_start=772 + _globals['_ROLESRESPONSE']._serialized_end=802 + _globals['_ROLEPERMISSIONSRESPONSE']._serialized_start=804 + _globals['_ROLEPERMISSIONSRESPONSE']._serialized_end=882 + _globals['_ERRORRESPONSE']._serialized_start=885 + _globals['_ERRORRESPONSE']._serialized_end=1176 + _globals['_ERRORRESPONSE_REASON']._serialized_start=994 + _globals['_ERRORRESPONSE_REASON']._serialized_end=1176 + _globals['_SIGNATORIESRESPONSE']._serialized_start=1178 + _globals['_SIGNATORIESRESPONSE']._serialized_end=1213 + _globals['_TRANSACTIONSRESPONSE']._serialized_start=1215 + _globals['_TRANSACTIONSRESPONSE']._serialized_end=1288 + _globals['_TRANSACTIONSPAGERESPONSE']._serialized_start=1291 + _globals['_TRANSACTIONSPAGERESPONSE']._serialized_end=1440 + _globals['_PENDINGTRANSACTIONSPAGERESPONSE']._serialized_start=1443 + _globals['_PENDINGTRANSACTIONSPAGERESPONSE']._serialized_end=1698 + _globals['_PENDINGTRANSACTIONSPAGERESPONSE_BATCHINFO']._serialized_start=1644 + _globals['_PENDINGTRANSACTIONSPAGERESPONSE_BATCHINFO']._serialized_end=1698 + _globals['_PEERSRESPONSE']._serialized_start=1700 + _globals['_PEERSRESPONSE']._serialized_end=1752 + _globals['_ENGINERECEIPTSRESPONSE']._serialized_start=1754 + _globals['_ENGINERECEIPTSRESPONSE']._serialized_end=1834 + _globals['_QUERYRESPONSE']._serialized_start=1837 + _globals['_QUERYRESPONSE']._serialized_end=2846 + _globals['_BLOCKRESPONSE']._serialized_start=2848 + _globals['_BLOCKRESPONSE']._serialized_end=2901 + _globals['_BLOCKERRORRESPONSE']._serialized_start=2903 + _globals['_BLOCKERRORRESPONSE']._serialized_end=2940 + _globals['_BLOCKQUERYRESPONSE']._serialized_start=2943 + _globals['_BLOCKQUERYRESPONSE']._serialized_end=3100 + _globals['_HEALTHCHECKDATA']._serialized_start=3103 + _globals['_HEALTHCHECKDATA']._serialized_end=3364 # @@protoc_insertion_point(module_scope) diff --git a/iroha/queries_pb2.py b/iroha/queries_pb2.py index b46e5b1a..f8aeaa7d 100644 --- a/iroha/queries_pb2.py +++ b/iroha/queries_pb2.py @@ -1,13 +1,11 @@ +# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: queries.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf.internal import enum_type_wrapper +"""Generated protocol buffer code.""" 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 descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,1322 +15,63 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor.FileDescriptor( - name='queries.proto', - package='iroha.protocol', - syntax='proto3', - serialized_options=_b('Z\030iroha.generated/protocol'), - serialized_pb=_b('\n\rqueries.proto\x12\x0eiroha.protocol\x1a\x0fprimitive.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa9\x01\n\x08Ordering\x12\x38\n\x08sequence\x18\x01 \x03(\x0b\x32&.iroha.protocol.Ordering.FieldOrdering\x1a\x63\n\rFieldOrdering\x12$\n\x05\x66ield\x18\x01 \x01(\x0e\x32\x15.iroha.protocol.Field\x12,\n\tdirection\x18\x02 \x01(\x0e\x32\x19.iroha.protocol.Direction\"\xf3\x02\n\x10TxPaginationMeta\x12\x11\n\tpage_size\x18\x01 \x01(\r\x12\x17\n\rfirst_tx_hash\x18\x02 \x01(\tH\x00\x12*\n\x08ordering\x18\x03 \x01(\x0b\x32\x18.iroha.protocol.Ordering\x12\x33\n\rfirst_tx_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x12\x32\n\x0clast_tx_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02\x12\x19\n\x0f\x66irst_tx_height\x18\x06 \x01(\x04H\x03\x12\x18\n\x0elast_tx_height\x18\x07 \x01(\x04H\x04\x42\x13\n\x11opt_first_tx_hashB\x13\n\x11opt_first_tx_timeB\x12\n\x10opt_last_tx_timeB\x15\n\x13opt_first_tx_heightB\x14\n\x12opt_last_tx_height\"X\n\x13\x41ssetPaginationMeta\x12\x11\n\tpage_size\x18\x01 \x01(\r\x12\x18\n\x0e\x66irst_asset_id\x18\x02 \x01(\tH\x00\x42\x14\n\x12opt_first_asset_id\" \n\nGetAccount\x12\x12\n\naccount_id\x18\x01 \x01(\t\"\x1a\n\x08GetBlock\x12\x0e\n\x06height\x18\x01 \x01(\x04\"$\n\x0eGetSignatories\x12\x12\n\naccount_id\x18\x01 \x01(\t\"g\n\x16GetAccountTransactions\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x39\n\x0fpagination_meta\x18\x02 \x01(\x0b\x32 .iroha.protocol.TxPaginationMeta\"~\n\x1bGetAccountAssetTransactions\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x10\n\x08\x61sset_id\x18\x02 \x01(\t\x12\x39\n\x0fpagination_meta\x18\x03 \x01(\x0b\x32 .iroha.protocol.TxPaginationMeta\"$\n\x0fGetTransactions\x12\x11\n\ttx_hashes\x18\x01 \x03(\t\"d\n\x10GetAccountAssets\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12<\n\x0fpagination_meta\x18\x02 \x01(\x0b\x32#.iroha.protocol.AssetPaginationMeta\"p\n\x1b\x41\x63\x63ountDetailPaginationMeta\x12\x11\n\tpage_size\x18\x01 \x01(\r\x12>\n\x0f\x66irst_record_id\x18\x02 \x01(\x0b\x32%.iroha.protocol.AccountDetailRecordId\"\xba\x01\n\x10GetAccountDetail\x12\x14\n\naccount_id\x18\x01 \x01(\tH\x00\x12\r\n\x03key\x18\x02 \x01(\tH\x01\x12\x10\n\x06writer\x18\x03 \x01(\tH\x02\x12\x44\n\x0fpagination_meta\x18\x04 \x01(\x0b\x32+.iroha.protocol.AccountDetailPaginationMetaB\x10\n\x0eopt_account_idB\t\n\x07opt_keyB\x0c\n\nopt_writer\" \n\x0cGetAssetInfo\x12\x10\n\x08\x61sset_id\x18\x01 \x01(\t\"\n\n\x08GetRoles\"%\n\x12GetRolePermissions\x12\x0f\n\x07role_id\x18\x01 \x01(\t\"S\n\x16GetPendingTransactions\x12\x39\n\x0fpagination_meta\x18\x01 \x01(\x0b\x32 .iroha.protocol.TxPaginationMeta\"\n\n\x08GetPeers\"[\n\x10QueryPayloadMeta\x12\x14\n\x0c\x63reated_time\x18\x01 \x01(\x04\x12\x1a\n\x12\x63reator_account_id\x18\x02 \x01(\t\x12\x15\n\rquery_counter\x18\x03 \x01(\x04\"$\n\x11GetEngineReceipts\x12\x0f\n\x07tx_hash\x18\x01 \x01(\t\"\x8f\x08\n\x05Query\x12.\n\x07payload\x18\x01 \x01(\x0b\x32\x1d.iroha.protocol.Query.Payload\x12,\n\tsignature\x18\x02 \x01(\x0b\x32\x19.iroha.protocol.Signature\x1a\xa7\x07\n\x07Payload\x12.\n\x04meta\x18\x01 \x01(\x0b\x32 .iroha.protocol.QueryPayloadMeta\x12\x31\n\x0bget_account\x18\x03 \x01(\x0b\x32\x1a.iroha.protocol.GetAccountH\x00\x12\x39\n\x0fget_signatories\x18\x04 \x01(\x0b\x32\x1e.iroha.protocol.GetSignatoriesH\x00\x12J\n\x18get_account_transactions\x18\x05 \x01(\x0b\x32&.iroha.protocol.GetAccountTransactionsH\x00\x12U\n\x1eget_account_asset_transactions\x18\x06 \x01(\x0b\x32+.iroha.protocol.GetAccountAssetTransactionsH\x00\x12;\n\x10get_transactions\x18\x07 \x01(\x0b\x32\x1f.iroha.protocol.GetTransactionsH\x00\x12>\n\x12get_account_assets\x18\x08 \x01(\x0b\x32 .iroha.protocol.GetAccountAssetsH\x00\x12>\n\x12get_account_detail\x18\t \x01(\x0b\x32 .iroha.protocol.GetAccountDetailH\x00\x12-\n\tget_roles\x18\n \x01(\x0b\x32\x18.iroha.protocol.GetRolesH\x00\x12\x42\n\x14get_role_permissions\x18\x0b \x01(\x0b\x32\".iroha.protocol.GetRolePermissionsH\x00\x12\x36\n\x0eget_asset_info\x18\x0c \x01(\x0b\x32\x1c.iroha.protocol.GetAssetInfoH\x00\x12J\n\x18get_pending_transactions\x18\r \x01(\x0b\x32&.iroha.protocol.GetPendingTransactionsH\x00\x12-\n\tget_block\x18\x0e \x01(\x0b\x32\x18.iroha.protocol.GetBlockH\x00\x12-\n\tget_peers\x18\x0f \x01(\x0b\x32\x18.iroha.protocol.GetPeersH\x00\x12@\n\x13get_engine_receipts\x18\x10 \x01(\x0b\x32!.iroha.protocol.GetEngineReceiptsH\x00\x42\x07\n\x05query\"k\n\x0b\x42locksQuery\x12.\n\x04meta\x18\x01 \x01(\x0b\x32 .iroha.protocol.QueryPayloadMeta\x12,\n\tsignature\x18\x02 \x01(\x0b\x32\x19.iroha.protocol.Signature*(\n\x05\x46ield\x12\x10\n\x0ckCreatedTime\x10\x00\x12\r\n\tkPosition\x10\x01*,\n\tDirection\x12\x0e\n\nkAscending\x10\x00\x12\x0f\n\x0bkDescending\x10\x01\x42\x1aZ\x18iroha.generated/protocolb\x06proto3') - , - dependencies=[primitive__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - -_FIELD = _descriptor.EnumDescriptor( - name='Field', - full_name='iroha.protocol.Field', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='kCreatedTime', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='kPosition', index=1, number=1, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=2959, - serialized_end=2999, -) -_sym_db.RegisterEnumDescriptor(_FIELD) - -Field = enum_type_wrapper.EnumTypeWrapper(_FIELD) -_DIRECTION = _descriptor.EnumDescriptor( - name='Direction', - full_name='iroha.protocol.Direction', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='kAscending', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='kDescending', index=1, number=1, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=3001, - serialized_end=3045, -) -_sym_db.RegisterEnumDescriptor(_DIRECTION) - -Direction = enum_type_wrapper.EnumTypeWrapper(_DIRECTION) -kCreatedTime = 0 -kPosition = 1 -kAscending = 0 -kDescending = 1 - - - -_ORDERING_FIELDORDERING = _descriptor.Descriptor( - name='FieldOrdering', - full_name='iroha.protocol.Ordering.FieldOrdering', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='field', full_name='iroha.protocol.Ordering.FieldOrdering.field', 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='direction', full_name='iroha.protocol.Ordering.FieldOrdering.direction', index=1, - number=2, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=154, - serialized_end=253, -) - -_ORDERING = _descriptor.Descriptor( - name='Ordering', - full_name='iroha.protocol.Ordering', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='sequence', full_name='iroha.protocol.Ordering.sequence', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ORDERING_FIELDORDERING, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=84, - serialized_end=253, -) - - -_TXPAGINATIONMETA = _descriptor.Descriptor( - name='TxPaginationMeta', - full_name='iroha.protocol.TxPaginationMeta', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='page_size', full_name='iroha.protocol.TxPaginationMeta.page_size', 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='first_tx_hash', full_name='iroha.protocol.TxPaginationMeta.first_tx_hash', 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='ordering', full_name='iroha.protocol.TxPaginationMeta.ordering', 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='first_tx_time', full_name='iroha.protocol.TxPaginationMeta.first_tx_time', 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='last_tx_time', full_name='iroha.protocol.TxPaginationMeta.last_tx_time', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='first_tx_height', full_name='iroha.protocol.TxPaginationMeta.first_tx_height', index=5, - number=6, 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), - _descriptor.FieldDescriptor( - name='last_tx_height', full_name='iroha.protocol.TxPaginationMeta.last_tx_height', index=6, - number=7, 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=[ - _descriptor.OneofDescriptor( - name='opt_first_tx_hash', full_name='iroha.protocol.TxPaginationMeta.opt_first_tx_hash', - index=0, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='opt_first_tx_time', full_name='iroha.protocol.TxPaginationMeta.opt_first_tx_time', - index=1, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='opt_last_tx_time', full_name='iroha.protocol.TxPaginationMeta.opt_last_tx_time', - index=2, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='opt_first_tx_height', full_name='iroha.protocol.TxPaginationMeta.opt_first_tx_height', - index=3, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='opt_last_tx_height', full_name='iroha.protocol.TxPaginationMeta.opt_last_tx_height', - index=4, containing_type=None, fields=[]), - ], - serialized_start=256, - serialized_end=627, -) - - -_ASSETPAGINATIONMETA = _descriptor.Descriptor( - name='AssetPaginationMeta', - full_name='iroha.protocol.AssetPaginationMeta', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='page_size', full_name='iroha.protocol.AssetPaginationMeta.page_size', 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='first_asset_id', full_name='iroha.protocol.AssetPaginationMeta.first_asset_id', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='opt_first_asset_id', full_name='iroha.protocol.AssetPaginationMeta.opt_first_asset_id', - index=0, containing_type=None, fields=[]), - ], - serialized_start=629, - serialized_end=717, -) - - -_GETACCOUNT = _descriptor.Descriptor( - name='GetAccount', - full_name='iroha.protocol.GetAccount', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.GetAccount.account_id', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=719, - serialized_end=751, -) - - -_GETBLOCK = _descriptor.Descriptor( - name='GetBlock', - full_name='iroha.protocol.GetBlock', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='height', full_name='iroha.protocol.GetBlock.height', index=0, - number=1, 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=753, - serialized_end=779, -) - - -_GETSIGNATORIES = _descriptor.Descriptor( - name='GetSignatories', - full_name='iroha.protocol.GetSignatories', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.GetSignatories.account_id', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=781, - serialized_end=817, -) - - -_GETACCOUNTTRANSACTIONS = _descriptor.Descriptor( - name='GetAccountTransactions', - full_name='iroha.protocol.GetAccountTransactions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.GetAccountTransactions.account_id', 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='pagination_meta', full_name='iroha.protocol.GetAccountTransactions.pagination_meta', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=819, - serialized_end=922, -) - - -_GETACCOUNTASSETTRANSACTIONS = _descriptor.Descriptor( - name='GetAccountAssetTransactions', - full_name='iroha.protocol.GetAccountAssetTransactions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.GetAccountAssetTransactions.account_id', 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='asset_id', full_name='iroha.protocol.GetAccountAssetTransactions.asset_id', 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='pagination_meta', full_name='iroha.protocol.GetAccountAssetTransactions.pagination_meta', 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=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=924, - serialized_end=1050, -) - - -_GETTRANSACTIONS = _descriptor.Descriptor( - name='GetTransactions', - full_name='iroha.protocol.GetTransactions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='tx_hashes', full_name='iroha.protocol.GetTransactions.tx_hashes', index=0, - number=1, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1052, - serialized_end=1088, -) - - -_GETACCOUNTASSETS = _descriptor.Descriptor( - name='GetAccountAssets', - full_name='iroha.protocol.GetAccountAssets', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.GetAccountAssets.account_id', 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='pagination_meta', full_name='iroha.protocol.GetAccountAssets.pagination_meta', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1090, - serialized_end=1190, -) - - -_ACCOUNTDETAILPAGINATIONMETA = _descriptor.Descriptor( - name='AccountDetailPaginationMeta', - full_name='iroha.protocol.AccountDetailPaginationMeta', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='page_size', full_name='iroha.protocol.AccountDetailPaginationMeta.page_size', 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='first_record_id', full_name='iroha.protocol.AccountDetailPaginationMeta.first_record_id', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1192, - serialized_end=1304, -) - - -_GETACCOUNTDETAIL = _descriptor.Descriptor( - name='GetAccountDetail', - full_name='iroha.protocol.GetAccountDetail', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_id', full_name='iroha.protocol.GetAccountDetail.account_id', 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='key', full_name='iroha.protocol.GetAccountDetail.key', 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='writer', full_name='iroha.protocol.GetAccountDetail.writer', 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='pagination_meta', full_name='iroha.protocol.GetAccountDetail.pagination_meta', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='opt_account_id', full_name='iroha.protocol.GetAccountDetail.opt_account_id', - index=0, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='opt_key', full_name='iroha.protocol.GetAccountDetail.opt_key', - index=1, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='opt_writer', full_name='iroha.protocol.GetAccountDetail.opt_writer', - index=2, containing_type=None, fields=[]), - ], - serialized_start=1307, - serialized_end=1493, -) - - -_GETASSETINFO = _descriptor.Descriptor( - name='GetAssetInfo', - full_name='iroha.protocol.GetAssetInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='asset_id', full_name='iroha.protocol.GetAssetInfo.asset_id', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1495, - serialized_end=1527, -) - - -_GETROLES = _descriptor.Descriptor( - name='GetRoles', - full_name='iroha.protocol.GetRoles', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1529, - serialized_end=1539, -) - - -_GETROLEPERMISSIONS = _descriptor.Descriptor( - name='GetRolePermissions', - full_name='iroha.protocol.GetRolePermissions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='role_id', full_name='iroha.protocol.GetRolePermissions.role_id', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1541, - serialized_end=1578, -) - - -_GETPENDINGTRANSACTIONS = _descriptor.Descriptor( - name='GetPendingTransactions', - full_name='iroha.protocol.GetPendingTransactions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='pagination_meta', full_name='iroha.protocol.GetPendingTransactions.pagination_meta', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1580, - serialized_end=1663, -) - - -_GETPEERS = _descriptor.Descriptor( - name='GetPeers', - full_name='iroha.protocol.GetPeers', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1665, - serialized_end=1675, -) - - -_QUERYPAYLOADMETA = _descriptor.Descriptor( - name='QueryPayloadMeta', - full_name='iroha.protocol.QueryPayloadMeta', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='created_time', full_name='iroha.protocol.QueryPayloadMeta.created_time', index=0, - number=1, 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), - _descriptor.FieldDescriptor( - name='creator_account_id', full_name='iroha.protocol.QueryPayloadMeta.creator_account_id', 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='query_counter', full_name='iroha.protocol.QueryPayloadMeta.query_counter', 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, - 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=1677, - serialized_end=1768, -) - - -_GETENGINERECEIPTS = _descriptor.Descriptor( - name='GetEngineReceipts', - full_name='iroha.protocol.GetEngineReceipts', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='tx_hash', full_name='iroha.protocol.GetEngineReceipts.tx_hash', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1770, - serialized_end=1806, -) - - -_QUERY_PAYLOAD = _descriptor.Descriptor( - name='Payload', - full_name='iroha.protocol.Query.Payload', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='meta', full_name='iroha.protocol.Query.Payload.meta', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='get_account', full_name='iroha.protocol.Query.Payload.get_account', index=1, - 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='get_signatories', full_name='iroha.protocol.Query.Payload.get_signatories', index=2, - 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='get_account_transactions', full_name='iroha.protocol.Query.Payload.get_account_transactions', index=3, - 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='get_account_asset_transactions', full_name='iroha.protocol.Query.Payload.get_account_asset_transactions', index=4, - number=6, 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='get_transactions', full_name='iroha.protocol.Query.Payload.get_transactions', index=5, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='get_account_assets', full_name='iroha.protocol.Query.Payload.get_account_assets', index=6, - 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='get_account_detail', full_name='iroha.protocol.Query.Payload.get_account_detail', index=7, - number=9, 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='get_roles', full_name='iroha.protocol.Query.Payload.get_roles', index=8, - number=10, 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='get_role_permissions', full_name='iroha.protocol.Query.Payload.get_role_permissions', index=9, - number=11, 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='get_asset_info', full_name='iroha.protocol.Query.Payload.get_asset_info', index=10, - number=12, 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='get_pending_transactions', full_name='iroha.protocol.Query.Payload.get_pending_transactions', index=11, - number=13, 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='get_block', full_name='iroha.protocol.Query.Payload.get_block', index=12, - number=14, 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='get_peers', full_name='iroha.protocol.Query.Payload.get_peers', index=13, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='get_engine_receipts', full_name='iroha.protocol.Query.Payload.get_engine_receipts', index=14, - 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='query', full_name='iroha.protocol.Query.Payload.query', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1913, - serialized_end=2848, -) - -_QUERY = _descriptor.Descriptor( - name='Query', - full_name='iroha.protocol.Query', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='payload', full_name='iroha.protocol.Query.payload', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='signature', full_name='iroha.protocol.Query.signature', 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), - ], - extensions=[ - ], - nested_types=[_QUERY_PAYLOAD, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1809, - serialized_end=2848, -) - - -_BLOCKSQUERY = _descriptor.Descriptor( - name='BlocksQuery', - full_name='iroha.protocol.BlocksQuery', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='meta', full_name='iroha.protocol.BlocksQuery.meta', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='signature', full_name='iroha.protocol.BlocksQuery.signature', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2850, - serialized_end=2957, -) - -_ORDERING_FIELDORDERING.fields_by_name['field'].enum_type = _FIELD -_ORDERING_FIELDORDERING.fields_by_name['direction'].enum_type = _DIRECTION -_ORDERING_FIELDORDERING.containing_type = _ORDERING -_ORDERING.fields_by_name['sequence'].message_type = _ORDERING_FIELDORDERING -_TXPAGINATIONMETA.fields_by_name['ordering'].message_type = _ORDERING -_TXPAGINATIONMETA.fields_by_name['first_tx_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TXPAGINATIONMETA.fields_by_name['last_tx_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TXPAGINATIONMETA.oneofs_by_name['opt_first_tx_hash'].fields.append( - _TXPAGINATIONMETA.fields_by_name['first_tx_hash']) -_TXPAGINATIONMETA.fields_by_name['first_tx_hash'].containing_oneof = _TXPAGINATIONMETA.oneofs_by_name['opt_first_tx_hash'] -_TXPAGINATIONMETA.oneofs_by_name['opt_first_tx_time'].fields.append( - _TXPAGINATIONMETA.fields_by_name['first_tx_time']) -_TXPAGINATIONMETA.fields_by_name['first_tx_time'].containing_oneof = _TXPAGINATIONMETA.oneofs_by_name['opt_first_tx_time'] -_TXPAGINATIONMETA.oneofs_by_name['opt_last_tx_time'].fields.append( - _TXPAGINATIONMETA.fields_by_name['last_tx_time']) -_TXPAGINATIONMETA.fields_by_name['last_tx_time'].containing_oneof = _TXPAGINATIONMETA.oneofs_by_name['opt_last_tx_time'] -_TXPAGINATIONMETA.oneofs_by_name['opt_first_tx_height'].fields.append( - _TXPAGINATIONMETA.fields_by_name['first_tx_height']) -_TXPAGINATIONMETA.fields_by_name['first_tx_height'].containing_oneof = _TXPAGINATIONMETA.oneofs_by_name['opt_first_tx_height'] -_TXPAGINATIONMETA.oneofs_by_name['opt_last_tx_height'].fields.append( - _TXPAGINATIONMETA.fields_by_name['last_tx_height']) -_TXPAGINATIONMETA.fields_by_name['last_tx_height'].containing_oneof = _TXPAGINATIONMETA.oneofs_by_name['opt_last_tx_height'] -_ASSETPAGINATIONMETA.oneofs_by_name['opt_first_asset_id'].fields.append( - _ASSETPAGINATIONMETA.fields_by_name['first_asset_id']) -_ASSETPAGINATIONMETA.fields_by_name['first_asset_id'].containing_oneof = _ASSETPAGINATIONMETA.oneofs_by_name['opt_first_asset_id'] -_GETACCOUNTTRANSACTIONS.fields_by_name['pagination_meta'].message_type = _TXPAGINATIONMETA -_GETACCOUNTASSETTRANSACTIONS.fields_by_name['pagination_meta'].message_type = _TXPAGINATIONMETA -_GETACCOUNTASSETS.fields_by_name['pagination_meta'].message_type = _ASSETPAGINATIONMETA -_ACCOUNTDETAILPAGINATIONMETA.fields_by_name['first_record_id'].message_type = primitive__pb2._ACCOUNTDETAILRECORDID -_GETACCOUNTDETAIL.fields_by_name['pagination_meta'].message_type = _ACCOUNTDETAILPAGINATIONMETA -_GETACCOUNTDETAIL.oneofs_by_name['opt_account_id'].fields.append( - _GETACCOUNTDETAIL.fields_by_name['account_id']) -_GETACCOUNTDETAIL.fields_by_name['account_id'].containing_oneof = _GETACCOUNTDETAIL.oneofs_by_name['opt_account_id'] -_GETACCOUNTDETAIL.oneofs_by_name['opt_key'].fields.append( - _GETACCOUNTDETAIL.fields_by_name['key']) -_GETACCOUNTDETAIL.fields_by_name['key'].containing_oneof = _GETACCOUNTDETAIL.oneofs_by_name['opt_key'] -_GETACCOUNTDETAIL.oneofs_by_name['opt_writer'].fields.append( - _GETACCOUNTDETAIL.fields_by_name['writer']) -_GETACCOUNTDETAIL.fields_by_name['writer'].containing_oneof = _GETACCOUNTDETAIL.oneofs_by_name['opt_writer'] -_GETPENDINGTRANSACTIONS.fields_by_name['pagination_meta'].message_type = _TXPAGINATIONMETA -_QUERY_PAYLOAD.fields_by_name['meta'].message_type = _QUERYPAYLOADMETA -_QUERY_PAYLOAD.fields_by_name['get_account'].message_type = _GETACCOUNT -_QUERY_PAYLOAD.fields_by_name['get_signatories'].message_type = _GETSIGNATORIES -_QUERY_PAYLOAD.fields_by_name['get_account_transactions'].message_type = _GETACCOUNTTRANSACTIONS -_QUERY_PAYLOAD.fields_by_name['get_account_asset_transactions'].message_type = _GETACCOUNTASSETTRANSACTIONS -_QUERY_PAYLOAD.fields_by_name['get_transactions'].message_type = _GETTRANSACTIONS -_QUERY_PAYLOAD.fields_by_name['get_account_assets'].message_type = _GETACCOUNTASSETS -_QUERY_PAYLOAD.fields_by_name['get_account_detail'].message_type = _GETACCOUNTDETAIL -_QUERY_PAYLOAD.fields_by_name['get_roles'].message_type = _GETROLES -_QUERY_PAYLOAD.fields_by_name['get_role_permissions'].message_type = _GETROLEPERMISSIONS -_QUERY_PAYLOAD.fields_by_name['get_asset_info'].message_type = _GETASSETINFO -_QUERY_PAYLOAD.fields_by_name['get_pending_transactions'].message_type = _GETPENDINGTRANSACTIONS -_QUERY_PAYLOAD.fields_by_name['get_block'].message_type = _GETBLOCK -_QUERY_PAYLOAD.fields_by_name['get_peers'].message_type = _GETPEERS -_QUERY_PAYLOAD.fields_by_name['get_engine_receipts'].message_type = _GETENGINERECEIPTS -_QUERY_PAYLOAD.containing_type = _QUERY -_QUERY_PAYLOAD.oneofs_by_name['query'].fields.append( - _QUERY_PAYLOAD.fields_by_name['get_account']) -_QUERY_PAYLOAD.fields_by_name['get_account'].containing_oneof = _QUERY_PAYLOAD.oneofs_by_name['query'] -_QUERY_PAYLOAD.oneofs_by_name['query'].fields.append( - _QUERY_PAYLOAD.fields_by_name['get_signatories']) -_QUERY_PAYLOAD.fields_by_name['get_signatories'].containing_oneof = _QUERY_PAYLOAD.oneofs_by_name['query'] -_QUERY_PAYLOAD.oneofs_by_name['query'].fields.append( - _QUERY_PAYLOAD.fields_by_name['get_account_transactions']) -_QUERY_PAYLOAD.fields_by_name['get_account_transactions'].containing_oneof = _QUERY_PAYLOAD.oneofs_by_name['query'] -_QUERY_PAYLOAD.oneofs_by_name['query'].fields.append( - _QUERY_PAYLOAD.fields_by_name['get_account_asset_transactions']) -_QUERY_PAYLOAD.fields_by_name['get_account_asset_transactions'].containing_oneof = _QUERY_PAYLOAD.oneofs_by_name['query'] -_QUERY_PAYLOAD.oneofs_by_name['query'].fields.append( - _QUERY_PAYLOAD.fields_by_name['get_transactions']) -_QUERY_PAYLOAD.fields_by_name['get_transactions'].containing_oneof = _QUERY_PAYLOAD.oneofs_by_name['query'] -_QUERY_PAYLOAD.oneofs_by_name['query'].fields.append( - _QUERY_PAYLOAD.fields_by_name['get_account_assets']) -_QUERY_PAYLOAD.fields_by_name['get_account_assets'].containing_oneof = _QUERY_PAYLOAD.oneofs_by_name['query'] -_QUERY_PAYLOAD.oneofs_by_name['query'].fields.append( - _QUERY_PAYLOAD.fields_by_name['get_account_detail']) -_QUERY_PAYLOAD.fields_by_name['get_account_detail'].containing_oneof = _QUERY_PAYLOAD.oneofs_by_name['query'] -_QUERY_PAYLOAD.oneofs_by_name['query'].fields.append( - _QUERY_PAYLOAD.fields_by_name['get_roles']) -_QUERY_PAYLOAD.fields_by_name['get_roles'].containing_oneof = _QUERY_PAYLOAD.oneofs_by_name['query'] -_QUERY_PAYLOAD.oneofs_by_name['query'].fields.append( - _QUERY_PAYLOAD.fields_by_name['get_role_permissions']) -_QUERY_PAYLOAD.fields_by_name['get_role_permissions'].containing_oneof = _QUERY_PAYLOAD.oneofs_by_name['query'] -_QUERY_PAYLOAD.oneofs_by_name['query'].fields.append( - _QUERY_PAYLOAD.fields_by_name['get_asset_info']) -_QUERY_PAYLOAD.fields_by_name['get_asset_info'].containing_oneof = _QUERY_PAYLOAD.oneofs_by_name['query'] -_QUERY_PAYLOAD.oneofs_by_name['query'].fields.append( - _QUERY_PAYLOAD.fields_by_name['get_pending_transactions']) -_QUERY_PAYLOAD.fields_by_name['get_pending_transactions'].containing_oneof = _QUERY_PAYLOAD.oneofs_by_name['query'] -_QUERY_PAYLOAD.oneofs_by_name['query'].fields.append( - _QUERY_PAYLOAD.fields_by_name['get_block']) -_QUERY_PAYLOAD.fields_by_name['get_block'].containing_oneof = _QUERY_PAYLOAD.oneofs_by_name['query'] -_QUERY_PAYLOAD.oneofs_by_name['query'].fields.append( - _QUERY_PAYLOAD.fields_by_name['get_peers']) -_QUERY_PAYLOAD.fields_by_name['get_peers'].containing_oneof = _QUERY_PAYLOAD.oneofs_by_name['query'] -_QUERY_PAYLOAD.oneofs_by_name['query'].fields.append( - _QUERY_PAYLOAD.fields_by_name['get_engine_receipts']) -_QUERY_PAYLOAD.fields_by_name['get_engine_receipts'].containing_oneof = _QUERY_PAYLOAD.oneofs_by_name['query'] -_QUERY.fields_by_name['payload'].message_type = _QUERY_PAYLOAD -_QUERY.fields_by_name['signature'].message_type = primitive__pb2._SIGNATURE -_BLOCKSQUERY.fields_by_name['meta'].message_type = _QUERYPAYLOADMETA -_BLOCKSQUERY.fields_by_name['signature'].message_type = primitive__pb2._SIGNATURE -DESCRIPTOR.message_types_by_name['Ordering'] = _ORDERING -DESCRIPTOR.message_types_by_name['TxPaginationMeta'] = _TXPAGINATIONMETA -DESCRIPTOR.message_types_by_name['AssetPaginationMeta'] = _ASSETPAGINATIONMETA -DESCRIPTOR.message_types_by_name['GetAccount'] = _GETACCOUNT -DESCRIPTOR.message_types_by_name['GetBlock'] = _GETBLOCK -DESCRIPTOR.message_types_by_name['GetSignatories'] = _GETSIGNATORIES -DESCRIPTOR.message_types_by_name['GetAccountTransactions'] = _GETACCOUNTTRANSACTIONS -DESCRIPTOR.message_types_by_name['GetAccountAssetTransactions'] = _GETACCOUNTASSETTRANSACTIONS -DESCRIPTOR.message_types_by_name['GetTransactions'] = _GETTRANSACTIONS -DESCRIPTOR.message_types_by_name['GetAccountAssets'] = _GETACCOUNTASSETS -DESCRIPTOR.message_types_by_name['AccountDetailPaginationMeta'] = _ACCOUNTDETAILPAGINATIONMETA -DESCRIPTOR.message_types_by_name['GetAccountDetail'] = _GETACCOUNTDETAIL -DESCRIPTOR.message_types_by_name['GetAssetInfo'] = _GETASSETINFO -DESCRIPTOR.message_types_by_name['GetRoles'] = _GETROLES -DESCRIPTOR.message_types_by_name['GetRolePermissions'] = _GETROLEPERMISSIONS -DESCRIPTOR.message_types_by_name['GetPendingTransactions'] = _GETPENDINGTRANSACTIONS -DESCRIPTOR.message_types_by_name['GetPeers'] = _GETPEERS -DESCRIPTOR.message_types_by_name['QueryPayloadMeta'] = _QUERYPAYLOADMETA -DESCRIPTOR.message_types_by_name['GetEngineReceipts'] = _GETENGINERECEIPTS -DESCRIPTOR.message_types_by_name['Query'] = _QUERY -DESCRIPTOR.message_types_by_name['BlocksQuery'] = _BLOCKSQUERY -DESCRIPTOR.enum_types_by_name['Field'] = _FIELD -DESCRIPTOR.enum_types_by_name['Direction'] = _DIRECTION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Ordering = _reflection.GeneratedProtocolMessageType('Ordering', (_message.Message,), dict( - - FieldOrdering = _reflection.GeneratedProtocolMessageType('FieldOrdering', (_message.Message,), dict( - DESCRIPTOR = _ORDERING_FIELDORDERING, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Ordering.FieldOrdering) - )) - , - DESCRIPTOR = _ORDERING, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Ordering) - )) -_sym_db.RegisterMessage(Ordering) -_sym_db.RegisterMessage(Ordering.FieldOrdering) - -TxPaginationMeta = _reflection.GeneratedProtocolMessageType('TxPaginationMeta', (_message.Message,), dict( - DESCRIPTOR = _TXPAGINATIONMETA, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.TxPaginationMeta) - )) -_sym_db.RegisterMessage(TxPaginationMeta) - -AssetPaginationMeta = _reflection.GeneratedProtocolMessageType('AssetPaginationMeta', (_message.Message,), dict( - DESCRIPTOR = _ASSETPAGINATIONMETA, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.AssetPaginationMeta) - )) -_sym_db.RegisterMessage(AssetPaginationMeta) - -GetAccount = _reflection.GeneratedProtocolMessageType('GetAccount', (_message.Message,), dict( - DESCRIPTOR = _GETACCOUNT, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.GetAccount) - )) -_sym_db.RegisterMessage(GetAccount) - -GetBlock = _reflection.GeneratedProtocolMessageType('GetBlock', (_message.Message,), dict( - DESCRIPTOR = _GETBLOCK, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.GetBlock) - )) -_sym_db.RegisterMessage(GetBlock) - -GetSignatories = _reflection.GeneratedProtocolMessageType('GetSignatories', (_message.Message,), dict( - DESCRIPTOR = _GETSIGNATORIES, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.GetSignatories) - )) -_sym_db.RegisterMessage(GetSignatories) - -GetAccountTransactions = _reflection.GeneratedProtocolMessageType('GetAccountTransactions', (_message.Message,), dict( - DESCRIPTOR = _GETACCOUNTTRANSACTIONS, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.GetAccountTransactions) - )) -_sym_db.RegisterMessage(GetAccountTransactions) - -GetAccountAssetTransactions = _reflection.GeneratedProtocolMessageType('GetAccountAssetTransactions', (_message.Message,), dict( - DESCRIPTOR = _GETACCOUNTASSETTRANSACTIONS, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.GetAccountAssetTransactions) - )) -_sym_db.RegisterMessage(GetAccountAssetTransactions) - -GetTransactions = _reflection.GeneratedProtocolMessageType('GetTransactions', (_message.Message,), dict( - DESCRIPTOR = _GETTRANSACTIONS, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.GetTransactions) - )) -_sym_db.RegisterMessage(GetTransactions) - -GetAccountAssets = _reflection.GeneratedProtocolMessageType('GetAccountAssets', (_message.Message,), dict( - DESCRIPTOR = _GETACCOUNTASSETS, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.GetAccountAssets) - )) -_sym_db.RegisterMessage(GetAccountAssets) - -AccountDetailPaginationMeta = _reflection.GeneratedProtocolMessageType('AccountDetailPaginationMeta', (_message.Message,), dict( - DESCRIPTOR = _ACCOUNTDETAILPAGINATIONMETA, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.AccountDetailPaginationMeta) - )) -_sym_db.RegisterMessage(AccountDetailPaginationMeta) - -GetAccountDetail = _reflection.GeneratedProtocolMessageType('GetAccountDetail', (_message.Message,), dict( - DESCRIPTOR = _GETACCOUNTDETAIL, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.GetAccountDetail) - )) -_sym_db.RegisterMessage(GetAccountDetail) - -GetAssetInfo = _reflection.GeneratedProtocolMessageType('GetAssetInfo', (_message.Message,), dict( - DESCRIPTOR = _GETASSETINFO, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.GetAssetInfo) - )) -_sym_db.RegisterMessage(GetAssetInfo) - -GetRoles = _reflection.GeneratedProtocolMessageType('GetRoles', (_message.Message,), dict( - DESCRIPTOR = _GETROLES, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.GetRoles) - )) -_sym_db.RegisterMessage(GetRoles) - -GetRolePermissions = _reflection.GeneratedProtocolMessageType('GetRolePermissions', (_message.Message,), dict( - DESCRIPTOR = _GETROLEPERMISSIONS, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.GetRolePermissions) - )) -_sym_db.RegisterMessage(GetRolePermissions) - -GetPendingTransactions = _reflection.GeneratedProtocolMessageType('GetPendingTransactions', (_message.Message,), dict( - DESCRIPTOR = _GETPENDINGTRANSACTIONS, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.GetPendingTransactions) - )) -_sym_db.RegisterMessage(GetPendingTransactions) - -GetPeers = _reflection.GeneratedProtocolMessageType('GetPeers', (_message.Message,), dict( - DESCRIPTOR = _GETPEERS, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.GetPeers) - )) -_sym_db.RegisterMessage(GetPeers) - -QueryPayloadMeta = _reflection.GeneratedProtocolMessageType('QueryPayloadMeta', (_message.Message,), dict( - DESCRIPTOR = _QUERYPAYLOADMETA, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.QueryPayloadMeta) - )) -_sym_db.RegisterMessage(QueryPayloadMeta) - -GetEngineReceipts = _reflection.GeneratedProtocolMessageType('GetEngineReceipts', (_message.Message,), dict( - DESCRIPTOR = _GETENGINERECEIPTS, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.GetEngineReceipts) - )) -_sym_db.RegisterMessage(GetEngineReceipts) - -Query = _reflection.GeneratedProtocolMessageType('Query', (_message.Message,), dict( - - Payload = _reflection.GeneratedProtocolMessageType('Payload', (_message.Message,), dict( - DESCRIPTOR = _QUERY_PAYLOAD, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Query.Payload) - )) - , - DESCRIPTOR = _QUERY, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Query) - )) -_sym_db.RegisterMessage(Query) -_sym_db.RegisterMessage(Query.Payload) - -BlocksQuery = _reflection.GeneratedProtocolMessageType('BlocksQuery', (_message.Message,), dict( - DESCRIPTOR = _BLOCKSQUERY, - __module__ = 'queries_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.BlocksQuery) - )) -_sym_db.RegisterMessage(BlocksQuery) - - -DESCRIPTOR._options = None +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rqueries.proto\x12\x0eiroha.protocol\x1a\x0fprimitive.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa9\x01\n\x08Ordering\x12\x38\n\x08sequence\x18\x01 \x03(\x0b\x32&.iroha.protocol.Ordering.FieldOrdering\x1a\x63\n\rFieldOrdering\x12$\n\x05\x66ield\x18\x01 \x01(\x0e\x32\x15.iroha.protocol.Field\x12,\n\tdirection\x18\x02 \x01(\x0e\x32\x19.iroha.protocol.Direction\"\xf3\x02\n\x10TxPaginationMeta\x12\x11\n\tpage_size\x18\x01 \x01(\r\x12\x17\n\rfirst_tx_hash\x18\x02 \x01(\tH\x00\x12*\n\x08ordering\x18\x03 \x01(\x0b\x32\x18.iroha.protocol.Ordering\x12\x33\n\rfirst_tx_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x12\x32\n\x0clast_tx_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02\x12\x19\n\x0f\x66irst_tx_height\x18\x06 \x01(\x04H\x03\x12\x18\n\x0elast_tx_height\x18\x07 \x01(\x04H\x04\x42\x13\n\x11opt_first_tx_hashB\x13\n\x11opt_first_tx_timeB\x12\n\x10opt_last_tx_timeB\x15\n\x13opt_first_tx_heightB\x14\n\x12opt_last_tx_height\"X\n\x13\x41ssetPaginationMeta\x12\x11\n\tpage_size\x18\x01 \x01(\r\x12\x18\n\x0e\x66irst_asset_id\x18\x02 \x01(\tH\x00\x42\x14\n\x12opt_first_asset_id\" \n\nGetAccount\x12\x12\n\naccount_id\x18\x01 \x01(\t\"\x1a\n\x08GetBlock\x12\x0e\n\x06height\x18\x01 \x01(\x04\"$\n\x0eGetSignatories\x12\x12\n\naccount_id\x18\x01 \x01(\t\"g\n\x16GetAccountTransactions\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x39\n\x0fpagination_meta\x18\x02 \x01(\x0b\x32 .iroha.protocol.TxPaginationMeta\"~\n\x1bGetAccountAssetTransactions\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x10\n\x08\x61sset_id\x18\x02 \x01(\t\x12\x39\n\x0fpagination_meta\x18\x03 \x01(\x0b\x32 .iroha.protocol.TxPaginationMeta\"$\n\x0fGetTransactions\x12\x11\n\ttx_hashes\x18\x01 \x03(\t\"d\n\x10GetAccountAssets\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12<\n\x0fpagination_meta\x18\x02 \x01(\x0b\x32#.iroha.protocol.AssetPaginationMeta\"p\n\x1b\x41\x63\x63ountDetailPaginationMeta\x12\x11\n\tpage_size\x18\x01 \x01(\r\x12>\n\x0f\x66irst_record_id\x18\x02 \x01(\x0b\x32%.iroha.protocol.AccountDetailRecordId\"\xba\x01\n\x10GetAccountDetail\x12\x14\n\naccount_id\x18\x01 \x01(\tH\x00\x12\r\n\x03key\x18\x02 \x01(\tH\x01\x12\x10\n\x06writer\x18\x03 \x01(\tH\x02\x12\x44\n\x0fpagination_meta\x18\x04 \x01(\x0b\x32+.iroha.protocol.AccountDetailPaginationMetaB\x10\n\x0eopt_account_idB\t\n\x07opt_keyB\x0c\n\nopt_writer\" \n\x0cGetAssetInfo\x12\x10\n\x08\x61sset_id\x18\x01 \x01(\t\"\n\n\x08GetRoles\"%\n\x12GetRolePermissions\x12\x0f\n\x07role_id\x18\x01 \x01(\t\"S\n\x16GetPendingTransactions\x12\x39\n\x0fpagination_meta\x18\x01 \x01(\x0b\x32 .iroha.protocol.TxPaginationMeta\"\n\n\x08GetPeers\"[\n\x10QueryPayloadMeta\x12\x14\n\x0c\x63reated_time\x18\x01 \x01(\x04\x12\x1a\n\x12\x63reator_account_id\x18\x02 \x01(\t\x12\x15\n\rquery_counter\x18\x03 \x01(\x04\"$\n\x11GetEngineReceipts\x12\x0f\n\x07tx_hash\x18\x01 \x01(\t\"\x8f\x08\n\x05Query\x12.\n\x07payload\x18\x01 \x01(\x0b\x32\x1d.iroha.protocol.Query.Payload\x12,\n\tsignature\x18\x02 \x01(\x0b\x32\x19.iroha.protocol.Signature\x1a\xa7\x07\n\x07Payload\x12.\n\x04meta\x18\x01 \x01(\x0b\x32 .iroha.protocol.QueryPayloadMeta\x12\x31\n\x0bget_account\x18\x03 \x01(\x0b\x32\x1a.iroha.protocol.GetAccountH\x00\x12\x39\n\x0fget_signatories\x18\x04 \x01(\x0b\x32\x1e.iroha.protocol.GetSignatoriesH\x00\x12J\n\x18get_account_transactions\x18\x05 \x01(\x0b\x32&.iroha.protocol.GetAccountTransactionsH\x00\x12U\n\x1eget_account_asset_transactions\x18\x06 \x01(\x0b\x32+.iroha.protocol.GetAccountAssetTransactionsH\x00\x12;\n\x10get_transactions\x18\x07 \x01(\x0b\x32\x1f.iroha.protocol.GetTransactionsH\x00\x12>\n\x12get_account_assets\x18\x08 \x01(\x0b\x32 .iroha.protocol.GetAccountAssetsH\x00\x12>\n\x12get_account_detail\x18\t \x01(\x0b\x32 .iroha.protocol.GetAccountDetailH\x00\x12-\n\tget_roles\x18\n \x01(\x0b\x32\x18.iroha.protocol.GetRolesH\x00\x12\x42\n\x14get_role_permissions\x18\x0b \x01(\x0b\x32\".iroha.protocol.GetRolePermissionsH\x00\x12\x36\n\x0eget_asset_info\x18\x0c \x01(\x0b\x32\x1c.iroha.protocol.GetAssetInfoH\x00\x12J\n\x18get_pending_transactions\x18\r \x01(\x0b\x32&.iroha.protocol.GetPendingTransactionsH\x00\x12-\n\tget_block\x18\x0e \x01(\x0b\x32\x18.iroha.protocol.GetBlockH\x00\x12-\n\tget_peers\x18\x0f \x01(\x0b\x32\x18.iroha.protocol.GetPeersH\x00\x12@\n\x13get_engine_receipts\x18\x10 \x01(\x0b\x32!.iroha.protocol.GetEngineReceiptsH\x00\x42\x07\n\x05query\"k\n\x0b\x42locksQuery\x12.\n\x04meta\x18\x01 \x01(\x0b\x32 .iroha.protocol.QueryPayloadMeta\x12,\n\tsignature\x18\x02 \x01(\x0b\x32\x19.iroha.protocol.Signature*(\n\x05\x46ield\x12\x10\n\x0ckCreatedTime\x10\x00\x12\r\n\tkPosition\x10\x01*,\n\tDirection\x12\x0e\n\nkAscending\x10\x00\x12\x0f\n\x0bkDescending\x10\x01\x42\x1aZ\x18iroha.generated/protocolb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'queries_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\030iroha.generated/protocol' + _globals['_FIELD']._serialized_start=2959 + _globals['_FIELD']._serialized_end=2999 + _globals['_DIRECTION']._serialized_start=3001 + _globals['_DIRECTION']._serialized_end=3045 + _globals['_ORDERING']._serialized_start=84 + _globals['_ORDERING']._serialized_end=253 + _globals['_ORDERING_FIELDORDERING']._serialized_start=154 + _globals['_ORDERING_FIELDORDERING']._serialized_end=253 + _globals['_TXPAGINATIONMETA']._serialized_start=256 + _globals['_TXPAGINATIONMETA']._serialized_end=627 + _globals['_ASSETPAGINATIONMETA']._serialized_start=629 + _globals['_ASSETPAGINATIONMETA']._serialized_end=717 + _globals['_GETACCOUNT']._serialized_start=719 + _globals['_GETACCOUNT']._serialized_end=751 + _globals['_GETBLOCK']._serialized_start=753 + _globals['_GETBLOCK']._serialized_end=779 + _globals['_GETSIGNATORIES']._serialized_start=781 + _globals['_GETSIGNATORIES']._serialized_end=817 + _globals['_GETACCOUNTTRANSACTIONS']._serialized_start=819 + _globals['_GETACCOUNTTRANSACTIONS']._serialized_end=922 + _globals['_GETACCOUNTASSETTRANSACTIONS']._serialized_start=924 + _globals['_GETACCOUNTASSETTRANSACTIONS']._serialized_end=1050 + _globals['_GETTRANSACTIONS']._serialized_start=1052 + _globals['_GETTRANSACTIONS']._serialized_end=1088 + _globals['_GETACCOUNTASSETS']._serialized_start=1090 + _globals['_GETACCOUNTASSETS']._serialized_end=1190 + _globals['_ACCOUNTDETAILPAGINATIONMETA']._serialized_start=1192 + _globals['_ACCOUNTDETAILPAGINATIONMETA']._serialized_end=1304 + _globals['_GETACCOUNTDETAIL']._serialized_start=1307 + _globals['_GETACCOUNTDETAIL']._serialized_end=1493 + _globals['_GETASSETINFO']._serialized_start=1495 + _globals['_GETASSETINFO']._serialized_end=1527 + _globals['_GETROLES']._serialized_start=1529 + _globals['_GETROLES']._serialized_end=1539 + _globals['_GETROLEPERMISSIONS']._serialized_start=1541 + _globals['_GETROLEPERMISSIONS']._serialized_end=1578 + _globals['_GETPENDINGTRANSACTIONS']._serialized_start=1580 + _globals['_GETPENDINGTRANSACTIONS']._serialized_end=1663 + _globals['_GETPEERS']._serialized_start=1665 + _globals['_GETPEERS']._serialized_end=1675 + _globals['_QUERYPAYLOADMETA']._serialized_start=1677 + _globals['_QUERYPAYLOADMETA']._serialized_end=1768 + _globals['_GETENGINERECEIPTS']._serialized_start=1770 + _globals['_GETENGINERECEIPTS']._serialized_end=1806 + _globals['_QUERY']._serialized_start=1809 + _globals['_QUERY']._serialized_end=2848 + _globals['_QUERY_PAYLOAD']._serialized_start=1913 + _globals['_QUERY_PAYLOAD']._serialized_end=2848 + _globals['_BLOCKSQUERY']._serialized_start=2850 + _globals['_BLOCKSQUERY']._serialized_end=2957 # @@protoc_insertion_point(module_scope) diff --git a/iroha/transaction_pb2.py b/iroha/transaction_pb2.py index d7ce27d7..7cdcc297 100644 --- a/iroha/transaction_pb2.py +++ b/iroha/transaction_pb2.py @@ -1,12 +1,11 @@ +# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: transaction.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +"""Generated protocol buffer code.""" 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 descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -16,253 +15,23 @@ from . import primitive_pb2 as primitive__pb2 -DESCRIPTOR = _descriptor.FileDescriptor( - name='transaction.proto', - package='iroha.protocol', - syntax='proto3', - serialized_options=_b('Z\030iroha.generated/protocol'), - serialized_pb=_b('\n\x11transaction.proto\x12\x0eiroha.protocol\x1a\x0e\x63ommands.proto\x1a\x0fprimitive.proto\"\xb4\x04\n\x0bTransaction\x12\x34\n\x07payload\x18\x01 \x01(\x0b\x32#.iroha.protocol.Transaction.Payload\x12-\n\nsignatures\x18\x02 \x03(\x0b\x32\x19.iroha.protocol.Signature\x1a\xbf\x03\n\x07Payload\x12K\n\x0freduced_payload\x18\x01 \x01(\x0b\x32\x32.iroha.protocol.Transaction.Payload.ReducedPayload\x12>\n\x05\x62\x61tch\x18\x05 \x01(\x0b\x32-.iroha.protocol.Transaction.Payload.BatchMetaH\x00\x1a\x90\x01\n\tBatchMeta\x12\x45\n\x04type\x18\x01 \x01(\x0e\x32\x37.iroha.protocol.Transaction.Payload.BatchMeta.BatchType\x12\x16\n\x0ereduced_hashes\x18\x02 \x03(\t\"$\n\tBatchType\x12\n\n\x06\x41TOMIC\x10\x00\x12\x0b\n\x07ORDERED\x10\x01\x1a}\n\x0eReducedPayload\x12)\n\x08\x63ommands\x18\x01 \x03(\x0b\x32\x17.iroha.protocol.Command\x12\x1a\n\x12\x63reator_account_id\x18\x02 \x01(\t\x12\x14\n\x0c\x63reated_time\x18\x03 \x01(\x04\x12\x0e\n\x06quorum\x18\x04 \x01(\rB\x15\n\x13optional_batch_metaB\x1aZ\x18iroha.generated/protocolb\x06proto3') - , - dependencies=[commands__pb2.DESCRIPTOR,primitive__pb2.DESCRIPTOR,]) - - - -_TRANSACTION_PAYLOAD_BATCHMETA_BATCHTYPE = _descriptor.EnumDescriptor( - name='BatchType', - full_name='iroha.protocol.Transaction.Payload.BatchMeta.BatchType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='ATOMIC', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ORDERED', index=1, number=1, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=449, - serialized_end=485, -) -_sym_db.RegisterEnumDescriptor(_TRANSACTION_PAYLOAD_BATCHMETA_BATCHTYPE) - - -_TRANSACTION_PAYLOAD_BATCHMETA = _descriptor.Descriptor( - name='BatchMeta', - full_name='iroha.protocol.Transaction.Payload.BatchMeta', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='iroha.protocol.Transaction.Payload.BatchMeta.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='reduced_hashes', full_name='iroha.protocol.Transaction.Payload.BatchMeta.reduced_hashes', index=1, - number=2, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _TRANSACTION_PAYLOAD_BATCHMETA_BATCHTYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=341, - serialized_end=485, -) - -_TRANSACTION_PAYLOAD_REDUCEDPAYLOAD = _descriptor.Descriptor( - name='ReducedPayload', - full_name='iroha.protocol.Transaction.Payload.ReducedPayload', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='commands', full_name='iroha.protocol.Transaction.Payload.ReducedPayload.commands', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='creator_account_id', full_name='iroha.protocol.Transaction.Payload.ReducedPayload.creator_account_id', 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='created_time', full_name='iroha.protocol.Transaction.Payload.ReducedPayload.created_time', 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, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='quorum', full_name='iroha.protocol.Transaction.Payload.ReducedPayload.quorum', index=3, - number=4, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=487, - serialized_end=612, -) - -_TRANSACTION_PAYLOAD = _descriptor.Descriptor( - name='Payload', - full_name='iroha.protocol.Transaction.Payload', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='reduced_payload', full_name='iroha.protocol.Transaction.Payload.reduced_payload', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='batch', full_name='iroha.protocol.Transaction.Payload.batch', index=1, - 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_TRANSACTION_PAYLOAD_BATCHMETA, _TRANSACTION_PAYLOAD_REDUCEDPAYLOAD, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='optional_batch_meta', full_name='iroha.protocol.Transaction.Payload.optional_batch_meta', - index=0, containing_type=None, fields=[]), - ], - serialized_start=188, - serialized_end=635, -) - -_TRANSACTION = _descriptor.Descriptor( - name='Transaction', - full_name='iroha.protocol.Transaction', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='payload', full_name='iroha.protocol.Transaction.payload', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='signatures', full_name='iroha.protocol.Transaction.signatures', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_TRANSACTION_PAYLOAD, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=71, - serialized_end=635, -) - -_TRANSACTION_PAYLOAD_BATCHMETA.fields_by_name['type'].enum_type = _TRANSACTION_PAYLOAD_BATCHMETA_BATCHTYPE -_TRANSACTION_PAYLOAD_BATCHMETA.containing_type = _TRANSACTION_PAYLOAD -_TRANSACTION_PAYLOAD_BATCHMETA_BATCHTYPE.containing_type = _TRANSACTION_PAYLOAD_BATCHMETA -_TRANSACTION_PAYLOAD_REDUCEDPAYLOAD.fields_by_name['commands'].message_type = commands__pb2._COMMAND -_TRANSACTION_PAYLOAD_REDUCEDPAYLOAD.containing_type = _TRANSACTION_PAYLOAD -_TRANSACTION_PAYLOAD.fields_by_name['reduced_payload'].message_type = _TRANSACTION_PAYLOAD_REDUCEDPAYLOAD -_TRANSACTION_PAYLOAD.fields_by_name['batch'].message_type = _TRANSACTION_PAYLOAD_BATCHMETA -_TRANSACTION_PAYLOAD.containing_type = _TRANSACTION -_TRANSACTION_PAYLOAD.oneofs_by_name['optional_batch_meta'].fields.append( - _TRANSACTION_PAYLOAD.fields_by_name['batch']) -_TRANSACTION_PAYLOAD.fields_by_name['batch'].containing_oneof = _TRANSACTION_PAYLOAD.oneofs_by_name['optional_batch_meta'] -_TRANSACTION.fields_by_name['payload'].message_type = _TRANSACTION_PAYLOAD -_TRANSACTION.fields_by_name['signatures'].message_type = primitive__pb2._SIGNATURE -DESCRIPTOR.message_types_by_name['Transaction'] = _TRANSACTION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Transaction = _reflection.GeneratedProtocolMessageType('Transaction', (_message.Message,), dict( - - Payload = _reflection.GeneratedProtocolMessageType('Payload', (_message.Message,), dict( - - BatchMeta = _reflection.GeneratedProtocolMessageType('BatchMeta', (_message.Message,), dict( - DESCRIPTOR = _TRANSACTION_PAYLOAD_BATCHMETA, - __module__ = 'transaction_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Transaction.Payload.BatchMeta) - )) - , - - ReducedPayload = _reflection.GeneratedProtocolMessageType('ReducedPayload', (_message.Message,), dict( - DESCRIPTOR = _TRANSACTION_PAYLOAD_REDUCEDPAYLOAD, - __module__ = 'transaction_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Transaction.Payload.ReducedPayload) - )) - , - DESCRIPTOR = _TRANSACTION_PAYLOAD, - __module__ = 'transaction_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Transaction.Payload) - )) - , - DESCRIPTOR = _TRANSACTION, - __module__ = 'transaction_pb2' - # @@protoc_insertion_point(class_scope:iroha.protocol.Transaction) - )) -_sym_db.RegisterMessage(Transaction) -_sym_db.RegisterMessage(Transaction.Payload) -_sym_db.RegisterMessage(Transaction.Payload.BatchMeta) -_sym_db.RegisterMessage(Transaction.Payload.ReducedPayload) - - -DESCRIPTOR._options = None +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11transaction.proto\x12\x0eiroha.protocol\x1a\x0e\x63ommands.proto\x1a\x0fprimitive.proto\"\xb4\x04\n\x0bTransaction\x12\x34\n\x07payload\x18\x01 \x01(\x0b\x32#.iroha.protocol.Transaction.Payload\x12-\n\nsignatures\x18\x02 \x03(\x0b\x32\x19.iroha.protocol.Signature\x1a\xbf\x03\n\x07Payload\x12K\n\x0freduced_payload\x18\x01 \x01(\x0b\x32\x32.iroha.protocol.Transaction.Payload.ReducedPayload\x12>\n\x05\x62\x61tch\x18\x05 \x01(\x0b\x32-.iroha.protocol.Transaction.Payload.BatchMetaH\x00\x1a\x90\x01\n\tBatchMeta\x12\x45\n\x04type\x18\x01 \x01(\x0e\x32\x37.iroha.protocol.Transaction.Payload.BatchMeta.BatchType\x12\x16\n\x0ereduced_hashes\x18\x02 \x03(\t\"$\n\tBatchType\x12\n\n\x06\x41TOMIC\x10\x00\x12\x0b\n\x07ORDERED\x10\x01\x1a}\n\x0eReducedPayload\x12)\n\x08\x63ommands\x18\x01 \x03(\x0b\x32\x17.iroha.protocol.Command\x12\x1a\n\x12\x63reator_account_id\x18\x02 \x01(\t\x12\x14\n\x0c\x63reated_time\x18\x03 \x01(\x04\x12\x0e\n\x06quorum\x18\x04 \x01(\rB\x15\n\x13optional_batch_metaB\x1aZ\x18iroha.generated/protocolb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transaction_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\030iroha.generated/protocol' + _globals['_TRANSACTION']._serialized_start=71 + _globals['_TRANSACTION']._serialized_end=635 + _globals['_TRANSACTION_PAYLOAD']._serialized_start=188 + _globals['_TRANSACTION_PAYLOAD']._serialized_end=635 + _globals['_TRANSACTION_PAYLOAD_BATCHMETA']._serialized_start=341 + _globals['_TRANSACTION_PAYLOAD_BATCHMETA']._serialized_end=485 + _globals['_TRANSACTION_PAYLOAD_BATCHMETA_BATCHTYPE']._serialized_start=449 + _globals['_TRANSACTION_PAYLOAD_BATCHMETA_BATCHTYPE']._serialized_end=485 + _globals['_TRANSACTION_PAYLOAD_REDUCEDPAYLOAD']._serialized_start=487 + _globals['_TRANSACTION_PAYLOAD_REDUCEDPAYLOAD']._serialized_end=612 # @@protoc_insertion_point(module_scope) diff --git a/schema/commands.proto b/schema/commands.proto index 320a523b..df8cc7f0 100644 --- a/schema/commands.proto +++ b/schema/commands.proto @@ -13,6 +13,7 @@ import "primitive.proto"; message AddAssetQuantity { string asset_id = 1; string amount = 2; + optional string description = 3; } message AddPeer { @@ -97,6 +98,7 @@ message RevokePermission { message SubtractAssetQuantity { string asset_id = 1; string amount = 2; + optional string description = 3; } message CompareAndSetAccountDetail {