From e0a4f9be3e3aae2ce0fa256642fe6c4e75583db7 Mon Sep 17 00:00:00 2001 From: "G. Bazior" Date: Wed, 23 Mar 2022 09:53:46 +0100 Subject: [PATCH] cherry-pick new features from develop -> main (#97) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Extending TxPaginationMeta in queries (#77) * quries extended * example added * docs comment added * schema changed * formatting fixed * ordering added * edge case fix, now 0 passed as height or timestamp is passing * PaginationMeta in GetPendingTransactions * examples/query_transactions.py Signed-off-by: Piotr Pawlowski Signed-off-by: G.Bazior * Update proto files and generated python files to support Iroha 1.4 (#96) * Update proto files with script `download-schema.py` Signed-off-by: Grzegorz Bazior * Generated python files from protobuf files with script `compile-proto.py` Signed-off-by: G.Bazior Co-authored-by: Grzegorz Bazior Signed-off-by: G.Bazior * Corrected merge - rerun scripts: download-schema.py and compile-proto.py Signed-off-by: G.Bazior * Tab -> spaces Signed-off-by: G.Bazior * Add ability to provide custom TLS cert (#63) Signed-off-by: Stepan Lavrentev Signed-off-by: G.Bazior * Add ordering sequence to params in query (#73) * Add ordering sequence to params Makes possible to add ordering sequence to Query. Fixes #72 Signed-off-by: Rafik Naccache * Add :param ordering_sequence: Signed-off-by: Rafik Naccache * Fix wrong example for :param ordering_sequence: Signed-off-by: Rafik Naccache * fix wrong ordering message construction in query After more documentation I got to the way to construct to ordering object Signed-off-by: Rafik Naccache * remove redundant OR clause to manage ordering_sequence Signed-off-by: Rafik Naccache Signed-off-by: G.Bazior * Extending TxPaginationMeta in queries (#77) * quries extended * example added * docs comment added * schema changed * formatting fixed * ordering added * edge case fix, now 0 passed as height or timestamp is passing * PaginationMeta in GetPendingTransactions * examples/query_transactions.py Signed-off-by: Piotr Pawlowski Signed-off-by: G.Bazior * Added missing changes from https://github.com/Pawlak00/iroha-python/commit/b6d7f421fa51200fe5e006585812d77c2f872a6a corrected in https://github.com/hyperledger/iroha-python/pull/77/ Signed-off-by: G.Bazior Co-authored-by: Piotr Pawłowski <68233055+Pawlak00@users.noreply.github.com> Co-authored-by: Grzegorz Bazior Co-authored-by: Stepan Lavrentev <40560660+stepanLav@users.noreply.github.com> Co-authored-by: Rafik NACCACHE --- examples/query_transactions.py | 228 ++++++ iroha/block_pb2.py | 174 +---- iroha/commands_pb2.py | 1213 ++------------------------------ iroha/endpoint_pb2.py | 73 +- iroha/endpoint_pb2_grpc.py | 400 +++++++---- iroha/iroha.py | 27 +- iroha/primitive_pb2.py | 595 +--------------- iroha/proposal_pb2.py | 68 +- iroha/qry_responses_pb2.py | 1200 +++---------------------------- iroha/queries_pb2.py | 1176 +++---------------------------- iroha/transaction_pb2.py | 238 +------ schema/commands.proto | 1 + schema/endpoint.proto | 1 + schema/primitive.proto | 1 + schema/qry_responses.proto | 18 + schema/queries.proto | 31 +- 16 files changed, 935 insertions(+), 4509 deletions(-) create mode 100644 examples/query_transactions.py diff --git a/examples/query_transactions.py b/examples/query_transactions.py new file mode 100644 index 00000000..449f94e0 --- /dev/null +++ b/examples/query_transactions.py @@ -0,0 +1,228 @@ +#!/usr/bin/env python3 +# +# Copyright Soramitsu Co., Ltd. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# + + +# Here are Iroha dependencies. +# Python library generally consists of 3 parts: +# Iroha, IrohaCrypto and IrohaGrpc which we need to import: +import os +import binascii +from iroha import IrohaCrypto +from iroha import Iroha, IrohaGrpc +from google.protobuf.timestamp_pb2 import Timestamp +from iroha.primitive_pb2 import can_set_my_account_detail +import sys + +if sys.version_info[0] < 3: + raise Exception('Python 3 or a more recent version is required.') + +# Here is the information about the environment and admin account information: +IROHA_HOST_ADDR = os.getenv('IROHA_HOST_ADDR', '127.0.0.1') +IROHA_PORT = os.getenv('IROHA_PORT', '50051') +ADMIN_ACCOUNT_ID = os.getenv('ADMIN_ACCOUNT_ID', 'admin@test') +ADMIN_PRIVATE_KEY = os.getenv( + 'ADMIN_PRIVATE_KEY', 'f101537e319568c765b2cc89698325604991dca57b9716b58016b253506cab70') + +# Here we will create user keys +user_private_key = IrohaCrypto.private_key() +user_public_key = IrohaCrypto.derive_public_key(user_private_key) +iroha = Iroha(ADMIN_ACCOUNT_ID) +net = IrohaGrpc('{}:{}'.format(IROHA_HOST_ADDR, IROHA_PORT)) + + +def trace(func): + """ + A decorator for tracing methods' begin/end execution points + """ + + def tracer(*args, **kwargs): + name = func.__name__ + print('\tEntering "{}"'.format(name)) + result = func(*args, **kwargs) + print('\tLeaving "{}"'.format(name)) + return result + + return tracer + +# Let's start defining the commands: +@trace +def send_transaction_and_print_status(transaction): + hex_hash = binascii.hexlify(IrohaCrypto.hash(transaction)) + print('Transaction hash = {}, creator = {}'.format( + hex_hash, transaction.payload.reduced_payload.creator_account_id)) + net.send_tx(transaction) + for status in net.tx_status_stream(transaction): + print(status) + +# For example, below we define a transaction made of 2 commands: +# CreateDomain and CreateAsset. +# Each of Iroha commands has its own set of parameters and there are many commands. +# You can check out all of them here: +# https://iroha.readthedocs.io/en/main/develop/api/commands.html +@trace +def create_domain_and_asset(): + """ + Create domain 'domain' and asset 'coin#domain' with precision 2 + """ + commands = [ + iroha.command('CreateDomain', domain_id='domain', default_role='user'), + iroha.command('CreateAsset', asset_name='coin', + domain_id='domain', precision=2) + ] +# And sign the transaction using the keys from earlier: + tx = IrohaCrypto.sign_transaction( + iroha.transaction(commands), ADMIN_PRIVATE_KEY) + send_transaction_and_print_status(tx) +# You can define queries +# (https://iroha.readthedocs.io/en/main/develop/api/queries.html) +# the same way. + +@trace +def add_coin_to_admin(): + """ + Add 1000.00 units of 'coin#domain' to 'admin@test' + """ + tx = iroha.transaction([ + iroha.command('AddAssetQuantity', + asset_id='coin#domain', amount='1000.00') + ]) + IrohaCrypto.sign_transaction(tx, ADMIN_PRIVATE_KEY) + send_transaction_and_print_status(tx) + tx_tms = tx.payload.reduced_payload.created_time + print(tx_tms) + first_time, last_time = tx_tms - 1, tx_tms + 1 + return first_time, last_time + +@trace +def create_account_userone(): + """ + Create account 'userone@domain' + """ + tx = iroha.transaction([ + iroha.command('CreateAccount', account_name='userone', domain_id='domain', + public_key=user_public_key) + ]) + IrohaCrypto.sign_transaction(tx, ADMIN_PRIVATE_KEY) + send_transaction_and_print_status(tx) + + +@trace +def transfer_coin_from_admin_to_userone(): + """ + Transfer 2.00 'coin#domain' from 'admin@test' to 'userone@domain' + """ + tx = iroha.transaction([ + iroha.command('TransferAsset', src_account_id='admin@test', dest_account_id='userone@domain', + asset_id='coin#domain', description='init top up', amount='2.00') + ]) + IrohaCrypto.sign_transaction(tx, ADMIN_PRIVATE_KEY) + send_transaction_and_print_status(tx) + + +@trace +def userone_grants_to_admin_set_account_detail_permission(): + """ + Make 'admin@test' able to set detail to 'userone@domain' + """ + tx = iroha.transaction([ + iroha.command('GrantPermission', account_id='admin@test', + permission=can_set_my_account_detail) + ], creator_account='userone@domain') + IrohaCrypto.sign_transaction(tx, user_private_key) + send_transaction_and_print_status(tx) + + +@trace +def set_age_to_userone(): + """ + Set age to 'userone@domain' by 'admin@test' + """ + tx = iroha.transaction([ + iroha.command('SetAccountDetail', + account_id='userone@domain', key='age', value='18') + ]) + IrohaCrypto.sign_transaction(tx, ADMIN_PRIVATE_KEY) + send_transaction_and_print_status(tx) + + +@trace +def get_coin_info(): + """ + Get asset info for 'coin#domain' + :return: + """ + query = iroha.query('GetAssetInfo', asset_id='coin#domain') + IrohaCrypto.sign_query(query, ADMIN_PRIVATE_KEY) + + response = net.send_query(query) + data = response.asset_response.asset + print('Asset id = {}, precision = {}'.format(data.asset_id, data.precision)) + + +@trace +def get_account_assets(): + """ + List all the assets of 'userone@domain' + """ + query = iroha.query('GetAccountAssets', account_id='userone@domain') + IrohaCrypto.sign_query(query, ADMIN_PRIVATE_KEY) + + response = net.send_query(query) + data = response.account_assets_response.account_assets + for asset in data: + print('Asset id = {}, balance = {}'.format( + asset.asset_id, asset.balance)) + +@trace +def query_transactions(first_time = None, last_time = None, + first_height = None, last_height = None): + query = iroha.query('GetAccountTransactions', account_id = ADMIN_ACCOUNT_ID, + first_tx_time = first_time, + last_tx_time = last_time, + first_tx_height = first_height, + last_tx_height = last_height, + page_size = 3) + IrohaCrypto.sign_query(query, ADMIN_PRIVATE_KEY) + response = net.send_query(query) + data = response + print(data) + +@trace +def get_userone_details(): + """ + Get all the kv-storage entries for 'userone@domain' + """ + query = iroha.query('GetAccountDetail', account_id='userone@domain') + IrohaCrypto.sign_query(query, ADMIN_PRIVATE_KEY) + + response = net.send_query(query) + data = response.account_detail_response + print('Account id = {}, details = {}'.format('userone@domain', data.detail)) + +# Let's run the commands defined previously: +create_domain_and_asset() +first_time, last_time = add_coin_to_admin() +create_account_userone() +transfer_coin_from_admin_to_userone() +userone_grants_to_admin_set_account_detail_permission() +set_age_to_userone() +get_coin_info() +get_account_assets() +get_userone_details() +# set timestamp to correct value +# for more protobuf timestamp api info see: +# https://googleapis.dev/python/protobuf/latest/google/protobuf/timestamp_pb2.html +first_tx_time = Timestamp() +first_tx_time.FromMilliseconds(first_time) +last_tx_time = Timestamp() +last_tx_time.FromMilliseconds(last_time) +# query for txs in measured time +print('transactions from time interval query: ') +query_transactions(first_tx_time, last_tx_time) +# query for txs in given height range +print('transactions from height range query: ') +query_transactions(first_height = 2, last_height = 3) +print('done') diff --git a/iroha/block_pb2.py b/iroha/block_pb2.py index 876abb9b..c4b1b96a 100644 --- a/iroha/block_pb2.py +++ b/iroha/block_pb2.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: block.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database @@ -15,166 +16,13 @@ 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, -) - +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') -_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 = DESCRIPTOR.message_types_by_name['Block_v1'] +_BLOCK_V1_PAYLOAD = _BLOCK_V1.nested_types_by_name['Payload'] +_BLOCK = DESCRIPTOR.message_types_by_name['Block'] Block_v1 = _reflection.GeneratedProtocolMessageType('Block_v1', (_message.Message,), { 'Payload' : _reflection.GeneratedProtocolMessageType('Payload', (_message.Message,), { @@ -197,6 +45,14 @@ }) _sym_db.RegisterMessage(Block) +if _descriptor._USE_C_DESCRIPTORS == False: -DESCRIPTOR._options = None + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\030iroha.generated/protocol' + _BLOCK_V1._serialized_start=68 + _BLOCK_V1._serialized_end=359 + _BLOCK_V1_PAYLOAD._serialized_start=179 + _BLOCK_V1_PAYLOAD._serialized_end=359 + _BLOCK._serialized_start=361 + _BLOCK._serialized_end=431 # @@protoc_insertion_point(module_scope) diff --git a/iroha/commands_pb2.py b/iroha/commands_pb2.py index 4c2418d7..9afe6523 100644 --- a/iroha/commands_pb2.py +++ b/iroha/commands_pb2.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: commands.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database @@ -14,1140 +15,32 @@ 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\"r\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\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=1478, - serialized_end=1505, -) -_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), - ], - 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=1198, - serialized_end=1312, -) - - -_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=1314, - serialized_end=1359, -) - - -_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=1362, - serialized_end=1519, -) - - -_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=1522, - serialized_end=2718, -) - -_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) - +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(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') + + + +_ADDASSETQUANTITY = DESCRIPTOR.message_types_by_name['AddAssetQuantity'] +_ADDPEER = DESCRIPTOR.message_types_by_name['AddPeer'] +_REMOVEPEER = DESCRIPTOR.message_types_by_name['RemovePeer'] +_ADDSIGNATORY = DESCRIPTOR.message_types_by_name['AddSignatory'] +_CREATEASSET = DESCRIPTOR.message_types_by_name['CreateAsset'] +_CREATEACCOUNT = DESCRIPTOR.message_types_by_name['CreateAccount'] +_SETACCOUNTDETAIL = DESCRIPTOR.message_types_by_name['SetAccountDetail'] +_CREATEDOMAIN = DESCRIPTOR.message_types_by_name['CreateDomain'] +_REMOVESIGNATORY = DESCRIPTOR.message_types_by_name['RemoveSignatory'] +_SETACCOUNTQUORUM = DESCRIPTOR.message_types_by_name['SetAccountQuorum'] +_TRANSFERASSET = DESCRIPTOR.message_types_by_name['TransferAsset'] +_APPENDROLE = DESCRIPTOR.message_types_by_name['AppendRole'] +_DETACHROLE = DESCRIPTOR.message_types_by_name['DetachRole'] +_CREATEROLE = DESCRIPTOR.message_types_by_name['CreateRole'] +_GRANTPERMISSION = DESCRIPTOR.message_types_by_name['GrantPermission'] +_REVOKEPERMISSION = DESCRIPTOR.message_types_by_name['RevokePermission'] +_SUBTRACTASSETQUANTITY = DESCRIPTOR.message_types_by_name['SubtractAssetQuantity'] +_COMPAREANDSETACCOUNTDETAIL = DESCRIPTOR.message_types_by_name['CompareAndSetAccountDetail'] +_SETSETTINGVALUE = DESCRIPTOR.message_types_by_name['SetSettingValue'] +_CALLENGINE = DESCRIPTOR.message_types_by_name['CallEngine'] +_COMMAND = DESCRIPTOR.message_types_by_name['Command'] +_CALLENGINE_ENGINETYPE = _CALLENGINE.enum_types_by_name['EngineType'] AddAssetQuantity = _reflection.GeneratedProtocolMessageType('AddAssetQuantity', (_message.Message,), { 'DESCRIPTOR' : _ADDASSETQUANTITY, '__module__' : 'commands_pb2' @@ -1295,6 +188,52 @@ }) _sym_db.RegisterMessage(Command) - -DESCRIPTOR._options = None +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\030iroha.generated/protocol' + _ADDASSETQUANTITY._serialized_start=51 + _ADDASSETQUANTITY._serialized_end=103 + _ADDPEER._serialized_start=105 + _ADDPEER._serialized_end=150 + _REMOVEPEER._serialized_start=152 + _REMOVEPEER._serialized_end=184 + _ADDSIGNATORY._serialized_start=186 + _ADDSIGNATORY._serialized_end=240 + _CREATEASSET._serialized_start=242 + _CREATEASSET._serialized_end=313 + _CREATEACCOUNT._serialized_start=315 + _CREATEACCOUNT._serialized_end=391 + _SETACCOUNTDETAIL._serialized_start=393 + _SETACCOUNTDETAIL._serialized_end=459 + _CREATEDOMAIN._serialized_start=461 + _CREATEDOMAIN._serialized_end=516 + _REMOVESIGNATORY._serialized_start=518 + _REMOVESIGNATORY._serialized_end=575 + _SETACCOUNTQUORUM._serialized_start=577 + _SETACCOUNTQUORUM._serialized_end=631 + _TRANSFERASSET._serialized_start=633 + _TRANSFERASSET._serialized_end=752 + _APPENDROLE._serialized_start=754 + _APPENDROLE._serialized_end=805 + _DETACHROLE._serialized_start=807 + _DETACHROLE._serialized_end=858 + _CREATEROLE._serialized_start=860 + _CREATEROLE._serialized_end=944 + _GRANTPERMISSION._serialized_start=946 + _GRANTPERMISSION._serialized_end=1040 + _REVOKEPERMISSION._serialized_start=1042 + _REVOKEPERMISSION._serialized_end=1137 + _SUBTRACTASSETQUANTITY._serialized_start=1139 + _SUBTRACTASSETQUANTITY._serialized_end=1196 + _COMPAREANDSETACCOUNTDETAIL._serialized_start=1199 + _COMPAREANDSETACCOUNTDETAIL._serialized_end=1334 + _SETSETTINGVALUE._serialized_start=1336 + _SETSETTINGVALUE._serialized_end=1381 + _CALLENGINE._serialized_start=1384 + _CALLENGINE._serialized_end=1541 + _CALLENGINE_ENGINETYPE._serialized_start=1500 + _CALLENGINE_ENGINETYPE._serialized_end=1527 + _COMMAND._serialized_start=1544 + _COMMAND._serialized_end=2740 # @@protoc_insertion_point(module_scope) diff --git a/iroha/endpoint_pb2.py b/iroha/endpoint_pb2.py index 9d1efb98..878cf58d 100644 --- a/iroha/endpoint_pb2.py +++ b/iroha/endpoint_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: endpoint.proto - +"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -23,7 +23,8 @@ package='iroha.protocol', syntax='proto3', serialized_options=b'Z\030iroha.generated/protocol', - serialized_pb=b'\n\x0e\x65ndpoint.proto\x12\x0eiroha.protocol\x1a\x11transaction.proto\x1a\rqueries.proto\x1a\x13qry_responses.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x94\x01\n\rToriiResponse\x12+\n\ttx_status\x18\x01 \x01(\x0e\x32\x18.iroha.protocol.TxStatus\x12\x0f\n\x07tx_hash\x18\x02 \x01(\t\x12\x17\n\x0f\x65rr_or_cmd_name\x18\x03 \x01(\t\x12\x18\n\x10\x66\x61iled_cmd_index\x18\x04 \x01(\x04\x12\x12\n\nerror_code\x18\x05 \x01(\r\"\"\n\x0fTxStatusRequest\x12\x0f\n\x07tx_hash\x18\x01 \x01(\t\";\n\x06TxList\x12\x31\n\x0ctransactions\x18\x01 \x03(\x0b\x32\x1b.iroha.protocol.Transaction*\x80\x02\n\x08TxStatus\x12\x1f\n\x1bSTATELESS_VALIDATION_FAILED\x10\x00\x12 \n\x1cSTATELESS_VALIDATION_SUCCESS\x10\x01\x12\x1e\n\x1aSTATEFUL_VALIDATION_FAILED\x10\x02\x12\x1f\n\x1bSTATEFUL_VALIDATION_SUCCESS\x10\x03\x12\x0c\n\x08REJECTED\x10\x04\x12\r\n\tCOMMITTED\x10\x05\x12\x0f\n\x0bMST_EXPIRED\x10\x06\x12\x10\n\x0cNOT_RECEIVED\x10\x07\x12\x0f\n\x0bMST_PENDING\x10\x08\x12\x1f\n\x1b\x45NOUGH_SIGNATURES_COLLECTED\x10\t2\xaa\x02\n\x11\x43ommandService_v1\x12<\n\x05Torii\x12\x1b.iroha.protocol.Transaction\x1a\x16.google.protobuf.Empty\x12;\n\tListTorii\x12\x16.iroha.protocol.TxList\x1a\x16.google.protobuf.Empty\x12H\n\x06Status\x12\x1f.iroha.protocol.TxStatusRequest\x1a\x1d.iroha.protocol.ToriiResponse\x12P\n\x0cStatusStream\x12\x1f.iroha.protocol.TxStatusRequest\x1a\x1d.iroha.protocol.ToriiResponse0\x01\x32\xa2\x01\n\x0fQueryService_v1\x12<\n\x04\x46ind\x12\x15.iroha.protocol.Query\x1a\x1d.iroha.protocol.QueryResponse\x12Q\n\x0c\x46\x65tchCommits\x12\x1b.iroha.protocol.BlocksQuery\x1a\".iroha.protocol.BlockQueryResponse0\x01\x42\x1aZ\x18iroha.generated/protocolb\x06proto3' + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n\x0e\x65ndpoint.proto\x12\x0eiroha.protocol\x1a\x11transaction.proto\x1a\rqueries.proto\x1a\x13qry_responses.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x94\x01\n\rToriiResponse\x12+\n\ttx_status\x18\x01 \x01(\x0e\x32\x18.iroha.protocol.TxStatus\x12\x0f\n\x07tx_hash\x18\x02 \x01(\t\x12\x17\n\x0f\x65rr_or_cmd_name\x18\x03 \x01(\t\x12\x18\n\x10\x66\x61iled_cmd_index\x18\x04 \x01(\x04\x12\x12\n\nerror_code\x18\x05 \x01(\r\"\"\n\x0fTxStatusRequest\x12\x0f\n\x07tx_hash\x18\x01 \x01(\t\";\n\x06TxList\x12\x31\n\x0ctransactions\x18\x01 \x03(\x0b\x32\x1b.iroha.protocol.Transaction*\x80\x02\n\x08TxStatus\x12\x1f\n\x1bSTATELESS_VALIDATION_FAILED\x10\x00\x12 \n\x1cSTATELESS_VALIDATION_SUCCESS\x10\x01\x12\x1e\n\x1aSTATEFUL_VALIDATION_FAILED\x10\x02\x12\x1f\n\x1bSTATEFUL_VALIDATION_SUCCESS\x10\x03\x12\x0c\n\x08REJECTED\x10\x04\x12\r\n\tCOMMITTED\x10\x05\x12\x0f\n\x0bMST_EXPIRED\x10\x06\x12\x10\n\x0cNOT_RECEIVED\x10\x07\x12\x0f\n\x0bMST_PENDING\x10\x08\x12\x1f\n\x1b\x45NOUGH_SIGNATURES_COLLECTED\x10\t2\xaa\x02\n\x11\x43ommandService_v1\x12<\n\x05Torii\x12\x1b.iroha.protocol.Transaction\x1a\x16.google.protobuf.Empty\x12;\n\tListTorii\x12\x16.iroha.protocol.TxList\x1a\x16.google.protobuf.Empty\x12H\n\x06Status\x12\x1f.iroha.protocol.TxStatusRequest\x1a\x1d.iroha.protocol.ToriiResponse\x12P\n\x0cStatusStream\x12\x1f.iroha.protocol.TxStatusRequest\x1a\x1d.iroha.protocol.ToriiResponse0\x01\x32\xea\x01\n\x0fQueryService_v1\x12<\n\x04\x46ind\x12\x15.iroha.protocol.Query\x1a\x1d.iroha.protocol.QueryResponse\x12Q\n\x0c\x46\x65tchCommits\x12\x1b.iroha.protocol.BlocksQuery\x1a\".iroha.protocol.BlockQueryResponse0\x01\x12\x46\n\x0bHealthcheck\x12\x16.google.protobuf.Empty\x1a\x1f.iroha.protocol.HealthcheckDataB\x1aZ\x18iroha.generated/protocolb\x06proto3' , dependencies=[transaction__pb2.DESCRIPTOR,queries__pb2.DESCRIPTOR,qry__responses__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,]) @@ -32,47 +33,58 @@ full_name='iroha.protocol.TxStatus', filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='STATELESS_VALIDATION_FAILED', index=0, number=0, serialized_options=None, - type=None), + type=None, + create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='STATELESS_VALIDATION_SUCCESS', index=1, number=1, serialized_options=None, - type=None), + type=None, + create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='STATEFUL_VALIDATION_FAILED', index=2, number=2, serialized_options=None, - type=None), + type=None, + create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='STATEFUL_VALIDATION_SUCCESS', index=3, number=3, serialized_options=None, - type=None), + type=None, + create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='REJECTED', index=4, number=4, serialized_options=None, - type=None), + type=None, + create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='COMMITTED', index=5, number=5, serialized_options=None, - type=None), + type=None, + create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='MST_EXPIRED', index=6, number=6, serialized_options=None, - type=None), + type=None, + create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='NOT_RECEIVED', index=7, number=7, serialized_options=None, - type=None), + type=None, + create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='MST_PENDING', index=8, number=8, serialized_options=None, - type=None), + type=None, + create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='ENOUGH_SIGNATURES_COLLECTED', index=9, number=9, serialized_options=None, - type=None), + type=None, + create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, @@ -101,6 +113,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='tx_status', full_name='iroha.protocol.ToriiResponse.tx_status', index=0, @@ -108,35 +121,35 @@ 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), + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='tx_hash', full_name='iroha.protocol.ToriiResponse.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), + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='err_or_cmd_name', full_name='iroha.protocol.ToriiResponse.err_or_cmd_name', 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), + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='failed_cmd_index', full_name='iroha.protocol.ToriiResponse.failed_cmd_index', 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), + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='error_code', full_name='iroha.protocol.ToriiResponse.error_code', index=4, number=5, 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), + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -160,6 +173,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='tx_hash', full_name='iroha.protocol.TxStatusRequest.tx_hash', index=0, @@ -167,7 +181,7 @@ 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), + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -191,6 +205,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='transactions', full_name='iroha.protocol.TxList.transactions', index=0, @@ -198,7 +213,7 @@ 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), + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -253,6 +268,7 @@ file=DESCRIPTOR, index=0, serialized_options=None, + create_key=_descriptor._internal_create_key, serialized_start=626, serialized_end=924, methods=[ @@ -264,6 +280,7 @@ input_type=transaction__pb2._TRANSACTION, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='ListTorii', @@ -273,6 +290,7 @@ input_type=_TXLIST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='Status', @@ -282,6 +300,7 @@ input_type=_TXSTATUSREQUEST, output_type=_TORIIRESPONSE, serialized_options=None, + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='StatusStream', @@ -291,6 +310,7 @@ input_type=_TXSTATUSREQUEST, output_type=_TORIIRESPONSE, serialized_options=None, + create_key=_descriptor._internal_create_key, ), ]) _sym_db.RegisterServiceDescriptor(_COMMANDSERVICE_V1) @@ -304,8 +324,9 @@ file=DESCRIPTOR, index=1, serialized_options=None, + create_key=_descriptor._internal_create_key, serialized_start=927, - serialized_end=1089, + serialized_end=1161, methods=[ _descriptor.MethodDescriptor( name='Find', @@ -315,6 +336,7 @@ input_type=queries__pb2._QUERY, output_type=qry__responses__pb2._QUERYRESPONSE, serialized_options=None, + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='FetchCommits', @@ -324,6 +346,17 @@ input_type=queries__pb2._BLOCKSQUERY, output_type=qry__responses__pb2._BLOCKQUERYRESPONSE, serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='Healthcheck', + full_name='iroha.protocol.QueryService_v1.Healthcheck', + index=2, + containing_service=None, + input_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + output_type=qry__responses__pb2._HEALTHCHECKDATA, + serialized_options=None, + create_key=_descriptor._internal_create_key, ), ]) _sym_db.RegisterServiceDescriptor(_QUERYSERVICE_V1) diff --git a/iroha/endpoint_pb2_grpc.py b/iroha/endpoint_pb2_grpc.py index 3969efe5..47f8488d 100644 --- a/iroha/endpoint_pb2_grpc.py +++ b/iroha/endpoint_pb2_grpc.py @@ -1,4 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc from . import endpoint_pb2 as endpoint__pb2 @@ -9,152 +10,287 @@ class CommandService_v1Stub(object): - # missing associated documentation comment in .proto file - pass - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Torii = channel.unary_unary( - '/iroha.protocol.CommandService_v1/Torii', - request_serializer=transaction__pb2.Transaction.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.ListTorii = channel.unary_unary( - '/iroha.protocol.CommandService_v1/ListTorii', - request_serializer=endpoint__pb2.TxList.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.Status = channel.unary_unary( - '/iroha.protocol.CommandService_v1/Status', - request_serializer=endpoint__pb2.TxStatusRequest.SerializeToString, - response_deserializer=endpoint__pb2.ToriiResponse.FromString, - ) - self.StatusStream = channel.unary_stream( - '/iroha.protocol.CommandService_v1/StatusStream', - request_serializer=endpoint__pb2.TxStatusRequest.SerializeToString, - response_deserializer=endpoint__pb2.ToriiResponse.FromString, - ) + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Torii = channel.unary_unary( + '/iroha.protocol.CommandService_v1/Torii', + request_serializer=transaction__pb2.Transaction.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.ListTorii = channel.unary_unary( + '/iroha.protocol.CommandService_v1/ListTorii', + request_serializer=endpoint__pb2.TxList.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.Status = channel.unary_unary( + '/iroha.protocol.CommandService_v1/Status', + request_serializer=endpoint__pb2.TxStatusRequest.SerializeToString, + response_deserializer=endpoint__pb2.ToriiResponse.FromString, + ) + self.StatusStream = channel.unary_stream( + '/iroha.protocol.CommandService_v1/StatusStream', + request_serializer=endpoint__pb2.TxStatusRequest.SerializeToString, + response_deserializer=endpoint__pb2.ToriiResponse.FromString, + ) class CommandService_v1Servicer(object): - # missing associated documentation comment in .proto file - pass - - def Torii(self, request, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListTorii(self, request, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Status(self, request, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def StatusStream(self, request, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + """Missing associated documentation comment in .proto file.""" + + def Torii(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListTorii(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Status(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatusStream(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def add_CommandService_v1Servicer_to_server(servicer, server): - rpc_method_handlers = { - 'Torii': grpc.unary_unary_rpc_method_handler( - servicer.Torii, - request_deserializer=transaction__pb2.Transaction.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListTorii': grpc.unary_unary_rpc_method_handler( - servicer.ListTorii, - request_deserializer=endpoint__pb2.TxList.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Status': grpc.unary_unary_rpc_method_handler( - servicer.Status, - request_deserializer=endpoint__pb2.TxStatusRequest.FromString, - response_serializer=endpoint__pb2.ToriiResponse.SerializeToString, - ), - 'StatusStream': grpc.unary_stream_rpc_method_handler( - servicer.StatusStream, - request_deserializer=endpoint__pb2.TxStatusRequest.FromString, - response_serializer=endpoint__pb2.ToriiResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'iroha.protocol.CommandService_v1', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + 'Torii': grpc.unary_unary_rpc_method_handler( + servicer.Torii, + request_deserializer=transaction__pb2.Transaction.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'ListTorii': grpc.unary_unary_rpc_method_handler( + servicer.ListTorii, + request_deserializer=endpoint__pb2.TxList.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'Status': grpc.unary_unary_rpc_method_handler( + servicer.Status, + request_deserializer=endpoint__pb2.TxStatusRequest.FromString, + response_serializer=endpoint__pb2.ToriiResponse.SerializeToString, + ), + 'StatusStream': grpc.unary_stream_rpc_method_handler( + servicer.StatusStream, + request_deserializer=endpoint__pb2.TxStatusRequest.FromString, + response_serializer=endpoint__pb2.ToriiResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'iroha.protocol.CommandService_v1', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class CommandService_v1(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def Torii(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/iroha.protocol.CommandService_v1/Torii', + transaction__pb2.Transaction.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListTorii(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/iroha.protocol.CommandService_v1/ListTorii', + endpoint__pb2.TxList.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Status(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/iroha.protocol.CommandService_v1/Status', + endpoint__pb2.TxStatusRequest.SerializeToString, + endpoint__pb2.ToriiResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatusStream(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/iroha.protocol.CommandService_v1/StatusStream', + endpoint__pb2.TxStatusRequest.SerializeToString, + endpoint__pb2.ToriiResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) class QueryService_v1Stub(object): - # missing associated documentation comment in .proto file - pass - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Find = channel.unary_unary( - '/iroha.protocol.QueryService_v1/Find', - request_serializer=queries__pb2.Query.SerializeToString, - response_deserializer=qry__responses__pb2.QueryResponse.FromString, - ) - self.FetchCommits = channel.unary_stream( - '/iroha.protocol.QueryService_v1/FetchCommits', - request_serializer=queries__pb2.BlocksQuery.SerializeToString, - response_deserializer=qry__responses__pb2.BlockQueryResponse.FromString, - ) + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Find = channel.unary_unary( + '/iroha.protocol.QueryService_v1/Find', + request_serializer=queries__pb2.Query.SerializeToString, + response_deserializer=qry__responses__pb2.QueryResponse.FromString, + ) + self.FetchCommits = channel.unary_stream( + '/iroha.protocol.QueryService_v1/FetchCommits', + request_serializer=queries__pb2.BlocksQuery.SerializeToString, + response_deserializer=qry__responses__pb2.BlockQueryResponse.FromString, + ) + self.Healthcheck = channel.unary_unary( + '/iroha.protocol.QueryService_v1/Healthcheck', + request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + response_deserializer=qry__responses__pb2.HealthcheckData.FromString, + ) class QueryService_v1Servicer(object): - # missing associated documentation comment in .proto file - pass + """Missing associated documentation comment in .proto file.""" + + def Find(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') - def Find(self, request, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + def FetchCommits(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') - def FetchCommits(self, request, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + def Healthcheck(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def add_QueryService_v1Servicer_to_server(servicer, server): - rpc_method_handlers = { - 'Find': grpc.unary_unary_rpc_method_handler( - servicer.Find, - request_deserializer=queries__pb2.Query.FromString, - response_serializer=qry__responses__pb2.QueryResponse.SerializeToString, - ), - 'FetchCommits': grpc.unary_stream_rpc_method_handler( - servicer.FetchCommits, - request_deserializer=queries__pb2.BlocksQuery.FromString, - response_serializer=qry__responses__pb2.BlockQueryResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'iroha.protocol.QueryService_v1', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + 'Find': grpc.unary_unary_rpc_method_handler( + servicer.Find, + request_deserializer=queries__pb2.Query.FromString, + response_serializer=qry__responses__pb2.QueryResponse.SerializeToString, + ), + 'FetchCommits': grpc.unary_stream_rpc_method_handler( + servicer.FetchCommits, + request_deserializer=queries__pb2.BlocksQuery.FromString, + response_serializer=qry__responses__pb2.BlockQueryResponse.SerializeToString, + ), + 'Healthcheck': grpc.unary_unary_rpc_method_handler( + servicer.Healthcheck, + request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + response_serializer=qry__responses__pb2.HealthcheckData.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'iroha.protocol.QueryService_v1', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class QueryService_v1(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def Find(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/iroha.protocol.QueryService_v1/Find', + queries__pb2.Query.SerializeToString, + qry__responses__pb2.QueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchCommits(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/iroha.protocol.QueryService_v1/FetchCommits', + queries__pb2.BlocksQuery.SerializeToString, + qry__responses__pb2.BlockQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Healthcheck(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/iroha.protocol.QueryService_v1/Healthcheck', + google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + qry__responses__pb2.HealthcheckData.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/iroha/iroha.py b/iroha/iroha.py index 27fcb83c..f9cb981a 100644 --- a/iroha/iroha.py +++ b/iroha/iroha.py @@ -244,8 +244,11 @@ def command(name, **kwargs): return command_wrapper def query(self, name, counter=1, creator_account=None, - created_time=None, page_size=None, first_tx_hash=None, ordering_sequence=None, - **kwargs): + created_time=None, page_size=None, + first_tx_hash=None, first_tx_time=None, + last_tx_time=None, first_tx_height=None, + last_tx_height=None, + ordering_sequence=None, **kwargs): """ Creates a protobuf query with specified set of entities :param name: CamelCased name of query to be executed @@ -254,6 +257,10 @@ def query(self, name, counter=1, creator_account=None, :param created_time: query creation timestamp in milliseconds :param page_size: a non-zero positive number, size of result rowset for queries with pagination :param first_tx_hash: optional hash of a transaction that will be the beginning of the next page + :param first_tx_time: optional time of first transaction + :param last_tx_time: optional time of last transaction + :param first_tx_height: optional block height of first transaction + :param last_tx_height: optional block height of last transaction :param ordering_sequence: an array representing an ordering spec, containing a sequence of fields and directions example: [[queries_pb2.kCreatedTime, queries_pb2.kAscending],[queries_pb2.kPosition, queries_pb2.kDescending]] :param kwargs: query arguments as they defined in schema @@ -266,11 +273,19 @@ def query(self, name, counter=1, creator_account=None, created_time = self.now() if not creator_account: creator_account = self.creator_account - if page_size or first_tx_hash: + if page_size or first_tx_hash or first_tx_time or last_tx_time or first_tx_height or last_tx_height: pagination_meta = queries_pb2.TxPaginationMeta() pagination_meta.page_size = page_size if first_tx_hash: pagination_meta.first_tx_hash = first_tx_hash + if first_tx_time != None: + pagination_meta.first_tx_time.CopyFrom(first_tx_time) + if last_tx_time != None: + pagination_meta.last_tx_time.CopyFrom(last_tx_time) + if first_tx_height != None: + pagination_meta.first_tx_height = first_tx_height + if last_tx_height != None: + pagination_meta.last_tx_height = last_tx_height if ordering_sequence: ordering = queries_pb2.Ordering() for ordering_elt in ordering_sequence: @@ -294,12 +309,12 @@ def query(self, name, counter=1, creator_account=None, hashes_attr.extend(value) continue setattr(internal_query, key, value) - if pagination_meta: - pagination_meta_attr = getattr(internal_query, 'pagination_meta') - pagination_meta_attr.CopyFrom(pagination_meta) if not len(kwargs): message = getattr(queries_pb2, name)() internal_query.CopyFrom(message) + if pagination_meta: + pagination_meta_attr = getattr(internal_query, 'pagination_meta') + pagination_meta_attr.CopyFrom(pagination_meta) return query_wrapper def blocks_query(self, counter=1, creator_account=None, created_time=None): diff --git a/iroha/primitive_pb2.py b/iroha/primitive_pb2.py index 49d30074..88b19cd1 100644 --- a/iroha/primitive_pb2.py +++ b/iroha/primitive_pb2.py @@ -1,9 +1,10 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: primitive.proto - +"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database @@ -14,279 +15,11 @@ -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\"S\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\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=545, - serialized_end=1952, -) -_sym_db.RegisterEnumDescriptor(_ROLEPERMISSION) +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') +_ROLEPERMISSION = DESCRIPTOR.enum_types_by_name['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=1955, - serialized_end=2147, -) -_sym_db.RegisterEnumDescriptor(_GRANTABLEPERMISSION) - +_GRANTABLEPERMISSION = DESCRIPTOR.enum_types_by_name['GrantablePermission'] GrantablePermission = enum_type_wrapper.EnumTypeWrapper(_GRANTABLEPERMISSION) can_append_role = 0 can_create_role = 1 @@ -349,296 +82,12 @@ 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), - ], - 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=170, -) - - -_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=172, - serialized_end=224, -) - - -_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=226, - serialized_end=284, -) - - -_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=286, - serialized_end=335, -) - - -_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=338, - serialized_end=542, -) - -_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 = DESCRIPTOR.message_types_by_name['Signature'] +_PEER = DESCRIPTOR.message_types_by_name['Peer'] +_ACCOUNTDETAILRECORDID = DESCRIPTOR.message_types_by_name['AccountDetailRecordId'] +_ENGINELOG = DESCRIPTOR.message_types_by_name['EngineLog'] +_CALLRESULT = DESCRIPTOR.message_types_by_name['CallResult'] +_ENGINERECEIPT = DESCRIPTOR.message_types_by_name['EngineReceipt'] Signature = _reflection.GeneratedProtocolMessageType('Signature', (_message.Message,), { 'DESCRIPTOR' : _SIGNATURE, '__module__' : 'primitive_pb2' @@ -681,6 +130,24 @@ }) _sym_db.RegisterMessage(EngineReceipt) - -DESCRIPTOR._options = None +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\030iroha.generated/protocol' + _ROLEPERMISSION._serialized_start=567 + _ROLEPERMISSION._serialized_end=1974 + _GRANTABLEPERMISSION._serialized_start=1977 + _GRANTABLEPERMISSION._serialized_end=2169 + _SIGNATURE._serialized_start=35 + _SIGNATURE._serialized_end=85 + _PEER._serialized_start=87 + _PEER._serialized_end=192 + _ACCOUNTDETAILRECORDID._serialized_start=194 + _ACCOUNTDETAILRECORDID._serialized_end=246 + _ENGINELOG._serialized_start=248 + _ENGINELOG._serialized_end=306 + _CALLRESULT._serialized_start=308 + _CALLRESULT._serialized_end=357 + _ENGINERECEIPT._serialized_start=360 + _ENGINERECEIPT._serialized_end=564 # @@protoc_insertion_point(module_scope) diff --git a/iroha/proposal_pb2.py b/iroha/proposal_pb2.py index c34558ad..e4a0427b 100644 --- a/iroha/proposal_pb2.py +++ b/iroha/proposal_pb2.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proposal.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database @@ -14,66 +15,11 @@ 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,]) - - - +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') -_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 = DESCRIPTOR.message_types_by_name['Proposal'] Proposal = _reflection.GeneratedProtocolMessageType('Proposal', (_message.Message,), { 'DESCRIPTOR' : _PROPOSAL, '__module__' : 'proposal_pb2' @@ -81,6 +27,10 @@ }) _sym_db.RegisterMessage(Proposal) +if _descriptor._USE_C_DESCRIPTORS == False: -DESCRIPTOR._options = None + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\030iroha.generated/protocol' + _PROPOSAL._serialized_start=53 + _PROPOSAL._serialized_end=152 # @@protoc_insertion_point(module_scope) diff --git a/iroha/qry_responses_pb2.py b/iroha/qry_responses_pb2.py index 30f0567b..486b51af 100644 --- a/iroha/qry_responses_pb2.py +++ b/iroha/qry_responses_pb2.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: qry_responses.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database @@ -16,1114 +17,34 @@ 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\x08responseB\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, -) - -_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'] -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 -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - +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') + + + +_ASSET = DESCRIPTOR.message_types_by_name['Asset'] +_DOMAIN = DESCRIPTOR.message_types_by_name['Domain'] +_ACCOUNT = DESCRIPTOR.message_types_by_name['Account'] +_ACCOUNTASSET = DESCRIPTOR.message_types_by_name['AccountAsset'] +_ACCOUNTASSETRESPONSE = DESCRIPTOR.message_types_by_name['AccountAssetResponse'] +_ACCOUNTDETAILRESPONSE = DESCRIPTOR.message_types_by_name['AccountDetailResponse'] +_ACCOUNTRESPONSE = DESCRIPTOR.message_types_by_name['AccountResponse'] +_ASSETRESPONSE = DESCRIPTOR.message_types_by_name['AssetResponse'] +_ROLESRESPONSE = DESCRIPTOR.message_types_by_name['RolesResponse'] +_ROLEPERMISSIONSRESPONSE = DESCRIPTOR.message_types_by_name['RolePermissionsResponse'] +_ERRORRESPONSE = DESCRIPTOR.message_types_by_name['ErrorResponse'] +_SIGNATORIESRESPONSE = DESCRIPTOR.message_types_by_name['SignatoriesResponse'] +_TRANSACTIONSRESPONSE = DESCRIPTOR.message_types_by_name['TransactionsResponse'] +_TRANSACTIONSPAGERESPONSE = DESCRIPTOR.message_types_by_name['TransactionsPageResponse'] +_PENDINGTRANSACTIONSPAGERESPONSE = DESCRIPTOR.message_types_by_name['PendingTransactionsPageResponse'] +_PENDINGTRANSACTIONSPAGERESPONSE_BATCHINFO = _PENDINGTRANSACTIONSPAGERESPONSE.nested_types_by_name['BatchInfo'] +_PEERSRESPONSE = DESCRIPTOR.message_types_by_name['PeersResponse'] +_ENGINERECEIPTSRESPONSE = DESCRIPTOR.message_types_by_name['EngineReceiptsResponse'] +_QUERYRESPONSE = DESCRIPTOR.message_types_by_name['QueryResponse'] +_BLOCKRESPONSE = DESCRIPTOR.message_types_by_name['BlockResponse'] +_BLOCKERRORRESPONSE = DESCRIPTOR.message_types_by_name['BlockErrorResponse'] +_BLOCKQUERYRESPONSE = DESCRIPTOR.message_types_by_name['BlockQueryResponse'] +_HEALTHCHECKDATA = DESCRIPTOR.message_types_by_name['HealthcheckData'] +_ERRORRESPONSE_REASON = _ERRORRESPONSE.enum_types_by_name['Reason'] Asset = _reflection.GeneratedProtocolMessageType('Asset', (_message.Message,), { 'DESCRIPTOR' : _ASSET, '__module__' : 'qry_responses_pb2' @@ -1279,6 +200,63 @@ }) _sym_db.RegisterMessage(BlockQueryResponse) - -DESCRIPTOR._options = None +HealthcheckData = _reflection.GeneratedProtocolMessageType('HealthcheckData', (_message.Message,), { + 'DESCRIPTOR' : _HEALTHCHECKDATA, + '__module__' : 'qry_responses_pb2' + # @@protoc_insertion_point(class_scope:iroha.protocol.HealthcheckData) + }) +_sym_db.RegisterMessage(HealthcheckData) + +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\030iroha.generated/protocol' + _ASSET._serialized_start=88 + _ASSET._serialized_end=151 + _DOMAIN._serialized_start=153 + _DOMAIN._serialized_end=202 + _ACCOUNT._serialized_start=204 + _ACCOUNT._serialized_end=287 + _ACCOUNTASSET._serialized_start=289 + _ACCOUNTASSET._serialized_end=358 + _ACCOUNTASSETRESPONSE._serialized_start=361 + _ACCOUNTASSETRESPONSE._serialized_end=505 + _ACCOUNTDETAILRESPONSE._serialized_start=507 + _ACCOUNTDETAILRESPONSE._serialized_end=631 + _ACCOUNTRESPONSE._serialized_start=633 + _ACCOUNTRESPONSE._serialized_end=715 + _ASSETRESPONSE._serialized_start=717 + _ASSETRESPONSE._serialized_end=770 + _ROLESRESPONSE._serialized_start=772 + _ROLESRESPONSE._serialized_end=802 + _ROLEPERMISSIONSRESPONSE._serialized_start=804 + _ROLEPERMISSIONSRESPONSE._serialized_end=882 + _ERRORRESPONSE._serialized_start=885 + _ERRORRESPONSE._serialized_end=1176 + _ERRORRESPONSE_REASON._serialized_start=994 + _ERRORRESPONSE_REASON._serialized_end=1176 + _SIGNATORIESRESPONSE._serialized_start=1178 + _SIGNATORIESRESPONSE._serialized_end=1213 + _TRANSACTIONSRESPONSE._serialized_start=1215 + _TRANSACTIONSRESPONSE._serialized_end=1288 + _TRANSACTIONSPAGERESPONSE._serialized_start=1291 + _TRANSACTIONSPAGERESPONSE._serialized_end=1440 + _PENDINGTRANSACTIONSPAGERESPONSE._serialized_start=1443 + _PENDINGTRANSACTIONSPAGERESPONSE._serialized_end=1698 + _PENDINGTRANSACTIONSPAGERESPONSE_BATCHINFO._serialized_start=1644 + _PENDINGTRANSACTIONSPAGERESPONSE_BATCHINFO._serialized_end=1698 + _PEERSRESPONSE._serialized_start=1700 + _PEERSRESPONSE._serialized_end=1752 + _ENGINERECEIPTSRESPONSE._serialized_start=1754 + _ENGINERECEIPTSRESPONSE._serialized_end=1834 + _QUERYRESPONSE._serialized_start=1837 + _QUERYRESPONSE._serialized_end=2846 + _BLOCKRESPONSE._serialized_start=2848 + _BLOCKRESPONSE._serialized_end=2901 + _BLOCKERRORRESPONSE._serialized_start=2903 + _BLOCKERRORRESPONSE._serialized_end=2940 + _BLOCKQUERYRESPONSE._serialized_start=2943 + _BLOCKQUERYRESPONSE._serialized_end=3100 + _HEALTHCHECKDATA._serialized_start=3103 + _HEALTHCHECKDATA._serialized_end=3364 # @@protoc_insertion_point(module_scope) diff --git a/iroha/queries_pb2.py b/iroha/queries_pb2.py index f217cd80..9c717926 100644 --- a/iroha/queries_pb2.py +++ b/iroha/queries_pb2.py @@ -1,9 +1,10 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: queries.proto - +"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database @@ -13,62 +14,14 @@ from . import primitive_pb2 as primitive__pb2 +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\"\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\"\x7f\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.OrderingB\x13\n\x11opt_first_tx_hash\"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,]) - -_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=2681, - serialized_end=2721, -) -_sym_db.RegisterEnumDescriptor(_FIELD) +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') +_FIELD = DESCRIPTOR.enum_types_by_name['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=2723, - serialized_end=2767, -) -_sym_db.RegisterEnumDescriptor(_DIRECTION) - +_DIRECTION = DESCRIPTOR.enum_types_by_name['Direction'] Direction = enum_type_wrapper.EnumTypeWrapper(_DIRECTION) kCreatedTime = 0 kPosition = 1 @@ -76,1044 +29,29 @@ 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=121, - serialized_end=220, -) - -_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=51, - serialized_end=220, -) - - -_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), - ], - 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=[]), - ], - serialized_start=222, - serialized_end=349, -) - - -_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=351, - serialized_end=439, -) - - -_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=441, - serialized_end=473, -) - - -_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=475, - serialized_end=501, -) - - -_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=503, - serialized_end=539, -) - - -_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=541, - serialized_end=644, -) - - -_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=646, - serialized_end=772, -) - - -_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=774, - serialized_end=810, -) - - -_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=812, - serialized_end=912, -) - - -_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=914, - serialized_end=1026, -) - - -_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=1029, - serialized_end=1215, -) - - -_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=1217, - serialized_end=1249, -) - - -_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=1251, - serialized_end=1261, -) - - -_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=1263, - serialized_end=1300, -) - - -_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=1302, - serialized_end=1385, -) - - -_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=1387, - serialized_end=1397, -) - - -_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=1399, - serialized_end=1490, -) - - -_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=1492, - serialized_end=1528, -) - - -_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=1635, - serialized_end=2570, -) - -_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=1531, - serialized_end=2570, -) - - -_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=2572, - serialized_end=2679, -) - -_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.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'] -_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 = DESCRIPTOR.message_types_by_name['Ordering'] +_ORDERING_FIELDORDERING = _ORDERING.nested_types_by_name['FieldOrdering'] +_TXPAGINATIONMETA = DESCRIPTOR.message_types_by_name['TxPaginationMeta'] +_ASSETPAGINATIONMETA = DESCRIPTOR.message_types_by_name['AssetPaginationMeta'] +_GETACCOUNT = DESCRIPTOR.message_types_by_name['GetAccount'] +_GETBLOCK = DESCRIPTOR.message_types_by_name['GetBlock'] +_GETSIGNATORIES = DESCRIPTOR.message_types_by_name['GetSignatories'] +_GETACCOUNTTRANSACTIONS = DESCRIPTOR.message_types_by_name['GetAccountTransactions'] +_GETACCOUNTASSETTRANSACTIONS = DESCRIPTOR.message_types_by_name['GetAccountAssetTransactions'] +_GETTRANSACTIONS = DESCRIPTOR.message_types_by_name['GetTransactions'] +_GETACCOUNTASSETS = DESCRIPTOR.message_types_by_name['GetAccountAssets'] +_ACCOUNTDETAILPAGINATIONMETA = DESCRIPTOR.message_types_by_name['AccountDetailPaginationMeta'] +_GETACCOUNTDETAIL = DESCRIPTOR.message_types_by_name['GetAccountDetail'] +_GETASSETINFO = DESCRIPTOR.message_types_by_name['GetAssetInfo'] +_GETROLES = DESCRIPTOR.message_types_by_name['GetRoles'] +_GETROLEPERMISSIONS = DESCRIPTOR.message_types_by_name['GetRolePermissions'] +_GETPENDINGTRANSACTIONS = DESCRIPTOR.message_types_by_name['GetPendingTransactions'] +_GETPEERS = DESCRIPTOR.message_types_by_name['GetPeers'] +_QUERYPAYLOADMETA = DESCRIPTOR.message_types_by_name['QueryPayloadMeta'] +_GETENGINERECEIPTS = DESCRIPTOR.message_types_by_name['GetEngineReceipts'] +_QUERY = DESCRIPTOR.message_types_by_name['Query'] +_QUERY_PAYLOAD = _QUERY.nested_types_by_name['Payload'] +_BLOCKSQUERY = DESCRIPTOR.message_types_by_name['BlocksQuery'] Ordering = _reflection.GeneratedProtocolMessageType('Ordering', (_message.Message,), { 'FieldOrdering' : _reflection.GeneratedProtocolMessageType('FieldOrdering', (_message.Message,), { @@ -1277,6 +215,58 @@ }) _sym_db.RegisterMessage(BlocksQuery) - -DESCRIPTOR._options = None +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\030iroha.generated/protocol' + _FIELD._serialized_start=2959 + _FIELD._serialized_end=2999 + _DIRECTION._serialized_start=3001 + _DIRECTION._serialized_end=3045 + _ORDERING._serialized_start=84 + _ORDERING._serialized_end=253 + _ORDERING_FIELDORDERING._serialized_start=154 + _ORDERING_FIELDORDERING._serialized_end=253 + _TXPAGINATIONMETA._serialized_start=256 + _TXPAGINATIONMETA._serialized_end=627 + _ASSETPAGINATIONMETA._serialized_start=629 + _ASSETPAGINATIONMETA._serialized_end=717 + _GETACCOUNT._serialized_start=719 + _GETACCOUNT._serialized_end=751 + _GETBLOCK._serialized_start=753 + _GETBLOCK._serialized_end=779 + _GETSIGNATORIES._serialized_start=781 + _GETSIGNATORIES._serialized_end=817 + _GETACCOUNTTRANSACTIONS._serialized_start=819 + _GETACCOUNTTRANSACTIONS._serialized_end=922 + _GETACCOUNTASSETTRANSACTIONS._serialized_start=924 + _GETACCOUNTASSETTRANSACTIONS._serialized_end=1050 + _GETTRANSACTIONS._serialized_start=1052 + _GETTRANSACTIONS._serialized_end=1088 + _GETACCOUNTASSETS._serialized_start=1090 + _GETACCOUNTASSETS._serialized_end=1190 + _ACCOUNTDETAILPAGINATIONMETA._serialized_start=1192 + _ACCOUNTDETAILPAGINATIONMETA._serialized_end=1304 + _GETACCOUNTDETAIL._serialized_start=1307 + _GETACCOUNTDETAIL._serialized_end=1493 + _GETASSETINFO._serialized_start=1495 + _GETASSETINFO._serialized_end=1527 + _GETROLES._serialized_start=1529 + _GETROLES._serialized_end=1539 + _GETROLEPERMISSIONS._serialized_start=1541 + _GETROLEPERMISSIONS._serialized_end=1578 + _GETPENDINGTRANSACTIONS._serialized_start=1580 + _GETPENDINGTRANSACTIONS._serialized_end=1663 + _GETPEERS._serialized_start=1665 + _GETPEERS._serialized_end=1675 + _QUERYPAYLOADMETA._serialized_start=1677 + _QUERYPAYLOADMETA._serialized_end=1768 + _GETENGINERECEIPTS._serialized_start=1770 + _GETENGINERECEIPTS._serialized_end=1806 + _QUERY._serialized_start=1809 + _QUERY._serialized_end=2848 + _QUERY_PAYLOAD._serialized_start=1913 + _QUERY_PAYLOAD._serialized_end=2848 + _BLOCKSQUERY._serialized_start=2850 + _BLOCKSQUERY._serialized_end=2957 # @@protoc_insertion_point(module_scope) diff --git a/iroha/transaction_pb2.py b/iroha/transaction_pb2.py index b050130b..86e6d60b 100644 --- a/iroha/transaction_pb2.py +++ b/iroha/transaction_pb2.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: transaction.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database @@ -15,222 +16,15 @@ 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) +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') -_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 = DESCRIPTOR.message_types_by_name['Transaction'] +_TRANSACTION_PAYLOAD = _TRANSACTION.nested_types_by_name['Payload'] +_TRANSACTION_PAYLOAD_BATCHMETA = _TRANSACTION_PAYLOAD.nested_types_by_name['BatchMeta'] +_TRANSACTION_PAYLOAD_REDUCEDPAYLOAD = _TRANSACTION_PAYLOAD.nested_types_by_name['ReducedPayload'] +_TRANSACTION_PAYLOAD_BATCHMETA_BATCHTYPE = _TRANSACTION_PAYLOAD_BATCHMETA.enum_types_by_name['BatchType'] Transaction = _reflection.GeneratedProtocolMessageType('Transaction', (_message.Message,), { 'Payload' : _reflection.GeneratedProtocolMessageType('Payload', (_message.Message,), { @@ -262,6 +56,18 @@ _sym_db.RegisterMessage(Transaction.Payload.BatchMeta) _sym_db.RegisterMessage(Transaction.Payload.ReducedPayload) - -DESCRIPTOR._options = None +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\030iroha.generated/protocol' + _TRANSACTION._serialized_start=71 + _TRANSACTION._serialized_end=635 + _TRANSACTION_PAYLOAD._serialized_start=188 + _TRANSACTION_PAYLOAD._serialized_end=635 + _TRANSACTION_PAYLOAD_BATCHMETA._serialized_start=341 + _TRANSACTION_PAYLOAD_BATCHMETA._serialized_end=485 + _TRANSACTION_PAYLOAD_BATCHMETA_BATCHTYPE._serialized_start=449 + _TRANSACTION_PAYLOAD_BATCHMETA_BATCHTYPE._serialized_end=485 + _TRANSACTION_PAYLOAD_REDUCEDPAYLOAD._serialized_start=487 + _TRANSACTION_PAYLOAD_REDUCEDPAYLOAD._serialized_end=612 # @@protoc_insertion_point(module_scope) diff --git a/schema/commands.proto b/schema/commands.proto index 7b04b2c1..320a523b 100644 --- a/schema/commands.proto +++ b/schema/commands.proto @@ -106,6 +106,7 @@ message CompareAndSetAccountDetail { oneof opt_old_value { string old_value = 4; } + bool check_empty = 5; } message SetSettingValue { diff --git a/schema/endpoint.proto b/schema/endpoint.proto index 56275753..480b6c7e 100644 --- a/schema/endpoint.proto +++ b/schema/endpoint.proto @@ -53,4 +53,5 @@ service CommandService_v1 { service QueryService_v1 { rpc Find (Query) returns (QueryResponse); rpc FetchCommits (BlocksQuery) returns (stream BlockQueryResponse); + rpc Healthcheck(google.protobuf.Empty) returns (HealthcheckData); } diff --git a/schema/primitive.proto b/schema/primitive.proto index 84f9d32d..340a608f 100644 --- a/schema/primitive.proto +++ b/schema/primitive.proto @@ -109,6 +109,7 @@ message Peer { oneof certificate { string tls_certificate = 3; // pem-encoded string } + bool syncing_peer = 4; } message AccountDetailRecordId { diff --git a/schema/qry_responses.proto b/schema/qry_responses.proto index 8a8f7fe1..bf599f20 100644 --- a/schema/qry_responses.proto +++ b/schema/qry_responses.proto @@ -154,3 +154,21 @@ message BlockQueryResponse { BlockErrorResponse block_error_response = 2; } } + +message HealthcheckData { + oneof opt_memory_consumption { + uint64 memory_consumption = 1; + } + oneof opt_is_healthy { + bool is_healthy = 2; + } + oneof opt_is_syncing { + bool is_syncing = 3; + } + oneof opt_last_block_height { + uint64 last_block_height = 4; + } + oneof opt_last_block_reject { + uint64 last_block_reject = 5; + } +} diff --git a/schema/queries.proto b/schema/queries.proto index 639aa2e1..ebc12418 100644 --- a/schema/queries.proto +++ b/schema/queries.proto @@ -9,7 +9,7 @@ package iroha.protocol; option go_package = "iroha.generated/protocol"; import "primitive.proto"; - +import "google/protobuf/timestamp.proto"; enum Field { kCreatedTime = 0; kPosition = 1; @@ -34,6 +34,18 @@ message TxPaginationMeta { string first_tx_hash = 2; } Ordering ordering = 3; + oneof opt_first_tx_time { + google.protobuf.Timestamp first_tx_time = 4; + } + oneof opt_last_tx_time { + google.protobuf.Timestamp last_tx_time = 5; + } + oneof opt_first_tx_height { + uint64 first_tx_height = 6; + } + oneof opt_last_tx_height { + uint64 last_tx_height = 7; + } } message AssetPaginationMeta { @@ -81,13 +93,13 @@ message AccountDetailPaginationMeta { } message GetAccountDetail { - oneof opt_account_id{ + oneof opt_account_id { string account_id = 1; } - oneof opt_key{ + oneof opt_key { string key = 2; } - oneof opt_writer{ + oneof opt_writer { string writer = 3; } AccountDetailPaginationMeta pagination_meta = 4; @@ -97,11 +109,9 @@ message GetAssetInfo { string asset_id = 1; } -message GetRoles { +message GetRoles {} -} - -message GetRolePermissions{ +message GetRolePermissions { string role_id = 1; } @@ -109,9 +119,7 @@ message GetPendingTransactions { TxPaginationMeta pagination_meta = 1; } -message GetPeers { - -} +message GetPeers {} message QueryPayloadMeta { uint64 created_time = 1; @@ -124,7 +132,6 @@ message GetEngineReceipts { string tx_hash = 1; } - message Query { message Payload { QueryPayloadMeta meta = 1;